Home
last modified time | relevance | path

Searched refs:accountHandle (Results 1 – 25 of 40) sorted by relevance

12

/packages/apps/Dialer/java/com/android/dialer/app/calllog/calllogcache/
DCallLogCacheLollipopMr1.java56 PhoneAccountHandle accountHandle, @Nullable CharSequence number) { in isVoicemailNumber() argument
60 return TelecomUtil.isVoicemailNumber(mContext, accountHandle, number.toString()); in isVoicemailNumber()
64 public String getAccountLabel(PhoneAccountHandle accountHandle) { in getAccountLabel() argument
65 if (mPhoneAccountLabelCache.containsKey(accountHandle)) { in getAccountLabel()
66 return mPhoneAccountLabelCache.get(accountHandle); in getAccountLabel()
68 String label = PhoneAccountUtils.getAccountLabel(mContext, accountHandle); in getAccountLabel()
69 mPhoneAccountLabelCache.put(accountHandle, label); in getAccountLabel()
75 public int getAccountColor(PhoneAccountHandle accountHandle) { in getAccountColor() argument
76 if (mPhoneAccountColorCache.containsKey(accountHandle)) { in getAccountColor()
77 return mPhoneAccountColorCache.get(accountHandle); in getAccountColor()
[all …]
DCallLogCache.java70 PhoneAccountHandle accountHandle, @Nullable CharSequence number) { in isVoicemailNumber() argument
74 return TelecomUtil.isVoicemailNumber(mContext, accountHandle, number.toString()); in isVoicemailNumber()
90 public synchronized String getAccountLabel(PhoneAccountHandle accountHandle) { in getAccountLabel() argument
91 if (mPhoneAccountLabelCache.containsKey(accountHandle)) { in getAccountLabel()
92 return mPhoneAccountLabelCache.get(accountHandle); in getAccountLabel()
94 String label = PhoneAccountUtils.getAccountLabel(mContext, accountHandle); in getAccountLabel()
95 mPhoneAccountLabelCache.put(accountHandle, label); in getAccountLabel()
101 public synchronized int getAccountColor(PhoneAccountHandle accountHandle) { in getAccountColor() argument
102 if (mPhoneAccountColorCache.containsKey(accountHandle)) { in getAccountColor()
103 return mPhoneAccountColorCache.get(accountHandle); in getAccountColor()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java129 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle) {
138 accountHandle, callingUserHandle);
254 public PhoneAccount getPhoneAccount(PhoneAccountHandle accountHandle) {
265 .getPhoneAccount(accountHandle, callingUserHandle,
268 Log.e(this, e, "getPhoneAccount %s", accountHandle);
460 public void unregisterPhoneAccount(PhoneAccountHandle accountHandle) {
465 accountHandle.getComponentName().getPackageName());
466 enforceUserHandleMatchesCaller(accountHandle);
469 mPhoneAccountRegistrar.unregisterPhoneAccount(accountHandle);
474 Log.e(this, e, "unregisterPhoneAccount %s", accountHandle);
[all …]
DPhoneAccountRegistrar.java188 public int getSubscriptionIdForPhoneAccount(PhoneAccountHandle accountHandle) { in getSubscriptionIdForPhoneAccount() argument
189 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount()
307 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle, in setUserSelectedOutgoingPhoneAccount() argument
312 if (accountHandle == null) { in setUserSelectedOutgoingPhoneAccount()
316 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount()
319 accountHandle); in setUserSelectedOutgoingPhoneAccount()
325 accountHandle); in setUserSelectedOutgoingPhoneAccount()
332 int subId = getSubscriptionIdForPhoneAccount(accountHandle); in setUserSelectedOutgoingPhoneAccount()
337 .put(userHandle, new DefaultPhoneAccountHandle(userHandle, accountHandle, in setUserSelectedOutgoingPhoneAccount()
345 boolean isUserSelectedSmsPhoneAccount(PhoneAccountHandle accountHandle) { in isUserSelectedSmsPhoneAccount() argument
[all …]
DCallLogManager.java75 int features, PhoneAccountHandle accountHandle, long creationDate, in AddCallArgs() argument
86 this.accountHandle = accountHandle; in AddCallArgs()
103 public final PhoneAccountHandle accountHandle; field in CallLogManager.AddCallArgs
220 PhoneAccountHandle accountHandle = call.getTargetPhoneAccount(); in logCall() local
221 if (emergencyAccountHandle.equals(accountHandle)) { in logCall()
222 accountHandle = null; in logCall()
231 call.getHandlePresentation(), callLogType, callFeatures, accountHandle, in logCall() local
260 PhoneAccountHandle accountHandle, in logCall() argument
275 mPhoneAccountRegistrar.getSubscriptionIdForPhoneAccount(accountHandle)); in logCall()
291 viaNumber, presentation, callType, features, accountHandle, start, duration, in logCall()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DPhoneAccountUtils.java37 for (PhoneAccountHandle accountHandle : accountHandles) { in getSubscriptionPhoneAccounts()
38 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getSubscriptionPhoneAccounts()
40 subscriptionAccountHandles.add(accountHandle); in getSubscriptionPhoneAccounts()
63 Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountLabel() argument
64 PhoneAccount account = getAccountOrNull(context, accountHandle); in getAccountLabel()
72 public static int getAccountColor(Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountColor() argument
73 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountColor()
86 Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountSupportsCallSubject() argument
87 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountSupportsCallSubject()
98 Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountOrNull() argument
[all …]
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java429 Context context, PhoneAccountHandle accountHandle) { in buildPhoneAccountConfigureIntent() argument
431 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent()
436 context, accountHandle, LEGACY_ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent()
438 Log.w(LOG_TAG, "Phone account using old configuration intent: " + accountHandle); in buildPhoneAccountConfigureIntent()
445 Context context, PhoneAccountHandle accountHandle, String actionStr) { in buildConfigureIntent() argument
446 if (accountHandle == null || accountHandle.getComponentName() == null || in buildConfigureIntent()
447 TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) { in buildConfigureIntent()
453 intent.setPackage(accountHandle.getComponentName().getPackageName()); in buildConfigureIntent()
455 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in buildConfigureIntent()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipIncomingCallReceiver.java60 PhoneAccountHandle accountHandle = null; in takeCall() local
62 accountHandle = intent.getParcelableExtra(SipUtil.EXTRA_PHONE_ACCOUNT); in takeCall()
67 if (accountHandle != null) { in takeCall()
71 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle); in takeCall()
73 tm.addNewIncomingCall(accountHandle, extras); in takeCall()
DSipPhoneAccountSettingsActivity.java44 PhoneAccountHandle accountHandle = (PhoneAccountHandle) in onCreate() local
46 Log.i(TAG, "" + accountHandle); in onCreate()
48 if (accountHandle != null) { in onCreate()
50 String profileName = SipUtil.getSipProfileNameFromPhoneAccount(accountHandle); in onCreate()
DSipAccountRegistry.java134 for (PhoneAccountHandle accountHandle : accountHandles) { in verifyAndPurgeInvalidPhoneAccounts()
135 String profileName = SipUtil.getSipProfileNameFromPhoneAccount(accountHandle); in verifyAndPurgeInvalidPhoneAccounts()
138 log("verifyAndPurgeInvalidPhoneAccounts, deleting account: " + accountHandle); in verifyAndPurgeInvalidPhoneAccounts()
139 telecomManager.unregisterPhoneAccount(accountHandle); in verifyAndPurgeInvalidPhoneAccounts()
DSipConnectionService.java77 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateOutgoingConnection() local
79 if (!Objects.equals(accountHandle.getComponentName(), sipComponentName)) { in onCreateOutgoingConnection()
112 String profileName = accountHandle.getId(); in onCreateOutgoingConnection()
/packages/apps/Contacts/src/com/android/contacts/
DCallUtil.java165 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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java408 PhoneAccountHandle accountHandle = request.getAccountHandle();
411 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) {
453 "Invalid inputs: " + accountHandle + " " + componentName));
460 PhoneAccountHandle accountHandle = request.getAccountHandle();
462 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) {
478 "Invalid inputs: " + accountHandle + " " + componentName));
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogListItemViewHolder.java197 public PhoneAccountHandle accountHandle; field in CallLogListItemViewHolder
514 boolean isVoicemailNumber = mCallLogCache.isVoicemailNumber(accountHandle, number); in updatePrimaryActionButton()
671 boolean isVoicemailNumber = mCallLogCache.isVoicemailNumber(accountHandle, number); in bindActionButtons()
681 boolean supportsCallSubject = mCallLogCache.doesAccountSupportCallSubject(accountHandle); in bindActionButtons()
700 return accountHandle != null in showLightbringerPrimaryButton()
701 && accountHandle.getComponentName().equals(getLightbringer().getPhoneAccountComponentName()) in showLightbringerPrimaryButton()
721 if (accountHandle == null) { in hasPlacedCarrierVideoCall()
727 return accountHandle.getComponentName().equals(mDefaultPhoneAccountHandle.getComponentName()); in hasPlacedCarrierVideoCall()
806 mCallLogCache.isVoicemailNumber(accountHandle, number), in getContactType()
836 accountHandle); in onClick()
[all …]
DIntentProvider.java51 final String number, final PhoneAccountHandle accountHandle) { in getReturnCallIntentProvider() argument
56 .setPhoneAccountHandle(accountHandle) in getReturnCallIntentProvider()
67 final String number, final PhoneAccountHandle accountHandle) {
72 .setPhoneAccountHandle(accountHandle)
DPhoneCallDetailsHelper.java109 String accountLabel = mCallLogCache.getAccountLabel(details.accountHandle); in setPhoneCallDetails()
122 int color = mCallLogCache.getAccountColor(details.accountHandle); in setPhoneCallDetails()
210 && !mCallLogCache.isVoicemailNumber(details.accountHandle, details.number)) { in getCallTypeOrLocation()
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelephonyManagerSdkCompat.java28 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()
DTelephonyManagerCompat.java147 PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument
152 .getVoicemailRingtoneUri(telephonyManager, accountHandle); in getVoicemailRingtoneUri()
164 PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument
169 .isVoicemailVibrationEnabled(telephonyManager, accountHandle); in isVoicemailVibrationEnabled()
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java154 Context context, PhoneAccountHandle accountHandle, String number) { in isVoicemailNumber() argument
158 Pair<PhoneAccountHandle, String> cacheKey = new Pair<>(accountHandle, number); in isVoicemailNumber()
164 result = getTelecomManager(context).isVoiceMailNumber(accountHandle, number); in isVoicemailNumber()
171 public static String getVoicemailNumber(Context context, PhoneAccountHandle accountHandle) { in getVoicemailNumber() argument
173 return getTelecomManager(context).getVoiceMailNumber(accountHandle); in getVoicemailNumber()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java612 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateIncomingConnection() local
614 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateIncomingConnection()
615 accountHandle.getId())) { in onCreateIncomingConnection()
620 Phone phone = getPhoneForAccount(accountHandle, isEmergency); in onCreateIncomingConnection()
689 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateUnknownConnection() local
691 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateUnknownConnection()
692 accountHandle.getId())) { in onCreateUnknownConnection()
697 Phone phone = getPhoneForAccount(accountHandle, isEmergency); in onCreateUnknownConnection()
994 private Phone getPhoneForAccount(PhoneAccountHandle accountHandle, boolean isEmergency) { in getPhoneForAccount() argument
996 int subId = PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle); in getPhoneForAccount()
[all …]
/packages/apps/Dialer/java/com/android/dialer/util/
DCallUtil.java81 for (PhoneAccountHandle accountHandle : accountHandles) { in getVideoCallingAvailability()
82 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in getVideoCallingAvailability()
147 for (PhoneAccountHandle accountHandle : accountHandles) { in isCallWithSubjectSupported()
148 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isCallWithSubjectSupported()
/packages/apps/Dialer/java/com/android/contacts/common/compat/
DTelephonyManagerCompat.java101 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument
105 return telephonyManager.getVoicemailRingtoneUri(accountHandle); in getVoicemailRingtoneUri()
117 TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument
119 || telephonyManager.isVoicemailVibrationEnabled(accountHandle); in isVoicemailVibrationEnabled()
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java55 Context context, PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument
59 return TelecomUtil.isVoicemailNumber(context, accountHandle, number.toString()); in isVoicemailNumber()
71 Context context, PhoneAccountHandle accountHandle, CharSequence number, int presentation) { in isUnknownNumberThatCanBeLookedUp() argument
84 if (isVoicemailNumber(context, accountHandle, number)) { in isUnknownNumberThatCanBeLookedUp()
/packages/apps/Dialer/java/com/android/incallui/call/
DDialerCall.java1043 public void phoneAccountSelected(PhoneAccountHandle accountHandle, boolean setDefault) { in phoneAccountSelected() argument
1047 accountHandle, in phoneAccountSelected()
1049 mTelecomCall.phoneAccountSelected(accountHandle, setDefault); in phoneAccountSelected()
1109 PhoneAccountHandle accountHandle = getAccountHandle(); in getPhoneAccount() local
1110 if (accountHandle == null) { in getPhoneAccount()
1113 return mContext.getSystemService(TelecomManager.class).getPhoneAccount(accountHandle); in getPhoneAccount()
1160 PhoneAccountHandle accountHandle = getAccountHandle(); in getSubscriptionNumber() local
1161 if (accountHandle != null) { in getSubscriptionNumber()
1163 mContext.getSystemService(TelecomManager.class).getPhoneAccount(accountHandle); in getSubscriptionNumber()
/packages/apps/Dialer/java/com/android/incallui/
DStatusBarNotifier.java364 PhoneAccountHandle accountHandle = call.getAccountHandle(); in buildAndSendNotification() local
365 if (accountHandle == null) { in buildAndSendNotification()
366 accountHandle = getAnyPhoneAccount(); in buildAndSendNotification()
467 PhoneAccountHandle accountHandle; in getAnyPhoneAccount() local
469 accountHandle = telecomManager.getDefaultOutgoingPhoneAccount(PhoneAccount.SCHEME_TEL); in getAnyPhoneAccount()
470 if (accountHandle == null) { in getAnyPhoneAccount()
473 accountHandle = accountHandles.get(0); in getAnyPhoneAccount()
476 return accountHandle; in getAnyPhoneAccount()

12