/packages/services/Telephony/src/com/android/phone/settings/ |
D | VisualVoicemailSettingsUtil.java | 59 public static void setVisualVoicemailEnabled(Context context, PhoneAccountHandle phoneAccount, in setVisualVoicemailEnabled() argument 64 getVisualVoicemailSharedPrefsKey(IS_ENABLED_KEY, phoneAccount), isEnabled); in setVisualVoicemailEnabled() 66 getVisualVoicemailSharedPrefsKey(IS_USER_SET, phoneAccount), in setVisualVoicemailEnabled() 72 PhoneAccountHandle phoneAccount) { in isVisualVoicemailEnabled() argument 73 if (phoneAccount == null) { in isVisualVoicemailEnabled() 77 return prefs.getBoolean(getVisualVoicemailSharedPrefsKey(IS_ENABLED_KEY, phoneAccount), in isVisualVoicemailEnabled() 92 PhoneAccountHandle phoneAccount) { in isVisualVoicemailUserSet() argument 93 if (phoneAccount == null) { in isVisualVoicemailUserSet() 98 getVisualVoicemailSharedPrefsKey(IS_USER_SET, phoneAccount), in isVisualVoicemailUserSet() 103 PhoneAccountHandle phoneAccount, StatusMessage message) { in setVisualVoicemailCredentialsFromStatusMessage() argument [all …]
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/ |
D | OmtpVvmSourceManager.java | 79 public void addSource(PhoneAccountHandle phoneAccount) { in addSource() argument 80 mActiveVvmSources.add(phoneAccount); in addSource() 89 for (PhoneAccountHandle phoneAccount : mActiveVvmSources) { in removeInactiveSources() 90 if (!PhoneUtils.isPhoneAccountActive(mSubscriptionManager, phoneAccount)) { in removeInactiveSources() 91 removeSource(phoneAccount); in removeInactiveSources() 96 for (PhoneAccountHandle phoneAccount : mPhoneStateListenerMap.keySet()) { in removeInactiveSources() 97 if (!PhoneUtils.isPhoneAccountActive(mSubscriptionManager, phoneAccount)) { in removeInactiveSources() 98 removePhoneStateListener(phoneAccount); in removeInactiveSources() 107 public void removeSource(PhoneAccountHandle phoneAccount) { in removeSource() argument 108 VoicemailContract.Status.setStatus(mContext, phoneAccount, in removeSource() [all …]
|
D | OmtpVvmSyncService.java | 98 PhoneAccountHandle phoneAccount, boolean firstAttempt) { in getSyncIntent() argument 99 return getSyncIntent(context, action, phoneAccount, null, firstAttempt); in getSyncIntent() 103 PhoneAccountHandle phoneAccount, Voicemail voicemail, boolean firstAttempt) { in getSyncIntent() argument 105 if (phoneAccount != null) { in getSyncIntent() 107 phoneAccount); in getSyncIntent() 120 if (phoneAccount != null) { in getSyncIntent() 121 serviceIntent.putExtra(EXTRA_PHONE_ACCOUNT, phoneAccount); in getSyncIntent() 137 public static void cancelAllRetries(Context context, PhoneAccountHandle phoneAccount) { in cancelAllRetries() argument 138 cancelRetriesForIntent(context, getSyncIntent(context, SYNC_FULL_SYNC, phoneAccount, in cancelAllRetries() 176 PhoneAccountHandle phoneAccount = intent.getParcelableExtra(EXTRA_PHONE_ACCOUNT); in onHandleIntent() local [all …]
|
D | VoicemailStatusQueryHelper.java | 61 public boolean isVoicemailSourceConfigured(PhoneAccountHandle phoneAccount) { in isVoicemailSourceConfigured() argument 62 return isFieldEqualTo(phoneAccount, CONFIGURATION_STATE, Status.CONFIGURATION_STATE_OK); in isVoicemailSourceConfigured() 71 public boolean isNotificationsChannelActive(PhoneAccountHandle phoneAccount) { in isNotificationsChannelActive() argument 72 return isFieldEqualTo(phoneAccount, NOTIFICATION_CHANNEL_STATE, in isNotificationsChannelActive() 85 private boolean isFieldEqualTo(PhoneAccountHandle phoneAccount, int columnIndex, int value) { in isFieldEqualTo() argument 87 if (phoneAccount != null) { in isFieldEqualTo() 88 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString(); in isFieldEqualTo() 89 String phoneAccountId = phoneAccount.getId(); in isFieldEqualTo()
|
D | VoicemailsQueryHelper.java | 199 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount(); in isVoicemailUnique() local 200 if (phoneAccount != null) { in isVoicemailUnique() 201 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString(); in isVoicemailUnique() 202 String phoneAccountId = phoneAccount.getId(); in isVoicemailUnique()
|
D | VvmNetworkRequestCallback.java | 58 public VvmNetworkRequestCallback(Context context, PhoneAccountHandle phoneAccount) { in VvmNetworkRequestCallback() argument 60 mPhoneAccount = phoneAccount; in VvmNetworkRequestCallback() 61 mSubId = PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccount); in VvmNetworkRequestCallback()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
D | PhoneAccountCompat.java | 39 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) { in getIcon() argument 40 if (phoneAccount == null) { in getIcon() 45 return phoneAccount.getIcon(); in getIcon() 61 public static Drawable createIconDrawable(@Nullable PhoneAccount phoneAccount, in createIconDrawable() argument 63 if (phoneAccount == null || context == null) { in createIconDrawable() 68 return createIconDrawableMarshmallow(phoneAccount, context); in createIconDrawable() 72 return createIconDrawableLollipopMr1(phoneAccount, context); in createIconDrawable() 78 private static Drawable createIconDrawableMarshmallow(PhoneAccount phoneAccount, in createIconDrawableMarshmallow() argument 80 Icon accountIcon = getIcon(phoneAccount); in createIconDrawableMarshmallow() 88 private static Drawable createIconDrawableLollipopMr1(PhoneAccount phoneAccount, in createIconDrawableLollipopMr1() argument [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | MissedCallNotifierImplTest.java | 134 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); in cancelNotificationTestInternal() local 136 phoneAccount.getAccountHandle()); in cancelNotificationTestInternal() 161 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifyMultipleMissedCalls() local 163 phoneAccount.getAccountHandle()); in testNotifyMultipleMissedCalls() 218 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifySingleCallInPrimaryUser() local 219 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInPrimaryUser() 224 PhoneAccount phoneAccount = makePhoneAccount(SECONARY_USER, NO_CAPABILITY); in testNotifySingleCallInSecondaryUser() local 225 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInSecondaryUser() 230 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, in testNotifySingleCallInSecondaryUserWithMultiUserCapability() local 232 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInSecondaryUserWithMultiUserCapability() [all …]
|
D | TelecomServiceImplTest.java | 394 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccount() local 398 registerPhoneAccountTestHelper(phoneAccount, true); in testRegisterPhoneAccount() 408 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccountWithoutModifyPermission() local 415 registerPhoneAccountTestHelper(phoneAccount, true); in testRegisterPhoneAccountWithoutModifyPermission() 425 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccountWithoutModifyPermissionFailure() local 432 registerPhoneAccountTestHelper(phoneAccount, false); in testRegisterPhoneAccountWithoutModifyPermissionFailure() 441 PhoneAccount phoneAccount = makePhoneAccount(phHandle) in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure() local 450 registerPhoneAccountTestHelper(phoneAccount, false); in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure() 459 PhoneAccount phoneAccount = makeMultiUserPhoneAccount(phHandle).build(); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure() local 468 registerPhoneAccountTestHelper(phoneAccount, false); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure() [all …]
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
D | SimChangeReceiver.java | 91 PhoneAccountHandle phoneAccount = PhoneUtils.makePstnPhoneAccountHandle( in processSubId() local 95 context, phoneAccount); in processSubId() 98 phoneAccount); in processSubId() 107 VisualVoicemailSettingsUtil.setVisualVoicemailEnabled(context, phoneAccount, in processSubId() 113 + " activation for " + phoneAccount.getId()); in processSubId() 118 phoneAccount); in processSubId() 123 OmtpVvmSourceManager.getInstance(context).removeSource(phoneAccount); in processSubId()
|
D | VvmPackageInstallReceiver.java | 47 for (PhoneAccountHandle phoneAccount : phoneAccounts) { in onReceive() 48 if (VisualVoicemailSettingsUtil.isVisualVoicemailUserSet(context, phoneAccount)) { in onReceive() 54 context, PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccount)); in onReceive() 57 context, phoneAccount, false, false); in onReceive() 58 OmtpVvmSourceManager.getInstance(context).removeSource(phoneAccount); in onReceive()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 196 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount; in attemptNextPhoneAccount() local 197 mService = mRepository.getService(phoneAccount.getComponentName(), in attemptNextPhoneAccount() 198 phoneAccount.getUserHandle()); in attemptNextPhoneAccount() 311 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency() 312 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS) && in adjustAttemptsForEmergency() 313 phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in adjustAttemptsForEmergency() 315 phoneAccount.getAccountHandle()); in adjustAttemptsForEmergency() 318 phoneAccount.getAccountHandle(), in adjustAttemptsForEmergency() 319 phoneAccount.getAccountHandle())); in adjustAttemptsForEmergency()
|
D | PhoneAccountRegistrar.java | 623 PhoneAccount phoneAccount = it.next(); in clearAccounts() local 624 PhoneAccountHandle handle = phoneAccount.getAccountHandle(); in clearAccounts() 627 Log.i(this, "Removing phone account " + phoneAccount.getLabel()); in clearAccounts() 628 mState.accounts.remove(phoneAccount); in clearAccounts() 929 for (PhoneAccount phoneAccount : mState.accounts) { in dump() 930 pw.println(phoneAccount); in dump() 1004 for (PhoneAccount phoneAccount : mState.accounts) { in read() 1005 UserHandle userHandle = phoneAccount.getAccountHandle().getUserHandle(); in read() 1007 Log.w(this, "Missing UserHandle for %s", phoneAccount); in read() 1008 badAccounts.add(phoneAccount); in read() [all …]
|
D | CallLogManager.java | 362 PhoneAccount phoneAccount = mPhoneAccountRegistrar in addCall() local 364 if (phoneAccount != null && in addCall() 365 phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_MULTI_USER)) { in addCall()
|
D | Call.java | 889 PhoneAccount phoneAccount = in configureIsWorkCall() local 891 if (phoneAccount != null) { in configureIsWorkCall() 893 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_MULTI_USER)) { in configureIsWorkCall() 911 PhoneAccount phoneAccount = in checkIfVideoCapable() local 913 mIsVideoCallingSupported = phoneAccount != null && phoneAccount.hasCapabilities( in checkIfVideoCapable()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimDialogActivity.java | 130 private void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle phoneAccount) { in setUserSelectedOutgoingPhoneAccount() argument 132 telecomManager.setUserSelectedOutgoingPhoneAccount(phoneAccount); in setUserSelectedOutgoingPhoneAccount() 143 final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle); in subscriptionIdToPhoneAccountHandle() local 144 if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) { in subscriptionIdToPhoneAccountHandle() 213 final PhoneAccount phoneAccount = in createDialog() local 215 list.add((String)phoneAccount.getLabel()); in createDialog() 216 int subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount); in createDialog()
|
D | SimSettings.java | 197 final PhoneAccountHandle phoneAccount = in updateCallValues() local 203 simPref.setSummary(phoneAccount == null in updateCallValues() 205 : (String)telecomManager.getPhoneAccount(phoneAccount).getLabel()); in updateCallValues()
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | CallNotificationReceiver.java | 81 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in sendIncomingCallIntent() local 93 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras); in sendIncomingCallIntent() 98 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in addNewUnknownCall() local 111 TelecomManager.from(context).addNewUnknownCall(phoneAccount, extras); in addNewUnknownCall()
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipBroadcastReceiver.java | 84 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle); in takeCall() local 85 if(phoneAccount != null && phoneAccount.isEnabled()) { in takeCall()
|
D | SipAccountRegistry.java | 244 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile); in startSipProfiles() local 245 telecomManager.registerPhoneAccount(phoneAccount); in startSipProfiles() 247 telecomManager.enablePhoneAccount(phoneAccount.getAccountHandle(), true); in startSipProfiles()
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/ |
D | ImapHelper.java | 83 public ImapHelper(Context context, PhoneAccountHandle phoneAccount, Network network) { in ImapHelper() argument 85 mPhoneAccount = phoneAccount; in ImapHelper() 91 OmtpConstants.IMAP_USER_NAME, phoneAccount); in ImapHelper() 93 OmtpConstants.IMAP_PASSWORD, phoneAccount); in ImapHelper() 95 OmtpConstants.SERVER_ADDRESS, phoneAccount); in ImapHelper() 98 OmtpConstants.IMAP_PORT, phoneAccount)); in ImapHelper() 102 PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccount)); in ImapHelper()
|
/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelephonyConference.java | 35 public TelephonyConference(PhoneAccountHandle phoneAccount) { in TelephonyConference() argument 36 super(phoneAccount); in TelephonyConference()
|
D | CdmaConference.java | 40 public CdmaConference(PhoneAccountHandle phoneAccount) { in CdmaConference() argument 41 super(phoneAccount); in CdmaConference()
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/fetch/ |
D | FetchVoicemailReceiver.java | 132 PhoneAccountHandle phoneAccount) { in fetchVoicemailNetworkRequestCallback() argument 133 super(context, phoneAccount); in fetchVoicemailNetworkRequestCallback()
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
D | Call.java | 485 PhoneAccount phoneAccount = in updateFromTelecomCall() local 487 if (phoneAccount != null) { in updateFromTelecomCall() 488 mIsCallSubjectSupported = phoneAccount.hasCapabilities( in updateFromTelecomCall()
|