/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/ |
D | IsolatedService.java | 44 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/ |
D | ScopedStorageCoreHostTest.java | 116 int currentUserId = getCurrentUserId(); in grantPermissions() local 119 currentUserId, perm); in grantPermissions() 124 int currentUserId = getCurrentUserId(); in revokePermissions() local 127 currentUserId, perm); in revokePermissions()
|
D | LegacyStorageHostTest.java | 56 int currentUserId = getCurrentUserId(); in grantPermissions() local 59 currentUserId, perm); in grantPermissions() 64 int currentUserId = getCurrentUserId(); in revokePermissions() local 67 currentUserId, perm); in revokePermissions()
|
D | ScopedStorageHostTest.java | 322 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/ |
D | TestAppCallbacksReceiver.java | 138 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/ |
D | BaseMultiUserBackupHostSideTest.java | 77 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/ |
D | DistractingPackageTest.java | 102 final int currentUserId = getCurrentUserId(); in testShouldHideFromSuggestions() local 106 UserHandle.of(currentUserId))); in testShouldHideFromSuggestions() 111 UserHandle.of(currentUserId))); in testShouldHideFromSuggestions()
|
D | SuspendPackagesTest.java | 198 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/ |
D | BaseMultiUserTest.java | 83 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/ |
D | CarHostJUnit4TestCase.java | 108 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/ |
D | ApplicationInfoTest.java | 171 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/ |
D | Utils.java | 148 int currentUserId = device.getCurrentUser(); in prepareMultipleUsers() local 152 } else if (userIds[i] != currentUserId) { in prepareMultipleUsers()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | LocationAccessCheckTest.java | 572 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/ |
D | AudioRecordTest.java | 688 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/ |
D | CreateAndManageUserTest.java | 269 int currentUserId = ActivityManager.getCurrentUser(); in testCreateAndManageUser_LeaveAllSystemApps() local
|