Home
last modified time | relevance | path

Searched refs:TEST_USER_ID (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncTaskTest.java89 private static final int TEST_USER_ID = 1000; field in KeySyncTaskTest
125 mRecoverableKeyStoreDb.setRecoverySecretTypes(TEST_USER_ID, TEST_RECOVERY_AGENT_UID, in setUp()
127 mRecoverableKeyStoreDb.setRecoverySecretTypes(TEST_USER_ID, TEST_RECOVERY_AGENT_UID2, in setUp()
130 mRecoverableKeyStoreDb.setActiveRootOfTrust(TEST_USER_ID, TEST_RECOVERY_AGENT_UID, in setUp()
132 mRecoverableKeyStoreDb.setActiveRootOfTrust(TEST_USER_ID, TEST_RECOVERY_AGENT_UID2, in setUp()
140 TEST_USER_ID, in setUp()
150 when(mPlatformKeyManager.getDecryptKey(TEST_USER_ID)).thenReturn( in setUp()
257 mRecoverableKeyStoreDb.setPlatformKeyGenerationId(TEST_USER_ID, TEST_GENERATION_ID); in run_doesNotSendAnythingIfNoRecoveryAgentSet()
259 TEST_USER_ID, in run_doesNotSendAnythingIfNoRecoveryAgentSet()
273 mRecoverableKeyStoreDb.setPlatformKeyGenerationId(TEST_USER_ID, TEST_GENERATION_ID); in run_doesNotSendAnythingIfNoDeviceIdIsSet()
[all …]
DRecoverableKeyGeneratorTest.java61 private static final int TEST_USER_ID = 1000; field in RecoverableKeyGeneratorTest
99 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NULL_METADATA); in generateAndStoreKey_storesWrappedKey_nullMetadata()
109 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NON_NULL_METADATA); in generateAndStoreKey_storesWrappedKey_nonNullMetadata()
119 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NON_NULL_METADATA); in generateAndStoreKey_returnsRawMaterialOfCorrectLength()
127 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, NULL_METADATA); in generateAndStoreKey_storesTheWrappedVersionOfTheRawMaterial()
140 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, in importKey_storesNullMetadata()
149 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, in importKey_storesNonNullMetadata()
160 mPlatformKey, TEST_USER_ID, KEYSTORE_UID_SELF, TEST_ALIAS, rawMaterial, in importKey_storesTheWrappedVersionOfTheRawMaterial()
DRecoverableKeyStoreManagerTest.java129 private static final int TEST_USER_ID = 10009; field in RecoverableKeyStoreManagerTest
183 when(mKeyguardManager.isDeviceSecure(TEST_USER_ID)).thenReturn(true); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySessionStorageTest.java39 private static final int TEST_USER_ID = 696; field in RecoverySessionStorageTest
52 storage.add(TEST_USER_ID, new RecoverySessionStorage.Entry( in size_incrementsAfterAdd()
61 storage.add(TEST_USER_ID, new RecoverySessionStorage.Entry( in size_decrementsAfterRemove()
63 storage.remove(TEST_USER_ID); in size_decrementsAfterRemove()
73 storage.add(TEST_USER_ID, entry); in remove_overwritesLskfHashMemory()
75 storage.remove(TEST_USER_ID); in remove_overwritesLskfHashMemory()
85 storage.add(TEST_USER_ID, entry); in remove_overwritesKeyClaimantMemory()
87 storage.remove(TEST_USER_ID); in remove_overwritesKeyClaimantMemory()
95 storage.add(TEST_USER_ID, new RecoverySessionStorage.Entry( in remove_deletesSpecificSession()
100 storage.add(TEST_USER_ID, new RecoverySessionStorage.Entry( in remove_deletesSpecificSession()
[all …]
DRecoverableKeyStoreDbHelperTest.java45 private static final long TEST_USER_ID = 10L; field in RecoverableKeyStoreDbHelperTest
163 values.put(RootOfTrustEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in isRootOfTrustTableAvailable()
175 values.put(KeysEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in checkAllColumns_v4()
188 values.put(UserMetadataEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in checkAllColumns_v4()
197 values.put(RecoveryServiceMetadataEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in checkAllColumns_v4()
224 values.put(KeysEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in checkAllColumns_latest()
241 values.put(UserMetadataEntry.COLUMN_NAME_USER_ID, TEST_USER_ID); in checkAllColumns_latest()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserDataPreparerTest.java64 private static final int TEST_USER_ID = 10; field in UserDataPreparerTest
97 File userDeDir = mUserDataPreparer.getDataUserDeDirectory(null, TEST_USER_ID); in testPrepareUserData_De()
99 File systemDeDir = mUserDataPreparer.getDataSystemDeDirectory(TEST_USER_ID); in testPrepareUserData_De()
102 .prepareUserData(TEST_USER_ID, TEST_USER_SERIAL, StorageManager.FLAG_STORAGE_DE); in testPrepareUserData_De()
103 verify(mStorageManagerMock).prepareUserStorage(isNull(String.class), eq(TEST_USER_ID), in testPrepareUserData_De()
105 verify(mInstaller).createUserData(isNull(String.class), eq(TEST_USER_ID), in testPrepareUserData_De()
115 File userCeDir = mUserDataPreparer.getDataUserCeDirectory(null, TEST_USER_ID); in testPrepareUserData_Ce()
117 File systemCeDir = mUserDataPreparer.getDataSystemCeDirectory(TEST_USER_ID); in testPrepareUserData_Ce()
120 .prepareUserData(TEST_USER_ID, TEST_USER_SERIAL, StorageManager.FLAG_STORAGE_CE); in testPrepareUserData_Ce()
121 verify(mStorageManagerMock).prepareUserStorage(isNull(String.class), eq(TEST_USER_ID), in testPrepareUserData_Ce()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java69 private static final int TEST_USER_ID = 1; field in ActivityStartInterceptorTest
118 mInterceptor.setStates(TEST_USER_ID, TEST_REAL_CALLING_PID, TEST_REAL_CALLING_UID, in setUp()
129 when(mDevicePolicyManager.createShowAdminSupportIntent(TEST_USER_ID, true)) in setUp()
135 when(mUserManager.getProfileParent(TEST_USER_ID)).thenReturn(PARENT_USER_INFO); in setUp()
140 nullable(CharSequence.class), nullable(CharSequence.class), eq(TEST_USER_ID))) in setUp()
145 when(mPackageManager.getHarmfulAppWarning(TEST_PACKAGE_NAME, TEST_USER_ID)) in setUp()
158 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedByAdminPackage()
176 when(mPackageManagerInternal.getSuspendingPackage(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedPackage()
178 when(mPackageManagerInternal.getSuspendedDialogInfo(TEST_PACKAGE_NAME, TEST_USER_ID)) in testSuspendedPackage()
190 assertEquals(TEST_USER_ID, mInterceptor.mIntent.getIntExtra(Intent.EXTRA_USER_ID, -1000)); in testSuspendedPackage()
[all …]
DLockTaskControllerTest.java100 private static final int TEST_USER_ID = 123; field in LockTaskControllerTest
275 mLockTaskController.updateLockTaskFeatures(TEST_USER_ID, LOCK_TASK_FEATURE_KEYGUARD); in testLockTaskViolation_emergencyCall()
283 mLockTaskController.updateLockTaskFeatures(TEST_USER_ID, LOCK_TASK_FEATURE_NONE); in testLockTaskViolation_emergencyCall()
505 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, pkg)); in testUpdateLockTaskPackages()
511 mLockTaskController.updateLockTaskPackages(TEST_USER_ID, whitelist1); in testUpdateLockTaskPackages()
516 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, pkg)); in testUpdateLockTaskPackages()
522 mLockTaskController.updateLockTaskPackages(TEST_USER_ID, whitelist2); in testUpdateLockTaskPackages()
526 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, TEST_PACKAGE_NAME)); in testUpdateLockTaskPackages()
528 mLockTaskController.isPackageWhitelisted(TEST_USER_ID, TEST_PACKAGE_NAME_2)); in testUpdateLockTaskPackages()
537 mLockTaskController.updateLockTaskPackages(TEST_USER_ID, whitelist); in testUpdateLockTaskPackages_taskRemoved()
[all …]
DLaunchParamsPersisterTests.java68 private static final int TEST_USER_ID = 3; field in LaunchParamsPersisterTests
117 mTestTask.userId = TEST_USER_ID; in setUp()
123 mTaskWithDifferentComponent.userId = TEST_USER_ID; in setUp()
171 .setUid(TEST_USER_ID * UserHandle.PER_USER_RANGE).build(); in testFetchesSameResultWithActivity()
221 target.onUnlockUser(TEST_USER_ID); in testSavesAndRestoresLaunchParamsAcrossInstances()
238 .setUserId(TEST_USER_ID) in testClearsRecordsOfTheUserOnUserCleanUp()
258 mTarget.onCleanupUser(TEST_USER_ID); in testClearsRecordsOfTheUserOnUserCleanUp()
290 target.onUnlockUser(TEST_USER_ID); in testClearsWriteQueueItem()
307 target.onUnlockUser(TEST_USER_ID); in testClearsFile()
319 mObserver.onPackageRemoved(TEST_COMPONENT.getPackageName(), TEST_USER_ID); in testClearsRecordInMemoryOnPackageUninstalled() local
[all …]
DRecentsAnimationTest.java65 private static final int TEST_USER_ID = 100; field in RecentsAnimationTest
276 otherUserHomeActivity.getTaskRecord().userId = TEST_USER_ID; in testMultipleUserHomeActivity_findUserHomeTask()
286 doReturn(TEST_USER_ID).when(mService).getCurrentUserId(); in testMultipleUserHomeActivity_findUserHomeTask()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java106 private static final int TEST_USER_ID = 100; field in UserControllerTest
152 setUpUser(TEST_USER_ID, 0); in setUp()
164 mUserController.startUser(TEST_USER_ID, true /* foreground */); in testStartUser_foreground()
176 mUserController.startUser(TEST_USER_ID, false /* foreground */); in testStartUser_background()
186 mUserController.startUser(TEST_USER_ID, true /* foreground */); in testStartUserUIDisabled()
210 assertEquals(TEST_USER_ID, userState.mHandle.getIdentifier()); in startForegroundUserAssertions()
213 assertEquals("Unexpected new user id", TEST_USER_ID, reportMsg.arg2); in startForegroundUserAssertions()
236 mUserController.startUser(TEST_USER_ID, true); in testDispatchUserSwitch()
245 verify(observer, times(1)).onUserSwitching(eq(TEST_USER_ID), any()); in testDispatchUserSwitch()
253 assertEquals(TEST_USER_ID, userState.mHandle.getIdentifier()); in testDispatchUserSwitch()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/inputmethod/
DEditorInfoTest.java37 private static final int TEST_USER_ID = 42; field in EditorInfoTest
57 editorInfo.targetInputMethodUser = UserHandle.of(TEST_USER_ID); in testNonNullTargetInputMethodUserParcelable()
58 assertEquals(UserHandle.of(TEST_USER_ID), cloneViaParcel(editorInfo).targetInputMethodUser); in testNonNullTargetInputMethodUserParcelable()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOverlayPackagesProviderTest.java58 private static final int TEST_USER_ID = 123; field in OverlayPackagesProviderTest
274 mHelper.getNonRequiredApps(TEST_MDM_COMPONENT_NAME, TEST_USER_ID, action)); in verifyAppsAreNonRequired()
344 when(mInjector.getInputMethodListAsUser(eq(TEST_USER_ID))).thenReturn(inputMethods); in setSystemInputMethods()
377 assertEquals(userId, TEST_USER_ID); in queryIntentActivitiesAsUser()