| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
createConfirmDeviceCredentialIntent() API is used.
If the app uses createConfirmDeviceCredentialIntent(),
ConfirmDeviceCredentialActivity is the top activity which has "settings"
as package name. Then if the app switches to settings, since previous
foreground check only checks package name, biometric prompt isn't
cancelled. This CL adds a class name check for this case.
Flag: EXEMPT bugfix
Bug: 339532378
Test: manual test with sample app on emulator
Test: atest BiometricActivityTests#testConfirmDeviceCredentialActivityDismiss_whenSwitchToSettings
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:b363da50d853018536fae5d214340a9bd7f2639b)
Merged-In: I722e285cd15869799b9fadd2324014cf3c6d44ad
Change-Id: I722e285cd15869799b9fadd2324014cf3c6d44ad
Change-Id: Ib6b6d28effd418667121ec821576e2799b9dd969
|
| |
|
|
|
|
|
|
|
| |
Don't close BP when getting first onWindowFocusChanged(false) if device
orientation changed.
BUG: 236330327
Test: Reference b/236330327
Change-Id: Idc1e618e1549edf7a578dce52f4962f346f3d69d
|
| |
|
|
|
|
|
|
|
| |
Add dump info under AuthController for dumpsys command
adb shell dumpsys activity service com.android.systemui
Bug: 232723342
Test: atest AuthContainerViewTest AuthControllerTest
Change-Id: I4fdeaf0c47f4e3bb6ca381b7c295dddcce8900a9
|
| |
|
|
|
|
|
|
|
| |
This also adds the request id to the methods that hide the prompt to prevent stale requests from being handled. I wasn't able to reproduce the bug locally but it appears to be caused by these stale events.
Fix: 225275518
Bug: 213899762
Test: atest BiometricServiceTest AuthContainerViewTest
Change-Id: Iac414763dd0012e51b331abe649a50e353df5e1c
|
| |
|
|
|
|
|
|
|
| |
Migrate simple views to Kotlin & remove useless test. Will add new tests in a follow up change.
Bug: 217393533
Test: atest com.android.systemui.biometrics com.android.server.biometrics CommandQueueTest
Test: manual (via BP test app)
Change-Id: Ic8c80344d75f34f4b5f65ef14b61bbb5cddb0349
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Refactor existing tests to remove unnecessary mocks and boilerplate code to
cover more of the real behavior. This is prep for adding new tests in another
change to add the new face and fingerprint behavior.
Bug: 217393533
Test: atest AuthBiometricViewTest AuthContainerViewTest
Test: manual (authenticate using test app)
Change-Id: If984d1c07fee98d2d7a20cb0025ad434ad9977f4
|
| |
|
|
|
|
|
|
| |
Configuration change events are only generated when switching to/from portrait/landscape modes and can't be used for udfps overlays.
Fix: 190832486
Test: manual (put device in landscape, start auth, flip 180 degrees)
Change-Id: If03d8ee3ec479b91eab93622a6e93f00b3f14765
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Makes some fixes to the logic for BiometricPrompt so that it better
supports UDFPS in landscape:
1. Fix measurement used for UDFPS icon placement in landscape
2. Move prompt to correct position when falling back to UDFPS
3. Properly save/restore state for the face -> fingerprint prompt
Test: atest com.android.systemui.biometrics
Test: Manually tested face and/or fingerprint auth w/ device rotation
Fixes: 190832486
Change-Id: Iac32e97f870998d9815817c348e23cfd9d020215
|
| |
|
|
|
|
| |
Bug: 189164072
Test: atest com.android.systemui.biometrics com.android.server.biometrics
Change-Id: I7fe8085dc4a4994c591bb4be20309ffb46bb06e9
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adds AuthDialog.LayoutParams which should be used to hold any
layout or measurement related information.
Adds onMeasureInternal which returns AuthDialog.LayoutParams
so that subclasses can return custom layout parameters while
keeping common things like setMeasuredDimension in the
base class.
The AuthBiometricUdfpsView in portrait mode includes a
spacer whose height is calculated based on the sizes of
everything that's below the physical sensor, including
1) Text indicator area (for error messages)
2) Footer button bar
3) BiometricPrompt distance to navigation bar
4) Height of navigation bar
The indicator text is the only non-static element below the
icon. Changes it to marquee on a single line for now.
AuthBiometricView animates the icon's holder instead of the
icon itself. Otherwise, the holder would need to allow drawing
outside of its bounds.
Test: No effect on existing devices
Test: atest com.android.systemui.biometrics
Fixes: 171071087
Change-Id: I3b62f02a44f4d3cf6925d7782451596fbf8db0e1
|
| |
|
|
|
|
|
|
| |
Test: manual test with BiometricPromptDemo
Test: atest com.android.systemui.biometrics
Test: atest BiometricServiceTest
Change-Id: I83547c28f1b164dc772b01861430f0d479e47a75
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) AuthContainerView can be started in either `biometric` or `credential`
views. This is to potentially support an API where only credential
is allowed/requested.
2) When onSaveState, AuthContainerView saves both the states of
`biometric` and `credential` visibility. In the case of configuration
change, AuthController is responsibile for checking the visibility
and creating a AuthContainerView with the correct initial view.
3) When AuthCredentialView is the initial view, it owns the panel
expansion.
4) Added landscape layout
Bug: 140127687
Test: atest com.android.systemui.biometrics
Test: BiometricPromptDemo, use pattern, rotate device. auth, cancel,
demo logs are correct.
Change-Id: I1f501cf13b924353f251a69757fdb9d7e0bf1d21
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Includes lock icon, title, subtitle, description, lock pattern view.
Corner radius and padding animates nicely from !=0 --> 0.
Support for password/pin will come in a subsequent CL.
Unit tests for AuthCredentialView will be added when
password/pin are implemented.
Support for persisting across configuration changes
and landscape view will also be added in a subsequent
change.
Test: BiometricPromptDemo with the following:
1) Confirm pattern, callback received
2) Rejected, error string shown
3) Lockout (5 attempts), countdown string shown,
pattern view disabled until countdown is over
4) Cancel pattern auth, callback received
Test: atest BiometricServiceTest
Test: atest com.android.systemui.biometrics
Change-Id: Idc01e33be0074a6c8a43f60b172a4391bfbe5e8a
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
If the dialog goes through configuration change but is already animating
away, we should send the callback immediately. Similary, there is no need
to re-create the dialog in onConfigurationChanged, since the lifecycle
is already ended and the callback is already sent to the client.
Bug: 123378871
Test: atest com.android.systemui.biometrics
Test: manual
Change-Id: I5c771982a3eef1a0583fb5171ffc7a9d91756396
|
| |
|
|
|
|
|
|
|
|
| |
Bug: 123378871
Test: manual test, rotating device during various stages of
authentication
Test: atest com.android.systemui.biometrics
Change-Id: I4130f79975f58e5141c9d69e2689680ceaa419ed
|
|
|
Also flatten the directory, there isn't much point in having a sub package
right now.
Bug: 123378871
Test: atest com.android.systemui.biometrics
Change-Id: I598f1909f6e6940d73da37921d9b5cd2c02f4331
|