/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VvmSimStateTracker.java | 76 public ServiceStateListener(Context context, PhoneAccountHandle phoneAccountHandle) { in ServiceStateListener() argument 78 mPhoneAccountHandle = phoneAccountHandle; in ServiceStateListener() 142 PhoneAccountHandle phoneAccountHandle = in onReceive() local 145 if ("null".equals(phoneAccountHandle.getId())) { in onReceive() 151 onCarrierConfigChanged(context, phoneAccountHandle); in onReceive() 156 for (PhoneAccountHandle phoneAccountHandle : sPreBootHandles) { in onBootCompleted() 157 TelephonyManager telephonyManager = getTelephonyManager(context, phoneAccountHandle); in onBootCompleted() 162 sListeners.put(phoneAccountHandle, null); in onBootCompleted() 163 sendConnected(context, phoneAccountHandle); in onBootCompleted() 165 listenToAccount(context, phoneAccountHandle); in onBootCompleted() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/ |
D | ActivationTask.java | 89 Context context, PhoneAccountHandle phoneAccountHandle, @Nullable Bundle messageData) { in start() argument 95 DeviceProvisionedJobService.activateAfterProvisioned(context, phoneAccountHandle); in start() 99 Intent intent = BaseTask.createIntent(context, ActivationTask.class, phoneAccountHandle); in start() 127 PhoneAccountHandle phoneAccountHandle = getPhoneAccountHandle(); in onExecuteInBackgroundThread() local 128 if (phoneAccountHandle == null) { in onExecuteInBackgroundThread() 134 PreOMigrationHandler.migrate(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() local 136 if (!VisualVoicemailSettingsUtil.isEnabled(getContext(), phoneAccountHandle)) { in onExecuteInBackgroundThread() 142 new OmtpVvmCarrierConfigHelper(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() 144 VvmLog.i(TAG, "VVM not supported on phoneAccountHandle " + phoneAccountHandle); in onExecuteInBackgroundThread() 145 VvmAccountManager.removeAccount(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() local [all …]
|
D | VoicemailClientImpl.java | 76 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled() argument 77 return VisualVoicemailSettingsUtil.isEnabled(context, phoneAccountHandle); in isVoicemailEnabled() 82 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) { in setVoicemailEnabled() argument 83 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccountHandle, enabled); in setVoicemailEnabled() 93 public boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailArchiveEnabled() argument 94 return VisualVoicemailSettingsUtil.isArchiveEnabled(context, phoneAccountHandle); in isVoicemailArchiveEnabled() 117 Context context, PhoneAccountHandle phoneAccountHandle, boolean value) { in setVoicemailArchiveEnabled() argument 118 VisualVoicemailSettingsUtil.setArchiveEnabled(context, phoneAccountHandle, value); in setVoicemailArchiveEnabled() 122 public Intent getSetPinIntent(Context context, PhoneAccountHandle phoneAccountHandle) { in getSetPinIntent() argument 124 intent.putExtra(VoicemailChangePinActivity.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in getSetPinIntent() [all …]
|
D | VoicemailStatus.java | 39 private Editor(Context context, PhoneAccountHandle phoneAccountHandle) { in Editor() argument 41 mPhoneAccountHandle = phoneAccountHandle; in Editor() 125 private DeferredEditor(Context context, PhoneAccountHandle phoneAccountHandle) { in DeferredEditor() argument 126 super(context, phoneAccountHandle); in DeferredEditor() 140 public static Editor edit(Context context, PhoneAccountHandle phoneAccountHandle) { in edit() argument 141 return new Editor(context, phoneAccountHandle); in edit() 148 public static void disable(Context context, PhoneAccountHandle phoneAccountHandle) { in disable() argument 149 edit(context, phoneAccountHandle) in disable() 157 Context context, PhoneAccountHandle phoneAccountHandle) { in deferredEdit() argument 158 return new DeferredEditor(context, phoneAccountHandle); in deferredEdit()
|
D | PreOMigrationHandler.java | 55 public static void migrate(Context context, PhoneAccountHandle phoneAccountHandle) { in migrate() argument 58 new VisualVoicemailPreferences(context, phoneAccountHandle); in migrate() 60 VvmLog.i("PreOMigrationHandler", phoneAccountHandle + " already migrated"); in migrate() 63 VvmLog.i("PreOMigrationHandler", "migrating " + phoneAccountHandle); in migrate() 64 migrateSettings(context, phoneAccountHandle); in migrate() 69 private static void migrateSettings(Context context, PhoneAccountHandle phoneAccountHandle) { in migrateSettings() argument 74 .createForPhoneAccountHandle(phoneAccountHandle); in migrateSettings() 91 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccountHandle, enabled); in migrateSettings() 98 VoicemailChangePinActivity.setDefaultOldPIN(context, phoneAccountHandle, scrambledPin); in migrateSettings()
|
D | OmtpService.java | 51 VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onCellServiceConnected() argument 65 if (!isServiceEnabled(phoneAccountHandle)) { in onCellServiceConnected() 71 ActivationTask.start(OmtpService.this, phoneAccountHandle, null); in onCellServiceConnected() 106 final VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onSimRemoved() argument 127 VvmAccountManager.removeAccount(this, phoneAccountHandle); in onSimRemoved() 167 private boolean isServiceEnabled(PhoneAccountHandle phoneAccountHandle) { in isServiceEnabled() argument 168 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(this, phoneAccountHandle); in isServiceEnabled() 170 VvmLog.i(TAG, "VVM not supported on " + phoneAccountHandle); in isServiceEnabled() 173 if (!VisualVoicemailSettingsUtil.isEnabled(this, phoneAccountHandle) in isServiceEnabled()
|
D | TelephonyMangerCompat.java | 33 PhoneAccountHandle phoneAccountHandle, in sendVisualVoicemailSms() argument 47 .createForPhoneAccountHandle(phoneAccountHandle); in sendVisualVoicemailSms() 68 method.invoke(null, context, phoneAccountHandle, number, (short) port, text, sentIntent); in sendVisualVoicemailSms() 78 PhoneAccountHandle phoneAccountHandle, in setVisualVoicemailSmsFilterSettings() argument 90 .createForPhoneAccountHandle(phoneAccountHandle); in setVisualVoicemailSmsFilterSettings() 109 return (String) method.invoke(null, context, phoneAccountHandle, settings); in setVisualVoicemailSmsFilterSettings()
|
D | DeviceProvisionedJobService.java | 46 Context context, PhoneAccountHandle phoneAccountHandle) { in activateAfterProvisioned() argument 58 intent.putExtra(EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in activateAfterProvisioned() 67 PhoneAccountHandle phoneAccountHandle = in onStartJob() local 71 "restarting activation for " + phoneAccountHandle); in onStartJob() 72 ActivationTask.start(this, phoneAccountHandle, null); in onStartJob()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | TelecomSystemTest.java | 547 protected IdPair outgoingCallPhoneAccountSelected(PhoneAccountHandle phoneAccountHandle, in outgoingCallPhoneAccountSelected() argument 552 phoneAccountHandle, connectionServiceFixture); in outgoingCallPhoneAccountSelected() 567 protected IdPair startOutgoingPhoneCall(String number, PhoneAccountHandle phoneAccountHandle, in startOutgoingPhoneCall() argument 571 return startOutgoingPhoneCall(number, phoneAccountHandle, connectionServiceFixture, in startOutgoingPhoneCall() 575 protected IdPair startOutgoingPhoneCall(String number, PhoneAccountHandle phoneAccountHandle, in startOutgoingPhoneCall() argument 581 startOutgoingPhoneCallPendingCreateConnection(number, phoneAccountHandle, in startOutgoingPhoneCall() 585 phoneAccountHandle, connectionServiceFixture); in startOutgoingPhoneCall() 588 protected IdPair triggerEmergencyRedial(PhoneAccountHandle phoneAccountHandle, in triggerEmergencyRedial() argument 605 phoneAccountHandle, connectionServiceFixture); in triggerEmergencyRedial() 609 PhoneAccountHandle phoneAccountHandle, in startOutgoingEmergencyCall() argument [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/ |
D | VvmAccountManager.java | 56 void onActivationStateChanged(PhoneAccountHandle phoneAccountHandle, boolean isActivated); in onActivationStateChanged() argument 64 Context context, PhoneAccountHandle phoneAccountHandle, StatusMessage statusMessage) { in addAccount() argument 66 new VisualVoicemailPreferences(context, phoneAccountHandle); in addAccount() 68 setAccountActivated(context, phoneAccountHandle, true); in addAccount() 73 listener.onActivationStateChanged(phoneAccountHandle, true); in addAccount() 106 for (PhoneAccountHandle phoneAccountHandle : in getActiveAccounts() 108 if (isAccountActivated(context, phoneAccountHandle)) { in getActiveAccounts() 109 results.add(phoneAccountHandle); in getActiveAccounts() 134 PhoneAccountHandle phoneAccountHandle) { in migrateActivationState() argument 143 new VisualVoicemailPreferences(context, phoneAccountHandle); in migrateActivationState() [all …]
|
D | UploadTask.java | 45 public static void start(Context context, PhoneAccountHandle phoneAccountHandle) { in start() argument 46 Intent intent = BaseTask.createIntent(context, UploadTask.class, phoneAccountHandle); in start() 59 PhoneAccountHandle phoneAccountHandle = getPhoneAccountHandle(); in onExecuteInBackgroundThread() local 60 if (phoneAccountHandle == null) { in onExecuteInBackgroundThread() 68 phoneAccountHandle, in onExecuteInBackgroundThread() 70 VoicemailStatus.edit(getContext(), phoneAccountHandle)); in onExecuteInBackgroundThread()
|
D | OmtpVvmSyncService.java | 155 ImapHelper imapHelper, PhoneAccountHandle phoneAccountHandle) { in autoDeleteAndArchiveVM() argument 156 if (!isArchiveAllowedAndEnabled(mContext, phoneAccountHandle)) { in autoDeleteAndArchiveVM() 182 Context context, PhoneAccountHandle phoneAccountHandle) { in isArchiveAllowedAndEnabled() argument 190 if (!VisualVoicemailSettingsUtil.isArchiveEnabled(context, phoneAccountHandle)) { in isArchiveAllowedAndEnabled() 194 if (!VisualVoicemailSettingsUtil.isEnabled(context, phoneAccountHandle)) { in isArchiveAllowedAndEnabled() 255 private boolean upload(PhoneAccountHandle phoneAccountHandle, ImapHelper imapHelper) { in upload() argument 256 List<Voicemail> readVoicemails = mQueryHelper.getReadVoicemails(phoneAccountHandle); in upload() 257 List<Voicemail> deletedVoicemails = mQueryHelper.getDeletedVoicemails(phoneAccountHandle); in upload()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/settings/ |
D | VoicemailSettingsFragment.java | 50 @Nullable private PhoneAccountHandle phoneAccountHandle; field in VoicemailSettingsFragment 63 phoneAccountHandle = in onCreate() 66 omtpVvmCarrierConfigHelper = new OmtpVvmCarrierConfigHelper(getContext(), phoneAccountHandle); in onCreate() 114 Assert.isNotNull(phoneAccountHandle); in onResume() 118 VoicemailChangePinActivity.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in onResume() 130 if (VoicemailChangePinActivity.isDefaultOldPinSet(getContext(), phoneAccountHandle)) { in onResume() 139 VisualVoicemailSettingsUtil.isEnabled(getContext(), phoneAccountHandle)); in onResume() local 143 VisualVoicemailSettingsUtil.isArchiveEnabled(getContext(), phoneAccountHandle)); in onResume() local 184 VisualVoicemailSettingsUtil.setEnabled(getContext(), phoneAccountHandle, isEnabled); in onPreferenceChange() local 196 getContext(), phoneAccountHandle, (boolean) objValue); in onPreferenceChange() local [all …]
|
D | VoicemailRingtonePreference.java | 46 private PhoneAccountHandle phoneAccountHandle; field in VoicemailRingtonePreference 74 public void init(PhoneAccountHandle phoneAccountHandle, CharSequence oldRingtoneName) { in init() argument 75 this.phoneAccountHandle = phoneAccountHandle; in init() 84 telephonyManager.getVoicemailRingtoneUri(phoneAccountHandle), in init() 98 return telephonyManager.getVoicemailRingtoneUri(phoneAccountHandle); in onRestoreRingtone() 103 telephonyManager.setVoicemailRingtoneUri(phoneAccountHandle, ringtoneUri); in onSaveRingtone()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/ |
D | Vvm3Protocol.java | 113 PhoneAccountHandle phoneAccountHandle, in startProvisioning() argument 125 new Vvm3Subscriber(task, phoneAccountHandle, config, status, data).subscribe(); in startProvisioning() 133 new VisualVoicemailPreferences(config.getContext(), phoneAccountHandle); in startProvisioning() 136 startProvisionNewUser(task, phoneAccountHandle, config, status, message); in startProvisioning() 139 VisualVoicemailSettingsUtil.setEnabled(config.getContext(), phoneAccountHandle, false); in startProvisioning() local 149 PhoneAccountHandle phoneAccountHandle, in createMessageSender() argument 152 return new Vvm3MessageSender(context, phoneAccountHandle, applicationPort, destinationNumber); in createMessageSender() 206 PhoneAccountHandle phoneAccountHandle, in startProvisionNewUser() argument 211 VvmNetworkRequest.getNetwork(config, phoneAccountHandle, status)) { in startProvisionNewUser() argument 216 new ImapHelper(config.getContext(), phoneAccountHandle, network, status)) { in startProvisionNewUser() argument [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomServiceImpl.java | 1025 public void addNewIncomingCall(PhoneAccountHandle phoneAccountHandle, Bundle extras) { 1030 phoneAccountHandle); 1031 if (phoneAccountHandle != null && 1032 phoneAccountHandle.getComponentName() != null) { 1036 phoneAccountHandle.getComponentName())) { 1042 phoneAccountHandle.getComponentName().getPackageName()); 1044 enforceUserHandleMatchesCaller(phoneAccountHandle); 1045 enforcePhoneAccountIsRegisteredEnabled(phoneAccountHandle, 1047 if (isSelfManagedConnectionService(phoneAccountHandle)) { 1063 phoneAccountHandle); [all …]
|
D | CallsManager.java | 816 void processIncomingCallIntent(PhoneAccountHandle phoneAccountHandle, Bundle extras) { in processIncomingCallIntent() argument 836 phoneAccountHandle, in processIncomingCallIntent() 847 phoneAccountHandle); in processIncomingCallIntent() 906 isHandoverToPhoneAccountSupported(phoneAccountHandle)) { in processIncomingCallIntent() 947 notifyCreateConnectionFailed(phoneAccountHandle, call); in processIncomingCallIntent() 953 void addNewUnknownCall(PhoneAccountHandle phoneAccountHandle, Bundle extras) { in addNewUnknownCall() argument 968 phoneAccountHandle, in addNewUnknownCall() 1029 Call startOutgoingCall(Uri handle, PhoneAccountHandle phoneAccountHandle, Bundle extras, in startOutgoingCall() argument 1035 mPhoneAccountRegistrar.getPhoneAccount(phoneAccountHandle, initiatingUser); in startOutgoingCall() 1105 phoneAccountHandle, initiatingUser); in startOutgoingCall() [all …]
|
D | CallIntentProcessor.java | 109 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra( in processOutgoingCallIntent() local 140 .startOutgoingCall(handle, phoneAccountHandle, clientExtras, initiatingUser, in processOutgoingCallIntent() 192 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra( in processIncomingCallIntent() local 195 if (phoneAccountHandle == null) { in processIncomingCallIntent() 200 if (phoneAccountHandle.getComponentName() == null) { in processIncomingCallIntent() 216 phoneAccountHandle.getComponentName()); in processIncomingCallIntent() 217 callsManager.processIncomingCallIntent(phoneAccountHandle, clientExtras); in processIncomingCallIntent() 221 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra( in processUnknownCallIntent() local 224 if (phoneAccountHandle == null) { in processUnknownCallIntent() 228 if (phoneAccountHandle.getComponentName() == null) { in processUnknownCallIntent() [all …]
|
D | PhoneAccountRegistrar.java | 254 PhoneAccount account = getPhoneAccount(defaultPhoneAccountHandle.phoneAccountHandle, in getUserSelectedOutgoingPhoneAccount() 258 return defaultPhoneAccountHandle.phoneAccountHandle; in getUserSelectedOutgoingPhoneAccount() 482 private void removeDefaultPhoneAccountHandle(PhoneAccountHandle phoneAccountHandle) { in removeDefaultPhoneAccountHandle() argument 487 if (phoneAccountHandle.equals(entry.getValue().phoneAccountHandle)) { in removeDefaultPhoneAccountHandle() 529 private List<ResolveInfo> resolveComponent(PhoneAccountHandle phoneAccountHandle) { in resolveComponent() argument 530 return resolveComponent(phoneAccountHandle.getComponentName(), in resolveComponent() 531 phoneAccountHandle.getUserHandle()); in resolveComponent() 834 defaultHandle.phoneAccountHandle.getComponentName())) { in maybeReplaceOldAccount() 861 public boolean phoneAccountRequiresBindPermission(PhoneAccountHandle phoneAccountHandle) { in phoneAccountRequiresBindPermission() argument 862 List<ResolveInfo> resolveInfos = resolveComponent(phoneAccountHandle); in phoneAccountRequiresBindPermission() [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/ |
D | Task.java | 65 public final PhoneAccountHandle phoneAccountHandle; field in Task.TaskId 67 public TaskId(int id, PhoneAccountHandle phoneAccountHandle) { in TaskId() argument 69 this.phoneAccountHandle = phoneAccountHandle; in TaskId() 78 return id == other.id && phoneAccountHandle.equals(other.phoneAccountHandle); in equals() 83 return Objects.hash(id, phoneAccountHandle); in hashCode()
|
/packages/apps/Dialer/java/com/android/voicemail/ |
D | VoicemailClient.java | 69 boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle); in isVoicemailEnabled() argument 76 void setVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled); in setVoicemailEnabled() argument 109 boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle); in isVoicemailArchiveEnabled() argument 119 Context context, PhoneAccountHandle phoneAccountHandle, boolean value); in setVoicemailArchiveEnabled() argument 125 Intent getSetPinIntent(Context context, PhoneAccountHandle phoneAccountHandle); in getSetPinIntent() argument 133 boolean isActivated(Context context, PhoneAccountHandle phoneAccountHandle); in isActivated() argument 144 @NonNull Context context, @Nullable PhoneAccountHandle phoneAccountHandle); in getConfig() argument
|
/packages/apps/Dialer/java/com/android/voicemail/stub/ |
D | StubVoicemailClient.java | 43 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled() argument 49 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) {} in setVoicemailEnabled() argument 65 public boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailArchiveEnabled() argument 76 Context context, PhoneAccountHandle phoneAccountHandle, boolean value) {} in setVoicemailArchiveEnabled() argument 79 public Intent getSetPinIntent(Context context, PhoneAccountHandle phoneAccountHandle) { in getSetPinIntent() argument 84 public boolean isActivated(Context context, PhoneAccountHandle phoneAccountHandle) { in isActivated() argument 93 @NonNull Context context, @Nullable PhoneAccountHandle phoneAccountHandle) { in getConfig() argument
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | LegacyVoicemailNotificationReceiver.java | 72 PhoneAccountHandle phoneAccountHandle = in onReceive() local 76 if (!hasVoicemailCountChanged(context, phoneAccountHandle, count)) { in onReceive() 98 .isActivated(context, phoneAccountHandle)) { in onReceive() 114 phoneAccountHandle, in onReceive() 123 Context context, PhoneAccountHandle phoneAccountHandle, int newCount) { in hasVoicemailCountChanged() argument 139 context, phoneAccountHandle, PreferenceManager.getDefaultSharedPreferences(context)); in hasVoicemailCountChanged()
|
/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
D | PhoneAccountSelectionFragment.java | 76 private final PhoneAccountHandle phoneAccountHandle; field in PhoneAccountSelectionFragment.AccountPreference 79 Context context, PhoneAccountHandle phoneAccountHandle, PhoneAccount phoneAccount) { in AccountPreference() argument 81 this.phoneAccountHandle = phoneAccountHandle; in AccountPreference() 99 arguments.putParcelable(phoneAccountHandleKey, phoneAccountHandle); in onClick()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/sms/ |
D | LegacyModeSmsHandler.java | 73 Context context, PhoneAccountHandle phoneAccountHandle, int messageCount) { in sendLegacyVoicemailNotification() argument 82 intent.putExtra(TelephonyManager.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in sendLegacyVoicemailNotification() 87 String voicemailNumber = getVoicemailNumber(context, phoneAccountHandle); in sendLegacyVoicemailNotification() 122 private static String getVoicemailNumber(Context context, PhoneAccountHandle phoneAccountHandle) { in getVoicemailNumber() argument 126 .createForPhoneAccountHandle(phoneAccountHandle); in getVoicemailNumber()
|