Home
last modified time | relevance | path

Searched refs:phoneAccountHandle (Results 1 – 25 of 144) sorted by relevance

123456

/aosp12/packages/services/Telephony/src/com/android/phone/vvm/
H A DVvmSimStateTracker.java82 mPhoneAccountHandle = phoneAccountHandle; in ServiceStateListener()
147 PhoneAccountHandle phoneAccountHandle = in onReceive() local
167 sListeners.put(phoneAccountHandle, null); in onBootCompleted()
194 removeList.add(phoneAccountHandle); in checkRemovedSim()
204 sListeners.remove(phoneAccountHandle); in checkRemovedSim()
219 sPreBootHandles.add(phoneAccountHandle); in onCarrierConfigChanged()
236 sendConnected(context, phoneAccountHandle); in onCarrierConfigChanged()
237 sListeners.put(phoneAccountHandle, null); in onCarrierConfigChanged()
239 listenToAccount(context, phoneAccountHandle); in onCarrierConfigChanged()
246 sListeners.put(phoneAccountHandle, listener); in listenToAccount()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/
H A DVoicemailClientImpl.java129 Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailTranscriptionAvailable() argument
130 if (phoneAccountHandle == null) { in isVoicemailTranscriptionAvailable()
141 if (!isVoicemailEnabled(context, phoneAccountHandle)) { in isVoicemailTranscriptionAvailable()
148 if (!isActivated(context, phoneAccountHandle)) { in isVoicemailTranscriptionAvailable()
173 Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailDonationAvailable() argument
179 if (!isVoicemailTranscriptionEnabled(context, phoneAccountHandle)) { in isVoicemailDonationAvailable()
204 isVoicemailTranscriptionAvailable(context, phoneAccountHandle), in setVoicemailTranscriptionEnabled()
207 context, phoneAccountHandle, enabled); in setVoicemailTranscriptionEnabled()
223 isVoicemailTranscriptionEnabled(context, phoneAccountHandle), in setVoicemailDonationEnabled()
224 phoneAccountHandle.toString()); in setVoicemailDonationEnabled()
[all …]
H A DVoicemailStatus.java36 @Nullable private final PhoneAccountHandle phoneAccountHandle; field in VoicemailStatus.Editor
42 this.phoneAccountHandle = phoneAccountHandle; in Editor()
43 if (this.phoneAccountHandle == null) { in Editor()
53 return phoneAccountHandle; in getPhoneAccountHandle()
93 if (phoneAccountHandle == null) { in apply()
98 phoneAccountHandle.getComponentName().flattenToString()); in apply()
127 super(context, phoneAccountHandle); in DeferredEditor()
142 return new Editor(context, phoneAccountHandle); in edit()
150 edit(context, phoneAccountHandle) in disable()
158 Context context, PhoneAccountHandle phoneAccountHandle) { in deferredEdit() argument
[all …]
H A DActivationTask.java130 if (phoneAccountHandle == null) { in onExecuteInBackgroundThread()
136 PreOMigrationHandler.migrate(getContext(), phoneAccountHandle); in onExecuteInBackgroundThread() local
163 if (!VoicemailStatus.edit(getContext(), phoneAccountHandle) in onExecuteInBackgroundThread()
176 onSuccess(getContext(), phoneAccountHandle, helper); in onExecuteInBackgroundThread() local
182 if (!hasSignal(getContext(), phoneAccountHandle)) { in onExecuteInBackgroundThread()
187 VoicemailStatus.edit(getContext(), phoneAccountHandle), in onExecuteInBackgroundThread() local
276 VoicemailStatus.edit(context, phoneAccountHandle), in onSuccess()
278 clearLegacyVoicemailNotification(context, phoneAccountHandle); in onSuccess()
279 SyncTask.start(context, phoneAccountHandle); in onSuccess()
284 Context context, PhoneAccountHandle phoneAccountHandle) { in clearLegacyVoicemailNotification() argument
[all …]
H A DPinChangerImpl.java38 private final PhoneAccountHandle phoneAccountHandle; field in PinChangerImpl
42 PinChangerImpl(Context context, PhoneAccountHandle phoneAccountHandle) { in PinChangerImpl() argument
44 this.phoneAccountHandle = phoneAccountHandle; in PinChangerImpl()
52 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(context, phoneAccountHandle); in changePin()
53 VoicemailStatus.Editor status = VoicemailStatus.edit(context, phoneAccountHandle); in changePin()
55 VvmNetworkRequest.getNetwork(config, phoneAccountHandle, status)) { in changePin() argument
57 try (ImapHelper helper = new ImapHelper(context, phoneAccountHandle, network, status)) { in changePin() argument
72 new VisualVoicemailPreferences(context, phoneAccountHandle) in setScrambledPin()
77 new OmtpVvmCarrierConfigHelper(context, phoneAccountHandle) in setScrambledPin()
79 VoicemailStatus.edit(context, phoneAccountHandle), OmtpEvents.CONFIG_PIN_SET); in setScrambledPin()
[all …]
H A DPreOMigrationHandler.java56 public static void migrate(Context context, PhoneAccountHandle phoneAccountHandle) { in migrate() argument
59 new VisualVoicemailPreferences(context, phoneAccountHandle); in migrate()
61 VvmLog.i("PreOMigrationHandler", phoneAccountHandle + " already migrated"); in migrate()
64 VvmLog.i("PreOMigrationHandler", "migrating " + phoneAccountHandle); in migrate()
65 migrateSettings(context, phoneAccountHandle); in migrate()
70 private static void migrateSettings(Context context, PhoneAccountHandle phoneAccountHandle) { in migrateSettings() argument
75 .createForPhoneAccountHandle(phoneAccountHandle); in migrateSettings()
92 VisualVoicemailSettingsUtil.setEnabled(context, phoneAccountHandle, enabled); in migrateSettings()
101 .createPinChanger(context, phoneAccountHandle) in migrateSettings()
H A DOmtpService.java52 VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onCellServiceConnected() argument
66 if (!isServiceEnabled(phoneAccountHandle)) { in onCellServiceConnected()
67 disableFilter(phoneAccountHandle); in onCellServiceConnected()
73 ActivationTask.start(OmtpService.this, phoneAccountHandle, null); in onCellServiceConnected()
110 final VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) { in onSimRemoved() argument
131 VvmAccountManager.removeAccount(this, phoneAccountHandle); in onSimRemoved()
171 private boolean isServiceEnabled(PhoneAccountHandle phoneAccountHandle) { in isServiceEnabled() argument
172 OmtpVvmCarrierConfigHelper config = new OmtpVvmCarrierConfigHelper(this, phoneAccountHandle); in isServiceEnabled()
174 VvmLog.i(TAG, "VVM not supported on " + phoneAccountHandle); in isServiceEnabled()
177 if (!VisualVoicemailSettingsUtil.isEnabled(this, phoneAccountHandle) in isServiceEnabled()
[all …]
/aosp12/packages/services/Telephony/src/com/android/services/telephony/
H A DHoldTracker.java40 public void addHoldable(PhoneAccountHandle phoneAccountHandle, Holdable holdable) { in addHoldable() argument
41 if (!mHoldables.containsKey(phoneAccountHandle)) { in addHoldable()
42 mHoldables.put(phoneAccountHandle, new ArrayList<>(1)); in addHoldable()
44 List<Holdable> holdables = mHoldables.get(phoneAccountHandle); in addHoldable()
47 updateHoldCapability(phoneAccountHandle); in addHoldable()
56 if (!mHoldables.containsKey(phoneAccountHandle)) { in removeHoldable()
60 if (mHoldables.get(phoneAccountHandle).remove(holdable)) { in removeHoldable()
61 updateHoldCapability(phoneAccountHandle); in removeHoldable()
68 public void updateHoldCapability(PhoneAccountHandle phoneAccountHandle) { in updateHoldCapability() argument
69 if (!mHoldables.containsKey(phoneAccountHandle)) { in updateHoldCapability()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/voicemail/
H A DVoicemailClient.java68 boolean hasCarrierSupport(Context context, PhoneAccountHandle phoneAccountHandle); in hasCarrierSupport() argument
76 boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle); in isVoicemailEnabled() argument
108 boolean isVoicemailArchiveEnabled(Context context, PhoneAccountHandle phoneAccountHandle); in isVoicemailArchiveEnabled() argument
118 Context context, PhoneAccountHandle phoneAccountHandle, boolean value); in setVoicemailArchiveEnabled() argument
137 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled); in setVoicemailTranscriptionEnabled() argument
140 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled); in setVoicemailDonationEnabled() argument
148 boolean isActivated(Context context, PhoneAccountHandle phoneAccountHandle); in isActivated() argument
159 @NonNull Context context, @Nullable PhoneAccountHandle phoneAccountHandle); in getConfig() argument
174 PinChanger createPinChanger(Context context, PhoneAccountHandle phoneAccountHandle); in createPinChanger() argument
176 void onTosAccepted(Context context, PhoneAccountHandle phoneAccountHandle); in onTosAccepted() argument
[all …]
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/bluetooth/
H A DPhoneAccountManager.java65 PhoneAccountHandle phoneAccountHandle = getMatchingPhoneAccount(device); in setUserSelectedOutgoingDevice() local
66 mTelecomManager.setUserSelectedOutgoingPhoneAccount(phoneAccountHandle); in setUserSelectedOutgoingDevice()
74 @Nullable PhoneAccountHandle phoneAccountHandle) { in getMatchingDevice()
84 if (isHfpConnectionService(phoneAccountHandle)) { in getMatchingDevice()
100 for (PhoneAccountHandle phoneAccountHandle : phoneAccountHandles) { in getHfpDeviceList()
101 BluetoothDevice bluetoothDevice = getMatchingDevice(phoneAccountHandle); in getHfpDeviceList()
117 for (PhoneAccountHandle phoneAccountHandle : phoneAccountHandleList) { in getMatchingPhoneAccount()
118 if (isHfpConnectionService(phoneAccountHandle)) { in getMatchingPhoneAccount()
120 return phoneAccountHandle; in getMatchingPhoneAccount()
129 return phoneAccountHandle != null in isHfpConnectionService()
[all …]
/aosp12/packages/apps/Dialer/java/com/android/voicemail/stub/
H A DStubVoicemailClient.java43 public boolean isVoicemailEnabled(Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailEnabled() argument
49 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) {} in setVoicemailEnabled() argument
71 Context context, PhoneAccountHandle phoneAccountHandle, boolean value) {} in setVoicemailArchiveEnabled() argument
75 Context context, PhoneAccountHandle phoneAccountHandle) { in isVoicemailTranscriptionAvailable() argument
96 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) {} in setVoicemailTranscriptionEnabled() argument
100 Context context, PhoneAccountHandle phoneAccountHandle, boolean enabled) {} in setVoicemailDonationEnabled() argument
103 public boolean isActivated(Context context, PhoneAccountHandle phoneAccountHandle) { in isActivated() argument
112 @NonNull Context context, @Nullable PhoneAccountHandle phoneAccountHandle) { in getConfig() argument
133 public boolean hasCarrierSupport(Context context, PhoneAccountHandle phoneAccountHandle) { in hasCarrierSupport() argument
138 public PinChanger createPinChanger(Context context, PhoneAccountHandle phoneAccountHandle) { in createPinChanger() argument
[all …]
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
H A DVvmAccountManager.java61 new VisualVoicemailPreferences(context, phoneAccountHandle); in addAccount()
63 setAccountActivated(context, phoneAccountHandle, true); in addAccount()
68 listener.onActivationStateChanged(phoneAccountHandle, true); in addAccount()
101 for (PhoneAccountHandle phoneAccountHandle : in getActiveAccounts()
103 if (isAccountActivated(context, phoneAccountHandle)) { in getActiveAccounts()
104 results.add(phoneAccountHandle); in getActiveAccounts()
129 PhoneAccountHandle phoneAccountHandle) { in migrateActivationState() argument
138 new VisualVoicemailPreferences(context, phoneAccountHandle); in migrateActivationState()
150 Assert.isNotNull(phoneAccountHandle); in setAccountActivated()
151 getPreferenceForActivationState(context, phoneAccountHandle) in setAccountActivated()
[all …]
H A DUploadTask.java45 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()
66 this, phoneAccountHandle, null, VoicemailStatus.edit(getContext(), phoneAccountHandle)); in onExecuteInBackgroundThread()
/aosp12/packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
H A DVoicemailSettingsFragment.java71 @Nullable private PhoneAccountHandle phoneAccountHandle; field in VoicemailSettingsFragment
88 phoneAccountHandle = in onCreate()
128 if (!voicemailClient.isVoicemailEnabled(getContext(), phoneAccountHandle) in setupVisualVoicemailFeaturePreferences()
129 || !voicemailClient.isActivated(getContext(), phoneAccountHandle)) { in setupVisualVoicemailFeaturePreferences()
175 .isVoicemailDonationAvailable(getContext(), phoneAccountHandle)) { in updateTranscriptionDonationPreference()
329 TelephonyManager.EXTRA_PHONE_ACCOUNT_HANDLE, phoneAccountHandle); in setupAdvancedSettingsPreference()
333 TelecomUtil.getSubscriptionInfo(getContext(), phoneAccountHandle); in setupAdvancedSettingsPreference()
384 getContext(), phoneAccountHandle, (boolean) objValue); in onPreferenceChange() local
388 getContext(), phoneAccountHandle, (boolean) objValue); in onPreferenceChange() local
393 getContext(), phoneAccountHandle, (boolean) objValue); in onPreferenceChange() local
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/preferredsim/
H A DPreferredAccountRecorder.java56 if (suggestion.phoneAccountHandle.equals(selectedAccountHandle)) { in record()
87 private final PhoneAccountHandle phoneAccountHandle; field in PreferredAccountRecorder.UserSelectionReporter
91 @NonNull PhoneAccountHandle phoneAccountHandle, @Nullable String number, boolean remember) { in UserSelectionReporter()
92 this.phoneAccountHandle = Assert.isNotNull(phoneAccountHandle); in UserSelectionReporter()
102 .reportUserSelection(context, number, phoneAccountHandle, remember); in doInBackground()
110 private final PhoneAccountHandle phoneAccountHandle; field in PreferredAccountRecorder.WritePreferredAccountWorkerInput
115 @NonNull PhoneAccountHandle phoneAccountHandle) { in WritePreferredAccountWorkerInput() argument
118 this.phoneAccountHandle = Assert.isNotNull(phoneAccountHandle); in WritePreferredAccountWorkerInput()
132 input.phoneAccountHandle.getComponentName().flattenToString()); in doInBackground()
133 values.put(PreferredSim.PREFERRED_PHONE_ACCOUNT_ID, input.phoneAccountHandle.getId()); in doInBackground()
H A DPreferredAccountUtil.java59 PhoneAccountHandle phoneAccountHandle = new PhoneAccountHandle(componentName, idString); in getValidPhoneAccount() local
61 if (isPhoneAccountValid(context, phoneAccountHandle)) { in getValidPhoneAccount()
62 return Optional.of(phoneAccountHandle); in getValidPhoneAccount()
68 Context context, PhoneAccountHandle phoneAccountHandle) { in isPhoneAccountValid() argument
72 .createForPhoneAccountHandle(phoneAccountHandle) in isPhoneAccountValid()
77 context.getSystemService(TelecomManager.class).getPhoneAccount(phoneAccountHandle); in isPhoneAccountValid()
89 if (phoneAccountHandle.getId().startsWith(info.getIccId())) { in isPhoneAccountValid()
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
H A DLegacyVoicemailNotificationReceiver.java72 PhoneAccountHandle phoneAccountHandle = in onReceive() local
78 PerAccountSharedPreferences preferences = getSharedPreferences(context, phoneAccountHandle); in onReceive()
87 setDismissed(context, phoneAccountHandle, false); in onReceive()
99 LegacyVoicemailNotifier.cancelNotification(context, phoneAccountHandle); in onReceive()
107 .isActivated(context, phoneAccountHandle)) { in onReceive()
123 phoneAccountHandle, in onReceive()
132 Context context, PhoneAccountHandle phoneAccountHandle, boolean dismissed) { in setDismissed() argument
133 getSharedPreferences(context, phoneAccountHandle) in setDismissed()
141 Context context, PhoneAccountHandle phoneAccountHandle) { in getSharedPreferences() argument
143 context, phoneAccountHandle, StorageComponent.get(context).unencryptedSharedPrefs()); in getSharedPreferences()
/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DTelecomSystemTest.java692 PhoneAccountHandle phoneAccountHandle, in startOutgoingEmergencyCall() argument
712 PhoneAccountHandle phoneAccountHandle, in startOutgoingPhoneCallWaitForBroadcaster() argument
735 if (phoneAccountHandle != null) { in startOutgoingPhoneCallWaitForBroadcaster()
738 phoneAccountHandle); in startOutgoingPhoneCallWaitForBroadcaster()
753 if (phoneAccountHandle != null) { in startOutgoingPhoneCallWaitForBroadcaster()
770 PhoneAccountHandle phoneAccountHandle, in startOutgoingPhoneCallPendingCreateConnection() argument
876 PhoneAccountHandle phoneAccountHandle, in startIncomingPhoneCall() argument
884 PhoneAccountHandle phoneAccountHandle, in startIncomingPhoneCall() argument
991 PhoneAccountHandle phoneAccountHandle, in startAndMakeActiveOutgoingCall() argument
1001 PhoneAccountHandle phoneAccountHandle, in startAndMakeActiveOutgoingCall() argument
[all …]
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/scheduling/
H A DTask.java65 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/preferredsim/suggestion/
H A DSuggestionProvider.java52 @NonNull public final PhoneAccountHandle phoneAccountHandle; field in SuggestionProvider.Suggestion
57 @NonNull PhoneAccountHandle phoneAccountHandle, in Suggestion()
60 this.phoneAccountHandle = Assert.isNotNull(phoneAccountHandle); in Suggestion()
74 @NonNull PhoneAccountHandle phoneAccountHandle, in reportUserSelection() argument
85 Context context, PhoneAccountHandle phoneAccountHandle, @Nullable Suggestion suggestion) { in getHint() argument
89 if (!phoneAccountHandle.equals(suggestion.phoneAccountHandle)) { in getHint()
/aosp12/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
H A DVvm3Protocol.java114 PhoneAccountHandle phoneAccountHandle, in startProvisioning() argument
143 new VisualVoicemailPreferences(config.getContext(), phoneAccountHandle); in startProvisioning()
146 startProvisionNewUser(task, phoneAccountHandle, config, status, message); in startProvisioning()
159 PhoneAccountHandle phoneAccountHandle, in createMessageSender() argument
216 PhoneAccountHandle phoneAccountHandle, in startProvisionNewUser() argument
221 VvmNetworkRequest.getNetwork(config, phoneAccountHandle, status)) { in startProvisionNewUser() argument
239 if (setPin(config.getContext(), phoneAccountHandle, helper, message)) { in startProvisionNewUser()
260 PhoneAccountHandle phoneAccountHandle, in setPin() argument
273 .createPinChanger(context, phoneAccountHandle); in setPin()
280 String newPin = generatePin(getMinimumPinLength(context, phoneAccountHandle)); in setPin()
[all …]
/aosp12/frameworks/base/telephony/java/android/telephony/
H A DVisualVoicemailService.java199 PhoneAccountHandle phoneAccountHandle); in onCellServiceConnected() argument
224 PhoneAccountHandle phoneAccountHandle); in onSimRemoved() argument
250 PhoneAccountHandle phoneAccountHandle, in setSmsFilterSettings() argument
253 int subId = getSubId(context, phoneAccountHandle); in setSmsFilterSettings()
282 PhoneAccountHandle phoneAccountHandle, String number, in sendVisualVoicemailSms() argument
285 telephonyManager.sendVisualVoicemailSmsForSubscriber(getSubId(context, phoneAccountHandle), in sendVisualVoicemailSms()
289 private static int getSubId(Context context, PhoneAccountHandle phoneAccountHandle) { in getSubId() argument
293 .getSubIdForPhoneAccount(telecomManager.getPhoneAccount(phoneAccountHandle)); in getSubId()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DCallIntentProcessor.java121 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra( in processOutgoingCallIntent() local
165 if (!callsManager.isSelfManaged(phoneAccountHandle, in processOutgoingCallIntent()
241 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra( in processIncomingCallIntent() local
244 if (phoneAccountHandle == null) { in processIncomingCallIntent()
249 if (phoneAccountHandle.getComponentName() == null) { in processIncomingCallIntent()
265 phoneAccountHandle.getComponentName()); in processIncomingCallIntent()
266 callsManager.processIncomingCallIntent(phoneAccountHandle, clientExtras); in processIncomingCallIntent()
270 PhoneAccountHandle phoneAccountHandle = intent.getParcelableExtra( in processUnknownCallIntent() local
273 if (phoneAccountHandle == null) { in processUnknownCallIntent()
277 if (phoneAccountHandle.getComponentName() == null) { in processUnknownCallIntent()
[all …]
H A DTelecomServiceImpl.java122 PhoneAccountHandle phoneAccountHandle = null;
139 return phoneAccountHandle;
1244 phoneAccountHandle);
1245 if (phoneAccountHandle != null &&
1276 phoneAccountHandle);
1306 phoneAccountHandle);
1307 if (phoneAccountHandle != null &&
1411 if (phoneAccountHandle != null &&
1431 phoneAccountHandle);
2442 if (phoneAccountHandle != null) {
[all …]
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/widget/
H A DSelectPhoneAccountDialogOptionsUtil.java55 PhoneAccountHandle phoneAccountHandle) { in setPhoneAccountHandle() argument
57 phoneAccountHandle.getComponentName().flattenToString()); in setPhoneAccountHandle()
58 entryBuilder.setPhoneAccountHandleId(phoneAccountHandle.getId()); in setPhoneAccountHandle()
60 parcel.writeParcelable(phoneAccountHandle.getUserHandle(), 0); in setPhoneAccountHandle()
70 for (PhoneAccountHandle phoneAccountHandle : phoneAccountHandles) { in builderWithAccounts()
73 SelectPhoneAccountDialogOptions.Entry.newBuilder(), phoneAccountHandle)); in builderWithAccounts() local

123456