Home
last modified time | relevance | path

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

123

/packages/services/Telecomm/src/com/android/server/telecom/ui/
DMissedCallNotifierImpl.java161 public void clearMissedCalls(UserHandle userHandle) { in clearMissedCalls() argument
164 if (!shouldManageNotificationThroughDefaultDialer(userHandle)) { in clearMissedCalls()
165 markMissedCallsAsRead(userHandle); in clearMissedCalls()
167 cancelMissedCallNotification(userHandle); in clearMissedCalls()
170 private void markMissedCallsAsRead(final UserHandle userHandle) { in markMissedCallsAsRead() argument
185 .maybeAddUserId(Calls.CONTENT_URI, userHandle.getIdentifier()); in markMissedCallsAsRead()
206 private Intent getShowMissedCallIntentForDefaultDialer(UserHandle userHandle) { in getShowMissedCallIntentForDefaultDialer() argument
208 userHandle.getIdentifier()); in getShowMissedCallIntentForDefaultDialer()
216 private boolean shouldManageNotificationThroughDefaultDialer(UserHandle userHandle) { in shouldManageNotificationThroughDefaultDialer() argument
217 Intent intent = getShowMissedCallIntentForDefaultDialer(userHandle); in shouldManageNotificationThroughDefaultDialer()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java207 UserHandle userHandle) { in getOutgoingPhoneAccountForScheme() argument
208 final PhoneAccountHandle userSelected = getUserSelectedOutgoingPhoneAccount(userHandle); in getOutgoingPhoneAccountForScheme()
220 userHandle); in getOutgoingPhoneAccountForScheme()
243 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(UserHandle userHandle) { in getUserSelectedOutgoingPhoneAccount() argument
244 if (userHandle == null) { in getUserSelectedOutgoingPhoneAccount()
248 .get(userHandle); in getUserSelectedOutgoingPhoneAccount()
254 userHandle); in getUserSelectedOutgoingPhoneAccount()
266 private DefaultPhoneAccountHandle getUserSelectedDefaultPhoneAccount(UserHandle userHandle) { in getUserSelectedDefaultPhoneAccount() argument
267 if (userHandle == null) { in getUserSelectedDefaultPhoneAccount()
271 .get(userHandle); in getUserSelectedDefaultPhoneAccount()
[all …]
DEmergencyCallHelper.java49 void maybeGrantTemporaryLocationPermission(Call call, UserHandle userHandle) { in maybeGrantTemporaryLocationPermission() argument
51 grantLocationPermission(userHandle, call); in maybeGrantTemporaryLocationPermission()
98 private void grantLocationPermission(UserHandle userHandle, Call call) { in grantLocationPermission() argument
100 + ", user: " + userHandle); in grantLocationPermission()
103 Manifest.permission.ACCESS_FINE_LOCATION, userHandle); in grantLocationPermission()
104 recordPermissionGrant(userHandle); in grantLocationPermission()
107 + ", user: " + userHandle); in grantLocationPermission()
114 UserHandle userHandle = mLocationPermissionGrantedToUser; in revokeLocationPermission() local
118 Manifest.permission.ACCESS_FINE_LOCATION, userHandle); in revokeLocationPermission()
121 + ", user: " + userHandle); in revokeLocationPermission()
[all …]
DTelecomBroadcastIntentProcessor.java84 UserHandle userHandle = intent.getParcelableExtra(EXTRA_USERHANDLE); in processIntent() local
85 if (userHandle == null) { in processIntent()
96 missedCallNotifier.clearMissedCalls(userHandle); in processIntent()
100 mContext.startActivityAsUser(callIntent, userHandle); in processIntent()
106 missedCallNotifier.clearMissedCalls(userHandle); in processIntent()
111 mContext.startActivityAsUser(callIntent, userHandle); in processIntent()
115 missedCallNotifier.clearMissedCalls(userHandle); in processIntent()
DUserUtil.java29 private static UserInfo getUserInfoFromUserHandle(Context context, UserHandle userHandle) { in getUserInfoFromUserHandle() argument
31 return userManager.getUserInfo(userHandle.getIdentifier()); in getUserInfoFromUserHandle()
34 public static boolean isManagedProfile(Context context, UserHandle userHandle) { in isManagedProfile() argument
35 UserInfo userInfo = getUserInfoFromUserHandle(context, userHandle); in isManagedProfile()
39 public static boolean isProfile(Context context, UserHandle userHandle) { in isProfile() argument
40 UserInfo userInfo = getUserInfoFromUserHandle(context, userHandle); in isProfile()
DRingtoneFactory.java89 private Context getWorkProfileContextForUser(UserHandle userHandle) { in getWorkProfileContextForUser() argument
93 userHandle.getIdentifier()); in getWorkProfileContextForUser()
98 if (profileUserHandle != userHandle && profile.isManagedProfile()) { in getWorkProfileContextForUser()
112 private Context getContextForUserHandle(UserHandle userHandle) { in getContextForUserHandle() argument
113 if(userHandle == null) { in getContextForUserHandle()
117 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userHandle); in getContextForUserHandle()
DMissedCallNotifier.java86 void clearMissedCalls(UserHandle userHandle); in clearMissedCalls() argument
94 CallInfoFactory callInfoFactory, UserHandle userHandle); in reloadFromDatabase() argument
96 void setCurrentUserHandle(UserHandle userHandle); in setCurrentUserHandle() argument
DConnectionServiceRepository.java63 public ConnectionServiceWrapper getService(ComponentName componentName, UserHandle userHandle) { in getService() argument
64 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService()
74 userHandle); in getService()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java365 final UserHandle userHandle = user.getUserHandle(); in updateMwi() local
367 UserManager.DISALLOW_OUTGOING_CALLS, userHandle) in updateMwi()
370 pendingIntent, isSettingsIntent, userHandle, isRefresh)) { in updateMwi()
375 userHandle); in updateMwi() local
383 final UserHandle userHandle = user.getUserHandle(); in updateMwi() local
385 UserManager.DISALLOW_OUTGOING_CALLS, userHandle) in updateMwi()
388 false, userHandle, isRefresh)) { in updateMwi()
392 userHandle); in updateMwi() local
417 UserHandle userHandle, boolean isRefresh) { in maybeSendVoicemailNotificationUsingDefaultDialer() argument
419 if (shouldManageNotificationThroughDefaultDialer(userHandle)) { in maybeSendVoicemailNotificationUsingDefaultDialer()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java196 public void setUserId(UserHandle userHandle) { in setUserId() argument
197 mUserId = userHandle.getIdentifier(); in setUserId()
200 badgePreference(pm, userHandle, mPhotoPreference); in setUserId()
201 badgePreference(pm, userHandle, mMoviesPreference); in setUserId()
202 badgePreference(pm, userHandle, mAudioPreference); in setUserId()
203 badgePreference(pm, userHandle, mGamePreference); in setUserId()
204 badgePreference(pm, userHandle, mAppPreference); in setUserId()
205 badgePreference(pm, userHandle, mSystemPreference); in setUserId()
206 badgePreference(pm, userHandle, mFilePreference); in setUserId()
209 private void badgePreference(PackageManager pm, UserHandle userHandle, Preference preference) { in badgePreference() argument
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DSettingsInjector.java116 private List<InjectedSetting> getSettings(final UserHandle userHandle) { in getSettings() argument
120 final int profileId = userHandle.getIdentifier(); in getSettings()
129 InjectedSetting setting = parseServiceInfo(resolveInfo, userHandle, pm); in getSettings()
154 private static InjectedSetting parseServiceInfo(ResolveInfo service, UserHandle userHandle, in parseServiceInfo() argument
190 userHandle.getIdentifier()); in parseServiceInfo()
191 return parseAttributes(si.packageName, si.name, userHandle, res, attrs); in parseServiceInfo()
206 UserHandle userHandle, Resources res, AttributeSet attrs) { in parseAttributes() argument
222 title, iconId, userHandle, settingsActivity); in parseAttributes()
240 final UserHandle userHandle = profiles.get(i); in getInjectedSettings() local
241 if (profileId == UserHandle.USER_CURRENT || profileId == userHandle.getIdentifier()) { in getInjectedSettings()
[all …]
DInjectedSetting.java69 String title, int iconId, UserHandle userHandle, String settingsActivity) { in InjectedSetting() argument
74 this.mUserHandle = userHandle; in InjectedSetting()
82 String title, int iconId, UserHandle userHandle, String settingsActivity) { in newInstance() argument
92 return new InjectedSetting(packageName, className, title, iconId, userHandle, in newInstance()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountDetailDashboardFragment.java64 UserHandle userHandle = Utils.getSecureTargetUser(activity.getActivityToken(), in onCreate() local
78 mAccountSynController.init(mAccount, userHandle); in onCreate()
79 mRemoveAccountController.init(mAccount, userHandle); in onCreate()
133 UserHandle userHandle = null; in updateUi() local
136 userHandle = args.getParcelable(KEY_USER_HANDLE); in updateUi()
138 final AuthenticatorHelper helper = new AuthenticatorHelper(context, userHandle, null); in updateUi()
141 new AccountTypePreferenceLoader(this, helper, userHandle); in updateUi()
DAccountPreferenceController.java219 public void onAccountsUpdate(UserHandle userHandle) { in onAccountsUpdate() argument
220 final ProfileData profileData = mProfiles.get(userHandle.getIdentifier()); in onAccountsUpdate()
224 Log.w(TAG, "Missing Settings screen for: " + userHandle.getIdentifier()); in onAccountsUpdate()
480 UserHandle userHandle, ArrayMap<String, AccountTypePreference> preferenceToRemove) { in getAccountTypePreferences() argument
499 .getAccountsByTypeAsUser(accountType, userHandle); in getAccountTypePreferences()
520 userHandle); in getAccountTypePreferences()
527 fragmentArguments.putParcelable(EXTRA_USER, userHandle); in getAccountTypePreferences()
DManagedProfileSettings.java94 UserHandle userHandle = arguments.getParcelable(Intent.EXTRA_USER); in getManagedUserFromArgument() local
95 if (userHandle != null) { in getManagedUserFromArgument()
96 if (mUserManager.isManagedProfile(userHandle.getIdentifier())) { in getManagedUserFromArgument()
97 return userHandle; in getManagedUserFromArgument()
DRemoveAccountPreferenceController.java85 public void init(Account account, UserHandle userHandle) { in init() argument
87 mUserHandle = userHandle; in init()
101 Fragment parent, Account account, UserHandle userHandle) { in show() argument
108 bundle.putParcelable(Intent.EXTRA_USER, userHandle); in show()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DDashboardFeatureProviderImplTest.java140 tile.userHandle = new ArrayList<>(); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
141 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
142 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector()
161 tile.userHandle = new ArrayList<>(); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
162 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent()
186 tile.userHandle = new ArrayList<>(); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog()
187 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog()
284 tile.userHandle = null; in bindPreference_withIntentActionMetatdata_shouldSetLaunchAction()
310 tile.userHandle = null; in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java151 UserHandle userHandle = UserHandle.of(user.id); in enableCallsAndSms() local
154 key, mDefaultGuestRestrictions.getBoolean(key), userHandle); in enableCallsAndSms()
159 UserHandle userHandle = UserHandle.of(mUserInfo.id); in enableCallsAndSms() local
161 userHandle); in enableCallsAndSms()
162 mUserManager.setUserRestriction(UserManager.DISALLOW_SMS, !enabled, userHandle); in enableCallsAndSms()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java103 permissionState.userHandle.getIdentifier()); in getPermissionInfo()
309 public final UserHandle userHandle; field in AppStateAppOpsBridge.PermissionState
315 public PermissionState(String packageName, UserHandle userHandle) { in PermissionState() argument
318 this.userHandle = userHandle; in PermissionState()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java191 public UserInfo getUserInfo(int userHandle) { in getUserInfo() argument
193 if (ui.id == userHandle) { in getUserInfo()
201 public UserInfo getProfileParent(int userHandle) { in getProfileParent() argument
202 final UserInfo child = getUserInfo(userHandle); in getProfileParent()
207 if (ui.id != userHandle && ui.id == child.profileGroupId) { in getProfileParent()
220 public Bundle getUserRestrictions(UserHandle userHandle) { in getUserRestrictions() argument
230 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) { in hasUserRestriction() argument
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java346 mUserHandle = shareData.userHandle; in onManualBeamInvoke()
460 mUserHandle = shareData.userHandle; in prepareMessageToSend()
746 int doHandover(Uri[] uris, UserHandle userHandle) throws IOException { in doHandover() argument
777 mHandoverDataParser.getOutgoingHandoverData(response), uris, userHandle)) { in doHandover()
797 UserHandle userHandle; in doInBackground() local
806 userHandle = mUserHandle; in doInBackground()
817 int handoverResult = doHandover(uris, userHandle); in doInBackground()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java192 private void cancelNotificationTestInternal(UserHandle userHandle) { in cancelNotificationTestInternal() argument
200 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); in cancelNotificationTestInternal()
205 missedCallNotifier.clearMissedCalls(userHandle); in cancelNotificationTestInternal()
211 requestIdCaptor.capture(), nullable(Notification.class), eq(userHandle)); in cancelNotificationTestInternal()
213 eq(requestIdCaptor.getValue()), eq(userHandle)); in cancelNotificationTestInternal()
578 private PhoneAccount makePhoneAccount(UserHandle userHandle, int capability) { in makePhoneAccount() argument
581 userHandle); in makePhoneAccount()
/packages/apps/Settings/src/com/android/settings/development/
DOemUnlockUtils.java57 final UserHandle userHandle = UserHandle.of(UserHandle.myUserId()); in isOemUnlockAllowed() local
58 return !(um.hasBaseUserRestriction(UserManager.DISALLOW_OEM_UNLOCK, userHandle) in isOemUnlockAllowed()
59 || um.hasBaseUserRestriction(UserManager.DISALLOW_FACTORY_RESET, userHandle)); in isOemUnlockAllowed()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java63 UserHandle userHandle = userInfo.getUserHandle(); in run() local
64 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in run()
65 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle); in run()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowSecureSettings.java51 public static String getStringForUser(ContentResolver resolver, String name, int userHandle) { in getStringForUser() argument
57 int userHandle) { in putIntForUser() argument
62 public static int getIntForUser(ContentResolver cr, String name, int def, int userHandle) { in getIntForUser() argument

123