Home
last modified time | relevance | path

Searched refs:phoneAccount (Results 1 – 25 of 55) sorted by relevance

123

/packages/apps/Dialer/java/com/android/voicemail/impl/settings/
DVisualVoicemailSettingsUtil.java46 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setEnabled() argument
47 VvmLog.i("VisualVoicemailSettingsUtil.setEnable", phoneAccount + " enabled:" + isEnabled); in setEnabled()
48 new VisualVoicemailPreferences(context, phoneAccount) in setEnabled()
52 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(context, phoneAccount); in setEnabled()
56 VvmAccountManager.removeAccount(context, phoneAccount); in setEnabled()
78 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setArchiveEnabled() argument
81 new VisualVoicemailPreferences(context, phoneAccount) in setArchiveEnabled()
88 Context context, PhoneAccountHandle phoneAccount, boolean isEnabled) { in setVoicemailTranscriptionEnabled() argument
92 .isVoicemailTranscriptionAvailable(context, phoneAccount)); in setVoicemailTranscriptionEnabled()
93 new VisualVoicemailPreferences(context, phoneAccount) in setVoicemailTranscriptionEnabled()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/
DVvmPhoneStateListener.java34 private PhoneAccountHandle phoneAccount; field in VvmPhoneStateListener
43 phoneAccount = accountHandle; in VvmPhoneStateListener()
48 if (phoneAccount == null) { in onServiceStateChanged()
52 + phoneAccount in onServiceStateChanged()
67 OmtpVvmCarrierConfigHelper helper = new OmtpVvmCarrierConfigHelper(context, phoneAccount); in onServiceStateChanged()
72 if (voicemailStatusQueryHelper.isVoicemailSourceConfigured(phoneAccount)) { in onServiceStateChanged()
73 if (!voicemailStatusQueryHelper.isNotificationsChannelActive(phoneAccount)) { in onServiceStateChanged()
74 VvmLog.v(TAG, "Notifications channel is active for " + phoneAccount); in onServiceStateChanged()
76 VoicemailStatus.edit(context, phoneAccount), OmtpEvents.NOTIFICATION_IN_SERVICE); in onServiceStateChanged()
80 if (VvmAccountManager.isAccountActivated(context, phoneAccount)) { in onServiceStateChanged()
[all …]
DVoicemail.java30 private final PhoneAccountHandle phoneAccount; field in Voicemail
54 phoneAccount = phoneAccountHandle; in Voicemail()
117 public Builder setPhoneAccount(PhoneAccountHandle phoneAccount) { in setPhoneAccount() argument
118 builderPhoneAccount = phoneAccount; in setPhoneAccount()
200 return phoneAccount; in getPhoneAccount()
270 if (phoneAccount == null) { in writeToParcel()
274 phoneAccount.writeToParcel(dest, flags); in writeToParcel()
316 phoneAccount = PhoneAccountHandle.CREATOR.createFromParcel(in); in Voicemail()
318 phoneAccount = null; in Voicemail()
DVvmPackageInstallHandler.java46 for (PhoneAccountHandle phoneAccount : in handlePackageInstalled()
49 new OmtpVvmCarrierConfigHelper(context, phoneAccount); in handlePackageInstalled()
61 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccount, false); in handlePackageInstalled()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneAccountCompat.java39 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/
DMissedCallNotifierImplTest.java212 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); in cancelNotificationTestInternal() local
214 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in cancelNotificationTestInternal()
240 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifyMultipleMissedCalls() local
242 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in testNotifyMultipleMissedCalls()
298 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifySingleCallInPrimaryUser() local
299 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInPrimaryUser()
305 PhoneAccount phoneAccount = makePhoneAccount(SECONARY_USER, NO_CAPABILITY); in testNotifySingleCallInSecondaryUser() local
306 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInSecondaryUser()
312 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, in testNotifySingleCallInSecondaryUserWithMultiUserCapability() local
314 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInSecondaryUserWithMultiUserCapability()
[all …]
DTelecomServiceImplTest.java427 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccount() local
431 registerPhoneAccountTestHelper(phoneAccount, true); in testRegisterPhoneAccount()
442 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccountWithoutModifyPermission() local
449 registerPhoneAccountTestHelper(phoneAccount, true); in testRegisterPhoneAccountWithoutModifyPermission()
460 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccountWithoutModifyPermissionFailure() local
467 registerPhoneAccountTestHelper(phoneAccount, false); in testRegisterPhoneAccountWithoutModifyPermissionFailure()
477 PhoneAccount phoneAccount = makePhoneAccount(phHandle) in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure() local
487 registerPhoneAccountTestHelper(phoneAccount, false); in testRegisterPhoneAccountWithoutSimSubscriptionPermissionFailure()
497 PhoneAccount phoneAccount = makeMultiUserPhoneAccount(phHandle).build(); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure() local
506 registerPhoneAccountTestHelper(phoneAccount, false); in testRegisterPhoneAccountWithoutMultiUserPermissionFailure()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DOmtpVvmSyncService.java69 PhoneAccountHandle phoneAccount, in sync() argument
72 Assert.isTrue(phoneAccount != null); in sync()
73 VvmLog.v(TAG, "Sync requested for account: " + phoneAccount); in sync()
74 setupAndSendRequest(task, phoneAccount, voicemail, status); in sync()
79 PhoneAccountHandle phoneAccount, in setupAndSendRequest() argument
82 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccount)) { in setupAndSendRequest()
86 if (!VvmAccountManager.isAccountActivated(context, phoneAccount)) { in setupAndSendRequest()
87 ActivationTask.start(context, phoneAccount, null); in setupAndSendRequest()
91 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(context, phoneAccount); in setupAndSendRequest()
97 VoicemailStatus.edit(context, phoneAccount), OmtpEvents.DATA_IMAP_OPERATION_STARTED); in setupAndSendRequest()
[all …]
DVoicemailStatusQueryHelper.java60 public boolean isVoicemailSourceConfigured(PhoneAccountHandle phoneAccount) { in isVoicemailSourceConfigured() argument
61 return isFieldEqualTo(phoneAccount, CONFIGURATION_STATE, Status.CONFIGURATION_STATE_OK); in isVoicemailSourceConfigured()
70 public boolean isNotificationsChannelActive(PhoneAccountHandle phoneAccount) { in isNotificationsChannelActive() argument
72 phoneAccount, NOTIFICATION_CHANNEL_STATE, Status.NOTIFICATION_CHANNEL_STATE_OK); in isNotificationsChannelActive()
84 private boolean isFieldEqualTo(PhoneAccountHandle phoneAccount, int columnIndex, int value) { in isFieldEqualTo() argument
86 if (phoneAccount != null) { in isFieldEqualTo()
87 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString(); in isFieldEqualTo()
88 String phoneAccountId = phoneAccount.getId(); in isFieldEqualTo()
DVvmNetworkRequestCallback.java52 protected PhoneAccountHandle phoneAccount; field in VvmNetworkRequestCallback
62 Context context, PhoneAccountHandle phoneAccount, VoicemailStatus.Editor status) { in VvmNetworkRequestCallback() argument
64 this.phoneAccount = phoneAccount; in VvmNetworkRequestCallback()
66 carrierConfigHelper = new OmtpVvmCarrierConfigHelper(context, this.phoneAccount); in VvmNetworkRequestCallback()
72 PhoneAccountHandle phoneAccount, in VvmNetworkRequestCallback() argument
75 this.phoneAccount = phoneAccount; in VvmNetworkRequestCallback()
95 context.getSystemService(TelephonyManager.class).createForPhoneAccountHandle(phoneAccount); in createNetworkRequest()
DVvmAccountManager.java73 public static void removeAccount(Context context, PhoneAccountHandle phoneAccount) { in removeAccount() argument
74 VoicemailStatus.disable(context, phoneAccount); in removeAccount()
75 setAccountActivated(context, phoneAccount, false); in removeAccount()
76 VisualVoicemailPreferences preferences = new VisualVoicemailPreferences(context, phoneAccount); in removeAccount()
85 listener.onActivationStateChanged(phoneAccount, false); in removeAccount()
90 public static boolean isAccountActivated(Context context, PhoneAccountHandle phoneAccount) { in isAccountActivated() argument
91 Assert.isNotNull(phoneAccount); in isAccountActivated()
93 getPreferenceForActivationState(context, phoneAccount); in isAccountActivated()
94 migrateActivationState(context, preferences, phoneAccount); in isAccountActivated()
DOmtpVvmSyncReceiver.java47 for (PhoneAccountHandle phoneAccount : accounts) { in onReceive()
48 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccount)) { in onReceive()
51 if (!VvmAccountManager.isAccountActivated(context, phoneAccount)) { in onReceive()
52 VvmLog.i(TAG, "Unactivated account " + phoneAccount + " found, activating"); in onReceive()
53 ActivationTask.start(context, phoneAccount, null); in onReceive()
55 SyncTask.start(context, phoneAccount); in onReceive()
DVoicemailProviderChangeReceiver.java36 for (PhoneAccountHandle phoneAccount : VvmAccountManager.getActiveAccounts(context)) { in onReceive()
37 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccount)) { in onReceive()
40 UploadTask.start(context, phoneAccount); in onReceive()
/packages/apps/Dialer/java/com/android/voicemail/impl/fetch/
DFetchVoicemailReceiver.java72 private PhoneAccountHandle phoneAccount; field in FetchVoicemailReceiver
119 phoneAccount = in onReceive()
126 .createForPhoneAccountHandle(phoneAccount); in onReceive()
133 if (!VvmAccountManager.isAccountActivated(context, phoneAccount)) { in onReceive()
134 phoneAccount = getAccountFromMarshmallowAccount(context, phoneAccount); in onReceive()
135 if (phoneAccount == null) { in onReceive()
142 networkCallback = new fetchVoicemailNetworkRequestCallback(context, phoneAccount); in onReceive()
188 public fetchVoicemailNetworkRequestCallback(Context context, PhoneAccountHandle phoneAccount) { in fetchVoicemailNetworkRequestCallback() argument
189 super(context, phoneAccount, VoicemailStatus.edit(context, phoneAccount)); in fetchVoicemailNetworkRequestCallback()
209 new ImapHelper(context, phoneAccount, network, status)) { in fetchVoicemail()
[all …]
/packages/apps/Dialer/java/com/android/contacts/common/compat/
DPhoneAccountCompat.java37 @Nullable PhoneAccount phoneAccount, @Nullable Context context) { in createIconDrawable()
38 if (phoneAccount == null || context == null) { in createIconDrawable()
41 return createIconDrawableMarshmallow(phoneAccount, context); in createIconDrawable()
46 PhoneAccount phoneAccount, Context context) { in createIconDrawableMarshmallow() argument
47 Icon accountIcon = phoneAccount.getIcon(); in createIconDrawableMarshmallow()
/packages/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java235 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount; in attemptNextPhoneAccount() local
236 mService = mRepository.getService(phoneAccount.getComponentName(), in attemptNextPhoneAccount()
237 phoneAccount.getUserHandle()); in attemptNextPhoneAccount()
352 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergencyNoSimRequired()
353 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS)) { in adjustAttemptsForEmergencyNoSimRequired()
354 PhoneAccountHandle phoneAccountHandle = phoneAccount.getAccountHandle(); in adjustAttemptsForEmergencyNoSimRequired()
392 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency()
393 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS) in adjustAttemptsForEmergency()
394 && phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in adjustAttemptsForEmergency()
395 PhoneAccountHandle phoneAccountHandle = phoneAccount.getAccountHandle(); in adjustAttemptsForEmergency()
DCallsManager.java366 PhoneAccount phoneAccount) {
367 handlePhoneAccountChanged(registrar, phoneAccount);
594 PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked( in onSuccessfulIncomingCall() local
597 phoneAccount == null || phoneAccount.getExtras() == null in onSuccessfulIncomingCall()
599 : phoneAccount.getExtras(); in onSuccessfulIncomingCall()
1071 PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked( in processIncomingCallIntent() local
1073 if (phoneAccount != null) { in processIncomingCallIntent()
1074 call.setIsSelfManaged(phoneAccount.isSelfManaged()); in processIncomingCallIntent()
1114 phoneAccount != null && phoneAccount.hasCapabilities( in processIncomingCallIntent()
2791 PhoneAccountHandle phoneAccount,
[all …]
DCall.java1210 PhoneAccount phoneAccount = mCallsManager.getPhoneAccountRegistrar() in getTargetPhoneAccountLabel() local
1213 if (phoneAccount == null) { in getTargetPhoneAccountLabel()
1217 return phoneAccount.getLabel(); in getTargetPhoneAccountLabel()
1233 PhoneAccount phoneAccount = mCallsManager.getPhoneAccountRegistrar() in isLoggedSelfManaged() local
1236 if (phoneAccount == null) { in isLoggedSelfManaged()
1251 return phoneAccount.getExtras() != null && phoneAccount.getExtras().getBoolean( in isLoggedSelfManaged()
1372 PhoneAccount phoneAccount = in configureCallAttributes() local
1374 if (phoneAccount != null) { in configureCallAttributes()
1376 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_MULTI_USER)) { in configureCallAttributes()
1385 isCallRecordingToneSupported = (phoneAccount.hasCapabilities( in configureCallAttributes()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DCallNotificationReceiver.java85 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in sendIncomingCallIntent() local
97 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras); in sendIncomingCallIntent()
101 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in sendIncomingRttCallIntent() local
114 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras); in sendIncomingRttCallIntent()
119 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in addNewUnknownCall() local
132 TelecomManager.from(context).addNewUnknownCall(phoneAccount, extras); in addNewUnknownCall()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java73 private final PhoneAccountHandle phoneAccount; field in ImapHelper
90 Context context, PhoneAccountHandle phoneAccount, Network network, Editor status) in ImapHelper() argument
94 new OmtpVvmCarrierConfigHelper(context, phoneAccount), in ImapHelper()
95 phoneAccount, in ImapHelper()
103 PhoneAccountHandle phoneAccount, in ImapHelper() argument
108 this.phoneAccount = phoneAccount; in ImapHelper()
112 prefs = new VisualVoicemailPreferences(context, phoneAccount); in ImapHelper()
257 .setPhoneAccount(phoneAccount) in getVoicemailFromMessageStructure()
507 VoicemailStatus.edit(context, phoneAccount).setQuota(quota.occupied, quota.total).apply(); in setQuota()
/packages/apps/Dialer/java/com/android/dialer/notification/
DVoicemailChannelUtils.java181 PhoneAccount phoneAccount = in createVoicemailChannelForAccount() local
183 if (phoneAccount == null) { in createVoicemailChannelForAccount()
187 newChannel(context, getChannelIdForAccount(handle), phoneAccount.getLabel()); in createVoicemailChannelForAccount()
205 PhoneAccount phoneAccount = in isChannelAllowedForAccount() local
207 if (phoneAccount == null) { in isChannelAllowedForAccount()
210 if (!phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in isChannelAllowedForAccount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sim/
DSimDialogActivity.java133 private void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle phoneAccount) { in setUserSelectedOutgoingPhoneAccount() argument
135 telecomManager.setUserSelectedOutgoingPhoneAccount(phoneAccount); in setUserSelectedOutgoingPhoneAccount()
146 final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle); in subscriptionIdToPhoneAccountHandle() local
147 if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) { in subscriptionIdToPhoneAccountHandle()
216 final PhoneAccount phoneAccount = in createDialog() local
218 list.add((String)phoneAccount.getLabel()); in createDialog()
219 int subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount); in createDialog()
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/
DVoicemailDatabaseUtil.java71 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount(); in getContentValues() local
72 if (phoneAccount != null) { in getContentValues()
75 phoneAccount.getComponentName().flattenToString()); in getContentValues()
76 contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId()); in getContentValues()
/packages/apps/Dialer/java/com/android/dialer/app/settings/
DPhoneAccountSelectionFragment.java79 Context context, PhoneAccountHandle phoneAccountHandle, PhoneAccount phoneAccount) { in AccountPreference() argument
82 setTitle(phoneAccount.getLabel()); in AccountPreference()
83 setSummary(phoneAccount.getShortDescription()); in AccountPreference()
84 Icon icon = phoneAccount.getIcon(); in AccountPreference()
/packages/apps/Settings/src/com/android/settings/sim/
DSimDialogActivity.java158 final PhoneAccountHandle phoneAccount = subscriptionIdToPhoneAccountHandle(subId); in setDefaultCallsSubId() local
160 telecomManager.setUserSelectedOutgoingPhoneAccount(phoneAccount); in setDefaultCallsSubId()
179 final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle); in subscriptionIdToPhoneAccountHandle() local
180 if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) { in subscriptionIdToPhoneAccountHandle()

123