Home
last modified time | relevance | path

Searched refs:MANAGED_PROFILE_USER_ID (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/
DLockSettingsServiceTests.java98 mService.setSeparateProfileChallengeEnabled(MANAGED_PROFILE_USER_ID, false, null); in testManagedProfileUnifiedChallenge()
100 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
111 mGateKeeperService.clearAuthToken(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallenge()
119 assertNotNull(mGateKeeperService.getAuthToken(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
120 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
134 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
141 assertEquals(0, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallenge()
156 MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallenge()
160 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallenge()
166 mGateKeeperService.clearAuthToken(MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallenge()
[all …]
DSyntheticPasswordTests.java179 disableSyntheticPassword(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallengeMigration()
181 mService.setSeparateProfileChallengeEnabled(MANAGED_PROFILE_USER_ID, false, null); in testManagedProfileUnifiedChallengeMigration()
183 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallengeMigration()
185 … final byte[] profileStorageKey = mStorageManager.getUserUnlockToken(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallengeMigration()
192 enableSyntheticPassword(MANAGED_PROFILE_USER_ID); in testManagedProfileUnifiedChallengeMigration()
200 assertEquals(profileSid, mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallengeMigration()
202 …assertArrayNotSame(profileStorageKey, mStorageManager.getUserUnlockToken(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallengeMigration()
204 assertTrue(hasSyntheticPassword(MANAGED_PROFILE_USER_ID)); in testManagedProfileUnifiedChallengeMigration()
211 …dential(profilePassword, LockPatternUtils.CREDENTIAL_TYPE_PASSWORD, null, MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallengeMigration()
213 final long profileSid = mGateKeeperService.getSecureUserId(MANAGED_PROFILE_USER_ID); in testManagedProfileSeparateChallengeMigration()
[all …]
DBaseLockSettingsServiceTests.java49 protected static final int MANAGED_PROFILE_USER_ID = 12; field in BaseLockSettingsServiceTests
100 installChildProfile(MANAGED_PROFILE_USER_ID); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java614 final int MANAGED_PROFILE_USER_ID = 78; in testSetActivePasswordState_sendToProfiles() local
616 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_sendToProfiles()
639 MockUtils.checkUserHandle(MANAGED_PROFILE_USER_ID)); in testSetActivePasswordState_sendToProfiles()
652 final int MANAGED_PROFILE_USER_ID = 78; in testSetActivePasswordState_notSentToParent() local
654 UserHandle.getUid(MANAGED_PROFILE_USER_ID, DpmMockContext.SYSTEM_UID); in testSetActivePasswordState_notSentToParent()
660 .isSeparateProfileChallengeEnabled(MANAGED_PROFILE_USER_ID); in testSetActivePasswordState_notSentToParent()
667 dpm.reportPasswordChanged(MANAGED_PROFILE_USER_ID); in testSetActivePasswordState_notSentToParent()
672 intent.putExtra(Intent.EXTRA_USER, UserHandle.of(MANAGED_PROFILE_USER_ID)); in testSetActivePasswordState_notSentToParent()
679 MockUtils.checkUserHandle(MANAGED_PROFILE_USER_ID)); in testSetActivePasswordState_notSentToParent()
2691 final int MANAGED_PROFILE_USER_ID = 18; in setup_nonSplitUser_withDo_primaryUser_ManagedProfile() local
[all …]