Commit Graph

5875 Commits

Author SHA1 Message Date
TreeHugger Robot
7c952e8bfd Merge "Camera: Add support for extension progress callbacks" 2022-11-08 22:23:47 +00:00
Prabir Pradhan
81b2644ede Merge "InputManager: Expose pilferPointers API" 2022-11-08 21:08:31 +00:00
Prabir Pradhan
6ada12749c InputManager: Expose pilferPointers API
We can only migrate existing gesture monitors to spy windows if we allow
pilfering from these spy windows. Expose the pilferPointers API so that
other processes can pilfer from arbitrary input windows.

The pilferPointers API is guarded with the MONITOR_INPUT signature
permission.

Bug: 257977069
Test: Build
Change-Id: Ice43ed420502ce3b5e5d37d9ac9e810a51ed07bc
2022-11-07 18:27:32 +00:00
Joshua Mccloskey
1c9c0ae3e5 Merge "Enabled multibiometric lockout for aidl hals" 2022-11-06 18:16:24 +00:00
TreeHugger Robot
cae1ecbc2d Merge "DM: add SWITCHING_TYPE_RENDER_FRAME_RATE_ONLY" 2022-11-05 11:14:11 +00:00
Joshua McCloskey
a3967d8a7d Enabled multibiometric lockout for aidl hals
Test: atest com.android.server.biometrics
Test: atest com.android.server.locksettings
Test: tested on hidl fingerprint device
Test: tested on hidl face device
Test: tested on aidl fingerprint/face device with various different combinations of strengths.

The device tested consisted of:

* Locking out device in keyguard, resetting, ensuring it works as expected
* Locking out device in biometric prompt, resetting, ensuring it works as expected
for work profile & default profile.

Bug: 244355277
Change-Id: I849dfc13da17a49ec9b20fa58390707e1f8109ab
2022-11-04 20:33:29 +00:00
Emilian Peev
f2c8dff01c Camera: Add support for extension progress callbacks
Enable capture process progress callback that can be
triggered by the extension implementation

Bug: 255536242
Test: Camera CTS

Change-Id: I6af4f189e08f07013b80fbf4de579da0ebaf3d7f
2022-11-04 12:59:26 -07:00
Ady Abraham
1e55b7fb83 DM: add SWITCHING_TYPE_RENDER_FRAME_RATE_ONLY
Add a new switching type to allow render frame rate switching
while disabling display mode switching.

Test: atest DisplayModeDirectorTest
Test: atest FrameRateOverrideHostTest
Bug: 257070931
Change-Id: I9666d9a6a617a14eec45226503d707ca934c9318
2022-11-03 15:30:00 -07:00
Weilin Xu
a5cbb8faaf Merge "Set DAB entry table to null for non-DAB radio" 2022-11-03 22:13:06 +00:00
Austin Borger
46afac613a Merge "Add annotations to Camera2 simple objects' methods." 2022-11-03 16:50:50 +00:00
Weilin Xu
bf06bafa98 Set DAB entry table to null for non-DAB radio
DAB entry table was intialized with null if the DAB entry table
input in module properties constructor is empty map, which means
DAB is not supported.

Bug: 255843881
Test: atest RadioManagerTest
Change-Id: I3801e132c3448f9c474d53febb93b2e1f33cba5b
2022-11-03 01:02:55 +00:00
Valentin Iftime
165ddc4bdf Add new TV bottom sheets for HTT mic mute
For near-field file-based audio transfer and
 explicit user audio interaction.

Bug: 253416313
Bug: 235618473
Test: m -j
Change-Id: I4379f395496f0c49936798f74222a767ed79385c
2022-11-02 19:59:12 +01:00
Diya Bera
0921f75509 Merge "Refactor IUdfpsHbmListener to be refresh-rate specific" 2022-11-02 18:00:01 +00:00
Bernardo Rufino
474e0ea215 Merge "Call PermissionEnforcer helper on methods annotated with @EnforcePermission" 2022-11-02 14:17:20 +00:00
Weilin Xu
ab329e1454 Add missing unit tests for radio
Unit tests for methods related to discribeContents, parcel, and
creator of classes in radio package were added. The issue that
secondary ids in program selector should not be sorted due to
no comparator implemented was also fixed.

Bug: 249602599
Test: atest android.hardware.radio.tests.unittests
Change-Id: I97b5efe244f1ae0fb37e3e4dd312f4bef6e75d04
2022-11-01 17:43:58 +00:00
Khoa Hong
c10e369a1b Merge "Add protections against queueing a UsbRequest when the underlying UsbDeviceConnection is closed." into rvc-dev am: 046dc1b7b2 am: a4ebf141dc am: c1c23d0e76 am: 4119e4aef7 am: fce17d77dc am: 864175c835 am: 21bca22536
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20210471

Change-Id: Ia855ce9d4f09a25fc21627541062a46d46d36181
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 07:39:38 +00:00
Khoa Hong
864175c835 Merge "Add protections against queueing a UsbRequest when the underlying UsbDeviceConnection is closed." into rvc-dev am: 046dc1b7b2 am: a4ebf141dc am: c1c23d0e76 am: 4119e4aef7 am: fce17d77dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20210471

Change-Id: If296802928d8e8a9c0dc60b04d1823d5f23a1047
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 06:19:36 +00:00
Khoa Hong
fce17d77dc Merge "Add protections against queueing a UsbRequest when the underlying UsbDeviceConnection is closed." into rvc-dev am: 046dc1b7b2 am: a4ebf141dc am: c1c23d0e76 am: 4119e4aef7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20210471

Change-Id: I7c1febe8b0353f90132b3f639ea211fa6ff98906
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 05:52:24 +00:00
Khoa Hong
4119e4aef7 Merge "Add protections against queueing a UsbRequest when the underlying UsbDeviceConnection is closed." into rvc-dev am: 046dc1b7b2 am: a4ebf141dc am: c1c23d0e76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20210471

Change-Id: I83e1fa3e4b76d189ba3f802e8dd7ee360ca575f2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 05:22:12 +00:00
Khoa Hong
c1c23d0e76 Merge "Add protections against queueing a UsbRequest when the underlying UsbDeviceConnection is closed." into rvc-dev am: 046dc1b7b2 am: a4ebf141dc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20210471

Change-Id: I78a98936e27a7fc69552e630ba7fcffe270e374d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 04:37:05 +00:00
Khoa Hong
a4ebf141dc Merge "Add protections against queueing a UsbRequest when the underlying UsbDeviceConnection is closed." into rvc-dev am: 046dc1b7b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20210471

Change-Id: I3266c0e101adbdd450e8f2ced8ceacec771e45d7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-31 04:06:41 +00:00
Prabir Pradhan
95e4067b09 Merge changes from topics "input-device-bluetooth-address", "notify-stylus-presence"
* changes:
  Add hidden API to query the bluetooth address of an InputDevice
  Native input manager: Add default initializers for locked members
  Introduce monitoring behavior changes for USI devices (3/n)
  Notify the policy when a stylus gesture starts
2022-10-28 15:00:01 +00:00
Prabir Pradhan
e513b7ffe3 Add hidden API to query the bluetooth address of an InputDevice
Since revealing the bluetooth address of an input device can reveal
whether bluetooth is enabled, we require the BLUETOOTH permission for
this API.

This also means we cannot send the bluetooth address to apps using the
InputDevice class. We add an IInputManager method to query the address
instead that performs the permission check.

Since we are not using the Java InputDevice class to store the address,
we must cache the vector of last-reported InputDeviceInfos in
NativeInputManager.

DD: go/inputdevice-battery-notifications

Bug: 243005009
Test: manual
Change-Id: I560cb170ab7008314821e5150caf4868efb5d8d5
2022-10-27 20:45:22 +00:00
Diya Bera
f7f819dda2 Refactor IUdfpsHbmListener to be refresh-rate specific
Bug: 246609325
Test: Manual
Change-Id: Ia94a3d7c5f86e59bc9227ee08dd98b7e9a6a88a5
2022-10-27 19:51:08 +00:00
mattgilbride
9d1359d07e Call PermissionEnforcer helper on methods annotated with
@EnforcePermission

Migrates all existing java methods annotated with @EnforcePermission
such that they call the super.<methodName>_enforcePermission
method provided by PermissionEnforcer.

29 call sites in framework-minus-apex
371 call sites in services.core.unboosted

Bug: 234083358
Test: TH
Change-Id: Iecab9b73644c911aa6d2a9a83fbab7dbb79f529b
2022-10-27 09:30:53 +00:00
Austin Delgado
957309aee1 Add new UdfpsOverlay to SensorOverlays
Test: N/A
Bug: 252897742
Change-Id: I8b652b4f28cf5e5802a3251e85a979472162d227
2022-10-27 00:49:19 +00:00
TreeHugger Robot
828c526fdf Merge "Camera2: Add support for extension specific session types" 2022-10-26 07:38:24 +00:00
Shuzhen Wang
3eb77a8d13 Merge "Camera: Add request settings Override API" 2022-10-26 00:34:01 +00:00
Bharatt Kukreja
83acb78ab6 Camera: Add request settings Override API
The new API can be used to speed up applying certain capture request
settings. Auto-generated files from changes in metadata_definitions.xml

Bug: 239822823
Test: Successful build
Change-Id: Idaf38603582e6ce78252d55edb39d56b02b248bb
2022-10-25 18:26:00 +00:00
Hai Zhang
5611f58784 Merge "Move TypedXml{Parser,Serializer} to modules utils package." 2022-10-25 02:44:29 +00:00
Weilin Xu
011a795374 Merge "Add unit tests for public methods in radio manager" 2022-10-24 23:12:59 +00:00
Ady Abraham
1ff6724539 Merge "DisplayModeDirector: separate the display refresh rate and the render frame rate" 2022-10-24 17:46:26 +00:00
Austin Borger
f00457aec1 Merge "Create API for reporting color space support to Camera2 framework consumers." 2022-10-24 17:25:12 +00:00
Weilin Xu
736f8f1688 Add unit tests for public methods in radio manager
Bug: 249602599
Test: atest RadioManagerTest
Change-Id: I493633cc5fb2bc7aa3356f6db73a13127dc1fa2b
2022-10-23 05:16:10 +00:00
Ady Abraham
b878a206e8 DisplayModeDirector: separate the display refresh rate and the render frame rate
Add an additional dimension to DisplayModeDirector for render frame rate
in addition to the display physical refresh rate. DisplayModeDirector aggregates the requests for both render frame rates and physical refresh rates, and sets the policy to SurfaceFlinger.
SurfaceFlinger will select the display refresh rate based on the physical refresh rate range, and schedule applications based on the render frame rate range.
This is a change over the previous logic where the render frame rate and
physical refresh rate were always the same for SurfaceFlinger.

Test: atest LocalDisplayAdapterTest DisplayModeDirectorTest
Bug: 241460058
Change-Id: I9563257c7268a731a3919ffa368f7b8ae777eb99
2022-10-21 18:16:48 -07:00
TreeHugger Robot
cf8bf2f3b1 Merge "Fix possible NPE in FingerprintManager." 2022-10-21 17:53:53 +00:00
Diya Bera
9b46e8daad Merge "Biometric Scheduler Watchdog" 2022-10-21 17:00:45 +00:00
Weilin Xu
bbd95841d0 Merge "Add unit tests for ProgramInfo and Announcement" 2022-10-21 16:12:09 +00:00
Ben Murdoch
59f3c0978b Fix possible NPE in FingerprintManager.
There's an unsafe use of a @Nullable reference in FingerprintManager.
Add null check.

Bug: 254465749
Test: Manually confirm device doesn't crash during boot.
Change-Id: I26da2e9a2af06e110367fc6f1127df4fddbcc678
2022-10-21 13:11:17 +00:00
Hai Zhang
e55b8eeb28 Move TypedXml{Parser,Serializer} to modules utils package.
A subsequent change will actually move the files to the other git
project.

Bug: 243194720
Test: presubmit
Change-Id: If126bb68f74852528c4da8df79831b49b5129983
2022-10-21 04:28:13 -07:00
Weilin Xu
f551c12865 Add unit tests for ProgramInfo and Announcement
Bug: 249602599
Test: atest RadioManagerTest RadioAnnouncementTest
Change-Id: I19920151701b25e34a1c82af073759d50e3bcc77
2022-10-21 02:31:48 +00:00
Austin Borger
f665d50639 Create API for reporting color space support to Camera2 framework consumers.
Test: Ran CtsCameraTestCases
Test: Ran new VTS test for color space reporting
Test: Created app to test display P3 camera, switching between color spaces
Bug: 238359088
Change-Id: I5c74ea438970cbe55f93b925a6744f4343bc545a
2022-10-20 17:39:22 -07:00
Weilin Xu
48b1ace87d Merge "Move close callback outside ProgramList lock" 2022-10-20 23:32:29 +00:00
Emilian Peev
84abed9b70 Merge "Fix an issue that the FoldStateListener induces a memory leak" am: 4dd1477d72 am: fa87ee6feb am: fad86dfd8a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2185395

Change-Id: I75ed7113f72f34d331ec1912cd0cc6c2e4758dd2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:24:35 +00:00
Emilian Peev
fad86dfd8a Merge "Fix an issue that the FoldStateListener induces a memory leak" am: 4dd1477d72 am: fa87ee6feb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2185395

Change-Id: I01860301e34fbb4c42a6e3bedb139c17cfa911d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 23:15:46 +00:00
Emilian Peev
fa87ee6feb Merge "Fix an issue that the FoldStateListener induces a memory leak" am: 4dd1477d72
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2185395

Change-Id: I138e11602d2c0adb646e2471014f58c2992e9b94
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-20 22:44:45 +00:00
Emilian Peev
4dd1477d72 Merge "Fix an issue that the FoldStateListener induces a memory leak" 2022-10-20 21:41:42 +00:00
Diya Bera
b1941f800d Biometric Scheduler Watchdog
Added a watchdog to kill hung operations within the biometric scheduler.
The watchdog will cancel/remove all pending and the current running
operation if it is not finished with 10 seconds.

Test: Manual
Test: atest BiometricSchedulerTest
Fixes: 243445002
Change-Id: I877fec8d674be204b922088d072afe00f99b6635
2022-10-20 16:15:51 +00:00
Weilin Xu
1fcf05bbfc Move close callback outside ProgramList lock
The callback of on-close listener in program list was moved outside
of the lock in porgram list to avoid the deadlock between
program list and tuner adpater.

Bug: 254505565
Test: atest android.radio.cts.RadioTunerTest
Change-Id: I9c668c63a578ba04b52747e0ef96e9e67cc00b72
2022-10-19 21:32:24 +00:00
Emilian Peev
983c89e015 Camera2: Add support for extension specific session types
Allow extension vendors to specify the camera capture session
type.

Bug: 254351814
Test: Camera CTS
Change-Id: I36d70f6f168cd51f19ea517a98428c02a96842cc
2022-10-19 10:29:31 -07:00