Home
last modified time | relevance | path

Searched refs:secondaryUserId (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DStorageEscalationTest.kt57 private var secondaryUserId: Int? = null in <lambda>() variable in android.permission.cts.StorageEscalationTest
67 secondaryUserId?.let { userId -> userString = " --user $userId" } in <lambda>()
87 secondaryUserId = userId in <lambda>()
92 secondaryUserId?.let { userId -> in <lambda>()
94 secondaryUserId = null in <lambda>()
101 secondaryUserId?.let { user = UserHandle.of(it) } in <lambda>()
109 secondaryUserId?.let { userId -> in <lambda>()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/qc/
DProfileSwitcherTest.java381 int secondaryUserId = 1001; in onUserPressed_alreadyStartedUser_doesNothing() local
383 UserInfo user2 = generateUser(secondaryUserId, "User2"); in onUserPressed_alreadyStartedUser_doesNothing()
386 mockUmGetVisibleUsers(mUserManager, currentUserId, secondaryUserId); in onUserPressed_alreadyStartedUser_doesNothing()
394 verify(mCarUserManager, never()).switchUser(secondaryUserId); in onUserPressed_alreadyStartedUser_doesNothing()
403 int secondaryUserId = 1001; in onUserPressed_secondaryUser_stopsAndStartsNewUser() local
407 when(mUserTracker.getUserId()).thenReturn(secondaryUserId); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
408 when(mUserTracker.getUserHandle()).thenReturn(UserHandle.of(secondaryUserId)); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
410 UserInfo user2 = generateUser(secondaryUserId, "User2"); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
415 mockUmGetVisibleUsers(mUserManager, currentUserId, secondaryUserId); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
434 .isEqualTo(secondaryUserId); in onUserPressed_secondaryUser_stopsAndStartsNewUser()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/src/com/android/tests/sdksandbox/host/
DSdkSandboxLifecycleHostTest.java171 int secondaryUserId = mUserUtils.createAndStartSecondaryUser(); in testSandboxIsCreatedPerUser() local
172 installPackageAsUser(APP_APK, false, secondaryUserId); in testSandboxIsCreatedPerUser()
419 int secondaryUserId = mUserUtils.createAndStartSecondaryUser(); in testSdkSandboxProcessNameForSecondaryUser() local
421 installPackageAsUser(appApk2, false, secondaryUserId); in testSdkSandboxProcessNameForSecondaryUser()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxStorageHostTest/src/com/android/tests/sdksandbox/host/
DSdkSandboxStorageHostTest.java154 int secondaryUserId = mUserUtils.createAndStartSecondaryUser(); in testSdkDataRootDirectory_IsCreatedOnUserCreate() local
155 final String cePath = getSdkDataRootPath(secondaryUserId, true); in testSdkDataRootDirectory_IsCreatedOnUserCreate()
156 final String dePath = getSdkDataRootPath(secondaryUserId, false); in testSdkDataRootDirectory_IsCreatedOnUserCreate()
691 int secondaryUserId = mUserUtils.createAndStartSecondaryUser(); in testSdkDataPackageDirectory_IsUserSpecific() local
694 final String ceAppPath = getAppDataPath(secondaryUserId, TEST_APP_STORAGE_PACKAGE, true); in testSdkDataPackageDirectory_IsUserSpecific()
695 final String deAppPath = getAppDataPath(secondaryUserId, TEST_APP_STORAGE_PACKAGE, false); in testSdkDataPackageDirectory_IsUserSpecific()
697 getSdkDataPackagePath(secondaryUserId, TEST_APP_STORAGE_PACKAGE, true); in testSdkDataPackageDirectory_IsUserSpecific()
699 getSdkDataPackagePath(secondaryUserId, TEST_APP_STORAGE_PACKAGE, false); in testSdkDataPackageDirectory_IsUserSpecific()
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/
DBlockedNumberProviderTest.java749 int secondaryUserId = 11; in testCanCurrentUserBlockUsers_secondaryUser() local
750 doReturn(secondaryUserId).when(mMockContext).getUserId(); in testCanCurrentUserBlockUsers_secondaryUser()
751 doReturn(false).when(mMockUserManager).isManagedProfile(eq(secondaryUserId)); in testCanCurrentUserBlockUsers_secondaryUser()