/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/ |
OmtpVvmSourceManager.java | 79 public void addSource(PhoneAccountHandle phoneAccount) { 80 mActiveVvmSources.add(phoneAccount); 89 for (PhoneAccountHandle phoneAccount : mActiveVvmSources) { 90 if (!PhoneUtils.isPhoneAccountActive(mSubscriptionManager, phoneAccount)) { 91 removeSource(phoneAccount); 96 for (PhoneAccountHandle phoneAccount : mPhoneStateListenerMap.keySet()) { 97 if (!PhoneUtils.isPhoneAccountActive(mSubscriptionManager, phoneAccount)) { 98 removePhoneStateListener(phoneAccount); 107 public void removeSource(PhoneAccountHandle phoneAccount) { 108 VoicemailContract.Status.setStatus(mContext, phoneAccount, [all...] |
VoicemailStatusQueryHelper.java | 57 * @param phoneAccount The phone account for the voicemail source to check. 61 public boolean isVoicemailSourceConfigured(PhoneAccountHandle phoneAccount) { 62 return isFieldEqualTo(phoneAccount, CONFIGURATION_STATE, Status.CONFIGURATION_STATE_OK); 71 public boolean isNotificationsChannelActive(PhoneAccountHandle phoneAccount) { 72 return isFieldEqualTo(phoneAccount, NOTIFICATION_CHANNEL_STATE, 79 * @param phoneAccount The phone account of the voicemail source to query for. 85 private boolean isFieldEqualTo(PhoneAccountHandle phoneAccount, int columnIndex, int value) { 87 if (phoneAccount != null) { 88 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString(); 89 String phoneAccountId = phoneAccount.getId() [all...] |
OmtpVvmSyncService.java | 77 PhoneAccountHandle phoneAccount, boolean firstAttempt) { 79 if (phoneAccount != null) { 81 phoneAccount); 94 if (phoneAccount != null) { 95 serviceIntent.putExtra(EXTRA_PHONE_ACCOUNT, phoneAccount); 105 * @param phoneAccount The phone account for which to cancel syncs. 107 public static void cancelAllRetries(Context context, PhoneAccountHandle phoneAccount) { 108 cancelRetriesForIntent(context, getSyncIntent(context, SYNC_FULL_SYNC, phoneAccount, 147 PhoneAccountHandle phoneAccount = intent.getParcelableExtra(EXTRA_PHONE_ACCOUNT); 150 " for all accounts: " + String.valueOf(phoneAccount == null)) [all...] |
VoicemailsQueryHelper.java | 200 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount(); 201 if (phoneAccount != null) { 202 String phoneAccountComponentName = phoneAccount.getComponentName().flattenToString(); 203 String phoneAccountId = phoneAccount.getId();
|
/packages/services/Telephony/src/com/android/phone/settings/ |
VisualVoicemailSettingsUtil.java | 59 public static void setVisualVoicemailEnabled(Context context, PhoneAccountHandle phoneAccount, 64 getVisualVoicemailSharedPrefsKey(IS_ENABLED_KEY, phoneAccount), isEnabled); 66 getVisualVoicemailSharedPrefsKey(IS_USER_SET, phoneAccount), 72 PhoneAccountHandle phoneAccount) { 73 if (phoneAccount == null) { 77 return prefs.getBoolean(getVisualVoicemailSharedPrefsKey(IS_ENABLED_KEY, phoneAccount), 92 PhoneAccountHandle phoneAccount) { 93 if (phoneAccount == null) { 98 getVisualVoicemailSharedPrefsKey(IS_USER_SET, phoneAccount), 103 PhoneAccountHandle phoneAccount, StatusMessage message) [all...] |
/packages/services/Telephony/src/com/android/phone/vvm/omtp/ |
VvmPackageInstallReceiver.java | 47 for (PhoneAccountHandle phoneAccount : phoneAccounts) { 48 if (VisualVoicemailSettingsUtil.isVisualVoicemailUserSet(context, phoneAccount)) { 54 context, PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccount)); 57 context, phoneAccount, false, false); 58 OmtpVvmSourceManager.getInstance(context).removeSource(phoneAccount);
|
SimChangeReceiver.java | 73 PhoneAccountHandle phoneAccount = PhoneUtils.makePstnPhoneAccountHandle( 77 context, phoneAccount); 80 phoneAccount); 87 VisualVoicemailSettingsUtil.setVisualVoicemailEnabled(context, phoneAccount, 93 + " activation for " + phoneAccount.getId()); 98 phoneAccount); 103 OmtpVvmSourceManager.getInstance(context).removeSource(phoneAccount);
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
CallNotificationReceiver.java | 76 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( 88 TelecomManager.from(context).addNewIncomingCall(phoneAccount, extras); 93 PhoneAccountHandle phoneAccount = new PhoneAccountHandle( 106 TelecomManager.from(context).addNewUnknownCall(phoneAccount, extras);
|
/frameworks/base/telecomm/java/android/telecom/ |
PhoneAccount.java | 46 * {@link TelecomManager} uses registered {@link PhoneAccount}s to present the user with 47 * alternative options when placing a phone call. When building a {@link PhoneAccount}, the app 51 public final class PhoneAccount implements Parcelable { 54 * Flag indicating that this {@code PhoneAccount} can act as a connection manager for 55 * other connections. The {@link ConnectionService} associated with this {@code PhoneAccount} 60 * {@link ConnectionService} associated with this {@code PhoneAccount} will be attempted first 68 * Flag indicating that this {@code PhoneAccount} can make phone calls in place of 80 * Flag indicating that this {@code PhoneAccount} represents a built-in PSTN SIM 83 * Only the Android framework can register a {@code PhoneAccount} having this capability. 90 * Flag indicating that this {@code PhoneAccount} is capable of placing video calls [all...] |
ParcelableConference.java | 45 PhoneAccountHandle phoneAccount, 54 mPhoneAccount = phoneAccount; 126 PhoneAccountHandle phoneAccount = source.readParcelable(classLoader); 138 return new ParcelableConference(phoneAccount, state, capabilities, connectionIds,
|
ParcelableConnection.java | 55 PhoneAccountHandle phoneAccount, 71 mPhoneAccount = phoneAccount; 174 PhoneAccountHandle phoneAccount = source.readParcelable(classLoader); 194 phoneAccount,
|
TelecomManager.java | 71 * configuration dialog for a registered {@link PhoneAccount}. There is no default dialog 72 * and each app that registers a {@link PhoneAccount} should provide one if desired. 74 * A user can access the list of enabled {@link android.telecom.PhoneAccount}s through the Phone 77 * {@link #EXTRA_PHONE_ACCOUNT_HANDLE} to indicate the {@link PhoneAccount} to configure. If the 78 * {@link PhoneAccount} package does not register an {@link android.app.Activity} for this 104 * {@link PhoneAccount} preferences. 182 * {@link PhoneAccount} supports the capability {@link PhoneAccount#CAPABILITY_CALL_SUBJECT}. 418 * Return the {@link PhoneAccount} which will be used to place outgoing calls to addresses with 419 * the specified {@code uriScheme}. This {@link PhoneAccount} will always be a member of th [all...] |
/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/services/Telecomm/src/com/android/server/telecom/ |
CreateConnectionProcessor.java | 23 import android.telecom.PhoneAccount; 50 // The PhoneAccount describing the target connection service which we will 53 // The PhoneAccount which we will tell the target connection service to use 180 // If the target PhoneAccount differs from the ConnectionManager phone acount, ensure it 186 "Target PhoneAccount does not have BIND_TELECOM_CONNECTION_SERVICE for " 195 PhoneAccountHandle phoneAccount = attempt.connectionManagerPhoneAccount; 198 phoneAccount.getComponentName(), 199 phoneAccount.getUserHandle()); 269 PhoneAccount targetPhoneAccount = mPhoneAccountRegistrar.getPhoneAccountCheckCallingUser( 276 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) != 0 [all...] |
PhoneAccountRegistrar.java | 40 import android.telecom.PhoneAccount; 171 PhoneAccount account = getPhoneAccountCheckCallingUser(accountHandle); 173 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 193 // If there is a default PhoneAccount, ensure it supports calls to handles with the 195 final PhoneAccount userSelectedAccount = getPhoneAccountCheckCallingUser(userSelected); 216 * @return The user-selected outgoing {@link PhoneAccount}, or null if it hasn't been set (or 220 PhoneAccount account = getPhoneAccountCheckCallingUser(mState.defaultOutgoing); 237 PhoneAccount account = getPhoneAccount(accountHandle); 244 if (!account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)) { 250 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
MockConference.java | 35 public MockConference(PhoneAccountHandle phoneAccount) { 36 super(phoneAccount);
|
PhoneAccountOperationsTest.java | 25 import android.telecom.PhoneAccount; 36 * Verifies some of the PhoneAccount registration related operations. 42 public static final PhoneAccount TEST_SIM_PHONE_ACCOUNT = PhoneAccount.builder( 46 .setCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) 49 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) 52 public static final PhoneAccount TEST_NO_SIM_PHONE_ACCOUNT = PhoneAccount.builder( 56 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 57 PhoneAccount.CAPABILITY_VIDEO_CALLING [all...] |
/frameworks/base/core/java/android/provider/ |
VoicemailContract.java | 31 import android.telecom.PhoneAccount; 216 * The {@link ComponentName} of the {@link PhoneAccount} in string form. The 217 * {@link PhoneAccount} of the voicemail is used to differentiate voicemails from different 224 * The identifier of a {@link PhoneAccount} that is unique to a specified 225 * {@link ComponentName}. The {@link PhoneAccount} of the voicemail is used to differentiate 316 PhoneAccountHandle phoneAccount = voicemail.getPhoneAccount(); 317 if (phoneAccount != null) { 319 phoneAccount.getComponentName().flattenToString()); 320 contentValues.put(Voicemails.PHONE_ACCOUNT_ID, phoneAccount.getId()); 354 * The {@link ComponentName} of the {@link PhoneAccount} in string form. Th [all...] |
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
ITelecomService.aidl | 23 import android.telecom.PhoneAccount; 73 PhoneAccount getPhoneAccount(in PhoneAccountHandle account); 83 List<PhoneAccount> getAllPhoneAccounts(); 103 void registerPhoneAccount(in PhoneAccount metadata); 214 void addNewIncomingCall(in PhoneAccountHandle phoneAccount, in Bundle extras); 219 void addNewUnknownCall(in PhoneAccountHandle phoneAccount, in Bundle extras);
|
/packages/apps/Settings/src/com/android/settings/sim/ |
SimDialogActivity.java | 26 import android.telecom.PhoneAccount; 130 private void setUserSelectedOutgoingPhoneAccount(PhoneAccountHandle phoneAccount) { 132 telecomManager.setUserSelectedOutgoingPhoneAccount(phoneAccount); 143 final PhoneAccount phoneAccount = telecomManager.getPhoneAccount(phoneAccountHandle); 144 if (subId == telephonyManager.getSubIdForPhoneAccount(phoneAccount)) { 213 final PhoneAccount phoneAccount = 215 list.add((String)phoneAccount.getLabel()); 216 int subId = telephonyManager.getSubIdForPhoneAccount(phoneAccount); [all...] |
SimSettings.java | 184 final PhoneAccountHandle phoneAccount = 190 simPref.setSummary(phoneAccount == null 192 : (String)telecomManager.getPhoneAccount(phoneAccount).getLabel());
|
/packages/services/Telephony/src/com/android/phone/vvm/omtp/imap/ |
ImapHelper.java | 65 public ImapHelper(Context context, PhoneAccountHandle phoneAccount, Network network) { 68 mPhoneAccount = phoneAccount; 72 OmtpConstants.IMAP_USER_NAME, phoneAccount); 74 OmtpConstants.IMAP_PASSWORD, phoneAccount); 76 OmtpConstants.SERVER_ADDRESS, phoneAccount); 79 OmtpConstants.IMAP_PORT, phoneAccount)); 83 PhoneUtils.getSubIdForPhoneAccountHandle(phoneAccount));
|
/packages/services/Telephony/src/com/android/services/telephony/ |
CdmaConference.java | 40 public CdmaConference(PhoneAccountHandle phoneAccount) { 41 super(phoneAccount);
|
TelephonyConference.java | 35 public TelephonyConference(PhoneAccountHandle phoneAccount) { 36 super(phoneAccount);
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
SipAccountRegistry.java | 23 import android.telecom.PhoneAccount; 34 * Manages the {@link PhoneAccount} entries for SIP calling. 121 * Checks the existing SIP phone {@link PhoneAccount}s registered with telecom and deletes any 130 PhoneAccount.SCHEME_SIP); 144 * {@link PhoneAccount}. 170 * Stops a SIP profile and un-registers its associated {@link android.telecom.PhoneAccount}. 187 // Un-register its PhoneAccount. 206 * specified SIP profile and registering its {@link android.telecom.PhoneAccount}. 243 // Register a PhoneAccount for the profile and optionally enable the primary 246 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile) [all...] |