Searched refs:telephonyManager (Results 1 – 9 of 9) sorted by relevance
23 public static boolean isSkt(TelephonyManager telephonyManager) { in isSkt() argument24 return isOperator(telephonyManager, "45005"); in isSkt()27 public static boolean isKt(TelephonyManager telephonyManager) { in isKt() argument28 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() argument34 String simOperator = telephonyManager.getSimOperator(); in isOperator()
309 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getSimNumber() local311 return telephonyManager.getLine1Number(); in getSimNumber()
237 TelephonyManager telephonyManager = mTelephonyManager.createForPhoneAccountHandle(handle); in testCreateForPhoneAccountHandle() local238 assertEquals(mTelephonyManager.getSubscriberId(), telephonyManager.getSubscriberId()); in testCreateForPhoneAccountHandle()
77 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testListenCellLocation() local81 telephonyManager.listen(phoneStateListener, PhoneStateListener.LISTEN_CELL_LOCATION); in testListenCellLocation()89 telephonyManager.getCellLocation(); in testListenCellLocation()108 TelephonyManager telephonyManager = (TelephonyManager) mContext.getSystemService( in testListenCellLocation2() local113 telephonyManager.getNeighboringCellInfo(); in testListenCellLocation2()120 telephonyManager.getAllCellInfo(); in testListenCellLocation2()
103 TelephonyManager telephonyManager = in endCall() local106 Class<?> classTelephony = Class.forName(telephonyManager.getClass().getName()); in endCall()110 Object telephonyInterface = methodGetITelephony.invoke(telephonyManager); in endCall()
101 TelephonyManager telephonyManager = (TelephonyManager) getContext().getApplicationContext() in hasCellularData() local103 if (!telephonyManager.isDataEnabled()) { in hasCellularData()
310 final TelephonyManager telephonyManager = (TelephonyManager) context.getSystemService( in getPhoneNumber() local312 String phoneNumber = telephonyManager.getLine1Number(); in getPhoneNumber()
295 private boolean isMobileDataEnabled(TelephonyManager telephonyManager) { in isMobileDataEnabled() argument297 return telephonyManager.isDataEnabled(); in isMobileDataEnabled()309 TelephonyManager telephonyManager = in checkPreRequisites() local311 if (telephonyManager == null) { in checkPreRequisites()315 } else if (!isMobileDataEnabled(telephonyManager)) { in checkPreRequisites()
1243 final TelephonyManager telephonyManager = in testReadPhoneNumbersPermission() local1245 final String nmbr = telephonyManager.getLine1Number(); in testReadPhoneNumbersPermission()