diff options
author | Mike Lockwood <lockwood@android.com> | 2009-04-14 10:56:36 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-04-14 14:58:29 -0400 |
commit | 42ad56ead40f6c5986bd2d298b1d36f42da489a1 (patch) | |
tree | 11eca5e0505a27f9462f8306b0764d39e343e40b /core/java/android/net | |
parent | cdb02c136a4357f8504ccbea6f4b0c1690eae80d (diff) | |
download | frameworks_base-42ad56ead40f6c5986bd2d298b1d36f42da489a1.zip frameworks_base-42ad56ead40f6c5986bd2d298b1d36f42da489a1.tar.gz frameworks_base-42ad56ead40f6c5986bd2d298b1d36f42da489a1.tar.bz2 |
telephony: Add support for bringing up GSM data connections for GPS SUPL.
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'core/java/android/net')
-rw-r--r-- | core/java/android/net/MobileDataStateTracker.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/core/java/android/net/MobileDataStateTracker.java b/core/java/android/net/MobileDataStateTracker.java index ed7c056..1064fb6 100644 --- a/core/java/android/net/MobileDataStateTracker.java +++ b/core/java/android/net/MobileDataStateTracker.java @@ -354,9 +354,10 @@ public class MobileDataStateTracker extends NetworkStateTracker { /** * Tells the phone sub-system that the caller wants to - * begin using the named feature. The only supported feature at - * this time is {@code Phone.FEATURE_ENABLE_MMS}, which allows an application - * to specify that it wants to send and/or receive MMS data. + * begin using the named feature. The only supported features at + * this time are {@code Phone.FEATURE_ENABLE_MMS}, which allows an application + * to specify that it wants to send and/or receive MMS data, and + * {@code Phone.FEATURE_ENABLE_SUPL}, which is used for Assisted GPS. * @param feature the name of the feature to be used * @param callingPid the process ID of the process that is issuing this request * @param callingUid the user ID of the process that is issuing this request @@ -376,6 +377,8 @@ public class MobileDataStateTracker extends NetworkStateTracker { if (TextUtils.equals(feature, Phone.FEATURE_ENABLE_MMS)) { mLastCallingPid = callingPid; return setEnableApn(Phone.APN_TYPE_MMS, true); + } else if (TextUtils.equals(feature, Phone.FEATURE_ENABLE_SUPL)) { + return setEnableApn(Phone.APN_TYPE_SUPL, true); } else { return -1; } @@ -396,6 +399,8 @@ public class MobileDataStateTracker extends NetworkStateTracker { public int stopUsingNetworkFeature(String feature, int callingPid, int callingUid) { if (TextUtils.equals(feature, Phone.FEATURE_ENABLE_MMS)) { return setEnableApn(Phone.APN_TYPE_MMS, false); + } else if (TextUtils.equals(feature, Phone.FEATURE_ENABLE_SUPL)) { + return setEnableApn(Phone.APN_TYPE_SUPL, false); } else { return -1; } |