/frameworks/base/telecomm/java/android/telecom/ |
PhoneAccount.aidl | 22 parcelable PhoneAccount;
|
PhoneAccount.java | 47 * {@link TelecomManager} uses registered {@link PhoneAccount}s to present the user with 48 * alternative options when placing a phone call. When building a {@link PhoneAccount}, the app 52 public final class PhoneAccount implements Parcelable { 55 * {@link PhoneAccount} extras key (see {@link PhoneAccount#getExtras()}) which determines the 67 * {@link PhoneAccount} extras key (see {@link PhoneAccount#getExtras()}) which determines the 81 * Flag indicating that this {@code PhoneAccount} can act as a connection manager for 82 * other connections. The {@link ConnectionService} associated with this {@code PhoneAccount} 87 * {@link ConnectionService} associated with this {@code PhoneAccount} will be attempted firs [all...] |
/packages/apps/ContactsCommon/src-N/com/android/contacts/common/compat/ |
PhoneAccountSdkCompat.java | 20 import android.telecom.PhoneAccount; 27 PhoneAccount.EXTRA_CALL_SUBJECT_MAX_LENGTH; 29 PhoneAccount.EXTRA_CALL_SUBJECT_CHARACTER_ENCODING; 32 PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE; 34 public static Bundle getExtras(PhoneAccount account) {
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
PhoneAccountOperationsTest.java | 26 import android.telecom.PhoneAccount; 37 * Verifies some of the PhoneAccount registration related operations. 48 testBundle.putInt(PhoneAccount.EXTRA_CALL_SUBJECT_MAX_LENGTH, TEST_LENGTH); 49 testBundle.putString(PhoneAccount.EXTRA_CALL_SUBJECT_CHARACTER_ENCODING, TEST_ENCODING); 53 public static final PhoneAccount TEST_SIM_PHONE_ACCOUNT = PhoneAccount.builder( 57 .setCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) 60 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) 63 public static final PhoneAccount TEST_NO_SIM_PHONE_ACCOUNT = PhoneAccount.builder [all...] |
NumberDialingTest.java | 24 import android.telecom.PhoneAccount; 45 PhoneAccount account = setupConnectionService(
|
CallScreeningServiceTest.java | 31 import android.telecom.PhoneAccount; 49 public static final PhoneAccount TEST_PHONE_ACCOUNT = PhoneAccount.builder( 52 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 53 PhoneAccount.CAPABILITY_CONNECTION_MANAGER) 54 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 157 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle); 158 return (phoneAccount != null && phoneAccount.isEnabled()) [all...] |
SimCallManagerTest.java | 29 import android.telecom.PhoneAccount; 45 public static final PhoneAccount TEST_SIM_CALL_MANAGER_ACCOUNT = PhoneAccount.builder( 49 .setCapabilities(PhoneAccount.CAPABILITY_CONNECTION_MANAGER)
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
TelephonyUtil.java | 22 import android.telecom.PhoneAccount; 45 * @return fallback {@link PhoneAccount} to be used by Telecom for emergency calls in the 51 public static PhoneAccount getDefaultEmergencyPhoneAccount() { 52 return PhoneAccount.builder(DEFAULT_EMERGENCY_PHONE_ACCOUNT_HANDLE, "E") 53 .setCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION | 54 PhoneAccount.CAPABILITY_CALL_PROVIDER | 55 PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS)
|
PhoneAccountRegistrar.java | 40 import android.telecom.PhoneAccount; 103 * {@link PhoneAccount#CAPABILITY_MULTI_USER}. 172 PhoneAccount account = getPhoneAccountUnchecked(accountHandle); 174 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 195 // If there is a default PhoneAccount, ensure it supports calls to handles with the 197 final PhoneAccount userSelectedAccount = getPhoneAccountUnchecked(userSelected); 223 * @return The user-selected outgoing {@link PhoneAccount}, or null if it hasn't been set (or 237 PhoneAccount account = getPhoneAccount(defaultPhoneAccountHandle.phoneAccountHandle, 259 PhoneAccount account = getPhoneAccount(accountHandle, userHandle); 266 if (!account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER)) [all...] |
/packages/apps/ContactsCommon/src-pre-N/com/android/contacts/common/compat/ |
PhoneAccountSdkCompat.java | 20 import android.telecom.PhoneAccount; 35 public static Bundle getExtras(PhoneAccount account) {
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/compat/ |
PhoneAccountCompat.java | 22 import android.telecom.PhoneAccount; 26 * Compatiblity class for {@link android.telecom.PhoneAccount} 33 * Gets the {@link Icon} associated with the given {@link PhoneAccount} 35 * @param phoneAccount the PhoneAccount from which to retrieve the Icon 39 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) { 40 if (phoneAccount == null) { 45 return phoneAccount.getIcon(); 52 * Builds and returns an icon {@code Drawable} to represent this {@code PhoneAccount} in a use [all...] |
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
PhoneAccountUtils.java | 22 import android.telecom.PhoneAccount; 33 * Methods to help extract {@code PhoneAccount} information from database and Telecomm sources. 44 PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); 45 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { 53 * Compose PhoneAccount object from component name and account id. 69 * Extract account label from PhoneAccount object. 74 PhoneAccount account = getAccountOrNull(context, accountHandle); 82 * Extract account color from PhoneAccount object. 85 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); 87 // For single-sim devices the PhoneAccount will be NO_HIGHLIGHT_COLOR by default, so it i [all...] |
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
PhoneAccountRegistrarTest.java | 29 import android.telecom.PhoneAccount; 111 PhoneAccount input = makeQuickAccountBuilder("id0", 0) 112 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 113 .addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL) 117 PhoneAccount result = roundTripXml(this, input, PhoneAccountRegistrar.sPhoneAccountXml, 141 PhoneAccount input = makeQuickAccountBuilder("id0", 0) 142 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 143 .addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL) 146 PhoneAccount result = roundTripXml(this, input, PhoneAccountRegistrar.sPhoneAccountXml, 165 private void registerAndEnableAccount(PhoneAccount account) [all...] |
CreateConnectionProcessorTest.java | 25 import android.telecom.PhoneAccount; 133 PhoneAccount mFakeTargetPhoneAccount = makeQuickAccount("cm_acct", 134 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); 158 PhoneAccount mFakeTargetPhoneAccount = makeQuickAccount("cm_acct", 159 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); 193 PhoneAccount mFakeTargetPhoneAccount = makeQuickAccount("cm_acct", 194 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); 221 PhoneAccount callManagerPA = getNewConnectionManagerPhoneAccount("cm_acct", 0); 223 PhoneAccount emergencyPhoneAccount = makeEmergencyPhoneAccount("tel_emer"); 247 PhoneAccount callManagerPA = getNewConnectionManagerPhoneAccount("cm_acct", 0) [all...] |
MissedCallNotifierImplTest.java | 28 import android.telecom.PhoneAccount; 29 import android.telecom.PhoneAccount.Builder; 134 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); 136 phoneAccount.getAccountHandle()); 161 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); 163 phoneAccount.getAccountHandle()); 218 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY) [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/services/Telephony/src/com/android/services/telephony/ |
PstnPhoneCapabilitiesNotifier.java | 22 import android.telecom.PhoneAccount; 98 PhoneAccount oldPhoneAccount = telecomMgr.getPhoneAccount(accountHandle); 99 PhoneAccount.Builder builder = new PhoneAccount.Builder(oldPhoneAccount); 103 (oldCapabilities & PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE) 106 PhoneAccount.CAPABILITY_VIDEO_CALLING, isVideoCapable); 108 capabilites |= PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE;
|
TelecomAccountRegistry.java | 31 import android.telecom.PhoneAccount; 67 private final PhoneAccount mAccount; 78 Log.i(this, "Registered phoneAccount: %s with handle: %s", 93 private PhoneAccount registerPstnPhoneAccount(boolean isEmergency, boolean isDummyAccount) { 103 int color = PhoneAccount.NO_HIGHLIGHT_COLOR; 163 int capabilities = PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION | 164 PhoneAccount.CAPABILITY_CALL_PROVIDER | 165 PhoneAccount.CAPABILITY_MULTI_USER; 168 capabilities |= PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS; 173 capabilities |= PhoneAccount.CAPABILITY_VIDEO_CALLING [all...] |
/frameworks/base/cmds/telecom/src/com/android/commands/telecom/ |
Telecom.java | 27 import android.telecom.PhoneAccount; 139 System.out.println("Error - is " + handle + " a valid PhoneAccount?"); 146 PhoneAccount account = PhoneAccount.builder(handle, label) 147 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER).build(); 156 PhoneAccount account = PhoneAccount.builder( 160 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 161 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) 163 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL [all...] |
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
EnableAccountPreferenceFragment.java | 25 import android.telecom.PhoneAccount; 34 * Lists all call-capable {@link PhoneAccount}s which are not SIM-based and provides a settings 42 private final PhoneAccount mAccount; 44 public AccountSwitchPreference(Context context, PhoneAccount account) { 92 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); 95 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
CallUtil.java | 28 import android.telecom.PhoneAccount; 110 return Uri.fromParts(PhoneAccount.SCHEME_SIP, number, null); 112 return Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null); 119 return Uri.fromParts(PhoneAccount.SCHEME_VOICEMAIL, "", null); 145 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); 147 if (account.hasCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING)) { 197 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); 198 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT)) {
|
/packages/apps/Dialer/src/com/android/dialer/calllog/calllogcache/ |
CallLogCacheLollipop.java | 20 import android.telecom.PhoneAccount; 66 return PhoneAccount.NO_HIGHLIGHT_COLOR;
|
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/calllogcache/ |
TestTelecomCallLogCache.java | 20 import android.telecom.PhoneAccount; 58 return PhoneAccount.NO_HIGHLIGHT_COLOR;
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
CallServiceNotifier.java | 31 import android.telecom.PhoneAccount; 113 telecomManager.registerPhoneAccount(PhoneAccount.builder( 120 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 121 PhoneAccount.CAPABILITY_VIDEO_CALLING | 122 PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE) 132 telecomManager.registerPhoneAccount(PhoneAccount.builder( 139 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 140 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION | 141 PhoneAccount.CAPABILITY_VIDEO_CALLING | 142 PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE [all...] |
/frameworks/base/telecomm/java/com/android/internal/telecom/ |
ITelecomService.aidl | 25 import android.telecom.PhoneAccount; 75 PhoneAccount getPhoneAccount(in PhoneAccountHandle account); 85 List<PhoneAccount> getAllPhoneAccounts(); 105 void registerPhoneAccount(in PhoneAccount metadata); 226 void addNewIncomingCall(in PhoneAccountHandle phoneAccount, in Bundle extras); 231 void addNewUnknownCall(in PhoneAccountHandle phoneAccount, in Bundle extras);
|