Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 – 15 of 15) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DIsolatedService.java44 int currentUserId = getCurrentUserId();
46 assertDirDoesNotExist("/data/misc/profiles/cur/" + currentUserId + "/"
54 assertDirDoesNotExist("/data/misc/profiles/cur/" + currentUserId + "/"
63 assertDirDoesNotExist("/data/misc/profiles/cur/" + currentUserId + "/"
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java116 int currentUserId = getCurrentUserId(); in grantPermissions() local
119 currentUserId, perm); in grantPermissions()
124 int currentUserId = getCurrentUserId(); in revokePermissions() local
127 currentUserId, perm); in revokePermissions()
DLegacyStorageHostTest.java56 int currentUserId = getCurrentUserId(); in grantPermissions() local
59 currentUserId, perm); in grantPermissions()
64 int currentUserId = getCurrentUserId(); in revokePermissions() local
67 currentUserId, perm); in revokePermissions()
DScopedStorageHostTest.java322 int currentUserId = getCurrentUserId(); in grantPermissionsToPackage() local
325 currentUserId, packageName, perm); in grantPermissionsToPackage()
334 int currentUserId = getCurrentUserId(); in revokePermissions() local
337 currentUserId, perm); in revokePermissions()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DTestAppCallbacksReceiver.java138 int currentUserId = ActivityManager.getCurrentUser(); in sendBroadcast() local
142 + currentUserId + " using " + bridgeIntent); in sendBroadcast()
143 context.sendBroadcastAsUser(bridgeIntent, UserHandle.of(currentUserId)); in sendBroadcast()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java77 int currentUserId = mDevice.getCurrentUser(); in setUp() local
78 mInitialUser = Optional.of(currentUserId); in setUp()
82 if (currentUserId != primaryUserId) { in setUp()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDistractingPackageTest.java102 final int currentUserId = getCurrentUserId(); in testShouldHideFromSuggestions() local
106 UserHandle.of(currentUserId))); in testShouldHideFromSuggestions()
111 UserHandle.of(currentUserId))); in testShouldHideFromSuggestions()
DSuspendPackagesTest.java198 final int currentUserId = getCurrentUserId(); in testLauncherCallback() local
217 if (user.getIdentifier() != currentUserId) { in testLauncherCallback()
219 + ", current user: " + currentUserId + ". "); in testLauncherCallback()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java83 int currentUserId = getDevice().getCurrentUser(); in tearDown() local
84 if (currentUserId != mInitialUserId) { in tearDown()
85 CLog.w("User changed during test (to %d). Switching back to %d", currentUserId, in tearDown()
/cts/hostsidetests/car/src/android/car/cts/
DCarHostJUnit4TestCase.java108 int currentUserId = getCurrentUserId(); in restoreUsersState() local
111 mInitialUserId, currentUserId, mUsersToBeRemoved, mInitialMaximumNumberOfUsers); in restoreUsersState()
112 if (currentUserId != mInitialUserId) { in restoreUsersState()
113 CLog.i("Switching back from %d to %d", currentUserId, mInitialUserId); in restoreUsersState()
/cts/tests/tests/content/src/android/content/pm/cts/
DApplicationInfoTest.java171 int currentUserId = Process.myUserHandle().getIdentifier(); in verifyDefaultValues() local
187 assertEquals("/data/user/" + currentUserId + "/" + SYNC_ACCOUNT_ACCESS_STUB_PACKAGE_NAME, in verifyDefaultValues()
189 assertEquals("/data/user_de/" + currentUserId + "/" + SYNC_ACCOUNT_ACCESS_STUB_PACKAGE_NAME, in verifyDefaultValues()
191 assertEquals("/data/user/" + currentUserId + "/" + SYNC_ACCOUNT_ACCESS_STUB_PACKAGE_NAME, in verifyDefaultValues()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUtils.java148 int currentUserId = device.getCurrentUser(); in prepareMultipleUsers() local
152 } else if (userIds[i] != currentUserId) { in prepareMultipleUsers()
/cts/tests/tests/permission/src/android/permission/cts/
DLocationAccessCheckTest.java572 int currentUserId = myUserHandle().getIdentifier(); in resetPermissionController() local
579 if (job.dump.sourceUserId == currentUserId) { in resetPermissionController()
606 if (job.dump.sourceUserId == currentUserId in resetPermissionController()
/cts/tests/tests/media/src/android/media/cts/
DAudioRecordTest.java688 int currentUserId = Process.myUserHandle().getIdentifier(); in testRecordNoDataForIdleUids() local
694 makeMyUidStateActive(packageName, currentUserId); in testRecordNoDataForIdleUids()
728 makeMyUidStateIdle(packageName, currentUserId); in testRecordNoDataForIdleUids()
737 makeMyUidStateActive(packageName, currentUserId); in testRecordNoDataForIdleUids()
747 resetMyUidState(packageName, currentUserId); in testRecordNoDataForIdleUids()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java269 int currentUserId = ActivityManager.getCurrentUser(); in testCreateAndManageUser_LeaveAllSystemApps() local