/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/ |
D | AppBTests.java | 21 import static com.android.cts.appdataisolation.common.UserUtils.getCurrentUserId; 51 assertDirDoesNotExist("/data/misc/profiles/cur/" + getCurrentUserId() + "/" in testCanNotAccessAppADataDir() 61 if (getCurrentUserId() == UserHandle.USER_SYSTEM) { in testCanAccessAppADataDir() 64 assertDirIsAccessible("/data/misc/profiles/cur/" + getCurrentUserId() + "/" + APPA_PKG); in testCanAccessAppADataDir()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/ |
D | AppCloningHostTest.java | 186 String.valueOf(getCurrentUserId()), in testRemoveClonedProfileMediaProviderCleanup() 195 runContentProviderCommand("delete", String.valueOf(getCurrentUserId()), in testRemoveClonedProfileMediaProviderCleanup() 224 int currentUserId = getCurrentUserId(); in testCrossUserMediaAccess() 262 int currentUserId = getCurrentUserId(); in testGetStorageVolumesIncludingSharedProfiles() 279 int currentUserId = getCurrentUserId(); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp() 309 int currentUserId = getCurrentUserId(); in testDeletionOfAppInNotParentProfile_notDeletesCloneApp() 360 int currentUserId = getCurrentUserId(); in testMediaCreationWithContentOwnerSpecifiedAsCloneUser() 394 int currentUserId = getCurrentUserId(); in testMediaCreationWithContentOwnerSpecifiedAsParentUser() 423 int currentUserId = getCurrentUserId(); in testCrashingMediaProviderDoesNotAffectVolumeMounts()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | Helper.java | 93 final int userId = getCurrentUserId(); in setService() 103 final int userId = getCurrentUserId(); in resetService() 112 final int userId = getCurrentUserId(); in setDefaultServiceEnabled() 186 private static int getCurrentUserId() { in getCurrentUserId() method in Helper
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | AppCloningDeviceTest.java | 52 Integer.parseInt(getCurrentUserId())); in testInsertFilesInDirectoryViaMediaProvider() 79 Integer.parseInt(getCurrentUserId())); in testGetFilesInDirectoryViaMediaProviderRespectsUserId() 98 private String getCurrentUserId() { in getCurrentUserId() method in AppCloningDeviceTest
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/ |
D | IsolatedService.java | 21 import static com.android.cts.appdataisolation.common.UserUtils.getCurrentUserId; 44 int currentUserId = getCurrentUserId();
|
D | AppATests.java | 33 import static com.android.cts.appdataisolation.common.UserUtils.getCurrentUserId; 202 assertDirIsAccessible("/data/misc/profiles/cur/"+ getCurrentUserId() + "/" in testAppACurProfileDataAccessible() 219 assertDirDoesNotExist("/data/misc/profiles/cur/" + getCurrentUserId() + "/" + APPB_PKG); in testCannotAccessAppBDataDir()
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/ |
D | UserUtils.java | 23 public static int getCurrentUserId() { in getCurrentUserId() method in UserUtils
|
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/ |
D | ScopedStorageCoreHostTest.java | 181 int currentUserId = getCurrentUserId(); in grantPermissions() 189 int currentUserId = getCurrentUserId(); in revokePermissions()
|
D | LegacyStorageHostTest.java | 58 int currentUserId = getCurrentUserId(); in grantPermissions() 66 int currentUserId = getCurrentUserId(); in revokePermissions()
|
D | ScopedStorageHostTest.java | 364 int currentUserId = getCurrentUserId(); in grantPermissionsToPackage() 376 int currentUserId = getCurrentUserId(); in revokePermissions()
|
D | AppCloningMediaProviderHostTest.java | 124 int currentUserId = getCurrentUserId(); in testInsertCrossUserFilesInDirectoryViaMediaProvider() 150 int currentUserId = getCurrentUserId(); in testGetFilesInDirectoryViaMediaProvider()
|
D | PreserveLegacyStorageHostTest.java | 48 int userId = getCurrentUserId(); in installApp()
|
D | BaseHostTestCase.java | 82 protected int getCurrentUserId() throws Exception { in getCurrentUserId() method in BaseHostTestCase
|
/cts/hostsidetests/car/util/src/android/car/cts/ |
D | CarHostJUnit4TestCase.java | 112 mInitialUserId = getCurrentUserId(); in saveUserState() 116 mTestRunningUserId = getCurrentUserId(); in saveUserState() 132 int currentUserId = getCurrentUserId(); in restoreUsersState() 325 protected int getCurrentUserId() throws DeviceNotAvailableException { in getCurrentUserId() method in CarHostJUnit4TestCase 440 + " (it is " + getCurrentUserId() + ")", DEFAULT_TIMEOUT_SEC, in waitUntilCurrentUser() 441 () -> (getCurrentUserId() == userId)); in waitUntilCurrentUser() 471 + "be the system user", timeoutSec, () -> getCurrentUserId() != SYSTEM_USER_ID); in waitUntilCurrentUserIsNotSystem()
|
/cts/tests/camera/headlessSystemUserTest/src/android/camera/cts/headlesssystemusertest/ |
D | Camera2HeadlessSystemUserTest.java | 162 int initialUserId = getCurrentUserId(); in testHeadlessSystemUser_SwitchForegroundUser() 200 private static int getCurrentUserId() { in getCurrentUserId() method in Camera2HeadlessSystemUserTest 208 PollingCheck.waitFor(SWITCH_USER_WAIT_TIME, () -> userId == getCurrentUserId()); in waitUntilUserCurrent()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | UiModeHostTest.java | 42 int originalUserId = getCurrentUserId(); in testUserSwitchingConfigConsistency()
|
D | CarUserManagerHostTest.java | 54 switchUser(getCurrentUserId(), STATUS_OK_USER_ALREADY_IN_FOREGROUND); in testSwitchUserAlreadyForeGroundUser()
|
D | PreCreateUsersHostTest.java | 80 int initialUserId = getCurrentUserId(); in appsAreNotInstalledOnPreCreatedUserTest()
|
D | CarWatchdogHostTest.java | 195 mCurrentUser = getCurrentUserId(); in setUp()
|
/cts/hostsidetests/car/nonrecoverable/src/android/car/cts/ |
D | CarServiceHelperServiceTest.java | 59 assertWithMessage("Current user id").that(getCurrentUserId()).isNotEqualTo(SYSTEM_USER_ID); in testUserCreatedOnStartUpForHeadlessSystemUser()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | DistractingPackageTest.java | 82 private int getCurrentUserId() { in getCurrentUserId() method in DistractingPackageTest 102 final int currentUserId = getCurrentUserId(); in testShouldHideFromSuggestions()
|
D | SuspendPackagesTest.java | 208 private int getCurrentUserId() { in getCurrentUserId() method in SuspendPackagesTest 216 final int currentUserId = getCurrentUserId(); in testLauncherCallback()
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/ |
D | ActivityManagerHelperTest.java | 288 int initialCurrentUserId = getCurrentUserId(); in testStopAllTasksForUser() 327 if (initialCurrentUserId != getCurrentUserId()) { in deepCleanTestStopAllTasksForUser() 504 private static int getCurrentUserId() { in getCurrentUserId() method in ActivityManagerHelperTest 511 PollingCheck.waitFor(TIMEOUT_MS, () -> userId == getCurrentUserId()); in waitUntilUserCurrent()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/storage/ |
D | AppCloningPublicVolumeTest.java | 75 int currentUserId = getCurrentUserId(); in testCrossUserMediaAccessInPublicSdCard()
|
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/ |
D | BaseHostTestCase.java | 131 protected int getCurrentUserId() throws Exception { in getCurrentUserId() method in BaseHostTestCase
|