/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BaseDeviceOwnerTest.java | 103 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/ |
D | ZygotePreload.java | 98 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/ |
D | ActivePasswordSufficientForDeviceTest.java | 87 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/ |
D | StartActivityAsUserActivity.java | 39 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/ |
D | Helper.java | 83 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/ |
D | AddWindowAsUserTest.java | 38 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/ |
D | TaskInfoTestActivity.java | 32 return UserHandle.myUserId(); in getUserId()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | DeviceOwnerRequestingBugreportTestActivity.java | 19 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()
|
D | DeviceAdminTestReceiver.java | 82 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()
|
D | PermissionLockdownTestActivity.java | 19 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()
|
D | ManagedUserPositiveTestActivity.java | 65 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/ |
D | InputMethodEnumerationTests.java | 65 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/ |
D | ClearDeviceOwnerTest.java | 51 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/ |
D | ComponentController.java | 32 Log.i(TAG, "enableComponent(): user=" + UserHandle.myUserId() + ", component=" + cn in enableComponent()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | SecureSettingsUtils.java | 128 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/ |
D | TestAppInterface.java | 264 + " -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()
|
D | DataTransferTest.java | 113 + " -u " + UserHandle.myUserId() in getBytes()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SetSystemSettingTest.java | 38 UserHandle.myUserId())); in testSetBrightnessWithValue()
|
D | NotificationListener.java | 77 Log.d(TAG, "onListenerConnected() on user " + UserHandle.myUserId()); in onListenerConnected()
|
/cts/tests/PhotoPicker/src/android/photopicker/cts/ |
D | PhotoPickerCloudUtils.java | 283 + " --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/ |
D | DeviceAdminReceiverUtils.java | 57 int userId = UserHandle.myUserId(); in disableSelf()
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 99 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/ |
D | OtherAppFilesRule.java | 185 + " --user " + UserHandle.myUserId() 214 .appendPath(String.valueOf(UserHandle.myUserId()))
|
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/ |
D | ValidationHelperTest.java | 56 assertTrue(ValidationHelper.isUserIdValid(UserHandle.myUserId())); in testUserIdValidation()
|
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/ |
D | DeviceTest.java | 58 UserHandle.myUserId()); in cannotGetSmsRoleHolderForAnotherUser()
|