Home
last modified time | relevance | path

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

12345678

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAdminServiceDeviceOwnerTest.java23 protected int getUserId() throws Exception { in getUserId() method in DeviceAdminServiceDeviceOwnerTest
41 setDeviceOwnerOrFail(component, getUserId()); in setAsOwnerOrFail()
DBaseDeviceAdminServiceTest.java52 removeAdmin(OWNER_COMPONENT, getUserId()); in tearDown()
53 removeAdmin(OWNER_COMPONENT_B, getUserId()); in tearDown()
60 protected abstract int getUserId() throws Exception; in getUserId() method in BaseDeviceAdminServiceTest
63 runDeviceTestsAsUser(OWNER_PKG, className, testName, getUserId()); in executeDeviceTestMethod()
DDeviceAdminServiceProfileOwnerTest.java29 protected int getUserId() { in getUserId() method in DeviceAdminServiceProfileOwnerTest
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java61 pm.getInstalledPackagesAsUser(0, mContext.getUserId()); in testPackageVisibility_currentUser()
70 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserGrant()
81 pm.getInstalledPackagesAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testPackageVisibility_anyUserCrossUserNoGrant()
112 pm.getInstalledApplicationsAsUser(0, mContext.getUserId()); in testApplicationVisibility_currentUser()
121 pm.getInstalledApplicationsAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testApplicationVisibility_anyUserCrossUserGrant()
132 pm.getInstalledApplicationsAsUser(MATCH_KNOWN_PACKAGES, mContext.getUserId()); in testApplicationVisibility_anyUserCrossUserNoGrant()
162 final int userId = mContext.getUserId(); in testGetPackagesForUidVisibility_currentUser()
328 return mContext.getUserId(); in getInstallUser()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerTest.java143 mUriList.addAll(createImagesAndGetUris(itemCount, mContext.getUserId())); in testSingleSelect()
157 assertPickerUriFormat(mAction, uri, mContext.getUserId()); in testSingleSelect()
166 mUriList.addAll(createImagesAndGetUris(itemCount, mContext.getUserId())); in testMediaStoreOpenFile()
198 mUriList.addAll(createImagesAndGetUris(itemCount, mContext.getUserId())); in testMediaStoreOpenAssetFile()
229 mUriList.addAll(createImagesAndGetUris(itemCount, mContext.getUserId())); in testMediaStoreOpenTypedAssetFile()
259 mUriList.addAll(createImagesAndGetUris(itemCount, mContext.getUserId(), in testSingleSelectForFavoritesAlbum()
286 assertPickerUriFormat(mAction, uri, mContext.getUserId()); in testSingleSelectForFavoritesAlbum()
293 mUriList.addAll(createVideosAndGetUris(videoCount, mContext.getUserId())); in testLaunchPreviewMultipleForVideoAlbum()
347 mUriList.addAll(createImagesAndGetUris(itemCount, mContext.getUserId())); in testSingleSelectWithPreview()
371 assertPickerUriFormat(mAction, uri, mContext.getUserId()); in testSingleSelectWithPreview()
[all …]
/cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
DUiAutomationTestA11yService.java66 Log.v(LOG_TAG, "onServiceConnected() for user " + getUserId() + " on " + this); in onServiceConnected()
76 .append("{user=").append(getUserId()); in toString()
/cts/tests/framework/base/grammaticalinflection/src/android/grammaticalinflection/cts/
DGrammaticalInflectionManagerTest.java148 CMD_GET_GRAMMATICAL_GENDER + " --user %d ", mContext.getUserId())); in testGetSystemGrammaticalGender_setMasculineForSysApp_returnMasculineToSysApp()
153 CMD_GET_GRAMMATICAL_GENDER + " --user %d ", mContext.getUserId())); in testGetSystemGrammaticalGender_setMasculineForSysApp_returnMasculineToSysApp()
167 CMD_GET_GRAMMATICAL_GENDER + " --user %d ", mContext.getUserId())); in testGetSystemGrammaticalGender_setNeutralForSysApp_throwExceptionTo3rdApp()
176 mContext.getUserId(), in setGrammaticalGender()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DGenericManagerWrapper.java39 int userId = context.getUserId(); in getWrapper()
48 Log.d(TAG, "get(): creatied mock for user " + context.getUserId() + ": " + mockString); in getWrapper()
DUserManagerWrapper.java41 int userId = context.getUserId(); in getWrapper()
50 Log.d(TAG, "get(): created spy for user " + context.getUserId() + ": " + spyString); in getWrapper()
DTetheringManagerWrapper.java41 int userId = context.getUserId(); in getWrapper()
50 Log.d(TAG, "get(): created spy for user " + context.getUserId() + ": " + spyString); in getWrapper()
DTestAppHelper.java62 + " locally on user " + context.getUserId()); in registerTestCaseReceiver()
84 Log.d(TAG, "Unegistering " + receiver + " locally on user " + context.getUserId()); in unregisterTestCaseReceiver()
DHardwarePropertiesManagerWrapper.java43 int userId = context.getUserId(); in getWrapper()
52 Log.d(TAG, "get(): created spy for user " + context.getUserId() + ": " + spyString); in getWrapper()
DWifiManagerWrapper.java43 int userId = context.getUserId(); in getWrapper()
52 Log.d(TAG, "get(): created spy for user " + context.getUserId() + ": " + spyString); in getWrapper()
/cts/hostsidetests/devicepolicy/app/common/src/com/android/cts/devicepolicy/
DOperationSafetyChangedCallback.java73 Log.d(TAG, "Received intent with event " + event + " on user " + context.getUserId());
86 Log.d(TAG, "Registering " + ACTION_STATE_CHANGED + " on user " + context.getUserId()); in register()
98 Log.d(TAG, "Unregistering " + mReceiver + " on user " + context.getUserId()); in unregister()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBasicAdminReceiver.java55 Log.d(TAG, "onReceive(userId=" + context.getUserId() + "): " + action); in onReceive()
87 Log.d(TAG, "onNetworkLogsAvailable() on user " + context.getUserId() in onNetworkLogsAvailable()
100 Log.d(TAG, "onOperationSafetyStateChanged() on user " + context.getUserId() + ": " + event); in onOperationSafetyStateChanged()
DPreDeviceOwnerTest.java39 Log.d(TAG, "setUp(): running on user " + mContext.getUserId()); in setUp()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/
DUserUtils.java24 return UserHandle.getUserId(Process.myUid()); in getCurrentUserId()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHelper.java192 + pkg + "/" + TestNotificationListener.class.getName() + " " + mContext.getUserId(); in enableListener()
205 + " " + mContext.getUserId(); in disableListener()
240 + mContext.getUserId()); in enableOtherPkgAssistantIfNeeded()
245 + mContext.getUserId()); in getEnabledAssistant()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/activity/
DTaskInfoTestActivity.java31 public int getUserId() { in getUserId() method in TaskInfoTestActivity
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java58 Log.d(TAG, "Created on user " + getUserId()); in onCreate()
63 Log.d(TAG, "onActivityResult(): userId=" + getUserId() + ", requestCode=" + requestCode in onActivityResult()
/cts/tests/framework/base/biometrics/src/android/server/biometrics/
DBiometricPromptContentViewTest.java130 Utils.getUserId(), in testMoreOptionsButton_simpleBiometricAuth()
147 successfullyAuthenticate(session, Utils.getUserId(), callback); in testMoreOptionsButton_simpleBiometricAuth()
182 Utils.getUserId(), in testMoreOptionsButton_clickButton()
234 Utils.getUserId(), in testMoreOptionsButton_withoutPermissionException()
405 Utils.getUserId(), in testVerticalList_simpleBiometricAuth()
422 successfullyAuthenticate(session, Utils.getUserId(), callback); in testVerticalList_simpleBiometricAuth()
/cts/hostsidetests/devicepolicy/app/IntentReceiver/src/com/android/cts/intent/receiver/
DBroadcastIntentReceiver.java36 Log.i(TAG, "onReceive(userId=" + c.getUserId() + "): " + i); in onReceive()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerNegativeTest.java112 checkAidlCall("getBackupPayload", "Caller must be", getTestContext().getUserId()); in testDirectAidlCalls()
114 checkAidlCall("applyRestore", "Caller must be", null, getTestContext().getUserId()); in testDirectAidlCalls()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DSecureSettingsUtils.java128 if (context.getUserId() == userId && UserHandle.myUserId() == userId) { in putInt()
151 if (context.getUserId() == userId && UserHandle.myUserId() == userId) { in getString()
/cts/hostsidetests/appbinding/app/src/com/android/cts/appbinding/app/
DMyEnabler.java44 Log.w(TAG, "Enabled " + cn + " on user " + context.getUserId()); in enableService()

12345678