Searched refs:accountHandle (Results 1 - 25 of 44) sorted by relevance

12

/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/
H A DTelephonyManagerSdkCompat.java28 PhoneAccountHandle accountHandle) {
30 ? telephonyManager.getVoicemailRingtoneUri(accountHandle) : null;
34 PhoneAccountHandle accountHandle) {
36 ? telephonyManager.isVoicemailVibrationEnabled(accountHandle) : false;
27 getVoicemailRingtoneUri(TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) argument
33 isVoicemailVibrationEnabled(TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) argument
H A DTelephonyManagerCompat.java142 * @param accountHandle The handle for the {@link android.telecom.PhoneAccount} for which to
149 PhoneAccountHandle accountHandle) {
154 .getVoicemailRingtoneUri(telephonyManager, accountHandle);
161 * @param accountHandle The handle for the {@link android.telecom.PhoneAccount} for which to
166 PhoneAccountHandle accountHandle) {
171 .isVoicemailVibrationEnabled(telephonyManager, accountHandle);
148 getVoicemailRingtoneUri(TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) argument
165 isVoicemailVibrationEnabled(TelephonyManager telephonyManager, PhoneAccountHandle accountHandle) argument
/packages/apps/Dialer/src/com/android/dialer/calllog/calllogcache/
H A DCallLogCacheLollipopMr1.java61 public boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number) { argument
66 Pair<PhoneAccountHandle, CharSequence> key = new Pair<>(accountHandle, number);
71 PhoneNumberUtil.isVoicemailNumber(mContext, accountHandle, number.toString());
78 public String getAccountLabel(PhoneAccountHandle accountHandle) { argument
79 if (mPhoneAccountLabelCache.containsKey(accountHandle)) {
80 return mPhoneAccountLabelCache.get(accountHandle);
82 String label = PhoneAccountUtils.getAccountLabel(mContext, accountHandle);
83 mPhoneAccountLabelCache.put(accountHandle, label);
89 public int getAccountColor(PhoneAccountHandle accountHandle) { argument
90 if (mPhoneAccountColorCache.containsKey(accountHandle)) {
100 doesAccountSupportCallSubject(PhoneAccountHandle accountHandle) argument
[all...]
H A DCallLogCache.java67 public abstract boolean isVoicemailNumber(PhoneAccountHandle accountHandle, argument
81 public abstract String getAccountLabel(PhoneAccountHandle accountHandle); argument
86 public abstract int getAccountColor(PhoneAccountHandle accountHandle); argument
92 * @param accountHandle The PhoneAccount handle.
95 public abstract boolean doesAccountSupportCallSubject(PhoneAccountHandle accountHandle); argument
H A DCallLogCacheLollipop.java40 public boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number) { argument
60 public String getAccountLabel(PhoneAccountHandle accountHandle) { argument
65 public int getAccountColor(PhoneAccountHandle accountHandle) { argument
70 public boolean doesAccountSupportCallSubject(PhoneAccountHandle accountHandle) { argument
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/calllogcache/
H A DTestTelecomCallLogCache.java43 public boolean isVoicemailNumber(PhoneAccountHandle accountHandle, CharSequence number) { argument
48 public String getAccountLabel(PhoneAccountHandle accountHandle) { argument
57 public int getAccountColor(PhoneAccountHandle accountHandle) { argument
62 public boolean doesAccountSupportCallSubject(PhoneAccountHandle accountHandle) { argument
/packages/apps/Dialer/src/com/android/dialer/calllog/
H A DPhoneAccountUtils.java43 for (PhoneAccountHandle accountHandle : accountHandles) {
44 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
46 subscriptionAccountHandles.add(accountHandle);
73 @Nullable PhoneAccountHandle accountHandle) {
74 PhoneAccount account = getAccountOrNull(context, accountHandle);
84 public static int getAccountColor(Context context, @Nullable PhoneAccountHandle accountHandle) { argument
85 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
98 @Nullable PhoneAccountHandle accountHandle) {
99 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
111 @Nullable PhoneAccountHandle accountHandle) {
72 getAccountLabel(Context context, @Nullable PhoneAccountHandle accountHandle) argument
97 getAccountSupportsCallSubject(Context context, @Nullable PhoneAccountHandle accountHandle) argument
110 getAccountOrNull(Context context, @Nullable PhoneAccountHandle accountHandle) argument
[all...]
H A DDefaultVoicemailNotifier.java220 PhoneAccountHandle accountHandle = null;
223 accountHandle = TelecomUtil
225 if (accountHandle == null) {
231 accountHandle = new PhoneAccountHandle(
235 if (accountHandle.getComponentName() != null) {
236 Log.v(TAG, "PhoneAccountHandle.ComponentInfo:" + accountHandle.getComponentName());
242 getTelephonyManager(), accountHandle),
243 getNotificationDefaults(accountHandle));
246 private int getNotificationDefaults(PhoneAccountHandle accountHandle) { argument
249 accountHandle)
[all...]
H A DIntentProvider.java54 final PhoneAccountHandle accountHandle) {
59 .setPhoneAccountHandle(accountHandle)
71 final PhoneAccountHandle accountHandle) {
76 .setPhoneAccountHandle(accountHandle)
53 getReturnCallIntentProvider(final String number, final PhoneAccountHandle accountHandle) argument
70 getReturnVideoCallIntentProvider(final String number, final PhoneAccountHandle accountHandle) argument
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/telecom/
H A DTelecomManagerCompat.java65 * @param accountHandle The handle for the account to derive an adn query URI for or
71 PhoneAccountHandle accountHandle) {
75 return telecomManager.getAdnUriForPhoneAccount(accountHandle);
169 * @param accountHandle The handle for the account to check the voicemail number against
173 @Nullable PhoneAccountHandle accountHandle, @Nullable String number) {
177 return telecomManager.isVoiceMailNumber(accountHandle, number);
192 @Nullable PhoneAccountHandle accountHandle) {
195 return telecomManager.getPhoneAccount(accountHandle);
204 * number if accountHandle is specified.
206 * voicemail number if accountHandle i
70 getAdnUriForPhoneAccount(@ullable TelecomManager telecomManager, PhoneAccountHandle accountHandle) argument
172 isVoiceMailNumber(@ullable TelecomManager telecomManager, @Nullable PhoneAccountHandle accountHandle, @Nullable String number) argument
191 getPhoneAccount(@ullable TelecomManager telecomManager, @Nullable PhoneAccountHandle accountHandle) argument
212 getVoiceMailNumber(@ullable TelecomManager telecomManager, @Nullable TelephonyManager telephonyManager, @Nullable PhoneAccountHandle accountHandle) argument
233 handleMmi(@ullable TelecomManager telecomManager, @Nullable String dialString, @Nullable PhoneAccountHandle accountHandle) argument
[all...]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
H A DSipPhoneAccountSettingsActivity.java44 PhoneAccountHandle accountHandle = (PhoneAccountHandle)
46 Log.i(TAG, "" + accountHandle);
48 if (accountHandle != null) {
50 String profileName = SipUtil.getSipProfileNameFromPhoneAccount(accountHandle);
H A DSipBroadcastReceiver.java73 PhoneAccountHandle accountHandle = null;
75 accountHandle = intent.getParcelableExtra(SipUtil.EXTRA_PHONE_ACCOUNT);
80 if (accountHandle != null) {
84 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle);
86 tm.addNewIncomingCall(accountHandle, extras);
H A DSipAccountRegistry.java131 for (PhoneAccountHandle accountHandle : accountHandles) {
132 String profileName = SipUtil.getSipProfileNameFromPhoneAccount(accountHandle);
135 log("verifyAndPurgeInvalidPhoneAccounts, deleting account: " + accountHandle);
136 telecomManager.unregisterPhoneAccount(accountHandle);
/packages/services/Telecomm/src/com/android/server/telecom/
H A DTelecomServiceImpl.java156 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle) {
165 accountHandle, callingUserHandle);
250 public PhoneAccount getPhoneAccount(PhoneAccountHandle accountHandle) {
261 .getPhoneAccount(accountHandle, callingUserHandle,
264 Log.e(this, e, "getPhoneAccount %s", accountHandle);
412 public void unregisterPhoneAccount(PhoneAccountHandle accountHandle) {
417 accountHandle.getComponentName().getPackageName());
418 enforceUserHandleMatchesCaller(accountHandle);
419 mPhoneAccountRegistrar.unregisterPhoneAccount(accountHandle);
427 TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle);
1388 enforceUserHandleMatchesCaller(PhoneAccountHandle accountHandle) argument
[all...]
H A DCallLogManager.java75 int features, PhoneAccountHandle accountHandle, long creationDate,
86 this.accountHandle = accountHandle;
103 public final PhoneAccountHandle accountHandle; field in class:CallLogManager.AddCallArgs
210 PhoneAccountHandle accountHandle = call.getTargetPhoneAccount();
211 if (emergencyAccountHandle.equals(accountHandle)) {
212 accountHandle = null;
221 call.getHandlePresentation(), callLogType, callFeatures, accountHandle,
250 PhoneAccountHandle accountHandle,
280 viaNumber, presentation, callType, features, accountHandle, star
73 AddCallArgs(Context context, CallerInfo callerInfo, String number, String postDialDigits, String viaNumber, int presentation, int callType, int features, PhoneAccountHandle accountHandle, long creationDate, long durationInMillis, Long dataUsage, UserHandle initiatingUser, @Nullable LogCallCompletedListener logCallCompletedListener) argument
242 logCall( CallerInfo callerInfo, String number, String postDialDigits, String viaNumber, int presentation, int callType, int features, PhoneAccountHandle accountHandle, long start, long duration, Long dataUsage, boolean isEmergency, UserHandle initiatingUser, @Nullable LogCallCompletedListener logCallCompletedListener) argument
[all...]
H A DPhoneAccountRegistrar.java171 * @param accountHandle The handle for the phone account for which to retrieve the
175 public int getSubscriptionIdForPhoneAccount(PhoneAccountHandle accountHandle) { argument
176 PhoneAccount account = getPhoneAccountUnchecked(accountHandle);
294 public void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle accountHandle, argument
299 if (accountHandle == null) {
303 PhoneAccount account = getPhoneAccount(accountHandle, userHandle);
306 accountHandle);
312 accountHandle);
319 int subId = getSubscriptionIdForPhoneAccount(accountHandle);
324 .put(userHandle, new DefaultPhoneAccountHandle(userHandle, accountHandle,
332 isUserSelectedSmsPhoneAccount(PhoneAccountHandle accountHandle) argument
445 enablePhoneAccount(PhoneAccountHandle accountHandle, boolean isEnabled) argument
650 unregisterPhoneAccount(PhoneAccountHandle accountHandle) argument
686 isVoiceMailNumber(PhoneAccountHandle accountHandle, String number) argument
[all...]
/packages/apps/Dialer/src/com/android/dialer/util/
H A DIntentUtil.java60 public CallIntentBuilder setPhoneAccountHandle(PhoneAccountHandle accountHandle) { argument
61 mPhoneAccountHandle = accountHandle;
83 * @param accountHandle {@link PhoneAccountHandle} to place the call with.
89 Uri uri, PhoneAccountHandle accountHandle, int videoState, int callIntiationType) {
97 if (accountHandle != null) {
98 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle);
88 getCallIntent( Uri uri, PhoneAccountHandle accountHandle, int videoState, int callIntiationType) argument
H A DPhoneNumberUtil.java53 Context context, PhoneAccountHandle accountHandle, CharSequence number) {
57 return TelecomUtil.isVoicemailNumber(context, accountHandle, number.toString());
70 PhoneAccountHandle accountHandle,
85 if (isVoicemailNumber(context, accountHandle, number)) {
52 isVoicemailNumber( Context context, PhoneAccountHandle accountHandle, CharSequence number) argument
68 isUnknownNumberThatCanBeLookedUp( Context context, PhoneAccountHandle accountHandle, CharSequence number, int presentation) argument
H A DTelecomUtil.java141 public static boolean isVoicemailNumber(Context context, PhoneAccountHandle accountHandle, argument
145 accountHandle, number);
151 public static String getVoicemailNumber(Context context, PhoneAccountHandle accountHandle) { argument
154 getTelephonyManager(context), accountHandle);
/packages/services/Telephony/src/com/android/phone/vvm/omtp/
H A DVvmPhoneStateListener.java43 public VvmPhoneStateListener(Context context, PhoneAccountHandle accountHandle) { argument
44 super(PhoneUtils.getSubIdForPhoneAccountHandle(accountHandle));
46 mPhoneAccount = accountHandle;
/packages/apps/ContactsCommon/src/com/android/contacts/common/
H A DCallUtil.java144 for (PhoneAccountHandle accountHandle : accountHandles) {
145 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle);
196 for (PhoneAccountHandle accountHandle : accountHandles) {
197 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle);
/packages/services/Telephony/src/com/android/phone/settings/
H A DPhoneAccountSettingsFragment.java429 Context context, PhoneAccountHandle accountHandle) {
431 context, accountHandle, TelecomManager.ACTION_CONFIGURE_PHONE_ACCOUNT);
436 context, accountHandle, LEGACY_ACTION_CONFIGURE_PHONE_ACCOUNT);
438 Log.w(LOG_TAG, "Phone account using old configuration intent: " + accountHandle);
445 Context context, PhoneAccountHandle accountHandle, String actionStr) {
446 if (accountHandle == null || accountHandle.getComponentName() == null ||
447 TextUtils.isEmpty(accountHandle.getComponentName().getPackageName())) {
453 intent.setPackage(accountHandle.getComponentName().getPackageName());
455 intent.putExtra(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, accountHandle);
428 buildPhoneAccountConfigureIntent( Context context, PhoneAccountHandle accountHandle) argument
444 buildConfigureIntent( Context context, PhoneAccountHandle accountHandle, String actionStr) argument
[all...]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
H A DTestConnectionService.java348 PhoneAccountHandle accountHandle = request.getAccountHandle();
351 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) {
397 "Invalid inputs: " + accountHandle + " " + componentName));
404 PhoneAccountHandle accountHandle = request.getAccountHandle();
406 if (accountHandle != null && componentName.equals(accountHandle.getComponentName())) {
422 "Invalid inputs: " + accountHandle + " " + componentName));
/packages/apps/Dialer/InCallUI/tests/src/com/android/incallui/
H A DTestTelecomCall.java50 PhoneAccountHandle accountHandle,
80 PhoneAccountHandle.class, /* accountHandle */
94 callerDisplayNamePresentation, accountHandle, capabilities, properties,
45 createInstance(String callId, Uri handle, int handlePresentation, String callerDisplayName, int callerDisplayNamePresentation, PhoneAccountHandle accountHandle, int capabilities, int properties, DisconnectCause disconnectCause, long connectTimeMillis, GatewayInfo gatewayInfo, int videoState, StatusHints statusHints, Bundle extras, Bundle intentExtras) argument
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
H A DTelecomAdapter.java206 void phoneAccountSelected(String callId, PhoneAccountHandle accountHandle, boolean setDefault) { argument
207 if (accountHandle == null) {
208 Log.e(this, "error phoneAccountSelected, accountHandle is null");
209 // TODO: Do we really want to send null accountHandle?
214 call.phoneAccountSelected(accountHandle, setDefault);

Completed in 6348 milliseconds

12