Commit Graph

4520 Commits

Author SHA1 Message Date
TreeHugger Robot
ccfc84f489 Merge "Specify UID in getAuthenticatorIds" into sc-dev 2021-04-27 00:00:14 +00: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
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
1203a1c628 Merge "Add get/set feature implementation" into sc-dev 2021-04-25 23:20:35 +00:00
Santos Cordon
33946ea33f Merge "Add listener for brightness-specific changes." into sc-dev 2021-04-24 15:38:20 +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
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
74c93b7ba8 Merge "Camera: Update streamConfigurationMap doc for 1080p min JPEG size" into sc-dev 2021-04-23 06:09:14 +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
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
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
171fe09c3c Merge "Remove package manager feature for toggles" into sc-dev 2021-04-22 16:38:36 +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
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
2bd0b0b3ed Merge "Log new auth-related framework atoms for Android 12" into sc-dev 2021-04-22 00:30:44 +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
Curtis Belmonte
19762316de Merge "Address BiometricManager strings API review feedback" into sc-dev 2021-04-21 20:22:01 +00:00
Curtis Belmonte
2559047e68 Address BiometricManager strings API review feedback
Makes the following changes to the BiometricManager strings API:
- Move string getter methods to a static nested StringProvider class
- Add a BiometricManager method to get a StringProvider instance
- Document when null may be returned and how (not) to interpret it

Test: atest BiometricManagerTest
Test: Manually logged strings in biometric test app

Bug: 182793560
Change-Id: I27862bd5f67ea291f166a7ac91b03c7c432da64f
2021-04-21 10:52:25 -07:00
Emilian Peev
a20cf2c8a2 Camera: Enable camera extension latency range queries
Allow Camera2 extension clients to query best/worst multi-frame
capture latency ranges if available.

Bug: 179819443
Test: make docs,
atest -c
cts/tests/camera/src/android/hardware/camera2/cts/CameraExtensionCharacteristicsTest.java

Change-Id: I3f8c51d7cefbb58c79e3e75962a7b4d6283d24df
2021-04-21 10:37:54 -07:00
Philip Junker
275f9e2912 Add TestApi to suppress other LightsSession clients
Add TestApi LightsManager#openSession(int priority) to allow sorting of
sessions by descending priority. Assuming priority 0 for public API
LightsManager#openSession().

Bug: 185877106
Test: atest LightsManagerTest
Change-Id: I4a2d9f8982119b47cbcbf77ff43377fecb343112
2021-04-21 10:12:44 +02:00
Evan Severson
6a8d3dc686 Remove package manager feature for toggles
Create a dedicated api in the sensor privacy service to check if the
toggle is supported.

Also address some other api feedback and also rename the older mute
feature to all-sensors so that there are no longer overloaded methods
with different functions.

Test: Checkbuild, CtsSensorPrivacyTestCases, Manual
Fixes: 181681375
Change-Id: I655544846310e864ec8479ce8f93aee2860824f7
2021-04-20 16:37:55 -07:00
Shuzhen Wang
7e2b88237a Camera: Update streamConfigurationMap doc for 1080p min JPEG size
Camera devices meeting performance class requirement will not advertise
JPEG sizes smaller than 1080p.

Test: Build doc
Bug: 184687664
Change-Id: If9a76cb7f80c01a43cd5ba9e91c1f543b81d4d54
2021-04-20 11:29:08 -07:00
Michal Olech
ab5f1f8398 [CEC Configuration] Rename Power Control Mode setting name string
This string is used to refer to configuration settings and when
preserving the values in permanent storage.

Bug: 184813910
Test: atest HdmiControlManagerTest HdmiCecConfigTest
Change-Id: I9c24b627f71b808533ef31d0c371ff7301bc757e
2021-04-20 18:23:20 +02:00
Treehugger Robot
24f475b502 Merge "CEC: Drop TODOs marked as fixed/obsolete" am: 6e7f16ac1e am: 59cb50e06a am: 8380a16e8e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676434

Change-Id: I8cfd3fc1e3287ec2cef799d008dc5bcbcc1881a9
2021-04-19 10:55:33 +00:00
Treehugger Robot
8380a16e8e Merge "CEC: Drop TODOs marked as fixed/obsolete" am: 6e7f16ac1e am: 59cb50e06a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1676434

Change-Id: I88c22d703fdf77f59a480017060c50f7ed19e50b
2021-04-19 10:31:33 +00:00
Treehugger Robot
6e7f16ac1e Merge "CEC: Drop TODOs marked as fixed/obsolete" 2021-04-19 09:46:37 +00:00
Janis Danisevskis
e5ae08e49d Merge "Fix operation auth bound keys." am: b3671c4ab5 am: f941d3fb5b am: 0992040e48
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1677200

Change-Id: Ie4972c2b9da95515b3e98f66af716e7d1fcf156c
2021-04-17 07:09:40 +00:00
Janis Danisevskis
0992040e48 Merge "Fix operation auth bound keys." am: b3671c4ab5 am: f941d3fb5b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1677200

Change-Id: Ia2c52ec3e34b067d61b605fd4bb0bcbc3b420e55
2021-04-17 06:44:19 +00:00
Janis Danisevskis
8c97d4fe79 Fix operation auth bound keys.
CryptoObject still called the legacy AndroidKeystoreProvider which did
not return the correct operation handle for per operation auth bound
keys.

Bug: 184804041
Bug: 185181377
Test: CtsVerifier->Security->Biometric Tests->2a Strong Biometrics +
      Crypto
Merged-In: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
Change-Id: I0bceff0425e7ef32c394f33deda3c78f729c0c6c
2021-04-16 12:55:33 -07:00
Shuzhen Wang
1b639e5f00 Camera: Add new hidden tag for multiResolutionStream support
This addresses the ambiguity when a physical camera backs more than one
logical camera, and only one of the logical cameras support
multi-resolution streams.

Address couple of TODOs on handling interactions between multiResolution
streams and ultra high resolution camera.

Test: Camera CTS, VTS
Bug: 184663916
Change-Id: I370f35bc8e25649134e1a1ba38db0f3ece3b3f1e
2021-04-15 13:30:32 -07:00
Kriti Dang
49fed7b66a Merge "adding a public constructor for DeviceProductInfo. Improving javadoc for #getManufacturePnpId" into sc-dev 2021-04-15 11:11:11 +00:00
Anh Pham
74515037ae Merge "Move isChangeEnabled() to end of the if statement." into sc-dev 2021-04-15 08:08:37 +00:00
Aravind Angadi
9eee708a97 CEC: Drop TODOs marked as fixed/obsolete
Bug: 159901363
Test: None
Change-Id: Ied8bf487857c3fb3f27d92d7dbdd8beeb981442c
2021-04-15 12:52:53 +05:30
Kevin Chyn
875b80655c Move from face-specific settings to generic biometric settings
Fixes: 184965821
Test: On various devices:
      adb shell settings put secure biometric_app_enabled 0/1
      adb shell settings put secure biometric_keyguard_enabled 0/1

Test: On face-only devices that shipped before S:
      Existing settings (settings > security > face unlock) are not
      affected and still work.

      Newly added secure settings do not take effect (as expected)

Test: atest com.android.server.biometrics
Test: atest KeyguardUpdateMonitorTest

Change-Id: Ie0fda46facefd3ecfbbce6ef769d6d8e9fdfb09b
2021-04-14 16:31:28 -07:00
Kriti Dang
c8fe1ddd6c adding a public constructor for DeviceProductInfo.
Improving javadoc for #getManufacturePnpId

Bug: 182424090
Test: atest DisplayTest
Change-Id: I99ce9dae6ace765462efa8d495fb845a6d70aa5e
2021-04-14 12:45:10 +02:00
Anh Pham
4fb8a97b21 Move isChangeEnabled() to end of the if statement.
Bug: 185207500
Test: Build, locally tested a simple app that calls
SensorManager.registerListener() and observed that the log
CompatibilityChangeReporter: Compat change id reported: 136069189
is no longer printed out in logcat.

Change-Id: I8ef197b650bb07638300045d42de96ba3bcd20e2
2021-04-14 11:27:35 +02:00
Joshua Mccloskey
1ce11286e0 Merge "Added additional strings for fpm" into sc-dev 2021-04-13 18:21:01 +00:00
Lais Andrade
f6febe9b65 Merge "Expose vibrator frequency bandwith to the service" into sc-dev 2021-04-13 17:31:18 +00:00
Lais Andrade
b4477092c4 Merge "Add Vibrator.cancel method with usage filters" into sc-dev 2021-04-13 17:30:51 +00:00
Michael Wright
22f7cd1311 Merge "Add DisplayModeDirector support for UDFPS" into sc-dev 2021-04-13 16:43:38 +00:00
Lais Andrade
853dcb5a41 Expose vibrator frequency bandwith to the service
Add hidden APIs to expose the supported frequency range and maximum
amplitudes at each frequency for the device in Vibrator.java.

Also add a hidden method hasFrequencyControl().

Bug: 167947076
Test: VibratorTest
Change-Id: If2d5f8f0aa92223b4a342893f5fd3a1668dfcff1
2021-04-13 14:03:08 +00:00