Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java23 import static com.android.cts.appdataisolation.common.UserUtils.getCurrentUserId;
53 assertDirDoesNotExist("/data/misc/profiles/cur/" + getCurrentUserId() + "/" in testCanNotAccessAppADataDir()
63 if (getCurrentUserId() == UserHandle.USER_SYSTEM) { in testCanAccessAppADataDir()
66 assertFileIsAccessible("/data/misc/profiles/cur/" + getCurrentUserId() + "/" in testCanAccessAppADataDir()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DHelper.java91 final int userId = getCurrentUserId(); in setService()
101 final int userId = getCurrentUserId(); in resetService()
110 final int userId = getCurrentUserId(); in setDefaultServiceEnabled()
184 private static int getCurrentUserId() { in getCurrentUserId() method in Helper
/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.java32 import static com.android.cts.appdataisolation.common.UserUtils.getCurrentUserId;
182 assertDirIsAccessible("/data/misc/profiles/cur/"+ getCurrentUserId() + "/" in testAppACurProfileDataAccessible()
199 assertDirDoesNotExist("/data/misc/profiles/cur/" + getCurrentUserId() + "/" + APPB_PKG); in testCannotAccessAppBDataDir()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DScopedStorageCoreHostTest.java116 int currentUserId = getCurrentUserId(); in grantPermissions()
124 int currentUserId = getCurrentUserId(); in revokePermissions()
DLegacyStorageHostTest.java56 int currentUserId = getCurrentUserId(); in grantPermissions()
64 int currentUserId = getCurrentUserId(); in revokePermissions()
DScopedStorageHostTest.java322 int currentUserId = getCurrentUserId(); in grantPermissionsToPackage()
334 int currentUserId = getCurrentUserId(); in revokePermissions()
DPreserveLegacyStorageHostTest.java44 int userId = getCurrentUserId(); in installApp()
DBaseHostTestCase.java76 protected int getCurrentUserId() throws Exception { in getCurrentUserId() method in BaseHostTestCase
DAppCloningHostTest.java76 installAppAsUser(APP_A, getCurrentUserId()); in testInstallAppTwice()
/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/car/src/android/car/cts/
DCarHostJUnit4TestCase.java100 mInitialUserId = getCurrentUserId(); in saveUserState()
108 int currentUserId = getCurrentUserId(); in restoreUsersState()
265 protected int getCurrentUserId() throws DeviceNotAvailableException { in getCurrentUserId() method in CarHostJUnit4TestCase
370 + " (it is " + getCurrentUserId() + ")", in waitUntilCurrentUser()
372 () -> (getCurrentUserId() == userId)); in waitUntilCurrentUser()
DUiModeHostTest.java44 int originalUserId = getCurrentUserId(); in testUserSwitchingConfigConsistency()
DPreCreateUsersHostTest.java101 int initialUserId = getCurrentUserId(); in appsAreNotInstalledOnPreCreatedUserTest()
/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.java190 private int getCurrentUserId() { in getCurrentUserId() method in SuspendPackagesTest
198 final int currentUserId = getCurrentUserId(); in testLauncherCallback()