Home
last modified time | relevance | path

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

/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyManagerTest.java40 private TelephonyManager mTelephonyManager; field in TelephonyManagerTest
51 mTelephonyManager = in setUp()
60 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
71 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testListen()
92 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testListen()
110 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testListen()
113 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in testListen()
133 assertTrue(mTelephonyManager.getNetworkType() >= TelephonyManager.NETWORK_TYPE_UNKNOWN); in testTelephonyManager()
134 assertTrue(mTelephonyManager.getPhoneType() >= TelephonyManager.PHONE_TYPE_NONE); in testTelephonyManager()
135 assertTrue(mTelephonyManager.getSimState() >= TelephonyManager.SIM_STATE_UNKNOWN); in testTelephonyManager()
[all …]
DCellLocationTest.java35 private TelephonyManager mTelephonyManager; field in CellLocationTest
43 mTelephonyManager = in setUp()
52 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
66 if (mTelephonyManager.getNetworkType() != TelephonyManager.NETWORK_TYPE_LTE) { in testCellLocation()
68 mTelephonyManager.getCellLocation()); in testCellLocation()
91 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testCellLocation()
DCarrierConfigManagerTest.java29 private TelephonyManager mTelephonyManager; field in CarrierConfigManagerTest
34 mTelephonyManager = (TelephonyManager) in setUp()
53 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
54 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
DPhoneStateListenerTest.java45 private TelephonyManager mTelephonyManager; field in PhoneStateListenerTest
54 mTelephonyManager = in setUp()
64 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_NONE); in tearDown()
102 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SERVICE_STATE); in testOnServiceStateChanged()
139 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTH); in testOnSignalStrengthChanged()
176 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_SIGNAL_STRENGTHS); in testOnSignalStrengthsChanged()
224 mTelephonyManager.listen( in testOnMessageWaitingIndicatorChanged()
263 mTelephonyManager.listen( in testOnCallForwardingIndicatorChanged()
301 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testOnCellLocationChanged()
338 mTelephonyManager.listen(mListener, PhoneStateListener.LISTEN_CALL_STATE); in testOnCallStateChanged()
[all …]
DSimRestrictedApisTest.java26 private TelephonyManager mTelephonyManager; field in SimRestrictedApisTest
31 mTelephonyManager = in setUp()
36 return mTelephonyManager.getPhoneType() != TelephonyManager.PHONE_TYPE_NONE && in isSimCardPresent()
37 mTelephonyManager.getSimState() != TelephonyManager.SIM_STATE_ABSENT; in isSimCardPresent()
DSmsManagerTest.java184 private TelephonyManager mTelephonyManager; field in SmsManagerTest
204 mTelephonyManager = in setUp()
207 mDestAddr = mTelephonyManager.getLine1Number(); in setUp()
214 String mccmnc = mTelephonyManager.getSimOperator(); in setUp()
222 if (TelephonyUtils.isSkt(mTelephonyManager)) { in testDivideMessage()
225 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in testDivideMessage()
260 String mccmnc = mTelephonyManager.getSimOperator(); in testSendMessages()
287 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testSendMessages()
DCellInfoTest.java38 private TelephonyManager mTelephonyManager; field in CellInfoTest
48 mTelephonyManager = in setUp()
61 List<CellInfo> allCellInfo = mTelephonyManager.getAllCellInfo(); in testCellInfo()
DSmsMessageTest.java28 private TelephonyManager mTelephonyManager; field in SmsMessageTest
73 mTelephonyManager = in setUp()
143 if (TelephonyUtils.isSkt(mTelephonyManager)) { in assertRemaining()
146 } else if (TelephonyUtils.isKt(mTelephonyManager)) { in assertRemaining()
246 if (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) { in testGetSubmitPdu()
DMmsTest.java86 private TelephonyManager mTelephonyManager; field in MmsTest
165 mTelephonyManager = in setUp()
170 if (!mTelephonyManager.isSmsCapable()) { in testSendMmsMessage()
DSmsUsageMonitorShortCodeTest.java31 private TelephonyManager mTelephonyManager; field in SmsUsageMonitorShortCodeTest
489 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
493 return (mTelephonyManager.getPhoneType() == TelephonyManager.PHONE_TYPE_CDMA) in isCDMA112()
/cts/tests/tests/permission/src/android/permission/cts/
DTelephonyManagerPermissionTest.java32 TelephonyManager mTelephonyManager = null; field in TelephonyManagerPermissionTest
40 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
41 assertNotNull(mTelephonyManager); in setUp()
59 String id = mTelephonyManager.getDeviceId(); in testGetDeviceId()
79 String nmbr = mTelephonyManager.getLine1Number(); in testGetLine1Number()
99 String nmbr = mTelephonyManager.getSimSerialNumber(); in testGetSimSerialNumber()
119 String sid = mTelephonyManager.getSubscriberId(); in testGetSubscriberId()
139 String vmnum = mTelephonyManager.getVoiceMailNumber(); in testVoiceMailNumber()
/cts/tests/tests/app/src/android/app/cts/
DSystemFeaturesTest.java63 private TelephonyManager mTelephonyManager; field in SystemFeaturesTest
82 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp()
423 int phoneType = mTelephonyManager.getPhoneType(); in testTelephonyFeatures()