/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DefaultPhoneAccountTest.java | 54 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testDefaultIsSet() 57 PhoneAccountHandle defaultOutgoing = mTelecomManager.getDefaultOutgoingPhoneAccount( in testDefaultIsSet() 77 mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testSetUserSelectedOutgoingPhoneAccount() 82 mTelecomManager.setUserSelectedOutgoingPhoneAccount( in testSetUserSelectedOutgoingPhoneAccount() 85 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testSetUserSelectedOutgoingPhoneAccount() 88 PhoneAccountHandle defaultOutgoing = mTelecomManager.getDefaultOutgoingPhoneAccount( in testSetUserSelectedOutgoingPhoneAccount() 121 mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testGetDefaultOutgoingNoUserSelected() 134 PhoneAccountHandle handle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testGetDefaultOutgoingNoUserSelected() 138 PhoneAccountHandle defaultOutgoing = mTelecomManager.getDefaultOutgoingPhoneAccount( in testGetDefaultOutgoingNoUserSelected() 167 mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testGetDefaultOutgoingPhoneAccountOneOrMany() [all …]
|
D | PhoneAccountOperationsTest.java | 108 private TelecomManager mTelecomManager; field in PhoneAccountOperationsTest 121 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 131 mTelecomManager.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in tearDown() 132 PhoneAccount retrievedPhoneAccount = mTelecomManager.getPhoneAccount( in tearDown() 144 mTelecomManager.registerPhoneAccount(TEST_SIM_PHONE_ACCOUNT); in testRegisterPhoneAccount_correctlyThrowsSecurityException() 157 mTelecomManager.registerPhoneAccount(TEST_NO_SIM_PHONE_ACCOUNT); in testRegisterPhoneAccount_NotEnabledAutomatically() 158 PhoneAccount retrievedPhoneAccount = mTelecomManager.getPhoneAccount( in testRegisterPhoneAccount_NotEnabledAutomatically() 189 mTelecomManager.registerPhoneAccount(phoneAccount); in testRegisterPhoneAccount_DisallowEnable() 190 PhoneAccount retrievedPhoneAccount = mTelecomManager.getPhoneAccount( in testRegisterPhoneAccount_DisallowEnable() 201 mTelecomManager.registerPhoneAccount(TEST_NO_SIM_PHONE_ACCOUNT); in testRegisterPhoneAccount_ListEnabledAccounts() [all …]
|
D | DefaultDialerOperationsTest.java | 50 private TelecomManager mTelecomManager; field in DefaultDialerOperationsTest 72 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 74 final List<PhoneAccountHandle> accounts = mTelecomManager.getCallCapablePhoneAccounts(); in setUp() 94 assertEquals(mSystemDialer, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage() 96 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage() 97 assertEquals(mTelecomManager.getDefaultDialerPackage(), in testGetDefaultDialerPackage() 98 ShellIdentityUtils.invokeMethodWithShellPermissions(mTelecomManager, in testGetDefaultDialerPackage() 110 assertEquals(info.activityInfo.packageName, mTelecomManager.getDefaultDialerPackage()); in testActionDialHandling() 183 mTelecomManager.silenceRinger(); in testSilenceRingerPermissions() 191 mTelecomManager.silenceRinger(); in testSilenceRingerPermissions() [all …]
|
D | SelfManagedConnectionServiceTest.java | 68 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_1); in setUp() 69 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_2); in setUp() 70 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_3); in setUp() 71 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_4); in setUp() 83 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_1); in tearDown() 84 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_2); in tearDown() 85 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_3); in tearDown() 99 mTelecomManager.getSelfManagedPhoneAccounts(); in testTelecomManagerGetSelfManagedPhoneAccounts() 130 PhoneAccount registeredAccount = mTelecomManager.getPhoneAccount(handle); in verifyAccountRegistration() 213 mTelecomManager.registerPhoneAccount(toRegister); in registerAndExpectFailure() [all …]
|
D | PhoneAccountSuggestionServiceTest.java | 47 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in setUp() 48 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_2); in setUp() 49 mCachedDefaultHandle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in setUp() 51 () -> mTelecomManager.setUserSelectedOutgoingPhoneAccount(null)); in setUp() 66 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in tearDown() 67 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2); in tearDown() 69 mTelecomManager.setUserSelectedOutgoingPhoneAccount(mCachedDefaultHandle)); in tearDown() 92 mTelecomManager.placeCall(number, new Bundle()); in testSuggestionFlow() 136 mTelecomManager.placeCall(number, new Bundle()); in testSuggestionTimeout() 171 mTelecomManager.placeCall(number, new Bundle()); in testEmptySuggestions() [all …]
|
D | AdhocConferenceTest.java | 48 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in setUp() 59 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDLE); in tearDown() 68 mTelecomManager.startConference(PARTICIPANTS, extra); in testStartConference() 82 mTelecomManager.startConference(participants, extra); in testStartConferenceFailed() 92 mTelecomManager.addNewIncomingConference(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extra); in testAddNewIncomingConference_onAnswer() 115 mTelecomManager.addNewIncomingConference(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extra); in testAddNewIncomingConference_onReject() 142 mTelecomManager.addNewIncomingConference(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extra); in testAddNewIncomingConferenceFailed() 152 mTelecomManager.addNewIncomingConference(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extra); in testConferenceCallAddConferenceParticipants()
|
D | OutgoingCallTest.java | 151 mTelecomManager.placeCall(Uri.fromParts("tel", TEST_EMERGENCY_NUMBER, null), extras); in testPhoneStateListenerInvokedOnOutgoingEmergencyCall() 223 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in testExtraPhoneAccountHandleAvailable() 235 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_2); in testExtraPhoneAccountHandleAvailable() 260 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in testAccountSelectionAvailable() 262 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_2); in testAccountSelectionAvailable() 265 PhoneAccountHandle cachedHandle = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in testAccountSelectionAvailable() 267 mTelecomManager.setUserSelectedOutgoingPhoneAccount(null); in testAccountSelectionAvailable() 272 mTelecomManager.placeCall(testNumber, null); in testAccountSelectionAvailable() 277 mTelecomManager.setUserSelectedOutgoingPhoneAccount(cachedHandle); in testAccountSelectionAvailable()
|
D | CallScreeningServiceTest.java | 58 private TelecomManager mTelecomManager; field in CallScreeningServiceTest 69 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 83 mTelecomManager.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in tearDown() 200 mTelecomManager.addNewIncomingCall(TEST_PHONE_ACCOUNT_HANDLE, extras); in addNewIncomingCall() 227 mTelecomManager.registerPhoneAccount(TEST_PHONE_ACCOUNT); 243 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle);
|
D | HandoverTest.java | 44 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_SRC); in setUp() 50 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDOVER_DEST); in setUp() 61 mTelecomManager.unregisterPhoneAccount( in tearDown() 63 mTelecomManager.unregisterPhoneAccount( in tearDown() 176 mTelecomManager.acceptHandover(call.getDetails().getHandle(), in testIncomingHandoverRequestValid()
|
D | TelecomManagerTest.java | 53 queue.put(mTelecomManager.getCurrentTtyMode())); in testGetCurrentTtyMode() 78 assertTrue(mTelecomManager.hasManageOngoingCallsPermission()); in testHasManageOngoingCallsPermission() 83 assertFalse(mTelecomManager.hasManageOngoingCallsPermission()); in testHasManageOngoingCallsPermission() 142 queue.put(mTelecomManager.isInEmergencyCall())); in testIsInEmergencyCall_noOngoingEmergencyCall() 175 queue.put(mTelecomManager.isInEmergencyCall())); in testIsInEmergencyCall_ongoingEmergencyCall()
|
D | BaseTelecomTestWithMockServices.java | 103 TelecomManager mTelecomManager; field in BaseTelecomTestWithMockServices 289 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 363 mTelecomManager.registerPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT); in setupConnectionService() 372 mPreviousDefaultOutgoingAccount = mTelecomManager.getUserSelectedOutgoingPhoneAccount(); in setupConnectionService() 388 mTelecomManager.unregisterPhoneAccount(accountHandle); in tearDownConnectionService() 417 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_EMERGENCY_PHONE_ACCOUNT_HANDLE); in tearDownEmergencyCalling() 585 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in addAndVerifyNewFailedIncomingCall() 623 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in addNewIncomingCall() 1106 mTelecomManager.placeCall(number, extras); in placeNewCallWithPhoneAccount() 1135 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle); in isLoggedCall() [all …]
|
D | ExtendedInCallServiceTest.java | 251 mTelecomManager.acceptRingingCall(); in testAcceptRingingCall() 273 mTelecomManager.endCall(); in testEndRingingCall() 295 mTelecomManager.acceptRingingCall(); in testEndCall() 300 mTelecomManager.endCall(); in testEndCall() 332 mTelecomManager.acceptRingingCall(); in testAcceptRingingCallTwoCalls() 368 mTelecomManager.acceptRingingCall(); in testAcceptRingingCallTwoCallsCarMode() 400 mTelecomManager.addNewIncomingCall(TEST_PHONE_ACCOUNT_HANDLE, extras); in testIncomingCallFromBlockedNumber_IsRejected()
|
D | ThirdPartyInCallServiceAppOpsPermissionTest.java | 59 private TelecomManager mTelecomManager; field in ThirdPartyInCallServiceAppOpsPermissionTest 72 mTelecomManager = mContext.getSystemService(TelecomManager.class); in setUp()
|
D | SelfManagedConnectionTest.java | 131 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SELF_MANAGED_PHONE_ACCOUNT_4); in setUp() 152 mTelecomManager.unregisterPhoneAccount(TestUtils.TEST_SELF_MANAGED_HANDLE_4); in tearDown() 352 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, in placeAndVerifySelfManagedCall() local
|
D | CallDiagnosticServiceTest.java | 42 private TelecomManager mTelecomManager; field in CallDiagnosticServiceTest 53 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 58 mTelecomManager.registerPhoneAccount(TestUtils.TEST_SIM_PHONE_ACCOUNT); in setUp()
|
D | NonUiInCallServiceTest.java | 33 mTelecomManager.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in tearDown()
|
D | IncomingCallTest.java | 187 mTelecomManager.addNewIncomingCall(TEST_INVALID_HANDLE, extras); in testAddNewIncomingCall_IncorrectPhoneAccountHandle() 208 assertFalse(mTelecomManager.getPhoneAccount(TestUtils.TEST_PHONE_ACCOUNT_HANDLE) in testAddNewIncomingCall_PhoneAccountNotEnabled()
|
D | ThirdPartyCallScreeningServiceTest.java | 322 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in testNoPostCallActivityWhenAudioProcessing() 363 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in testNoPostCallActivityForIncomingEmergencyCall() 414 mTelecomManager.addNewIncomingCall(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, extras); in addIncoming()
|
/cts/tests/tests/telecom2/src/android/telecom/cts/ |
D | DefaultDialerOperationsNoPermissionsTest.java | 29 private TelecomManager mTelecomManager; field in DefaultDialerOperationsNoPermissionsTest 48 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 68 mTelecomManager.showInCallScreen(false); in testShowInCallScreenPermissions() 80 mTelecomManager.getCallCapablePhoneAccounts(); in testGetCallCapableAccountsPermissions() 92 mTelecomManager.getDefaultOutgoingPhoneAccount("tel"); in testGetDefaultOutgoingPhoneAccount() 104 mTelecomManager.getLine1Number(null); in testGetLine1Number() 116 mTelecomManager.getVoiceMailNumber(null); in testGetVoicemailNumber() 128 mTelecomManager.isVoiceMailNumber(null, null); in testIsVoicemailNumber() 140 mTelecomManager.isInCall(); in testIsInCall()
|
D | TelecomManagerNoPermissionsTest.java | 30 private TelecomManager mTelecomManager; field in TelecomManagerNoPermissionsTest 40 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 53 mTelecomManager.endCall(); in testCannotEndCall() 94 mTelecomManager.getPhoneAccount(TestUtils.TEST_DEFAULT_PHONE_ACCOUNT_HANDLE_1); in testGetPhoneAccountCompatPermissions()
|
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | CallBlockingTest.java | 61 mTelecomManager.registerPhoneAccount(phoneAccount); in testRegisterPhoneAccount() 67 mTelecomManager.unregisterPhoneAccount(handle); in testUnregisterPhoneAccount() 77 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(getPhoneAccountHandle()); in testIncomingCallFromBlockedNumberIsRejected() 84 mTelecomManager.addNewIncomingCall(phoneAccount.getAccountHandle(), bundle); in testIncomingCallFromBlockedNumberIsRejected() 106 mTelecomManager.unregisterPhoneAccount(getPhoneAccountHandle()); in unregisterPhoneAccount() 107 assertNull(mTelecomManager.getPhoneAccount(getPhoneAccountHandle())); in unregisterPhoneAccount() 153 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle); in assertPhoneAccountRegistered()
|
D | BaseNumberBlockingClientTest.java | 30 protected TelecomManager mTelecomManager; field in BaseNumberBlockingClientTest 39 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
|
/cts/tests/tests/telecom3/src/android/telecom/cts/ |
D | SelfManagedAwareInCallServiceTest.java | 44 private TelecomManager mTelecomManager; field in SelfManagedAwareInCallServiceTest 78 mTelecomManager = (TelecomManager) context.getSystemService(Context.TELECOM_SERVICE); in setUp() 85 mTelecomManager.registerPhoneAccount(TEST_SELF_MANAGED_PHONE_ACCOUNT); in setUp() 101 mTelecomManager.unregisterPhoneAccount(TEST_SELF_MANAGED_HANDLE); in tearDown() 128 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, TEST_SELF_MANAGED_HANDLE, in testInCallServiceOutgoing() local 152 TestUtils.addIncomingCall(getInstrumentation(), mTelecomManager, TEST_SELF_MANAGED_HANDLE, in testInCallServiceIncoming() local 175 TestUtils.placeOutgoingCall(getInstrumentation(), mTelecomManager, TEST_SELF_MANAGED_HANDLE, in testSelfManagedSignalling() local
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PhoneAccountTest.java | 63 private TelecomManager mTelecomManager; field in PhoneAccountTest 81 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp() 142 mTelecomManager.placeCall(phoneUri, extras); in placeCallUsingTelecomManager() 205 mTelecomManager.addNewIncomingCall(phoneAccountHandle, bundle); in internalTestIncomingCall() 241 assertNull(mTelecomManager.getPhoneAccount(PHONE_ACCOUNT_HANDLE)); in testPhoneAccountNotRegistered() 287 mTelecomManager.registerPhoneAccount(phoneAccount); in registerPhoneAccount() 290 assertNotNull(mTelecomManager.getPhoneAccount(PHONE_ACCOUNT_HANDLE)); in registerPhoneAccount() 295 mTelecomManager.unregisterPhoneAccount(PHONE_ACCOUNT_HANDLE); in unregisterPhoneAccount() 296 assertNull(mTelecomManager.getPhoneAccount(PHONE_ACCOUNT_HANDLE)); in unregisterPhoneAccount()
|
/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/ |
D | TelephonyManagerReadPhoneStatePermissionTest.java | 51 TelecomManager mTelecomManager = null; field in TelephonyManagerReadPhoneStatePermissionTest 60 mTelecomManager = in setUp() 62 assertNotNull(mTelecomManager); in setUp() 212 mTelecomManager.getDefaultOutgoingPhoneAccount( in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
|