Home
last modified time | relevance | path

Searched refs:mTelecomManager (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/telecom/src/android/telecom/cts/
DPhoneAccountOperationsTest.java89 private TelecomManager mTelecomManager; field in PhoneAccountOperationsTest
98 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
106 mTelecomManager.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in tearDown()
107 PhoneAccount retrievedPhoneAccount = mTelecomManager.getPhoneAccount( in tearDown()
118 mTelecomManager.registerPhoneAccount(TEST_SIM_PHONE_ACCOUNT); in testRegisterPhoneAccount_correctlyThrowsSecurityException()
131 mTelecomManager.registerPhoneAccount(TEST_NO_SIM_PHONE_ACCOUNT); in testRegisterPhoneAccount_NotEnabledAutomatically()
132 PhoneAccount retrievedPhoneAccount = mTelecomManager.getPhoneAccount( in testRegisterPhoneAccount_NotEnabledAutomatically()
160 mTelecomManager.registerPhoneAccount(phoneAccount); in testRegisterPhoneAccount_DisallowEnable()
161 PhoneAccount retrievedPhoneAccount = mTelecomManager.getPhoneAccount( in testRegisterPhoneAccount_DisallowEnable()
172 mTelecomManager.registerPhoneAccount(TEST_NO_SIM_PHONE_ACCOUNT); in testRegisterPhoneAccount_ListEnabledAccounts()
[all …]
DDefaultDialerOperationsTest.java37 private TelecomManager mTelecomManager; field in DefaultDialerOperationsTest
57 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
58 final List<PhoneAccountHandle> accounts = mTelecomManager.getCallCapablePhoneAccounts(); in setUp()
78 assertEquals(mSystemDialer, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage()
80 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetDefaultDialerPackage()
122 mTelecomManager.silenceRinger(); in testSilenceRingerPermissions()
130 mTelecomManager.silenceRinger(); in testSilenceRingerPermissions()
139 mTelecomManager.cancelMissedCallsNotification(); in testCancelMissedCallsNotificationPermissions()
147 mTelecomManager.cancelMissedCallsNotification(); in testCancelMissedCallsNotificationPermissions()
156 mTelecomManager.handleMmi("0"); in testHandlePinMmPermissions()
[all …]
DSimCallManagerTest.java56 private TelecomManager mTelecomManager; field in SimCallManagerTest
75 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
95 assertEquals(mSystemDialer, mTelecomManager.getDefaultDialerPackage()); in testGetSimCallManager()
96 assertNotSame(TEST_PHONE_ACCOUNT_HANDLE, mTelecomManager.getSimCallManager()); in testGetSimCallManager()
112 PhoneAccountHandle simCallManager = mTelecomManager.getSimCallManager(); in testGetSimCallManager()
114 assertEquals(TestUtils.PACKAGE, mTelecomManager.getDefaultDialerPackage()); in testGetSimCallManager()
115 assertNotSame(TEST_PHONE_ACCOUNT_HANDLE, mTelecomManager.getSimCallManager()); in testGetSimCallManager()
123 mTelecomManager.registerPhoneAccount(TEST_SIM_CALL_MANAGER_ACCOUNT); in testGetSimCallManager()
127 mTelecomManager.getSimCallManager()); in testGetSimCallManager()
131 assertNotSame(TEST_PHONE_ACCOUNT_HANDLE, mTelecomManager.getSimCallManager()); in testGetSimCallManager()
DCallScreeningServiceTest.java58 private TelecomManager mTelecomManager; field in CallScreeningServiceTest
67 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
80 mTelecomManager.unregisterPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE); in tearDown()
116 mTelecomManager.addNewIncomingCall(TEST_PHONE_ACCOUNT_HANDLE, extras); in addNewIncomingCall()
141 mTelecomManager.registerPhoneAccount(TEST_PHONE_ACCOUNT);
157 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle);
DIncomingCallTest.java70 mTelecomManager.addNewIncomingCall(TEST_INVALID_HANDLE, extras); in testAddNewIncomingCall_IncorrectPhoneAccountHandle()
91 assertFalse(mTelecomManager.getPhoneAccount(TEST_PHONE_ACCOUNT_HANDLE).isEnabled()); in testAddNewIncomingCall_PhoneAccountNotEnabled()
DBaseTelecomTestWithMockServices.java79 TelecomManager mTelecomManager; field in BaseTelecomTestWithMockServices
102 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
136 mTelecomManager.registerPhoneAccount(TEST_PHONE_ACCOUNT); in setupConnectionService()
151 mTelecomManager.unregisterPhoneAccount(accountHandle); in tearDownConnectionService()
280 mTelecomManager.addNewIncomingCall(TEST_PHONE_ACCOUNT_HANDLE, extras); in addAndVerifyNewIncomingCall()
522 mTelecomManager.placeCall(createTestNumber(), extras); in placeNewCallWithPhoneAccount()
870 return mTelecomManager.getPhoneAccount(handle) != null; in assertPhoneAccountRegistered()
888 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(handle); in assertPhoneAccountEnabled()
DBaseRemoteTelecomTest.java97 mTelecomManager.unregisterPhoneAccount(remoteAccountHandle); in tearDownRemoteConnectionService()
DExtendedInCallServiceTest.java236 mTelecomManager.addNewIncomingCall(TEST_PHONE_ACCOUNT_HANDLE, extras); in testIncomingCallFromBlockedNumber_IsRejected()
/cts/tests/tests/telecom2/src/android/telecom/cts/
DDefaultDialerOperationsNoPermissionsTest.java29 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()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DCallBlockingTest.java60 mTelecomManager.registerPhoneAccount(phoneAccount); in testRegisterPhoneAccount()
64 mTelecomManager.unregisterPhoneAccount(getPhoneAccountHandle()); in testUnregisterPhoneAccount()
65 assertNull(mTelecomManager.getPhoneAccount(getPhoneAccountHandle())); in testUnregisterPhoneAccount()
74 PhoneAccount phoneAccount = mTelecomManager.getPhoneAccount(getPhoneAccountHandle()); in testIncomingCallFromBlockedNumberIsRejected()
81 mTelecomManager.addNewIncomingCall(phoneAccount.getAccountHandle(), bundle); in testIncomingCallFromBlockedNumberIsRejected()
103 mTelecomManager.unregisterPhoneAccount(getPhoneAccountHandle()); in unregisterPhoneAccount()
104 assertNull(mTelecomManager.getPhoneAccount(getPhoneAccountHandle())); in unregisterPhoneAccount()
DBaseNumberBlockingClientTest.java29 protected TelecomManager mTelecomManager; field in BaseNumberBlockingClientTest
38 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DPhoneAccountTest.java59 private TelecomManager mTelecomManager; field in PhoneAccountTest
77 mTelecomManager = (TelecomManager) mContext.getSystemService(Context.TELECOM_SERVICE); in setUp()
135 mTelecomManager.placeCall(phoneUri, extras); in placeCallUsingTelecomManager()
169 mTelecomManager.addNewIncomingCall(phoneAccountHandle, bundle); in testIncomingCall()
205 assertNull(mTelecomManager.getPhoneAccount(PHONE_ACCOUNT_HANDLE)); in testPhoneAccountNotRegistered()
247 mTelecomManager.registerPhoneAccount(phoneAccount); in registerPhoneAccount()
250 assertNotNull(mTelecomManager.getPhoneAccount(PHONE_ACCOUNT_HANDLE)); in registerPhoneAccount()
255 mTelecomManager.unregisterPhoneAccount(PHONE_ACCOUNT_HANDLE); in unregisterPhoneAccount()
256 assertNull(mTelecomManager.getPhoneAccount(PHONE_ACCOUNT_HANDLE)); in unregisterPhoneAccount()