/packages/apps/Dialer/java/com/android/dialer/app/calllog/calllogcache/ |
D | CallLogCache.java | 70 PhoneAccountHandle accountHandle, @Nullable CharSequence number) { in isVoicemailNumber() argument 74 return TelecomUtil.isVoicemailNumber(context, accountHandle, number.toString()); in isVoicemailNumber() 90 public synchronized String getAccountLabel(PhoneAccountHandle accountHandle) { in getAccountLabel() argument 91 if (phoneAccountLabelCache.containsKey(accountHandle)) { in getAccountLabel() 92 return phoneAccountLabelCache.get(accountHandle); in getAccountLabel() 94 String label = PhoneAccountUtils.getAccountLabel(context, accountHandle); in getAccountLabel() 95 phoneAccountLabelCache.put(accountHandle, label); in getAccountLabel() 101 public synchronized int getAccountColor(PhoneAccountHandle accountHandle) { in getAccountColor() argument 102 if (phoneAccountColorCache.containsKey(accountHandle)) { in getAccountColor() 103 return phoneAccountColorCache.get(accountHandle); in getAccountColor() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
D | PhoneAccountUtils.java | 31 Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountLabel() argument 32 PhoneAccount account = getAccountOrNull(context, accountHandle); in getAccountLabel() 40 public static int getAccountColor(Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountColor() argument 41 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountColor() 54 Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountSupportsCallSubject() argument 55 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountSupportsCallSubject() 66 Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountOrNull() argument 70 return TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountOrNull()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 241 public int getSubscriptionIdForPhoneAccount(PhoneAccountHandle accountHandle) { in getSubscriptionIdForPhoneAccount() argument 242 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount() 246 return mTelephonyManager.getSubscriptionId(accountHandle); in getSubscriptionIdForPhoneAccount() 368 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle, in setUserSelectedOutgoingPhoneAccount() argument 378 Log.i(this, "setUserSelectedOutgoingPhoneAccount: %s", accountHandle); in setUserSelectedOutgoingPhoneAccount() 380 if (Objects.equals(currentDefaultPhoneAccount, accountHandle)) { in setUserSelectedOutgoingPhoneAccount() 387 if (accountHandle == null) { in setUserSelectedOutgoingPhoneAccount() 391 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount() 394 accountHandle); in setUserSelectedOutgoingPhoneAccount() 400 accountHandle); in setUserSelectedOutgoingPhoneAccount() [all …]
|
D | TelecomServiceImpl.java | 346 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle) { 355 accountHandle, callingUserHandle); 563 public PhoneAccount getPhoneAccount(PhoneAccountHandle accountHandle, 580 !canGetPhoneAccount(callingPackage, accountHandle)) { 584 Log.e(this, e, "getPhoneAccount %s", accountHandle); 597 .getPhoneAccount(accountHandle, callingUserHandle, 601 Log.e(this, e, "getPhoneAccount %s", accountHandle); 901 public void unregisterPhoneAccount(PhoneAccountHandle accountHandle, 907 accountHandle.getComponentName().getPackageName()); 908 enforceUserHandleMatchesCaller(accountHandle); [all …]
|
D | CallLogManager.java | 335 PhoneAccountHandle accountHandle = call.getTargetPhoneAccount(); in logCall() local 336 if (emergencyAccountHandle.equals(accountHandle)) { in logCall() 337 accountHandle = null; in logCall() 339 paramBuilder.setAccountHandle(accountHandle); in logCall() 366 PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked(accountHandle); in logCall() 378 if (accountHandle == null) { in logCall() 381 paramBuilder.setUserToBeInsertedTo(accountHandle.getUserHandle()); in logCall() 382 paramBuilder.setAddForAllUsers(accountHandle.getUserHandle() == null); in logCall() 443 okayToLogCall(accountHandle, logNumber, call.isEmergencyCall()); in logCall() 456 boolean okayToLogCall(PhoneAccountHandle accountHandle, String number, boolean isEmergency) { in okayToLogCall() argument [all …]
|
D | EmergencyCallHelper.java | 91 public void setLastOutgoingEmergencyCallPAH(PhoneAccountHandle accountHandle) { in setLastOutgoingEmergencyCallPAH() argument 92 mLastOutgoingEmergencyCallPAH = accountHandle; in setLastOutgoingEmergencyCallPAH()
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
D | TelephonyManagerSdkCompat.java | 28 PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument 30 ? telephonyManager.getVoicemailRingtoneUri(accountHandle) : null; in getVoicemailRingtoneUri() 34 PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument 36 ? telephonyManager.isVoicemailVibrationEnabled(accountHandle) : false; in isVoicemailVibrationEnabled()
|
D | TelephonyManagerCompat.java | 147 PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument 152 .getVoicemailRingtoneUri(telephonyManager, accountHandle); in getVoicemailRingtoneUri() 164 PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument 169 .isVoicemailVibrationEnabled(telephonyManager, accountHandle); in isVoicemailVibrationEnabled()
|
/packages/services/Telephony/src/com/android/phone/settings/ |
D | PhoneAccountSettingsFragment.java | 406 Context context, PhoneAccountHandle accountHandle) { in buildPhoneAccountConfigureIntent() argument 408 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent() 413 context, accountHandle, LEGACY_ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent() 415 Log.w(LOG_TAG, "Phone account using old configuration intent: " + accountHandle); in buildPhoneAccountConfigureIntent() 422 Context context, PhoneAccountHandle accountHandle, String actionStr) { in buildConfigureIntent() argument 423 if (accountHandle == null || accountHandle.getComponentName() == null || in buildConfigureIntent() 424 TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) { in buildConfigureIntent() 430 intent.setPackage(accountHandle.getComponentName().getPackageName()); in buildConfigureIntent() 432 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in buildConfigureIntent()
|
/packages/apps/Dialer/java/com/android/dialer/telecom/ |
D | TelecomUtil.java | 160 for (PhoneAccountHandle accountHandle : accountHandles) { in getSubscriptionPhoneAccounts() 161 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getSubscriptionPhoneAccounts() 163 subscriptionAccountHandles.add(accountHandle); in getSubscriptionPhoneAccounts() 239 Context context, PhoneAccountHandle accountHandle, String number) { in isVoicemailNumber() argument 243 Pair<PhoneAccountHandle, String> cacheKey = new Pair<>(accountHandle, number); in isVoicemailNumber() 249 result = getTelecomManager(context).isVoiceMailNumber(accountHandle, number); in isVoicemailNumber() 256 public static String getVoicemailNumber(Context context, PhoneAccountHandle accountHandle) { in getVoicemailNumber() argument 258 return getTelecomManager(context).getVoiceMailNumber(accountHandle); in getVoicemailNumber()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | CallUtil.java | 165 for (PhoneAccountHandle accountHandle : accountHandles) { in getVideoCallingAvailability() 166 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in getVideoCallingAvailability() 212 for (PhoneAccountHandle accountHandle : accountHandles) { in isCallWithSubjectSupported() 213 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isCallWithSubjectSupported() 248 for (PhoneAccountHandle accountHandle : accountHandles) { in isTachyonEnabled() 249 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isTachyonEnabled()
|
/packages/apps/Dialer/java/com/android/dialer/util/ |
D | CallUtil.java | 76 for (PhoneAccountHandle accountHandle : accountHandles) { in getVideoCallingAvailability() 77 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in getVideoCallingAvailability() 137 for (PhoneAccountHandle accountHandle : accountHandles) { in isCallWithSubjectSupported() 138 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isCallWithSubjectSupported()
|
/packages/apps/Dialer/java/com/android/dialer/compat/telephony/ |
D | TelephonyManagerCompat.java | 136 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument 137 return telephonyManager.getVoicemailRingtoneUri(accountHandle); in getVoicemailRingtoneUri() 149 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument 150 return telephonyManager.isVoicemailVibrationEnabled(accountHandle); in isVoicemailVibrationEnabled()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestConnectionService.java | 422 PhoneAccountHandle accountHandle = request.getAccountHandle(); 425 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) { 467 "Invalid inputs: " + accountHandle + " " + componentName)); 474 PhoneAccountHandle accountHandle = request.getAccountHandle(); 476 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) { 492 "Invalid inputs: " + accountHandle + " " + componentName));
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | PhoneCallDetailsHelper.java | 106 Context context, PhoneAccountHandle accountHandle) { in shouldShowVoicemailDonationPromo() argument 108 return client.isVoicemailDonationAvailable(context, accountHandle) in shouldShowVoicemailDonationPromo() 194 String accountLabel = callLogCache.getAccountLabel(details.accountHandle); in setPhoneCallDetails() 207 int color = callLogCache.getAccountColor(details.accountHandle); in setPhoneCallDetails() 257 if (shouldShowTranscriptionRating(details.transcriptionState, details.accountHandle)) { in setPhoneCallDetails() 333 if (shouldShowVoicemailDonationPromo(context, details.accountHandle)) { in recordTranscriptionRating() 359 .setVoicemailDonationEnabled(context, details.accountHandle, true); in showVoicemailDonationPromo() 376 .setVoicemailDonationEnabled(context, details.accountHandle, false); in showVoicemailDonationPromo() 482 && !callLogCache.isVoicemailNumber(details.accountHandle, details.number)) { in getCallTypeOrLocation()
|
D | IntentProvider.java | 55 final String number, final PhoneAccountHandle accountHandle) { in getReturnCallIntentProvider() argument 62 .setPhoneAccountHandle(accountHandle)); in getReturnCallIntentProvider() 85 final String number, final PhoneAccountHandle accountHandle) { 92 .setPhoneAccountHandle(accountHandle)
|
D | CallLogListItemViewHolder.java | 205 public PhoneAccountHandle accountHandle; field in CallLogListItemViewHolder 539 IntentProvider.getReturnVideoCallIntentProvider(number, accountHandle)); in updatePrimaryActionButton() 561 if (callLogCache.isVoicemailNumber(accountHandle, number)) { in updatePrimaryActionButton() 680 boolean isVoicemailNumber = callLogCache.isVoicemailNumber(accountHandle, number); in bindActionButtons() 807 boolean supportsCallSubject = callLogCache.doesAccountSupportCallSubject(accountHandle); in bindActionButtons() 827 return accountHandle != null in showDuoPrimaryButton() 828 && duo.isDuoAccount(accountHandle) in showDuoPrimaryButton() 848 if (accountHandle == null) { in hasPlacedCarrierVideoCall() 854 return accountHandle.getComponentName().equals(defaultPhoneAccountHandle.getComponentName()); in hasPlacedCarrierVideoCall() 957 callLogCache.isVoicemailNumber(accountHandle, number), in getContactType() [all …]
|
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/ |
D | PhoneNumberHelper.java | 182 Context context, PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument 186 return TelecomUtil.isVoicemailNumber(context, accountHandle, number.toString()); in isVoicemailNumber() 198 Context context, PhoneAccountHandle accountHandle, CharSequence number, int presentation) { in isUnknownNumberThatCanBeLookedUp() argument 214 if (isVoicemailNumber(context, accountHandle, number)) { in isUnknownNumberThatCanBeLookedUp()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | VvmPhoneStateListener.java | 38 public VvmPhoneStateListener(Context context, PhoneAccountHandle accountHandle) { in VvmPhoneStateListener() argument 43 phoneAccount = accountHandle; in VvmPhoneStateListener()
|
/packages/apps/Dialer/java/com/android/incallui/disconnectdialog/ |
D | VideoCallNotAvailablePrompt.java | 67 private void makeVoiceCall(Context context, String number, PhoneAccountHandle accountHandle) { in makeVoiceCall() argument 72 .setPhoneAccountHandle(accountHandle)); in makeVoiceCall()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | MobileNetworkUtils.java | 250 Context context, PhoneAccountHandle accountHandle) { in buildPhoneAccountConfigureIntent() argument 252 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent() 256 intent = buildConfigureIntent(context, accountHandle, in buildPhoneAccountConfigureIntent() 263 Context context, PhoneAccountHandle accountHandle, String actionStr) { in buildConfigureIntent() argument 264 if (accountHandle == null || accountHandle.getComponentName() == null in buildConfigureIntent() 265 || TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) { in buildConfigureIntent() 271 intent.setPackage(accountHandle.getComponentName().getPackageName()); in buildConfigureIntent() 273 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in buildConfigureIntent()
|
/packages/services/Telecomm/src/com/android/server/telecom/voip/ |
D | VoipCallMonitor.java | 327 PhoneAccountHandle accountHandle = call.getTargetPhoneAccount(); in matchesCall() local 329 accountHandle.getComponentName().getPackageName()) in matchesCall() 330 && mUserHandle != null && mUserHandle.equals(accountHandle.getUserHandle()); in matchesCall()
|
/packages/apps/Dialer/java/com/android/contacts/common/widget/ |
D | SelectPhoneAccountDialogFragment.java | 271 PhoneAccountHandle accountHandle = in getView() local 274 getContext().getSystemService(TelecomManager.class).getPhoneAccount(accountHandle); in getView() 288 getCountryIso(getContext(), accountHandle))); in getView() local
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelephonyConnectionService.java | 420 int getSubIdForPhoneAccountHandle(PhoneAccountHandle accountHandle); in getSubIdForPhoneAccountHandle() argument 428 public int getSubIdForPhoneAccountHandle(PhoneAccountHandle accountHandle) { 429 return PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle); 1681 PhoneAccountHandle accountHandle = adjustAccountHandle(phone, request.getAccountHandle()); in getTelephonyConnection() local 1683 createConnectionFor(phone, null, true /* isOutgoing */, accountHandle, in getTelephonyConnection() 1692 if (!Objects.equals(request.getAccountHandle(), accountHandle)) { in getTelephonyConnection() 1694 + accountHandle); in getTelephonyConnection() 1695 connection.setPhoneAccountHandle(accountHandle); in getTelephonyConnection() 1714 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateIncomingConnection() local 1716 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateIncomingConnection() [all …]
|
/packages/apps/Dialer/java/com/android/incallui/call/ |
D | DialerCall.java | 661 private void cacheCarrierConfiguration(PhoneAccountHandle accountHandle) { in cacheCarrierConfiguration() argument 671 TelephonyManagerCompat.getTelephonyManagerForPhoneAccountHandle(context, accountHandle) in cacheCarrierConfiguration() 1431 public void phoneAccountSelected(PhoneAccountHandle accountHandle, boolean setDefault) { in phoneAccountSelected() argument 1435 accountHandle, in phoneAccountSelected() 1437 telecomCall.phoneAccountSelected(accountHandle, setDefault); in phoneAccountSelected() 1495 PhoneAccountHandle accountHandle = getAccountHandle(); in getPhoneAccount() local 1496 if (accountHandle == null) { in getPhoneAccount() 1499 return context.getSystemService(TelecomManager.class).getPhoneAccount(accountHandle); in getPhoneAccount()
|