Home
last modified time | relevance | path

Searched refs:userHandle (Results 1 – 10 of 10) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBasicAdminReceiver.java43 public void onUserAdded(Context context, Intent intent, UserHandle userHandle) { in onUserAdded() argument
44 super.onUserAdded(context, intent, userHandle); in onUserAdded()
45 sendUserBroadcast(context, ACTION_USER_ADDED, userHandle); in onUserAdded()
49 public void onUserRemoved(Context context, Intent intent, UserHandle userHandle) { in onUserRemoved() argument
50 super.onUserRemoved(context, intent, userHandle); in onUserRemoved()
51 sendUserBroadcast(context, ACTION_USER_REMOVED, userHandle); in onUserRemoved()
55 public void onUserStarted(Context context, Intent intent, UserHandle userHandle) { in onUserStarted() argument
56 super.onUserStarted(context, intent, userHandle); in onUserStarted()
57 sendUserBroadcast(context, ACTION_USER_STARTED, userHandle); in onUserStarted()
61 public void onUserStopped(Context context, Intent intent, UserHandle userHandle) { in onUserStopped() argument
[all …]
DCreateAndManageUserTest.java77 UserHandle userHandle = mDevicePolicyManager.createAndManageUser( in testCreateAndManageUser() local
83 Log.d(TAG, "User create: " + userHandle); in testCreateAndManageUser()
134 UserHandle userHandle = mDevicePolicyManager.createAndManageUser( in testCreateAndManageUser_GetSecondaryUsers() local
140 Log.d(TAG, "User create: " + userHandle); in testCreateAndManageUser_GetSecondaryUsers()
144 assertEquals(userHandle, secondaryUsers.get(0)); in testCreateAndManageUser_GetSecondaryUsers()
153 UserHandle userHandle = mDevicePolicyManager.createAndManageUser( in testCreateAndManageUser_SwitchUser() local
159 Log.d(TAG, "User create: " + userHandle); in testCreateAndManageUser_SwitchUser()
165 assertTrue(mDevicePolicyManager.switchUser(getWho(), userHandle)); in testCreateAndManageUser_SwitchUser() local
166 assertEquals(userHandle, broadcastReceiver.waitForBroadcastReceived()); in testCreateAndManageUser_SwitchUser()
178 UserHandle userHandle = mDevicePolicyManager.createAndManageUser( in testCreateAndManageUser_CannotStopCurrentUser() local
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodIconSamplerActivity.java61 UserHandle userHandle = Process.myUserHandle(); in sampleImage() local
62 Log.d(TAG, "Sampling image for: " + userHandle); in sampleImage()
63 Drawable drawable = getPackageManager().getUserBadgedIcon(getAppIcon(), userHandle); in sampleImage()
DCommandReceiverActivity.java497 UserHandle userHandle = mDpm.createAndManageUser(mAdmin, "managed user", mAdmin, in onCreate() local
502 mDpm.startUserInBackground(mAdmin, userHandle); in onCreate()
524 UserHandle userHandle = mDpm.createAndManageUser(mAdmin, "managed user", mAdmin, in onCreate() local
526 mDpm.switchUser(mAdmin, userHandle); in onCreate()
631 for (final UserHandle userHandle : mUm.getUserProfiles()) { in removeManagedProfile()
632 mDpm.removeUser(mAdmin, userHandle); in removeManagedProfile()
670 UserHandle userHandle = mDpm.createAndManageUser(mAdmin, "managed user", mAdmin, in createAndSwitchUserWithMessage() local
673 mDpm.switchUser(mAdmin, userHandle); in createAndSwitchUserWithMessage()
DICrossUserService.aidl22 void switchUser(in UserHandle userHandle); in switchUser() argument
DDeviceAdminTestReceiver.java243 public void switchUser(UserHandle userHandle) {
244 Log.d(TAG, "switchUser: " + userHandle);
246 userHandle);
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DMultiUserDeviceTest.java73 final UserHandle userHandle = in performPrivateCommand() local
75 if (userHandle != null) { in performPrivateCommand()
76 mResultQueue.add(userHandle); in performPrivateCommand()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceFailsTest.java79 UserHandle userHandle) { in bind() argument
81 serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE, userHandle); in bind()
DBindDeviceAdminServiceGoodSetupTest.java218 UserHandle userHandle) { in bind() argument
220 serviceIntent, serviceConnection, Context.BIND_AUTO_CREATE, userHandle); in bind()
/cts/tests/tests/telecom/src/android/telecom/cts/
DDataObjectUnitTests.java101 final UserHandle userHandle = Process.myUserHandle(); in testPhoneAccountHandle() local
105 userHandle); in testPhoneAccountHandle()
109 assertEquals(userHandle, accountHandle.getUserHandle()); in testPhoneAccountHandle()