Home
last modified time | relevance | path

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

/packages/apps/Settings/src/com/android/settings/accounts/
DAddAccountSettings.java102 addAccountOptions.putParcelable(EXTRA_USER, mUserHandle);
105 startActivityForResultAsUser(intent, ADD_ACCOUNT_REQUEST, mUserHandle);
130 private UserHandle mUserHandle; field in AddAccountSettings
142 mUserHandle = Utils.getSecureTargetUser(getActivityToken(), um, null /* arguments */, in onCreate()
144 if (um.hasUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle)) { in onCreate()
156 if (Utils.startQuietModeDialogIfNecessary(this, um, mUserHandle.getIdentifier())) { in onCreate()
160 if (um.isUserUnlocked(mUserHandle)) { in onCreate()
169 mUserHandle.getIdentifier())) { in onCreate()
188 startActivityAsUser(data, mUserHandle); in onActivityResult()
227 intent.putExtra(EXTRA_USER, mUserHandle); in requestChooseAccount()
[all …]
DAutoSyncDataPreferenceController.java49 protected UserHandle mUserHandle; field in AutoSyncDataPreferenceController
55 mUserHandle = Process.myUserHandle(); in AutoSyncDataPreferenceController()
62 mUserHandle.getIdentifier())); in updateState()
74 ConfirmAutoSyncChangeFragment.show(mParentFragment, checked, mUserHandle, in handlePreferenceTreeClick()
102 UserHandle mUserHandle; field in AutoSyncDataPreferenceController.ConfirmAutoSyncChangeFragment
111 dialog.mUserHandle = userHandle; in show()
122 mUserHandle = (UserHandle) savedInstanceState.getParcelable(SAVE_USER_HANDLE); in onCreateDialog()
144 outState.putParcelable(SAVE_USER_HANDLE, mUserHandle); in onSaveInstanceState()
156 mUserHandle.getIdentifier()); in onClick()
DAccountSyncSettings.java162 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle()
199 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch()
236 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu()
281 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
329 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded()
336 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded()
338 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded()
393 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
396 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
422 final int userId = mUserHandle.getIdentifier(); in setFeedsState()
[all …]
DChooseAccountActivity.java82 private UserHandle mUserHandle; field in ChooseAccountActivity
130 mUserHandle = Utils.getSecureTargetUser(getActivity().getActivityToken(), mUm, in onCreate()
141 mUserHandle.getIdentifier()); in updateAuthDescriptions()
185 context, mProviderList.get(0).type, mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
200 p.checkAccountManagementAndSetDisabled(mUserHandle.getIdentifier()); in onAuthDescriptionsUpdated()
235 mUserHandle.getIdentifier()); in getAuthoritiesForAccountType()
265 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getDrawableForType()
267 authContext.getDrawable(desc.iconId), mUserHandle); in getDrawableForType()
292 .createPackageContextAsUser(desc.packageName, 0, mUserHandle); in getLabelForType()
318 intent.putExtra(EXTRA_USER, mUserHandle); in finishWithAccountType()
DAccountTypePreferenceLoader.java60 private UserHandle mUserHandle; field in AccountTypePreferenceLoader
67 mUserHandle = userHandle; in AccountTypePreferenceLoader()
90 desc.packageName, 0, mUserHandle); in addPreferencesForType()
146 PackageManager.MATCH_DEFAULT_ONLY, mUserHandle.getIdentifier()); in updatePreferenceIntents()
166 prefIntent, mUserHandle); in updatePreferenceIntents()
190 ResolveInfo resolveInfo = pm.resolveActivityAsUser(intent, 0, mUserHandle.getIdentifier()); in isSafeIntent()
DAccountHeaderPreferenceController.java48 private final UserHandle mUserHandle; field in AccountHeaderPreferenceController
64 mUserHandle = args.getParcelable(KEY_USER_HANDLE); in AccountHeaderPreferenceController()
66 mUserHandle = null; in AccountHeaderPreferenceController()
75 return mAccount != null && mUserHandle != null; in isAvailable()
91 final AuthenticatorHelper helper = new AuthenticatorHelper(mContext, mUserHandle, null); in onResume()
DRemoveAccountPreferenceController.java59 private UserHandle mUserHandle; field in RemoveAccountPreferenceController
102 ConfirmRemoveAccountDialog.show(mParentFragment, mAccount, mUserHandle); in onClick()
107 mUserHandle = userHandle; in init()
118 private UserHandle mUserHandle; field in RemoveAccountPreferenceController.ConfirmRemoveAccountDialog
140 mUserHandle = arguments.getParcelable(Intent.EXTRA_USER); in onCreate()
190 }, null, mUserHandle); in onClick()
DAccountSyncPreferenceController.java45 private UserHandle mUserHandle; field in AccountSyncPreferenceController
65 args.putParcelable(EXTRA_USER, mUserHandle); in handlePreferenceTreeClick()
95 mUserHandle = userHandle; in init()
96 mAuthenticatorHelper = new AuthenticatorHelper(mContext, mUserHandle, this); in init()
104 final int userId = mUserHandle.getIdentifier(); in updateSummary()
DAccountPreferenceBase.java54 protected UserHandle mUserHandle; field in AccountPreferenceBase
65 mUserHandle = Utils.getSecureTargetUser(activity.getActivityToken(), mUm, getArguments(), in onCreate()
67 mAuthenticatorHelper = new AuthenticatorHelper(activity, mUserHandle, this); in onCreate()
69 new AccountTypePreferenceLoader(this, mAuthenticatorHelper, mUserHandle); in onCreate()
DAutoSyncWorkDataPreferenceController.java30 mUserHandle = Utils.getManagedProfileWithDisabled(mUserManager); in AutoSyncWorkDataPreferenceController()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAccountSyncFragment.java60 private UserHandle mUserHandle; field in AccountSyncFragment
94 mUserHandle = new UserHandle(UserHandle.myUserId()); in onCreate()
96 mAuthenticatorHelper = new AuthenticatorHelper(getActivity(), mUserHandle, this); in onCreate()
121 mHandler.post(() -> onAccountsUpdate(mUserHandle)); in onResume()
150 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick()
171 mUserHandle.getIdentifier()).isEmpty(); in onPreferenceTreeClick()
225 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync()
228 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync()
245 account.type, mUserHandle); in accountExists()
272 final int userId = mUserHandle.getIdentifier(); in onSyncStateUpdated()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
DWorkModeCondition.java34 private UserHandle mUserHandle; field in WorkModeCondition
44 mUserHandle = null; in updateUserHandle()
49 mUserHandle = userInfo.getUserHandle(); in updateUserHandle()
58 setActive(mUserHandle != null && mUm.isQuietModeEnabled(mUserHandle)); in refreshState()
93 if (mUserHandle != null) { in onActionClick()
94 mUm.trySetQuietModeDisabled(mUserHandle.getIdentifier(), null); in onActionClick()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DAppPermissionGroup.java45 private final UserHandle mUserHandle; field in AppPermissionGroup
194 mUserHandle = userHandle; in AppPermissionGroup()
247 0, mUserHandle); in resetReviewRequired() local
292 return mUserHandle.getIdentifier(); in getUserId()
363 permission.getName(), mUserHandle); in grantRuntimePermissions()
377 0, mUserHandle); in grantRuntimePermissions() local
421 mPackageInfo.packageName, mask, 0, mUserHandle); in grantRuntimePermissions() local
459 permission.getName(), mUserHandle); in revokeRuntimePermissions()
473 mUserHandle); in revokeRuntimePermissions() local
485 mUserHandle); in revokeRuntimePermissions() local
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java64 private final UserHandle mUserHandle; field in UserCallIntentProcessor
68 mUserHandle = userHandle; in UserCallIntentProcessor()
106 if (!UserUtil.isManagedProfile(mContext, mUserHandle)) { in processOutgoingCallIntent()
113 mUserHandle)) { in processOutgoingCallIntent()
120 mUserHandle)) { in processOutgoingCallIntent()
145 intent.putExtra(CallIntentProcessor.KEY_INITIATING_USER, mUserHandle); in processOutgoingCallIntent()
156 mUserHandle.getIdentifier()); in isDefaultOrSystemDialer()
/packages/apps/Settings/src/com/android/settings/location/
DInjectedSetting.java60 public final UserHandle mUserHandle; field in InjectedSetting
74 this.mUserHandle = userHandle; in InjectedSetting()
103 ", userId=" + mUserHandle.getIdentifier() + in toString()
126 && mUserHandle.equals(that.mUserHandle) in equals()
136 result = 31 * result + mUserHandle.hashCode(); in hashCode()
DSettingsInjector.java272 Drawable icon = pm.getUserBadgedIcon(appIcon, info.mUserHandle); in addServiceSetting()
273 CharSequence badgedAppLabel = pm.getUserBadgedLabel(info.title, info.mUserHandle); in addServiceSetting()
315 mContext.startActivityAsUser(settingIntent, mInfo.mUserHandle); in onPreferenceClick()
481 if (!am.isUserRunning(setting.mUserHandle.getIdentifier())) { in startService()
484 + setting.mUserHandle.getIdentifier() + " is not running"); in startService()
517 mContext.startServiceAsUser(intent, setting.mUserHandle); in startService()
DLocationSettings.java411 private UserHandle mUserHandle; field in LocationSettings.PackageEntryClickedListener
415 mUserHandle = userHandle; in PackageEntryClickedListener()
426 R.string.application_info_label, null, mUserHandle); in onPreferenceClick()
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultWorkPhonePreferenceController.java26 private final UserHandle mUserHandle; field in DefaultWorkPhonePreferenceController
30 mUserHandle = Utils.getManagedProfile(mUserManager); in DefaultWorkPhonePreferenceController()
31 if (mUserHandle != null) { in DefaultWorkPhonePreferenceController()
32 mUserId = mUserHandle.getIdentifier(); in DefaultWorkPhonePreferenceController()
38 if (mUserHandle == null) { in isAvailable()
DDefaultWorkBrowserPreferenceController.java26 private final UserHandle mUserHandle; field in DefaultWorkBrowserPreferenceController
30 mUserHandle = Utils.getManagedProfile(mUserManager); in DefaultWorkBrowserPreferenceController()
31 if (mUserHandle != null) { in DefaultWorkBrowserPreferenceController()
32 mUserId = mUserHandle.getIdentifier(); in DefaultWorkBrowserPreferenceController()
43 if (mUserHandle == null) { in isAvailable()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java99 private UserHandle mUserHandle = UserHandle.of(CURRENT_USER_ID); field in InCallControllerTests
127 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in testBindToService_NoServicesFound_IncomingCall()
157 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in testBindToService_NoServicesFound_OutgoingCall()
193 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in testBindToService_DefaultDialer_NoEmergency()
243 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in testBindToService_SystemDialer_Emergency()
294 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Emergency()
302 eq(Manifest.permission.ACCESS_FINE_LOCATION), eq(mUserHandle)); in testBindToService_SystemDialer_Emergency()
310 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in testBindToService_DefaultDialer_FallBackToSystem()
431 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in testUnbindDueToCallDisconnect()
480 when(mMockCallsManager.getCurrentUserHandle()).thenReturn(mUserHandle); in setupMocks()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java90 if (mUserHandle != null) { in bind()
92 mUserHandle); in bind()
222 private UserHandle mUserHandle; field in ServiceBinder
261 mUserHandle = userHandle; in ServiceBinder()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java234 UserHandle mUserHandle; // not valid in SEND_STATE_NOTHING_TO_SEND field in P2pLinkManager
421 mUserHandle = shareData.userHandle; in onManualBeamInvoke()
535 mUserHandle = shareData.userHandle; in prepareMessageToSend()
897 userHandle = mUserHandle; in doInBackground()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAutoSyncWorkDataPreferenceControllerTest.java107 assertThat(mController.mUserHandle.getIdentifier()).isEqualTo(MANAGED_PROFILE_ID); in multipleProfile_shouldInitWithWorkProfileUserHandle()