Home
last modified time | relevance | path

Searched refs:phoneAccount (Results 1 – 25 of 52) 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/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/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/services/Telecomm/tests/src/com/android/server/telecom/tests/
DMissedCallNotifierImplTest.java240 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testDefaultDialerIncrement() local
242 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in testDefaultDialerIncrement()
274 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); in cancelNotificationTestInternal() local
276 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in cancelNotificationTestInternal()
302 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifyMultipleMissedCalls() local
304 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in testNotifyMultipleMissedCalls()
361 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifySingleCallInPrimaryUser() local
362 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInPrimaryUser()
368 PhoneAccount phoneAccount = makePhoneAccount(SECONARY_USER, NO_CAPABILITY); in testNotifySingleCallInSecondaryUser() local
369 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInSecondaryUser()
[all …]
DTelecomServiceImplTest.java258 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT).build(); in testGetDefaultOutgoingPhoneAccount() local
259 phoneAccount.setIsEnabled(true); in testGetDefaultOutgoingPhoneAccount()
260 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGetDefaultOutgoingPhoneAccount()
284 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT).build(); in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager() local
285 phoneAccount.setIsEnabled(true); in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager()
286 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager()
319 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT).build(); in testGetDefaultOutgoingPhoneAccountFailure() local
320 phoneAccount.setIsEnabled(true); in testGetDefaultOutgoingPhoneAccountFailure()
321 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGetDefaultOutgoingPhoneAccountFailure()
488 PhoneAccount phoneAccount = makePhoneAccount(phHandle).build(); in testRegisterPhoneAccount() local
[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/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/services/Telecomm/src/com/android/server/telecom/
DCreateConnectionProcessor.java237 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount; in attemptNextPhoneAccount() local
238 mService = mRepository.getService(phoneAccount.getComponentName(), in attemptNextPhoneAccount()
239 phoneAccount.getUserHandle()); in attemptNextPhoneAccount()
368 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergencyNoSimRequired()
369 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS)) { in adjustAttemptsForEmergencyNoSimRequired()
370 PhoneAccountHandle phoneAccountHandle = phoneAccount.getAccountHandle(); in adjustAttemptsForEmergencyNoSimRequired()
416 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency()
417 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS) in adjustAttemptsForEmergency()
418 && phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in adjustAttemptsForEmergency()
419 PhoneAccountHandle phoneAccountHandle = phoneAccount.getAccountHandle(); in adjustAttemptsForEmergency()
DCallsManager.java418 PhoneAccount phoneAccount) {
419 handlePhoneAccountChanged(registrar, phoneAccount);
665 PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked( in onSuccessfulIncomingCall() local
668 phoneAccount == null || phoneAccount.getExtras() == null in onSuccessfulIncomingCall()
670 : phoneAccount.getExtras(); in onSuccessfulIncomingCall()
1283 PhoneAccount phoneAccount = mPhoneAccountRegistrar.getPhoneAccountUnchecked( in processIncomingCallIntent() local
1285 if (phoneAccount != null) { in processIncomingCallIntent()
1286 Bundle phoneAccountExtras = phoneAccount.getExtras(); in processIncomingCallIntent()
1287 call.setIsSelfManaged(phoneAccount.isSelfManaged()); in processIncomingCallIntent()
1334 phoneAccount != null && phoneAccount.hasCapabilities( in processIncomingCallIntent()
[all …]
DPhoneAccountRegistrar.java131 PhoneAccount phoneAccount) {} in onPhoneAccountChanged() argument
515 PhoneAccount phoneAccount = getPhoneAccountUnchecked(targetPhoneAccount); in getSimCallManagerFromHandle() local
516 if (phoneAccount != null in getSimCallManagerFromHandle()
517 && phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_CONNECTION_MANAGER)) { in getSimCallManagerFromHandle()
872 PhoneAccount phoneAccount = it.next(); in clearAccounts() local
873 PhoneAccountHandle handle = phoneAccount.getAccountHandle(); in clearAccounts()
876 Log.i(this, "Removing phone account " + phoneAccount.getLabel()); in clearAccounts()
877 mState.accounts.remove(phoneAccount); in clearAccounts()
1232 for (PhoneAccount phoneAccount : mState.accounts) { in dump()
1233 pw.println(phoneAccount); in dump()
[all …]
/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/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/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/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipIncomingCallReceiver.java77 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle); in takeCall() local
78 if (phoneAccount != null && phoneAccount.isEnabled()) { in takeCall()
/packages/apps/Dialer/java/com/android/dialer/preferredsim/
DPreferredAccountUtil.java76 PhoneAccount phoneAccount = in isPhoneAccountValid() local
78 if (phoneAccount == null) { in isPhoneAccountValid()
83 if (!phoneAccount.isEnabled()) { in isPhoneAccountValid()

123