/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | TelecomTestApp.java | 22 import android.telecom.PhoneAccount; 94 public static final PhoneAccount SELF_MANAGED_CS_MAIN_ACCOUNT = 95 PhoneAccount.builder(SELF_MANAGED_CS_MAIN_HANDLE, 98 PhoneAccount.CAPABILITY_SELF_MANAGED 101 public static final PhoneAccount SELF_MANAGED_CS_MAIN_ACCOUNT_CUSTOM = 102 PhoneAccount.builder(SELF_MANAGED_CS_MAIN_CUSTOM_HANDLE, 105 PhoneAccount.CAPABILITY_SELF_MANAGED 108 public static final PhoneAccount SELF_MANAGED_CS_MAIN_ACCOUNT_TRANSACTIONAL = 109 PhoneAccount.builder(SELF_MANAGED_CS_MAIN_TRANSACTIONAL_HANDLE, 112 PhoneAccount.CAPABILITY_SELF_MANAGED [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | PhoneAccountOperationsTest.java | 26 import android.telecom.PhoneAccount; 70 testBundle.putInt(PhoneAccount.EXTRA_CALL_SUBJECT_MAX_LENGTH, TEST_LENGTH); in createTestBundle() 71 testBundle.putString(PhoneAccount.EXTRA_CALL_SUBJECT_CHARACTER_ENCODING, TEST_ENCODING); in createTestBundle() 73 testBundle.putBoolean(PhoneAccount.EXTRA_SKIP_CALL_FILTERING, true); in createTestBundle() 78 public static final PhoneAccount TEST_SIM_PHONE_ACCOUNT = PhoneAccount.builder( 82 .setCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION) 85 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) 88 public static final PhoneAccount TEST_NO_SIM_PHONE_ACCOUNT = PhoneAccount.builder( 92 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 93 PhoneAccount.CAPABILITY_VIDEO_CALLING) [all …]
|
D | TestUtils.java | 39 import android.telecom.PhoneAccount; 146 public static final PhoneAccount TEST_PHONE_ACCOUNT = PhoneAccount.builder( 150 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 151 PhoneAccount.CAPABILITY_VIDEO_CALLING | 152 PhoneAccount.CAPABILITY_RTT | 153 PhoneAccount.CAPABILITY_CONNECTION_MANAGER | 154 PhoneAccount.CAPABILITY_PLACE_EMERGENCY_CALLS | 155 PhoneAccount.CAPABILITY_ADHOC_CONFERENCE_CALLING) 158 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 159 .addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL) [all …]
|
D | PhoneAccountTest.java | 21 import android.telecom.PhoneAccount; 32 PhoneAccount testPhoneAccount = PhoneAccount.builder( in testPhoneAccountCapabilitiesForCallComposer() 34 .setCapabilities(PhoneAccount.CAPABILITY_CALL_COMPOSER) in testPhoneAccountCapabilitiesForCallComposer() 36 assertTrue(testPhoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_CALL_COMPOSER)); in testPhoneAccountCapabilitiesForCallComposer() 38 testPhoneAccount = PhoneAccount.builder( in testPhoneAccountCapabilitiesForCallComposer() 40 .setCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING) in testPhoneAccountCapabilitiesForCallComposer() 42 assertFalse(testPhoneAccount.hasCapabilities(PhoneAccount.CAPABILITY_CALL_COMPOSER)); in testPhoneAccountCapabilitiesForCallComposer() 59 PhoneAccount testPhoneAccount = new PhoneAccount.Builder(handle1, "test1") in testPhoneAccountSetCallingRestriction() 67 PhoneAccount resultPA = in testPhoneAccountSetCallingRestriction() 68 PhoneAccount.CREATOR.createFromParcel(dataParceled); in testPhoneAccountSetCallingRestriction() [all …]
|
D | PhoneAccountRegistrarTest.java | 19 import static android.telecom.PhoneAccount.CAPABILITY_CALL_PROVIDER; 20 import static android.telecom.PhoneAccount.CAPABILITY_SELF_MANAGED; 32 import android.telecom.PhoneAccount; 126 ArrayList<PhoneAccount> accounts = TestUtils.generateRandomPhoneAccounts(SEED, in testRegisterMaxPhoneAccountsWithoutException() 158 PhoneAccount acct = TestUtils.buildSelfManagedPhoneAccount(acctHandle, in testExceptionThrownDueToInvalidSimultaneousCallRestriction_tooManyAccounts() 196 PhoneAccount acct = TestUtils.buildSelfManagedPhoneAccount(acctHandle, in testExceptionThrownDueToInvalidSimultaneousCallRestriction_invalidId() 231 ArrayList<PhoneAccount> accounts = TestUtils.generateRandomPhoneAccounts(SEED, in testExceptionThrownDueUserExceededMaxPhoneAccountRegistrations() 264 ArrayList<PhoneAccount> accounts = TestUtils.generateRandomPhoneAccounts(SEED, in testDisablingAccountsAfterRegStillThrowsException() 270 for (PhoneAccount pa : accounts) { in testDisablingAccountsAfterRegStillThrowsException() 303 ArrayList<PhoneAccount> accounts = new ArrayList<>(); in testDisabledAccountsThrowsException() [all …]
|
D | DefaultPhoneAccountTest.java | 27 import android.telecom.PhoneAccount; 78 PhoneAccount.SCHEME_TEL); in testDefaultIsSet() 109 PhoneAccount.SCHEME_TEL); in testSetUserSelectedOutgoingPhoneAccount() 159 PhoneAccount.SCHEME_TEL); in testGetDefaultOutgoingNoUserSelected() 242 PhoneAccount simCallManagerAcct = maybeUnregisterConnectionManagerAccount(); in testSelfManagedCallWithSimBasedPhoneAccountAsDefault() 246 ArrayList<PhoneAccount> accounts = new ArrayList<>(); in testSelfManagedCallWithSimBasedPhoneAccountAsDefault() 269 PhoneAccount simCallManagerAcct = maybeUnregisterConnectionManagerAccount(); in testSelfManagedCallWithNoCallPreferenceAsDefault() 273 ArrayList<PhoneAccount> accounts = new ArrayList<>(); in testSelfManagedCallWithNoCallPreferenceAsDefault() 297 PhoneAccount simCallManagerAcct = maybeUnregisterConnectionManagerAccount(); in testSelfManagedCallWithMultipleSimBasedAccountsActiveAndAsDefault() 301 ArrayList<PhoneAccount> accounts = new ArrayList<>(); in testSelfManagedCallWithMultipleSimBasedAccountsActiveAndAsDefault() [all …]
|
D | NullBindingTest.java | 22 import android.telecom.PhoneAccount; 37 public static final PhoneAccount TEST_NULL_BINDING_ACCOUNT = PhoneAccount.builder( 40 .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED) 41 .addSupportedUriScheme(PhoneAccount.SCHEME_SIP)
|
D | CallScreeningServiceTest.java | 29 import android.telecom.PhoneAccount; 48 public static final PhoneAccount TEST_PHONE_ACCOUNT = PhoneAccount.builder( 51 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | 52 PhoneAccount.CAPABILITY_CONNECTION_MANAGER) 53 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 256 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle);
|
D | SimCallManagerTest.java | 29 import android.telecom.PhoneAccount; 46 public static final PhoneAccount TEST_SIM_CALL_MANAGER_ACCOUNT = PhoneAccount.builder( 50 .setCapabilities(PhoneAccount.CAPABILITY_CONNECTION_MANAGER)
|
D | NumberDialingTest.java | 24 import android.telecom.PhoneAccount; 45 PhoneAccount account = setupConnectionService( in testEndInPound()
|
D | EmergencyCallOnSimCallManagerTest.java | 32 import android.telecom.PhoneAccount; 57 public static final PhoneAccount TEST_SIM_CALL_MANAGER_ACCOUNT = PhoneAccount.builder( 61 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER 62 | PhoneAccount.CAPABILITY_CONNECTION_MANAGER)
|
/cts/tests/tests/telecom-cuj/src/android/telecom/cts/cuj/app/integration/ |
D | PhoneAccountTest.java | 35 import android.telecom.PhoneAccount; 83 PhoneAccount account = verifyDefaultAccountIsRegistered(voipCsApp); in testAccountTest_ConnectionServiceVoipAppMain() 200 PhoneAccount account = verifyDefaultAccountIsRegistered(transactionalApp); in testAccountTest_TransactionalVoipAppMain() 218 final PhoneAccount expectedAccount = TRANSACTIONAL_MAIN_SUPPLEMENTARY_ACCOUNT; in testGetOwnSelfManagedPhoneAccount_TransactionalVoipAppMain() 235 List<PhoneAccount> accounts = getRegisteredPhoneAccounts(transactionalApp); in testGetOwnSelfManagedPhoneAccount_TransactionalVoipAppMain() 238 for(PhoneAccount account : accounts){ in testGetOwnSelfManagedPhoneAccount_TransactionalVoipAppMain() 274 final PhoneAccount acctVideoCap = in testMultipleAccountsWithUniquePhoneAccountHandle() 275 PhoneAccount.builder(uniqueHandle, "PA_VIDEO_CAPS") in testMultipleAccountsWithUniquePhoneAccountHandle() 277 PhoneAccount.CAPABILITY_SUPPORTS_TRANSACTIONAL_OPERATIONS in testMultipleAccountsWithUniquePhoneAccountHandle() 278 | PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING in testMultipleAccountsWithUniquePhoneAccountHandle() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | PhoneAccountUtils.java | 23 import android.telecom.PhoneAccount; 43 public static final PhoneAccount TEST_PHONE_ACCOUNT = new PhoneAccount.Builder( 46 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER) 61 PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, true); in TEST_SELF_MANAGED_PHONE_ACCOUNT_EXTRA.putBoolean() 64 public static final PhoneAccount TEST_SELF_MANAGED_PHONE_ACCOUNT = new PhoneAccount.Builder( 67 .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED) 79 public static final PhoneAccount TEST_SELF_MANAGED_PHONE_ACCOUNT_2 = new PhoneAccount.Builder( 82 .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED) 100 public static PhoneAccount getPhoneAccount(Context context) { in getPhoneAccount() 112 public static PhoneAccount getSpecificPhoneAccount(Context context, PhoneAccountHandle pah) { in getSpecificPhoneAccount() [all …]
|
D | EnablePhoneAccountTestActivity.java | 20 import android.telecom.PhoneAccount; 57 PhoneAccount account = PhoneAccountUtils.getPhoneAccount(this); in onCreate() 69 PhoneAccount account = PhoneAccountUtils.getPhoneAccount(this); in onCreate()
|
/cts/tests/tests/telecom-cuj/src/android/telecom/cts/cuj/ |
D | BaseAppVerifier.java | 36 import android.telecom.PhoneAccount; 72 private static final PhoneAccount MANAGED_DEFAULT_ACCOUNT_1 = 73 PhoneAccount.builder(MANAGED_HANDLE_1, MANAGED_APP_LABEL) 76 .setCapabilities(PhoneAccount.CAPABILITY_VIDEO_CALLING 77 | PhoneAccount.CAPABILITY_CALL_PROVIDER /* needed in order to be default sub */) 79 .addSupportedUriScheme(PhoneAccount.SCHEME_SIP) 80 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 81 .addSupportedUriScheme(PhoneAccount.SCHEME_VOICEMAIL) 86 private static final PhoneAccount MANAGED_DEFAULT_ACCOUNT_2 = 87 PhoneAccount.builder(MANAGED_HANDLE_2, MANAGED_APP_LABEL) [all …]
|
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/transaction/ |
D | PhoneAccountTransaction.java | 21 import android.telecom.PhoneAccount; 27 public PhoneAccount getPhoneAccount() { in getPhoneAccount() 31 PhoneAccount mPhoneAccount; 33 public PhoneAccountTransaction(TestAppTransaction result, PhoneAccount phoneAccount) { in PhoneAccountTransaction() 70 PhoneAccount.class));
|
/cts/tests/tests/telecom3/src/android/telecom/cts/ |
D | SelfManagedAwareInCallServiceTest.java | 25 import android.telecom.PhoneAccount; 56 PhoneAccount.EXTRA_ADD_SELF_MANAGED_CALLS_TO_INCALLSERVICE, true); in TEST_SELF_MANAGED_EXTRA.putBoolean() 59 public static final PhoneAccount TEST_SELF_MANAGED_PHONE_ACCOUNT = PhoneAccount.builder( 63 .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED | 64 PhoneAccount.CAPABILITY_SUPPORTS_VIDEO_CALLING | 65 PhoneAccount.CAPABILITY_VIDEO_CALLING) 68 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) 69 .addSupportedUriScheme(PhoneAccount.SCHEME_SIP)
|
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | CallBlockingTest.java | 28 import android.telecom.PhoneAccount; 54 final PhoneAccount phoneAccount = PhoneAccount.builder( in testRegisterPhoneAccount() 57 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER) in testRegisterPhoneAccount() 59 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) in testRegisterPhoneAccount() 77 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(getPhoneAccountHandle()); in testIncomingCallFromBlockedNumberIsRejected() 82 final Uri phoneUri = Uri.fromParts(PhoneAccount.SCHEME_TEL, mBlockedPhoneNumber, null); in testIncomingCallFromBlockedNumberIsRejected() 153 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle); in assertPhoneAccountRegistered()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40086/src/android/security/cts/CVE_2023_40086/ |
D | DeviceTest.java | 37 import android.telecom.PhoneAccount; 91 final PhoneAccount testPhoneAccount = in testPocCVE_2023_40086() 92 PhoneAccount.builder(testPhoneAccountHandle, "cve_2023_40086_label" /* label */) in testPocCVE_2023_40086() 97 .setCapabilities(PhoneAccount.CAPABILITY_SELF_MANAGED) in testPocCVE_2023_40086() 123 List<PhoneAccount> phoneAccounts = in testPocCVE_2023_40086() 125 for (PhoneAccount phoneAccount : phoneAccounts) { in testPocCVE_2023_40086()
|
/cts/tests/tests/security/src/android/security/cts/CVE_2022_20129/ |
D | CVE_2022_20129.java | 20 import static android.telecom.PhoneAccount.CAPABILITY_CALL_PROVIDER; 32 import android.telecom.PhoneAccount; 76 PhoneAccount account = in testPocCVE_2022_20129() 77 new PhoneAccount.Builder(handle, packageName + i) in testPocCVE_2022_20129() 79 .addSupportedUriScheme(PhoneAccount.SCHEME_TEL) in testPocCVE_2022_20129()
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | CallNotificationTestPlayerListener.java | 26 import android.telecom.PhoneAccount; 50 private PhoneAccount getSamplePhoneAccount() { in getSamplePhoneAccount() 53 return PhoneAccount.builder(mPhoneAccountHandle, "SamplePhoneAccount") in getSamplePhoneAccount() 54 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER) in getSamplePhoneAccount()
|
/cts/tests/tests/telecom/aidl/android/telecom/cts/carmodetestapp/ |
D | ICtsCarModeInCallServiceControl.aidl | 19 import android.telecom.PhoneAccount; 34 void registerPhoneAccount(in PhoneAccount phoneAccount); in registerPhoneAccount()
|
/cts/tests/tests/telecom-apps/Utils/aidl/android/telecom/cts/apps/ |
D | IAppControl.aidl | 24 import android.telecom.PhoneAccount; 45 List<PhoneAccount> getRegisteredPhoneAccounts(); in getRegisteredPhoneAccounts() 46 void registerCustomPhoneAccount(in PhoneAccount account); in registerCustomPhoneAccount()
|
/cts/tests/tests/telecom/aidl/android/telecom/cts/selfmanagedcstestapp/ |
D | ICtsSelfManagedConnectionServiceControl.aidl | 20 import android.telecom.PhoneAccount; 27 void registerPhoneAccount(in PhoneAccount phoneAccount); in registerPhoneAccount()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PhoneAccountTest.java | 37 import android.telecom.PhoneAccount; 139 PhoneAccount.SCHEME_TEL, phoneNumber, null); in placeCallUsingTelecomManager() 202 PhoneAccount.SCHEME_TEL, phoneNumber, null); in internalTestIncomingCall() 278 private PhoneAccount registerPhoneAccount() throws Exception { in registerPhoneAccount() 279 final PhoneAccount phoneAccount = PhoneAccount.builder( in registerPhoneAccount() 283 .setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER) in registerPhoneAccount() 285 .setSupportedUriSchemes(Arrays.asList(PhoneAccount.SCHEME_TEL)) in registerPhoneAccount()
|