Home
last modified time | relevance | path

Searched refs:mUserHandle (Results 1 – 25 of 64) sorted by relevance

123

/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DUserId.java55 private final UserHandle mUserHandle; field in UserId
59 mUserHandle = userHandle; in UserId()
90 return context.createPackageContextAsUser("android", /* flags= */ 0, mUserHandle); in asContext()
123 return getPackageManager(context).getUserBadgedIcon(drawable, mUserHandle); in getUserBadgedIcon()
131 return getPackageManager(context).getUserBadgedLabel(label, mUserHandle); in getUserBadgedLabel()
138 return mUserHandle.isSystem(); in isSystem()
145 return userManager.isManagedProfile(mUserHandle.getIdentifier()); in isManagedProfile()
154 return userManager.isQuietModeEnabled(mUserHandle); in isQuietModeEnabled()
167 return userManager.requestQuietModeEnabled(false, mUserHandle); in requestQuietModeDisabled()
174 return DocumentsContract.buildDocumentUriAsUser(authority, documentId, mUserHandle); in buildDocumentUriAsUser()
[all …]
/packages/services/Car/car-lib/src/android/car/watchdog/
DResourceOveruseStats.java42 private @NonNull UserHandle mUserHandle; field in ResourceOveruseStats
73 this.mUserHandle = userHandle; in ResourceOveruseStats()
75 NonNull.class, null, mUserHandle); in ResourceOveruseStats()
94 return mUserHandle; in getUserHandle()
110 "userHandle = " + mUserHandle + ", " + in toString()
125 dest.writeTypedObject(mUserHandle, flags); in writeToParcel()
148 this.mUserHandle = userHandle; in ResourceOveruseStats()
150 NonNull.class, null, mUserHandle); in ResourceOveruseStats()
179 private @NonNull UserHandle mUserHandle; field in ResourceOveruseStats.Builder
198 mUserHandle = userHandle; in Builder()
[all …]
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DThemeOverlayManagerTest.java72 UserHandle mUserHandle; field in ThemeOverlayManagerTest
82 mUserHandle = UserHandle.of(UserHandle.myUserId()); in setUp()
86 mUserHandle)).thenReturn(Lists.newArrayList( in setUp()
90 mUserHandle)).thenReturn(Lists.newArrayList( in setUp()
105 mUserHandle); in testApplyOverlays_shouldSetEnabled() local
117 mUserHandle); in testApplyOverlays_shouldGetOverlayInfo() local
130 mUserHandle); in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() local
138 mUserHandle).get(0).isEnabled()).isEqualTo(!enabled); in testDefaultDisabled_applyOverlays_shouldEnabled()
147 mUserHandle); in testDefaultDisabled_applyOverlays_shouldEnabled() local
155 mUserHandle).get(0).isEnabled()).isEqualTo(!enabled); in testDefaultEnabled_applyOverlays_shouldDisabled()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DAddAccountSettings.java102 addAccountOptions.putParcelable(EXTRA_USER, mUserHandle);
106 startActivityForResultAsUser(intent, ADD_ACCOUNT_REQUEST, mUserHandle);
131 private UserHandle mUserHandle; field in AddAccountSettings
143 mUserHandle = Utils.getSecureTargetUser(getActivityToken(), um, null /* arguments */, in onCreate()
145 if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle)) { in onCreate()
157 if (Utils.startQuietModeDialogIfNecessary(this, um, mUserHandle.getIdentifier())) { in onCreate()
161 if (um.isUserUnlocked(mUserHandle)) { in onCreate()
170 .setUserId(mUserHandle.getIdentifier()) in onCreate()
191 startActivityAsUser(data, mUserHandle); in onActivityResult()
230 intent.putExtra(EXTRA_USER, mUserHandle); in requestChooseAccount()
[all …]
DChooseAccountPreferenceController.java70 private UserHandle mUserHandle; field in ChooseAccountPreferenceController
85 mUserHandle = userHandle; in initialize()
127 mUserHandle.getIdentifier()); in updateAuthDescriptions()
172 context, mProviderList.get(0).getType(), mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
188 p.checkAccountManagementAndSetDisabled(mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
209 mUserHandle.getIdentifier()); in getAuthoritiesForAccountType()
241 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
243 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
270 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
284 intent.putExtra(EXTRA_USER, mUserHandle); in finishWithAccountType()
DAccountSyncSettings.java154 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle()
191 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
224 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu()
271 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
319 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded()
326 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
328 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
385 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
388 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
414 final int userId = mUserHandle.getIdentifier(); in setFeedsState()
[all …]
DRemoveAccountPreferenceController.java61 private UserHandle mUserHandle; field in RemoveAccountPreferenceController
92 if (mUserHandle != null) { in onClick()
94 mContext, UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle.getIdentifier()); in onClick()
101 ConfirmRemoveAccountDialog.show(mParentFragment, mAccount, mUserHandle); in onClick()
106 mUserHandle = userHandle; in init()
117 private UserHandle mUserHandle; field in RemoveAccountPreferenceController.ConfirmRemoveAccountDialog
139 mUserHandle = arguments.getParcelable(Intent.EXTRA_USER); in onCreate()
184 }, null, mUserHandle); in onClick()
DAccountHeaderPreferenceController.java49 private final UserHandle mUserHandle; field in AccountHeaderPreferenceController
65 mUserHandle = args.getParcelable(KEY_USER_HANDLE); in AccountHeaderPreferenceController()
67 mUserHandle = null; in AccountHeaderPreferenceController()
76 return mAccount != null && mUserHandle != null; in isAvailable()
92 final AuthenticatorHelper helper = new AuthenticatorHelper(mContext, mUserHandle, null); in onResume()
DAccountTypePreferenceLoader.java62 private UserHandle mUserHandle; field in AccountTypePreferenceLoader
69 mUserHandle = userHandle; in AccountTypePreferenceLoader()
92 desc.packageName, 0, mUserHandle); in addPreferencesForType()
148 PackageManager.MATCH_DEFAULT_ONLY, mUserHandle.getIdentifier()); in updatePreferenceIntents()
168 prefIntent, mUserHandle); in updatePreferenceIntents()
192 ResolveInfo resolveInfo = pm.resolveActivityAsUser(intent, 0, mUserHandle.getIdentifier()); in isSafeIntent()
/packages/services/Car/car-lib/src/android/car/admin/
DCreateUserResult.java71 private final @Nullable UserHandle mUserHandle; field in CreateUserResult
83 mUserHandle = null; in CreateUserResult()
89 mUserHandle = user == null ? null : user.getUserHandle(); in CreateUserResult()
90 if (mUserHandle == null) { in CreateUserResult()
99 mUserHandle = null; in CreateUserResult()
140 return mUserHandle; in getUserHandle()
147 if (mUserHandle != null) { in toString()
148 string.append(":").append(mUserHandle.getIdentifier()); in toString()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceController.java72 private UserHandle mUserHandle; field in AccountSyncDetailsPreferenceController
96 mUserHandle = userHandle; in setUserHandle()
118 if (mUserHandle == null) { in checkInitialized()
130 mAuthenticatorHelper = new AuthenticatorHelper(getContext(), mUserHandle, /* listener= */ in onCreateInternal()
161 if (userHandle.equals(mUserHandle)) { in onAccountsUpdate()
192 int userId = mUserHandle.getIdentifier(); in onSyncPreferenceClicked()
216 AccountSyncHelper.requestSyncIfAllowed(mAccount, authority, mUserHandle.getIdentifier()); in requestSync()
220 ContentResolver.cancelSyncAsUser(mAccount, authority, mUserHandle.getIdentifier()); in cancelSync()
235 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
237 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
[all …]
DAccountDetailsBasePreferenceController.java39 private UserHandle mUserHandle; field in AccountDetailsBasePreferenceController
59 mUserHandle = userHandle; in setUserHandle()
64 return mUserHandle; in getUserHandle()
87 if (mUserHandle == null) { in checkInitialized()
105 return new AuthenticatorHelper(getContext(), mUserHandle, null); in getAuthenticatorHelper()
DAccountSyncPreferenceController.java41 private UserHandle mUserHandle; field in AccountSyncPreferenceController
55 mUserHandle = userHandle; in setUserHandle()
77 if (mUserHandle == null) { in checkInitialized()
92 AccountSyncDetailsFragment.newInstance(mAccount, mUserHandle)); in handlePreferenceClicked()
97 int userId = mUserHandle.getIdentifier(); in getSummary()
DAccountTypesHelper.java47 private UserHandle mUserHandle; field in AccountTypesHelper
63 mUserHandle = UserHandle.of(UserHandle.myUserId()); in AccountTypesHelper()
64 mAuthenticatorHelper = new AuthenticatorHelper(mContext, mUserHandle, in AccountTypesHelper()
67 if (userHandle.equals(mUserHandle)) { in AccountTypesHelper()
103 accountManager.getAuthenticatorTypesAsUser(mUserHandle.getIdentifier()); in updateAuthorizedAccountTypes()
/packages/apps/Settings/src/com/android/settings/users/
DAutoSyncDataPreferenceController.java50 protected UserHandle mUserHandle; field in AutoSyncDataPreferenceController
56 mUserHandle = Process.myUserHandle(); in AutoSyncDataPreferenceController()
63 mUserHandle.getIdentifier())); in updateState()
75 ConfirmAutoSyncChangeFragment.show(mParentFragment, checked, mUserHandle, in handlePreferenceTreeClick()
103 UserHandle mUserHandle; field in AutoSyncDataPreferenceController.ConfirmAutoSyncChangeFragment
112 dialog.mUserHandle = userHandle; in show()
123 mUserHandle = (UserHandle) savedInstanceState.getParcelable(SAVE_USER_HANDLE); in onCreateDialog()
145 outState.putParcelable(SAVE_USER_HANDLE, mUserHandle); in onSaveInstanceState()
157 mUserHandle.getIdentifier()); in onClick()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultWorkAutofillPreferenceController.java31 private final UserHandle mUserHandle; field in DefaultWorkAutofillPreferenceController
35 mUserHandle = Utils.getManagedProfile(mUserManager); in DefaultWorkAutofillPreferenceController()
40 if (mUserHandle == null) { in isAvailable()
56 mUserHandle.getIdentifier()); in getDefaultAppInfo()
61 mUserHandle.getIdentifier(), in getDefaultAppInfo()
75 mContext, mUserHandle.getIdentifier(), info.getKey()); in getSettingIntent()
81 mContext.startActivityAsUser(intent, mUserHandle); in startActivity()
/packages/apps/Launcher3/quickstep/robolectric_tests/src/com/android/launcher3/model/
DWidgetsPredicationUpdateTaskTest.java89 private UserHandle mUserHandle; field in WidgetsPredicationUpdateTaskTest
105 mUserHandle = Process.myUserHandle(); in setup()
152 mUserHandle); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
154 mUserHandle); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
156 mUserHandle); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
158 mUserHandle); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
160 mUserHandle); in widgetsRecommendationRan_shouldOnlyReturnNotAddedWidgetsInAppPredictionOrder()
189 mUserHandle); in widgetsRecommendationRan_localFilterDisabled_shouldReturnWidgetsInPredicationOrder()
191 mUserHandle); in widgetsRecommendationRan_localFilterDisabled_shouldReturnWidgetsInPredicationOrder()
194 mUserHandle); in widgetsRecommendationRan_localFilterDisabled_shouldReturnWidgetsInPredicationOrder()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java70 private UserHandle mUserHandle; field in AccountSyncFragment
104 mUserHandle = new UserHandle(UserHandle.myUserId()); in onCreate()
106 mAuthenticatorHelper = new AuthenticatorHelper(getActivity(), mUserHandle, this); in onCreate()
131 mHandler.post(() -> onAccountsUpdate(mUserHandle)); in onResume()
165 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
193 mUserHandle.getIdentifier()).isEmpty(); in onPreferenceTreeClick()
248 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
251 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
268 account.type, mUserHandle); in accountExists()
295 final int userId = mUserHandle.getIdentifier(); in onSyncStateUpdated()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DPeakPerformancePreferenceControllerTest.java73 private UserHandle mUserHandle; field in PeakPerformancePreferenceControllerTest
99 mUserHandle = UserHandle.getUserHandleForUid(UID); in setUp()
134 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in onCreate_peakPerformance_withKillableStateYes()
147 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in onCreate_peakPerformance_withKillableStateNo()
160 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in onCreate_peakPerformance_withKillableStateNever()
173 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in callChangeListener_enablingPeakPerformance()
180 verify(mMockManager).setKillablePackageAsUser(PKG_NAME, mUserHandle, true); in callChangeListener_enablingPeakPerformance()
189 new PackageKillableState(PKG_NAME, mUserHandle.getIdentifier(), in callChangeListener_disablingPeakPerformance()
200 verify(mMockManager).setKillablePackageAsUser(PKG_NAME, mUserHandle, false); in callChangeListener_disablingPeakPerformance()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/conditional/
DWorkModeConditionController.java52 private UserHandle mUserHandle; field in WorkModeConditionController
69 return mUserHandle != null && mUm.isQuietModeEnabled(mUserHandle); in isDisplayable()
80 if (mUserHandle != null) { in onActionClick()
81 mUm.requestQuietModeEnabled(false, mUserHandle); in onActionClick()
113 mUserHandle = null; in updateUserHandle()
118 mUserHandle = userInfo.getUserHandle(); in updateUserHandle()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DLocationTogglePreferenceControllerTest.java56 private UserHandle mUserHandle; field in LocationTogglePreferenceControllerTest
74 mUserHandle = UserHandle.of(UserHandle.myUserId()); in setUp()
88 assertThat(mLocationManager.isLocationEnabledForUser(mUserHandle)).isFalse(); in onPreferenceClicked_clickLocationEnabled_shouldDisableLocation()
98 assertThat(mLocationManager.isLocationEnabledForUser(mUserHandle)).isTrue(); in onPreferenceClicked_clickMicDisabled_shouldEnableLocation()
106 mLocationManager.setLocationEnabledForUser(true, mUserHandle); in onListenerUpdate_locationDisabled_shouldUpdateChecked()
116 mLocationManager.setLocationEnabledForUser(false, mUserHandle); in onListenerUpdate_locationEnabled_shouldUpdateChecked()
123 mLocationManager.setLocationEnabledForUser(isLocationEnabled, mUserHandle); in initializePreference()
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/
DThemeOverlayManager.java45 private UserHandle mUserHandle; field in ThemeOverlayManager
50 mUserHandle = UserHandle.of(UserHandle.myUserId()); in ThemeOverlayManager()
74 return mOverlayManager.getOverlayInfosForTarget(mTargetPackageId, mUserHandle); in getOverlayInfo()
121 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages() local
124 + ", user:" + mUserHandle); in setEnabledOverlayPackages()
129 + mUserHandle); in setEnabledOverlayPackages()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/location/
DLocationStateSwitchPreferenceControllerTest.java57 private UserHandle mUserHandle; field in LocationStateSwitchPreferenceControllerTest
71 mUserHandle = UserHandle.of(UserHandle.myUserId()); in setUp()
88 mLocationManager.setLocationEnabledForUser(/* enabled= */ true, mUserHandle); in onIntentReceived_updateUi()
101 assertThat(mLocationManager.isLocationEnabledForUser(mUserHandle)).isTrue(); in onPreferenceClicked_locationDisabled_shouldEnable()
111 assertThat(mLocationManager.isLocationEnabledForUser(mUserHandle)).isFalse(); in onPreferenceClicked_locationEnabled_shouldDisable()
135 mLocationManager.setLocationEnabledForUser(checked, mUserHandle); in initializePreference()
/packages/services/Car/service/src/com/android/car/pm/
DVendorServiceController.java123 stopOrUnbindService(key.mVendorServiceInfo, key.mUserHandle); in release()
187 if (key.mUserHandle.getIdentifier() == userId) { in doUserLockChanged()
188 stopOrUnbindService(key.mVendorServiceInfo, key.mUserHandle); in doUserLockChanged()
238 key.mUserHandle); in getOrCreateConnection()
408 private final UserHandle mUserHandle; field in VendorServiceController.ConnectionKey
413 mUserHandle = user; in ConnectionKey()
429 return Objects.equals(mUserHandle, that.mUserHandle) in equals()
435 return Objects.hash(mUserHandle, mVendorServiceInfo); in hashCode()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java60 private final UserHandle mUserHandle; field in UserCallIntentProcessor
64 mUserHandle = userHandle; in UserCallIntentProcessor()
112 if (!UserUtil.isManagedProfile(mContext, mUserHandle)) { in processOutgoingCallIntent()
119 mUserHandle)) { in processOutgoingCallIntent()
126 mUserHandle)) { in processOutgoingCallIntent()
156 intent.putExtra(CallIntentProcessor.KEY_INITIATING_USER, mUserHandle); in processOutgoingCallIntent()

123