TelephonyProperties.java revision 767a662ecde33c3979bf02b793d392aca0403162
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
17package 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 */
25public 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.
44     *  Availability: when registered to a network
45     */
46    static final String PROPERTY_OPERATOR_ALPHA = "gsm.operator.alpha";
47
48    /** Numeric name (MCC+MNC) of current registered operator.
49     *  Availability: when registered to a network
50     */
51    static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric";
52
53    /** 'true' if the device is on a manually selected network
54     *
55     *  Availability: when registered to a network
56     */
57    static final String PROPERTY_OPERATOR_ISMANUAL = "operator.ismanual";
58
59    /** 'true' if the device is considered roaming on this network for GSM
60     *  purposes.
61     *  Availability: when registered to a network
62     */
63    static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming";
64
65    /** The ISO country code equivalent of the current registered operator's
66     *  MCC (Mobile Country Code)
67     *  Availability: when registered to a network
68     */
69    static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country";
70
71    //****** SIM Card
72    /**
73     * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code>
74     * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code>
75     */
76    static String PROPERTY_SIM_STATE = "gsm.sim.state";
77
78    /** The MCC+MNC (mobile country code+mobile network code) of the
79     *  provider of the SIM. 5 or 6 decimal digits.
80     *  Availablity: SIM state must be "READY"
81     */
82    static String PROPERTY_ICC_OPERATOR_NUMERIC = "gsm.sim.operator.numeric";
83
84    /** PROPERTY_ICC_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name.
85     *  Availablity: SIM state must be "READY"
86     */
87    static String PROPERTY_ICC_OPERATOR_ALPHA = "gsm.sim.operator.alpha";
88
89    /** ISO country code equivalent for the SIM provider's country code*/
90    static String PROPERTY_ICC_OPERATOR_ISO_COUNTRY = "gsm.sim.operator.iso-country";
91
92    /**
93     * Indicates the available radio technology.  Values include: <code>"unknown"</code>,
94     * <code>"GPRS"</code>, <code>"EDGE"</code> and <code>"UMTS"</code>.
95     */
96    static String PROPERTY_DATA_NETWORK_TYPE = "gsm.network.type";
97
98}
99