Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java101 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/
DHelper.java70 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/
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/tests/framework/base/windowmanager/src/android/server/wm/
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()
DAddWindowAsUserTest.java37 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/
DOverlayManagerTest.java61 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/
DShellPermissionTest.java69 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/
DDeviceOwnerRequestingBugreportTestActivity.java19 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()
DDeviceAdminTestReceiver.java80 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()
DPermissionLockdownTestActivity.java19 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()
DManagedUserPositiveTestActivity.java64 Log.d(TAG, "onCreate(" + UserHandle.myUserId() + "): intent=" + intent); in onCreate()
106 Log.i(TAG, "Calling logoutUser() on user " + UserHandle.myUserId()); in finish()
DDeviceOwnerPositiveTestActivity.java19 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()
DCommandReceiverActivity.java216 + (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/
DActivePasswordSufficientForDeviceTest.java88 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/
DComponentController.java32 Log.i(TAG, "enableComponent(): user=" + UserHandle.myUserId() + ", component=" + cn in enableComponent()
/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/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSetSystemSettingTest.java36 UserHandle.myUserId())); in testSetBrightnessWithValue()
DNotificationListener.java77 Log.d(TAG, "onListenerConnected() on user " + UserHandle.myUserId()); in onListenerConnected()
/cts/tests/JobScheduler/src/android/jobscheduler/cts/
DExpeditedJobTest.java89 + " -u " + UserHandle.myUserId() + " " + TEST_APP_PACKAGE + " " + mTestJobId); in forceRunJob()
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/
DDeviceTest.java58 UserHandle.myUserId()); in cannotGetSmsRoleHolderForAnotherUser()
/cts/tests/sensor/sensorratepermission/DirectReportAPI31/src/android/sensorratepermission/cts/directreportapi31/
DDirectReportAPI31Test.java74 mUserID = UserHandle.myUserId(); in setUp()
/cts/tests/sensor/sensorratepermission/EventConnectionAPI31/src/android/sensorratepermission/cts/eventconnectionapi31/
DEventConnectionAPI31Test.java90 mUserID = UserHandle.myUserId(); in setUp()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCallComposerTest.java240 "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/
DManualPackageInstallTest.java81 Log.d(TAG, "Starting " + mCallbackIntent + " on user " + UserHandle.myUserId()); in testManualInstallBlocked()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DUtils.java47 static final int MY_USER_ID = UserHandle.myUserId();

12