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
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
There are several places that are calling the SC display APIs that were
hidden. They are already protected in SF so all the processes using the
hidden APIs were running as shell. However, we want to remove the APIs
into SF since they create confusion and instead replace with calls to
system server. For now, route the SurfaceControl hidden API calls that
are not used by system server to call through to DMS via the new
MediaProjectionGlobal API.
This will ensure the callers have a release to migrate before we remove
the APIs.
This also partially reverts commit c4bf46c247.
Test: Apps using SurfaceControl hidden display APIs
Bug: 237664947
Change-Id: I859743cb8b10c0352a30280a610b13a4f44f34dc
Make NativeInputManagerService package-private and remove the
@VisibleForTesting annotation, and update the annotation ordering in the
methods of BatteryState and InputDevice.
Bug: 245989146
Test: Build
Change-Id: I6ea839fac8037c2dd77037aed0d05b0f92ea43e3
ImageReader/ImageWriter object.
- Internally, we should deal with HardwareBuffer.BLOB format according
to surface's dataSpace. Directly passing BLOB format to
getEstimatedNativeAllocBytes function will throw exception because
BLOB format is not handled inside. Instead, use their corresponding
imageFormat to avoid such failure in this case.
Bug: 244268240
Test: atest android.hardware.camera2.cts.ImageReaderTest, atest
android.hardware.camera2.cts.ImageWriterTest, atest
android.hardware.cts.DataSpaceTest
Change-Id: I3f18b9d3550f88be82cde75372637a3ae528b5ec
This value needs to be explicitly set to false to prevent re-using a
stale "true" value.
Fixes: 245965753
Test: CTS SensorHeadTrackerTest#testDiscontinuity (pending upload)
Change-Id: Icd018e0cab9e30b0677970760a38a390d9dd2a3c