Home
last modified time | relevance | path

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

123

/cts/hostsidetests/shortcuts/deviceside/backup/launcher2/src/android/content/pm/cts/shortcut/backup/launcher2/
DShortcutManagerPreBackupTest.java41 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms2"), getUserHandle()); in testPreBackup()
42 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s2", "s3", "ms1"), getUserHandle()); in testPreBackup()
44 getUserHandle()); in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher3/src/android/content/pm/cts/shortcut/backup/launcher3/
DShortcutManagerPreBackupTest.java41 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s3", "ms1", "ms2"), getUserHandle()); in testPreBackup()
42 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s3", "ms2"), getUserHandle()); in testPreBackup()
44 getUserHandle()); in testPreBackup()
/cts/hostsidetests/shortcuts/deviceside/backup/launcher1/src/android/content/pm/cts/shortcut/backup/launcher1/
DShortcutManagerPreBackupTest.java41 getLauncherApps().pinShortcuts(PUBLISHER1_PKG, list("s1", "ms1"), getUserHandle()); in testPreBackup()
42 getLauncherApps().pinShortcuts(PUBLISHER2_PKG, list("s1", "s2", "ms2"), getUserHandle()); in testPreBackup()
44 getUserHandle()); in testPreBackup()
/cts/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/
DRemoteEventQuerier.java175 if (mEventLogsQuery.getUserHandle() != null in blockingConnectOrFail()
176 && mEventLogsQuery.getUserHandle().getIdentifier() in blockingConnectOrFail()
182 mEventLogsQuery.getUserHandle())); in blockingConnectOrFail()
195 UserReference user = (mEventLogsQuery.getUserHandle() == null) in blockingConnectOrFail()
197 : TestApis.users().find(mEventLogsQuery.getUserHandle()); in blockingConnectOrFail()
199 …throw new AssertionError("Tried to bind to user " + mEventLogsQuery.getUserHandle() + " but does n… in blockingConnectOrFail()
211 + intent + ", user is " + mEventLogsQuery.getUserHandle() + ")"); in blockingConnectOrFail()
/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/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerSpoofDetectionTest.java96 getLauncherApps().getShortcuts(q, getUserHandle()); in testLauncherSpoofing()
101 mPackageContext1.getPackageName(), list(), getUserHandle()); in testLauncherSpoofing()
109 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.java67 getUserHandle()); in launchShortcutAndGetIntents()
89 getUserHandle()); in assertShortcutCantStart()
244 list("s1"), getUserHandle()); in testPinnedShortcut_sameLauncher()
269 list("s1"), getUserHandle()); in testPinnedShortcut_differentLauncher()
DShortcutManagerClientApiTest.java584 list("s1"), getUserHandle()); in testSetDynamicShortcuts_wasPinned()
964 list("s1"), getUserHandle()); in testAddDynamicShortcuts_wasPinned()
997 list("s2", "s3"), getUserHandle()); in testUpdateShortcut()
999 list("s1", "s2"), getUserHandle()); in testUpdateShortcut()
1497 list("s2", "s3"), getUserHandle()); in testDisableAndEnableShortcut()
1499 list("s1", "s2"), getUserHandle()); in testDisableAndEnableShortcut()
1688 list("ms21"), getUserHandle()); in testImmutableShortcuts()
1916 list("ms41", "ms42"), getUserHandle()); in testManifestDisabled()
1970 assertEquals(getUserHandle(), si.getUserHandle()); in testMiscShortcutInfo()
1987 list("ms21", "s1", "s2"), getUserHandle()); in testGetShortcuts()
[all …]
/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/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.java80 assertEquals(userCurrent, si.getUserHandle()); in test04_getAndLaunch_primary()
87 assertEquals(userOther, si.getUserHandle()); in test04_getAndLaunch_primary()
116 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.java39 getUserHandle()); in testPreBackup()
/cts/tests/tests/car/src/android/car/cts/
DUserSwitchRequestTest.java35 expectThat(userSwitchRequest.getUserHandle()).isEqualTo(USER_HANDLE); in testUserSwitchRequestUserhandle()
DUserRemovalRequestTest.java35 expectThat(userRemovalRequest.getUserHandle()).isEqualTo(USER_HANDLE); in testUserRemovalRequestUserhandle()
DCarUserManagerTest.java172 assertWithMessage("UserId of the event").that(visibleEvent.getUserHandle()) in testStartUserOnDisplayAndStopUser()
182 assertWithMessage("UserId of the event").that(startingEvent.getUserHandle()) in testStartUserOnDisplayAndStopUser()
209 assertWithMessage("UserId of the event").that(invisibleEvent.getUserHandle()) in testStartUserOnDisplayAndStopUser()
265 assertWithMessage("user id on %s", event).that(event.getUserHandle().getIdentifier()) in testLifecycleUserCreatedListener_supportedVersion()
311 assertWithMessage("user id on %s", event).that(event.getUserHandle().getIdentifier()) in testLifecycleUserRemovedListener_supportedVersion()
/cts/tests/smartspace/src/android/smartspace/cts/
DSmartspaceSessionIdTest.java61 assertThat(sessionId.getUserHandle()).isEqualTo(Process.myUserHandle()); in testCreateSmartspaceSessionId()
DTapActionTest.java66 assertThat(tapAction.getUserHandle()).isEqualTo(Process.myUserHandle()); in testCreateTapAction()
DSmartspaceActionTest.java77 assertThat(action.getUserHandle()).isEqualTo(Process.myUserHandle()); in testCreateSmartspaceAction()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40092/src/android/security/cts/CVE_2023_40092/
DDeviceTest.java65 return info.getUserHandle().getIdentifier(); in testPocCVE_2023_40092()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21107/test-app/src/android/security/cts/CVE_2023_21107_test/
DDeviceTest.java59 workUserHandle = info.getUserHandle(); in testCVE_2023_21107()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/
DShellCommandExecutor.java101 final long userSerial = getUserSerialNumber(instrumentation, handle.getUserHandle()); in enablePhoneAccount()

123