Update Settings to match Framework
Bug: 72825012 Test: atest SettingsRoboTests Change-Id: Ie59347bcb5d6748b3e684541b390c8e5f6db3f4a
This commit is contained in:
@@ -110,7 +110,7 @@ public final class SetNewPasswordControllerTest {
|
||||
// GIVEN the device supports face.
|
||||
when(mFaceManager.isHardwareDetected()).thenReturn(true);
|
||||
// GIVEN there are no enrolled face.
|
||||
when(mFaceManager.hasEnrolledFaces(CURRENT_USER_ID)).thenReturn(false);
|
||||
when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false);
|
||||
// GIVEN DPC does not disallow face for keyguard usage.
|
||||
when(mDevicePolicyManager.getKeyguardDisabledFeatures(any(ComponentName.class)))
|
||||
.thenReturn(0);
|
||||
@@ -177,7 +177,7 @@ public final class SetNewPasswordControllerTest {
|
||||
// GIVEN the device does NOT support face.
|
||||
when(mFaceManager.isHardwareDetected()).thenReturn(false);
|
||||
// GIVEN there are no enrolled face.
|
||||
when(mFaceManager.hasEnrolledFaces(CURRENT_USER_ID)).thenReturn(false);
|
||||
when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(false);
|
||||
// GIVEN DPC does not disallow face for keyguard usage.
|
||||
when(mDevicePolicyManager.getKeyguardDisabledFeatures(any(ComponentName.class)))
|
||||
.thenReturn(0);
|
||||
@@ -215,7 +215,7 @@ public final class SetNewPasswordControllerTest {
|
||||
// GIVEN the device supports face.
|
||||
when(mFaceManager.isHardwareDetected()).thenReturn(true);
|
||||
// GIVEN there are no enrolled face.
|
||||
when(mFaceManager.hasEnrolledFaces(CURRENT_USER_ID)).thenReturn(true);
|
||||
when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true);
|
||||
// GIVEN DPC does not disallow face for keyguard usage.
|
||||
when(mDevicePolicyManager.getKeyguardDisabledFeatures(any(ComponentName.class)))
|
||||
.thenReturn(0);
|
||||
@@ -253,7 +253,7 @@ public final class SetNewPasswordControllerTest {
|
||||
// GIVEN the device supports face.
|
||||
when(mFaceManager.isHardwareDetected()).thenReturn(true);
|
||||
// GIVEN there is an enrolled face.
|
||||
when(mFaceManager.hasEnrolledFaces(CURRENT_USER_ID)).thenReturn(true);
|
||||
when(mFaceManager.hasEnrolledTemplates(CURRENT_USER_ID)).thenReturn(true);
|
||||
// GIVEN DPC disallows face for keyguard usage.
|
||||
when(mDevicePolicyManager.getKeyguardDisabledFeatures(any(ComponentName.class)))
|
||||
.thenReturn(DevicePolicyManager.KEYGUARD_DISABLE_FACE);
|
||||
|
Reference in New Issue
Block a user