Home
last modified time | relevance | path

Searched refs:mTelephonyManager (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/telephony4/src/android/telephony4/cts/
DSimRestrictedApisTest.java31 private TelephonyManager mTelephonyManager; field in SimRestrictedApisTest
35 mTelephonyManager = in setUp()
40 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
41 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
68 mTelephonyManager.setLine1NumberForDisplay("", ""); in testSetLine1NumberForDisplay()
84 mTelephonyManager.iccCloseLogicalChannel( in testIccOpenLogicalChannel()
85 mTelephonyManager.iccOpenLogicalChannel("").getChannel()); in testIccOpenLogicalChannel()
101 mTelephonyManager.iccCloseLogicalChannelBySlot(0, in testIccOpenLogicalChannelBySlot()
102 mTelephonyManager.iccOpenLogicalChannel("").getChannel()); in testIccOpenLogicalChannelBySlot()
118 mTelephonyManager.iccCloseLogicalChannel(0); in testIccCloseLogicalChannel()
[all …]
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java145 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
338 mTelephonyManager = getContext().getSystemService(TelephonyManager.class) in setUp()
341 Pair<Integer, Integer> radioVersion = mTelephonyManager.getRadioHalVersion(); in setUp()
355 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
379 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
385 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
391 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
397 mTelephonyManager, (tm) -> { in saveAllowedNetworkTypesForAllReasons()
418 mTelephonyManager, in recoverAllowedNetworkType()
444 && mTelephonyManager.getPhoneCount() > 0; in hasCellular()
[all …]
DPhoneStateListenerTest.java103 private TelephonyManager mTelephonyManager; field in PhoneStateListenerTest
139 mTelephonyManager = in setUp()
151 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
188 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnServiceStateChanged()
218 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
232 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testOnUnRegisterFollowedByRegister()
242 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
271 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH); in testOnSignalStrengthChanged()
347 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testOnSignalStrengthsChanged()
434 mTelephonyManager.listen( in testOnMessageWaitingIndicatorChanged()
[all …]
DCellLocationTest.java42 private TelephonyManager mTelephonyManager; field in CellLocationTest
49 mTelephonyManager = in setUp()
58 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
74 if (mTelephonyManager.getNetworkType() != TelephonyManager.NETWORK_TYPE_LTE) { in testCellLocation()
76 mTelephonyManager.getCellLocation()); in testCellLocation()
99 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testCellLocation()
DCarrierConfigManagerTest.java71 private TelephonyManager mTelephonyManager; field in CarrierConfigManagerTest
83 mTelephonyManager = (TelephonyManager) in setUp()
109 return mTelephonyManager.isDataCapable(); in hasTelephony()
113 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
114 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_UNKNOWN && in isSimCardPresent()
115 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
119 return mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_ABSENT; in isSimCardAbsent()
272 || mTelephonyManager.getServiceState().getState() != STATE_IN_SERVICE) { in testCarrierConfigNameOverride()
292 mTelephonyManager.getSimOperatorName())) { in testCarrierConfigNameOverride()
DVisualVoicemailServiceTest.java87 private TelephonyManager mTelephonyManager; field in VisualVoicemailServiceTest
110 mTelephonyManager = mContext.getSystemService(TelephonyManager.class) in setUp()
153 mTelephonyManager.setVisualVoicemailSmsFilterSettings( in testPermissionlessService_ignored()
159 mTelephonyManager in testPermissionlessService_ignored()
490 assertEquals(PACKAGE, mTelephonyManager.getVisualVoicemailPackageName()); in testGetVisualVoicemailPackageName_isSelf()
525 mTelephonyManager.setVisualVoicemailSmsFilterSettings(settings); in getSmsFromText()
532 mTelephonyManager in getSmsFromText()
564 mTelephonyManager.setVisualVoicemailSmsFilterSettings(settings); in getSmsFromData()
570 mTelephonyManager.sendVisualVoicemailSms(mPhoneNumber, port, text, null); in getSmsFromData()
714 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in hasDataSms()
[all …]
DSmsMessageTest.java44 private TelephonyManager mTelephonyManager; field in SmsMessageTest
91 mTelephonyManager = in setUp()
165 if (TelephonyUtils.isSkt(mTelephonyManager)) { in assertRemaining()
168 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in assertRemaining()
267 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testGetSubmitPdu()
378 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testGetSmsPdu()
DTelephonyCallbackTest.java110 private TelephonyManager mTelephonyManager; field in TelephonyCallbackTest
145 mTelephonyManager = in setUp()
172 ShellIdentityUtils.invokeMethodWithShellPermissionsNoReturn(mTelephonyManager, in registerTelephonyCallbackWithPermission()
177 mTelephonyManager.registerTelephonyCallback(mSimpleExecutor, callback); in registerTelephonyCallback()
184 mTelephonyManager.unregisterTelephonyCallback(callback); in unRegisterTelephonyCallback()
254 mTelephonyManager.unregisterTelephonyCallback(mServiceStateCallback); in testOnUnRegisterFollowedByRegisterTelephonyCallback()
563 assertThat(mTelephonyManager.getRadioPowerState()).isEqualTo(mRadioPowerState); in testOnRadioPowerStateChangedByRegisterTelephonyCallback()
604 int state = ShellIdentityUtils.invokeMethodWithShellPermissions(mTelephonyManager, in testOnVoiceActivationStateChangedByRegisterTelephonyCallback()
1343 mTelephonyManager, (tm) -> { in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
1353 mTelephonyManager, in testOnAllowedNetworkTypesChangedByRegisterPhoneStateListener()
[all …]
DCarrierMessagingServiceWrapperTest.java57 private TelephonyManager mTelephonyManager; field in CarrierMessagingServiceWrapperTest
77 mTelephonyManager = mContext.getSystemService(TelephonyManager.class) in setUp()
241 if (mPhoneNumber == null) mPhoneNumber = mTelephonyManager.getLine1Number(); in getPhoneNumber()
DSmsManagerTest.java114 private TelephonyManager mTelephonyManager; field in SmsManagerTest
146 mTelephonyManager = in setUp()
150 mDestAddr = mTelephonyManager.getLine1Number(); in setUp()
157 String mccmnc = mTelephonyManager.getSimOperator(); in setUp()
225 if (TelephonyUtils.isSkt(mTelephonyManager)) { in testDivideMessage()
228 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in testDivideMessage()
264 String mccmnc = mTelephonyManager.getSimOperator(); in testSmsRetriever()
356 String mccmnc = mTelephonyManager.getSimOperator(); in testSendAndReceiveMessages()
365 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testSendAndReceiveMessages()
386 String mccmnc = mTelephonyManager.getSimOperator(); in testSmsBlocking()
/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/
DTelephonyManagerReadPhoneStatePermissionTest.java50 TelephonyManager mTelephonyManager = null; field in TelephonyManagerReadPhoneStatePermissionTest
57 mTelephonyManager = in setUp()
59 assertNotNull(mTelephonyManager); in setUp()
114 mTelephonyManager, (tm) -> tm.getCallState()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
116 mTelephonyManager, (tm) -> tm.getCallStateForSubscription()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
124 int subId = mTelephonyManager.getSubscriptionId(); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
128 mTelephonyManager, (tm) -> tm.getNetworkType()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
134 mTelephonyManager, (tm) -> tm.getDeviceSoftwareVersion()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
141 mTelephonyManager, (tm) -> tm.getCarrierConfig()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
148 mTelephonyManager, (tm) -> tm.getDataNetworkType()); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
[all …]
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java100 private TelephonyManager mTelephonyManager; field in CarrierApiTest
181 mTelephonyManager = context.getSystemService(TelephonyManager.class); in setUp()
211 .that(mTelephonyManager.getSimState()) in testSimCardPresent()
218 .that(mTelephonyManager.hasCarrierPrivileges()) in testHasCarrierPrivileges()
243 mTelephonyManager.createForSubscriptionId(info.getSubscriptionId()); in getFirstActivateCarrierPrivilegedSubscriptionId()
259 if (mTelephonyManager.getPhoneCount() == 1) { in testUpdateAvailableNetworksWithCarrierPrivilege()
264 if (mTelephonyManager.getPhoneCount() == 2 && activeSubscriptionInfoCount != 2) { in testUpdateAvailableNetworksWithCarrierPrivilege()
298 mTelephonyManager.updateAvailableNetworks( in testUpdateAvailableNetworksWithCarrierPrivilege()
305 mTelephonyManager.updateAvailableNetworks( in testUpdateAvailableNetworksWithCarrierPrivilege()
322 mTelephonyManager.updateAvailableNetworks( in testUpdateAvailableNetworksWithCarrierPrivilege()
[all …]
DNetworkScanApiTest.java75 private TelephonyManager mTelephonyManager; field in NetworkScanApiTest
125 mTelephonyManager = getContext().getSystemService(TelephonyManager.class); in setUp()
189 mTelephonyManager.requestNetworkScan( in onLooperPrepared()
435 mTelephonyManager.requestCellInfoUpdate(r -> r.run(), resultsCallback); in getCellInfo()
/cts/tests/tests/permission/telephony/src/android/permission/cts/telephony/
DTelephonyManagerPermissionTest.java47 TelephonyManager mTelephonyManager = null; field in TelephonyManagerPermissionTest
54 mTelephonyManager = in setUp()
56 assertNotNull(mTelephonyManager); in setUp()
74 String id = mTelephonyManager.getDeviceId(); in testGetDeviceId()
80 String id = mTelephonyManager.getDeviceId(0); in testGetDeviceId()
100 String nmbr = mTelephonyManager.getLine1Number(); in testGetLine1Number()
120 String nmbr = mTelephonyManager.getSimSerialNumber(); in testGetSimSerialNumber()
140 String sid = mTelephonyManager.getSubscriberId(); in testGetSubscriberId()
160 String vmnum = mTelephonyManager.getVoiceMailNumber(); in testVoiceMailNumber()
194 mTelephonyManager.isManualNetworkSelectionAllowed(); in testIsManualNetworkSelectionAllowedWithoutPermission()
[all …]
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DTelephonyManagerTest.java47 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
52 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
66 mTelephonyManager.getDeviceId()); in testDeviceIdentifiersAreNotAccessible()
70 mTelephonyManager.getImei()); in testDeviceIdentifiersAreNotAccessible()
74 mTelephonyManager.getMeid()); in testDeviceIdentifiersAreNotAccessible()
78 mTelephonyManager.getSubscriberId()); in testDeviceIdentifiersAreNotAccessible()
82 mTelephonyManager.getSimSerialNumber()); in testDeviceIdentifiersAreNotAccessible()
86 mTelephonyManager.getNai()); in testDeviceIdentifiersAreNotAccessible()
/cts/tests/tests/telephony/sdk28/src/android/telephony/sdk28/cts/
DPhoneStateListenerTest.java40 private TelephonyManager mTelephonyManager; field in PhoneStateListenerTest
48 mTelephonyManager = in setUp()
64 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
93 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
114 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testOnUnRegisterFollowedByRegister()
124 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java61 result = mTelephonyManager.getServiceState();
64 result = mTelephonyManager.getAllCellInfo();
68 CellLocation cellLocation = mTelephonyManager.getCellLocation();
94 private TelephonyManager mTelephonyManager; field in CtsLocationAccessService
98 mTelephonyManager = getSystemService(TelephonyManager.class); in onBind()
115 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForCellInfo()
139 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForCellLocation()
163 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForServiceState()
190 mTelephonyManager.requestCellInfoUpdate(executor, cb); in requestCellInfoUpdate()
/cts/tests/tests/permission/sdk28/src/android/permission/cts/sdk28/
DRequestLocation.java39 private TelephonyManager mTelephonyManager; field in RequestLocation
46 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in setUp()
48 assertNotNull(mTelephonyManager); in setUp()
59 List<NeighboringCellInfo> cellInfos = mTelephonyManager.getNeighboringCellInfo(); in testGetNeighboringCellInfo()
/cts/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java53 private TelephonyManager mTelephonyManager; field in TelephonyTest
60 mTelephonyManager = InstrumentationRegistry.getContext() in setUp()
89 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeEnabled()
96 mTelephonyManager.listen(fillerListeners.get(0), PhoneStateListener.LISTEN_NONE); in testListenerRegistrationWithChangeEnabled()
98 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeEnabled()
124 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeDisabled()
146 fillerListeners.forEach((l) -> mTelephonyManager.listen( in registerFillerListeners()
/cts/tests/tests/telephony2/src/android/telephony2/cts/
DTelephonyManagerNoPermissionTest.java39 private TelephonyManager mTelephonyManager; field in TelephonyManagerNoPermissionTest
44 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
65 mTelephonyManager.getCallState(); in testGetCallState_redirectToTelecom()
83 mTelephonyManager.getCallStateForSubscription(); in testGetCallStateForSubscription()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/dialer/
DDialerImplementsTelecomIntentsActivity.java43 private TelephonyManager mTelephonyManager; field in DialerImplementsTelecomIntentsActivity
57 mTelephonyManager = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); in onCreate()
94 if (!mTelephonyManager.isHearingAidCompatibilitySupported() in onCreate()
95 && !mTelephonyManager.isTtyModeSupported() in onCreate()
96 && !mTelephonyManager.isRttSupported()) { in onCreate()
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DRemovableSims.java41 private final TelephonyManager mTelephonyManager; field in RemovableSims
48 mTelephonyManager = Objects.requireNonNull( in RemovableSims()
62 mTelephonyManager.getCardIdForDefaultEuicc() != in initialize()
68 mTelephonyManager::getUiccCardsInfo, in initialize()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java75 private TelephonyManager mTelephonyManager; field in DirectDelegatedCertInstallerTest
86 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in setUp()
186 .that(mTelephonyManager).isNotNull(); in validateNoAccessToIdentifier()
188 assertThrows(SecurityException.class, () -> mTelephonyManager.getImei()); in validateNoAccessToIdentifier()
199 .that(mTelephonyManager).isNotNull(); in validateCanAccessDeviceIdentifiers()
202 mTelephonyManager.getImei(); in validateCanAccessDeviceIdentifiers()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DServiceStateTest.java73 private TelephonyManager mTelephonyManager; field in ServiceStateTest
82 mTelephonyManager = in setUp()
85 mInitialServiceState = mTelephonyManager.getServiceState(); in setUp()
123 assertThat(voiceRegState).isEqualTo(mTelephonyManager.getServiceState().getState()); in testGetVoiceRegState_query()
177 mTelephonyManager.getServiceState().getDataNetworkType()); in testGetDataNetworkType_query()
243 assertThat(duplexMode).isEqualTo(mTelephonyManager.getServiceState().getDuplexMode()); in testGetDuplexMode_query()
284 mTelephonyManager.getServiceState().getDataRegState()); in testGetDataRegState_query()
/cts/tests/tests/telecom/src/android/telecom/cts/
DOutgoingCallTest.java195 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE); in testPhoneStateChangeAsExpected()
203 assertEquals(TelephonyManager.CALL_STATE_OFFHOOK, mTelephonyManager.getCallState()); in testPhoneStateChangeAsExpected()

12