/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 40 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 …]
|
D | CellLocationTest.java | 35 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()
|
D | CarrierConfigManagerTest.java | 29 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()
|
D | PhoneStateListenerTest.java | 45 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 …]
|
D | SimRestrictedApisTest.java | 26 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()
|
D | SmsManagerTest.java | 184 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()
|
D | CellInfoTest.java | 38 private TelephonyManager mTelephonyManager; field in CellInfoTest 48 mTelephonyManager = in setUp() 61 List<CellInfo> allCellInfo = mTelephonyManager.getAllCellInfo(); in testCellInfo()
|
D | SmsMessageTest.java | 28 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()
|
D | MmsTest.java | 86 private TelephonyManager mTelephonyManager; field in MmsTest 165 mTelephonyManager = in setUp() 170 if (!mTelephonyManager.isSmsCapable()) { in testSendMmsMessage()
|
D | SmsUsageMonitorShortCodeTest.java | 31 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/ |
D | TelephonyManagerPermissionTest.java | 32 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/ |
D | SystemFeaturesTest.java | 63 private TelephonyManager mTelephonyManager; field in SystemFeaturesTest 82 mTelephonyManager = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); in setUp() 423 int phoneType = mTelephonyManager.getPhoneType(); in testTelephonyFeatures()
|