Home
last modified time | relevance | path

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

12

/packages/apps/Dialer/src/com/android/dialer/calllog/calllogcache/
DCallLogCacheLollipopMr1.java61 public boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument
66 Pair<PhoneAccountHandle, CharSequence> key = new Pair<>(accountHandle, number); in isVoicemailNumber()
71 PhoneNumberUtil.isVoicemailNumber(mContext, accountHandle, number.toString()); in isVoicemailNumber()
78 public String getAccountLabel(PhoneAccountHandle accountHandle) { in getAccountLabel() argument
79 if (mPhoneAccountLabelCache.containsKey(accountHandle)) { in getAccountLabel()
80 return mPhoneAccountLabelCache.get(accountHandle); in getAccountLabel()
82 String label = PhoneAccountUtils.getAccountLabel(mContext, accountHandle); in getAccountLabel()
83 mPhoneAccountLabelCache.put(accountHandle, label); in getAccountLabel()
89 public int getAccountColor(PhoneAccountHandle accountHandle) { in getAccountColor() argument
90 if (mPhoneAccountColorCache.containsKey(accountHandle)) { in getAccountColor()
[all …]
DCallLogCacheLollipop.java40 public boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument
60 public String getAccountLabel(PhoneAccountHandle accountHandle) { in getAccountLabel() argument
65 public int getAccountColor(PhoneAccountHandle accountHandle) { in getAccountColor() argument
70 public boolean doesAccountSupportCallSubject(PhoneAccountHandle accountHandle) { in doesAccountSupportCallSubject() argument
DCallLogCache.java67 public abstract boolean isVoicemailNumber(PhoneAccountHandle accountHandle, in isVoicemailNumber() argument
81 public abstract String getAccountLabel(PhoneAccountHandle accountHandle); in getAccountLabel() argument
86 public abstract int getAccountColor(PhoneAccountHandle accountHandle); in getAccountColor() argument
95 public abstract boolean doesAccountSupportCallSubject(PhoneAccountHandle accountHandle); in doesAccountSupportCallSubject() argument
/packages/apps/Dialer/src/com/android/dialer/calllog/
DPhoneAccountUtils.java43 for (PhoneAccountHandle accountHandle : accountHandles) { in getSubscriptionPhoneAccounts()
44 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getSubscriptionPhoneAccounts()
46 subscriptionAccountHandles.add(accountHandle); in getSubscriptionPhoneAccounts()
73 @Nullable PhoneAccountHandle accountHandle) { in getAccountLabel() argument
74 PhoneAccount account = getAccountOrNull(context, accountHandle); in getAccountLabel()
84 public static int getAccountColor(Context context, @Nullable PhoneAccountHandle accountHandle) { in getAccountColor() argument
85 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountColor()
98 @Nullable PhoneAccountHandle accountHandle) { in getAccountSupportsCallSubject() argument
99 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountSupportsCallSubject()
111 @Nullable PhoneAccountHandle accountHandle) { in getAccountOrNull() argument
[all …]
DDefaultVoicemailNotifier.java220 PhoneAccountHandle accountHandle = null; in getNotificationInfo() local
223 accountHandle = TelecomUtil in getNotificationInfo()
225 if (accountHandle == null) { in getNotificationInfo()
231 accountHandle = new PhoneAccountHandle( in getNotificationInfo()
235 if (accountHandle.getComponentName() != null) { in getNotificationInfo()
236 Log.v(TAG, "PhoneAccountHandle.ComponentInfo:" + accountHandle.getComponentName()); in getNotificationInfo()
242 getTelephonyManager(), accountHandle), in getNotificationInfo()
243 getNotificationDefaults(accountHandle)); in getNotificationInfo()
246 private int getNotificationDefaults(PhoneAccountHandle accountHandle) { in getNotificationDefaults() argument
249 accountHandle) ? Notification.DEFAULT_VIBRATE : 0; in getNotificationDefaults()
DIntentProvider.java54 final PhoneAccountHandle accountHandle) { in getReturnCallIntentProvider() argument
59 .setPhoneAccountHandle(accountHandle) in getReturnCallIntentProvider()
71 final PhoneAccountHandle accountHandle) {
76 .setPhoneAccountHandle(accountHandle)
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java158 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle) {
167 accountHandle, callingUserHandle);
252 public PhoneAccount getPhoneAccount(PhoneAccountHandle accountHandle) {
263 .getPhoneAccount(accountHandle, callingUserHandle,
266 Log.e(this, e, "getPhoneAccount %s", accountHandle);
414 public void unregisterPhoneAccount(PhoneAccountHandle accountHandle) {
419 accountHandle.getComponentName().getPackageName());
420 enforceUserHandleMatchesCaller(accountHandle);
421 mPhoneAccountRegistrar.unregisterPhoneAccount(accountHandle);
429 TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle);
[all …]
DPhoneAccountRegistrar.java171 public int getSubscriptionIdForPhoneAccount(PhoneAccountHandle accountHandle) { in getSubscriptionIdForPhoneAccount() argument
172 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); in getSubscriptionIdForPhoneAccount()
250 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle, in setUserSelectedOutgoingPhoneAccount() argument
255 if (accountHandle == null) { in setUserSelectedOutgoingPhoneAccount()
259 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); in setUserSelectedOutgoingPhoneAccount()
262 accountHandle); in setUserSelectedOutgoingPhoneAccount()
268 accountHandle); in setUserSelectedOutgoingPhoneAccount()
275 int subId = getSubscriptionIdForPhoneAccount(accountHandle); in setUserSelectedOutgoingPhoneAccount()
280 .put(userHandle, new DefaultPhoneAccountHandle(userHandle, accountHandle)); in setUserSelectedOutgoingPhoneAccount()
287 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
204 PhoneAccountHandle accountHandle = call.getTargetPhoneAccount(); in logCall() local
205 if (emergencyAccountHandle.equals(accountHandle)) { in logCall()
206 accountHandle = null; in logCall()
214 call.getHandlePresentation(), callLogType, callFeatures, accountHandle, in logCall() local
243 PhoneAccountHandle accountHandle, in logCall() argument
273 viaNumber, presentation, callType, features, accountHandle, start, duration, in logCall()
363 .getPhoneAccountUnchecked(c.accountHandle); in addCall()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/telecom/
DTelecomManagerCompat.java71 PhoneAccountHandle accountHandle) { in getAdnUriForPhoneAccount() argument
75 return telecomManager.getAdnUriForPhoneAccount(accountHandle); in getAdnUriForPhoneAccount()
173 @Nullable PhoneAccountHandle accountHandle, @Nullable String number) { in isVoiceMailNumber() argument
177 return telecomManager.isVoiceMailNumber(accountHandle, number); in isVoiceMailNumber()
192 @Nullable PhoneAccountHandle accountHandle) { in getPhoneAccount() argument
195 return telecomManager.getPhoneAccount(accountHandle); in getPhoneAccount()
214 @Nullable PhoneAccountHandle accountHandle) { in getVoiceMailNumber() argument
217 return telecomManager.getVoiceMailNumber(accountHandle); in getVoiceMailNumber()
234 @Nullable String dialString, @Nullable PhoneAccountHandle accountHandle) { in handleMmi() argument
239 return telecomManager.handleMmi(dialString, accountHandle); in handleMmi()
[all …]
/packages/services/Telephony/src/com/android/phone/
DVoicemailUtils.java26 public static void setConfigurationState(Context context, PhoneAccountHandle accountHandle, in setConfigurationState() argument
28 VoicemailContract.Status.setStatus(context, accountHandle, in setConfigurationState()
34 public static void setDataChannelState(Context context, PhoneAccountHandle accountHandle, in setDataChannelState() argument
36 VoicemailContract.Status.setStatus(context, accountHandle, in setDataChannelState()
43 PhoneAccountHandle accountHandle, int notificationChannelState) { in setNotificationChannelState() argument
44 VoicemailContract.Status.setStatus(context, accountHandle, in setNotificationChannelState()
/packages/apps/ContactsCommon/src-N/com/android/contacts/common/compat/
DTelephonyManagerSdkCompat.java28 PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument
29 return telephonyManager.getVoicemailRingtoneUri(accountHandle); in getVoicemailRingtoneUri()
33 PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument
34 return telephonyManager.isVoicemailVibrationEnabled(accountHandle); in isVoicemailVibrationEnabled()
/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/
DSipBroadcastReceiver.java73 PhoneAccountHandle accountHandle = null; in takeCall() local
75 accountHandle = intent.getParcelableExtra(SipUtil.EXTRA_PHONE_ACCOUNT); in takeCall()
80 if (accountHandle != null) { in takeCall()
84 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle); in takeCall()
86 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.java131 for (PhoneAccountHandle accountHandle : accountHandles) { in verifyAndPurgeInvalidPhoneAccounts()
132 String profileName = SipUtil.getSipProfileNameFromPhoneAccount(accountHandle); in verifyAndPurgeInvalidPhoneAccounts()
135 log("verifyAndPurgeInvalidPhoneAccounts, deleting account: " + accountHandle); in verifyAndPurgeInvalidPhoneAccounts()
136 telecomManager.unregisterPhoneAccount(accountHandle); in verifyAndPurgeInvalidPhoneAccounts()
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/calllogcache/
DTestTelecomCallLogCache.java43 public boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument
48 public String getAccountLabel(PhoneAccountHandle accountHandle) { in getAccountLabel() argument
57 public int getAccountColor(PhoneAccountHandle accountHandle) { in getAccountColor() argument
62 public boolean doesAccountSupportCallSubject(PhoneAccountHandle accountHandle) { in doesAccountSupportCallSubject() argument
/packages/apps/Dialer/src/com/android/dialer/util/
DIntentUtil.java60 public CallIntentBuilder setPhoneAccountHandle(PhoneAccountHandle accountHandle) { in setPhoneAccountHandle() argument
61 mPhoneAccountHandle = accountHandle; in setPhoneAccountHandle()
89 Uri uri, PhoneAccountHandle accountHandle, int videoState, int callIntiationType) { in getCallIntent() argument
97 if (accountHandle != null) { in getCallIntent()
98 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle); in getCallIntent()
DPhoneNumberUtil.java53 Context context, PhoneAccountHandle accountHandle, CharSequence number) { in isVoicemailNumber() argument
57 return TelecomUtil.isVoicemailNumber(context, accountHandle, number.toString()); in isVoicemailNumber()
70 PhoneAccountHandle accountHandle, in isUnknownNumberThatCanBeLookedUp() argument
85 if (isVoicemailNumber(context, accountHandle, number)) { in isUnknownNumberThatCanBeLookedUp()
DTelecomUtil.java138 public static boolean isVoicemailNumber(Context context, PhoneAccountHandle accountHandle, in isVoicemailNumber() argument
142 accountHandle, number); in isVoicemailNumber()
148 public static String getVoicemailNumber(Context context, PhoneAccountHandle accountHandle) { in getVoicemailNumber() argument
151 getTelephonyManager(context), accountHandle); in getVoicemailNumber()
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
DTelephonyManagerCompat.java149 PhoneAccountHandle accountHandle) { in getVoicemailRingtoneUri() argument
154 .getVoicemailRingtoneUri(telephonyManager, accountHandle); in getVoicemailRingtoneUri()
166 PhoneAccountHandle accountHandle) { in isVoicemailVibrationEnabled() argument
171 .isVoicemailVibrationEnabled(telephonyManager, accountHandle); in isVoicemailVibrationEnabled()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java345 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateIncomingConnection() local
348 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) { in onCreateIncomingConnection()
394 "Invalid inputs: " + accountHandle + " " + componentName)); in onCreateIncomingConnection()
401 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateUnknownConnection() local
403 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) { in onCreateUnknownConnection()
419 "Invalid inputs: " + accountHandle + " " + componentName)); in onCreateUnknownConnection()
/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConnectionService.java348 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateIncomingConnection() local
350 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateIncomingConnection()
351 accountHandle.getId())) { in onCreateIncomingConnection()
356 Phone phone = getPhoneForAccount(accountHandle, isEmergency); in onCreateIncomingConnection()
405 PhoneAccountHandle accountHandle = request.getAccountHandle(); in onCreateUnknownConnection() local
407 if (accountHandle != null && PhoneUtils.EMERGENCY_ACCOUNT_HANDLE_ID.equals( in onCreateUnknownConnection()
408 accountHandle.getId())) { in onCreateUnknownConnection()
413 Phone phone = getPhoneForAccount(accountHandle, isEmergency); in onCreateUnknownConnection()
587 private Phone getPhoneForAccount(PhoneAccountHandle accountHandle, boolean isEmergency) { in getPhoneForAccount() argument
589 int subId = PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle); in getPhoneForAccount()
[all …]
/packages/apps/ContactsCommon/src/com/android/contacts/common/
DCallUtil.java144 for (PhoneAccountHandle accountHandle : accountHandles) { in getVideoCallingAvailability()
145 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in getVideoCallingAvailability()
196 for (PhoneAccountHandle accountHandle : accountHandles) { in isCallWithSubjectSupported()
197 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isCallWithSubjectSupported()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/
DVvmPhoneStateListener.java42 public VvmPhoneStateListener(Context context, PhoneAccountHandle accountHandle) { in VvmPhoneStateListener() argument
43 super(PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle)); in VvmPhoneStateListener()
45 mPhoneAccount = accountHandle; in VvmPhoneStateListener()

12