Home
last modified time | relevance | path

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

/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DShortcutManagerBackupTest.java59 clearShortcuts(LAUNCHER1_PKG, getPrimaryUserId()); in setUp()
60 clearShortcuts(LAUNCHER2_PKG, getPrimaryUserId()); in setUp()
61 clearShortcuts(LAUNCHER3_PKG, getPrimaryUserId()); in setUp()
62 clearShortcuts(PUBLISHER1_PKG, getPrimaryUserId()); in setUp()
63 clearShortcuts(PUBLISHER2_PKG, getPrimaryUserId()); in setUp()
64 clearShortcuts(PUBLISHER3_PKG, getPrimaryUserId()); in setUp()
200 installAppAsUser(LAUNCHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
201 installAppAsUser(LAUNCHER2_APK, getPrimaryUserId()); in testBackupAndRestore()
202 installAppAsUser(LAUNCHER3_APK, getPrimaryUserId()); in testBackupAndRestore()
204 installAppAsUser(PUBLISHER1_APK, getPrimaryUserId()); in testBackupAndRestore()
[all …]
DShortcutManagerMultiuserTest.java40 final int profileId = createProfile(getPrimaryUserId()); in testManagedUser()
42 installAppAsUser(TARGET_APK, getPrimaryUserId()); in testManagedUser()
46 "test01_managedProfileNotStarted", getPrimaryUserId()); in testManagedUser()
51 "test02_createShortuctsOnPrimaryUser", getPrimaryUserId()); in testManagedUser()
56 "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.java112 protected int getPrimaryUserId() throws DeviceNotAvailableException { in getPrimaryUserId() method in BaseShortcutManagerHostTest
113 return getDevice().getPrimaryUserId(); in getPrimaryUserId()
184 getDevice().switchUser(getPrimaryUserId()); in removeTestUsers()
/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()
162 runTestAsUser(className, methodName, getDevice().getPrimaryUserId()); in runTestAsPrimaryUser()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java98 int primaryUserId = getDevice().getPrimaryUserId(); in testGetActiveSessions()
141 runTestAsUser(testMethodName, getDevice().getPrimaryUserId()); in runTest()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DBaseAppSecurityTest.java52 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
DUtils.java155 Integer primary = device.getPrimaryUserId(); in getAllUsers()
DInstantAppUserTest.java78 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java53 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java113 int primaryUserId = getDevice().getPrimaryUserId(); in setUp()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java470 return getDevice().getPrimaryUserId(); in getPrimaryUser()