Home
last modified time | relevance | path

Searched refs:getUserId (Results 1 – 25 of 28) sorted by relevance

12

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDeviceAdminServiceTest.java58 removeAdmin(OWNER_COMPONENT, getUserId()); in tearDown()
59 removeAdmin(OWNER_COMPONENT_B, getUserId()); in tearDown()
66 protected abstract int getUserId(); in getUserId() method in BaseDeviceAdminServiceTest
71 runDeviceTestsAsUser(OWNER_PKG, className, testName, getUserId()); in executeDeviceTestMethod()
109 installAppAsUser(OWNER_APK_1, getUserId()); in testAll()
118 removeAdmin(OWNER_COMPONENT, getUserId()); in testAll()
123 installAppAsUser(OWNER_APK_1, getUserId()); in testAll()
130 installAppAsUser(OWNER_APK_2, getUserId()); in testAll()
135 installAppAsUser(OWNER_APK_3, getUserId()); in testAll()
140 installAppAsUser(OWNER_APK_2, getUserId()); in testAll()
[all …]
DDeviceAdminServiceDeviceOwnerTest.java20 protected int getUserId() { in getUserId() method in DeviceAdminServiceDeviceOwnerTest
31 setDeviceOwnerOrFail(component, getUserId()); in setAsOwnerOrFail()
DDeviceAdminServiceProfileOwnerTest.java23 protected int getUserId() { in getUserId() method in DeviceAdminServiceProfileOwnerTest
47 setProfileOwnerOrFail(component, getUserId()); in setAsOwnerOrFail()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java56 pm.getInstalledPackagesAsUser(0, mContext.getUserId()); in testPackageVisibility_currentUser()
65 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserGrant()
76 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserNoGrant()
107 pm.getInstalledApplicationsAsUser(0, mContext.getUserId()); in testApplicationVisibility_currentUser()
116 pm.getInstalledApplicationsAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testApplicationVisibility_anyUserCrossUserGrant()
127 pm.getInstalledApplicationsAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testApplicationVisibility_anyUserCrossUserNoGrant()
180 return mContext.getUserId(); in getTestUser()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerNegativeTest.java112 "package", getTestContext().getUserId()); in testDirectAidlCalls()
114 checkAidlCall("getBackupPayload", "Caller must be", getTestContext().getUserId()); in testDirectAidlCalls()
116 checkAidlCall("applyRestore", "Caller must be", null, getTestContext().getUserId()); in testDirectAidlCalls()
DShortcutManagerCtsTestsBase.java123 mUserId = getTestContext().getUserId(); in setUp()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DLegacyNotificationManagerTest.java362 + " " + mContext.getUserId(); in toggleNotificationPolicyAccess()
376 + " --user " + mContext.getUserId() in suspendPackage()
388 + " " + mContext.getUserId(); in toggleListenerAccess()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DContentCaptureRestrictionsTest.java43 mUserId = getInstrumentation().getContext().getUserId(); in setUp()
DContentSuggestionsRestrictionsTest.java41 mUserId = getInstrumentation().getContext().getUserId(); in setUp()
DAutofillRestrictionsTest.java44 mUserId = getInstrumentation().getContext().getUserId(); in setUp()
/cts/hostsidetests/backup/ProfileKeyValueApp/src/android.cts.backup.profilekeyvalueapp/
DProfileKeyValueBackupRestoreTest.java47 mUserId = context.getUserId(); in setUp()
/cts/hostsidetests/incident/src/com/android/server/cts/
DFingerprintIncidentTest.java47 assertTrue(0 <= userStats.getUserId()); in verifyFingerprintServiceDumpProto()
DPrintProtoTest.java60 assertEquals(0, userState.getUserId()); in verifyPrintServiceDumpProto()
DSettingsIncidentTest.java63 assertEquals(0, userSettings.getUserId()); in verifySettingsServiceDumpProto()
DNotificationIncidentTest.java206 assertTrue(sp.getUserId() >= 0); in verifyManagedServicesProto()
DJobSchedulerIncidentTest.java282 assertTrue(0 <= o.getUserId()); in testStateControllerProto()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DRequestPinAppWidgetTest.java152 + getInstrumentation().getContext().getUserId() + " " + component); in setLauncher()
/cts/tests/app/src/android/app/cts/
DStatusBarNotificationTest.java52 assertEquals(0, mSbn.getUserId()); in testGetUserId()
DDownloadManagerTestBase.java162 final int userId = getUserId(); in getMediaStoreColumnValue()
199 private static int getUserId() { in getUserId() method in DownloadManagerTestBase
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java158 + getInstrumentation().getContext().getUserId() + " " + component); in setLauncher()
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Video_MediaTest.java277 + " --user " + InstrumentationRegistry.getTargetContext().getUserId() in testLocationRedaction()
344 + " --user " + InstrumentationRegistry.getTargetContext().getUserId() in testCanonicalize()
DMediaStore_Images_MediaTest.java366 + " --user " + InstrumentationRegistry.getTargetContext().getUserId()
430 + " --user " + InstrumentationRegistry.getTargetContext().getUserId()
DMediaStore_Audio_MediaTest.java172 + " --user " + InstrumentationRegistry.getTargetContext().getUserId() in testCanonicalize()
DProviderTestUtils.java353 + " --user " + InstrumentationRegistry.getTargetContext().getUserId() in getRawFile()
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/
DMediaStorageTest.java86 mUserId = mContext.getUserId(); in setUp()

12