/* * Copyright (C) 2008 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; /** * The intents that the telephony services broadcast. * *
* THESE ARE NOT THE API! Use the {@link android.telephony.TelephonyManager} class. * DON'T LISTEN TO THESE DIRECTLY. */ public class TelephonyIntents { /** * Broadcast Action: The phone service state has changed. The intent will have the following * extra values:
** Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_SERVICE_STATE_CHANGED = "android.intent.action.SERVICE_STATE"; /** *
Broadcast Action: The radio technology has changed. The intent will have the following * extra values:
** You can not receive this through components declared * in manifests, only by explicitly registering for it with * {@link android.content.Context#registerReceiver(android.content.BroadcastReceiver, * android.content.IntentFilter) Context.registerReceiver()}. * *
* Requires no permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_RADIO_TECHNOLOGY_CHANGED = "android.intent.action.RADIO_TECHNOLOGY"; /** *
Broadcast Action: The emergency callback mode is changed. *
* You can not receive this through components declared * in manifests, only by explicitly registering for it with * {@link android.content.Context#registerReceiver(android.content.BroadcastReceiver, * android.content.IntentFilter) Context.registerReceiver()}. * *
* Requires no permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_EMERGENCY_CALLBACK_MODE_CHANGED = "android.intent.action.EMERGENCY_CALLBACK_MODE_CHANGED"; /** * Broadcast Action: The phone's signal strength has changed. The intent will have the * following extra values:
** You can not receive this through components declared * in manifests, only by exlicitly registering for it with * {@link android.content.Context#registerReceiver(android.content.BroadcastReceiver, * android.content.IntentFilter) Context.registerReceiver()}. * *
* Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_SIGNAL_STRENGTH_CHANGED = "android.intent.action.SIG_STR"; /** * Broadcast Action: The data connection state has changed for any one of the * phone's mobile data connections (eg, default, MMS or GPS specific connection). * The intent will have the following extra values:
*"CONNECTED"
* "CONNECTING"
or "DISCONNNECTED"
"*"
is a special
* type that means this APN services all types.* Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_ANY_DATA_CONNECTION_STATE_CHANGED = "android.intent.action.ANY_DATA_STATE"; /** * Broadcast Action: An attempt to establish a data connection has failed. * The intent will have the following extra values:
*"CONNECTED"
* "CONNECTING"
or "DISCONNNECTED"
* Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_DATA_CONNECTION_FAILED = "android.intent.action.DATA_CONNECTION_FAILED"; /** * Broadcast Action: The sim card state has changed. * The intent will have the following extra values:
*"ABSENT"
"LOCKED"
* "READY"
"ISMI"
"LOADED"
"PIN"
locked on PIN1
* "PUK"
locked on PUK1
* "NETWORK"
locked on Network Personalization * Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_SIM_STATE_CHANGED = "android.intent.action.SIM_STATE_CHANGED"; /** * Broadcast Action: The time was set by the carrier (typically by the NITZ string). * This is a sticky broadcast. * The intent will have the following extra values:
** Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_NETWORK_SET_TIME = "android.intent.action.NETWORK_SET_TIME"; /** * Broadcast Action: The timezone was set by the carrier (typically by the NITZ string). * This is a sticky broadcast. * The intent will have the following extra values:
** Requires the READ_PHONE_STATE permission. * *
This is a protected intent that can only be sent * by the system. */ public static final String ACTION_NETWORK_SET_TIMEZONE = "android.intent.action.NETWORK_SET_TIMEZONE"; /** *
Broadcast Action: It indicates the Emergency callback mode blocks datacall/sms *
. * This is to pop up a notice to show user that the phone is in emergency callback mode * and atacalls and outgoing sms are blocked. * *
This is a protected intent that can only be sent
* by the system.
*/
public static final String ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS
= "android.intent.action.ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS";
/**
* Broadcast Action: A "secret code" has been entered in the dialer. Secret codes are
* of the form *#*##*#*. The intent will have the data URI:
android_secret_code://<code>
Note this is a protected intent that can only be sent * by the system. */ public static final String SPN_STRINGS_UPDATED_ACTION = "android.provider.Telephony.SPN_STRINGS_UPDATED"; public static final String EXTRA_SHOW_PLMN = "showPlmn"; public static final String EXTRA_PLMN = "plmn"; public static final String EXTRA_SHOW_SPN = "showSpn"; public static final String EXTRA_SPN = "spn"; }