Home | History | Annotate | Download | only in telephony

Lines Matching refs:TelephonyManager

70  * The returned TelephonyManager will use the default subscription for all calls.
73 * telephonyManager = defaultSubTelephonyManager.createForSubscriptionId(subId);
82 public class TelephonyManager {
83 private static final String TAG = "TelephonyManager";
130 public TelephonyManager(Context context) {
135 public TelephonyManager(Context context, int subId) {
152 private TelephonyManager() {
157 private static TelephonyManager sInstance = new TelephonyManager();
161 public static TelephonyManager getDefault() {
166 // For legacy reasons the TelephonyManager has API for getting
244 public static TelephonyManager from(Context context) {
245 return (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
249 * Create a new TelephonyManager object pinned to the given subscription ID.
251 * @return a TelephonyManager that uses the given subId for all calls.
253 public TelephonyManager createForSubscriptionId(int subId) {
254 // Don't reuse any TelephonyManager objects.
255 return new TelephonyManager(mContext, subId);
561 * @see TelephonyManager#DATA_UNKNOWN
562 * @see TelephonyManager#DATA_DISCONNECTED
563 * @see TelephonyManager#DATA_CONNECTING
564 * @see TelephonyManager#DATA_CONNECTED
565 * @see TelephonyManager#DATA_SUSPENDED
579 * @see TelephonyManager#NETWORK_TYPE_UNKNOWN
580 * @see TelephonyManager#NETWORK_TYPE_GPRS
581 * @see TelephonyManager#NETWORK_TYPE_EDGE
582 * @see TelephonyManager#NETWORK_TYPE_UMTS
583 * @see TelephonyManager#NETWORK_TYPE_CDMA
584 * @see TelephonyManager#NETWORK_TYPE_EVDO_0
585 * @see TelephonyManager#NETWORK_TYPE_EVDO_A
586 * @see TelephonyManager#NETWORK_TYPE_1xRTT
587 * @see TelephonyManager#NETWORK_TYPE_HSDPA
588 * @see TelephonyManager#NETWORK_TYPE_HSUPA
589 * @see TelephonyManager#NETWORK_TYPE_HSPA
590 * @see TelephonyManager#NETWORK_TYPE_IDEN
591 * @see TelephonyManager#NETWORK_TYPE_EVDO_B
592 * @see TelephonyManager#NETWORK_TYPE_LTE
593 * @see TelephonyManager#NETWORK_TYPE_EHRPD
594 * @see TelephonyManager#NETWORK_TYPE_HSPAP
1138 return TelephonyManager.getPhoneType(Integer.parseInt(mode));
1140 return TelephonyManager.PHONE_TYPE_NONE;
2613 * {@link TelephonyManager#CALL_STATE_RINGING}
2614 * {@link TelephonyManager#CALL_STATE_OFFHOOK}
2615 * {@link TelephonyManager#CALL_STATE_IDLE}
2959 * android.telephony.TelephonyManager#getCellLocation getCellLocation()}.
2962 * android.telephony.TelephonyManager#getCellLocation getCellLocation()}
4917 TelephonyManager.setTelephonyProperty(phoneId,
4946 return TelephonyManager.getTelephonyProperty(phoneId,
4977 return Boolean.valueOf(TelephonyManager.getTelephonyProperty(phoneId,
5008 return Boolean.valueOf(TelephonyManager.getTelephonyProperty(phoneId,