/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 118 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() 119 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() 120 mService.setLockCredential(newPassword, password, PRIMARY_USER_ID); in testSyntheticPasswordChangeCredential() 122 newPassword, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); in testSyntheticPasswordChangeCredential() 123 assertEquals(sid, mGateKeeperService.getSecureUserId(PRIMARY_USER_ID)); in testSyntheticPasswordChangeCredential() 131 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordVerifyCredential() 133 password, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); in testSyntheticPasswordVerifyCredential() 136 badPassword, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); in testSyntheticPasswordVerifyCredential() 144 initializeCredentialUnderSP(password, PRIMARY_USER_ID); in testSyntheticPasswordClearCredential() 145 long sid = mGateKeeperService.getSecureUserId(PRIMARY_USER_ID); in testSyntheticPasswordClearCredential() [all …]
|
D | LockSettingsStrongAuthTest.java | 61 private static final int PRIMARY_USER_ID = 0; field in LockSettingsStrongAuthTest 92 mStrongAuth.scheduleNonStrongBiometricIdleTimeout(PRIMARY_USER_ID); in testScheduleNonStrongBiometricIdleTimeout() 96 .mNonStrongBiometricIdleTimeoutAlarmListener.get(PRIMARY_USER_ID); in testScheduleNonStrongBiometricIdleTimeout() 105 mStrongAuth.setIsNonStrongBiometricAllowed(false /* allowed */, PRIMARY_USER_ID); in testSetIsNonStrongBiometricAllowed_disallowed() 110 .get(PRIMARY_USER_ID, mDefaultIsNonStrongBiometricAllowed)); in testSetIsNonStrongBiometricAllowed_disallowed() 118 mStrongAuth.reportSuccessfulBiometricUnlock(false /* isStrongBiometric */, PRIMARY_USER_ID); in testReportSuccessfulBiometricUnlock_nonStrongBiometric_fallbackTimeout() 122 mStrongAuth.mNonStrongBiometricTimeoutAlarmListener.get(PRIMARY_USER_ID); in testReportSuccessfulBiometricUnlock_nonStrongBiometric_fallbackTimeout() 133 PRIMARY_USER_ID); in testRequireStrongAuth_nonStrongBiometric_fallbackTimeout() 138 verifyStrongAuthFlags(expectedFlag, PRIMARY_USER_ID); in testRequireStrongAuth_nonStrongBiometric_fallbackTimeout() 144 mStrongAuth.scheduleNonStrongBiometricIdleTimeout(PRIMARY_USER_ID); in testReportSuccessfulBiometricUnlock_nonStrongBiometric_cancelIdleTimeout() [all …]
|
D | LockSettingsServiceTests.java | 62 testCreateCredential(PRIMARY_USER_ID, newPassword("password")); in testCreatePasswordPrimaryUser() 67 testCreateCredentialFailsWithoutLockScreen(PRIMARY_USER_ID, newPassword("password")); in testCreatePasswordFailsWithoutLockScreen() 72 testCreateCredential(PRIMARY_USER_ID, newPattern("123456789")); in testCreatePatternPrimaryUser() 77 testCreateCredentialFailsWithoutLockScreen(PRIMARY_USER_ID, newPattern("123456789")); in testCreatePatternFailsWithoutLockScreen() 82 testChangeCredentials(PRIMARY_USER_ID, newPattern("78963214"), newPassword("asdfghjk")); in testChangePasswordPrimaryUser() 87 testChangeCredentials(PRIMARY_USER_ID, newPassword("!£$%^&*(())"), newPattern("1596321")); in testChangePatternPrimaryUser() 93 initializeStorageWithCredential(PRIMARY_USER_ID, newPassword("password"), sid); in testChangePasswordFailPrimaryUser() 96 PRIMARY_USER_ID)); in testChangePasswordFailPrimaryUser() 97 assertVerifyCredentials(PRIMARY_USER_ID, newPassword("password"), sid); in testChangePasswordFailPrimaryUser() 102 initializeStorageWithCredential(PRIMARY_USER_ID, newPassword("password"), 1234); in testClearPasswordPrimaryUser() [all …]
|
D | LockscreenFrpTest.java | 51 mService.setLockCredential(newPin("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_setPin() 61 mService.setLockCredential(newPattern("4321"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_setPattern() 71 mService.setLockCredential(newPassword("4321"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_setPassword() 81 mService.setLockCredential(newPassword("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_changeCredential() 82 mService.setLockCredential(newPattern("5678"), newPassword("1234"), PRIMARY_USER_ID); in testFrpCredential_changeCredential() 92 mService.setLockCredential(newPassword("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_removeCredential() 95 mService.setLockCredential(nonePassword(), newPassword("1234"), PRIMARY_USER_ID); in testFrpCredential_removeCredential() 101 mService.setLockCredential(newPin("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_cannotVerifyAfterProvsioning() 111 mService.setLockCredential(newPin("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_legacyPinTypePersistentData() 128 mService.setLockCredential(newPassword("1234"), nonePassword(), PRIMARY_USER_ID); in testFrpCredential_legacyPasswordTypePersistentData()
|
D | RebootEscrowManagerTests.java | 83 protected static final int PRIMARY_USER_ID = 0; field in RebootEscrowManagerTests 281 users.add(new UserInfo(PRIMARY_USER_ID, "primary", FLAG_PRIMARY)); in setUp_baseServices() 286 when(mCallbacks.isUserSecure(PRIMARY_USER_ID)).thenReturn(true); in setUp_baseServices() 309 mService.callToRebootEscrowIfNeeded(PRIMARY_USER_ID, FAKE_SP_VERSION, FAKE_AUTH_TOKEN); in prepareRebootEscrow_Success() 321 mService.callToRebootEscrowIfNeeded(PRIMARY_USER_ID, FAKE_SP_VERSION, FAKE_AUTH_TOKEN); in prepareRebootEscrowServerBased_Success() 332 mService.callToRebootEscrowIfNeeded(PRIMARY_USER_ID, FAKE_SP_VERSION, FAKE_AUTH_TOKEN); in prepareRebootEscrow_ClearCredentials_Success() 356 mService.callToRebootEscrowIfNeeded(PRIMARY_USER_ID, FAKE_SP_VERSION, FAKE_AUTH_TOKEN); in armService_Success() 368 assertTrue(mStorage.hasRebootEscrow(PRIMARY_USER_ID)); in armService_Success() 380 mService.callToRebootEscrowIfNeeded(PRIMARY_USER_ID, FAKE_SP_VERSION, FAKE_AUTH_TOKEN); in armServiceServerBased_Success() 389 assertTrue(mStorage.hasRebootEscrow(PRIMARY_USER_ID)); in armServiceServerBased_Success() [all …]
|
D | BaseLockSettingsServiceTests.java | 72 protected static final int PRIMARY_USER_ID = 0; field in BaseLockSettingsServiceTests 77 private static final UserInfo PRIMARY_USER_INFO = new UserInfo(PRIMARY_USER_ID, null, null, 158 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(PRIMARY_USER_INFO); in setUp_baseServices() 187 mockBiometricsHardwareFingerprintsAndTemplates(PRIMARY_USER_ID); in setUp_baseServices() 197 userInfo.profileGroupId = PRIMARY_USER_ID; in installChildProfile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/webkit/ |
D | TestSystemImpl.java | 42 public static final int PRIMARY_USER_ID = 0; field in TestSystemImpl 49 mUsers.add(PRIMARY_USER_ID); in TestSystemImpl() 103 PackageInfo ret = userPackages.get(PRIMARY_USER_ID); in getPackageInfoForProvider() 129 setPackageInfoForUser(PRIMARY_USER_ID, pi); in setPackageInfo() 146 mPackages.get(packageName).remove(PRIMARY_USER_ID); in removePackageInfo() 155 pi = userPackages.get(PRIMARY_USER_ID); in getFactoryPackageVersion()
|
D | WebViewUpdateServiceTest.java | 101 setEnabledAndValidPackageInfosForUser(TestSystemImpl.PRIMARY_USER_ID, providers); in setEnabledAndValidPackageInfos() 349 WebViewUpdateService.PACKAGE_ADDED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingEmptyWebviewPackages() 358 WebViewUpdateService.PACKAGE_ADDED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingEmptyWebviewPackages() 388 WebViewUpdateService.PACKAGE_ADDED_REPLACED, TestSystemImpl.PRIMARY_USER_ID); in testFailListingInvalidWebviewPackage() 484 … secondPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkChangingProviderDuringRelroCreation() 494 … firstPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in checkChangingProviderDuringRelroCreation() 532 testPackage, WebViewUpdateService.PACKAGE_CHANGED, TestSystemImpl.PRIMARY_USER_ID); in testFallbackPackageEnabling() 566 WebViewUpdateService.PACKAGE_ADDED_REPLACED, TestSystemImpl.PRIMARY_USER_ID); in testInstallingPrimaryPackage() 609 int userIdToChangePackageFor = multiUser ? secondaryUserId : TestSystemImpl.PRIMARY_USER_ID; in checkRemovingPrimarySelectsSecondary() 614 setEnabledAndValidPackageInfosForUser(TestSystemImpl.PRIMARY_USER_ID, packages); in checkRemovingPrimarySelectsSecondary() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 154 final int PRIMARY_USER_ID = 0; in testWorkAccount() local 156 List<UserInfo> profiles = Arrays.asList(new UserInfo(PRIMARY_USER_ID, "Primary", in testWorkAccount()
|