Home
last modified time | relevance | path

Searched refs:telephonyManager (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyUtils.java23 public static boolean isSkt(TelephonyManager telephonyManager) { in isSkt() argument
24 return isOperator(telephonyManager, "45005"); in isSkt()
27 public static boolean isKt(TelephonyManager telephonyManager) { in isKt() argument
28 return isOperator(telephonyManager, "45002") in isKt()
29 || isOperator(telephonyManager, "45004") in isKt()
30 || isOperator(telephonyManager, "45008"); in isKt()
33 private static boolean isOperator(TelephonyManager telephonyManager, String operator) { in isOperator() argument
34 String simOperator = telephonyManager.getSimOperator(); in isOperator()
DMmsTest.java309 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getSimNumber() local
311 return telephonyManager.getLine1Number(); in getSimNumber()
DTelephonyManagerTest.java237 TelephonyManager telephonyManager = mTelephonyManager.createForPhoneAccountHandle(handle); in testCreateForPhoneAccountHandle() local
238 assertEquals(mTelephonyManager.getSubscriberId(), telephonyManager.getSubscriberId()); in testCreateForPhoneAccountHandle()
/cts/tests/tests/permission/src/android/permission/cts/
DNoLocationPermissionTest.java77 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testListenCellLocation() local
81 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testListenCellLocation()
89 telephonyManager.getCellLocation(); in testListenCellLocation()
108 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testListenCellLocation2() local
113 telephonyManager.getNeighboringCellInfo(); in testListenCellLocation2()
120 telephonyManager.getAllCellInfo(); in testListenCellLocation2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/base/
DEmergencyCallUtil.java103 TelephonyManager telephonyManager = in endCall() local
106 Class<?> classTelephony = Class.forName(telephonyManager.getClass().getName()); in endCall()
110 Object telephonyInterface = methodGetITelephony.invoke(telephonyManager); in endCall()
/cts/tests/tests/location/src/android/location/cts/
DGnssTtffTests.java101 TelephonyManager telephonyManager = (TelephonyManager) getContext().getApplicationContext() in hasCellularData() local
103 if (!telephonyManager.isDataEnabled()) { in hasCellularData()
DEmergencyCallMessageTest.java310 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getPhoneNumber() local
312 String phoneNumber = telephonyManager.getLine1Number(); in getPhoneNumber()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/
DMultiNetworkConnectivityTestActivity.java295 private boolean isMobileDataEnabled(TelephonyManager telephonyManager) { in isMobileDataEnabled() argument
297 return telephonyManager.isDataEnabled(); in isMobileDataEnabled()
309 TelephonyManager telephonyManager = in checkPreRequisites() local
311 if (telephonyManager == null) { in checkPreRequisites()
315 } else if (!isMobileDataEnabled(telephonyManager)) { in checkPreRequisites()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1243 final TelephonyManager telephonyManager = in testReadPhoneNumbersPermission() local
1245 final String nmbr = telephonyManager.getLine1Number(); in testReadPhoneNumbersPermission()