Additionally switch the dynamic range profiles to long values
instead of integers.
Bug: 215396395
Test: Camera CTS
Change-Id: I4700af73f31423fd9316cfb08a351b0cde731d76
This is a workaround for the fact that currently, relying on the GC to
release those resources is unreliable and on the other hand having an
explicit close() that isn't tightly coupled with the internal details
of the parcelable is not possible (filed a bug).
Test: Manual verification of soundtrigger operation.
Test: atest com.android.server.soundtrigger_middleware.SoundHw2CompatTest
Fixes: 219411458
Change-Id: I43bd43ca80eadf97f0254678b0e817fc6f8a06b2
Merged-In: I43bd43ca80eadf97f0254678b0e817fc6f8a06b2
(cherry picked from commit 578eadd1b4)
Also fix a typo in ImageFormat's docs
Fixes: 218928677
Test: make
Change-Id: Icc5d32afac113e639a81a11c86bee1698ef12861
(cherry picked from commit 000c374e2b)
Allow priv apps to query the state of the software and hardware privacy toggles.
Test: atest CtsSensorPrivacyTestCases
Bug: 191745272
Change-Id: I87c31bcdd25daafe589dff8f21f227f2c2356ab1
Use a bool in SensorEvent rather than a new method in
SensorEventCallback to indicate discontinuities.
Fixes: 217364461
Test: additional CTS test cases pending
CTS-Coverage-Bug: 214618172
Change-Id: I144487d36b2d00d57265c9e3e9f542c7136a33f5
getUsbDataStatus now returns bit field values of @UsbDataStatus.
Also renaming from USB_DATA_STATUS_* to DATA_STATUS_* based on
review comments.
Bug: 216640242
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Change-Id: I96ade3dd7041a4094e57907069a872909a62e72f
Propagate HW toggle state from InputManagerService to SensorPrivacyManager.
Enable devices with 2-way (on/off) or 3-way hardware switches (on/mic-only/off)
to control the microphone and camera privacy toggles state and behavior.
Devices map the hardware toggles GPIO to SW_MUTE_DEVICE
and SW_CAMERA_LENS_COVER codes, which are handled by InputFlinger -> InputManagerService.
Test: atest SensorPrivacyServiceMockingTest , Manual
Bug: 191745272
Change-Id: If968a2c2292ab73808e7d5735f156515a6d62e03
The service already supports a hardware type so this change introduces
new overloads which add a parameter to check between hardware/software
or any other future types.
Bug: 191745272
Test: Manual, CtsSensorPrivacyTestCases, SensorPrivacyServiceMockingTest
Change-Id: Icda09da03f5361997566a62e3a72b25a760ef3ca
Expand javadocs and change return value to NonNull for
VirtualDeviceManager.createVirtualDevice.
Also removed the redundant @TestApi on the virtual display flag.
Bug: 217742182
Test: Existing tests pass
Change-Id: I381039e6ebe4f5f5046a35e9a3e266ff7f46c369
Also changed the Handler parameter to Executor
Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I0f8f0c6a0f57e773191382da824e53d6ea371f4b
The SoundTrigger HAL can deliver additional context about the kephrase
that was triggered along with the trigger audio. This change moves to
expose the information which was previously suppressed by the Android
framework.
Data exposed:
- Keyphrase extras providing details on what phrase was interpreted by
the voice engine
Extra keyphrase information provided by the SoundTrigger HAL which was
previously suppressed is also exposed.
Test: atest AlwaysOnHotwordDetectorEventPayloadTest
CTS-Coverage-Bug: 215375531
Bug: 215066299
Change-Id: I3b20fd3692c3f9c86181f87d66622c77778b9ab2
Also changed the Handler parameter to Executor
Bug: 217742182
Test: atest CtsVirtualDevicesTestCases
Change-Id: I3321927b36361168655f4886825955a642fb6c79
The mirror mode gives the camera framework the ability to override the
default AUTO mode, where front facing camera's outputs are mirrored.
CTS-Coverage-Bug: 218869676
Test: Camera CTS
Bug: 200309079
Change-Id: I90d5826311c7f9088d13240085506d5b040565eb
- Add additional javadoc for vendor and product ids
- Enumerate full allowed key code set for VirtualKeyEvent
- On cloud devices, CTS fails with 'bad address' for VirtualTouchscreen.
Pass by address rather than by value to solve.
Bug: 216554655
Test: atest CtsHardwareTestCases:android.hardware.input.cts.tests
Change-Id: Ifb233d2b6c4eee1ffdcba218ed17312e67bac6f6
Call the updated native version of getDisplayDecorationSupport (added in
I961051c0a660b596039ac04b546040764ee20d34), and convert the NDK struct
into a Java class. Depend on the graphics AIDLs, which now have Java
backends. A future CL will update SysUI to call the new API.
Add a PixelFormat for R_8 to correspond to the native version. This will
allow SysUI to use COLOR_MODE_A8 when the HAL reports R_8.
If64fd6924960f592b7a211371bc2ca6536ae34f7 demonstrates using this.
Bug: 216644902
Test: manual
Change-Id: I0e34c6d6e369fda0a96231ab38c3bd5f3bfe3e06
Also change DataSpace from long to int (HAL & native are both ints)
Bug: 217776226
Fixes: 218320444
Test: make && SurfaceControlTest#testSurfaceTransaction_setDataSpace
Change-Id: Ic2b9ccb1d0ba3c1d049839310b4fef0881a3d2e2