diff options
Diffstat (limited to 'telephony/java')
-rw-r--r-- | telephony/java/com/android/internal/telephony/DctConstants.java | 3 | ||||
-rw-r--r-- | telephony/java/com/android/internal/telephony/TelephonyIntents.java | 23 |
2 files changed, 26 insertions, 0 deletions
diff --git a/telephony/java/com/android/internal/telephony/DctConstants.java b/telephony/java/com/android/internal/telephony/DctConstants.java index 4d8342c..eb93e9c 100644 --- a/telephony/java/com/android/internal/telephony/DctConstants.java +++ b/telephony/java/com/android/internal/telephony/DctConstants.java @@ -94,6 +94,8 @@ public class DctConstants { public static final int EVENT_DISCONNECT_DC_RETRYING = BASE + 34; public static final int EVENT_DATA_SETUP_COMPLETE_ERROR = BASE + 35; public static final int CMD_SET_ENABLE_FAIL_FAST_MOBILE_DATA = BASE + 36; + public static final int CMD_ENABLE_MOBILE_PROVISIONING = BASE + 37; + public static final int CMD_IS_PROVISIONING_APN = BASE + 38; /***** Constants *****/ @@ -112,4 +114,5 @@ public class DctConstants { public static final int ENABLED = 1; public static final String APN_TYPE_KEY = "apnType"; + public static final String PROVISIONING_URL_KEY = "provisioningUrl"; } diff --git a/telephony/java/com/android/internal/telephony/TelephonyIntents.java b/telephony/java/com/android/internal/telephony/TelephonyIntents.java index 3cfd0bf..40a3c8f 100644 --- a/telephony/java/com/android/internal/telephony/TelephonyIntents.java +++ b/telephony/java/com/android/internal/telephony/TelephonyIntents.java @@ -145,6 +145,29 @@ public class TelephonyIntents { public static final String ACTION_ANY_DATA_CONNECTION_STATE_CHANGED = "android.intent.action.ANY_DATA_STATE"; + /** + * Broadcast Action: Occurs when a data connection connects to a provisioning apn + * and is broadcast by the low level data connection code. + * The intent will have the following extra values:</p> + * <ul> + * <li><em>apn</em> - A string that is the APN associated with this + * connection.</li> + * <li><em>apnType</em> - A string array of APN types associated with + * this connection. The APN type <code>"*"</code> is a special + * type that means this APN services all types.</li> + * <li><em>linkProperties</em> - The <code>LinkProperties</code> for this APN</li> + * <li><em>linkCapabilities</em> - The <code>linkCapabilities</code> for this APN</li> + * <li><em>iface</em> - A string that is the name of the interface</li> + * </ul> + * + * <p class="note"> + * Requires the READ_PHONE_STATE permission. + * + * <p class="note">This is a protected intent that can only be sent + * by the system. + */ + public static final String ACTION_DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN + = "android.intent.action.DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN"; /** * Broadcast Action: An attempt to establish a data connection has failed. |