TelephonyProperties.java revision 9bfbfbd40df381817c0c685b177a2a1d666e101d
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 //TODO: most of these proprieties are generic, substitute gsm. with phone. bug 1856959 48 49 /** Numeric name (MCC+MNC) of current registered operator. 50 * Availability: when registered to a network 51 */ 52 static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric"; 53 54 /** 'true' if the device is on a manually selected network 55 * 56 * Availability: when registered to a network 57 */ 58 static final String PROPERTY_OPERATOR_ISMANUAL = "operator.ismanual"; 59 60 /** 'true' if the device is considered roaming on this network for GSM 61 * purposes. 62 * Availability: when registered to a network 63 */ 64 static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming"; 65 66 /** The ISO country code equivalent of the current registered operator's 67 * MCC (Mobile Country Code) 68 * Availability: when registered to a network 69 */ 70 static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country"; 71 72 static final String CURRENT_ACTIVE_PHONE = "gsm.current.phone-type"; 73 74 //****** SIM Card 75 /** 76 * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code> 77 * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code> 78 */ 79 static String PROPERTY_SIM_STATE = "gsm.sim.state"; 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_ICC_OPERATOR_NUMERIC = "gsm.sim.operator.numeric"; 86 87 /** PROPERTY_ICC_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name. 88 * Availablity: SIM state must be "READY" 89 */ 90 static String PROPERTY_ICC_OPERATOR_ALPHA = "gsm.sim.operator.alpha"; 91 92 /** ISO country code equivalent for the SIM provider's country code*/ 93 static String PROPERTY_ICC_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