Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/java/com/android/dialer/app/calllog/calllogcache/
DCallLogCache.java70 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/services/Telecomm/src/com/android/server/telecom/
DPhoneAccountRegistrar.java185 public int getSubscriptionIdForPhoneAccount(PhoneAccountHandle accountHandle) { in getSubscriptionIdForPhoneAccount() argument
186 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount()
191 return tm.getSubscriptionId(accountHandle); in getSubscriptionIdForPhoneAccount()
304 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle, in setUserSelectedOutgoingPhoneAccount() argument
314 if (accountHandle == null) { in setUserSelectedOutgoingPhoneAccount()
318 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount()
321 accountHandle); in setUserSelectedOutgoingPhoneAccount()
327 accountHandle); in setUserSelectedOutgoingPhoneAccount()
337 Log.i(this, "setUserSelectedOutgoingPhoneAccount: %s", accountHandle); in setUserSelectedOutgoingPhoneAccount()
339 .put(userHandle, new DefaultPhoneAccountHandle(userHandle, accountHandle, in setUserSelectedOutgoingPhoneAccount()
[all …]
DTelecomServiceImpl.java159 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle) {
168 accountHandle, callingUserHandle);
289 public PhoneAccount getPhoneAccount(PhoneAccountHandle accountHandle) {
300 .getPhoneAccount(accountHandle, callingUserHandle,
303 Log.e(this, e, "getPhoneAccount %s", accountHandle);
523 public void unregisterPhoneAccount(PhoneAccountHandle accountHandle) {
528 accountHandle.getComponentName().getPackageName());
529 enforceUserHandleMatchesCaller(accountHandle);
532 mPhoneAccountRegistrar.unregisterPhoneAccount(accountHandle);
537 Log.e(this, e, "unregisterPhoneAccount %s", accountHandle);
[all …]
DCallLogManager.java84 int features, PhoneAccountHandle accountHandle, long creationDate, in AddCallArgs() argument
96 this.accountHandle = accountHandle; in AddCallArgs()
117 public final PhoneAccountHandle accountHandle; field in CallLogManager.AddCallArgs
340 PhoneAccountHandle accountHandle = call.getTargetPhoneAccount(); in logCall() local
341 if (emergencyAccountHandle.equals(accountHandle)) { in logCall()
342 accountHandle = null; in logCall()
358 call.getHandlePresentation(), callLogType, callFeatures, accountHandle, in logCall() local
365 call.getHandlePresentation(), callLogType, callFeatures, accountHandle, in logCall() local
402 PhoneAccountHandle accountHandle, in logCall() argument
421 mPhoneAccountRegistrar.getSubscriptionIdForPhoneAccount(accountHandle)); in logCall()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DPhoneAccountUtils.java31 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/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DMobileNetworkUtils.java121 Context context, PhoneAccountHandle accountHandle) { in buildPhoneAccountConfigureIntent() argument
123 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent()
127 intent = buildConfigureIntent(context, accountHandle, in buildPhoneAccountConfigureIntent()
134 Context context, PhoneAccountHandle accountHandle, String actionStr) { in buildConfigureIntent() argument
135 if (accountHandle == null || accountHandle.getComponentName() == null in buildConfigureIntent()
136 || TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) { in buildConfigureIntent()
142 intent.setPackage(accountHandle.getComponentName().getPackageName()); in buildConfigureIntent()
144 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in buildConfigureIntent()
/packages/apps/Dialer/java/com/android/dialer/telecom/
DTelecomUtil.java159 for (PhoneAccountHandle accountHandle : accountHandles) { in getSubscriptionPhoneAccounts()
160 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getSubscriptionPhoneAccounts()
162 subscriptionAccountHandles.add(accountHandle); in getSubscriptionPhoneAccounts()
226 Context context, PhoneAccountHandle accountHandle, String number) { in isVoicemailNumber() argument
230 Pair<PhoneAccountHandle, String> cacheKey = new Pair<>(accountHandle, number); in isVoicemailNumber()
236 result = getTelecomManager(context).isVoiceMailNumber(accountHandle, number); in isVoicemailNumber()
243 public static String getVoicemailNumber(Context context, PhoneAccountHandle accountHandle) { in getVoicemailNumber() argument
245 return getTelecomManager(context).getVoiceMailNumber(accountHandle); in getVoicemailNumber()
/packages/services/Telephony/src/com/android/phone/settings/
DPhoneAccountSettingsFragment.java477 Context context, PhoneAccountHandle accountHandle) { in buildPhoneAccountConfigureIntent() argument
479 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent()
484 context, accountHandle, LEGACY_ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent()
486 Log.w(LOG_TAG, "Phone account using old configuration intent: " + accountHandle); in buildPhoneAccountConfigureIntent()
493 Context context, PhoneAccountHandle accountHandle, String actionStr) { in buildConfigureIntent() argument
494 if (accountHandle == null || accountHandle.getComponentName() == null || in buildConfigureIntent()
495 TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) { in buildConfigureIntent()
501 intent.setPackage(accountHandle.getComponentName().getPackageName()); in buildConfigureIntent()
503 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in buildConfigureIntent()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipIncomingCallReceiver.java66 PhoneAccountHandle accountHandle = null; in takeCall() local
68 accountHandle = intent.getParcelableExtra(SipUtil.EXTRA_PHONE_ACCOUNT); in takeCall()
73 if (accountHandle != null) { in takeCall()
77 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle); in takeCall()
79 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.java78 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateOutgoingConnection() local
80 if (!Objects.equals(accountHandle.getComponentName(), sipComponentName)) { in onCreateOutgoingConnection()
113 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/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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java422 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/
DPhoneCallDetailsHelper.java106 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()
DCallLogListItemViewHolder.java205 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 …]
DIntentProvider.java55 final String number, final PhoneAccountHandle accountHandle) { in getReturnCallIntentProvider() argument
62 .setPhoneAccountHandle(accountHandle)); in getReturnCallIntentProvider()
85 final String number, final PhoneAccountHandle accountHandle) {
92 .setPhoneAccountHandle(accountHandle)
/packages/apps/Settings/src/com/android/settings/network/telephony/
DMobileNetworkUtils.java236 Context context, PhoneAccountHandle accountHandle) { in buildPhoneAccountConfigureIntent() argument
238 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT); in buildPhoneAccountConfigureIntent()
242 intent = buildConfigureIntent(context, accountHandle, in buildPhoneAccountConfigureIntent()
249 Context context, PhoneAccountHandle accountHandle, String actionStr) { in buildConfigureIntent() argument
250 if (accountHandle == null || accountHandle.getComponentName() == null in buildConfigureIntent()
251 || TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) { in buildConfigureIntent()
257 intent.setPackage(accountHandle.getComponentName().getPackageName()); in buildConfigureIntent()
259 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in buildConfigureIntent()
/packages/apps/Dialer/java/com/android/dialer/util/
DCallUtil.java76 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/
DTelephonyManagerCompat.java136 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/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java304 int getSubIdForPhoneAccountHandle(PhoneAccountHandle accountHandle); in getSubIdForPhoneAccountHandle() argument
312 public int getSubIdForPhoneAccountHandle(PhoneAccountHandle accountHandle) {
313 return PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle);
1175 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateIncomingConnection() local
1177 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateIncomingConnection()
1178 accountHandle.getId())) { in onCreateIncomingConnection()
1183 Phone phone = getPhoneForAccount(accountHandle, isEmergency, in onCreateIncomingConnection()
1292 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateIncomingConnectionFailed() local
1294 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateIncomingConnectionFailed()
1295 accountHandle.getId())) { in onCreateIncomingConnectionFailed()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonenumberutil/
DPhoneNumberHelper.java182 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
211 if (isVoicemailNumber(context, accountHandle, number)) { in isUnknownNumberThatCanBeLookedUp()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVvmPhoneStateListener.java38 public VvmPhoneStateListener(Context context, PhoneAccountHandle accountHandle) { in VvmPhoneStateListener() argument
43 phoneAccount = accountHandle; in VvmPhoneStateListener()

12