Home
last modified time | relevance | path

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

/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DShortcutManagerBackupTest.java84 clearShortcuts(LAUNCHER1_PKG, getPrimaryUserId()); in setUp()
85 clearShortcuts(LAUNCHER2_PKG, getPrimaryUserId()); in setUp()
86 clearShortcuts(LAUNCHER3_PKG, getPrimaryUserId()); in setUp()
87 clearShortcuts(LAUNCHER4_PKG, getPrimaryUserId()); in setUp()
89 clearShortcuts(PUBLISHER1_PKG, getPrimaryUserId()); in setUp()
90 clearShortcuts(PUBLISHER2_PKG, getPrimaryUserId()); in setUp()
91 clearShortcuts(PUBLISHER3_PKG, getPrimaryUserId()); in setUp()
92 clearShortcuts(PUBLISHER4_PKG, getPrimaryUserId()); in setUp()
242 installAppAsUser(LAUNCHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
243 installAppAsUser(LAUNCHER2_APK, getPrimaryUserId()); in testBackupAndRestore()
[all …]
DShortcutManagerMultiuserTest.java41 final int profileId = createProfile(getPrimaryUserId()); in testManagedUser()
43 installAppAsUser(TARGET_APK, getPrimaryUserId()); in testManagedUser()
47 "test01_managedProfileNotStarted", getPrimaryUserId()); in testManagedUser()
52 "test02_createShortuctsOnPrimaryUser", getPrimaryUserId()); in testManagedUser()
57 "test04_getAndLaunch_primary", getPrimaryUserId()); in testManagedUser()
DShortcutManagerUpgradeTest.java43 installAppAsUser(VERSION1_APK, getPrimaryUserId()); in testUpgrade()
45 runDeviceTestsAsUser(TARGET_PKG, ".ShortcutManagerPreUpgradeTest", getPrimaryUserId()); in testUpgrade()
47 installAppAsUser(VERSION2_APK, getPrimaryUserId()); in testUpgrade()
49 runDeviceTestsAsUser(TARGET_PKG, ".ShortcutManagerPostUpgradeTest", getPrimaryUserId()); in testUpgrade()
DBaseShortcutManagerHostTest.java114 protected int getPrimaryUserId() throws DeviceNotAvailableException { in getPrimaryUserId() method in BaseShortcutManagerHostTest
115 return getDevice().getPrimaryUserId(); in getPrimaryUserId()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java70 installTestAppForUser(getDevice().getPrimaryUserId()); in setUp()
74 mPrimaryUserSerialNumber = getUserSerialNumber(getDevice().getPrimaryUserId()); in setUp()
103 true /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking()
111 false /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking()
139 true /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking()
193 runTestAsUser(className, methodName, getDevice().getPrimaryUserId()); in runTestAsPrimaryUser()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java107 int primaryUserId = getDevice().getPrimaryUserId(); in testGetActiveSessions_primaryUser()
192 int newUser = createAndStartRestrictedProfile(getDevice().getPrimaryUserId()); in testGetActiveSessions_restrictedProfiles()
232 int newUser = createAndStartManagedProfile(getDevice().getPrimaryUserId()); in testGetActiveSessions_managedProfiles()
240 runTestAsUser(testMethodName, getDevice().getPrimaryUserId()); in runTest()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DMultiUserTest.java111 getDevice().switchUser(getDevice().getPrimaryUserId()); in tearDown()
151 final int primaryUserId = getDevice().getPrimaryUserId(); in testSecondaryUser()
212 final int primaryUserId = getDevice().getPrimaryUserId(); in testProfileUser()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseAppSecurityTest.java45 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUpBaseAppSecurityTest()
DInstantAppUserTest.java75 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
DUtils.java165 Integer primary = device.getPrimaryUserId(); in getAllUsers()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java59 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java146 Integer primary = device.getPrimaryUserId(); in getAllUsers()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java82 int primaryUserId = mDevice.getPrimaryUserId(); in setUp()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java108 int primaryUserId = getDevice().getPrimaryUserId(); in setUp()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java603 return getDevice().getPrimaryUserId(); in getPrimaryUser()