Home | History | Annotate | Download | only in telephony
      1 /*
      2  * Copyright (C) 2006 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.internal.telephony;
     18 
     19 /**
     20  * Contains a list of string constants used to get or set telephone properties
     21  * in the system. You can use {@link android.os.SystemProperties os.SystemProperties}
     22  * to get and set these values.
     23  * @hide
     24  */
     25 public interface TelephonyProperties
     26 {
     27     //****** Baseband and Radio Interface version
     28 
     29     //TODO T: property strings do not have to be gsm specific
     30     //        change gsm.*operator.*" properties to "operator.*" properties
     31 
     32     /**
     33      * Baseband version
     34      * Availability: property is available any time radio is on
     35      */
     36     static final String PROPERTY_BASEBAND_VERSION = "gsm.version.baseband";
     37 
     38     /** Radio Interface Layer (RIL) library implementation. */
     39     static final String PROPERTY_RIL_IMPL = "gsm.version.ril-impl";
     40 
     41     //****** Current Network
     42 
     43     /** Alpha name of current registered operator.<p>
     44      *  Availability: when registered to a network. Result may be unreliable on
     45      *  CDMA networks.
     46      */
     47     static final String PROPERTY_OPERATOR_ALPHA = "gsm.operator.alpha";
     48     //TODO: most of these proprieties are generic, substitute gsm. with phone. bug 1856959
     49 
     50     /** Numeric name (MCC+MNC) of current registered operator.<p>
     51      *  Availability: when registered to a network. Result may be unreliable on
     52      *  CDMA networks.
     53      */
     54     static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric";
     55 
     56     /** 'true' if the device is on a manually selected network
     57      *
     58      *  Availability: when registered to a network
     59      */
     60     static final String PROPERTY_OPERATOR_ISMANUAL = "operator.ismanual";
     61 
     62     /** 'true' if the device is considered roaming on this network for GSM
     63      *  purposes.
     64      *  Availability: when registered to a network
     65      */
     66     static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming";
     67 
     68     /** The ISO country code equivalent of the current registered operator's
     69      *  MCC (Mobile Country Code)<p>
     70      *  Availability: when registered to a network. Result may be unreliable on
     71      *  CDMA networks.
     72      */
     73     static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country";
     74 
     75     static final String CURRENT_ACTIVE_PHONE = "gsm.current.phone-type";
     76 
     77     //****** SIM Card
     78     /**
     79      * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code>
     80      * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code>
     81      */
     82     static String PROPERTY_SIM_STATE = "gsm.sim.state";
     83 
     84     /** The MCC+MNC (mobile country code+mobile network code) of the
     85      *  provider of the SIM. 5 or 6 decimal digits.
     86      *  Availablity: SIM state must be "READY"
     87      */
     88     static String PROPERTY_ICC_OPERATOR_NUMERIC = "gsm.sim.operator.numeric";
     89 
     90     /** PROPERTY_ICC_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name.
     91      *  Availablity: SIM state must be "READY"
     92      */
     93     static String PROPERTY_ICC_OPERATOR_ALPHA = "gsm.sim.operator.alpha";
     94 
     95     /** ISO country code equivalent for the SIM provider's country code*/
     96     static String PROPERTY_ICC_OPERATOR_ISO_COUNTRY = "gsm.sim.operator.iso-country";
     97 
     98     /**
     99      * Indicates the available radio technology.  Values include: <code>"unknown"</code>,
    100      * <code>"GPRS"</code>, <code>"EDGE"</code> and <code>"UMTS"</code>.
    101      */
    102     static String PROPERTY_DATA_NETWORK_TYPE = "gsm.network.type";
    103 
    104     /** Indicate if phone is in emergency callback mode */
    105     static final String PROPERTY_INECM_MODE = "ril.cdma.inecmmode";
    106 
    107     /** Indicate the timer value for exiting emergency callback mode */
    108     static final String PROPERTY_ECM_EXIT_TIMER = "ro.cdma.ecmexittimer";
    109 
    110     /** The international dialing prefix conversion string */
    111     static final String PROPERTY_IDP_STRING = "ro.cdma.idpstring";
    112 
    113     /**
    114      * Defines the schema for the carrier specified OTASP number
    115      */
    116     static final String PROPERTY_OTASP_NUM_SCHEMA = "ro.cdma.otaspnumschema";
    117 
    118     /**
    119      * Disable all calls including Emergency call when it set to true.
    120      */
    121     static final String PROPERTY_DISABLE_CALL = "ro.telephony.disable-call";
    122 
    123     /**
    124      * Set to true for vendor RIL's that send multiple UNSOL_CALL_RING notifications.
    125      */
    126     static final String PROPERTY_RIL_SENDS_MULTIPLE_CALL_RING =
    127         "ro.telephony.call_ring.multiple";
    128 
    129     /**
    130      * The number of milli-seconds between CALL_RING notifications.
    131      */
    132     static final String PROPERTY_CALL_RING_DELAY = "ro.telephony.call_ring.delay";
    133 
    134     /**
    135      * Track CDMA SMS message id numbers to ensure they increment
    136      * monotonically, regardless of reboots.
    137      */
    138     static final String PROPERTY_CDMA_MSG_ID = "persist.radio.cdma.msgid";
    139 
    140     /**
    141      * Property to override DEFAULT_WAKE_LOCK_TIMEOUT
    142      */
    143     static final String PROPERTY_WAKE_LOCK_TIMEOUT = "ro.ril.wake_lock_timeout";
    144 
    145     /**
    146      * Set to true to indicate that the modem needs to be reset
    147      * when there is a radio technology change.
    148      */
    149     static final String PROPERTY_RESET_ON_RADIO_TECH_CHANGE = "persist.radio.reset_on_switch";
    150 }
    151