/packages/services/Telecomm/src/com/android/server/telecom/ui/ |
D | MissedCallNotifierImpl.java | 171 public void clearMissedCalls(UserHandle userHandle) { in clearMissedCalls() argument 174 String dialerPackage = getDefaultDialerPackage(userHandle); in clearMissedCalls() 175 if (!shouldManageNotificationThroughDefaultDialer(dialerPackage, userHandle)) { in clearMissedCalls() 176 markMissedCallsAsRead(userHandle); in clearMissedCalls() 178 cancelMissedCallNotification(userHandle); in clearMissedCalls() 181 private void markMissedCallsAsRead(final UserHandle userHandle) { in markMissedCallsAsRead() argument 196 .maybeAddUserId(Calls.CONTENT_URI, userHandle.getIdentifier()); in markMissedCallsAsRead() 207 private String getDefaultDialerPackage(UserHandle userHandle) { in getDefaultDialerPackage() argument 209 userHandle.getIdentifier()); in getDefaultDialerPackage() 232 UserHandle userHandle) { in shouldManageNotificationThroughDefaultDialer() argument [all …]
|
D | DisconnectedCallNotifier.java | 75 public final UserHandle userHandle; field in DisconnectedCallNotifier.CallInfo 83 public CallInfo(UserHandle userHandle, Uri handle, long endTimeMs, Bitmap callerInfoIcon, in CallInfo() argument 85 this.userHandle = userHandle; in CallInfo() 97 "userHandle=" + userHandle + in toString() 146 UserHandle userHandle = call.getTargetPhoneAccount() != null ? in onCallStateChanged() local 149 if (userHandle == null) userHandle = mCallsManager.getCurrentUserHandle(); in onCallStateChanged() 150 mPendingCallNotification = new CallInfo(userHandle, call.getHandle(), in onCallStateChanged() 157 Log.i(this, "showDisconnectedNotification: userHandle=%d", call.userHandle.getIdentifier()); in showDisconnectedNotification() 168 Context contextForUser = getContextForUser(call.userHandle); in showDisconnectedNotification() 184 publicBuilder.setContentIntent(createCallLogPendingIntent(call.userHandle)); in showDisconnectedNotification() [all …]
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarNotificationListenerTest.java | 89 UserHandle userHandle = new UserHandle(UserHandle.USER_NULL); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent() local 90 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_notForCurrentUser_ignoresTheEvent() 101 UserHandle userHandle = new UserHandle(UserHandle.USER_NULL); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent() local 102 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isNotHun_notForCurrentUser_ignoresTheEvent() 113 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() local 114 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForCurrentUser_addsAlertEntryToDataManager() 124 UserHandle userHandle = new UserHandle(CURRENT_USER_ID); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications() local 125 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForCurrentUser_doesNotAddItToActiveNotifications() 136 UserHandle userHandle = new UserHandle(UserHandle.USER_ALL); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager() local 137 when(mStatusBarNotification.getUser()).thenReturn(userHandle); in onNotificationPosted_isHun_isForAllUsers_addsAlertEntryToDataManager() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 205 UserHandle userHandle) { in getOutgoingPhoneAccountForScheme() argument 206 final PhoneAccountHandle userSelected = getUserSelectedOutgoingPhoneAccount(userHandle); in getOutgoingPhoneAccountForScheme() 218 userHandle); in getOutgoingPhoneAccountForScheme() 241 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(UserHandle userHandle) { in getUserSelectedOutgoingPhoneAccount() argument 242 if (userHandle == null) { in getUserSelectedOutgoingPhoneAccount() 246 .get(userHandle); in getUserSelectedOutgoingPhoneAccount() 252 userHandle); in getUserSelectedOutgoingPhoneAccount() 264 private DefaultPhoneAccountHandle getUserSelectedDefaultPhoneAccount(UserHandle userHandle) { in getUserSelectedDefaultPhoneAccount() argument 265 if (userHandle == null) { in getUserSelectedDefaultPhoneAccount() 269 .get(userHandle); in getUserSelectedDefaultPhoneAccount() [all …]
|
D | TelecomBroadcastIntentProcessor.java | 123 UserHandle userHandle = intent.getParcelableExtra(EXTRA_USERHANDLE); in processIntent() local 124 if (userHandle == null) { in processIntent() 135 missedCallNotifier.clearMissedCalls(userHandle); in processIntent() 136 sendSmsIntent(intent, userHandle); in processIntent() 142 missedCallNotifier.clearMissedCalls(userHandle); in processIntent() 143 sendCallBackIntent(intent, userHandle); in processIntent() 147 missedCallNotifier.clearMissedCalls(userHandle); in processIntent() 152 UserHandle userHandle = intent.getParcelableExtra(EXTRA_USERHANDLE); in processIntent() local 153 if (userHandle == null) { in processIntent() 165 disconnectedCallNotifier.clearNotification(userHandle); in processIntent() [all …]
|
D | EmergencyCallHelper.java | 51 void maybeGrantTemporaryLocationPermission(Call call, UserHandle userHandle) { in maybeGrantTemporaryLocationPermission() argument 53 grantLocationPermission(userHandle); in maybeGrantTemporaryLocationPermission() 96 private void grantLocationPermission(UserHandle userHandle) { in grantLocationPermission() argument 99 + ", user: " + userHandle); in grantLocationPermission() 110 Manifest.permission.ACCESS_FINE_LOCATION, userHandle); in grantLocationPermission() 114 Manifest.permission.ACCESS_BACKGROUND_LOCATION, userHandle); in grantLocationPermission() 118 recordPermissionGrant(userHandle); in grantLocationPermission() 121 + ", user: " + userHandle); in grantLocationPermission() 129 UserHandle userHandle = mLocationPermissionGrantedToUser; in revokeLocationPermission() local 133 Manifest.permission.ACCESS_FINE_LOCATION, userHandle); in revokeLocationPermission() [all …]
|
D | UserUtil.java | 29 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()
|
D | RingtoneFactory.java | 119 private Context getWorkProfileContextForUser(UserHandle userHandle) { in getWorkProfileContextForUser() argument 123 userHandle.getIdentifier()); in getWorkProfileContextForUser() 128 if (profileUserHandle != userHandle && profile.isManagedProfile()) { in getWorkProfileContextForUser() 142 private Context getContextForUserHandle(UserHandle userHandle) { in getContextForUserHandle() argument 143 if(userHandle == null) { in getContextForUserHandle() 147 return mContext.createPackageContextAsUser(mContext.getPackageName(), 0, userHandle); in getContextForUserHandle()
|
D | ConnectionServiceRepository.java | 64 public ConnectionServiceWrapper getService(ComponentName componentName, UserHandle userHandle) { in getService() argument 65 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in getService() 75 userHandle); in getService() 83 public void setService(ComponentName componentName, UserHandle userHandle, in setService() argument 85 Pair<ComponentName, UserHandle> cacheKey = Pair.create(componentName, userHandle); in setService()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowSecureSettings.java | 39 String tag, boolean makeDefault, int userHandle, boolean overrideableByRestore) { in putStringForUser() argument 43 userTable.put(userHandle, name, value); in putStringForUser() 45 userTable.remove(userHandle, name); in putStringForUser() 52 public static String getStringForUser(ContentResolver resolver, String name, int userHandle) { in getStringForUser() argument 55 return (String) userTable.get(userHandle, name); in getStringForUser() 61 int userHandle) { in putIntForUser() argument 64 userTable.put(userHandle, name, value); in putIntForUser() 71 int userHandle) { in getIntForUser() argument 74 final Object object = userTable.get(userHandle, name); in getIntForUser() 81 int userHandle) { in putLongForUser() argument [all …]
|
D | ShadowDevicePolicyManager.java | 37 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser() argument 38 mSupportMessagesMap.put(Objects.hash(admin, userHandle), message); in setShortSupportMessageForUser() 43 int userHandle) { in getShortSupportMessageForUser() argument 44 return mSupportMessagesMap.get(Objects.hash(admin, userHandle)); in getShortSupportMessageForUser() 58 protected long getMaximumTimeToLock(ComponentName admin, @UserIdInt int userHandle) { in getMaximumTimeToLock() argument 59 return mProfileTimeouts.getOrDefault(userHandle, 0L); in getMaximumTimeToLock() 75 public void setMaximumTimeToLock(@UserIdInt int userHandle, Long timeout) { in setMaximumTimeToLock() argument 76 mProfileTimeouts.put(userHandle, timeout); in setMaximumTimeToLock() 94 public PasswordMetrics getPasswordMinimumMetrics(int userHandle) { in getPasswordMinimumMetrics() argument
|
D | ShadowUserManager.java | 70 protected List<UserInfo> getProfiles(@UserIdInt int userHandle) { in getProfiles() argument 75 protected int[] getProfileIds(@UserIdInt int userHandle, boolean enabledOnly) { in getProfileIds() argument 84 protected int getCredentialOwnerProfile(@UserIdInt int userHandle) { in getCredentialOwnerProfile() argument 85 return userHandle; in getCredentialOwnerProfile() 89 protected boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) { in hasBaseUserRestriction() argument 115 String restrictionKey, UserHandle userHandle) { in getUserRestrictionSources() argument 119 mRestrictionSources.get(restrictionKey + userHandle.getIdentifier()); in getUserRestrictionSources() 124 String restrictionKey, UserHandle userHandle, List<EnforcingUser> enforcers) { in setUserRestrictionSources() argument 125 mRestrictionSources.put(restrictionKey + userHandle.getIdentifier(), enforcers); in setUserRestrictionSources() 129 protected boolean isQuietModeEnabled(UserHandle userHandle) { in isQuietModeEnabled() argument
|
/packages/apps/Settings/src/com/android/settings/core/ |
D | SubSettingLauncher.java | 115 public SubSettingLauncher setUserHandle(UserHandle userHandle) { in setUserHandle() argument 116 mLaunchRequest.userHandle = userHandle; in setUserHandle() 134 boolean launchAsUser = mLaunchRequest.userHandle != null in launch() 135 && mLaunchRequest.userHandle.getIdentifier() != UserHandle.myUserId(); in launch() 138 launchForResultAsUser(intent, mLaunchRequest.userHandle, mLaunchRequest.mResultListener, in launch() 141 launchAsUser(intent, mLaunchRequest.userHandle); in launch() 183 void launchAsUser(Intent intent, UserHandle userHandle) { in launchAsUser() argument 184 mContext.startActivityAsUser(intent, userHandle); in launchAsUser() 188 void launchForResultAsUser(Intent intent, UserHandle userHandle, in launchForResultAsUser() argument 190 resultListener.getActivity().startActivityForResultAsUser(intent, requestCode, userHandle); in launchForResultAsUser() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/ |
D | AccountSyncHelper.java | 48 UserHandle userHandle) { in getVisibleSyncAdaptersForAccount() argument 50 userHandle); in getVisibleSyncAdaptersForAccount() 53 (SyncAdapterType syncAdapter) -> !isVisible(context, syncAdapter, userHandle)); in getVisibleSyncAdaptersForAccount() 60 UserHandle userHandle) { in getSyncableSyncAdaptersForAccount() argument 64 userHandle.getIdentifier()); in getSyncableSyncAdaptersForAccount() 75 userHandle.getIdentifier()) > 0; in getSyncableSyncAdaptersForAccount() 111 static CharSequence getTitle(Context context, String authority, UserHandle userHandle) { in getTitle() argument 114 authority, /* flags= */ 0, userHandle.getIdentifier()); in getTitle() 159 UserHandle userHandle) { in isVisible() argument 169 userHandle.getIdentifier()); in isVisible() [all …]
|
D | AccountSyncDetailsFragment.java | 41 public static AccountSyncDetailsFragment newInstance(Account account, UserHandle userHandle) { in newInstance() argument 45 bundle.putParcelable(EXTRA_USER_HANDLE, userHandle); in newInstance() 61 UserHandle userHandle = getArguments().getParcelable(EXTRA_USER_HANDLE); in onAttach() local 68 .setUserHandle(userHandle); in onAttach() 73 .setUserHandle(userHandle); in onAttach()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | PolicyComplianceUtils.java | 46 Context context, ProvisioningParams params, Utils utils, UserHandle userHandle) { in isPolicyComplianceActivityResolvableForUser() argument 47 return getPolicyComplianceIntentIfResolvable(context, params, utils, userHandle) != null; in isPolicyComplianceActivityResolvableForUser() 59 provisioningAnalyticsTracker, (Intent intent, UserHandle userHandle) -> { in startPolicyComplianceActivityForResultIfResolved() 65 parentActivity, intent, requestCode, userHandle); in startPolicyComplianceActivityForResultIfResolved() argument 88 final UserHandle userHandle = getPolicyComplianceUserHandle(context, params, utils); 90 context, params, utils, userHandle); 93 startActivityFunc.accept(policyComplianceIntent, userHandle); 95 "The DPC POLICY_COMPLIANCE handler was launched on user " + userHandle); 105 ProvisioningParams params, Utils utils, UserHandle userHandle) { 108 policyComplianceIntent, userHandle.getIdentifier());
|
D | TransitionHelper.java | 143 Activity activity, Intent intent, UserHandle userHandle) { in startActivityAsUserWithTransition() argument 146 requireNonNull(userHandle); in startActivityAsUserWithTransition() 148 activity.startActivityAsUser(intent, userHandle); in startActivityAsUserWithTransition() 152 mHandler.post(() -> activity.startActivityAsUser(intent, options, userHandle)); in startActivityAsUserWithTransition() 160 Activity activity, Intent intent, int requestCode, UserHandle userHandle) { in startActivityForResultAsUserWithTransition() argument 163 requireNonNull(userHandle); in startActivityForResultAsUserWithTransition() 165 activity.startActivityForResultAsUser(intent, requestCode, userHandle); in startActivityForResultAsUserWithTransition() 170 activity.startActivityForResultAsUser(intent, requestCode, options, userHandle)); in startActivityForResultAsUserWithTransition()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowUserManager.java | 53 protected List<UserInfo> getProfiles(int userHandle) { in getProfiles() argument 54 if (sProfiles.containsKey(userHandle)) { in getProfiles() 55 return new ArrayList<>(sProfiles.get(userHandle)); in getProfiles() 62 int userHandle, int profileUserHandle, String profileName, int profileFlags) { in addProfile() argument 63 sProfiles.putIfAbsent(userHandle, new ArrayList<>()); in addProfile() 64 sProfiles.get(userHandle).add(new UserInfo(profileUserHandle, profileName, profileFlags)); in addProfile() 68 protected void setUserRestriction(String key, boolean value, UserHandle userHandle) { in setUserRestriction() argument 69 setUserRestriction(userHandle, key, value); in setUserRestriction()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectDialogTest.java | 71 tile.userHandle.add(NORMAL_USER); in updateUserHandlesIfNeeded_Normal() 75 assertThat(tile.userHandle).hasSize(1); in updateUserHandlesIfNeeded_Normal() 76 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Normal() 83 tile.userHandle.add(REMOVED_USER); in updateUserHandlesIfNeeded_Remove() 84 tile.userHandle.add(NORMAL_USER); in updateUserHandlesIfNeeded_Remove() 85 tile.userHandle.add(REMOVED_USER); in updateUserHandlesIfNeeded_Remove() 89 assertThat(tile.userHandle).hasSize(1); in updateUserHandlesIfNeeded_Remove() 90 assertThat(tile.userHandle.get(0).getIdentifier()).isEqualTo(NORMAL_USER.getIdentifier()); in updateUserHandlesIfNeeded_Remove()
|
/packages/apps/Settings/src/com/android/settings/biometrics/ |
D | ParentalControlsUtils.java | 50 final UserHandle userHandle = new UserHandle(UserHandle.myUserId()); in parentConsentRequired() local 54 UserManager.DISALLOW_BIOMETRIC, userHandle); in parentConsentRequired() 58 return parentConsentRequiredInternal(dpm, modality, userHandle); in parentConsentRequired() 69 @NonNull UserHandle userHandle) { in parentConsentRequiredInternal() argument 71 userHandle)) { in parentConsentRequiredInternal() 73 ParentalControlsUtilsInternal.getSupervisionComponentName(dpm, userHandle); in parentConsentRequiredInternal() 75 userHandle); in parentConsentRequiredInternal()
|
/packages/services/Telephony/src/com/android/phone/ |
D | NotificationMgr.java | 386 for (UserHandle userHandle : users) { in updateMwi() 388 UserManager.DISALLOW_OUTGOING_CALLS, userHandle) in updateMwi() 389 && !mUserManager.isManagedProfile(userHandle.getIdentifier())) { in updateMwi() 391 pendingIntent, isSettingsIntent, userHandle, isRefresh)) { in updateMwi() 396 userHandle); in updateMwi() local 402 for (UserHandle userHandle : users) { in updateMwi() 404 UserManager.DISALLOW_OUTGOING_CALLS, userHandle) in updateMwi() 405 && !mUserManager.isManagedProfile(userHandle.getIdentifier())) { in updateMwi() 407 false, userHandle, isRefresh)) { in updateMwi() 411 userHandle); in updateMwi() local [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | CarWatchdogManagerUnitTest.java | 146 UserHandle userHandle = Process.myUserHandle(); in testGetResourceOveruseStats() local 148 new ResourceOveruseStats.Builder("random.package", userHandle).build(); in testGetResourceOveruseStats() 160 UserHandle userHandle = Process.myUserHandle(); in testGetAllResourceOveruseStats() local 162 expectedStats.add(new ResourceOveruseStats.Builder("random.package.1", userHandle).build()); in testGetAllResourceOveruseStats() 163 expectedStats.add(new ResourceOveruseStats.Builder("random.package.2", userHandle).build()); in testGetAllResourceOveruseStats() 164 expectedStats.add(new ResourceOveruseStats.Builder("random.package.3", userHandle).build()); in testGetAllResourceOveruseStats() 176 UserHandle userHandle = Process.myUserHandle(); in testGetResourceOveruseStatsForUserPackage() local 179 new ResourceOveruseStats.Builder(packageName, userHandle).build(); in testGetResourceOveruseStatsForUserPackage() 180 when(mService.getResourceOveruseStatsForUserPackage(packageName, userHandle, in testGetResourceOveruseStatsForUserPackage() 184 mCarWatchdogManager.getResourceOveruseStatsForUserPackage(packageName, userHandle, in testGetResourceOveruseStatsForUserPackage() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/ |
D | DashboardFeatureProviderImplTest.java | 213 tile.userHandle = new ArrayList<>(); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 214 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 215 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadata_shouldBindToProfileSelector() 228 tile.userHandle = new ArrayList<>(); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 229 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_noFragmentMetadataSingleUser_shouldBindToDirectLaunchIntent() 250 tile.userHandle = new ArrayList<>(); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 251 tile.userHandle.add(mock(UserHandle.class)); in bindPreference_toInternalSettingActivity_shouldBindToDirectLaunchIntentAndNotLog() 524 tile.userHandle = null; in bindPreference_withIntentActionMetadata_shouldSetLaunchAction() 547 tile.userHandle = null; in clickPreference_withUnresolvableIntent_shouldNotLaunchAnything() 567 tile.userHandle = handles; in openTileIntent_profileSelectionDialog_shouldShow() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/ |
D | ManagePermissionsActivity.java | 202 UserHandle userHandle = getIntent().getParcelableExtra(Intent.EXTRA_USER); in onCreate() local 206 groupName, userHandle, caller, sessionId, null); in onCreate() 219 UserHandle userHandle = getIntent().getParcelableExtra(Intent.EXTRA_USER); in onCreate() local 220 if (userHandle == null) { in onCreate() 221 userHandle = UserHandle.of(UserHandle.myUserId()); in onCreate() 226 userHandle).uid; in onCreate() 239 packageName, userHandle)) { in onCreate() 259 userHandle); in onCreate() 262 userHandle); in onCreate() 268 .AppPermissionsFragment.newInstance(packageName, userHandle); in onCreate() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/legacy/ |
D | AppPermissionActivity.java | 122 UserHandle userHandle = getIntent().getParcelableExtra(Intent.EXTRA_USER); in onCreate() local 123 if (userHandle == null) { in onCreate() 133 startActivityAsUser(intent, userHandle); in onCreate() 141 LocationUtils.startLocationControllerExtraPackageSettings(this, userHandle); in onCreate() 150 groupName, userHandle); in onCreate() 158 packageName, permissionName, groupName, userHandle, null, 0, null)); in onCreate()
|