Home
last modified time | relevance | path

Searched refs:getUserHandle (Results 1 – 25 of 72) sorted by relevance

123

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningControllerTest.java155 when(mUserManager.getUserHandle()).thenReturn(TEST_USER_ID); in setUp()
184 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile()
251 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile_afterEncryption()
344 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile_skipEncryption()
378 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testNfc()
394 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testNfc_skipEncryption()
425 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testNfc_afterEncryption()
469 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testQr()
483 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testQr_skipEncryption()
525 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testDeviceOwner()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DPackageInstallerCompatVL.java94 addSessionInfoToCache(info, getUserHandle(info)); in updateAndGetActiveSessionCache()
97 getUserHandle(info)), info); in updateAndGetActiveSessionCache()
99 new PackageUserKey(info.getAppPackageName(), getUserHandle(info))); in updateAndGetActiveSessionCache()
108 if (Utilities.ATLEAST_Q && !user.equals(getUserHandle(info))) { in getActiveSessionInfo()
155 getUserHandle(sessionInfo)) == null) { in tryQueuePromiseAppIcon()
224 UserHandle user = getUserHandle(session);
250 ApplicationInfo.FLAG_SYSTEM, getUserHandle(sessionInfo)) != null; in verify()
DPackageInstallerCompat.java57 public static UserHandle getUserHandle(SessionInfo info) { in getUserHandle() method in PackageInstallerCompat
85 this.user = getUserHandle(info); in PackageInstallInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountDetailsFragment.java103 .setUserHandle(mUserInfo.getUserHandle()); in onAttach()
110 .setUserHandle(mUserInfo.getUserHandle()); in onAttach()
139 mAuthenticatorHelper = new AuthenticatorHelper(getContext(), mUserInfo.getUserHandle(), in onStart()
166 mUserInfo.getUserHandle()); in accountExists()
172 ConfirmRemoveAccountDialogFragment.show(this, mAccount, mUserInfo.getUserHandle()); in onRemoveAccountClicked()
DAccountListPreferenceController.java70 mUserInfo.getUserHandle(), /* listener= */ this); in AccountListPreferenceController()
116 if (userHandle.equals(mUserInfo.getUserHandle())) { in onAccountsUpdate()
141 mAuthenticatorHelper = new AuthenticatorHelper(getContext(), mUserInfo.getUserHandle(), in forceUpdateAccountsCategory()
191 .getAccountsByTypeAsUser(accountType, mUserInfo.getUserHandle()); in getAccountPreferences()
DAccountDetailsWithSyncStatusPreferenceController.java93 int userId = getUserHandle().getIdentifier(); in isSyncFailing()
98 getContext(), getAccount(), getUserHandle()); in isSyncFailing()
DAccountDetailsPreferenceController.java60 public UserHandle getUserHandle() { in getUserHandle() method in AccountDetailsPreferenceController
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DDisallowAddUserTaskTest.java86 primaryUser.getUserHandle()); in testMaybeDisallowAddUsers_normalSystem()
101 primaryUser.getUserHandle())) in testMaybeDisallowAddUsers_normalSystem_restrictionAlreadySetupForOneUser()
127 systemUser.getUserHandle()); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
129 meatUser.getUserHandle()); in testMaybeDisallowAddUsers_splitUserSystem_meatUserDeviceOwner()
/packages/apps/Launcher3/src/com/android/launcher3/
DSessionCommitReceiver.java46 import static com.android.launcher3.compat.PackageInstallerCompat.getUserHandle;
94 .getActivityList(packageName, getUserHandle(sessionInfo)); in queuePromiseAppIconAddition()
98 sessionInfo.getAppIcon(), getUserHandle(sessionInfo)); in queuePromiseAppIconAddition()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/
DAccountPreferenceController.java235 intent.putExtra(EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
248 arguments.putParcelable(Intent.EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
305 new AuthenticatorHelper(mContext, userInfo.getUserHandle(), this); in updateProfileUi()
342 userInfo.getUserHandle(), this); in updateProfileUi()
435 profileData.authenticatorHelper, profileData.userInfo.getUserHandle(), in updateAccountTypes()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java235 intent.putExtra(EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
248 arguments.putParcelable(Intent.EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
305 new AuthenticatorHelper(mContext, userInfo.getUserHandle(), this); in updateProfileUi()
342 userInfo.getUserHandle(), this); in updateProfileUi()
435 profileData.authenticatorHelper, profileData.userInfo.getUserHandle(), in updateAccountTypes()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DUserUtils.java44 return getUserManager(context).getUserHandle(); in getCurrentUserHandle()
55 final int myUser = um.getUserHandle(); in getCorpUserInfo()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java496 userHandle = call.getTargetPhoneAccount().getUserHandle(); in getSimCallManagerFromCall()
611 UserHandle phoneAccountUserHandle = account.getAccountHandle().getUserHandle(); in isVisibleForUser()
632 phoneAccountHandle.getUserHandle()); in resolveComponent()
875 && Objects.equals(userHandle, handle.getUserHandle())) { in clearAccounts()
967 UserHandle newAccountUserHandle = newAccount.getAccountHandle().getUserHandle(); in maybeReplaceOldAccount()
1358 UserHandle userHandle = phoneAccount.getAccountHandle().getUserHandle(); in read()
1670 UserHandle userHandle = primaryUser.getUserHandle();
1953 accountHandle.getUserHandle());
2024 if (o.getUserHandle() != null && context != null) {
2027 userManager.getSerialNumberForUser(o.getUserHandle()), serializer);
DRingtoneFactory.java118 UserHandle profileUserHandle = profile.getUserHandle(); in getWorkProfileContextForUser()
126 return getContextForUserHandle(workprofile.getUserHandle()); in getWorkProfileContextForUser()
DConnectionServiceRepository.java47 service.getUserHandle()));
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java379 final UserHandle userHandle = user.getUserHandle(); in updateMwi()
396 final UserHandle userHandle = user.getUserHandle(); in updateMwi()
560 if (mUserManager.isManagedProfile(user.getUserHandle().getIdentifier())) { in updateCfi()
563 UserHandle userHandle = user.getUserHandle(); in updateCfi()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java285 .getUserHandle()); in getNumPackagesDeclaredPermission()
300 .getUserHandle()); in getNumPackagesAllowedByAppOps()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java285 .getUserHandle()); in getNumPackagesDeclaredPermission()
300 .getUserHandle()); in getNumPackagesAllowedByAppOps()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java496 mUi.startProvisioning(mUserManager.getUserHandle(), mParams); in continueProvisioningAfterUserConsent()
508 mUi.startProvisioning(mUserManager.getUserHandle(), mParams); in continueProvisioningAfterUserConsent()
807 UserInfo userInfo = mUserManager.getUserInfo(mUserManager.getUserHandle()); in showManagedProfileErrorAndClose()
/packages/apps/Launcher3/src/com/android/launcher3/shortcuts/
DShortcutKey.java33 return new ShortcutKey(shortcutInfo.getPackage(), shortcutInfo.getUserHandle(), in fromInfo()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallActivity.java68 final UserHandle userHandle = new UserHandle(userManager.getUserHandle()); in onCreate()
/packages/apps/Settings/src/com/android/settings/print/
DProfileSettingsPreferenceFragment.java50 final UserHandle selectedUser = profileSpinnerAdapter.getUserHandle(position); in onViewCreated()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/
DProfileSettingsPreferenceFragment.java50 final UserHandle selectedUser = profileSpinnerAdapter.getUserHandle(position); in onViewCreated()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java71 UserHandle userHandle = userInfo.getUserHandle(); in run()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUtilsTest.java47 when(mUserManager.getUserHandle()).thenReturn(TEST_PRIMARY_USER_ID); in setUp()

123