/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
D | VisualVoicemailSettingsUtil.java | 46 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/ |
D | VvmPhoneStateListener.java | 34 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 …]
|
D | Voicemail.java | 30 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()
|
D | VvmPackageInstallHandler.java | 46 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/ |
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/apps/Dialer/java/com/android/voicemail/impl/fetch/ |
D | FetchVoicemailReceiver.java | 72 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() 212 new ImapHelper(context, phoneAccount, network, status)) { in fetchVoicemail() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VoicemailStatusQueryHelper.java | 60 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()
|
D | OmtpVvmSyncService.java | 69 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 …]
|
D | VvmAccountManager.java | 73 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()
|
D | VvmNetworkRequestCallback.java | 55 protected PhoneAccountHandle phoneAccount; field in VvmNetworkRequestCallback 65 Context context, PhoneAccountHandle phoneAccount, VoicemailStatus.Editor status) { in VvmNetworkRequestCallback() argument 67 this.phoneAccount = phoneAccount; in VvmNetworkRequestCallback() 69 carrierConfigHelper = new OmtpVvmCarrierConfigHelper(context, this.phoneAccount); in VvmNetworkRequestCallback() 75 PhoneAccountHandle phoneAccount, in VvmNetworkRequestCallback() argument 78 this.phoneAccount = phoneAccount; in VvmNetworkRequestCallback() 98 context.getSystemService(TelephonyManager.class).createForPhoneAccountHandle(phoneAccount); in createNetworkRequest()
|
D | OmtpVvmSyncReceiver.java | 47 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()
|
D | VoicemailProviderChangeReceiver.java | 36 for (PhoneAccountHandle phoneAccount : VvmAccountManager.getActiveAccounts(context)) { in onReceive() 37 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccount)) { in onReceive() 40 UploadTask.start(context, phoneAccount); in onReceive()
|
D | VoicemailsQueryHelper.java | 205 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount(); in isVoicemailUnique() local 206 if (phoneAccount != null) { in isVoicemailUnique() 207 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString(); in isVoicemailUnique() 208 String phoneAccountId = phoneAccount.getId(); in isVoicemailUnique()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | MissedCallNotifierImplTest.java | 239 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testDefaultDialerIncrement() local 241 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in testDefaultDialerIncrement() 256 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testCallLogUriSentToNotifier() local 262 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in testCallLogUriSentToNotifier() 298 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); in cancelNotificationTestInternal() local 300 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in cancelNotificationTestInternal() 326 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifyMultipleMissedCalls() local 328 CALL_TIMESTAMP, phoneAccount.getAccountHandle()); in testNotifyMultipleMissedCalls() 385 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testNotifySingleCallInPrimaryUser() local 386 notifySingleCallTestInternal(phoneAccount, PRIMARY_USER); in testNotifySingleCallInPrimaryUser() [all …]
|
D | TelecomServiceImplTest.java | 298 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT).build(); in testGetDefaultOutgoingPhoneAccount() local 299 phoneAccount.setIsEnabled(true); in testGetDefaultOutgoingPhoneAccount() 300 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGetDefaultOutgoingPhoneAccount() 320 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT) in testGroupIdIsClearedWhenPermissionIsMissing() local 324 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGroupIdIsClearedWhenPermissionIsMissing() 343 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT) in testGroupIdIsNotCleared() local 347 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGroupIdIsNotCleared() 369 PhoneAccount phoneAccount = makePhoneAccount(TEL_PA_HANDLE_CURRENT).build(); in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager() local 370 phoneAccount.setIsEnabled(true); in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager() 371 doReturn(phoneAccount).when(mFakePhoneAccountRegistrar).getPhoneAccount( in testGetDefaultOutgoingPhoneAccountSucceedsIfCallerIsSimCallManager() [all …]
|
/packages/apps/Dialer/java/com/android/contacts/common/compat/ |
D | PhoneAccountCompat.java | 37 @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/ |
D | CallNotificationReceiver.java | 86 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in sendIncomingCallIntent() local 98 telecomManager.addNewIncomingCall(phoneAccount, extras); in sendIncomingCallIntent() 103 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in sendIncomingRttCallIntent() local 116 telecomManager.addNewIncomingCall(phoneAccount, extras); in sendIncomingRttCallIntent() 122 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( in addNewUnknownCall() local 135 telecomManager.addNewUnknownCall(phoneAccount, extras); in addNewUnknownCall()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/utils/ |
D | VoicemailDatabaseUtil.java | 71 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/ |
D | PhoneAccountSelectionFragment.java | 79 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/Dialer/java/com/android/dialer/notification/ |
D | VoicemailChannelUtils.java | 181 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/Telecomm/src/com/android/server/telecom/ |
D | CreateConnectionProcessor.java | 260 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount; in attemptNextPhoneAccount() local 261 mService = mRepository.getService(phoneAccount.getComponentName(), in attemptNextPhoneAccount() 262 phoneAccount.getUserHandle()); in attemptNextPhoneAccount() 409 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergencyNoSimRequired() 410 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS)) { in adjustAttemptsForEmergencyNoSimRequired() 411 PhoneAccountHandle phoneAccountHandle = phoneAccount.getAccountHandle(); in adjustAttemptsForEmergencyNoSimRequired() 479 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency() 480 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS) in adjustAttemptsForEmergency() 481 && phoneAccount.hasCapabilities( in adjustAttemptsForEmergency() 483 PhoneAccountHandle phoneAccountHandle = phoneAccount.getAccountHandle(); in adjustAttemptsForEmergency()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 73 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/preferredsim/ |
D | PreferredAccountUtil.java | 76 PhoneAccount phoneAccount = in isPhoneAccountValid() local 78 if (phoneAccount == null) { in isPhoneAccountValid() 83 if (!phoneAccount.isEnabled()) { in isPhoneAccountValid()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | RTTSettingPreferenceController.java | 130 PhoneAccount phoneAccount = in isRttSupportedByTelecom() local 132 if (phoneAccount != null && phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_RTT)) { in isRttSupportedByTelecom()
|
/packages/apps/Dialer/java/com/android/dialer/app/calllog/ |
D | LegacyVoicemailNotifier.java | 148 PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle); in getNotificationText() local 149 if (phoneAccount != null) { in getNotificationText() 150 return phoneAccount.getShortDescription().toString(); in getNotificationText()
|