Seeing ArrayIndexOutOfBoundsException while adding an input device with
vibrator. The index used to iterate vibrator ids increased before being
used to get the id from an sparsed array, so it is causing out of bounds
exception.
Bug: 253079798
Test: m; InputDeviceVibratorManagerTest
Change-Id: I019790f74184058020194ae42a35d8ed972ceaa7
Since the comparator of identifer is not implemented, secondary
ids cannot be sorted in ProgramSelector constructor. Two secondary
id arrays should be compared using list in strictEquals method.
Bug: 249616039
Test: atest ProgramSelectorTest#
strictEquals_withDifferentSecondaryIdsOrders_returnsTrue
Change-Id: I2460c4399ff8564b638254f71e9d7c883868854a
Create an AIDL parcelable class to represent the battery state of an
input device.
Instead of separately querying the battery status and capacity from an
app-local implmentation of "InputDeviceBatteryState" that acts as a
"manager", we combine them into one method that queries the battery
state from BatteryController.
Bug: 243005009
Test: atest BatteryControllerTests
Test: atest InputDeviceBatteryListenerTests
Change-Id: I2b77aeca6a2d062c8b04a16e38d3acf6c996c134
This reverts commit 9f5ec0c7d0.
Reason for revert: this CL removed getPhysicalAddress from the main service thread, which caused errors.
Change-Id: I42c478831c4daa5d17e55f7f8edd253449b863b8
InputManagerInternal is a left over in android.hardware.input that is
only used fromt the system_server process. This is from a change in
Honeycomb that partially got reverted. Moving this back to be able to
use com.android.server classes in InputManagerInternal for an upcoming
change.
Test: atest InputManagerServiceTests
Bug: 244516415
Change-Id: I8640f806800ef3b1ac06766b5c49b12cbb30d647
Now the SurfaceView timestamp override only happens in fixed frame rate
case.
Test: Build
Bug: 239775097
Change-Id: I02cf36ed664a446ba3e8f6f04ce42caafaa5ae90
Add a static method in DisplayManager that allows the caller to create a
VirtualDisplay without having an instance of DisplayManager (which
requires a context). This can only be used from a process that has the
CAPTURE_VIDEO_OUTPUT permission.
Also added RequiresPermission(CAPTURE_VIDEO_OUTPUT)
annotation for the new API.
Test: DisplayManagerTest
Bug: 247776252
Change-Id: I1eb94ab1063d89860cdfb2a58d4653d9a77eec98
Add new light type for KEYBOARD_BACKLIGHT to be used to
find if the Light is of type keyboard backlight
We will add code to modify Keyboard backlight based on key
events in future CLs
Test: None
Bug: 245506418
Change-Id: I0c7efb687c74c029e61c878c55f3af40710ec86d
Non-final member variables in TunerAdapter and
TunerCallbackAdapter are guarded by locks now. Final member
variables are moved outside the lock since they are already
thread-safe.
Bug: 247856985
Test: atest android.hardware.radio.tests.functional
Change-Id: I39204a4d5036aa66c72e54a673814a7cbbcb18b3
System apps can now register an InputDeviceBatteryListener on a
per-device basis to be notified of battery changes.
- InputManager manages registration of the binder callback with
InputManagerService to ensure that there is only one battery
listener per process.
- The battery listener is invoked immediately upon registration
to provide the initial battery state for the device.
- The callbacks are removed automatically when the process dies.
- This CL does not yet identify changes in battery state for monitored
devices.
DD: go/inputdevice-battery-notifications
Bug: 243005009
Test: atest FrameworkServicesTests
Test: atest FrameworkCoreTests
Change-Id: Idf2b06a099155a6f5cc13b55dcd40852f54aa56c
Merged-In: Idf2b06a099155a6f5cc13b55dcd40852f54aa56c
(cherry picked from commit e86f73ac50)
The API overrideHdrTypes should be per display. Add an API into DMS so
DMS can set the override with the correct displayToken. Remove usage of
getInternalDisplayToken in DisplayTests
Test: DisplayTest
Bug: 242714168
Change-Id: Ib338624a71a897d8d718080850f672a219f9627e
Adds new requestBaseStateOverride on DeviceStateManager
to be used for testing, to provide a similar behavior
to changing the physical configuration of the device.
This is necessary now that the requestState API is being
used for features now, we need a test API that will
be a closer simulation to physical device changes.
Bug: 234336979
Test: DeviceStateManagerGlobalTest
Change-Id: I6ad9e799329f16521aa3c13b248eed762fe0b121
Instead calling to DisplayManagerInternal to get the DisplayPrimaries
for a particular displayId.
Test: DisplayWhiteBalanceTintControllerTest
Bug: 242714168
Change-Id: Ifc5ecc60937d186c0c94858ffc543d36df8f2d07
Server side changes to accompany the addition of the
DeviceStateManager#requestBaseStateOverride test API
Bug: 234336979
Test: OverrideRequestControllerTest
&& DeviceStateManagerServiceTest
Change-Id: Ib915b245acd260be1e0d5016d765af5598ea390c