/telephony/java/com/android/internal/telephony/TelephonyProperties.java

https://github.com/integralnd/android_frameworks_base · Java · 112 lines · 20 code · 20 blank · 72 comment · 0 complexity · 2a6f4aac6e7f8d13a0c9f11fc4a0eea1 MD5 · raw file

  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. package com.android.internal.telephony;
  17. /**
  18. * Contains a list of string constants used to get or set telephone properties
  19. * in the system. You can use {@link android.os.SystemProperties os.SystemProperties}
  20. * to get and set these values.
  21. * @hide
  22. */
  23. public interface TelephonyProperties
  24. {
  25. //****** Baseband and Radio Interface version
  26. //TODO T: property strings do not have to be gsm specific
  27. // change gsm.*operator.*" properties to "operator.*" properties
  28. /**
  29. * Baseband version
  30. * Availability: property is available any time radio is on
  31. */
  32. static final String PROPERTY_BASEBAND_VERSION = "gsm.version.baseband";
  33. /** Radio Interface Layer (RIL) library implementation. */
  34. static final String PROPERTY_RIL_IMPL = "gsm.version.ril-impl";
  35. //****** Current Network
  36. /** Alpha name of current registered operator.<p>
  37. * Availability: when registered to a network. Result may be unreliable on
  38. * CDMA networks.
  39. */
  40. static final String PROPERTY_OPERATOR_ALPHA = "gsm.operator.alpha";
  41. //TODO: most of these proprieties are generic, substitute gsm. with phone. bug 1856959
  42. /** Numeric name (MCC+MNC) of current registered operator.<p>
  43. * Availability: when registered to a network. Result may be unreliable on
  44. * CDMA networks.
  45. */
  46. static final String PROPERTY_OPERATOR_NUMERIC = "gsm.operator.numeric";
  47. /** 'true' if the device is on a manually selected network
  48. *
  49. * Availability: when registered to a network
  50. */
  51. static final String PROPERTY_OPERATOR_ISMANUAL = "operator.ismanual";
  52. /** 'true' if the device is considered roaming on this network for GSM
  53. * purposes.
  54. * Availability: when registered to a network
  55. */
  56. static final String PROPERTY_OPERATOR_ISROAMING = "gsm.operator.isroaming";
  57. /** The ISO country code equivalent of the current registered operator's
  58. * MCC (Mobile Country Code)<p>
  59. * Availability: when registered to a network. Result may be unreliable on
  60. * CDMA networks.
  61. */
  62. static final String PROPERTY_OPERATOR_ISO_COUNTRY = "gsm.operator.iso-country";
  63. static final String CURRENT_ACTIVE_PHONE = "gsm.current.phone-type";
  64. //****** SIM Card
  65. /**
  66. * One of <code>"UNKNOWN"</code> <code>"ABSENT"</code> <code>"PIN_REQUIRED"</code>
  67. * <code>"PUK_REQUIRED"</code> <code>"NETWORK_LOCKED"</code> or <code>"READY"</code>
  68. */
  69. static String PROPERTY_SIM_STATE = "gsm.sim.state";
  70. /** The MCC+MNC (mobile country code+mobile network code) of the
  71. * provider of the SIM. 5 or 6 decimal digits.
  72. * Availablity: SIM state must be "READY"
  73. */
  74. static String PROPERTY_ICC_OPERATOR_NUMERIC = "gsm.sim.operator.numeric";
  75. /** PROPERTY_ICC_OPERATOR_ALPHA is also known as the SPN, or Service Provider Name.
  76. * Availablity: SIM state must be "READY"
  77. */
  78. static String PROPERTY_ICC_OPERATOR_ALPHA = "gsm.sim.operator.alpha";
  79. /** ISO country code equivalent for the SIM provider's country code*/
  80. static String PROPERTY_ICC_OPERATOR_ISO_COUNTRY = "gsm.sim.operator.iso-country";
  81. /**
  82. * Indicates the available radio technology. Values include: <code>"unknown"</code>,
  83. * <code>"GPRS"</code>, <code>"EDGE"</code> and <code>"UMTS"</code>.
  84. */
  85. static String PROPERTY_DATA_NETWORK_TYPE = "gsm.network.type";
  86. /** Indicate if phone is in emergency callback mode */
  87. static final String PROPERTY_INECM_MODE = "ril.cdma.inecmmode";
  88. /** Indicate the timer value for exiting emergency callback mode */
  89. static final String PROPERTY_ECM_EXIT_TIMER = "ro.cdma.ecmexittimer";
  90. /** The international dialing prefix conversion string */
  91. static final String PROPERTY_IDP_STRING = "ro.cdma.idpstring";
  92. }