HomeSort by relevance Sort by last modified time
    Searched defs:phoneAccount (Results 1 - 25 of 56) sorted by null

1 2 3

  /packages/apps/Dialer/java/com/android/dialer/preferredsim/
PreferredAccountUtil.java 25 import android.telecom.PhoneAccount;
76 PhoneAccount phoneAccount =
78 if (phoneAccount == null) {
83 if (!phoneAccount.isEnabled()) {
  /packages/apps/Dialer/java/com/android/voicemail/impl/utils/
VoicemailDatabaseUtil.java 81 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount();
82 if (phoneAccount != null) {
85 phoneAccount.getComponentName().flattenToString());
86 contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId());
  /packages/apps/Dialer/java/com/android/dialer/app/calllog/
LegacyVoicemailNotifier.java 26 import android.telecom.PhoneAccount;
143 PhoneAccount phoneAccount = telecomManager.getPhoneAccount(handle);
144 return phoneAccount.getShortDescription().toString();
MissedCallNotifier.java 36 import android.telecom.PhoneAccount;
246 * Remove self-managed calls from {@code newCalls}. If a {@link PhoneAccount} declared it is
247 * {@link PhoneAccount#CAPABILITY_SELF_MANAGED}, it should handle the in call UI and notifications
249 * PhoneAccount#EXTRA_LOG_SELF_MANAGED_CALLS}.
268 PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle);
269 if (phoneAccount == null) {
276 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED)) {
  /packages/apps/Dialer/java/com/android/voicemail/impl/
VvmPhoneStateListener.java 34 private PhoneAccountHandle phoneAccount;
43 phoneAccount = accountHandle;
48 if (phoneAccount == null) {
51 "onServiceStateChanged on phoneAccount "
52 + phoneAccount
67 OmtpVvmCarrierConfigHelper helper = new OmtpVvmCarrierConfigHelper(context, phoneAccount);
72 if (voicemailStatusQueryHelper.isVoicemailSourceConfigured(phoneAccount)) {
73 if (!voicemailStatusQueryHelper.isNotificationsChannelActive(phoneAccount)) {
74 VvmLog.v(TAG, "Notifications channel is active for " + phoneAccount);
76 VoicemailStatus.edit(context, phoneAccount), OmtpEvents.NOTIFICATION_IN_SERVICE)
    [all...]
Voicemail.java 30 private final PhoneAccountHandle phoneAccount;
54 phoneAccount = phoneAccountHandle;
117 public Builder setPhoneAccount(PhoneAccountHandle phoneAccount) {
118 builderPhoneAccount = phoneAccount;
200 return phoneAccount;
270 if (phoneAccount == null) {
274 phoneAccount.writeToParcel(dest, flags);
316 phoneAccount = PhoneAccountHandle.CREATOR.createFromParcel(in);
318 phoneAccount = null;
  /packages/services/Telephony/sip/src/com/android/services/telephony/sip/
SipIncomingCallReceiver.java 25 import android.telecom.PhoneAccount;
71 PhoneAccount phoneAccount = tm.getPhoneAccount(accountHandle);
72 if (phoneAccount != null && phoneAccount.isEnabled()) {
75 log("takeCall, PhoneAccount is disabled. Not accepting incoming call...");
SipAccountRegistry.java 23 import android.telecom.PhoneAccount;
33 * Manages the {@link PhoneAccount} entries for SIP calling.
123 * Checks the existing SIP phone {@link PhoneAccount}s registered with telecom and deletes any
132 PhoneAccount.SCHEME_SIP);
146 * {@link PhoneAccount}.
172 * Stops a SIP profile and un-registers its associated {@link android.telecom.PhoneAccount}.
189 // Un-register its PhoneAccount.
208 * specified SIP profile and registering its {@link android.telecom.PhoneAccount}.
244 // Register a PhoneAccount for the profile and optionally enable the primary
247 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile)
    [all...]
  /cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
CallBlockingTest.java 28 import android.telecom.PhoneAccount;
53 final PhoneAccount phoneAccount = PhoneAccount.builder(
56 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)
58 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL))
60 mTelecomManager.registerPhoneAccount(phoneAccount);
74 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(getPhoneAccountHandle());
75 assertNotNull(phoneAccount);
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/app/settings/
PhoneAccountSelectionFragment.java 28 import android.telecom.PhoneAccount;
79 Context context, PhoneAccountHandle phoneAccountHandle, PhoneAccount phoneAccount) {
82 setTitle(phoneAccount.getLabel());
83 setSummary(phoneAccount.getShortDescription());
84 Icon icon = phoneAccount.getIcon();
116 PhoneAccount account = telecomManager.getPhoneAccount(handle);
119 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION);
DialerSettingsActivity.java 29 import android.telecom.PhoneAccount;
243 PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle);
244 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowTelecomManagerTest.java 11 import android.telecom.PhoneAccount;
48 PhoneAccount phoneAccount = PhoneAccount.builder(handler, "main_account").build();
49 telecomService.registerPhoneAccount(phoneAccount);
55 assertThat(telecomService.getPhoneAccount(handler).getLabel()).isEqualTo(phoneAccount.getLabel());
67 telecomService.registerPhoneAccount(PhoneAccount.builder(anotherPackageHandle, "another_package")
75 telecomService.registerPhoneAccount(PhoneAccount.builder(accountHandle1, "another_package")
79 telecomService.registerPhoneAccount(PhoneAccount.builder(accountHandle2, "another_package")
91 telecomService.registerPhoneAccount(PhoneAccount.builder(handleMatchingScheme, "some_scheme"
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/notification/
VoicemailChannelUtils.java 32 import android.telecom.PhoneAccount;
151 telecomManager.getDefaultOutgoingPhoneAccount(PhoneAccount.SCHEME_TEL);
181 PhoneAccount phoneAccount =
184 newChannel(context, getChannelIdForAccount(handle), phoneAccount.getLabel());
202 PhoneAccount phoneAccount =
204 if (phoneAccount == null) {
207 if (!phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION))
    [all...]
  /packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
CallNotificationReceiver.java 85 PhoneAccountHandle phoneAccount = new PhoneAccountHandle(
97 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras);
101 PhoneAccountHandle phoneAccount = new PhoneAccountHandle(
114 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras);
119 PhoneAccountHandle phoneAccount = new PhoneAccountHandle(
132 TelecomManager.from(context).addNewUnknownCall(phoneAccount, extras);
  /cts/tests/tests/telecom/src/android/telecom/cts/
PhoneAccountOperationsTest.java 26 import android.telecom.PhoneAccount;
37 * Verifies some of the PhoneAccount registration related operations.
64 testBundle.putInt(PhoneAccount.EXTRA_CALL_SUBJECT_MAX_LENGTH, TEST_LENGTH);
65 testBundle.putString(PhoneAccount.EXTRA_CALL_SUBJECT_CHARACTER_ENCODING, TEST_ENCODING);
69 public static final PhoneAccount TEST_SIM_PHONE_ACCOUNT = PhoneAccount.builder(
73 .setCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)
76 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL))
79 public static final PhoneAccount TEST_NO_SIM_PHONE_ACCOUNT = PhoneAccount.builder
    [all...]
  /packages/apps/Dialer/java/com/android/dialer/telecom/
TelecomUtil.java 34 import android.telecom.PhoneAccount;
142 public static PhoneAccount getPhoneAccount(Context context, PhoneAccountHandle handle) {
159 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle);
160 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) {
313 PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle);
314 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)
  /packages/apps/Dialer/java/com/android/voicemail/impl/fetch/
FetchVoicemailReceiver.java 72 private PhoneAccountHandle phoneAccount;
119 phoneAccount =
126 .createForPhoneAccountHandle(phoneAccount);
133 if (!VvmAccountManager.isAccountActivated(context, phoneAccount)) {
134 phoneAccount = getAccountFromMarshmallowAccount(context, phoneAccount);
135 if (phoneAccount == null) {
142 networkCallback = new fetchVoicemailNetworkRequestCallback(context, phoneAccount);
188 public fetchVoicemailNetworkRequestCallback(Context context, PhoneAccountHandle phoneAccount) {
189 super(context, phoneAccount, VoicemailStatus.edit(context, phoneAccount))
    [all...]
  /packages/apps/Dialer/java/com/android/voicemail/impl/sync/
VoicemailsQueryHelper.java 207 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount();
208 if (phoneAccount != null) {
209 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString();
210 String phoneAccountId = phoneAccount.getId();
VvmNetworkRequestCallback.java 52 protected PhoneAccountHandle phoneAccount;
62 Context context, PhoneAccountHandle phoneAccount, VoicemailStatus.Editor status) {
64 this.phoneAccount = phoneAccount;
66 carrierConfigHelper = new OmtpVvmCarrierConfigHelper(context, this.phoneAccount);
72 PhoneAccountHandle phoneAccount,
75 this.phoneAccount = phoneAccount;
95 context.getSystemService(TelephonyManager.class).createForPhoneAccountHandle(phoneAccount);
  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowTelecomManager.java 11 import android.telecom.PhoneAccount;
32 private LinkedHashMap<PhoneAccountHandle, PhoneAccount> accounts = new LinkedHashMap();
71 PhoneAccount phoneAccount = accounts.get(handle);
72 if(phoneAccount.getSupportedUriSchemes().contains(uriScheme)) {
89 PhoneAccount phoneAccount = accounts.get(handle);
90 if(!phoneAccount.isEnabled() && !includeDisabledAccounts) {
112 public PhoneAccount getPhoneAccount(PhoneAccountHandle account) {
122 public List<PhoneAccount> getAllPhoneAccounts()
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
TelecomManagerFacade.java 29 import android.telecom.PhoneAccount;
113 public List<PhoneAccount> telecomGetAllPhoneAccounts() {
144 @Rpc(description = "Set the user-chosen default PhoneAccount for making outgoing phone calls.")
167 @Rpc(description = "Get the user-chosen default PhoneAccount for making outgoing phone calls.")
172 @Rpc(description = "Set the PhoneAccount corresponding to user selected subscription id " +
182 PhoneAccount phoneAccount =
184 if (subId == mTelephonyManager.getSubIdForPhoneAccount(phoneAccount)) {
  /frameworks/base/services/core/java/com/android/server/telecom/
TelecomLoaderService.java 108 PhoneAccountHandle phoneAccount = telecomManager.getSimCallManager();
109 if (phoneAccount != null) {
112 phoneAccount.getComponentName().getPackageName();
263 PhoneAccountHandle phoneAccount = telecomManager.getSimCallManager(userId);
264 if (phoneAccount != null) {
265 return new String[]{phoneAccount.getComponentName().getPackageName()};
334 PhoneAccountHandle phoneAccount = telecomManager.getSimCallManager(userId);
335 if (phoneAccount != null) {
337 String packageName = phoneAccount.getComponentName().getPackageName();
  /packages/apps/Dialer/java/com/android/dialer/voicemail/settings/
VoicemailSettingsFragment.java 30 import android.telecom.PhoneAccount;
194 PhoneAccount phoneAccount =
196 if (phoneAccount != null) {
197 advancedSettingsIntent.putExtra(SUB_LABEL_EXTRA, phoneAccount.getLabel());
  /packages/apps/Settings/src/com/android/settings/sim/
SimDialogActivity.java 26 import android.telecom.PhoneAccount;
129 private void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle phoneAccount) {
131 telecomManager.setUserSelectedOutgoingPhoneAccount(phoneAccount);
142 final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle);
143 if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) {
212 final PhoneAccount phoneAccount =
214 list.add((String)phoneAccount.getLabel());
215 int subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount);
    [all...]
  /packages/services/Telecomm/src/com/android/server/telecom/
NewOutgoingCallIntentBroadcaster.java 32 import android.telecom.PhoneAccount;
152 PhoneAccount.SCHEME_SIP : PhoneAccount.SCHEME_TEL,
207 boolean isVoicemailNumber = PhoneAccount.SCHEME_VOICEMAIL.equals(handle.getScheme());
229 PhoneAccount phoneAccount =
232 if (phoneAccount != null) {
233 isSelfManaged = phoneAccount.isSelfManaged();
291 String scheme = isUriNumber ? PhoneAccount.SCHEME_SIP : PhoneAccount.SCHEME_TEL
    [all...]

Completed in 702 milliseconds

1 2 3