Commit graph

13 commits

Author SHA1 Message Date
Jooyung Han
d610435ac4 update hidl .bp
HIDL libs are not necessarily part of VNDK now. Because some are
used by VNDK libs, they are still VNDK. But rest are now just
vendor-available.

.hidl_for_test files are also removed because they are used to exclude
test-purpose hidl libs from VNDK libs.

Instead, .hidl_for_system_ext files are added to tests/lazy to
distinguish them from others which are installed /system.

Bug: 143933769
Test: update-makefiles.sh && m com.android.vndk.current
Merged-In: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
Change-Id: Ia81312dda340b6b5cbdd7a3c21e1d323bda39a4a
(cherry picked from commit b0907a6bb8)
2020-07-07 16:22:36 +09:00
Orion Hodson
0f8403f606 Add dependency on jni_headers
Preparation for removing implicit include paths for jni.h from soong.

Bug: 152482542
Test: Apply future soong change && m checkbuild
Change-Id: I880eb1f307d995cbd4f0f19e8f8d22c20fc36bef
Merged-In: I880eb1f307d995cbd4f0f19e8f8d22c20fc36bef
Exempt-From-Owner-Approval: build clean-up
(cherry picked from commit 43c1a6a41c)
2020-05-27 17:29:42 +01:00
Steven Moreland
b3a4d3832e Remove libhwbinder/libhidltransport deps
Since these were combined into libhidlbase.

Bug: 135686713
Test: build only (libhwbinder/libhidltransport are empty)
Change-Id: I075670b64eebbbbd6a6ae0e84ad51bf1c6f5ba36
2019-09-06 01:07:02 +00:00
Steven Moreland
99712c08cc Update hidl makefiles for bpfmt
hidl-generated makefiles are now generated such that bpfmt(file) == file.

Bug: 67417008
Test: enable bpfmt hook
Change-Id: I53e5bf67a0d314e1b10c0ba0c7172a7af358ddcc
2019-04-18 18:13:05 -07:00
Steven Moreland
b91ac5c6a0 Update makefies: no 'types' internal
Bug: 123976090
Test: N/A
Change-Id: I84b659b163b63d39535b462a3df8a9c19f680976
2019-03-04 14:09:25 -08:00
Siarhei Vishniakou
e4c310fdc9 Document that video frames rotate
We recently changed the behaviour in InputReader to adjust the video
frame data based on the current orientation.
Update the HAL documentation to reflect that.

Also, rearrange the order of width and height, because it is more
natural to have the format of num of rows x num of columns. So
currently, it is reversed, and not as natural.
More information about this is in ag/6414079.

Bug: 123241238
Test: none
Change-Id: I69f184794bd7684e5c0981a6db66542ab914eff2
2019-02-22 15:23:05 -06:00
TreeHugger Robot
05756caff3 Merge "Add VTS tests for InputClassifier HAL" 2019-02-21 01:43:04 +00:00
Steven Moreland
f8a47b7f01 Update makefiles.
Bug: 123976090
Test: N/A
Change-Id: I5fb6c126a090a3fe0fa4829ea9224564133dc1ae
2019-02-11 21:14:16 -08:00
Siarhei Vishniakou
4e8633ec30 Add VTS tests for InputClassifier HAL
The VTS tests are needed to test the InputClassifier HAL.
Add some basic tests here.

Test: atest VtsHalInputClassifierV1_0TargetTest
Bug: 117935272
Change-Id: I9a33729ad8dddbacab0500ee2953036c07e566dd
2019-02-11 14:26:44 -08:00
Siarhei Vishniakou
443e98b12d Remove impl from InputClassifier HAL
Make the reference implementation for InputClassifier HAL do nothing.
This is to allow cuttlefish to install this implementation.

It is safe for any device to install this implementation, and is
equivalent to not having the HAL running at all.

Test: boot up cuttlefish, and interact with the virtual device to ensure
that input works okay. Then 'ps -A | grep -i input' and ensure that the
HAL is running on the device.
Bug: 122600147

Change-Id: I841811bc0da3d78db8d7c1589cf1c59819d901a1
2019-02-07 15:42:06 -08:00
Siarhei Vishniakou
ba9d3c83b7 Add reset to InputClassifier HAL
The reset will be used to prevent an inconsistent stream of
events to be sent to the HAL.

Bug: 111480215
Test: make only
Change-Id: I40c7d671f094065e3fcaff0d83e826c580dcae7a
2019-01-28 13:52:10 -08:00
Siarhei Vishniakou
45c1d0c192 Move input definitions into separate HAL
The types added for input in InputClassifier HAL are not specific to
that HAL. These are common input definitions.

To allow for future reuse in this and other HALs, move these definitions
into a separate, type-only HAL android::hardware::input::common.

This will be similar to such existing HALs as:
hardware/interfaces/graphics/common
hardware/interfaces/camera/common
hardware/interfaces/audio/common

Test: make only
Bug: 111480215
Change-Id: I16d76d6bdb48b24487b232fda45c6146e1003fe9
2019-01-26 18:42:46 -08:00
Siarhei Vishniakou
a0e7f731c7 Add an InputClassifier HAL
The new HAL will be responsible for processing touch video frames that
are received from InputClassifier stage.
After processing, the HAL will generate a classification of the current
gesture. This classification will later be provided to the app via
the MotionEvent.getClassification() public API.

The eventual goal is to classify each event stream as a force touch
or not a force touch.

An example implementation of the HAL is presented here. This code was
used for local testing on blueline, and should not be actually installed
or used in any way other than for reference.

Bug: 62940136
Test: observed "detected deep press" logs when pressing with large
finger area on the touchscreen
Change-Id: Id6ac4337435e4ac07877da11ca184b6dd4d64780
2019-01-09 15:01:16 -08:00