Home
last modified time | relevance | path

Searched refs:getCurrentUserId (Results 1 – 25 of 25) sorted by relevance

/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java21 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/
DAppCloningHostTest.java186 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/
DHelper.java93 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/
DAppCloningDeviceTest.java52 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/
DIsolatedService.java21 import static com.android.cts.appdataisolation.common.UserUtils.getCurrentUserId;
44 int currentUserId = getCurrentUserId();
DAppATests.java33 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/
DUserUtils.java23 public static int getCurrentUserId() { in getCurrentUserId() method in UserUtils
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java181 int currentUserId = getCurrentUserId(); in grantPermissions()
189 int currentUserId = getCurrentUserId(); in revokePermissions()
DLegacyStorageHostTest.java58 int currentUserId = getCurrentUserId(); in grantPermissions()
66 int currentUserId = getCurrentUserId(); in revokePermissions()
DScopedStorageHostTest.java364 int currentUserId = getCurrentUserId(); in grantPermissionsToPackage()
376 int currentUserId = getCurrentUserId(); in revokePermissions()
DAppCloningMediaProviderHostTest.java124 int currentUserId = getCurrentUserId(); in testInsertCrossUserFilesInDirectoryViaMediaProvider()
150 int currentUserId = getCurrentUserId(); in testGetFilesInDirectoryViaMediaProvider()
DPreserveLegacyStorageHostTest.java48 int userId = getCurrentUserId(); in installApp()
DBaseHostTestCase.java82 protected int getCurrentUserId() throws Exception { in getCurrentUserId() method in BaseHostTestCase
/cts/hostsidetests/car/util/src/android/car/cts/
DCarHostJUnit4TestCase.java112 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/
DCamera2HeadlessSystemUserTest.java162 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/
DUiModeHostTest.java42 int originalUserId = getCurrentUserId(); in testUserSwitchingConfigConsistency()
DCarUserManagerHostTest.java54 switchUser(getCurrentUserId(), STATUS_OK_USER_ALREADY_IN_FOREGROUND); in testSwitchUserAlreadyForeGroundUser()
DPreCreateUsersHostTest.java80 int initialUserId = getCurrentUserId(); in appsAreNotInstalledOnPreCreatedUserTest()
DCarWatchdogHostTest.java195 mCurrentUser = getCurrentUserId(); in setUp()
/cts/hostsidetests/car/nonrecoverable/src/android/car/cts/
DCarServiceHelperServiceTest.java59 assertWithMessage("Current user id").that(getCurrentUserId()).isNotEqualTo(SYSTEM_USER_ID); in testUserCreatedOnStartUpForHeadlessSystemUser()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDistractingPackageTest.java82 private int getCurrentUserId() { in getCurrentUserId() method in DistractingPackageTest
102 final int currentUserId = getCurrentUserId(); in testShouldHideFromSuggestions()
DSuspendPackagesTest.java208 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/
DActivityManagerHelperTest.java288 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/
DAppCloningPublicVolumeTest.java75 int currentUserId = getCurrentUserId(); in testCrossUserMediaAccessInPublicSdCard()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DBaseHostTestCase.java131 protected int getCurrentUserId() throws Exception { in getCurrentUserId() method in BaseHostTestCase