History log of /frameworks/base/core/java/android/net/MobileDataStateTracker.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3e0e3bc617c4fd0e03b88ae04a618381b20a383c 26-Jun-2014 Ram <ram.pl@samsung.com> MS: Adding Support for Emergency APN in Telephony Framework
(base/telephony)

Replacement for https://partner-android-review.googlesource.com/#/c/171175/

Change-Id: I16fc37f5c00ed79f2370bc46554fc7a24c52c4cb
Conflicts:
core/java/android/net/ConnectivityManager.java
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
e356825e4a92e045a51d09b63e31dd9ce8e83d5a 17-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Remove Obsolete enable/disableApn functions.

ConnectivityService now uses NetworkAgents instead and apps should use
ConnectivityManager.

Change-Id: Ifc5c8f5be802183e70a5d92b224c819815de00e6
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
f9cb86aebe9647e0fe0137fc198ba16c017445c6 09-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Replace LinkCapabilities with NetworkCapabilities

Also remove unused LinkSocket and LinkSocketNotifier.
bug:13885501

Change-Id: Id426e31b201fa4f29109b5fea485d8efb34519d3
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
8dc2e5a01a78b0143a068a9486454e05ea6b5ede 30-Apr-2014 Joe Onorato <joeo@google.com> Turn off this very verbose log.

adb shell dumpsys activity broadcasts

has the last 100 broadcasts, so it can be used for debugging
instead of spamming the main logs.

Change-Id: I19c3ac72eb783999e615261da7f00b527d2bc06f
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
1b98e90db063da97c6bb9d47aa9798c8c32a58b5 19-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 0bff77d6 to master

Change-Id: Ia4c86126079740978658a05579b56d59d41a7b01
c8e8e3eba631ab2528fc91ef66f150b7eebddeae 13-Mar-2014 Wink Saville <wink@google.com> Handle provisioning APN by turning off/on data.

This is a start and two tests succeed:

Tested expired AT&T SIM and waiting 15min for alarm to fire.
Tested a provisioned Verizon SIM and works normally.

I've NOT tested AT&T where I've properly completed the provisioning.
I've NOT tested T-Mobile SIM either provisioned or not-provisioned.
I've NOT tested provisioning over WiFi.
I've NOT tested that WiFi <-> Mobile works
I've NOT tested voice calls, SMS, MMS
...

The current bug is below, but it is poorly named either it should be
renamed or a new bug created.

Bug: 13190133
Change-Id: I0a09f642614cd27a8655e9dae764b8999ce485b8
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
8f9b33e77686de8e917ba61c5e2f2e31a1e0e49b 15-Jan-2014 Jake Hamby <jhamby@google.com> Add new RIL commands to read/write NV items and reset NV config.

Add new RIL commands and generic code cleanups.

The only changes required for OMA DM support are the
addition of five new methods in ITelephony.aidl for
reading/writing NV items and performing NV config and
radio resets (requires MODIFY_PHONE_STATE), along with
the new RIL request IDs in RILConstants.java.

Bug: 12864208
Change-Id: I958d2571580d98a49936ef2e6822e5ac086acbe2
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
98e1797367ca8cd8b8476f6befdb55f81cd13e19 29-Aug-2013 Narayan Kamath <narayan@google.com> Remove captive portal code that has no effect.

Note that this CL does not change any behaviour.

At the center of this change is
CaptivePortalTracker#detectCaptivePortal(), which does nothing
except call back into ConnectivityService. Removing it allows us to
simplify code in ConnectivityService. It also allows us to remove
ConnectivityService#captivePortalCheckComplete which was only ever
called in response to this method.

While this does not change any behaviour, it preserves existing
bad behaviour, i.e, that the CAPTIVE_PORTAL_CHECK NetworkInfo
state does not correspond to actual captive portal detection.
We transition into that state and immediately (and unconditionally)
out of it and into CONNECTED.

Change-Id: Ib3797f956d2db5e3cacaaa53e899d81aa8e958af
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
56065891abf383b0409ae595437dcb0ea132e32b 21-Sep-2013 Wink Saville <wink@google.com> Merge commit '53221120' into fix-merge-conflict

* commit '53221120':
Do not always call setIsConnectedToProvisioningNetwork(false)

Conflicts:
core/java/android/net/MobileDataStateTracker.java

Change-Id: I497b57cb96d0f3b3bce4f4e1cbc5febcc6421597
1e4f461839ebd3c9d3dc62232c2eac7d8cbdc467 21-Sep-2013 Wink Saville <wink@google.com> Do not always call setIsConnectedToProvisioningNetwork(false)

Previously I was calling setIsConnectedToProvisioningNetwork(false) always,
but all MDST's receive every broadcast. Thus we could over write an MDST's
mNetworkInfo.mIsConnectedToProvisioningNetwork to false, unless the MDST
that was set to true was last, i.e the code was order dependent.

If the provisioning networks value was false instead of true
when handleMobileProvisioningAction was called we wouldn't invoke
mdst.enableMobileProvisioning because network info would be null.

Thus the provisioning network would never transition to CONNECTED and
a default route wouldn't get setup and the browser couldn't access the
website.

Now setIsConnectedToProvisioningNetwork is only set to false when the
apnType matches and we won't indiscriminately change it and are not
order dependent.

Bug: 10853805
Change-Id: I68a4f9bdf5dc18d90f4cdef7a60811f57be67261
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
9d9b74a900696191048aa97cc3c854072640428b 01-Sep-2013 sy.yun <sy.yun@lge.com> Setting MTU size for specific network.

Able to config network specific MTU size. Normally, the default size of MTU is 1500.
US - ATT 1410, TMUS 1440, SPRINT 1422
KR - SKT 1440, KT 1450, LGU+ 1428
JP - KDDI 1420, SoftBank 1340
CA - RGS 1430, FIDO 1430, MTS 1430, BELL 1358, SaskTel 1358
AU - TEL 1400

Bug: 10195070
Change-Id: Ie18650b37a3d44af944f2dae4aa97c04fb12cd5e
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
a1d6a9b474ba095860838c6ed3e72f8d9f5058cd 06-Sep-2013 Wink Saville <wink@google.com> am fc7a146b: am 50f86448: am 59a9884b: Merge "Do not change NetworkInfo.DetailedState." into jb-mr2-dev

* commit 'fc7a146b82774514bad4bc307489ece7ac27ee50':
Do not change NetworkInfo.DetailedState.
67c382192614dfab821666c4f35f1e2c8b97271b 05-Sep-2013 Wink Saville <wink@google.com> Do not change NetworkInfo.DetailedState.

I'd changed DetailedState to force ConnectivityService to treat
provisioning apn's specially. In particular so that they wouldn't
be identified they were fully connected until the provisioning
actually started. The problem is that DetailedState is a public enum
that has a CTS test and just changing the CTS to allow for the new
state (CONNECTED_TO_PROVISIONING_NETWORK) was inappropriate.

Instead I've added a new mIsConnectedToProvisioningNetwork variable
and used the DetailedState.SUSPENDED as the intermediate state.

Bug: 10620248
Change-Id: Id4a842398cad67455541ce629959351c27d83639
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
b402fb2fddbee48ef3b518358dc5c86db63f7780 05-Sep-2013 Vinit Deshapnde <vinitd@google.com> Merge "Rename LinkInfo to LinkQualityInfo" into klp-dev
6a2d32597a3f158f4ff5b07ad61c7d892d08f3bf 04-Sep-2013 Vinit Deshapnde <vinitd@google.com> Rename LinkInfo to LinkQualityInfo

This change renames the LinkInfo objects to LinkQuailtyInfo. The API is
still hidden; but it can be accessed via reflection.

Bug: 10342372

Change-Id: Ieccea87c467ceae5d7f76298b137573f67396cd6
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
7788c61af5927a0fac612ea94d5205eeec2f507f 29-Aug-2013 Wink Saville <wink@google.com> Merge commit '270226b0' into manualmerge

* commit '270226b0':
Add support for handling mobile provisioning networks.

Conflicts:
core/java/android/net/CaptivePortalTracker.java
core/java/android/net/ConnectivityManager.java
core/java/android/net/IConnectivityManager.aidl
core/java/android/net/MobileDataStateTracker.java
core/res/AndroidManifest.xml
services/java/com/android/server/ConnectivityService.java

Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
948282b0e6cf5310f09db97a4ae939db7c1cef72 29-Aug-2013 Wink Saville <wink@google.com> Add support for handling mobile provisioning networks.

When a sim is new or it has expired it needs to be provisioned
with the carrier. Basically provisioning is associating a sim with
a user account. When a sim isn't provisioned then operators will
restrict access to the network and only allow certain addresses
or services to be used.

This set of changes allows two types of provisioning networks to be
recognized. The first is a network that causes all DNS lookups to be
redirected to a different address than was intended. This is exemplified
by how T-Mobile works.

The second technique uses a special apn for provisioning. An example is
AT&T where lwaactivate is the provisioning apn and broadband is the
normal apn. We first try broadband and if we are unable to connect we
try lwaactivate. When we see the activate we identify it as special and
the ApnContext.isProvisioningApn will return true.

In the future our plan is to create a new network type that can be added
to the apn list, but for now it identified by name.

Here is a list of significant changes:

- CaptivePortalTracker now only test WiFi networks instead of all networks
- checkMobileProvisioning checks for provisioning networks and doesn't
try to ping.
- IConnectivityManager.aidl changes:
* getProvisioningOrActiveNetworkInfo was added to and used by Manage
mobile plan in WirelessSettings so even when there is no active
network it will still allow provisioning. Otherwise it would report
no internet connection.
* setSignInErrorNotificationVisible is used by both
CaptiviePortalTracker and checkMobileProvisioning so they use the
same code for the notifications.
* checkMobileProvisioning was simplified to have only a timeout as
returning the result is now harder as we abort simultaneous call
otherwise we'd could get into loops because we now check every time
we connect to mobile.
- Enhanced MDST to handle the provisioning network.
- Added CONNECTED_TO_PROVISIONING_NETWORK to NetworkInfo to make a new
state so we don't announce to the world we're connected.
- TelephonyIntents.ACTION_DATA_CONNECTION_CONNECTED_TO_PROVISIONING_APN
is sent by the low level data connection code to notify Connectivity
Service that a provisioning apn has connected. This allows CS to
handle the connection differently than a normal connection.

Bug: 10328264
Change-Id: I3925004011bb1243793c4c1b963d923dc2b00cb5
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
1f12cb52a494a3eaefc62d03a8d2fdf47a5535e9 21-Aug-2013 Vinit Deshapnde <vinitd@google.com> Introduce network link quality statistics

This change starts tracking traffic quality data for WiFi and mobile
networks. The quality is tracked based on incidental traffic, and not
on specific measurements. Theoretical bandwidths are hard-coded, as
well as sampling interval; although sampling interval can be changed
by setting a system policy.

Bugs filed to remove shortcomings of this change -

10342372 Change LinkInfo name to something better
10342318 Move hardcoded values of MobileLinkInfo to resources
so they can be updated without changing code

Bug: 10006249

Change-Id: I83d8c7594da20fe53abbd5e1f909b1f606b035bb
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
dce52cdbf1eab8bd979bf4676973699c39f7b32e 17-Aug-2013 Wink Saville <wink@google.com> DO NOT MERGE: MDST is not ready until connected to DcTracker.

When the system becomes loaded the PhoneApp can be delayed
significantly and a call to setEnableFailFastMobileData may not
occur because the channel between the MobileDataStateTracker (MDST)
and DcTracker (DCT) is not connected.

Solution: Add a isReady to MDST and isMobileDataStateTrackerReady to
ConnectivityService and call it from isMobileOk.

Bug: 10351868
Change-Id: I92f9d58121b88186b636cd71c2fd2ef9a28f7cf6
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
89d16f7597d9e03bf3cf9eb1ba91b590ab1ac892 09-Aug-2013 Wink Saville <wink@google.com> am 9b7b4450: am 02eab434: am 4d87d91d: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev

* commit '9b7b4450185e723dc7021f7e8bae4a12d4dd5606':
If in a mobile captive portal is detected enable fail fast.
d747cbc898ef44e59c3fbf74a8327b6a12aad397 08-Aug-2013 Wink Saville <wink@google.com> If in a mobile captive portal is detected enable fail fast.

When captive portal checking completes pass back the result.
This is used to enable/disable failing fast for mobile. When
failing fast is enabled we don't check for data stalls and thus
won't be continually trying to do recovery operations, such as
restarting the radio.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
1aef7fc81a959d9d34d92e3cb018848e0a79b2b7 01-Aug-2013 Wink Saville <wink@google.com> Fix excessive log spew.

Bug: 10115060
Change-Id: I61fd83071da1224f38757b8d90f58c8d6c41d36b
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
5e56bc543743c089635ef899f77404efe38ef055 30-Jul-2013 Wink Saville <wink@google.com> Add network type TYPE_MOBILE_IA.

Add a network type for establishing connections to the apn used for
the initial connection.

Enable some debug for now.

Bug: 8733613
Change-Id: Ia627ac0cf5715660b6d02bb13a83d46ec1727b87
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
ab9321d13de29cf314e8a1774b592d1f1d7e94d8 30-Jun-2013 Wink Saville <wink@google.com> Add checkMobileProvisioning to ConnectivityService.

Bug: 9279964
Change-Id: I42c326a21e05aa301e9d974ed9ac1d59472780ec
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
665e1aed5e99af1e66af56c0d73e32fd86f57273 22-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Add BT - DataTracker connection

Allows the external BT stack the means to communicate with
ConnectivityService during reverse tethering.

bug:8445208
Change-Id: Ice7dfb0b50c9481d359aed14a51372878185171c
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
69edd64d9bf839428ce0a7723cd0f1deda98dc0d 07-Mar-2013 Lorenzo Colitti <lorenzo@google.com> Add stacking to the NetworkStateTrackers.

Bug: 8276725
Change-Id: I55a107fea78f9cc84f15bd6c75292138fb35a1b6
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
d14e17627266ff8cf804d1f8241a0a4bde7a0ab4 20-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> Update TCP buffer size when switching network type

Import of non-merging change 41612 from AOSP

When PDP connects in GSM network, the TCP buffer window size is
set to max 8760. If the phone swicthes to UMTS, the TCP buffer
size is not updated to UMTS, i.e. GPRS buffer size is still
used with limited data transfer spead as a result.
This fix makes sure the TCP buffer size is updated when
switching network type.

Change-Id: Ic44a557677ffe629e83ce1f522a9f058bee6e7b2
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
6b6ce6bfce56c2f3ce007b33d3f834f8dd62b626 01-Aug-2012 Robert Greenwalt <rgreenwalt@google.com> am a5637bac: Merge "Telephony: Add HSPAP to getTcpBufferSizesPropName"

* commit 'a5637bac23611a985696c92b49f93964f435ecb5':
Telephony: Add HSPAP to getTcpBufferSizesPropName
897b311ccbcc3e6a21a03f36101e1fd804810ef8 31-Mar-2012 Naveen Kalla <nkalla@codeaurora.org> Telephony: Add HSPAP to getTcpBufferSizesPropName

When device is camped on HSPAP TCP Buffer sizes need to be configured
properly to support higher data rates. Without this change, default TCP
buffer sizes will be used and throughput will be low.

Change-Id: Ica5884b35851a32e57c82c63b148df5be580ae83
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
71930dd77e4dc6f6be5c648019d2ab0da5f0584c 25-Jul-2012 Jeff Smith <whydoubt@yahoo.com> am a45746ef: Fix several cases of broken droiddoc syntax external issue 35214

* commit 'a45746efadd11bb7dfab026fb3c81a25fae74ca4':
Fix several cases of broken droiddoc syntax external issue 35214
a45746efadd11bb7dfab026fb3c81a25fae74ca4 19-Jul-2012 Jeff Smith <whydoubt@yahoo.com> Fix several cases of broken droiddoc syntax
external issue 35214

patch contributed by Jeff Smith <whydoubt@yahoo.com>

Change-Id: I70dcee88a140699bf3e1ab369bed6dcd2fdd3d83
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
33034b13cae1429d526722374bd39be3f9605ae4 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common - DO NOT MERGE

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
12e24ae7600f8297abcde0d7c29d6cfb64f59dfb 18-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> Send availability info more reliably

We don't have a monolithic availability state, so the mAvailable variable
must go.

bug:5453318
Change-Id: I82af90907cc7a0173b74d661912f9c28ddc7dcb0
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
c9acde9aa6cf21598640aeebb7d908f1926a48dd 21-Sep-2011 Wink Saville <wink@google.com> Reduce connectivity logging

Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
2367e75beebd44338d67c20270cecedd5ca3cb5c 13-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> am 61db35da: am 2f835a61: Merge "Make copies of NetworkInfo to give out." into honeycomb-LTE

* commit '61db35da2b4501dde5646f86f21cf5054c41ea26':
Make copies of NetworkInfo to give out.
6aecb98a627daa3f66c060ca5177a075e4e9bcca 09-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Make copies of NetworkInfo to give out.

Otherwise we'll change it out from under those we've given it too.
bug:5233462

Change-Id: Iffc886849edfa6ced3da1133f9d363e11b2733f8
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
a6d4248e21bd62a51ac4aaadaa67fdb55b666d98 03-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Pass roaming info to ConnectivityService.

bug:5215657
Change-Id: I77024141a7bbaa47eae021009e16b283699be53e
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
47eb102b40cd1324d89816a7fb0fecd14fd7a408 26-Aug-2011 Jeff Sharkey <jsharkey@android.com> Always splice historical data stats, debug info.

When reading network counters, always splice in xt_qtaguid values
to avoid counting backwards. Test to verify.

Remove verbose logging around global alerts, and add dumpsys debug
info for NMS and MDST. Also fix subtle bug around stats persisting
and dumping.

Bug: 5212893, 5211028
Change-Id: I783e5286637a67ee2dd2b09878198711a926d0cb
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
8e28b7d78232f6cf08739ca0d129cc7f9e650801 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Proactively disable data when over policy limit.

Add policy controls to NetworkStateTracker which are combined with
other user preference and internal flags to decide if data connection
should be established. Better locking around enabled flags.

When data network would be over limit, proactively disable data on
that network. Enable when policy is snoozed or when cycle resets.

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
58d4c595818de0d1b7edf382fee6ed1a4bd70e7f 03-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Reduce ConnectivityService logging

bug:5106520
Change-Id: I4a7a5cac51c09e9e2275b30b7b2c053f94b9088d
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
5a8921fddac150601f4719d714e919e3a600f295 30-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Stop creating threads for each MDST.

Response to email from the framework team.

Change-Id: I8fec9cfbc3364c2c2a16156afc2414d06c675de7
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
ec896c6a863b3cc0a55538a19879e2112b5b8658 15-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Reset connections AFTER we take down the network.

If you do it before you have a race condition and some apps will
manage to reconnect on the dieing network before it goes and then
get no notification when it goes.

bug: 3408025
Change-Id: I5386ff313c759b3f687bc38731454ab43dbe76b8
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
01758e81b3ad89934581885bb2fc7006510ec639 01-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Linkproperties update via unsol data call state change.

Handles the scenario of radio technology handover with IP continuity.
Once RIL/Modem finished a handover operation, an unsol data call state
change will be send up to FW notifying all link propertes changes.
FW will then re-configure the device with new link properties
including iptable used by Tethering.

Change-Id: I05e29f66ac3db8ba4274d3662642607742ba1d12
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
d55a6b498d66d8fc415908ecf63e50f46cce67e8 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Add external dependency API.

An APN will not be connected to if some external dependency is not met.

bug:3486704
Change-Id: I7d94df343b260013efd11faa978deb13f07f1389
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
9d7d62801ddb206d2ea96d74864a9edfe54d2eee 12-Mar-2011 Wink Saville <wink@google.com> Do not merge: Revert the revert of "LTE Changes for Telephony including Multiple PDN support and IPV6 support"

This reverts commit eca208fae6d1b6ae9c8c0e42eee092e86dbddbb7
and is the first of the LTE commits in master being back ported
to the LTE branch.

Change-Id: I17d4a1b779ed74bc7dfb409d2c1a30f60fdb27c7
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
eca208fae6d1b6ae9c8c0e42eee092e86dbddbb7 03-Mar-2011 Wink Saville <wink@google.com> DO NOT MERGE: Revert "LTE Changes for Telephony including Multiple PDN support and IPV6 support"

This reverts commit 2b8bcfe5b74e1a34d136f4ff46e3c94397f38f82.

Change-Id: Ifc4e9aaccb54e065a36380710694cd6e4d347636
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
2b8bcfe5b74e1a34d136f4ff46e3c94397f38f82 25-Feb-2011 Wink Saville <wink@google.com> LTE Changes for Telephony including Multiple PDN support and IPV6 support

Added init for CDMAPhone.java

Change-Id: I2392b5ad3382ee1993537b8477ef00dd036c6fe9
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
645b83f3ec2ead154c2062fd6d4498713d11de7e 21-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Remove some unused code.

Change-Id: Id29bf7d2118065e2e772b22d910bda1c6de2a475
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
17415b9292d3da64d6776906954bcf31421d00f2 14-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Update network subtypes info so it is current.

bug:3327895
Change-Id: Ic1e2a5527c651333af50cc5cfa6c44a15b991fb0
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
e798268f16ec6d0542616ea45ca0bb18ae2645ee 07-Dec-2010 Wink Saville <wink@google.com> Have MobileDataStateTracker & DataConnectionTracker communicate directly.

Added CMD_SET_DATA_ENABLE which is sent when data is enabled/disabled
via the ConnectivityService. It is anticipated that the communication
channel will be used for additional commands and to receive unsoliciated
commands from DataConnectionTracker back to MobileDataStateTracker.

Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
ed9c02b56c6f56a583aa272f82818ef039face75 03-Dec-2010 Wink Saville <wink@google.com> Cleanup logging.

Change-Id: Ie73c6d97ec19b0d27e58c085b60e885d90066056
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
26f5a384d81487cc6bb80a78fb40d5e7e7ffc81e 25-Nov-2010 Wink Saville <wink@google.com> Use apn types instead of host when sending notifications.

Previously we were passing the apn host not the type and this
caused us to sometimes not send out network change notifications.

Also rename of getActivceApn to getActiveApnHost to make
the method clearer on what is being returned and add some debug.

A future change will rename ApnSetting.apn to ApnSetting.host
and getActiveApnString.

bug: 2995554
Change-Id: I0c405b0f823f62c9596968c8516b820d9f8a94f2
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
962a990a45a2a9f9c3002064e71f9c2fed86acf1 02-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Add some network/phone type constants.

Support for LTE (and SIP-based voice) and the stepping-stone eHPRD.

bug:3125398
Change-Id: Ied3d96fa09d9c758a82a2fd1817f55db711d1a4f
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
ba175a5e1331883ef4ecfc2b751789a3492efca1 06-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Turn on some debugging info

bug:3060742
Change-Id: I86f4e0b3f678c80e1bee11abd32ab0b9e0563b09
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
dc71b9e4d67327065a992924a021cad4bc100fa2 01-Oct-2010 Dianne Hackborn <hackbod@google.com> resolved conflicts for merge of 6a3eddb4 to master

Change-Id: I1ca1d100274d4a733ef2bf58b0d5d7217b4f858e
6a3eddb469b282f7d904e5dbcb375ad44ada3ee3 01-Oct-2010 Dianne Hackborn <hackbod@google.com> am 0a69f597: Merge "Rub in a little \'ol log-b-gone." into gingerbread

Merge commit '0a69f597604254bc37721b135ab612eaacdd0cbd' into gingerbread-plus-aosp

* commit '0a69f597604254bc37721b135ab612eaacdd0cbd':
Rub in a little 'ol log-b-gone.
cef65eeb0315c3118bf8860d6f723cb49ff6bc52 01-Oct-2010 Dianne Hackborn <hackbod@google.com> Rub in a little 'ol log-b-gone.

Mmmmmm... great fresh scent!

Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
f61101f6266be243c481d163b95e65d67b8d1669 17-Sep-2010 Wink Saville <wink@google.com> Add LinkCapabilities

Change-Id: Ia1599ade936b79f12526252c0a2e6b453abb136e
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
30bf654574981c39e9090fdd6ddbf515a4180bae 03-Sep-2010 Wink Saville <wink@google.com> Remove unused intent from filter and unused method.

Change-Id: I8c503903fceb508658cce14918f2c77c04289873
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
cff25ffb0aeddecc2621e59b47322e524aa66046 31-Aug-2010 Robert Greenwalt <rgreenwalt@google.com> Remember mobile nets availability

Change-Id: I402ac64bf477b0b600b17f0267c2ff5c19ab9cf3
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
37e65ebb7eb932e1a144b1cab262e11ca5fd109b 30-Aug-2010 Robert Greenwalt <robdroid@android.com> Rename NetworkProperties to LinkProperties

Also add copy constructors and use them when giving out data.

Change-Id: Id320eb8fb91d0bd250305ce7bb4f628570215615
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
585ac0fc8dde3fe35ec4c71c8f215f2c84139b8b 27-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 4ea54f44 to master

Change-Id: Ia77bb59a6e1950648c8ebf7db307e204f93a9f56
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
b21b62327c10e92baf1a88e77f1c6d5576a17d62 26-Aug-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of b998f311 to gingerbread-plus-aosp

Change-Id: I7ceb0b624e78d85542d1c36bfabeb5dc31961505
8afddad7e7ce7275e26dc1ebfb359fbdd1d5920b 20-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Fixing Connectivity

Passing Gateway addr info from telephony into ConnectivityService so it can
add/remove the default route as needed. Fixed differently on master.

bug:2927822
Change-Id: I9a3ee7cd23c4717e7c60098f0595aa3f77c44b15
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
9bc709d46e1165ca0c9a02bd970767c401b990e5 10-Aug-2010 Banavathu, Srinivas Naik <snb@codeaurora.org> Add an API to request route to an IPv6 host.

Add API to create a route to an IPv6 host through a particular
interface.

Change-Id: I7649051e94832576e02b5f5ad17abe093d21d48e
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
a22ae073cc727eb4cf2c6734d6ba7336d6d9e2b4 14-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Do not kill sockets going default->hipri

A usecase is to use hipri to keep alive 3g connections when wifi
is about to be brought up. They are the same network, so don't
reset unless both are down.

Change-Id: I8dabc42f315943b28ea34721793b0ee330c07bf6
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
c7a98341b053bd8090accca151e8f3522f2dd126 14-Aug-2010 Wink Saville <wink@google.com> Add documentation to NetworkStateTracker and a small change to the API.

Also, removed some unused NetworkStateTracker event codes.

The API change was to add context and target to startMonitor, this makes
it easier to document what the actual interface contract is.

Change-Id: If9b52486c3c281fe4794bc78417c8b03888414b1
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
0d25534fed91f636def5776ddc4605005bd7471c 28-Jul-2010 Irfan Sheriff <isheriff@google.com> Split WifiStateMachine from WifiStateTracker

Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
153b4374d067ee92a0b9c712e54300cc49db017c 23-Jul-2010 Robert Greenwalt <robdroid@android.com> Don't reset connections switching default->hipri

A usecase is to use hipri to keep alive 3g connections when wifi
is about to be brought up. They are the same network, so don't
do the reset unless both are down.

This will go away when we get the deferred network downing.

bug:2865630
Change-Id: I07729b7776fe5ea129120c688cf7839a55a7ed95
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
0a0ba099ed89270a9346748ccfe2265def595e9e 16-Jul-2010 Robert Greenwalt <robdroid@android.com> Fix Emulator boot.

Catch a NPE that doesn't seem to happen on devices.

Change-Id: I47d599afbed76798d8d312a59e30b89664363e93
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
47f69fe2999e46004f2f2463b70d38de9ff7079a 16-Jun-2010 Robert Greenwalt <robdroid@android.com> Pass network properties to ConnectivityService.

Used as a bag to hold ipaddr, gateway, dns, proxy info.
addr's are InetAddresses for v4/v6 use. Cleaning up some old v4-only code

bug:2655015
Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
d649c12815bcf944b2c97371f3f60716a42a1557 10-Jun-2010 Irfan Sheriff <isheriff@google.com> Make NetworkStateTracker an interface

As part of the WifiStateTracker cleanup, need
to have NetworkStateTracker as an interface.

Change-Id: I2ac48d7e4c7274ac4df40bc3b8591b182956a936
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
02648a4b8422733ed401f07edf8e426318bb2f8d 18-May-2010 Robert Greenwalt <robdroid@android.com> Clean up APN notifications.

Add APNType info to notifications so you can tell what's happening. Now, even if a new APN
shares a connection with an already-connected-to- apn type, the new type will get all
the connecting and connected messages on connect and disconnecting/disconnected on disconnect
even though the shared connection remains connected.

Cleaning out the hacks MobileDataStateTracker needed to deal with the old situation.
bug:2226092

Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
4adacd23d4c91569b16fe50419f1a91f68d805bd 12-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: If6730b50627b2231bd345e594d8d30a37557849e
0a5174a6e947d5cbeb8846a1273a90b6de065cbf 21-Apr-2010 Naveen Kalla <nkalla@codeaurora.org> Add support for EVDO Rev B

Change-Id: I8588e8b342c51f4b79bced8ef8fe60d57f07aefa
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
61f1ce0ec0692f4184edef3334a26973ba65edd7 18-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix bug in airplane mode.

If the phone comes up in airplane mode you and you turn it off,
you can currently end with both mobile and wifi turned on.

bug:2524413
Change-Id: I7a841c955be9038109d0b220070406a3fbd3e8e9
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
50f1c4b7093dd0e319ed16917446ed9f39f2d809 04-Mar-2010 Robert Greenwalt <robdroid@android.com> Resync with Telephony after losing Phone service.

Bug shows we lost contact with the phone service. We used to leave the notion of enabled alone
in this case, but that can lead to being out of sync (the mobile data connection may be
alive or come alive but if we think it is dead we ignore it). Changing our
notion of its enabled-ness to 'enabled' means we'll pay attention to its messages going forward,
and since after a reboot it starts enabled we'll actually be in sync.

bug:2323057
Change-Id: Ie080b50d764e6879e712507aceb68f585f12f94e
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
78a640af951377d9749d0dbfd027687cbb92dc72 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Make HiPri work when already connected.

A recent change made the HiPri MobileDataStateTracker listen for notifications
about the default connection (which HiPri shadows). Local code was sending
itself a notification using the old HiPri badging instead of the new Default
badging and those notifications where therefore ignored.

Manifested itself on HiPri connections when we were already on 3g.

See change 42422 on master platform/frameworks/base for the change this is completing.

Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
0e350f020a5858dcf2b507a19b26c0ef69b1ec89 26-Feb-2010 Robert Greenwalt <robdroid@android.com> Fix hipri status notifications

MobileDataStateTracker was looking for "hipri" notifications, but it is really
just using the default apn.
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
5154ae7665743b114c71f90dcc577dc50c63b398 30-Oct-2009 Robert Greenwalt <robdroid@android.com> Cleanup ConnectivityServices network configuration

Don't instantiate objects not needed for the device.

bug: 2226064
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
03d246779ea65fc2bd10d0b4f32620f45211133a 08-Oct-2009 Mike Lockwood <lockwood@android.com> GPS: Fix problem with SUPL when SUPL APN is already active.

Use ConnectivityManager.CONNECTIVITY_ACTION broadcast in LocationManagerService
to notify GPS when SUPL connection is ready instead of TelephonyIntents.ACTION_ANY_DATA_CONNECTION_STATE_CHANGED,
which is not sent in all cases.
Expand LocationProvider.updateNetworkState() to include NetworkInfo object.

Fixes bug b/2155661

Change-Id: Iee227ace7d536b36cf7973e3e6a8b7a621ce6565
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
d8df149cfb82cf02cef7e04c05f229d7caf7fe90 06-Oct-2009 Robert Greenwalt <robdroid@android.com> Turn some logging back on in ConnectionManager

Trimmed a bunch of logging out, but turned it on so we get the critical stuff.

bug: 2168291
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
bd0a81ff1c0e92e80e05e2f12bb1805c7d081e94 04-Oct-2009 Dianne Hackborn <hackbod@google.com> Work on issue #2163789: Way too much logging

Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
d1aca6aa73b0f1e22229829db89b1f3513a16aa8 25-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix ConnectivityManager's handling of apn switch.

It was clearing the interfacename when it was needed later in the process - the prevented us
from clearing the route to private dns servers and clearing the flag that this was set.
Consequently future uses would not set the private dns servers (since it thought they were already
set) and our lookups would fail.

bug: 2146929
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
8206ff30c23c76851bebc8d72a65e65b0f7f9a29 11-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix for multi-apn MMS access.

Mark cellular variants with the same availability, regardless of which are currently in use.
Availability just means the radio is enabled and sees the network, but has no guarantees that
we could connect to an APN if requested.

Fix the requestRouteToHost logic to support apn switches without WIFI.

bug:2093841
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
0badd0b700ed618dac421cb6cde4654b51acb3a4 25-Aug-2009 Robert Greenwalt <robdroid@android.com> Note net availability even when apn not enabled

Fixes a problem where mms apn was on when we lost the network (airplane mode) but mms was
off when airplane mode was turned off so it kept thinking we didn't have access and
future mms always failed.

bug: 2075145
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
ec9fe4672a46eb928ab710d8e3caf2ce046100d4 21-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix a race condition for data change notification

We could sometimes not be told about network state changes breaking subsequent mms access.
Turning on more logging too.

bug: 2069106
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
ebe66345e7099ca6fc95e8aa4d31a5b5cbbd6224 14-Aug-2009 Li Zhe <jqc837@motorola.com> Framework changes to support HSDPA/HSUPA/HSPA
HSDPA: High-Speed Downlink Packet Access
HSUPA: High-Speend Uplink Packet Access
HSPA: High-Speed Packet Access

Add support for HSDPA/HSUPA/HSPA:
1) extend TelephonyManager.NETWORK_TYPE for HSDPA/HSUPA/HSPA
2) extend ServiceState.RADIO_TECHNOLOGY for HSDPA/HSUPA/HSPA
3) set radioTechnology into ServiceState in GsmServiceStateTracker
4) change the implementation of TelephonyManager.getNetworkType to
solve the competition timing issue between the time of setting
system property and the time of receiving notification through
PhoneStateListener
4.1) add a getNetworkType interface in ITelephony.aidl
5) add icons resources for HSDPA/HSUPA/HSPA
6) make use of HSDPA/HSUPA/HSPA icons in StatusBarPolicy
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
a64bf834ffa677405af1c87c9f53eed0cd3853ce 20-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix various issues found when testing Mms.

Fix some race conditions (check isTeardownRequested).
Fix the passing of mInterfaceName to subtypes (mms, etc).
Fix the generation of CONNECTED message to already active subtypes.
Fix the enabling of Data in DataConnectionTracker.

bug: 2065037
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
60a45aff31541f65d39e4c4e7824cd1ea5a1e84c 19-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix Wifi+Cell on boot after wifi in use.

The gist of it is: Ignore reconnect fail of default APN during boot.

A long path:
1 If wifi is started at boot it starts fast - before the PhoneService is available.
2 Wifi starts by failing - you get DISCONNECTED/Scanning events so CM starts the other default network (mobile).
3 Trying to restart mobile fails because the phone service isn't up yet.
4 The failure is noted and the net is marked as not-enabled.
5 The phone trys to auto-start the mobile network and succeeds, sending state-changed events
6 The CM ignores the state-changed events because the net isn't enabled (see 4).

The long term fix is to remove two-way state tracking from the MobileDataStateTracker and instead just consume the state fed to us in state-change events.
Near term fix is to not mark the default net disabled when we have failure (step 4) if the phone service isn't available.
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
c85675d0ef75ad968935ff8af9a3ed8bee29c511 18-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix for Mms without wifi.

Need to change MOBILE_MMS network into connnected state if the current
apn can already support the traffic.

Bug:2058212
Bug:2055065
Bug:2046882
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
25a5d3db3ff06b9952395832308bc3b48913c4ee 14-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix CDMA to startup/shutdown based on apn en/disab

Fixes MMS during wifi.
Also fixes CDMA for ConnectivityManager change.
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
42acef37339afe6ac608c842f1637870ee9c4f6c 13-Aug-2009 Robert Greenwalt <robdroid@android.com> Add net type to mobile for mobile-required traffic

This also refactors ConnectivityService a bit towards supporting multiple simultaneous connections by making each a seem like a seperate Network with it's own stateTracker, etc.
Also adds tracking of process death to clean orphaned startUsingNetworkFeature features.
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
cd15475bc3c096a0d17e76c6917ea253e54f7641 30-Jun-2009 Mike Lockwood <lockwood@android.com> Revert "ConnectivityManager: Add support for bringing up the default APN."

This reverts commit a84b6faffbe7ef5981f3202be0f68a8b44d61a76.

I will work on a better mechanism for bringing up the default APN
when Wifi is enabled.
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
a84b6faffbe7ef5981f3202be0f68a8b44d61a76 24-Jun-2009 Mike Lockwood <lockwood@android.com> ConnectivityManager: Add support for bringing up the default APN.

The default APN can now be requested by calling
ConnectivityManager.startUsingNetworkFeature(Phone.FEATURE_ENABLE_DEFAULT).

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
42ad56ead40f6c5986bd2d298b1d36f42da489a1 14-Apr-2009 Mike Lockwood <lockwood@android.com> telephony: Add support for bringing up GSM data connections for GPS SUPL.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/net/MobileDataStateTracker.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/net/MobileDataStateTracker.java