Home
last modified time | relevance | path

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

12

/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java114 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
236 mTelephonyManager = getContext().getSystemService(TelephonyManager.class) in setUp()
239 Pair<Integer, Integer> radioVersion = mTelephonyManager.getRadioHalVersion(); in setUp()
250 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
277 && mTelephonyManager.getPhoneCount() > 0; in hasCellular()
296 assertFalse(mTelephonyManager.hasCarrierPrivileges()); in testHasCarrierPrivilegesViaCarrierConfigs()
304 assertTrue(mTelephonyManager.hasCarrierPrivileges()); in testHasCarrierPrivilegesViaCarrierConfigs()
313 assertFalse(mTelephonyManager.hasCarrierPrivileges()); in testHasCarrierPrivilegesViaCarrierConfigs()
337 List<ApnSetting> apns = mTelephonyManager.getDevicePolicyOverrideApns(getContext()); in testDevicePolicyApn()
351 int id = mTelephonyManager.addDevicePolicyOverrideApn(getContext(), setting); in testDevicePolicyApn()
[all …]
DPhoneStateListenerTest.java100 private TelephonyManager mTelephonyManager; field in PhoneStateListenerTest
136 mTelephonyManager = in setUp()
148 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
185 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnServiceStateChanged()
215 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
229 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testOnUnRegisterFollowedByRegister()
239 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnUnRegisterFollowedByRegister()
268 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH); in testOnSignalStrengthChanged()
392 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testOnSignalStrengthsChanged()
431 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()
DIwlanModeTest.java32 private TelephonyManager mTelephonyManager; field in IwlanModeTest
42 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
53 if (mTelephonyManager.getRadioHalVersion().first >= 1 in testIwlanMode()
54 && mTelephonyManager.getRadioHalVersion().second >= 5) { in testIwlanMode()
DCarrierConfigManagerTest.java67 private TelephonyManager mTelephonyManager; field in CarrierConfigManagerTest
75 mTelephonyManager = (TelephonyManager) in setUp()
107 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
108 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_UNKNOWN && in isSimCardPresent()
109 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
113 return mTelephonyManager.getSimState() == TelephonyManager.SIM_STATE_ABSENT; in isSimCardAbsent()
257 || mTelephonyManager.getServiceState().getState() != STATE_IN_SERVICE) { in testCarrierConfigNameOverride()
277 mTelephonyManager.getSimOperatorName())) { in testCarrierConfigNameOverride()
DVisualVoicemailServiceTest.java85 private TelephonyManager mTelephonyManager; field in VisualVoicemailServiceTest
106 mTelephonyManager = mContext.getSystemService(TelephonyManager.class) in setUp()
149 mTelephonyManager.setVisualVoicemailSmsFilterSettings( in testPermissionlessService_ignored()
155 mTelephonyManager in testPermissionlessService_ignored()
486 assertEquals(PACKAGE, mTelephonyManager.getVisualVoicemailPackageName()); in testGetVisualVoicemailPackageName_isSelf()
521 mTelephonyManager.setVisualVoicemailSmsFilterSettings(settings); in getSmsFromText()
528 mTelephonyManager in getSmsFromText()
560 mTelephonyManager.setVisualVoicemailSmsFilterSettings(settings); in getSmsFromData()
566 mTelephonyManager.sendVisualVoicemailSms(mPhoneNumber, port, text, null); in getSmsFromData()
710 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in hasDataSms()
[all …]
DSmsManagerTest.java114 private TelephonyManager mTelephonyManager; field in SmsManagerTest
142 mTelephonyManager = in setUp()
146 mDestAddr = mTelephonyManager.getLine1Number(); in setUp()
153 String mccmnc = mTelephonyManager.getSimOperator(); in setUp()
176 if (TelephonyUtils.isSkt(mTelephonyManager)) { in testDivideMessage()
179 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in testDivideMessage()
222 String mccmnc = mTelephonyManager.getSimOperator(); in testSmsRetriever()
256 String mccmnc = mTelephonyManager.getSimOperator(); in testSendAndReceiveMessages()
275 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testSendAndReceiveMessages()
326 String mccmnc = mTelephonyManager.getSimOperator(); in testSmsBlocking()
DSmsMessageTest.java39 private TelephonyManager mTelephonyManager; field in SmsMessageTest
86 mTelephonyManager = in setUp()
160 if (TelephonyUtils.isSkt(mTelephonyManager)) { in assertRemaining()
163 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in assertRemaining()
262 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testGetSubmitPdu()
373 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testGetSmsPdu()
DMmsTest.java94 private TelephonyManager mTelephonyManager; field in MmsTest
172 mTelephonyManager = in setUp()
/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/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java80 private TelephonyManager mTelephonyManager; field in CarrierApiTest
165 mTelephonyManager = (TelephonyManager) in setUp()
208 mTelephonyManager.getPhoneCount() > 0; in hasCellular()
212 return mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
246 if (!mTelephonyManager.hasCarrierPrivileges()) { in testHasCarrierPrivileges()
270 TelephonyManager telephonyManager = mTelephonyManager.createForSubscriptionId( in getFirstActivateCarrierPrivilegedSubscriptionId()
290 if (mTelephonyManager.getPhoneCount() == 1) { in testUpdateAvailableNetworksWithCarrierPrivilege()
295 if (mTelephonyManager.getPhoneCount() == 2 && activeSubscriptionInfoCount != 2) { in testUpdateAvailableNetworksWithCarrierPrivilege()
326 mTelephonyManager.updateAvailableNetworks(availableNetworkInfos, in testUpdateAvailableNetworksWithCarrierPrivilege()
331 mTelephonyManager.updateAvailableNetworks(availableNetworkInfos, in testUpdateAvailableNetworksWithCarrierPrivilege()
[all …]
DNetworkScanApiTest.java69 private TelephonyManager mTelephonyManager; field in NetworkScanApiTest
121 mTelephonyManager = (TelephonyManager) in setUp()
178 mNetworkScan = mTelephonyManager.requestNetworkScan( in onLooperPrepared()
293 if (!mTelephonyManager.hasCarrierPrivileges()) { in testRequestNetworkScan()
333 if (!mTelephonyManager.hasCarrierPrivileges()) { in requestNetworkScanLocationOffHelper()
419 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()
196 mTelephonyManager.setDataEnabled(false); in testSetDataEnabled()
[all …]
/cts/tests/tests/telephony3/src/android/telephony3/cts/
DTelephonyManagerTest.java43 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
47 mTelephonyManager = in setUp()
62 mTelephonyManager.getDeviceId()); in testDeviceIdentifiersAreNotAccessible()
66 mTelephonyManager.getImei()); in testDeviceIdentifiersAreNotAccessible()
70 mTelephonyManager.getMeid()); in testDeviceIdentifiersAreNotAccessible()
74 mTelephonyManager.getSubscriberId()); in testDeviceIdentifiersAreNotAccessible()
78 mTelephonyManager.getSimSerialNumber()); in testDeviceIdentifiersAreNotAccessible()
/cts/tests/tests/telephony/current/LocationAccessingApp/src/android/telephony/cts/locationaccessingapp/
DCtsLocationAccessService.java57 result = mTelephonyManager.getServiceState();
60 result = mTelephonyManager.getAllCellInfo();
63 result = mTelephonyManager.getCellLocation();
78 private TelephonyManager mTelephonyManager; field in CtsLocationAccessService
82 mTelephonyManager = getSystemService(TelephonyManager.class); in onBind()
99 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForCellInfo()
123 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForCellLocation()
147 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_SERVICE_STATE); in listenForServiceState()
/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/hostsidetests/telephony/devicetest/src/android/telephony/device/cts/
DTelephonyTest.java52 private TelephonyManager mTelephonyManager; field in TelephonyTest
59 mTelephonyManager = InstrumentationRegistry.getContext() in setUp()
88 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeEnabled()
95 mTelephonyManager.listen(fillerListeners.get(0), PhoneStateListener.LISTEN_NONE); in testListenerRegistrationWithChangeEnabled()
97 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeEnabled()
123 mTelephonyManager.listen(testListener, PhoneStateListener.LISTEN_CALL_STATE); in testListenerRegistrationWithChangeDisabled()
145 fillerListeners.forEach((l) -> mTelephonyManager.listen( in registerFillerListeners()
/cts/tests/tests/permission/sdk28/src/android/permission/cts/sdk28/
DRequestLocation.java40 private TelephonyManager mTelephonyManager; field in RequestLocation
47 mTelephonyManager = (TelephonyManager) getContext().getSystemService( in setUp()
49 assertNotNull(mTelephonyManager); in setUp()
60 List<NeighboringCellInfo> cellInfos = mTelephonyManager.getNeighboringCellInfo(); in testGetNeighboringCellInfo()
/cts/tests/tests/telephony/current/permissions/src/android/telephony/cts/telephonypermission/
DTelephonyManagerReadPhoneStatePermissionTest.java43 TelephonyManager mTelephonyManager = null; field in TelephonyManagerReadPhoneStatePermissionTest
49 mTelephonyManager = in setUp()
51 assertNotNull(mTelephonyManager); in setUp()
79 mTelephonyManager.getNetworkType(); in testTelephonyManagersAPIsRequiringReadPhoneStatePermissions()
/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/location/src/android/location/cts/
DEmergencyCallMessageTest.java44 private TelephonyManager mTelephonyManager; field in EmergencyCallMessageTest
52 mTelephonyManager = in setUp()
/cts/tests/tests/telecom/src/android/telecom/cts/
DOutgoingCallTest.java158 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE); in testPhoneStateChangeAsExpected()
166 assertEquals(TelephonyManager.CALL_STATE_OFFHOOK, mTelephonyManager.getCallState()); in testPhoneStateChangeAsExpected()
DIncomingCallTest.java263 mTelephonyManager.listen(listener, PhoneStateListener.LISTEN_CALL_STATE); in testPhoneStateChangeAsExpected()
269 assertEquals(CALL_STATE_RINGING, mTelephonyManager.getCallState()); in testPhoneStateChangeAsExpected()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityDiagnosticsManagerTest.java132 private TelephonyManager mTelephonyManager; field in ConnectivityDiagnosticsManagerTest
149 mTelephonyManager = mContext.getSystemService(TelephonyManager.class); in setUp()
262 mTelephonyManager.createForSubscriptionId(subId).hasCarrierPrivileges()); in doBroadcastCarrierConfigsAndVerifyOnConnectivityReportAvailable()
/cts/tests/app/src/android/app/cts/
DSystemFeaturesTest.java81 private TelephonyManager mTelephonyManager; field in SystemFeaturesTest
99 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
513 int phoneType = mTelephonyManager.getPhoneType(); in testTelephonyFeatures()

12