Home
last modified time | relevance | path

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

1234

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningControllerTest.java156 when(mUserManager.getUserHandle()).thenReturn(TEST_USER_ID); in setUp()
186 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile()
253 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile_afterEncryption()
346 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testManagedProfile_skipEncryption()
394 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testNfc()
410 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testNfc_skipEncryption()
441 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testNfc_afterEncryption()
485 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testQr()
499 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testQr_skipEncryption()
541 verify(mUi).startProvisioning(mUserManager.getUserHandle(), mParams); in testDeviceOwner()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/users/
DPermissionsPreferenceControllerTest.java97 TEST_USER.getUserHandle(), TEST_RESTRICTION, true); in testRefreshUi_setToFalse()
108 TEST_USER.getUserHandle(), TEST_RESTRICTION, false); in testRefreshUi_setToTrue()
118 TEST_USER.getUserHandle(), TEST_RESTRICTION, true); in testOnPreferenceChange_changeToFalse()
121 .hasUserRestriction(TEST_RESTRICTION, TEST_USER.getUserHandle())).isFalse(); in testOnPreferenceChange_changeToFalse()
129 TEST_USER.getUserHandle(), TEST_RESTRICTION, false); in testOnPreferenceChange_changeToTrue()
132 .hasUserRestriction(TEST_RESTRICTION, TEST_USER.getUserHandle())).isTrue(); in testOnPreferenceChange_changeToTrue()
/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.java78 mUserInfo.getUserHandle(), /* listener= */ this); in AccountListPreferenceController()
125 if (userHandle.equals(mUserInfo.getUserHandle())) { in onAccountsUpdate()
150 mAuthenticatorHelper = new AuthenticatorHelper(getContext(), mUserInfo.getUserHandle(), in forceUpdateAccountsCategory()
200 .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/Launcher3/src/com/android/launcher3/pm/
DInstallSessionHelper.java83 public static UserHandle getUserHandle(SessionInfo info) { in getUserHandle() method in InstallSessionHelper
107 activePackages.put(new PackageUserKey(info.getAppPackageName(), getUserHandle(info)), in getActiveSessions()
116 if (Utilities.ATLEAST_Q && !user.equals(getUserHandle(info))) { in getActiveSessionInfo()
146 pkg, getUserHandle(sessionInfo), ApplicationInfo.FLAG_SYSTEM) != null; in verify()
214 sessionInfo.getAppPackageName(), getUserHandle(sessionInfo), 0) == null) { in tryQueuePromiseAppIcon()
DInstallSessionTracker.java18 import static com.android.launcher3.pm.InstallSessionHelper.getUserHandle;
98 new PackageUserKey(session.getAppPackageName(), getUserHandle(session)); in pushSessionDisplayToLauncher()
DPackageInstallInfo.java41 this.user = InstallSessionHelper.getUserHandle(info); in PackageInstallInfo()
/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/icons/
DIconCache.java218 bitmapInfo = cacheLocked(ShortcutKey.fromInfo(si).componentName, si.getUserHandle(), in getShortcutIcon()
225 bitmapInfo = getDefaultIcon(si.getUserHandle()); in getShortcutIcon()
228 if (isDefaultIcon(bitmapInfo, si.getUserHandle()) && fallbackIconCheck.test(info)) { in getShortcutIcon()
248 appInfo.user = shortcutInfo.getUserHandle(); in getShortcutInfoBadge()
266 return cacheLocked(ShortcutKey.fromInfo(info).componentName, info.getUserHandle(), in getDeepShortcutTitleAndIcon()
/packages/apps/Launcher3/src/com/android/launcher3/
DSessionCommitReceiver.java19 import static com.android.launcher3.pm.InstallSessionHelper.getUserHandle;
95 .getActivityList(packageName, getUserHandle(sessionInfo)).isEmpty()) { in queuePromiseAppIconAddition()
98 sessionInfo.getAppIcon(), getUserHandle(sessionInfo)); in queuePromiseAppIconAddition()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserLifecycleEventTest.java36 assertThat(event.getUserHandle().getIdentifier()).isEqualTo(to); in testFullConstructor()
49 assertThat(event.getUserHandle().getIdentifier()).isEqualTo(to); in testAlternativeConstructor()
/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/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/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java237 intent.putExtra(EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
252 arguments.putParcelable(Intent.EXTRA_USER, profileData.userInfo.getUserHandle()); in onPreferenceClick()
315 new AuthenticatorHelper(mContext, userInfo.getUserHandle(), this); in updateProfileUi()
357 userInfo.getUserHandle(), this); in updateProfileUi()
453 profileData.authenticatorHelper, profileData.userInfo.getUserHandle(), in updateAccountTypes()
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java494 userHandle = call.getTargetPhoneAccount().getUserHandle(); in getSimCallManagerFromCall()
609 UserHandle phoneAccountUserHandle = account.getAccountHandle().getUserHandle(); in isVisibleForUser()
630 phoneAccountHandle.getUserHandle()); in resolveComponent()
873 && Objects.equals(userHandle, handle.getUserHandle())) { in clearAccounts()
965 UserHandle newAccountUserHandle = newAccount.getAccountHandle().getUserHandle(); in maybeReplaceOldAccount()
1356 UserHandle userHandle = phoneAccount.getAccountHandle().getUserHandle(); in read()
1662 UserHandle userHandle = primaryUser.getUserHandle();
1945 accountHandle.getUserHandle());
2016 if (o.getUserHandle() != null && context != null) {
2019 userManager.getSerialNumberForUser(o.getUserHandle()), serializer);
DRingtoneFactory.java118 UserHandle profileUserHandle = profile.getUserHandle(); in getWorkProfileContextForUser()
126 return getContextForUserHandle(workprofile.getUserHandle()); in getWorkProfileContextForUser()
/packages/apps/Car/Settings/src/com/android/car/settings/users/
DPermissionsPreferenceController.java97 getUserInfo().getUserHandle()); in PermissionsPreferenceController()
124 getUserInfo().getUserHandle())); in updateState()
/packages/services/Car/user/car-user-lib/src/android/car/userlib/
DCarUserManagerHelper.java315 mUserManager.setUserRestriction(restriction, enable, userInfo.getUserHandle()); in setDefaultNonAdminRestrictions()
327 mUserManager.setUserRestriction(restriction, enable, userInfo.getUserHandle()); in setOptionalNonAdminRestrictions()
/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.java305 .getUserHandle()); in getNumPackagesDeclaredPermission()
320 .getUserHandle()); in getNumPackagesAllowedByAppOps()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarUserManagerTest.java154 .that(event.getUserHandle().getIdentifier()).isEqualTo(newUserId); in testLifecycleListener()
193 .that(event.getUserHandle().getIdentifier()).isEqualTo(newUserId); in testLifecycleListener()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java547 mUi.startProvisioning(mUserManager.getUserHandle(), mParams); in continueProvisioningAfterUserConsent()
559 mUi.startProvisioning(mUserManager.getUserHandle(), mParams); in continueProvisioningAfterUserConsent()
859 UserInfo userInfo = mUserManager.getUserInfo(mUserManager.getUserHandle()); in showManagedProfileErrorAndClose()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/print/
DProfileSettingsPreferenceFragment.java50 final UserHandle selectedUser = profileSpinnerAdapter.getUserHandle(position); in onViewCreated()

1234