diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2011-09-02 15:19:31 -0700 |
---|---|---|
committer | Robert Greenwalt <rgreenwalt@google.com> | 2011-09-08 12:01:59 -0700 |
commit | a6d4248e21bd62a51ac4aaadaa67fdb55b666d98 (patch) | |
tree | 48b0d760dc2294efd7fc45b48967dc089c0fb726 /services/java/com/android/server/TelephonyRegistry.java | |
parent | d6ede109841f95dc6b1a6d463ae1aab63ab47ac7 (diff) | |
download | frameworks_base-a6d4248e21bd62a51ac4aaadaa67fdb55b666d98.zip frameworks_base-a6d4248e21bd62a51ac4aaadaa67fdb55b666d98.tar.gz frameworks_base-a6d4248e21bd62a51ac4aaadaa67fdb55b666d98.tar.bz2 |
Pass roaming info to ConnectivityService.
bug:5215657
Change-Id: I77024141a7bbaa47eae021009e16b283699be53e
Diffstat (limited to 'services/java/com/android/server/TelephonyRegistry.java')
-rw-r--r-- | services/java/com/android/server/TelephonyRegistry.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/services/java/com/android/server/TelephonyRegistry.java b/services/java/com/android/server/TelephonyRegistry.java index 4447ad0..bc256ed 100644 --- a/services/java/com/android/server/TelephonyRegistry.java +++ b/services/java/com/android/server/TelephonyRegistry.java @@ -383,7 +383,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub { public void notifyDataConnection(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, - LinkCapabilities linkCapabilities, int networkType) { + LinkCapabilities linkCapabilities, int networkType, boolean roaming) { if (!checkNotifyPermission("notifyDataConnection()" )) { return; } @@ -437,7 +437,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub { } } broadcastDataConnectionStateChanged(state, isDataConnectivityPossible, reason, apn, - apnType, linkProperties, linkCapabilities); + apnType, linkProperties, linkCapabilities, roaming); } public void notifyDataConnectionFailed(String reason, String apnType) { @@ -596,7 +596,7 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub { private void broadcastDataConnectionStateChanged(int state, boolean isDataConnectivityPossible, String reason, String apn, String apnType, LinkProperties linkProperties, - LinkCapabilities linkCapabilities) { + LinkCapabilities linkCapabilities, boolean roaming) { // Note: not reporting to the battery stats service here, because the // status bar takes care of that after taking into account all of the // required info. @@ -618,6 +618,8 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub { if (linkCapabilities != null) { intent.putExtra(Phone.DATA_LINK_CAPABILITIES_KEY, linkCapabilities); } + if (roaming) intent.putExtra(Phone.DATA_NETWORK_ROAMING_KEY, true); + intent.putExtra(Phone.DATA_APN_KEY, apn); intent.putExtra(Phone.DATA_APN_TYPE_KEY, apnType); mContext.sendStickyBroadcast(intent); |