Commit Graph

4622 Commits

Author SHA1 Message Date
Ilya Matyukhin
1ab1fbc464 Merge changes I165d67bd,I4442db15 into sc-dev am: bbddf477af
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14208890

Change-Id: Iba0f79e7fda737c8adbe25d61cd7dfbc9ee0948a
2021-04-27 18:04:03 +00:00
Ilya Matyukhin
bbddf477af Merge changes I165d67bd,I4442db15 into sc-dev
* changes:
  Notify AuthController when fingerprint providers are ready
  Consolidate registration of HIDL and AIDL HALs
2021-04-27 17:50:35 +00:00
Chris Ye
1c98705868 Merge "Add Builder to LightState." into sc-dev am: 167b01edf8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14091027

Change-Id: I88c3dd0cd529e96b058a10376089bbb717c36214
2021-04-27 16:13:54 +00:00
Chris Ye
167b01edf8 Merge "Add Builder to LightState." into sc-dev 2021-04-27 16:06:12 +00:00
Chris Ye
d398fb78a9 Add Builder to LightState.
Add Builder to LightState to replace the static constructors. Add
documents for Player ID lights. Changed input device lights types
definition to avoid future collsion with HAL light types.

Bug: 181743615
Test: atest InputDeviceLightsManagerTest
Change-Id: Ie47ef901006220d622677117c7ecd6ee41cf10f6
2021-04-27 00:54:36 -07:00
Cliff Wu
63f6ea7493 DynamicCamera: Add new hidden APIs in CameraManager and new permission for injection camera am: 84d364df81
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13824720

Change-Id: I8d0c20f8399108298b42f83d88762a0e2bcbd62b
2021-04-27 01:01:55 +00:00
Cliff Wu
84d364df81 DynamicCamera: Add new hidden APIs in CameraManager and new permission for injection camera
- Add new hidden APIs: injectCamera() and stopInjection() in
CameraManager.
- Add a new permission: android.permission.CAMERA_INJECT_EXTERNAL_CAMERA
to allow injecting the external camera to switch the internal camera.
- Add a new CameraInjectionSession class with stopInjection function,
which is called back by CameraInjectionCallback.onInjectionSucceeded(),
then the lifetime of CameraInjectionSession is what determines when
injection is active.

Bug: 181395010
Test: Verified camera manager use cases function as expected; no denials
Change-Id: I0b218dc6a55c7827e2446502b7a22382c6fe9f3e
2021-04-27 00:47:41 +00:00
TreeHugger Robot
29997bad9d Merge "Specify UID in getAuthenticatorIds" into sc-dev am: ccfc84f489
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14312915

Change-Id: I392abea6861333728ba156ed517a858140bd4a5e
2021-04-27 00:14:19 +00:00
TreeHugger Robot
ccfc84f489 Merge "Specify UID in getAuthenticatorIds" into sc-dev 2021-04-27 00:00:14 +00:00
Ilya Matyukhin
06f04c041c Notify AuthController when fingerprint providers are ready
This change introduces a callback that AuthController can provide to
FingerprintService to get notified when all of the fingerprint providers
are available.

This fixes the bug where UDFPS overlay is not available if SystemUI
starts before the fingerprint HAL, because SystemUI would query the
fingerprint providers on startup.

Bug: 184677066
Test: atest AuthControllerTest
Test: on device

Change-Id: I165d67bdda09ea10dd5aac539c4155e6b158227d
2021-04-26 16:40:39 -07:00
Ilya Matyukhin
e1b53af498 Consolidate registration of HIDL and AIDL HALs
This CL establishes a single flow of registration for both HIDL and
AIDL HALs. The registration of both is done on a separate thread to
avoid blocking system server. Previously, only AIDL registration was
done on a separate thread.

Bug: 184677066
Test: atest CtsBiometricsTestCases
Test: atest AuthServiceTest
Test: atest Fingerprint21Test
Test: atest Face10Test

Change-Id: I4442db15a7b690bb34c6eb7e8793ab4411cbd6d2
2021-04-26 16:40:36 -07:00
[6;7~
91bb4412f7 Specify UID in getAuthenticatorIds
Allow the caller to get authenticator IDs for a specific UID. If
that UID is not the caller UID the USE_BIOMETRIC_INTERNAL permission
is required; this is enforced by AuthService.

Test: aosp/1686345
Bug: 163866361
Change-Id: I0eef28ecefb85f1c10a73a354d08c38087d59814
2021-04-26 14:22:25 -07:00
Kevin Chyn
0628540b91 Merge "Update biometric OWNERs to single source of truth" am: 8d75fd0d02 am: d72f38390a am: 9cbf1ef9ef am: 1707d1267b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685327

Change-Id: Ifbf2a5008d00202770dd41ea5c77af594595e102
2021-04-26 20:02:33 +00:00
Kevin Chyn
1707d1267b Merge "Update biometric OWNERs to single source of truth" am: 8d75fd0d02 am: d72f38390a am: 9cbf1ef9ef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685327

Change-Id: I7ce1bd2978d306ca2fbb58d61ea31d9c9de7887c
2021-04-26 19:52:31 +00:00
Kevin Chyn
9cbf1ef9ef Merge "Update biometric OWNERs to single source of truth" am: 8d75fd0d02 am: d72f38390a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1685327

Change-Id: Iceff96b2c4d993e1287528de9b122c4b9361904f
2021-04-26 19:23:18 +00:00
Joshua Mccloskey
d43af4a4ca Merge "Add get/set feature implementation" into sc-dev am: 1203a1c628
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14202160

Change-Id: Ib0b894cacb0779d56ebf501f8e79fe94d11f9d1e
2021-04-25 23:29:19 +00:00
Joshua Mccloskey
1203a1c628 Merge "Add get/set feature implementation" into sc-dev 2021-04-25 23:20:35 +00:00
Santos Cordon
c772dc3b8f Merge "Add listener for brightness-specific changes." into sc-dev am: 33946ea33f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14018899

Change-Id: I60a7bebd1e92f0edb2f1ef1d6dfeff6eda09dc00
2021-04-24 15:59:26 +00:00
Santos Cordon
33946ea33f Merge "Add listener for brightness-specific changes." into sc-dev 2021-04-24 15:38:20 +00:00
TreeHugger Robot
1de1f342f7 Merge "Camera: Rename the extension latency query" into sc-dev am: e723159e6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14298065

Change-Id: Ibffa11b3d3915c302df00bcd04a7f552fc550efa
2021-04-24 00:13:43 +00:00
Santos Cordon
e5dae0ddc5 Add listener for brightness-specific changes.
Add FLAG to registerDisplayListener method to receive
brightness-specific changes.

getBrightnessInfo() method added to
android.view.Display to get brightness value, min, max
and highBrightnessMode status.

Bug: 168210311
Bug: 171023136
Test: atest com.android.server.display
Change-Id: I581e86e039cc7cf1bbca4cf7af03daa41dbddfe0
2021-04-23 22:18:55 +01:00
Emilian Peev
fdd8754d88 Camera: Rename the extension latency query
Include the latency time unit as part of the method
name.

Bug: 186240766
Test: Successful build
Change-Id: I4e728623c46429c03d7fd1d2720b6d2e171b02cb
2021-04-23 13:48:43 -07:00
Joshua Mccloskey
44593da20d Add get/set feature implementation
Fixes: 184657294
Test: Verified e2e feature get/set work via settings.
Change-Id: I6e3f598ae35c599df15ea6f69a161758caa53c36
2021-04-23 11:17:02 -07:00
Grace Cheng
80b1c60ffd Merge "Configures FingerprintService to use FingerprintStateCallback to notify clients of fingerprint sensor state changes" into sc-dev am: 42edcfbdb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14260002

Change-Id: I49684dcb53d68017d2998ffcb8730d0326f931a6
2021-04-23 18:05:25 +00:00
Grace Cheng
42edcfbdb6 Merge "Configures FingerprintService to use FingerprintStateCallback to notify clients of fingerprint sensor state changes" into sc-dev 2021-04-23 17:50:17 +00:00
TreeHugger Robot
6a8d8e590d Merge "Camera: Update streamConfigurationMap doc for 1080p min JPEG size" into sc-dev am: 74c93b7ba8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14140638

Change-Id: Ia1121c42408285e8256cd28a5f219ce6f5f176b5
2021-04-23 06:36:08 +00:00
TreeHugger Robot
74c93b7ba8 Merge "Camera: Update streamConfigurationMap doc for 1080p min JPEG size" into sc-dev 2021-04-23 06:09:14 +00:00
Christine Franks
6ae6b30dc8 Merge "Check virtual displays for ime dispatch" into sc-dev am: 8327ce6b24
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14119055

Change-Id: I058082153742800f8abef9edf257c56e0e69dfd8
2021-04-23 04:43:11 +00:00
Christine Franks
8327ce6b24 Merge "Check virtual displays for ime dispatch" into sc-dev 2021-04-23 04:29:02 +00:00
TreeHugger Robot
59518989b8 Merge "Camera: Add new hidden tag for multiResolutionStream support" into sc-dev am: 29ebb3033c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14179247

Change-Id: I9215d3970ccb46f88ae8757e2035918d7f0b890f
2021-04-23 04:23:27 +00:00
TreeHugger Robot
29ebb3033c Merge "Camera: Add new hidden tag for multiResolutionStream support" into sc-dev 2021-04-23 04:14:36 +00:00
Kevin Chyn
e68e9ecd54 Update biometric OWNERs to single source of truth
Test: Builds
Change-Id: I21f1f1d61f49d3db93b120fca29893f86526bb9c
2021-04-22 19:31:23 -07:00
“Grace
02e5b66448 Configures FingerprintService to use FingerprintStateCallback to notify
clients of fingerprint sensor state changes

Implements FingerprintStateCallback class to receive notifications of
changes in fingerprint state, and updates ServiceProvider method
signatures and Fingerprint21 accordingly to use this callback type for
authentication, enrollment, and other side fps events. Also defines
FingerprintStateListener class to forward state changes in
fingerprint-related events from FingerprintService to the
SideFpsEventHandler, which defines logic for interactions
between power button state and side fps state.

Test: adb shell dumpsys fingerprint

Bug: 183997671
Change-Id: I9a44e2f31648590c0d0d4d065b68c39c9f204051
2021-04-23 00:59:57 +00:00
Christine Franks
53ecc10226 Check virtual displays for ime dispatch
Bug: 184615313
Test: atest -a inputflinger_tests and atest -a libinput_tests
Change-Id: Ide4d7a0530e00eee3e2b7456d1d93df753b70afd
2021-04-22 16:39:54 -07:00
Ilya Matyukhin
6ec897cb20 Merge changes from topic "IFace-anapic-review" into sc-dev am: 426461e8ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14284620

Change-Id: Iaad785b110e9834971b1d932ef11f64cdd80dde4
2021-04-22 23:02:44 +00:00
Ilya Matyukhin
426461e8ae Merge changes from topic "IFace-anapic-review" into sc-dev
* changes:
  Add HAL-to-framework constant conversion
  Update framework with IFace getSensorConfig
2021-04-22 22:58:59 +00:00
Ilya Matyukhin
c94f83d9c5 Add HAL-to-framework constant conversion
This CL adds functions to fingerprint's and face's AidlConversionUtils
that map HAL-level constants to the framework constants. This makes the
layers independent from the numerical values of the constants,
which makes it easier to add new constants in the future.

Bug: 181358178
Test: atest CtsBiometricsTestCases
Change-Id: Ia9864eb7dae7933cc02b2019117bc590d3f30184
2021-04-22 12:28:29 -07:00
Evan Severson
47426c23c0 Merge "Remove package manager feature for toggles" into sc-dev am: 171fe09c3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14194146

Change-Id: I8d9bb177b97bd549ab6683220b6b622bda62f335
2021-04-22 16:43:01 +00:00
Evan Severson
171fe09c3c Merge "Remove package manager feature for toggles" into sc-dev 2021-04-22 16:38:36 +00:00
Nathalie Le Clair
5331b1088a Merge "Remove usage of TV-specific setting in playback devices" 2021-04-22 13:37:31 +00:00
Philip Junker
a1cfb76b9b Merge "Add TestApi to suppress other LightsSession clients" into sc-dev am: 463493f57d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14251394

Change-Id: I3c1c3b48f90d2b703d60621bfc4b110615db777e
2021-04-22 08:58:32 +00:00
Philip Junker
463493f57d Merge "Add TestApi to suppress other LightsSession clients" into sc-dev 2021-04-22 08:04:21 +00:00
Grace Cheng
80db3057a2 Merge "Configures FingerprintService to use FingerprintStateCallback to notify clients of fingerprint sensor state changes" into sc-dev am: 6fcb00896d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14260001

Change-Id: Ia1b41c347e429b3ac4a12d09f017d3af233b9557
2021-04-22 01:02:12 +00:00
Grace Cheng
6fcb00896d Merge "Configures FingerprintService to use FingerprintStateCallback to notify clients of fingerprint sensor state changes" into sc-dev 2021-04-22 00:55:18 +00:00
Curtis Belmonte
3a3b64941c Merge "Log new auth-related framework atoms for Android 12" into sc-dev am: 2bd0b0b3ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14257248

Change-Id: I8ccc66218344e87d639d9f4c1d6d8596ea742f42
2021-04-22 00:41:45 +00:00
Curtis Belmonte
2bd0b0b3ed Merge "Log new auth-related framework atoms for Android 12" into sc-dev 2021-04-22 00:30:44 +00:00
TreeHugger Robot
46e5869de5 Merge "Camera: Enable camera extension latency range queries" into sc-dev am: 373fafb24b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14106875

Change-Id: I35c331e5679d0dba6e765122e6e1461a57d4b59c
2021-04-21 22:46:13 +00:00
TreeHugger Robot
373fafb24b Merge "Camera: Enable camera extension latency range queries" into sc-dev 2021-04-21 22:23:35 +00:00
“Grace
4a2c94ec5f Configures FingerprintService to use FingerprintStateCallback to notify
clients of fingerprint sensor state changes

Implements FingerprintStateCallback class to receive notifications of
changes in fingerprint state, and updates ServiceProvider method
signatures and Fingerprint21 accordingly to use this callback type for
authentication, enrollment, and other side fps events. Also defines
FingerprintStateListener class to forward state changes in
fingerprint-related events from FingerprintService to the
SideFpsEventHandler, which defines logic for PhoneWindowManager to use
in interactions between power button state and side fps state.

Test: adb shell dumpsys fingerprint

Bug: 183997671
Change-Id: I3147d41074589fe5a47434b96d10e78182ab3747
2021-04-21 21:32:18 +00:00
Curtis Belmonte
7f60baaadb Log new auth-related framework atoms for Android 12
Adds logging to the framework for new authentication and biometric atoms
introduced as part of ag/13856328.

Test: Manually trigger each case and verify log statements are called.

Bug: 185136248
Change-Id: I2783e4738eac36f34b073107afbd67ce1df4b0fb
2021-04-21 13:27:22 -07:00