/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
H A D | PhoneAccountRegistrarTest.java | 166 PhoneAccount simAccountA = new PhoneAccount.Builder( in testFilterPhoneAccountForTest() 175 PhoneAccount simAccountB1 = new PhoneAccount.Builder( in testFilterPhoneAccountForTest() 181 PhoneAccount simAccountB2 = new PhoneAccount.Builder( in testFilterPhoneAccountForTest() 191 PhoneAccount simAccountC = new PhoneAccount.Builder( in testFilterPhoneAccountForTest() 694 PhoneAccount simAccount = new PhoneAccount.Builder( in testSortSimFirst() 701 PhoneAccount nonSimAccount = new PhoneAccount.Builder( in testSortSimFirst() 730 PhoneAccount account1 = new PhoneAccount.Builder( in testSortBySortOrder() 738 PhoneAccount account2 = new PhoneAccount.Builder( in testSortBySortOrder() 744 PhoneAccount account3 = new PhoneAccount.Builder( in testSortBySortOrder() 824 PhoneAccount account1 = new PhoneAccount.Builder(makeQuickAccountHandle( in testSortAll() [all …]
|
H A D | CreateConnectionProcessorTest.java | 25 import android.telecom.PhoneAccount; 87 private ArrayList<PhoneAccount> phoneAccounts; 89 private HashMap<PhoneAccount,Integer> mAccountToSub; 198 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in testConnectionManagerSuccess() 227 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in testConnectionManagerFailedFallToSim() 267 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in testConnectionManagerFailedDoNotFallToSim() 303 List<PhoneAccount> filteredList = new ArrayList<>(); in testFakeEmergencyNumber() 340 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in testEmergencyCall() 421 PhoneAccount.CAPABILITY_EMERGENCY_PREFERRED); in testEmergencyCallMultiSimTelephonyPreferred() 557 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in testEmergencyCallSimFailToConnectionManager() [all …]
|
H A D | TelecomSystemTest.java | 62 import android.telecom.PhoneAccount; 232 final PhoneAccount mPhoneAccountA0 = 233 PhoneAccount.builder( 244 final PhoneAccount mPhoneAccountA1 = 245 PhoneAccount.builder( 256 final PhoneAccount mPhoneAccountA2 = 257 PhoneAccount.builder( 268 PhoneAccount.builder( 278 PhoneAccount.builder( 290 PhoneAccount.builder( [all …]
|
H A D | MissedCallNotifierImplTest.java | 42 import android.telecom.PhoneAccount; 240 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, NO_CAPABILITY); in testDefaultDialerIncrement() 274 PhoneAccount phoneAccount = makePhoneAccount(userHandle, NO_CAPABILITY); in cancelNotificationTestInternal() 375 PhoneAccount phoneAccount = makePhoneAccount(PRIMARY_USER, in testNotifySingleCallInSecondaryUserWithMultiUserCapability() 376 PhoneAccount.CAPABILITY_MULTI_USER); in testNotifySingleCallInSecondaryUserWithMultiUserCapability() 411 if (phoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_MULTI_USER)) { in notifySingleCallTestInternal() 548 Uri escapedHandle = Uri.fromParts(PhoneAccount.SCHEME_TEL, in testLoadOneCallFromDb() 607 Uri escapedTelHandle = Uri.fromParts(PhoneAccount.SCHEME_TEL, in testLoadTwoCallsFromDb() 609 Uri escapedSipHandle = Uri.fromParts(PhoneAccount.SCHEME_SIP, in testLoadTwoCallsFromDb() 712 PhoneAccount.Builder builder = new PhoneAccount.Builder(phoneAccountHandle, "test"); in makePhoneAccount() [all …]
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | PhoneAccountRegistrar.java | 44 import android.telecom.PhoneAccount; 131 PhoneAccount phoneAccount) {} in onPhoneAccountChanged() 473 public List<PhoneAccount> filterRestrictedPhoneAccounts(List<PhoneAccount> accounts) { in filterRestrictedPhoneAccounts() 736 PhoneAccount.CAPABILITY_CALL_PROVIDER | PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION, in getSimPhoneAccounts() 891 PhoneAccount phoneAccount = it.next(); in clearAccounts() 952 private String getAccountDiffString(PhoneAccount account1, PhoneAccount account2) { in getAccountDiffString() 1061 for (PhoneAccount m : mState.accounts) { in getPhoneAccountUnchecked() 1122 private List<PhoneAccount> getPhoneAccounts( in getPhoneAccounts() 1143 private List<PhoneAccount> getPhoneAccounts( in getPhoneAccounts() 1151 for (PhoneAccount m : mState.accounts) { in getPhoneAccounts() [all …]
|
H A D | CreateConnectionProcessor.java | 25 import android.telecom.PhoneAccount; 333 PhoneAccount targetPhoneAccount = mPhoneAccountRegistrar in shouldSetConnectionManager() 340 PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) != 0; in shouldSetConnectionManager() 368 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergencyNoSimRequired() 389 List<PhoneAccount> allAccounts = mPhoneAccountRegistrar in adjustAttemptsForEmergency() 399 allAccounts = new ArrayList<PhoneAccount>(); in adjustAttemptsForEmergency() 416 for (PhoneAccount phoneAccount : allAccounts) { in adjustAttemptsForEmergency() 434 PhoneAccount callManager = mPhoneAccountRegistrar in adjustAttemptsForEmergency() 588 PhoneAccount userPreferredAccount) { in sortSimPhoneAccountsForEmergency() 603 PhoneAccount.CAPABILITY_EMERGENCY_PREFERRED); in sortSimPhoneAccountsForEmergency() [all …]
|
H A D | TelephonyUtil.java | 22 import android.telecom.PhoneAccount; 57 public static PhoneAccount getDefaultEmergencyPhoneAccount() { in getDefaultEmergencyPhoneAccount() 58 return PhoneAccount.builder(DEFAULT_EMERGENCY_PHONE_ACCOUNT_HANDLE, "E") in getDefaultEmergencyPhoneAccount() 59 .setCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION | in getDefaultEmergencyPhoneAccount() 60 PhoneAccount.CAPABILITY_CALL_PROVIDER | in getDefaultEmergencyPhoneAccount() 61 PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS) in getDefaultEmergencyPhoneAccount()
|
/aosp12/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | CallServiceNotifier.java | 33 import android.telecom.PhoneAccount; 129 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount() 135 PhoneAccount.CAPABILITY_VIDEO_CALLING | in registerPhoneAccount() 136 PhoneAccount.CAPABILITY_RTT | in registerPhoneAccount() 150 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount() 157 PhoneAccount.CAPABILITY_VIDEO_CALLING | in registerPhoneAccount() 158 PhoneAccount.CAPABILITY_RTT | in registerPhoneAccount() 170 telecomManager.registerPhoneAccount(PhoneAccount.builder( in registerPhoneAccount() 177 PhoneAccount.CAPABILITY_VIDEO_CALLING | in registerPhoneAccount() 178 PhoneAccount.CAPABILITY_RTT | in registerPhoneAccount() [all …]
|
H A D | SelfManagedCallList.java | 25 import android.telecom.PhoneAccount; 59 private static Uri SELF_MANAGED_ADDRESS_1 = Uri.fromParts(PhoneAccount.SCHEME_TEL, "555-1212", 61 private static Uri SELF_MANAGED_ADDRESS_2 = Uri.fromParts(PhoneAccount.SCHEME_SIP, 113 extras.putBoolean(PhoneAccount.EXTRA_SUPPORTS_HANDOVER_TO, true); in registerPhoneAccount() 115 extras.putBoolean(PhoneAccount.EXTRA_LOG_SELF_MANAGED_CALLS, true); in registerPhoneAccount() 120 PhoneAccount.Builder builder = PhoneAccount.builder(handle, name) in registerPhoneAccount() 121 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) in registerPhoneAccount() 122 .addSupportedUriScheme(PhoneAccount.SCHEME_SIP) in registerPhoneAccount() 125 .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED | in registerPhoneAccount() 126 PhoneAccount.CAPABILITY_VIDEO_CALLING | in registerPhoneAccount() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
H A D | SimulatorSimCallManager.java | 27 import android.telecom.PhoneAccount; 166 private static PhoneAccount buildSimCallManagerAccount(Context context) { in buildSimCallManagerAccount() 168 .setCapabilities(PhoneAccount.CAPABILITY_CONNECTION_MANAGER | PhoneAccount.CAPABILITY_RTT) in buildSimCallManagerAccount() 170 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) in buildSimCallManagerAccount() 175 private static PhoneAccount buildVideoProviderAccount(Context context) { in buildVideoProviderAccount() 178 PhoneAccount.CAPABILITY_CALL_PROVIDER in buildVideoProviderAccount() 179 | PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING in buildVideoProviderAccount() 180 | PhoneAccount.CAPABILITY_VIDEO_CALLING) in buildVideoProviderAccount() 182 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) in buildVideoProviderAccount() 208 PhoneAccount account = telecomManager.getPhoneAccount(handle); in getSystemPhoneAccountHandle() [all …]
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllogutils/ |
H A D | PhoneAccountUtils.java | 21 import android.telecom.PhoneAccount; 32 PhoneAccount account = getAccountOrNull(context, accountHandle); in getAccountLabel() 41 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountColor() 45 return account == null ? PhoneAccount.NO_HIGHLIGHT_COLOR : account.getHighlightColor(); in getAccountColor() 55 final PhoneAccount account = TelecomUtil.getPhoneAccount(context, accountHandle); in getAccountSupportsCallSubject() 57 return account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT); in getAccountSupportsCallSubject() 65 private static PhoneAccount getAccountOrNull( in getAccountOrNull()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/util/ |
H A D | CallUtil.java | 22 import android.telecom.PhoneAccount; 50 return Uri.fromParts(PhoneAccount.SCHEME_SIP, number, null); in getCallUri() 52 return Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null); in getCallUri() 77 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in getVideoCallingAvailability() 79 if (account.hasCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING)) { in getVideoCallingAvailability() 81 if (account.hasCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING_RELIES_ON_PRESENCE)) { in getVideoCallingAvailability() 138 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isCallWithSubjectSupported() 139 if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT)) { in isCallWithSubjectSupported()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/compat/ |
H A D | 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) { in getExtras()
|
H A D | PhoneAccountCompat.java | 22 import android.telecom.PhoneAccount; 39 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) { in getIcon() 61 public static Drawable createIconDrawable(@Nullable PhoneAccount phoneAccount, in createIconDrawable() 78 private static Drawable createIconDrawableMarshmallow(PhoneAccount phoneAccount, in createIconDrawableMarshmallow() 88 private static Drawable createIconDrawableLollipopMr1(PhoneAccount phoneAccount, in createIconDrawableLollipopMr1() 91 return (Drawable) PhoneAccount.class.getMethod("createIconDrawable", Context.class) in createIconDrawableLollipopMr1()
|
/aosp12/packages/services/Telephony/src/com/android/services/telephony/ |
H A D | TelecomAccountRegistry.java | 42 import android.telecom.PhoneAccount; 121 private PhoneAccount mAccount; 294 int color = PhoneAccount.NO_HIGHLIGHT_COLOR; in buildPstnPhoneAccount() 356 PhoneAccount.CAPABILITY_CALL_PROVIDER | in buildPstnPhoneAccount() 357 PhoneAccount.CAPABILITY_MULTI_USER; in buildPstnPhoneAccount() 369 capabilities |= PhoneAccount.CAPABILITY_RTT; in buildPstnPhoneAccount() 376 capabilities |= PhoneAccount.CAPABILITY_CALL_COMPOSER; in buildPstnPhoneAccount() 409 capabilities |= PhoneAccount.CAPABILITY_CALL_SUBJECT; in buildPstnPhoneAccount() 440 extras.putInt(PhoneAccount.EXTRA_SORT_ORDER, slotId); in buildPstnPhoneAccount() 491 PhoneAccount account = PhoneAccount.builder(phoneAccountHandle, label) in buildPstnPhoneAccount() [all …]
|
/aosp12/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
H A D | SipUtil.java | 29 import android.telecom.PhoneAccount; 113 static PhoneAccount createPhoneAccount(Context context, SipProfile profile) { in createPhoneAccount() 124 supportedUriSchemes.add(PhoneAccount.SCHEME_SIP); in createPhoneAccount() 126 supportedUriSchemes.add(PhoneAccount.SCHEME_TEL); in createPhoneAccount() 130 phoneAccountExtras.putBoolean(PhoneAccount.EXTRA_ALWAYS_USE_VOIP_AUDIO_MODE, in createPhoneAccount() 133 PhoneAccount.Builder builder = PhoneAccount.builder(accountHandle, profile.getDisplayName()) in createPhoneAccount() 134 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER in createPhoneAccount() 135 | PhoneAccount.CAPABILITY_MULTI_USER) in createPhoneAccount()
|
/aosp12/packages/services/Telephony/src/com/android/phone/settings/ |
H A D | PhoneAccountSettingsFragment.java | 14 import android.telecom.PhoneAccount; 222 List<PhoneAccount> accounts = new ArrayList<>(); in initAccountList() 224 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in initAccountList() 231 Collections.sort(accounts, new Comparator<PhoneAccount>() { in initAccountList() 233 public int compare(PhoneAccount account1, PhoneAccount account2) { in initAccountList() 237 boolean isSim1 = account1.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList() 276 for (PhoneAccount account : accounts) { in initAccountList() 281 if (account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { in initAccountList() 304 account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in initAccountList() 369 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in getCallingAccounts() [all …]
|
/aosp12/frameworks/base/cmds/telecom/src/com/android/commands/telecom/ |
H A D | Telecom.java | 31 import android.telecom.PhoneAccount; 279 PhoneAccount account = PhoneAccount.builder(handle, label) in runRegisterPhoneAccount() 280 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER).build(); in runRegisterPhoneAccount() 299 int capabilities = PhoneAccount.CAPABILITY_CALL_PROVIDER in runRegisterSimPhoneAccount() 300 | PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION in runRegisterSimPhoneAccount() 301 | (isEmergencyAccount ? PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS : 0); in runRegisterSimPhoneAccount() 302 PhoneAccount account = PhoneAccount.builder( in runRegisterSimPhoneAccount() 308 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) in runRegisterSimPhoneAccount() 309 .addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL) in runRegisterSimPhoneAccount()
|
/aosp12/frameworks/base/telecomm/java/android/telecom/ |
H A D | PhoneAccount.java | 49 public final class PhoneAccount implements Parcelable { class 434 PhoneAccount that = (PhoneAccount) o; in equals() 490 public Builder(PhoneAccount phoneAccount) { in Builder() 683 public PhoneAccount build() { in build() 689 return new PhoneAccount( in build() 706 private PhoneAccount( in PhoneAccount() method in PhoneAccount 990 = new Creator<PhoneAccount>() { 993 return new PhoneAccount(in); 997 public PhoneAccount[] newArray(int size) { 998 return new PhoneAccount[size]; [all …]
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/ |
H A D | CallUtil.java | 24 import android.telecom.PhoneAccount; 137 return Uri.fromParts(PhoneAccount.SCHEME_SIP, number, null); in getCallUri() 139 return Uri.fromParts(PhoneAccount.SCHEME_TEL, number, null); in getCallUri() 166 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in getVideoCallingAvailability() 168 if (account.hasCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING)) { in getVideoCallingAvailability() 213 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isCallWithSubjectSupported() 214 … if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_CALL_SUBJECT)) { in isCallWithSubjectSupported() 249 PhoneAccount account = telecommMgr.getPhoneAccount(accountHandle); in isTachyonEnabled()
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
H A D | EnableAccountPreferenceFragment.java | 27 import android.telecom.PhoneAccount; 44 private final PhoneAccount mAccount; 46 public AccountSwitchPreference(Context context, PhoneAccount account) { in AccountSwitchPreference() 96 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in onResume() 99 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in onResume()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
H A D | HfpClientConnectionService.java | 33 import android.telecom.PhoneAccount; 278 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in getDevice() 336 PhoneAccount account = mTelecomManager.getPhoneAccount(handle); in findBlockForHandle() 344 public static PhoneAccount createAccount(Context context, BluetoothDevice device) { in createAccount() 350 int capabilities = PhoneAccount.CAPABILITY_CALL_PROVIDER; in createAccount() 355 capabilities |= PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS; in createAccount() 358 PhoneAccount account = in createAccount() 359 new PhoneAccount.Builder(handle, "HFP " + device.toString()).setAddress(addr) in createAccount() 360 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) in createAccount()
|
/aosp12/packages/apps/Dialer/java/com/android/contacts/common/compat/ |
H A D | PhoneAccountCompat.java | 22 import android.telecom.PhoneAccount; 37 @Nullable PhoneAccount phoneAccount, @Nullable Context context) { in createIconDrawable() 46 PhoneAccount phoneAccount, Context context) { in createIconDrawableMarshmallow()
|
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/telecom/ |
H A D | ProjectionCallHandlerTest.java | 41 import android.telecom.PhoneAccount; 61 private static PhoneAccount.Builder phoneAccountBuilder(String name) { in phoneAccountBuilder() 62 return PhoneAccount.builder( in phoneAccountBuilder() 69 private final PhoneAccount mHfpAccount = phoneAccountBuilder("HFP") 73 private final PhoneAccount mNonHfpAccount = phoneAccountBuilder("Non-HFP") 77 private final PhoneAccount mAccountWithNoAddress = phoneAccountBuilder("No Address").build(); 312 private Call createCall(PhoneAccount account) { in createCall() 322 private boolean shouldSuppressCallFor(PhoneAccount account) { in shouldSuppressCallFor()
|
/aosp12/packages/apps/Dialer/java/com/android/dialer/app/settings/ |
H A D | PhoneAccountSelectionFragment.java | 28 import android.telecom.PhoneAccount; 79 Context context, PhoneAccountHandle phoneAccountHandle, PhoneAccount phoneAccount) { in AccountPreference() 116 PhoneAccount account = telecomManager.getPhoneAccount(handle); in onResume() 119 0 != (account.getCapabilities() & PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION); in onResume()
|