Home
last modified time | relevance | path

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

12

/cts/hostsidetests/shortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/
DShortcutManagerPreBackupTest.java40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s1", "ms1"), getUserHandle()); in testPreBackup()
41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s2", "ms2"), getUserHandle()); in testPreBackup()
43 getUserHandle()); in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/
DShortcutManagerPreBackupTest.java40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms1", "ms2"), getUserHandle()); in testPreBackup()
41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s3", "ms2"), getUserHandle()); in testPreBackup()
43 getUserHandle()); in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/
DShortcutManagerPreBackupTest.java40 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms2"), getUserHandle()); in testPreBackup()
41 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s2", "s3", "ms1"), getUserHandle()); in testPreBackup()
43 getUserHandle()); in testPreBackup()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DRemoteEventQuerier.java174 if (mEventLogsQuery.getUserHandle() != null in blockingConnectOrFail()
175 && mEventLogsQuery.getUserHandle().getIdentifier() in blockingConnectOrFail()
181 mEventLogsQuery.getUserHandle())); in blockingConnectOrFail()
194 UserReference user = (mEventLogsQuery.getUserHandle() == null) in blockingConnectOrFail()
196 : TestApis.users().find(mEventLogsQuery.getUserHandle()); in blockingConnectOrFail()
198 …throw new AssertionError("Tried to bind to user " + mEventLogsQuery.getUserHandle() + " but does n… in blockingConnectOrFail()
210 + intent + ", user is " + mEventLogsQuery.getUserHandle() + ")"); in blockingConnectOrFail()
DEventLogsQuery.java104 UserHandle getUserHandle() { in getUserHandle() method in EventLogsQuery
/cts/tests/app/src/android/app/cts/
DAdjustmentTest.java59 assertEquals(ADJ_USER, mAdjustment.getUserHandle()); in testGetUser()
81 assertEquals(mAdjustment.getUserHandle(), unparceled.getUserHandle()); in testParcelling()
/cts/tests/tests/notificationlegacy/notificationlegacy29/src/android/app/notification/legacy29/cts/
DAdjustmentTest.java65 assertEquals(ADJ_USER, mAdjustment.getUserHandle()); in testGetUser()
87 assertEquals(mAdjustment.getUserHandle(), unparceled.getUserHandle()); in testParcelling()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerSpoofDetectionTest.java95 getLauncherApps().getShortcuts(q, getUserHandle()); in testLauncherSpoofing()
100 mPackageContext1.getPackageName(), list(), getUserHandle()); in testLauncherSpoofing()
108 null, null, getUserHandle()); in testLauncherSpoofing()
DShortcutManagerMultiLauncherTest.java91 list("s1", "s2", "s3", "ms1", "ms21"), getUserHandle()); in testPinShortcuts()
94 list("s2", "s3", "ms31"), getUserHandle()); in testPinShortcuts()
102 list("s3", "s4", "ms22"), getUserHandle()); in testPinShortcuts()
105 list("s1", "s2", "s3", "ms32"), getUserHandle()); in testPinShortcuts()
DShortcutManagerStartShortcutTest.java65 getUserHandle()); in launchShortcutAndGetIntents()
87 getUserHandle()); in assertShortcutCantStart()
240 list("s1"), getUserHandle()); in testPinnedShortcut_sameLauncher()
265 list("s1"), getUserHandle()); in testPinnedShortcut_differentLauncher()
DShortcutManagerClientApiTest.java595 list("s1"), getUserHandle()); in testSetDynamicShortcuts_wasPinned()
916 list("s1"), getUserHandle()); in testAddDynamicShortcuts_wasPinned()
949 list("s2", "s3"), getUserHandle()); in testUpdateShortcut()
951 list("s1", "s2"), getUserHandle()); in testUpdateShortcut()
1449 list("s2", "s3"), getUserHandle()); in testDisableAndEnableShortcut()
1451 list("s1", "s2"), getUserHandle()); in testDisableAndEnableShortcut()
1640 list("ms21"), getUserHandle()); in testImmutableShortcuts()
1868 list("ms41", "ms42"), getUserHandle()); in testManifestDisabled()
1922 assertEquals(getUserHandle(), si.getUserHandle()); in testMiscShortcutInfo()
1939 list("ms21", "s1", "s2"), getUserHandle()); in testGetShortcuts()
[all …]
DShortcutManagerLauncherCallbackTest.java246 list("s1", "ms1", "ms21"), getUserHandle()); in testCallbacks()
252 list("s1", "s2", "s3", "ms22"), getUserHandle()); in testCallbacks()
DShortcutManagerLauncherApiTest.java90 list("s1", "s2", "s3", "ms1", "ms21"), getUserHandle()); in testPinShortcuts()
93 list("s2", "s3", "ms1", "ms31"), getUserHandle()); in testPinShortcuts()
DShortcutManagerConfigActivityTest.java159 getTestContext().getPackageName(), getUserHandle())) { in getConfigActivity()
DShortcutManagerCtsTestsBase.java200 protected UserHandle getUserHandle() { in getUserHandle() method in ShortcutManagerCtsTestsBase
541 final List<ShortcutInfo> found = getLauncherApps().getShortcuts(q, getUserHandle()); in getIconAsLauncher()
620 return getLauncherApps().getShortcuts(q, getUserHandle()); in getShortcutsAsLauncher()
/cts/hostsidetests/shortcuts/deviceside/common/src/android/content/pm/cts/shortcut/device/common/
DShortcutManagerDeviceTestBase.java86 protected UserHandle getUserHandle() { in getUserHandle() method in ShortcutManagerDeviceTestBase
102 final List<ShortcutInfo> found = getLauncherApps().getShortcuts(q, getUserHandle()); in getIconAsLauncher()
130 return getLauncherApps().getShortcuts(q, getUserHandle()); in getPackageShortcuts()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DICrossUserService.aidl21 android.os.UserHandle getUserHandle(); in getUserHandle() method
DProtectedCrossUserService.java35 public UserHandle getUserHandle() {
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerManagedUserTest.java81 assertEquals(userCurrent, si.getUserHandle()); in test04_getAndLaunch_primary()
88 assertEquals(userOther, si.getUserHandle()); in test04_getAndLaunch_primary()
117 assertEquals(userCurrent, si.getUserHandle()); in test05_getAndLaunch_managed()
DShortcutManagerSecondaryUserTest.java57 assertEquals(user, si.getUserHandle()); in testCreateAndStart()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher4old/src/android/content/pm/cts/shortcut/backup/launcher4/
DShortcutManagerPreBackupTest.java38 getUserHandle()); in testPreBackup()
/cts/tests/smartspace/src/android/smartspace/cts/
DSmartspaceSessionIdTest.java61 assertThat(sessionId.getUserHandle()).isEqualTo(Process.myUserHandle()); in testCreateSmartspaceSessionId()
DSmartspaceActionTest.java77 assertThat(action.getUserHandle()).isEqualTo(Process.myUserHandle()); in testCreateSmartspaceAction()
DSmartspaceTargetTest.java87 assertThat(testTarget.getUserHandle()).isEqualTo(Process.myUserHandle()); in testCreateSmartspaceTarget()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java109 assertEquals(userHandle, accountHandle.getUserHandle()); in testPhoneAccountHandle()
121 assertEquals(accountHandle.getUserHandle(), unparcelled.getUserHandle()); in testPhoneAccountHandle()

12