Lines Matching defs:TelephonyManager

73  * The returned TelephonyManager will use the default subscription for all calls.
85 public class TelephonyManager {
86 private static final String TAG = "TelephonyManager";
133 public TelephonyManager(Context context) {
138 public TelephonyManager(Context context, int subId) {
155 private TelephonyManager() {
160 private static TelephonyManager sInstance = new TelephonyManager();
164 public static TelephonyManager getDefault() {
169 // For legacy reasons the TelephonyManager has API for getting
247 public static TelephonyManager from(Context context) {
248 return (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
252 * Create a new TelephonyManager object pinned to the given subscription ID.
254 * @return a TelephonyManager that uses the given subId for all calls.
256 public TelephonyManager createForSubscriptionId(int subId) {
257 // Don't reuse any TelephonyManager objects.
258 return new TelephonyManager(mContext, subId);
564 * @see TelephonyManager#DATA_UNKNOWN
565 * @see TelephonyManager#DATA_DISCONNECTED
566 * @see TelephonyManager#DATA_CONNECTING
567 * @see TelephonyManager#DATA_CONNECTED
568 * @see TelephonyManager#DATA_SUSPENDED
582 * @see TelephonyManager#NETWORK_TYPE_UNKNOWN
583 * @see TelephonyManager#NETWORK_TYPE_GPRS
584 * @see TelephonyManager#NETWORK_TYPE_EDGE
585 * @see TelephonyManager#NETWORK_TYPE_UMTS
586 * @see TelephonyManager#NETWORK_TYPE_CDMA
587 * @see TelephonyManager#NETWORK_TYPE_EVDO_0
588 * @see TelephonyManager#NETWORK_TYPE_EVDO_A
589 * @see TelephonyManager#NETWORK_TYPE_1xRTT
590 * @see TelephonyManager#NETWORK_TYPE_HSDPA
591 * @see TelephonyManager#NETWORK_TYPE_HSUPA
592 * @see TelephonyManager#NETWORK_TYPE_HSPA
593 * @see TelephonyManager#NETWORK_TYPE_IDEN
594 * @see TelephonyManager#NETWORK_TYPE_EVDO_B
595 * @see TelephonyManager#NETWORK_TYPE_LTE
596 * @see TelephonyManager#NETWORK_TYPE_EHRPD
597 * @see TelephonyManager#NETWORK_TYPE_HSPAP
1185 return TelephonyManager.getPhoneType(Integer.parseInt(mode));
1187 return TelephonyManager.PHONE_TYPE_NONE;
2821 * {@link TelephonyManager#CALL_STATE_RINGING}
2822 * {@link TelephonyManager#CALL_STATE_OFFHOOK}
2823 * {@link TelephonyManager#CALL_STATE_IDLE}
3167 * android.telephony.TelephonyManager#getCellLocation getCellLocation()}.
3170 * android.telephony.TelephonyManager#getCellLocation getCellLocation()}
5125 TelephonyManager.setTelephonyProperty(phoneId,
5154 return TelephonyManager.getTelephonyProperty(phoneId,
5185 return Boolean.valueOf(TelephonyManager.getTelephonyProperty(phoneId,
5216 return Boolean.valueOf(TelephonyManager.getTelephonyProperty(phoneId,