Home
last modified time | relevance | path

Searched refs:myUserId (Results 1 – 25 of 67) sorted by relevance

123

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java103 int myUserId = UserHandle.myUserId(); in assertDeviceOwner() local
104 assertWithMessage("DPM for user %s", myUserId).that(mDevicePolicyManager).isNotNull(); in assertDeviceOwner()
107 assertWithMessage("Component %s is admin for user %s", admin, myUserId) in assertDeviceOwner()
111 assertWithMessage("Component %s is device owner for user %s", admin, myUserId) in assertDeviceOwner()
113 assertWithMessage("Component %s is profile owner for user %s", admin, myUserId) in assertDeviceOwner()
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/
DZygotePreload.java98 for (int userId = UserHandle.myUserId(); userId <= UserHandle.myUserId() + 1; userId++) { in doPreload()
106 for (int userId = UserHandle.myUserId(); userId <= UserHandle.myUserId() + 1; userId++) { in doPreload()
119 int isolatedUserStart = UserHandle.getUid(UserHandle.myUserId(), in doPreload()
121 int isolatedUserEnd = UserHandle.getUid(UserHandle.myUserId(), in doPreload()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DActivePasswordSufficientForDeviceTest.java87 var myUserId = Process.myUserHandle().getIdentifier(); in getParentUserId() local
91 .filter(userId -> userId != myUserId) in getParentUserId()
100 final int myUserId = UserHandle.getUserId(Process.myUid()); in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies() local
102 changeUserCredential("asdf12", "1234", myUserId); // This currently fails in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DStartActivityAsUserActivity.java39 result.putInt(KEY_USER_ID, UserHandle.myUserId()); in onCreate()
42 Log.i(LOG_TAG, "Second activity started with user " + UserHandle.myUserId()); in onCreate()
/cts/tests/translation/src/android/translation/cts/
DHelper.java83 final int userId = UserHandle.myUserId(); in setTemporaryTranslationService()
92 final int userId = UserHandle.myUserId(); in resetTemporaryTranslationService()
104 final int userId = UserHandle.myUserId(); in setTemporaryContentCaptureService()
113 final int userId = UserHandle.myUserId(); in resetTemporaryContentCaptureService()
124 final int userId = UserHandle.myUserId(); in setDefaultContentCaptureServiceEnabled()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DAddWindowAsUserTest.java38 final int myUserId = mContext.getUserId(); in testAddWindowSecondaryUser() local
39 testAddWindowWithUser(UserHandle.of(myUserId), false /* shouldCatchException */); in testAddWindowSecondaryUser()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/activity/
DTaskInfoTestActivity.java32 return UserHandle.myUserId(); in getUserId()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceOwnerRequestingBugreportTestActivity.java19 import static android.os.UserHandle.myUserId;
97 getString(R.string.device_owner_incorrect_device_owner, myUserId()), in onCreate()
109 myUserId()), in onCreate()
120 getString(R.string.device_owner_user_not_affiliated, myUserId()), in onCreate()
DDeviceAdminTestReceiver.java82 Log.d(TAG, "onReceive(): user=" + UserHandle.myUserId() + ", action=" + action in onReceive()
154 int myUserId = UserHandle.myUserId(); in onEnabled() local
155 Log.i(TAG, "Device admin enabled on user " + myUserId); in onEnabled()
168 Log.d(TAG, "calling switchUser(" + userHandle + ") from " + myUserId); in onEnabled()
DPermissionLockdownTestActivity.java19 import static android.os.UserHandle.myUserId;
81 Log.d(TAG, "created on user " + myUserId()); in onCreate()
211 Log.d(TAG, "isProfileOrDeviceOwner(): userId=" + myUserId() in isProfileOrDeviceOwner()
DManagedUserPositiveTestActivity.java65 Log.d(TAG, "onCreate(" + UserHandle.myUserId() + "): intent=" + intent); in onCreate()
107 Log.i(TAG, "Calling logoutUser() on user " + UserHandle.myUserId()); in finish()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DInputMethodEnumerationTests.java65 runShellCommand(enableIme(MOCK_IME_ID, myUserId())); in prepareInputMethod()
72 runShellCommand(disableIme(MOCK_IME_ID, myUserId())); in cleanUp()
163 private static int myUserId() { in myUserId() method in InputMethodEnumerationTests
/cts/hostsidetests/settings/app/DeviceOwnerApp/src/com/google/android/cts/deviceowner/
DClearDeviceOwnerTest.java51 Log.d(TAG, "tearDown(): user=" + UserHandle.myUserId()); in tearDown()
85 assertWithMessage("dpm for user %s", UserHandle.myUserId()).that(dpm).isNotNull(); in removeDeviceOwner()
/cts/hostsidetests/devicepolicy/app/DeviceAdminService/src/com/android/cts/deviceadminservice/
DComponentController.java32 Log.i(TAG, "enableComponent(): user=" + UserHandle.myUserId() + ", component=" + cn in enableComponent()
/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/tests/JobScheduler/src/android/jobscheduler/cts/
DTestAppInterface.java264 + " -u " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE + " " + jobId); in runSatisfiedJob()
270 + " -u " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE + " " + mJobId); in forceRunJob()
275 + " -u " + UserHandle.myUserId() in stopJob()
282 + " --user " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE); in forceStopApp()
292 + " -u " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE + " " + mJobId); in cancelJob()
336 + " -u " + UserHandle.myUserId() in removeTestAppFromTempWhitelist()
DDataTransferTest.java113 + " -u " + UserHandle.myUserId() in getBytes()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSetSystemSettingTest.java38 UserHandle.myUserId())); in testSetBrightnessWithValue()
DNotificationListener.java77 Log.d(TAG, "onListenerConnected() on user " + UserHandle.myUserId()); in onListenerConnected()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DPhotoPickerCloudUtils.java283 + " --user " + UserHandle.myUserId() in setCloudProvider()
289 + " --user " + UserHandle.myUserId() in setCloudProvider()
303 + " --user " + UserHandle.myUserId() in getCurrentCloudProvider()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DDeviceAdminReceiverUtils.java57 int userId = UserHandle.myUserId(); in disableSelf()
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java99 int userId = UserHandle.myUserId(); in testSetEnabled()
111 int userId = UserHandle.myUserId(); in testSetEnabledExclusiveInCategory()
123 int userId = UserHandle.myUserId(); in testGetOverlayInfosForTarget()
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DOtherAppFilesRule.java185 + " --user " + UserHandle.myUserId()
214 .appendPath(String.valueOf(UserHandle.myUserId()))
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DValidationHelperTest.java56 assertTrue(ValidationHelper.isUserIdValid(UserHandle.myUserId())); in testUserIdValidation()
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/
DDeviceTest.java58 UserHandle.myUserId()); in cannotGetSmsRoleHolderForAnotherUser()

123