|
Android example source code file (TelephonyProperties.java)
The TelephonyProperties.java Android example source code/* * Copyright (C) 2006 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.internal.telephony; /** * Contains a list of string constants used to get or set telephone properties * in the system. You can use {@link android.os.SystemProperties os.SystemProperties} * to get and set these values. * @hide */ public interface TelephonyProperties { //****** Baseband and Radio Interface version //TODO T: property strings do not have to be gsm specific // change gsm.*operator.*" properties to "operator.*" properties /** * Baseband version * Availability: property is available any time radio is on */ static final String PROPERTY_BASEBAND_VERSION = "gsm.version.baseband"; /** Radio Interface Layer (RIL) library implementation. */ static final String PROPERTY_RIL_IMPL = "gsm.version.ril-impl"; //****** Current Network /** Alpha name of current registered operator.<p> * Availability: when registered to a network. Result may be unreliable on * CDMA networks. */ static final String PROPERTY_OPERATOR_ALPHA = "gsm.operator.alpha"; //TODO: most of these proprieties are generic, substitute gsm. with phone. bug 1856959 /** Numeric name (MCC+MNC) of current registered operator.<p> * Availability: when registered to a network. Result may be unreliable on * CDMA networks. */ static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric"; /** 'true' if the device is on a manually selected network * * Availability: when registered to a network */ static final String PROPERTY_OPERATOR_ISMANUAL = "operator.ismanual"; /** 'true' if the device is considered roaming on this network for GSM * purposes. * Availability: when registered to a network */ static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming"; /** The ISO country code equivalent of the current registered operator's * MCC (Mobile Country Code)<p> * Availability: when registered to a network. Result may be unreliable on * CDMA networks. */ static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country"; static final String CURRENT_ACTIVE_PHONE = "gsm.current.phone-type"; //****** SIM Card /** * One of <code>"UNKNOWN" Other Android examples (source code examples)Here is a short list of links related to this Android TelephonyProperties.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.