/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | BaseDeviceOwnerTest.java | 101 int myUserId = UserHandle.myUserId(); in assertDeviceOwner() local 102 assertWithMessage("DPM for user %s", myUserId).that(mDevicePolicyManager).isNotNull(); in assertDeviceOwner() 105 assertWithMessage("Component %s is admin for user %s", admin, myUserId) in assertDeviceOwner() 109 assertWithMessage("Component %s is device owner for user %s", admin, myUserId) in assertDeviceOwner() 111 assertWithMessage("Component %s is profile owner for user %s", admin, myUserId) in assertDeviceOwner()
|
/cts/tests/translation/src/android/translation/cts/ |
D | Helper.java | 70 final int userId = UserHandle.myUserId(); in setTemporaryTranslationService() 78 final int userId = UserHandle.myUserId(); in resetTemporaryTranslationService() 90 final int userId = UserHandle.myUserId(); in setTemporaryContentCaptureService() 98 final int userId = UserHandle.myUserId(); in resetTemporaryContentCaptureService() 109 final int userId = UserHandle.myUserId(); in setDefaultContentCaptureServiceEnabled()
|
/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/tests/framework/base/windowmanager/src/android/server/wm/ |
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()
|
D | AddWindowAsUserTest.java | 37 final int myUserId = mContext.getUserId(); in testAddWindowSecondaryUser() local 38 testAddWindowWithUser(UserHandle.of(myUserId), false /* shouldCatchException */); in testAddWindowSecondaryUser()
|
/cts/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 61 int userId = UserHandle.myUserId(); in testSetEnabled() 73 int userId = UserHandle.myUserId(); in testSetEnabledExclusiveInCategory() 85 int userId = UserHandle.myUserId(); in testGetOverlayInfosForTarget()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ShellPermissionTest.java | 69 int uid = UserHandle.getUid(UserHandle.myUserId(), UserHandle.getAppId(Process.SHELL_UID)); in testBlacklistedPermissions() 72 + UserHandle.myUserId() + " uid: " + uid + " pkgs.length: " + pkgs.length); in testBlacklistedPermissions()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | DeviceOwnerRequestingBugreportTestActivity.java | 19 import static android.os.UserHandle.myUserId; 95 getString(R.string.device_owner_incorrect_device_owner, myUserId()), in onCreate() 107 myUserId()), in onCreate() 118 getString(R.string.device_owner_user_not_affiliated, myUserId()), in onCreate()
|
D | DeviceAdminTestReceiver.java | 80 Log.d(TAG, "onReceive(): user=" + UserHandle.myUserId() + ", action=" + action in onReceive() 141 int myUserId = UserHandle.myUserId(); in onEnabled() local 142 Log.i(TAG, "Device admin enabled on user " + myUserId); in onEnabled() 155 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() 215 Log.d(TAG, "isProfileOrDeviceOwner(): userId=" + myUserId() in isProfileOrDeviceOwner()
|
D | ManagedUserPositiveTestActivity.java | 64 Log.d(TAG, "onCreate(" + UserHandle.myUserId() + "): intent=" + intent); in onCreate() 106 Log.i(TAG, "Calling logoutUser() on user " + UserHandle.myUserId()); in finish()
|
D | DeviceOwnerPositiveTestActivity.java | 19 import static android.os.UserHandle.myUserId; 115 getString(R.string.device_owner_incorrect_profile_owner, myUserId()), in onCreate() 129 getString(R.string.device_owner_incorrect_device_owner, myUserId()), null); in onCreate() 141 getString(R.string.device_owner_user_not_affiliated, myUserId()), null); in onCreate()
|
D | CommandReceiverActivity.java | 216 + (forDeviceOwner ? UserHandle.SYSTEM : UserHandle.myUserId())); in onCreate() 257 + ") using " + mDpm + " on user " + UserHandle.myUserId()); in onCreate() 292 + " is not DO for user " + UserHandle.myUserId()); in onCreate() 301 + " on user " + UserHandle.myUserId()); in onCreate()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ActivePasswordSufficientForDeviceTest.java | 88 final int myUserId = UserHandle.getUserId(Process.myUid()); in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies() local 90 changeUserCredential("asdf12", "1234", myUserId); // This currently fails in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies()
|
/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/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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SetSystemSettingTest.java | 36 UserHandle.myUserId())); in testSetBrightnessWithValue()
|
D | NotificationListener.java | 77 Log.d(TAG, "onListenerConnected() on user " + UserHandle.myUserId()); in onListenerConnected()
|
/cts/tests/JobScheduler/src/android/jobscheduler/cts/ |
D | ExpeditedJobTest.java | 89 + " -u " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE + " " + mTestJobId); in forceRunJob()
|
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/ |
D | DeviceTest.java | 58 UserHandle.myUserId()); in cannotGetSmsRoleHolderForAnotherUser()
|
/cts/tests/sensor/sensorratepermission/DirectReportAPI31/src/android/sensorratepermission/cts/directreportapi31/ |
D | DirectReportAPI31Test.java | 74 mUserID = UserHandle.myUserId(); in setUp()
|
/cts/tests/sensor/sensorratepermission/EventConnectionAPI31/src/android/sensorratepermission/cts/eventconnectionapi31/ |
D | EventConnectionAPI31Test.java | 90 mUserID = UserHandle.myUserId(); in setUp()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | CallComposerTest.java | 240 "cmd role add-role-holder --user " + UserHandle.myUserId() in overrideDefaultDialer() 246 "cmd role add-role-holder --user " + UserHandle.myUserId() in restoreDefaultDialer()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ManualPackageInstallTest.java | 81 Log.d(TAG, "Starting " + mCallbackIntent + " on user " + UserHandle.myUserId()); in testManualInstallBlocked()
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | Utils.java | 47 static final int MY_USER_ID = UserHandle.myUserId();
|