TelephonyProperties.java revision 54b6cfa9a9e5b861a9930af873580d6dc20f773c
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    /**
30     * Baseband version
31     * Availability: property is available any time radio is on
32     */
33    static final String PROPERTY_BASEBAND_VERSION = "gsm.version.baseband";
34
35    /** Radio Interface Layer (RIL) library implementation. */
36    static final String PROPERTY_RIL_IMPL = "gsm.version.ril-impl";
37
38    //****** Current Network
39
40    /** Alpha name of current registered operator.
41     *  Availability: when registered to a network
42     */
43    static final String PROPERTY_OPERATOR_ALPHA = "gsm.operator.alpha";
44
45    /** Numeric name (MCC+MNC) of current registered operator.
46     *  Availability: when registered to a network
47     */
48    static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric";
49
50    /** 'true' if the device is considered roaming on this network for GSM
51     *  purposes.
52     *  Availability: when registered to a network
53     */
54    static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming";
55
56    /** '1' if the current network is the result of a manual network selection.
57     *  Availability: when registered to a network
58     */
59    static final String PROPERTY_OPERATOR_ISMANUAL = "gsm.operator.ismanual";
60    /** The ISO country code equivilent of the current registered operator's
61     *  MCC (Mobile Country Code)
62     *  Availability: when registered to a network
63     */
64    static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country";
65
66    //****** SIM Card
67    /**
68     * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code>
69     * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code>
70     */
71    static String PROPERTY_SIM_STATE = "gsm.sim.state";
72
73    /** Set to '1' if voice mail is waiting, otherwise false */
74    static String PROPERTY_LINE1_VOICE_MAIL_WAITING = "gsm.sim.voice-mail.waiting";
75
76    /** Set to 'true' if unconditional voice call forwarding is enabled
77     *  Availablity: only if configured in SIM; SIM state must be "READY"
78     */
79    static String PROPERTY_LINE1_VOICE_CALL_FORWARDING = "gsm.sim.line1.cff";
80
81    /** The MCC+MNC (mobile country code+mobile network code) of the
82     *  provider of the SIM. 5 or 6 decimal digits.
83     *  Availablity: SIM state must be "READY"
84     */
85    static String PROPERTY_SIM_OPERATOR_NUMERIC = "gsm.sim.operator.numeric";
86
87    /** PROPERTY_SIM_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name.
88     *  Availablity: SIM state must be "READY"
89     */
90    static String PROPERTY_SIM_OPERATOR_ALPHA = "gsm.sim.operator.alpha";
91
92    /** ISO country code equivalent for the SIM provider's country code*/
93    static String PROPERTY_SIM_OPERATOR_ISO_COUNTRY = "gsm.sim.operator.iso-country";
94
95    /**
96     * Indicates the available radio technology.  Values include: <code>"unknown"</code>,
97     * <code>"GPRS"</code>, <code>"EDGE"</code> and <code>"UMTS"</code>.
98     */
99    static String PROPERTY_DATA_NETWORK_TYPE = "gsm.network.type";
100
101}
102