/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/theme/ |
D | ThemeOverlayManagerTest.java | 65 UserHandle mUserHandle; field in ThemeOverlayManagerTest 75 mUserHandle = UserHandle.of(UserHandle.myUserId()); in setUp() 79 mUserHandle)).thenReturn(Lists.newArrayList( in setUp() 83 mUserHandle)).thenReturn(Lists.newArrayList( in setUp() 91 final List<OverlayInfo> infos = manager.getOverlayInfosForTarget(docsuiPkgId, mUserHandle); in testOverlayPackagesForDocumentsUI_shouldBeNonStatic() 109 mUserHandle); in testApplyOverlays_shouldSetEnabled() local 121 mUserHandle); in testApplyOverlays_shouldGetOverlayInfo() local 134 mUserHandle); in testApplyOverlays_shouldCheckEnabled_beforeSetEnabled() local 142 mUserHandle).get(0).isEnabled()).isEqualTo(!enabled); in testDefaultDisabled_applyOverlays_shouldEnabled() 151 mUserHandle); in testDefaultDisabled_applyOverlays_shouldEnabled() local [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncDetailsPreferenceController.java | 73 private UserHandle mUserHandle; field in AccountSyncDetailsPreferenceController 97 mUserHandle = userHandle; in setUserHandle() 119 if (mUserHandle == null) { in checkInitialized() 131 mAuthenticatorHelper = new AuthenticatorHelper(getContext(), mUserHandle, /* listener= */ in onCreateInternal() 164 if (userHandle.equals(mUserHandle)) { in onAccountsUpdate() 195 int userId = mUserHandle.getIdentifier(); in onSyncPreferenceClicked() 219 AccountSyncHelper.requestSyncIfAllowed(mAccount, authority, mUserHandle.getIdentifier()); in requestSync() 223 ContentResolver.cancelSyncAsUser(mAccount, authority, mUserHandle.getIdentifier()); in cancelSync() 238 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded() 240 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded() [all …]
|
D | AccountDetailsPreferenceController.java | 37 private UserHandle mUserHandle; field in AccountDetailsPreferenceController 56 mUserHandle = userHandle; in setUserHandle() 61 return mUserHandle; in getUserHandle() 84 if (mUserHandle == null) { in checkInitialized() 96 AuthenticatorHelper helper = new AuthenticatorHelper(getContext(), mUserHandle, null); in updateState()
|
D | AccountSyncPreferenceController.java | 41 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()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AddAccountSettings.java | 102 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 …]
|
D | ChooseAccountPreferenceController.java | 70 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()
|
D | AccountSyncSettings.java | 137 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle() 174 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch() 209 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu() 257 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick() 305 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded() 312 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded() 314 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded() 369 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync() 372 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync() 398 final int userId = mUserHandle.getIdentifier(); in setFeedsState() [all …]
|
D | RemoveAccountPreferenceController.java | 58 private UserHandle mUserHandle; field in RemoveAccountPreferenceController 85 if (mUserHandle != null) { in onClick() 87 mContext, UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle.getIdentifier()); in onClick() 94 ConfirmRemoveAccountDialog.show(mParentFragment, mAccount, mUserHandle); in onClick() 99 mUserHandle = userHandle; in init() 110 private UserHandle mUserHandle; field in RemoveAccountPreferenceController.ConfirmRemoveAccountDialog 132 mUserHandle = arguments.getParcelable(Intent.EXTRA_USER); in onCreate() 177 }, null, mUserHandle); in onClick()
|
D | AccountHeaderPreferenceController.java | 49 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()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accounts/ |
D | AddAccountSettings.java | 102 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 …]
|
D | ChooseAccountPreferenceController.java | 70 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()
|
D | AccountSyncSettings.java | 137 UserInfo user = um.getUserInfo(mUserHandle.getIdentifier()); in setAccessibilityTitle() 174 authority, 0, mUserHandle.getIdentifier()); in addSyncStateSwitch() 209 mUserHandle.getIdentifier()).isEmpty(); in onPrepareOptionsMenu() 257 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick() 305 packageName, mUserHandle.getIdentifier()); in requestAccountAccessIfNeeded() 312 if (!accountManager.hasAccountAccess(mAccount, packageName, mUserHandle)) { in requestAccountAccessIfNeeded() 314 mAccount, packageName, mUserHandle); in requestAccountAccessIfNeeded() 369 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync() 372 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync() 398 final int userId = mUserHandle.getIdentifier(); in setFeedsState() [all …]
|
D | RemoveAccountPreferenceController.java | 59 private UserHandle mUserHandle; field in RemoveAccountPreferenceController 86 if (mUserHandle != null) { in onClick() 88 mContext, UserManager.DISALLOW_MODIFY_ACCOUNTS, mUserHandle.getIdentifier()); in onClick() 95 ConfirmRemoveAccountDialog.show(mParentFragment, mAccount, mUserHandle); in onClick() 100 mUserHandle = userHandle; in init() 111 private UserHandle mUserHandle; field in RemoveAccountPreferenceController.ConfirmRemoveAccountDialog 133 mUserHandle = arguments.getParcelable(Intent.EXTRA_USER); in onCreate() 179 }, null, mUserHandle); in onClick()
|
D | AccountHeaderPreferenceController.java | 49 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()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | AutoSyncDataPreferenceController.java | 50 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | AutoSyncDataPreferenceController.java | 50 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/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountSyncFragment.java | 67 private UserHandle mUserHandle; field in AccountSyncFragment 101 mUserHandle = new UserHandle(UserHandle.myUserId()); in onCreate() 103 mAuthenticatorHelper = new AuthenticatorHelper(getActivity(), mUserHandle, this); in onCreate() 128 mHandler.post(() -> onAccountsUpdate(mUserHandle)); in onResume() 157 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick() 178 mUserHandle.getIdentifier()).isEmpty(); in onPreferenceTreeClick() 232 ContentResolver.requestSyncAsUser(account, authority, mUserHandle.getIdentifier(), in requestOrCancelSync() 235 ContentResolver.cancelSyncAsUser(account, authority, mUserHandle.getIdentifier()); in requestOrCancelSync() 252 account.type, mUserHandle); in accountExists() 279 final int userId = mUserHandle.getIdentifier(); in onSyncStateUpdated() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/defaultapps/ |
D | DefaultWorkAutofillPreferenceController.java | 31 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/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultWorkAutofillPreferenceController.java | 31 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/conditional/ |
D | WorkModeConditionController.java | 52 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/Settings/src/com/android/settings/homepage/contextualcards/conditional/ |
D | WorkModeConditionController.java | 52 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/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallIntentProcessor.java | 61 private final UserHandle mUserHandle; field in UserCallIntentProcessor 65 mUserHandle = userHandle; in UserCallIntentProcessor() 113 if (!UserUtil.isManagedProfile(mContext, mUserHandle)) { in processOutgoingCallIntent() 120 mUserHandle)) { in processOutgoingCallIntent() 127 mUserHandle)) { in processOutgoingCallIntent() 160 intent.putExtra(CallIntentProcessor.KEY_INITIATING_USER, mUserHandle); in processOutgoingCallIntent() 171 mUserHandle.getIdentifier()); in isDefaultOrSystemDialer()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/theme/ |
D | ThemeOverlayManager.java | 46 private UserHandle mUserHandle; field in ThemeOverlayManager 51 mUserHandle = UserHandle.of(UserHandle.myUserId()); in ThemeOverlayManager() 75 return mOverlayManager.getOverlayInfosForTarget(mTargetPackageId, mUserHandle); in getOverlayInfo() 128 mOverlayManager.setEnabled(info.getPackageName(), enabled, mUserHandle); in setEnabledOverlayPackages() local 131 + ", user:" + mUserHandle); in setEnabledOverlayPackages() 136 + mUserHandle); in setEnabledOverlayPackages()
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | VendorServiceController.java | 119 stopOrUnbindService(key.mVendorServiceInfo, key.mUserHandle); in release() 160 if (key.mUserHandle.getIdentifier() == userId) { in doUserLockChanged() 161 stopOrUnbindService(key.mVendorServiceInfo, key.mUserHandle); in doUserLockChanged() 224 key.mVendorServiceInfo, key.mUserHandle); in getOrCreateConnection() 398 private final UserHandle mUserHandle; field in VendorServiceController.ConnectionKey 403 mUserHandle = user; in ConnectionKey() 419 return Objects.equals(mUserHandle, that.mUserHandle) in equals() 425 return Objects.hash(mUserHandle, mVendorServiceInfo); in hashCode()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/dashboard/profileselector/ |
D | UserAdapter.java | 48 private final UserHandle mUserHandle; field in UserAdapter.UserDetails 53 mUserHandle = userHandle; in UserDetails() 54 UserInfo userInfo = um.getUserInfo(mUserHandle.getIdentifier()); in UserDetails() 94 return data.get(position).mUserHandle; in getUserHandle() 108 int userHandle = user.mUserHandle.getIdentifier(); in getTitle() 143 return data.get(position).mUserHandle.getIdentifier(); in getItemId()
|