History log of /frameworks/base/core/java/android/net/ConnectivityManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c9c7be58a59ba43d09ff4ab4d540e4fb517db0b1 16-May-2016 Felipe Leme <felipeal@google.com> Documented return value of getRestrictBackgroundStatus().

Change-Id: I2c15a6d5e23cbc3c9b59c975196c1c04c1294471
Fixes: 28775490
/frameworks/base/core/java/android/net/ConnectivityManager.java
7ec93a1ee2d381fdcd3be271712e4179ddbf9829 04-May-2016 Robin Lee <rgl@google.com> Merge "Add lockdownEnabled parameter to always-on VPN API" into nyc-dev
dc67971a996c447c71ceb9ad983c79c96f598bcc 03-May-2016 Robin Lee <rgl@google.com> Add lockdownEnabled parameter to always-on VPN API

Allows callers to opt-out of blockading network traffic during boot and
on VPN app failure.

Bug: 26694104
Change-Id: Ibfbd43ad09a25f2e38053fcd6306df3711f8bde2
/frameworks/base/core/java/android/net/ConnectivityManager.java
1b6519bd87a59a10e9928e5772a17976692611da 28-Apr-2016 Jeff Sharkey <jsharkey@android.com> Flag to mark foreground jobs, fix data saver.

When a job will eventually run in the foreground, the internal
scheduling needs to ignore any background network restrictions when
satisfying constraints. This also means the job should ignore the
current device doze state, since the requesting app could get the
same behavior by starting their own foreground service.

Always dispatch network policy changes to ConnectivityService first
to ensure that it has up-to-date information. Fix bugs around data
saver that were causing networks to not be marked as BLOCKED for
background apps; before this fix apps would have been spinning in
internal connectivity loops, thinking that the network was actually
connected when the kernel was actually blocking their traffic.

Offer new ConnectivityService method overloads to ignore the blocked
state for a specific UID.

Print unsatisfied job constraints to aid debugging.

Bug: 26571724
Change-Id: Iaaa17933e6dc1bf6d3dff26d0bfc12222e51e241
/frameworks/base/core/java/android/net/ConnectivityManager.java
34802130548047f09074300513fcf269625eee8a 20-Apr-2016 Andreas Gampe <agampe@google.com> Frameworks/base: Make debug helper lazy in ConnectivityManager

Place helper map for callback field names into a holder. This avoids
the reflective calls in static initialization of ConnectivityManager
in the common (non-debug) case, which means the class can be
compile-time initialized. Also saves the storage necessary (both
the storage array as well as the reflection metadata).

Follow-up to fcfa7d921a173847a0b3946983612e031e73c44c.

Bug: 27265238
Change-Id: Ib4bfaf27acd234a035a5d198458340099a156a4c
/frameworks/base/core/java/android/net/ConnectivityManager.java
88bc0bbb13cee43e777fd88c2681d1f033faece5 13-Apr-2016 Lorenzo Colitti <lorenzo@google.com> Disambiguate NetworkCallback JavaDoc.

The JavaDoc for many of the requestNetwork and
[un]registerNetworkCallback APIs incorrectly mentions the
PendingIntent version of the APIs instead of the NetworkCallback
version.

Also fix a minor issue in the registerDefaultNetworkCallback
JavaDoc: the default network request is an implementation detail,
so don't mention it. Instead, talk about the "system default
network".

Change-Id: Id94d98261daa2bd768c10e033cb8092729b21c91
/frameworks/base/core/java/android/net/ConnectivityManager.java
b290c0a2cb3372a768215b44fe15788221802790 19-Feb-2016 Pierre Imai <imaipi@google.com> Fix a memory leak in ConnectivityManager.

Remove callbacks from the internal storage when they are being unregistered.

Change-Id: Ia42ed7aefaebd8caf3eada8e42b6cb7a940d7647
/frameworks/base/core/java/android/net/ConnectivityManager.java
1b83651e7fca620589a6317d3a8559e43a19485c 07-Apr-2016 Robin Lee <rgl@google.com> Merge "Internal API for system apps to determine default network for other apps" into nyc-dev
d2baf792f8b7ae46aa6a35cff25eb7e3923f5125 24-Mar-2016 Robin Lee <rgl@google.com> Internal API for system apps to determine default network for other apps

Callers with CONNECTIVITY_INTERNAL permission can read off the netId
that an application is assigned to by default.

Necessary for making connections as the default network for a client
app eg. when downloading stuff on its behalf.

Bug: 27074270
Change-Id: I8d35e8e99126875f55f3c545090326f3e9be43fb
/frameworks/base/core/java/android/net/ConnectivityManager.java
f46600d074f55d1c77741852cd734e3126b43eca 01-Apr-2016 Erik Kline <ek@google.com> Make public the registerDefaultNetworkCallback API

Change-Id: I89d7a6f49f5d6a0da3402a07407b0f8d93181b4f
/frameworks/base/core/java/android/net/ConnectivityManager.java
a2d29407d02ba692a90507db8b6fc2cf5cf89725 16-Mar-2016 Erik Kline <ek@google.com> Support registering a request for the default network

Change-Id: I079f5be97b585cf5692dd4c7a144b993d168a9a5
/frameworks/base/core/java/android/net/ConnectivityManager.java
b7ffb764370805aa0734d2f31bc2def34df04d86 02-Mar-2016 Lorenzo Colitti <lorenzo@google.com> Merge changes Ic366b532,I0179b45b into nyc-dev

* changes:
Move PinningNetworkCallback out to a new NetworkPinner class.
Use MessageUtils in ConnectivityManager.
c53962d4ede82a03b62f0c8bb86bd0da090a15eb 02-Mar-2016 Jeff Sharkey <jsharkey@android.com> When system server goes down, crash apps more.

Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: Ife0bcb079636c88d54c44d17eb580409fd79028b
/frameworks/base/core/java/android/net/ConnectivityManager.java
fcfa7d921a173847a0b3946983612e031e73c44c 01-Mar-2016 Lorenzo Colitti <lorenzo@google.com> Use MessageUtils in ConnectivityManager.

Change-Id: I0179b45bc54ffced8e5647d6f005b891b5de93ab
/frameworks/base/core/java/android/net/ConnectivityManager.java
f933871976b4dc4c8e71a364b66f5208cefad3d3 03-Feb-2016 Felipe Leme <felipeal@google.com> Merge "Created a ACTION_RESTRICT_BACKGROUND_CHANGED intent."
9778f761237b2533903bacc091b1597990110a7e 27-Jan-2016 Felipe Leme <felipeal@google.com> Created a ACTION_RESTRICT_BACKGROUND_CHANGED intent.

This intent will be broadcasted when:

- Global restrict background setting is changed (sent to all packages)
- An individual uid is added to or removed from the whitelist (sent just
to the packages belonging to that uid).

This intent is only sent to registered receivers.

BUG: 26451391
Change-Id: Ic0a5771f88baa52076ad04764f29098a386463cc
/frameworks/base/core/java/android/net/ConnectivityManager.java
45fbe46da642ebc0685ecdee73b09a963d5fe54d 28-Jan-2016 Lifu Tang <lifu@google.com> Merge changes from topic '2016 GPS Changes'

* changes:
Framework support to read newly added fields
Added an API to query GPS hardware version info
GPS Measurement and Navigation APIs go public
Supported GNSS multi-constellation in frameworks
7ea3e8bf8954343d7b243b6a23bcb8339921f3c8 25-Jan-2016 Shishir Agrawal <shishir@google.com> Unhiding MSIM APIs.

1. Unhide MSIM APIs in TelephonyManager that already have non-MSIM equivalent
APIs public.
2. Make MSIM API naming consistent (overloaded, no suffix).
3. Unhide APIs in SubscriptionManager that are necessary for MSIM.

Bug: 26772894
Change-Id: Ibebab7379ea79c8e4812bbd190342827048e30e2
/frameworks/base/core/java/android/net/ConnectivityManager.java
36c7aa03255d91cfa0808323ac475ad02d161d7d 22-Jan-2016 Jeremy Klein <jlklein@google.com> Expose a simple tethering API which includes provision checks.

This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.

BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
/frameworks/base/core/java/android/net/ConnectivityManager.java
30f95a7d67870c28d2aaa88ee989c099f5670225 08-Jan-2016 Lifu Tang <lifu@google.com> Supported GNSS multi-constellation in frameworks

Change-Id: I82574afd3697c47e806d2cfaedc33756d0353b73
/frameworks/base/core/java/android/net/ConnectivityManager.java
ecfcceaecb83bf804072fec2e0b821e3d990941c 25-Jan-2016 Felipe Leme <felipeal@google.com> Fixed RestrictBackgroundStatus signature by adding @hide.

BUG: 26082535
Change-Id: I2e4b63327a8f791db01ee0c1ab090557170857fa
/frameworks/base/core/java/android/net/ConnectivityManager.java
1b103238b90ca0aa7a2dcaaf0912361d583367a9 22-Jan-2016 Felipe Leme <felipeal@google.com> Created new public API so applications can customize its metered network
usage while running in background.

The new API is 'int getRestrictBackgroundStatus()' and returns the
following values:

- RESTRICT_BACKGROUND_STATUS_DISABLED: no restrictions
- RESTRICT_BACKGROUND_STATUS_WHITELISTED: restriction but app is
whitelisted
- RESTRICT_BACKGROUND_STATUS_ENABLED: full restriction

The proper way to interprete these values for using metered networks
while running on background is:

- When disabled, there is no restriction and the application could use the
metered networks freely.

- When whitelisted, the application can use the metered network, but should try
to minimize the usage.

- When enabled, the application should not try to use metered networks at
all, since the usage will be denied.

BUG: 26451391
Change-Id: If07d42bb88e4c02802df0234861f38aef2cfead7
/frameworks/base/core/java/android/net/ConnectivityManager.java
b68d2d5b68dc58fb7b75ce94af74de58a1b9d3f9 14-Jan-2016 Robin Lee <rgl@google.com> Merge "Always-on app VPNs"
244ce8ef5f201cf403bab43df8281671a9e94512 05-Jan-2016 Robin Lee <rgl@google.com> Always-on app VPNs

Bug: 22547950
Change-Id: I46b204170bfac58d944f39b22f815b080de71a58
/frameworks/base/core/java/android/net/ConnectivityManager.java
b6bb986889cebd19a22f89c0631f03d0ab711a77 12-Jan-2016 Udam Saini <udam@google.com> Merge "Makes captive portal server calculation in one place."
b7c2487c8b5fbd154643b8ddade8d88507cae137 04-Jan-2016 Udam Saini <udam@google.com> Makes captive portal server calculation in one place.

This also creates a hidden api for the captive portal server calculation
so that the Setup Wizard can use this as well.

bug:13246857
Change-Id: I4dfd0916df97cfce13252c7cc15f7bd05ed95f77
/frameworks/base/core/java/android/net/ConnectivityManager.java
d42209db964de5597b0846cf8175cee6001ec8d7 29-Dec-2015 Jeremy Klein <jlklein@google.com> Add a TETHER_PRIVILEGED permission and use it where needed.

BUG: 26247383
Change-Id: I73f7227d77926faa9081e83eccb83c8ddee33e08
/frameworks/base/core/java/android/net/ConnectivityManager.java
def4cb0c7d92143aa440d935c4d49783032249c5 25-Nov-2015 Lorenzo Colitti <lorenzo@google.com> Don't match network requests to legacy API requests.

Currently, we look at network requests that are created by the
current requestNetwork API to see if they look like requests
that could have been created using the legacy
startUsingNetworkFeature API.

This causes those networks to be added to LegacyTypeTracker,
and so cause CONNECTIVITY_ACTION broadcasts, be accessible
using getNetworkInfo(int type), etc. This was done in the L
timeframe so that apps could request networks using the
then-new requestNetwork APIs and still use them using legacy
APIs such as requestRouteToHost.

However, the resulting CONNECTIVITY_ACTION broadcasts are
expensive. requestRouteToHost has been deprecated since L, and
mixing the old and new APIs was never recommended, so it's time
to delete this hack.

Bug: 22513439
Bug: 23350688
Bug: 25295964
Change-Id: Id867058446e5ee44396743d126d26fa57da0c990
/frameworks/base/core/java/android/net/ConnectivityManager.java
3c9b73384383713a5524b1c460244d46b7351c9e 26-Nov-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Fix javadoc for the NetworkRequest version of requestNetwork."
36728a9f1ac5890c38aeae0e08580b2618f5f26d 26-Nov-2015 Lorenzo Colitti <lorenzo@google.com> Fix javadoc for the NetworkRequest version of requestNetwork.

The documentation for this method says that the request can be
released using releaseNetworkRequest, but that's not true.
releaseNetworkRequest only takes a PendingIntent, and can only be
used to release a request filed with a PendingIntent.

Fix the docs to say that the request needs to be released using
unregisterNetworkCallback.

Change-Id: If044fd2d463ab8d09874172d5d56946251057a3c
/frameworks/base/core/java/android/net/ConnectivityManager.java
d1179462992c524684a924d432da508f0dd62c4a 25-Nov-2015 Lorenzo Colitti <lorenzo@google.com> Make the new NetworkRequest flavour consistent with the others.

Change-Id: I491eb0b6d2fa0f1c472c97ef403488407e71803e
/frameworks/base/core/java/android/net/ConnectivityManager.java
7de289f355f40f82b65f9c138df695f575191ef9 24-Nov-2015 Lorenzo Colitti <lorenzo@google.com> Temporarily add a requestNetwork flavour that takes a legacy type

This method is public @hide to support progressive refactoring of
tethering away from startUsingNetworkFeature to requestNetwork,
without getting in the way of the CONNECTIVITY_ACTION cleanup in
b/22513439 .

Bug: 9580643
Bug: 22513439
Change-Id: I9053ec746cc8f415a2d5849f044667eeb14e1b19
/frameworks/base/core/java/android/net/ConnectivityManager.java
67fb3d7358f01c1bea429b680db54629d6ff4a19 22-Oct-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Reinstate CHANGE_NETWORK_STATE as a normal permission." into mnc-dr-dev am: 809dcade99 am: bdc458048a am: bb8f652372
am: 8ecad265b6

* commit '8ecad265b6db57f78dd142e974057c91f69489ed':
Reinstate CHANGE_NETWORK_STATE as a normal permission.
d54270506669e474b5b8d1703212c77780a04ae9 15-Oct-2015 Lorenzo Colitti <lorenzo@google.com> Reinstate CHANGE_NETWORK_STATE as a normal permission.

This is a partial revert of http://ag/738523 , but not a full
revert because M apps that have gone through the WRITE_SETTINGS
route to obtain permission to change network state should
continue to have permission to do so.

Specifically:

1. Change the protection level of CHANGE_NETWORK_STATE back from
"signature|preinstalled|appop|pre23" to "normal". This allows
apps that declare CHANGE_NETWORK_STATE in their manifest to
acquire it, even if they target the M SDK or above.
2. Change the ConnectivityManager permission checks so that they
first check CHANGE_NETWORK_STATE, and then ask Settings
if the app has the WRITE_SETTINGS runtime permission.
3. Slightly simplify the code in the Settings provider code that
deals specifically with the ability to change network state.
4. Make the ConnectivityService permissions checks use the
ConnectivityManager code to avoid code duplication.
5. Update the ConnectivityManager public Javadoc to list both
CHANGE_NETWORK_STATE and WRITE_SETTINGS.

Bug: 21588539
Bug: 23597341
Change-Id: Ic06a26517c95f9ad94183f6d126fd0de45de346e
/frameworks/base/core/java/android/net/ConnectivityManager.java
52eb29f0822f129f2b14bacec23dd492f2260ac0 23-Sep-2015 Jan Nordqvist <jannq@google.com> Hotspot 2.0 relase 2 first cut.

CP mods to take a URL as a parameter, and new ScanInfo object.

Change-Id: Idbb2d4751c575ba07a56942771e2b2955b624635
/frameworks/base/core/java/android/net/ConnectivityManager.java
9d1284eba79d8c0ffebf5387fad3e4a8889b38e1 08-Sep-2015 Lorenzo Colitti <lorenzo@google.com> Add an error code for generic hardware error.

This is necessary because currently the wifi code just returns
whatever hardware-specific integer it gets back from the HAL,
which is bad because that will be interpreted by the caller as
one of the error codes defined in this class.

In parallel we'll also modify the wifi code to return this new
error code if the hardware returns an error.

Bug: 21405946
Change-Id: Ic9fa1193ced69a4e7ff543e397221c89b10a5a13
/frameworks/base/core/java/android/net/ConnectivityManager.java
a9ebeeff038ae5064dd36418ebfc07796ef58769 04-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Cut down some logs.

bug:23623327
Change-Id: I737d4e6c384bf4da62c65ad2abe0c9b5dca0067a
/frameworks/base/core/java/android/net/ConnectivityManager.java
e94a6ff5dcc1a4e4f66320f7cc1ccd4deb786073 01-Sep-2015 Robert Greenwalt <rgreenwalt@google.com> Add SUPL-specific network bcast

Move SUPL CONNECTIVITY_ACTION bcasts to a different, hidden intent
to reduce the churn of apps when SUPL comes/goes.

Short term hack until SUPL moves to use the new APIs and there's
no bcast.

bug:23350688
Change-Id: I3dc14b42afa72465260aa41ccedfe1df27baabd9
/frameworks/base/core/java/android/net/ConnectivityManager.java
5799f428063cec8f0b85cdff41185e0725b19b74 28-Aug-2015 Robert Greenwalt <rgreenwalt@google.com> am e3bcde94: Merge "Reduce CONNECTIVITY_CHANGE bcasts" into mnc-dev

* commit 'e3bcde94caf8440d5e3958a340b3d276d03f7691':
Reduce CONNECTIVITY_CHANGE bcasts
74ab4fae9001bec1e15d4712b61d7af445184a0b 28-Aug-2015 Robert Greenwalt <rgreenwalt@google.com> Reduce CONNECTIVITY_CHANGE bcasts

If an app uses the new api (requestNetwork) to bring up MMS, don't
mark it as a legacy request. This was done because the messaging
service had to use a combination of new API and old
(requestRouteToHost) due to api problems. This has been resolved
so don't mark these as legacy requests anymore.

The general stuff is still in for other types due to lack of testing
time but this should be removed altogether in the future.

bug:23350688
Change-Id: I41c27efb253c39d8af1357ae7916ed5315c716db
/frameworks/base/core/java/android/net/ConnectivityManager.java
26ab6ed3efd9bc55e342caabade46d00f8304240 08-Aug-2015 Billy Lau <billylau@google.com> am 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev

* commit '70f998e57df2b3ed79331669a93a0ba314f25e7d':
Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
70f998e57df2b3ed79331669a93a0ba314f25e7d 08-Aug-2015 Billy Lau <billylau@google.com> Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev
a7238a397d5c3431eeb19b5b77e8c7c2bf0e608f 01-Aug-2015 Billy Lau <billylau@google.com> Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS

Merge the CHANGE_NETWORK_STATE permission with WRITE_SETTINGS.

AndroidManifest.xml:
Raised the protection level of CHANGE_NETWORK_STATE permission from
normal to signature|appops and pre23|preinstall for compatibility

provider/Settings:
Wrote new helper methods to check if app is allowed to change network
state.

ConnectivityManager.java & ConnectivityService.java:
Replace enforcement checks for CHANGE_NETWORK_STATE with
checkAndNoteChangeNetworkStateOperations instead.

Change-Id: If8c2dd3c76a5324ca43f1d90fa17973216c2bcc5
/frameworks/base/core/java/android/net/ConnectivityManager.java
86e7d135acbdb0055de6a687817d44ac60603c9f 05-Aug-2015 Paul Jensen <pauljensen@google.com> resolved conflicts for merge of dbc4edcc to mnc-dr-dev

Change-Id: I3a8624b2b375e0d174983d7690082e0e6932c4de
dbc4edccfced5cb739bae75e8cd15cecc39cf16e 05-Aug-2015 Paul Jensen <pauljensen@google.com> Merge "Fix NOT_RESTRICTED network capability and enforce it." into mnc-dev
487ffe7d3d84bf65212158f7098e8a84b5b55e09 24-Jul-2015 Paul Jensen <pauljensen@google.com> Fix NOT_RESTRICTED network capability and enforce it.

With this change:
1. NOT_RESTRICTED should be removed from NetworkRequests that bring up
special restricted carrier networks (e.g. IMS, FOTA).
2. NetworkRequests without NOT_RESTRICTED require CONNECTIVITY_INTERNAL
permission to register
3. Binding sockets to networks without NOT_RESTRICTED requires
CONNECTIVITY_INTERNAL permission

Bug:21637535
Change-Id: I5991d39facaa6b690e969fe15dcbeec52e918321
/frameworks/base/core/java/android/net/ConnectivityManager.java
e8d3b39467e139ae380f2821ab91aad6031f1410 31-Jul-2015 Dianne Hackborn <hackbod@google.com> am 692a244b: Fix build.

* commit '692a244bffea11157c37c8de93482cb912599b98':
Fix build.
692a244bffea11157c37c8de93482cb912599b98 31-Jul-2015 Dianne Hackborn <hackbod@google.com> Fix build.

Change-Id: Icdf6fa14e53a1c030d0d90205d3bf2d7610b6196
/frameworks/base/core/java/android/net/ConnectivityManager.java
c70348c194a26176ac54720fe4eabeeb7e4d9993 31-Jul-2015 Lorenzo Colitti <lorenzo@google.com> am 496a9d26: Merge "Stop supporting legacy ConnectivityManager routing methods in M." into mnc-dev

* commit '496a9d269b0778ffa1965f3b11d768fe70fd7719':
Stop supporting legacy ConnectivityManager routing methods in M.
ffc42b0b7be29ee4118e0515d5ab024927bcb8ca 29-Jul-2015 Lorenzo Colitti <lorenzo@google.com> Stop supporting legacy ConnectivityManager routing methods in M.

The methods startUsingNetworkFeature, stopUsingNetworkFeature and
requestRouteToHost were @removed in all the M preview builds, but
internal and external developers have noted that this imposes
additional burden for applications that need to work across
multiple platform versions because it causes compile-time errors.

We switched from @removed back to @deprecated to avoid these
problems. In order to effectively deprecate these methods, which
are error-prone and insecure, make them throw
UnsupportedOperationException if the app's target SDK is M or
above.

Because there are still one or two places in system code that use
these APIs, exempt Process.SYSTEM_UID and the OMA-DM client from
the check for now.

Bug: 22728205
Change-Id: I790bd32f3aa8067cbb625962a209bb9232f4b58c
/frameworks/base/core/java/android/net/ConnectivityManager.java
d6162cf244eab3a3c77a011ffe75dd04a787b951 28-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> am b3c93c5f: Merge "Un-remove legacy ConnectivityManager API." into mnc-dev

* commit 'b3c93c5f4256a1da1a8020abe5812a841b67667a':
Un-remove legacy ConnectivityManager API.
a36c07405280f93a11ad6398553da274e6daad83 28-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Un-remove legacy ConnectivityManager API.

These were @removed too soon. We need to keep them @deprecated until
the bulk of devices support the new API and then we can remove them.

bug:22728205
Change-Id: If1b46ff1878f1778517624112b195c461645ddd1
/frameworks/base/core/java/android/net/ConnectivityManager.java
8bf977d562b8f7261cf964bdf045b22bdbd92b7d 15-Jun-2015 Lorenzo Colitti <lorenzo@google.com> ConnectivityManager API for for packet keepalives.

Bug: 21405946
Change-Id: Ie1f8f8bee684fe2bb1092a9f1bc9f5dc29b1defc
/frameworks/base/core/java/android/net/ConnectivityManager.java
1570b6b3c7d1d41a52555312d161d0afe4b81df3 10-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Merge "Enable EMERGENCY mobile connections." into mnc-dev
00c64f7ca5b05384dc3c208eff43e0b1a037a7d0 10-Jul-2015 Paul Jensen <pauljensen@google.com> Merge "Add android.net.CaptivePortal class for captive-portal-handling-app callbacks" into mnc-dev
4bd4389616fae01439a44920286a70806526d8c0 09-Jul-2015 Robert Greenwalt <rgreenwalt@google.com> Enable EMERGENCY mobile connections.

Hooks the ConnectivityManager.TYPE_MOBILE_EMERGENCY,
PhoneConstants.APN_TYPE_EMERGENCY, and NetworkCapabilities.NET_CAPABILITY_EIMS
together so carrier apps can request connections to this APN.

bug:21785357
Change-Id: Id92a5e28d19407cc7a8f8b5478b23457f2f7f89d
/frameworks/base/core/java/android/net/ConnectivityManager.java
49e3edff5156f471819e4ea2a88994bca70bd870 22-May-2015 Paul Jensen <pauljensen@google.com> Add android.net.CaptivePortal class for captive-portal-handling-app callbacks

This new class replaces the awkward string token and ConnectivityManager APIs
used by apps handling captive portals.

Bug:21343774
Change-Id: I1a2c69edb17322715bf8422bb4216b0ea60bfd59
/frameworks/base/core/java/android/net/ConnectivityManager.java
8d48252b80cdb261cd2fa7372a01e6197f95efa6 24-Jun-2015 Robert Greenwalt <rgreenwalt@google.com> Revive NetworkInfo's SUSPENDED state.

This got lost in the multinetwork work for L. It means
that if telephony stops having the ability to pass packets for a while
the rest of the platform doesn't know.

Telephony enters the suspended state if it enters a telephony call
while using certain radio access technologies, or if it switches to
one of those RATs while in a call. It also can enter this state if
it temporarily loses contact with the network - the modem will
not report the loss of the data call for an indeterminant time in
the hope that regaining the network will restore the connection
without harm to any ongoing ip layer interactions. For example
passing through a tunnel or taking an elevator trip may use this
mechanism.

bug: 19637156
Change-Id: If9fde68175e8561c19323c81fbfcb02a6e5a00fb
/frameworks/base/core/java/android/net/ConnectivityManager.java
f2c1cfe4c5dec5041dfee00bd2dd1e3e1ecc0aea 30-Jun-2015 Paul Jensen <pauljensen@google.com> Add ConnectivityManager.unregisterNetworkCallback(PendingIntent) API

This better pairs up with
registerNetworkCallback(NetworkRequest, PendingIntent).

Bug:22175708
Change-Id: I336df3f48a0b814f1cbeba6d00afc4e6cc536483
/frameworks/base/core/java/android/net/ConnectivityManager.java
bb2e0e98160f099261876794518d4db62e309aec 16-Jun-2015 Paul Jensen <pauljensen@google.com> Disallow requesting networks with mutable NetworkCapabilities.

It's not clear what it means to request a network with a mutable
NetworkCapability like NET_CAPABILITY_VALIDATED or
NET_CAPABILITY_CAPTIVE_PORTAL. Presently requesting such a network
would fail in a number of different ways:
1. The NetworkFactories would fail to match the request against their
filter which doesn't include stateful NetworkCapabilities.
2. If the NetworkFactories did match, they'd bring up networks to try
and satisfy the requests, but the networks would not have any
mutable NetworkCapabilities initially so they'd be reaped.
Because of these problems it's safest to simply disallow these
requests.

Bug: 21343774
Change-Id: I56303242b81d39b370b8d5d1e32059bfcfc25949
/frameworks/base/core/java/android/net/ConnectivityManager.java
e2d921da29e8ef556784178f2a30fad80258d034 23-Jun-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Re-hide onPreCheck and unhide NET_CAPABILITY_VALIDATED." into mnc-dev
2f56a33041b95fc9badcf08e8be4fd57eec56ccb 20-Jun-2015 Paul Jensen <pauljensen@google.com> Merge "Add ConnectivityManager.registerNetworkCallback(NetworkRequest, PendingIntent)" into mnc-dev
694f2b847232c66c64a42aa1002c8e5b652342e0 17-Jun-2015 Paul Jensen <pauljensen@google.com> Add ConnectivityManager.registerNetworkCallback(NetworkRequest, PendingIntent)

Without this API we're more or less encouraging apps to have long running
processes (battery draining) to receive NetworkCallbacks for the stateful
NetworkCapabilities NET_CAPABILITIES_VALIDATED and
NET_CAPABILITIES_CAPTIVE_PORTAL. With this API they can instead using
PendingIntents which outlive their apps.

Bug: 21343774
Change-Id: I168d0ac3757729acf7ca5546079846f575a0eedd
/frameworks/base/core/java/android/net/ConnectivityManager.java
434dde84eed746124fe2cf24d6496148cee48c58 11-Jun-2015 Paul Jensen <pauljensen@google.com> Remove dead hidden ConnectivityManager and NetworkInfo APIs.

- There are no callers of
NetworkInfo.setIsConnectedToProvisioningNetwork(), so remove all the
code that deals with mIsConnectedToProvisioningNetwork being true,
including the two ConnectiviyManager APIs.
- There are no callers of
ConnectivityManager.getMobileRedirectedProvisioningUrl(), so remove
the code that reads this URL.
- There are no callers of
ConnectivityManager.captivePortalCheckCompleted(), so remove this
API which is currently a no-op.

Change-Id: Ifa44c7553c7c45ebe261a2a124d9bf8d6f96c690
/frameworks/base/core/java/android/net/ConnectivityManager.java
662761224c93cf060a356284101354031cb80dc2 11-Jun-2015 Lorenzo Colitti <lorenzo@google.com> Re-hide onPreCheck and unhide NET_CAPABILITY_VALIDATED.

The API review comments in http://b/21343774 point out that the
suggested use case for onPreCheck (captive portal login apps) is
not a good use case as it requires that the app always be
running.

Also, unhide NET_CAPABILITY_VALIDATED, which is useful to apps
that want to detect captive portals and network connectivity
failures.

Bug: 21343774
Change-Id: Iad7c839bcc136b0fa9581dccc5fd97a28efed4ab
/frameworks/base/core/java/android/net/ConnectivityManager.java
b27489215c2a7c8f847c3e9625430b4956b943cc 06-May-2015 Paul Jensen <pauljensen@google.com> Add javadoc comments mentioning ConnectivityManager API permissions.

Also move permissions comments above @param and @return to fix indent.

bug:20499587
Change-Id: If82ff2367fdbce06e696e494439b31cb100d768f
/frameworks/base/core/java/android/net/ConnectivityManager.java
c1a9436d27e41347e6063b1cfb77eaef7e191ca4 19-May-2015 Paul Jensen <pauljensen@google.com> Merge "Query HTTP proxy for network via a new API to avoid permissions exceptions" into mnc-dev
cee9b51c4beec4494d78bab784ba7e7e20c30e31 06-May-2015 Paul Jensen <pauljensen@google.com> Query HTTP proxy for network via a new API to avoid permissions exceptions

Add @hidden ConnectivityManager.getProxyForNetwork() API.

Bug:20470604
Change-Id: I6a9bc4afc8273bc43b14cdeccfedbbf3ff66be40
/frameworks/base/core/java/android/net/ConnectivityManager.java
9e59e12b8648116679d929f720893bf26a507f2b 06-May-2015 Paul Jensen <pauljensen@google.com> Deprecate ConnectivityManager.isNetworkTypeValid as it's unneeded.

All ConnectivityManager APIs taking a network type have been
deprecated so there should be no need to validate a network type.

bug:20647016
Change-Id: I2dcf24f58016e94aa814dda38cfc848366cc461c
/frameworks/base/core/java/android/net/ConnectivityManager.java
0c12125e003b1d1b8dd6a2e0696f4f91571a7c25 01-May-2015 Lorenzo Colitti <lorenzo@google.com> am ad44d814: am 3dc08220: am b57f236e: Merge changes Icf7d67e2,Ia914ec88,I2490ad75,Ie79f2d28 into mnc-dev

* commit 'ad44d81457971085a0b20fb42388010d76c79132':
Add a hidden method to clear NetworkCapabilities.
Fix javadoc error for requestNetwork.
Simplify network callback handling code.
Document and unhide CALLBACK_PRECHECK.
2ea89e59c35ba49eb0b8a8e6583741539357e71f 24-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Fix javadoc error for requestNetwork.

The ConnectivityManager documentation uses {@link requestNetwork}
without specifying which version of that method it refers to.
This results in javadoc incorrectly linking to the version of the
method that takes a PendingIntent instead of the version that
takes a callback.

Change-Id: Ia914ec88005a6401b6391c5b4fc92f988baa3922
/frameworks/base/core/java/android/net/ConnectivityManager.java
db95a6098149e6c2183692fe588e9733c98b4f27 24-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Simplify network callback handling code.

Change-Id: I2490ad754bf2a1282f27302c8556fb19983cc6b1
/frameworks/base/core/java/android/net/ConnectivityManager.java
0708693f1eac78901ca2e05e4d3c12efddc54c68 23-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Document and unhide CALLBACK_PRECHECK.

Bug: 20038463
Change-Id: Ie79f2d28c06cf611289504e49c471b55ffb9890f
/frameworks/base/core/java/android/net/ConnectivityManager.java
ae519190aa84c9471d43ae5cee5218193bccdb5e 27-Apr-2015 fenglu <fenglu@google.com> Fix the javadoc for requestBandwidthUpdate(...)

Change-Id: I6673dd219ef832acb15ce9b6398caa1c8503320b
/frameworks/base/core/java/android/net/ConnectivityManager.java
d515d0733619772d9acc9639691e41790344fd5d 27-Apr-2015 fenglu <fenglu@google.com> Merge "API review for requestBandwidthUpdate()"
a179962b61a9c41e8859ce642471928f1ad33c60 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit '25a217c' into merge2

Change-Id: I116a9dbf19e95651a7c50393e4dcd7fb59ca3f3f
fa96c94c3046a726d558462e09ba04801d105a02 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit '9561e74' into merge2
e285b434f4cc0f719e189e472bb3f83865b58b7b 23-Apr-2015 Lorenzo Colitti <lorenzo@google.com> @removed requestRouteToHost and {start,stop}UsingNetworkFeature

Bug: 20482461
Change-Id: Ic59fc1271e664d85102dc7945c0c2ea82c0d6f6b
/frameworks/base/core/java/android/net/ConnectivityManager.java
ec4c555571c3b1cb2c5d39406b99ac40a2b9d7e6 22-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Don't require ACCESS_NETWORK_STATE in setProcessDefaultNetwork

The documentation for setProcessDefaultNetwork does not
mention that it requires ACCESS_NETWORK_STATE, but a process
without ACCESS_NETWORK_STATE that calls it will crash because
we can't fetch the proxy properties.

Because ACCESS_NETWORK_STATE is not required to obtain a Network
object (Network objects can come from broadcasts too), it may not
be reasonable to require the permission. We did not do so in L.

For now, ignore the failure and don't crash the app. I've filed
http://b/20470604 to track a longer term fix.

Bug: 20081183
Bug: 20423580
Bug: 20470604
Change-Id: I158016130b4afb1d300357fe703804d2e7bc609b
/frameworks/base/core/java/android/net/ConnectivityManager.java
73c7e0ef3805da369ba5a5f14aa5263b23318543 22-Apr-2015 fenglu <fenglu@google.com> API review for requestBandwidthUpdate()

Change-Id: I53dc3b95b1f989541e06d9b2c2ef8871bac81344
/frameworks/base/core/java/android/net/ConnectivityManager.java
b32243498fcf21212268b9dff558647d9e716a1c 22-Apr-2015 fenglu <fenglu@google.com> Merge "update API name to requestBandwidthUpdate()"
db57147a55aadca39280ed62516b4a49c69ba177 22-Apr-2015 fenglu <fenglu@google.com> update API name to requestBandwidthUpdate()

Change-Id: If26942978ffcc43f06f17dfad5da790f34758395
/frameworks/base/core/java/android/net/ConnectivityManager.java
bba3270c34c9ee5e70a02d39e398114600d6a553 22-Apr-2015 Robert Greenwalt <rgreenwalt@google.com> Merge "Revert "requestBwUpdate() public API review""
2c22a91d4c1399cdbe2ade5f697aeb0f560e3f03 22-Apr-2015 Robert Greenwalt <rgreenwalt@google.com> Revert "requestBwUpdate() public API review"

This reverts commit 32f21da41031595a315aaf0eb67f6a094365f2b4.

Change-Id: I8c22d285ff1f56f1bd31a0fa9f2e6a79959347b1
/frameworks/base/core/java/android/net/ConnectivityManager.java
1c7f96f3e81970cad2e15fa304f2fbd97cd7e7f8 22-Apr-2015 Robert Greenwalt <rgreenwalt@google.com> Merge "requestBwUpdate() public API review"
32f21da41031595a315aaf0eb67f6a094365f2b4 16-Apr-2015 fenglu <fenglu@google.com> requestBwUpdate() public API review

Change-Id: I1e780b2705d13bfc85a0a8712ac1dbd623b474a1
/frameworks/base/core/java/android/net/ConnectivityManager.java
17e11fad0a6272dd750427e2e4cb9810e67b6dec 21-Apr-2015 Erik Kline <ek@google.com> Final removal of CONNECTIVITY_ACTION_IMMEDIATE.

Since the demise of the connectivity change delay,
CONNECTIVITY_ACTION_IMMEDIATE has been sent out back to back with
CONNECTIVITY_ACTION.

Interested parties should watch for CONNECTIVITY_ACTION.

Bug: 20013379
Change-Id: I072dddf95adb3bbd17fa1f7159d4ea848ade8f19
/frameworks/base/core/java/android/net/ConnectivityManager.java
f1fb39763d87dabe254b6ed64ac8f20145035bc0 03-Apr-2015 Stuart Scott <stuartscott@google.com> Move factoryReset to service and protect.

bug:16161518
Change-Id: I02d1bbae1887c62ee426e6f03e8bc1f18c6666bf
/frameworks/base/core/java/android/net/ConnectivityManager.java
25a217c0fbda9bbaf58ec08b91115e99f73b727f 28-Feb-2015 Paul Jensen <pauljensen@google.com> Add captive portal API.

This API allows apps other than the system's CaptivePortalLogin
to handle signing in to captive portals.

bug:19416463
Change-Id: I27fce5856b635233e6ff66396d50ccabedd76cf5
/frameworks/base/core/java/android/net/ConnectivityManager.java
b15e72b83c56d771f0fb1453b73e2fca6b09cce8 20-Mar-2015 fenglu <fenglu@google.com> LCE service implementation - connectivity side

Change-Id: If11bd99c44c7dc8d2aa2bc05a10e04421739baa6
/frameworks/base/core/java/android/net/ConnectivityManager.java
2bbd2b683042ea0a20c46b6dfd78b6b65fcc86eb 20-Mar-2015 fenglu <fenglu@google.com> LCE service implementation - connectivity side

Change-Id: If11bd99c44c7dc8d2aa2bc05a10e04421739baa6
/frameworks/base/core/java/android/net/ConnectivityManager.java
cb43ebb3604d45da8677b8d19c935f0ace08ea53 16-Apr-2015 Vinit Deshpande <vinitd@google.com> Merge "am b5e0cfb..557d2f5 from mirror-m-wireless-internal-release"
e03c3c7edf54854ed22adf1e55b27b2408c4c66a 03-Apr-2015 Lorenzo Colitti <lorenzo@google.com> Prompt if a network without an Internet connection is selected

When a network is explicitlySelected, keep it connected but do
not automatically switch to it. Instead, attempt to validate it,
and if 8 seconds have passed and the network is not yet
validated, prompt the user asking whether to switch to it anyway.

Bug: 20081183
Change-Id: I03a8459eb39979e3dc8e94662b85a44605dd7e69
/frameworks/base/core/java/android/net/ConnectivityManager.java
80047faad914c9b9b4966d6b58fc22800c3fcebc 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am b5e0cfb..557d2f5 from mirror-m-wireless-internal-release

557d2f5 Merge "Add ConnectivityManager.reportNetworkConnectivity() API" into m-wireless-dev
ab5267a Fix onLost/onFound logic in isSettingsAndFilterComboAllowed
bfd17b7 Add ConnectivityManager.reportNetworkConnectivity() API
238e0f9 OBEX Over L2CAP + SDP search API for BT profiles
31a94f4 Add ConnectivityManager.getActiveNetwork(). Rework NetID allocation in ConnectivityService so registerNetworkAgent() can return the allocated NetID.
bf18bed Merge "Non-functional code cleanup of ConnectivityService." into m-wireless-dev
db8784e Merge "Cleanup of Video Call pause functionality." into m-wireless-dev
e75b9e3 Non-functional code cleanup of ConnectivityService.
e593d0a Onfound onlost feature.
0326f58 Merge "API for config app." into m-wireless-dev
e9b056f API for config app.
d5351e7 RTT framework interface update
582b868 Unhide Network.openConnection(URL, Proxy).
0d719ca Fix typos in ConnectivityManager documentation.

Change-Id: Ib4c88f6d7ad1b24227b032555c62a5804194384b
3541e9f469c3cb563bb89d52cbe7daf9e0f8d124 18-Mar-2015 Paul Jensen <pauljensen@google.com> Deprecate connectivity APIs relying on integer network types.

Recommend ConnectivityManager.getAllNetworks() and various state
inspection functions as a way forward.

Bug:19608294
Change-Id: Ibd53629995897047fc532ffa56f079dfba10a7c7
/frameworks/base/core/java/android/net/ConnectivityManager.java
bfd17b75a67e3a3c9a99a87db35be4d753e6bd08 07-Apr-2015 Paul Jensen <pauljensen@google.com> Add ConnectivityManager.reportNetworkConnectivity() API

This new API allows reporting networks that are perceived to provide Internet
connectivity and networks that are not. This allows the framework to avoid
needlessly reevaluating networks where the apps perception matches the
framework's perception. This was not possible with the prior API,
reportBadNetwork.

Bug: 16214361
Change-Id: Id4409bd7538854bd837231fb50e693c10a62b4f2
/frameworks/base/core/java/android/net/ConnectivityManager.java
57bf2a8a38e929f00f3323cf97a8ea7a9af900ce 11-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit 'e593d0a' into merge_work

Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
31a94f48bf8014cf6a1127bd23cf9a8541a9abed 13-Feb-2015 Paul Jensen <pauljensen@google.com> Add ConnectivityManager.getActiveNetwork().
Rework NetID allocation in ConnectivityService so registerNetworkAgent() can
return the allocated NetID.

Bug: 19416463
Change-Id: I68e395552cf27422c80b4dfae5db5d56a0d68f5d
/frameworks/base/core/java/android/net/ConnectivityManager.java
e75b9e355500b7c6a05e4d6ec54ef48835707caa 06-Apr-2015 Paul Jensen <pauljensen@google.com> Non-functional code cleanup of ConnectivityService.

1. Remove ConnectivityService.findConnectionTypeForIface() as this can be done
just as easily with supported APIs now.
2. Avoid making copies of Network objects as this precludes reuse of Network
internals (e.g. socket factory, connection pool).

Change-Id: I52f92e35d769d8350471f485e408169608630082
/frameworks/base/core/java/android/net/ConnectivityManager.java
0d719cab11ab5670f516466645f8b22ae65d4c91 13-Feb-2015 Paul Jensen <pauljensen@google.com> Fix typos in ConnectivityManager documentation.

Spun off from
https://partner-android-review.googlesource.com/#/c/205463/ for
ease of review.

Bug: 19416463
Change-Id: I2f88ac415177ecd96c9191df5e390830869f52e1
/frameworks/base/core/java/android/net/ConnectivityManager.java
ad8234213d24975ce8262b810d93af77a231bb5e 11-Mar-2015 Paul Jensen <pauljensen@google.com> Deprecate EXTRA_PROXY_INFO and unhide ConnectivityManager.getDefaultProxy().

1. Unhide ConnectivityManager.getDefaultProxy() and update it to
take into account process-bound-Networks.
2. Deprecate EXTRA_PROXY_INFO and instead encourage querying via
getDefaultProxy().

Bug: 17905627
Bug: 17420465
Bug: 18144582

Change-Id: I45358ee82fe705d048022c8238b2452f52c37b88
/frameworks/base/core/java/android/net/ConnectivityManager.java
72db88e46fba5f2581eb21c042dc79887cda1c10 10-Mar-2015 Paul Jensen <pauljensen@google.com> Deprecate static ConnectivityManager.get/setProcessDefaultNetwork() functions.

These functions risk hitting an unchecked Exception due to ConnectivityManager
not being instantiated yet. Also, change Network.openConnection() to throw a
checked Exception rather than an unchecked Exception when ConnectivityManager
is not yet instantiated.

bug:19416463
Change-Id: Ie1e2b3238aec0343d267c76b64927073f2f05f85
/frameworks/base/core/java/android/net/ConnectivityManager.java
984dc850b4caeb4470e52bce773935be5305cf8e 30-Mar-2015 Stuart Scott <stuartscott@google.com> Move reset network settings into framework.

bug: 16161518
Change-Id: Ic3b537ebd09d1b9723feff9dcc96e20fda05a94f
/frameworks/base/core/java/android/net/ConnectivityManager.java
4209a28270a70016ee5ee6cae3dc96d6df0ade26 24-Mar-2015 Prerepa Viswanadham <dham@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge

Change-Id: I49aab437af220f1139cfd2d0a9c362acce31074e
43564472ee3d9c1ebce34d23d75522b0e4bd56e9 18-Mar-2015 Paul Jensen <pauljensen@google.com> Remove dead code, mostly DataStateTracker.

(cherry picked from AOSP commit 7fad4eb4b52bc6c7ddad47f70e0c310093fbde3b)

Change-Id: I18c44cd08dfb51e02a96d0b726e9af1db21e3058
/frameworks/base/core/java/android/net/ConnectivityManager.java
b335d20628fcfc1592ec97ab182a055e030a4dfe 13-Mar-2015 Paul Jensen <pauljensen@google.com> Fix javadoc braces for ConnectivityManager.EXTRA_NETWORK.

Change-Id: I5ad30a34f96e9e99a557b5bae9a30bfc08c89620
/frameworks/base/core/java/android/net/ConnectivityManager.java
db64454b3354e26c96fdb83a4443cce12e352640 13-Mar-2015 Andreas Gampe <agampe@google.com> resolved conflicts for merge of b6b9fe21 to master

Change-Id: If4f62aa1fd8bb774288a677e7008e86a7e3ea6d9
7fad4eb4b52bc6c7ddad47f70e0c310093fbde3b 21-Nov-2014 Paul Jensen <pauljensen@google.com> Remove dead code, mostly DataStateTracker.

Change-Id: I1433937bffdb29bd42fb1adbfcf0a50ceffac7dd
/frameworks/base/core/java/android/net/ConnectivityManager.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/net/ConnectivityManager.java
549aa2b9b73bbb0188a8c5ba87369cad8a40de6c 12-Feb-2015 Jeremy Joslin <jjoslin@google.com> am f69f3737: am 1267462c: am f456d4dc: am 20be0e25: Merge "Update Javadoc for EXTRA_NETWORK." into lmp-mr1-dev

* commit 'f69f3737ba8cb2acb481dc78de3c5275bae112e7':
Update Javadoc for EXTRA_NETWORK.
fcde58f155e8a188078885ec7529a9fe4a67f10e 12-Feb-2015 Jeremy Joslin <jjoslin@google.com> Update Javadoc for EXTRA_NETWORK.

Bug: 19352840
Change-Id: Ib668bee0fb2c6f5bcd01a7908ebd20b9ec8a40ef
/frameworks/base/core/java/android/net/ConnectivityManager.java
3e50161a6e22fed6709378c65bd1c2c57bdd6a08 06-Jan-2015 Paul Jensen <pauljensen@google.com> am 932bfab9: am 6c93739f: am 9ffb53cb: Clear process DNS NetID binding when expiring or releaseing legacy requests.

* commit '932bfab9aaa58f116935eb0a1f22de49301724c4':
Clear process DNS NetID binding when expiring or releaseing legacy requests.
9ffb53cb1131eeac5c246e7378455bb4b64293f5 17-Dec-2014 Paul Jensen <pauljensen@google.com> Clear process DNS NetID binding when expiring or releaseing legacy requests.

When requests made by ConnectivityManager.startUsingNetworkFeature() are
expired or are canceled via ConnectivityManager.stopUsingNetworkFeature(),
we must remember to clear the binding of DNS requests from the calling
process to the Network satisfying the request.

bug:18778725
Change-Id: I800c808ac6486000241b5d263aa79a1192a9fe9e
/frameworks/base/core/java/android/net/ConnectivityManager.java
87dfb9ec25c79ffe34e98ce03ae2eb183b774615 11-Dec-2014 Paul Jensen <pauljensen@google.com> am 2122e14c: Merge "Fix several HTTP proxy issues with multinetworking." into lmp-mr1-dev automerge: d9d48cc
automerge: 8f58207

* commit '8f58207319fc2b73f83874892a544f8cf59cf7e9':
Fix several HTTP proxy issues with multinetworking.
2122e14cca3edc5099b90d8768b34d7a0e9fe148 11-Dec-2014 Paul Jensen <pauljensen@google.com> Merge "Fix several HTTP proxy issues with multinetworking." into lmp-mr1-dev
0bf20bea81a9d3218c0c10999a47efe3c30b2725 10-Dec-2014 Erik Kline <ek@google.com> am 34b3b53f: am 33cd463b: Merge "Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions." into lmp-mr1-dev automerge: 56d2e8f

* commit '34b3b53f9c21346282cb889363024fa4c7bb558d':
Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions.
e0bef71662d81caaaa0d7214fb0bef5d39996a69 10-Dec-2014 Paul Jensen <pauljensen@google.com> Fix several HTTP proxy issues with multinetworking.

1. Send PROXY_CHANGE_ACTION broadcast when any network's proxy changes,
not just the default network.
2. When a process is bound to a particular Network, update the proxy
system properties to those for the bound Network, and keep them
updated when PROXY_CHANGE_ACTION broadcasts are received.
3. Make Network.openConnection() use the proxy for the Network.

bug:17905627
bug:17420465
bug:18144582

(cherry-pick of https://android-review.googlesource.com/#/c/115170)

Change-Id: Ia2819985e6108a8c121e74c683a5646becfd0a97
/frameworks/base/core/java/android/net/ConnectivityManager.java
33cd463bbbbe47010ed44815fbfd0ab5e8fbf825 10-Dec-2014 Erik Kline <ek@google.com> Merge "Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions." into lmp-mr1-dev
189c1808574b11b44b0d08b39426313778e27404 10-Dec-2014 Wink Saville <wink@google.com> am 7a4df2b7: am 2f5cb843: am 15b29ac7: Merge "Add subId as parameter for get/setDataEnabled." into lmp-mr1-dev

* commit '7a4df2b7d8fc162881dd482fb13fe85c780d0351':
Add subId as parameter for get/setDataEnabled.
15b29ac7faf3b8b7845e6623f68ae7a7391dab78 09-Dec-2014 Wink Saville <wink@google.com> Merge "Add subId as parameter for get/setDataEnabled." into lmp-mr1-dev
0cec63a2832d322ed2dd9345d211d1e02b0a9497 09-Dec-2014 Pavel Zhamaitsiak <pavelz@google.com> am 913c9895: am d89f0d3d: am b81ce34a: Merge "Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"" into lmp-mr1-dev

* commit '913c9895466c6749aa1c41b875d69d5de3e3b66b':
Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"
8f29dcfb53350cf687112ac79a806e4d34dfa22b 08-Dec-2014 Erik Kline <ek@google.com> Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions.

Since optimistic addresses are useable upon kernel notification
there is no need for this extra connectivity delay.

---

This functionality was originally submitted in ag/572619. Owing
to issues with bind()ing to optimistic addresses (see b/18609055)
this was reverted in ag/598673.

This reverts the revert. :-)

Bug: 17769720
Change-Id: Ibee490b2af72050693b6bd748193f51e312ca527
/frameworks/base/core/java/android/net/ConnectivityManager.java
36ffb0494dd1045c164b7479b68165e206f8c759 05-Dec-2014 Wink Saville <wink@google.com> Add subId as parameter for get/setDataEnabled.

Bug: 18279333
Change-Id: I2496a2fd92b154e5e6981cbf6b5b5939cda59122
/frameworks/base/core/java/android/net/ConnectivityManager.java
e660e27603e93579b645544ceb9606ded81cea82 05-Dec-2014 Erik Kline <ek@google.com> Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"

This is the revert of ag/572619.

This reverts commit 9261d9d64548f0221de50eb99f3675488a4176a4, reversing
changes made to 32b61ab28f54e5b00f472b2166f9b1100375e4ff.

Bug: 18609055
Bug: 17769720
Change-Id: I122eba200f2071d4e5777ec34c1d04fb567345a8
/frameworks/base/core/java/android/net/ConnectivityManager.java
0f3c0704c5d5e92f6ccb75404982fa7587ac364d 04-Dec-2014 Erik Kline <ek@google.com> am 180a30aa: am 95b5ca90: am 9261d9d6: Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev

* commit '180a30aa57e0790453944533dc442704f7596f65':
Remove CONNECTIVITY_CHANGE_DELAY and friends.
9261d9d64548f0221de50eb99f3675488a4176a4 04-Dec-2014 Erik Kline <ek@google.com> Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev
41762ecac08592a1721f056d46fb68a9ccb4bdd2 03-Dec-2014 Lorenzo Colitti <lorenzo@google.com> am 45cd4df6: am d99cd44f: am dc99c504: Merge "Make StatusBar display all default networks." into lmp-mr1-dev

* commit '45cd4df6a0915558efa6bf4ec9c61fadff70572f':
Make StatusBar display all default networks.
403aa2684e0e93b4792aabc0bbe1f32ac5e417af 28-Nov-2014 Lorenzo Colitti <lorenzo@google.com> Make StatusBar display all default networks.

The basic principle is: if an app's traffic could possibly go
over a network without the app using the multinetwork APIs (hence
"by default"), then the status bar should show that network's
connectivity.

In the normal case, app traffic only goes over the system's default
network connection, so that's the only network returned.

With a VPN in force, some app traffic may go into the VPN, and thus over
whatever underlying networks the VPN specifies, while other app traffic
may go over the system default network (e.g.: a split-tunnel VPN, or an
app disallowed by the VPN), so the set of networks returned includes the
VPN's underlying networks and the system default.

Specifically:

1. Add a NETWORK_CAPABILITY_VALIDATED bit to NetworkCapabilities.
2. Add a hidden API to retrieve the NetworkCapabilities of
all default networks for a given macro-user.
3. Modify the status bar code that used getActiveNetworkInfo to
determine which network was active, and make it consider all
validated networks instead.
4. Because the set of active networks depends on which VPN app
the user is running, make the status bar re-evaluate the
networking situation when the active user changes.

Bug: 17460017
Change-Id: Ie4965f35fb5936b088e6060ee06e362c22297ab2
/frameworks/base/core/java/android/net/ConnectivityManager.java
80a4543ca24920bfea85855b626e7e1edac42e18 02-Dec-2014 Erik Kline <ek@google.com> am d8b011a3: am d125266b: am f27b52aa: Merge "Revert some verbose logging from ag/489226" into lmp-mr1-dev

* commit 'd8b011a3548910a26d5b7a451bafb07b5384e246':
Revert some verbose logging from ag/489226
b567aa893851161f7bc87ba3472904e6d53e2bd2 25-Nov-2014 Erik Kline <ek@google.com> Revert some verbose logging from ag/489226

Bug: 18171889
Change-Id: I582a17b2272746e04717ac8da1d6984ff187ddf6
/frameworks/base/core/java/android/net/ConnectivityManager.java
08866fcfa502849354c1f2ed157cc0e4711af442 25-Nov-2014 Erik Kline <ek@google.com> Merge "Map TYPE_VPN integer to "VPN" string."
37fbfa140aad2fa9cf4648def2838b04c2263e13 19-Nov-2014 Erik Kline <ek@google.com> Map TYPE_VPN integer to "VPN" string.

Bug: 18439110
Change-Id: I0fa0c9e6a9293ab724e2b5e7d0f586f05cd100c7
/frameworks/base/core/java/android/net/ConnectivityManager.java
75f018e6a7c2280c62e686440000a1dcdf5179cf 19-Nov-2014 Sreeram Ramachandran <sreeram@google.com> Delete unused/non-working code.

Change-Id: I2cba9ffdb4ed547cb922d0ac08abf81e49ffa66b
/frameworks/base/core/java/android/net/ConnectivityManager.java
90e9307e8fa713081aeccd8f5f212c0f1255bd07 18-Nov-2014 Erik Kline <ek@google.com> Rename EXTRA_NETWORK ConnectivityManager constants.

Per b/18414703:

s/\<EXTRA_NETWORK_REQUEST_NETWORK\>/EXTRA_NETWORK/g
s/\<EXTRA_NETWORK_REQUEST_NETWORK_REQUEST\>/EXTRA_NETWORK_REQUEST/g

Additionally, associated string values updated to:

android.net.extra.NETWORK
android.net.extra.NETWORK_REQUEST

Bug: 18414703
Change-Id: I7aeed2161829742affc666e835a97ce2c28356fe
/frameworks/base/core/java/android/net/ConnectivityManager.java
46e3ac8bbca54b56af1947f64294e2a4c35cfa3c 05-Nov-2014 Jeremy Joslin <jjoslin@google.com> Implemented requestNetwork with a PendingIntent.

ConnectivityManager.requestNetwork(NetworkRequest, PendingIntent)
was unhidden and implemented.

Added ConnectivityManager.removePendingIntentRequest(PendingIntent) as
the companion method.

Bug: 17356414
Change-Id: I656a1e149cc1292c443ebfe9e61ee3eb5a80f143
/frameworks/base/core/java/android/net/ConnectivityManager.java
06314e4eab4b78d971ff878de3984f2dc673c2d3 29-Oct-2014 Robert Greenwalt <rgreenwalt@google.com> Fix Legacy typing of net-specific requests.

We're starting to get network requests for specific SIMs
and the Legacy Type Inference was broken because the incoming
request included a network specifier while the legacy requests
it was compared with did not. Only compare the things we care
about.

bug:18031008
Change-Id: If107042828c152ede51a2497a3859bc1a6c83694
/frameworks/base/core/java/android/net/ConnectivityManager.java
8e3f4fbdf6e562f4f5731b98e327e8af33b75c4c 22-Oct-2014 Erik Kline <ek@google.com> Remove CONNECTIVITY_CHANGE_DELAY and friends.

Once optimistic addresses become useable upon kernel notification
there will be no need for a connectivity delay.

This change requires kernel changes like:
https://android-review.googlesource.com/#/c/109934

Bug: 17769720
Change-Id: I8510c540aa655aad6a82ee322d591331357ee272
/frameworks/base/core/java/android/net/ConnectivityManager.java
a848c1cc0a7b72b192aef9de2d448b3e1d17619c 01-Oct-2014 Robert Greenwalt <rgreenwalt@google.com> Send callbacks for Net property changes

LinkProperties and NetworkCapabilities changes were not calling app callbacks.

bug:17681483
Change-Id: I67dac3c4dc1284f5c4bfb24de239da4ec776336f
/frameworks/base/core/java/android/net/ConnectivityManager.java
89e0f0937a70d73b5ed188c9337b4d33860e5573 15-Sep-2014 Paul Jensen <pauljensen@google.com> Move mobile provisioning APN support into telephony.

Most of this logic is simply removed from ConnectivityService.
The captive portal detection is now done by the NetworkMonitor.
The notification logic is still left in ConnectivityService as
it's used by both the NetworkMonitor and telephony's mobile
provisioning logic.

bug:17324098

Change-Id: Ibd1c42b1a75795f90a6483d3d0a5a14f88b193d8
/frameworks/base/core/java/android/net/ConnectivityManager.java
edb47668f072ba82ca389a1b78b1a2024ac31663 17-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Use unified Tethering Permission Check

The BT and Wifi mechanisms for enabling Tethering did their own
permission checks. This set of changes unifies the check into
a ConnectivityManager function so they can be kept in sync.

bug:17435527
Change-Id: I8c157a5acf56ffbddd349cb6a45160ae7be8541b
/frameworks/base/core/java/android/net/ConnectivityManager.java
c91b5348a56f79b4ff5f42a7689dd036ecfd7149 27-Aug-2014 Paul Jensen <pauljensen@google.com> Flush HTTP socket pools and DNS cache when binding process to a Network.

Future HTTP requests could use an old socket that's bound to a different Network
causing unexpected results. DNS results could also not be appropriate.

bug:17283566
bug:17432215
Change-Id: I88b40b723c7b442000cafe8ce8b9d989d8995991
/frameworks/base/core/java/android/net/ConnectivityManager.java
b2489879ee48efcd1b6c319e6d41ba0e081a4602 05-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Fix networking API per scripting checks.

bug:17389242
Change-Id: I6017f559788ee16a1721b387796e5bda5e07280d
/frameworks/base/core/java/android/net/ConnectivityManager.java
b57edc5ae999abd9c7310833f4f10bbacbc469d7 23-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Pass the socket mark for DNS queries to dnsmasq.

This makes tethered clients use the correct DNS servers when
tethering to non-default networks like the DUN APN.

Bug: 16357676
Change-Id: I8933b6de198a92c2aaf0291931ace8966ddba275
/frameworks/base/core/java/android/net/ConnectivityManager.java
a68d21350266a6abc16aeb3fec84eafd85b77cc8 22-Aug-2014 Paul Jensen <pauljensen@google.com> Remove captive portal sign-in actions.

This reverts commit e0101cd and removes the related NetworkMonitor code.
The thinking is the broadcasts are not robust enough as they rely on apps
working together and are not sufficiently tested.

bug:17115050
Change-Id: I433032867cc4fea7191a1b13842b16825dc74df4
/frameworks/base/core/java/android/net/ConnectivityManager.java
8cd33ed84e94036a5e1201485af7603dc6fb0d9b 24-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Implement support for bypassable VPNs.

Bypassable VPNs grab all traffic by default (just like secure VPNs), but:
+ They allow all apps to choose other networks using the multinetwork APIs.
If these other networks are insecure ("untrusted"), they will enforce that the
app holds the necessary permissions, such as CHANGE_NETWORK_STATE.
+ They support consistent routing. If an app has an existing connection over
some other network when the bypassable VPN comes up, it's not interrupted.

Bug: 15347374
Change-Id: Iaee9c6f6fa8103215738570d2b65d3fcf10343f3
/frameworks/base/core/java/android/net/ConnectivityManager.java
fab50167a88941b1088130b6b62b1200088764cc 23-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Fix DUN-based tethering.

It was calling into dead ConnectivityService code rather than using
the new ConnectivityManager shim code.

bug:15221541
Change-Id: I1e3eea8a658a162ce36673ed1cf7b1e7e4372c42
/frameworks/base/core/java/android/net/ConnectivityManager.java
b87875eb88216a84c3870e574780921eb00d34c3 21-Jul-2014 Ye Wen <ywen@google.com> Infer legacy network type for ConnectivityManager.requestNetwork

ConnectivityManager.requestNetwork pass TYPE_NONE to
sendRequestForNetwork which prevents it from being used with legacy API
requestRouteToHostAddress. This CL infers the legacy network type
automatically from the network capabilities.

b/16324360

Change-Id: I591d38f875f42f56e8cfc157db2069c9eee0ee26
/frameworks/base/core/java/android/net/ConnectivityManager.java
03666c705ddabe0e7c5869ab69c2ca8b964164e9 20-Jul-2014 Sreeram Ramachandran <sreeram@google.com> Cleanup: Delete dead code.

Bug: 15413389
Change-Id: I315468832ef18ffc84174e54774ab63b86d284dc
/frameworks/base/core/java/android/net/ConnectivityManager.java
5d59e785e12b229a860b1d75f9e88cc74d7f61ff 11-Jul-2014 Paul Jensen <pauljensen@google.com> Readjust location of NETID_UNSET definition.

This is a tweak to my 8ec11bb change I a-little-too-hastily committed.

Change-Id: Ibeee9382109994c66227d1c42aac749e2a274ed7
/frameworks/base/core/java/android/net/ConnectivityManager.java
bcc76d345cdad2eff0f64d1dca9f92f94c8b9f07 11-Jul-2014 Paul Jensen <pauljensen@google.com> Define NETID_UNSET in ConnectivityManager.

This allows some cleanup and removal of dead code.

bug:15489928
Change-Id: Iaf0507bc2e8ec6dcc253f01f61c5b221d46581f9
/frameworks/base/core/java/android/net/ConnectivityManager.java
7237965c0d6f86a5f6e71d23645c37022edc4175 10-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Refactor wifi p2p's startDhcpServer function"
9c7e2c2cb491268db0322ad78856faf0582e61d1 23-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Refactor wifi p2p's startDhcpServer function

Add getTetheredDhcpRanges() interface and call it before calling
mNwService.startTethering to update dhcp ranges. This will allow
p2p apps to run well concurently with other tethering apps.

Manual import of AOSP change 81546 by jianzheng.zhou@freescale.com

Change-Id: Iebc62f95bdcedde80e2c1d3e9580d3f625c3b50b
/frameworks/base/core/java/android/net/ConnectivityManager.java
73b6cbae0cf6ca71453c526895a735130e72c9c0 23-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Add Network inspection API.

Adds getNetworksNetworkInfo.
Adds getAllNetworks.

Cleans up some synchronization issues.

Change-Id: I82c7a4b554e3c6c1adfe6027cc54b028ed6dbac9
/frameworks/base/core/java/android/net/ConnectivityManager.java
8283f8802d7e4d78c7eb031ddac07a4cfdc30771 08-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Remove dead code.

Also adds a TYPE_VPN so the VPN can be strongly typed.

Change-Id: Ibf39450c480f16ce5ab4c25b47965691b844fb92
/frameworks/base/core/java/android/net/ConnectivityManager.java
620a5466ce5f401aafa6a438383016640ec51d1a 07-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Merge "Remove unused api."
17c3e0fbfcd404fb253288b386d7b39368d5852a 02-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> Remove unused api.

bug:15595155
Change-Id: Ifd79365bd45f20f531782244f471a4cfc32a4135
/frameworks/base/core/java/android/net/ConnectivityManager.java
30d5195fc1bb6f13e1b294cc3cbec9ef5837ed8d 07-Jul-2014 Glenn Kasten <gkasten@google.com> Fix build

Change-Id: I7d0787e4a1f778008c979c4174ef445a950c4250
/frameworks/base/core/java/android/net/ConnectivityManager.java
e76e4323ccafd174840b97186809722c74305c60 19-May-2014 Paul Jensen <pauljensen@google.com> Add captive portal sign-in actions.

Change-Id: I70a6c2efc4f3fa48d5b65e8d630682fe74abfe2c
/frameworks/base/core/java/android/net/ConnectivityManager.java
7221cc3bf3d27dc10c7855f1bef2fa6cf6cfe9de 27-Jun-2014 Paul Jensen <pauljensen@google.com> Make sure callback handler is in place before callbacks handled.

When making Network requests in ConnectivityManager, make sure we install the
callback prior to a response from ConnectivityService arriving causing us to
search for the callback and inadvertently not find it.

bug:15928097
Change-Id: Ie5feb9cc8f5effc19870f54dba07218b2e11d82a
/frameworks/base/core/java/android/net/ConnectivityManager.java
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/ConnectivityManager.java
32a58f00d388584f5f47c0d5d4c74ce7c8457d78 20-Jun-2014 Paul Jensen <pauljensen@google.com> Use return values from JNI functions binding sockets and processes to networks.

bug:15757549
Change-Id: If23b14febc923b9a0348f0cf9029fd4bf6e8d725
/frameworks/base/core/java/android/net/ConnectivityManager.java
257ee5fa6f22d356d1783808d42e30b9d81851c6 20-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Add logging to track down weird ConnectivityManager issue.

bug:15771399
Change-Id: I0a7150286f94262414005298e6f038f278347a7c
/frameworks/base/core/java/android/net/ConnectivityManager.java
52a327263d1cdbab53f9d9087b67bcfea087407e 13-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 2d0ab42b: Merge "Apply API Council comments to ConnectivityManager" into lmp-preview-dev

* commit '2d0ab42b1420db884d26fd2ef22710b5a887e9a6':
Apply API Council comments to ConnectivityManager
6078b50b017fbcf8d6cbf9f83226ed5667d5729e 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Apply API Council comments to ConnectivityManager

rename isNetworkActive -> isDefaultNetworkActive
rename registerNetworkActiveListener -> registerDefaultNetworkActiveListener
make listenForNetwork/requestNetwork take a NetworkRequest
rename NetworkCallbackListener -> NetworkCallback
rename listenForNetwork -> registerNetworkCallback
rename releaseNetworkRequest -> unregisterNetworkCallback
remove NetworkRequest param from NetworkCallback functions
rename onNetworkCapabilitiesChagned to onCapabilitiesChanged
remove onReleased
change time units in onLosing from Sec -> ms

bug: 15142362
Change-Id: Ibc96e3f461706efe1eafa0d85605249cfd6e9fdd
/frameworks/base/core/java/android/net/ConnectivityManager.java
7c9f5529ea07fda43a68f9b5de204cf2b90d1b61 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 558aeb90: Merge "Make NetworkCapabilities publicly immutable." into lmp-preview-dev

* commit '558aeb901144fac460575402e38fc8baa2da83eb':
Make NetworkCapabilities publicly immutable.
7569f1811f6061b2a6605c69bca1bb7af72ae1a0 09-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Make NetworkCapabilities publicly immutable.

Applying API council comments.

bug: 15142362

(cherry picked from commit Ie0bde68b72656a676d90c0343b9756fe9268d8d6)
Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
/frameworks/base/core/java/android/net/ConnectivityManager.java
0a363a319ff6e7b83c4c37b3406f4b0bd2dbf273 29-May-2014 Paul Jensen <pauljensen@google.com> Apply API review to android.net.Network:

- socketFactory() renamed to getSocketFactory()
- Make sure bindProcess() documentation points developers to getSocketFactory() as the preferred approach
- Move bindProcess() and unbindProcess() to ConnectivityManager.setProcessBoundNetwork() -- passing null clears it.
- Move getProcessBoundNetwork() to ConnectivityManager.getProcessBoundNetwork().

Bug:15142362
Bug:13885501

Change-Id: Ia55c59d52e1ec8bf10dd0d9d037bd04c0998bc71
(cherry picked from commit 5ca1e6675bf4182b6e9ca76a7696bf2e38e96c4f)
/frameworks/base/core/java/android/net/ConnectivityManager.java
6d3ff9ea3a542a18ca5da055418a7b9eff130d93 29-May-2014 Paul Jensen <pauljensen@google.com> Apply API review to android.net.Network:

- socketFactory() renamed to getSocketFactory()
- Make sure bindProcess() documentation points developers to getSocketFactory() as the preferred approach
- Move bindProcess() and unbindProcess() to ConnectivityManager.setProcessBoundNetwork() -- passing null clears it.
- Move getProcessBoundNetwork() to ConnectivityManager.getProcessBoundNetwork().

Bug:15142362
Bug:13885501

Change-Id: Ia55c59d52e1ec8bf10dd0d9d037bd04c0998bc71
/frameworks/base/core/java/android/net/ConnectivityManager.java
9ac3dbe1ce68fba1af012112894d54c3024195f8 06-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix the marking of restricted network requests

Need to realized that the NOT_RESTRICTED bit is set by
default, so if looking at what bits are set to decide if
we want NOT_RESTRICTED cleared, we need to ignore the
bit itself.

bug:15456019

Change-Id: Iecae598f47ec7306d475e2262bb1c452ddf0fc75
/frameworks/base/core/java/android/net/ConnectivityManager.java
ea1984fd3bda53c85c5f789e3e36641145803704 04-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Call a network restricted only if all capabilities are restricted

When guessing whether a network is restricted or not (e.g., when
constructing a NetworkCapabilities object from an APN type, or
when constructing a request using startUsingNetworkFeature),
only assume the network is restricted if all the capabilities it
provides are typically provided by restricted networks (e.g.,
IMS, FOTA, etc.).

Previous code would conclude a network was restricted even if it
supported one "restricted" capability, so for example an APN
that provides both Internet connectivity and FOTA was marked as
restricted. This caused it to become ineligible to provide the
default Internet connection, because that must be unrestricted.

Also expand the list of restricted APN types a bit.

Bug: 15417453
Change-Id: I8c385f2cc83c695449dc8cf943d918321716fe58
/frameworks/base/core/java/android/net/ConnectivityManager.java
4077acbeccd2483e78e83abff874757302388fbe 03-Jun-2014 Lorenzo Colitti <lorenzo@google.com> Make requests for restricted networks not require unrestricted access.

Currently, calling startUsingNetworkFeature for a restricted APN
type (e.g., IMS or FOTA) will create a request that requires
NET_CAPABILITY_NOT_RESTRICTED. Because these APNs are restricted,
when we bring them up we conclude that it does not match the
unrestricted requirement, and we tear them down.

1. Clear the NET_CAPABILITY_NOT_RESTRICTED capability when
creating requests in startUsingNetworkFeature.
2. Refactor the code to a common function so this cannot happen
again.

Bug: 15191336
Change-Id: Id1ec79c58ff79b1a83457ffaecc57d50b61ed4e4
/frameworks/base/core/java/android/net/ConnectivityManager.java
32aa65a11207e1fb7d346a68fdf3299f87a20db4 03-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix Legacy NetworkInfo API

Make the connectivity changed broadcasts send correct NetworkInfos.
Also update the results of getNetwork.

bug:15290306
bug:15191336
bug:14993207
Change-Id: Ie99ad25f3ebb90d18348e7013761b139e7481866
(cherry picked from commit 16fe1c18289de200d2249e51db8c0986619f487b)
/frameworks/base/core/java/android/net/ConnectivityManager.java
562cc54536f1e75d80855de4d1eccaeefd689a32 16-May-2014 Robert Greenwalt <rgreenwalt@google.com> Rewrite startUsingNetworkFeature for new API

bug:14993207
Change-Id: I041a80faa07bf3094af13a6c606f3b15aa03f789
(cherry picked from commit 09fe5e618b09965183cf53fba87c39025a19e8d1)
/frameworks/base/core/java/android/net/ConnectivityManager.java
afa05c0b43cbc065181d5c2d6ee368a08bb00c3b 22-May-2014 Robert Greenwalt <rgreenwalt@google.com> Move dis/enable of mobile data to Telephony

ConnectivityService doesn't do this anymore.

bug:15077247
Change-Id: I3208c91b2c0369b594987f39ca29da7478435513
(cherry picked from commit 53013c87496980b534e447e717a32698fbd4bca0)
/frameworks/base/core/java/android/net/ConnectivityManager.java
a67be03f9e2734c0a6c03af20e17f963daaed257 17-May-2014 Robert Greenwalt <rgreenwalt@google.com> Add NetworkFactory names and unregistration.

Some Factories come and go (Telephony) and so they need to be able to unregister.
Also, debugging is tough when the factories are anonymous, so add names for logging.

Lastly, only send single set of NetworkRequests to a newly registered NetworkFactory
and only send the requests.

Change-Id: I717d63363f25c446f8ecf38d933b1a35d744af6e
/frameworks/base/core/java/android/net/ConnectivityManager.java
d19c41c0bbd2de637eb6a52a49e0ebcd420cf2ba 19-May-2014 Robert Greenwalt <rgreenwalt@google.com> Add javadoc and unhide new API

Change-Id: I12e475bbf4000c7acec4ca27b1d3bf8f870cc2cf
/frameworks/base/core/java/android/net/ConnectivityManager.java
7a91a7434af6542486466b88ad0bc8860fd1c594 14-May-2014 Robert Greenwalt <rgreenwalt@google.com> Undeprecate funcs until we're ready for api-review

Fixing javadoc deprecated tags to fix a checkbuild error breaks the current/api.txt.
We're not ready for the api change yet, so back out the comments.

Change-Id: Ia95e394da7329c1b9e3876e589c3c2137ba18048
/frameworks/base/core/java/android/net/ConnectivityManager.java
8ac546eaa36e6f7c6a89bdbb38f3886bdf5b4fb7 14-May-2014 Robert Greenwalt <rgreenwalt@google.com> Fix Javadoc

It's Deprecated for an annotation, but deprecated for
a javadoc and case is important.

Fix build

Change-Id: I355dc1660196c09530b58386f401a85a74d16476
/frameworks/base/core/java/android/net/ConnectivityManager.java
9258c64bef1a01fe89bc7c1fa402c44c0e6a1255 27-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> Add Multinetwork API

Change-Id: I3a9cef0d416db96d05098dd989ee3fef3b1e9274
(cherry picked from commit cc5e6afa1ba0bef099bcb21a64a36bc2bf7951db)
/frameworks/base/core/java/android/net/ConnectivityManager.java
7b81602f3c18df8a4ca0342c514af8f7e394c0d7 19-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Enabling internal msg apis

NetworkFactory and NetworkAgent. First trying with wifi and
getting rid of WifiStateTracker.

Conflicts:
api/current.txt
services/core/java/com/android/server/ConnectivityService.java

Change-Id: I7f0ec13d7d8988b32f3c6dc71f72012f3349fe02
/frameworks/base/core/java/android/net/ConnectivityManager.java
e049c23980409be6576da3d30538a6cdc43854dd 12-Apr-2014 Robert Greenwalt <rgreenwalt@google.com> Add NetworkFactory support.

This is a protocol allowing transports to dynamically register with CS for
Handler to Handler communications.

bug:13885501
Change-Id: Ic7275e3724a15efc7e5f80981560c4cb3106007b
/frameworks/base/core/java/android/net/ConnectivityManager.java
9ba9c58e4a249456794fbfb9989f27bd846d067e 20-Mar-2014 Robert Greenwalt <rgreenwalt@google.com> First pass on multinetwork framework

Starting to switch netd to use NetId.
Adding the Network identifying class

bug:13550136
Change-Id: Ie0db4fb17c9300bfafb63329adfa02339911b33d
/frameworks/base/core/java/android/net/ConnectivityManager.java
faf3fd59d5b36458cd2385639d79b0b25117c730 08-May-2014 Jason Monk <jmonk@google.com> Fix Docs breakage

Change-Id: Idaa57d16165203ad38143e493552ddf8a1ff56e5
/frameworks/base/core/java/android/net/ConnectivityManager.java
207900c23b26d0df9ab28c709db4a1007d7d7904 25-Apr-2014 Jason Monk <jmonk@google.com> Make proxy API public

Also exposed proxy-related functions that were on the
ConnectivityManager.

Change-Id: I9fb5f1bcc257a6198679ea1d56e18da2ec5a3b33
/frameworks/base/core/java/android/net/ConnectivityManager.java
0535a9f7aa5d0f875b06845e9af5f6dbfc5c8a19 13-Mar-2014 Ashish Sharma <ashishsharma@google.com> Include elapsed realtime (nanos) of the event in the radio state change notifications.

Bug: 13247811
Change-Id: I3454aa159a68b9087b4762df947b41965b5a3941
/frameworks/base/core/java/android/net/ConnectivityManager.java
77b987f1a1bb6028a871de01065b94c4cfff0b5c 27-Feb-2014 Dianne Hackborn <hackbod@google.com> Hold a wake lock while dispatching network activity events.

Also add new API for determining whether the current data network
is active, and thus better scheduling network operations. This
API is designed to not be tied to a mobile network -- regardless
of the network, apps can use it to determine whether they should
initiate activity or wait. On non-mobile networks, it simply always
reports as the network being active.

This changed involved reworking how the idle timers are done so
that we only register an idle timer with the current default
network. This way, we can know whether we currently expect to
get callbacks about the network being active, or should just always
report that it is active. (Ultimately we need to be getting this
radio active data from the radio itself.)

Change-Id: Iaf6cc91a960d7542a70b72f87a7db26d12c4ea8e
/frameworks/base/core/java/android/net/ConnectivityManager.java
f81daa986e3a2d75c6f2398a59b965790484e0a2 14-Feb-2014 Chad Brubaker <cbrubaker@google.com> Add the calling package name to requestRouteToHost

The calling package name will be used to check if an application is a
system application when deciding if a route should be exempt from VPN
routing rules.

Bug: 12937545
Change-Id: I2c09c875fe9bb9685871a0a801ddcbb32fc17405
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.java
945d69d7b843ed319ec98986b033ea7b86383e69 31-Jan-2014 Hui Lu <huilu@google.com> am 3cab7fc1: Merge "Add proxy as another network." into klp-modular-dev

* commit '3cab7fc1b8f06166df3a58cf10d4a0db36bde788':
Add proxy as another network.
1c5624a0128397fa6fd6484e6a473bad10547a34 15-Jan-2014 Hui Lu <huilu@google.com> Add proxy as another network.

Change-Id: I70cb6ac5604c4f0d6a752a291c40de2445ae98bb
/frameworks/base/core/java/android/net/ConnectivityManager.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.java
5cd1a0e8d77972ad6cee2625a7e21082932042c2 10-Sep-2013 Yuhao Zheng <yuhaozheng@google.com> Add a hidden API to toggle airplane mode.

Added a hidden API under ConnectivityManager to toggle airplane mode.
This may be a temp solution for b/10653570.
bug:10653570

Change-Id: I0b2b42230073289eb8dc6891317d62b84e26c133
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.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.
292a92e337f0a1b28b83f990459393f0d368c164 09-Aug-2013 Wink Saville <wink@google.com> am 7c00be48: am 55adb390: am 35152f13: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev

* commit '7c00be48fcb1986db14915beef549e925b5670d2':
Have CaptivePortalTracker use gservices updateable provisioning urls.
4d87d91dfe886713df96abd3c0d1c9e20cf385e5 09-Aug-2013 Wink Saville <wink@google.com> Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
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/ConnectivityManager.java
42d4f08db2c15e1829c1fc5d1942cf029ab0895b 21-Jul-2013 Wink Saville <wink@google.com> Have CaptivePortalTracker use gservices updateable provisioning urls.

After detecting there is a captive portal the url used in the
notification for mobile networks should be updateable via gservices.
These urls will be the same as used by CheckMp and is needed for
carriers that have specific provisioning urls such as AT&T and Verizon.

Bug: 9622647
Change-Id: Idcf4dabc72ece1dbbe1d5e5a21e550dd06fe16c7
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.java
f336d722c773855402d91a227fc290eafca23335 16-Jul-2013 Chad Brubaker <cbrubaker@google.com> Fix supplimentary network connections with VPNs

Enables the use of supplimentary mobile networks like MMS, and HIPRI
while VPNs are running.

Change-Id: I313f57a905b4e16bd4322c68687cbff1cfbe9d3e
/frameworks/base/core/java/android/net/ConnectivityManager.java
538cdb98ef06a1768c582df28e8cc0e4335dd216 19-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 85b5e4c4 to master

Change-Id: Idd0ad9b1504fddf68c4c4cc04731de1eddd204b3
e182bfe398a132236f723a76522bacd4d6d4c0a4 16-Jul-2013 Robert Greenwalt <rgreenwalt@google.com> Add gservices updater for carrier provisioning url

bug:9623159
Change-Id: I36697ed341353b7a3dbec5afe20241102e76f6f1
/frameworks/base/core/java/android/net/ConnectivityManager.java
9f6a7f424fad614fdb991bd978009eb1321c70a6 02-Jul-2013 Wink Saville <wink@google.com> Merge commit '3b5d686e' into fix-merge-conflict

* commit '3b5d686e':
Add checkMobileProvisioning to ConnectivityService.

Conflicts:
services/java/com/android/server/ConnectivityService.java

Change-Id: Ieceb9c8f4aa4fa99258e56a720b4c74512369458
ab9321d13de29cf314e8a1774b592d1f1d7e94d8 30-Jun-2013 Wink Saville <wink@google.com> Add checkMobileProvisioning to ConnectivityService.

Bug: 9279964
Change-Id: I42c326a21e05aa301e9d974ed9ac1d59472780ec
/frameworks/base/core/java/android/net/ConnectivityManager.java
7a1c3fce478122b9f03464117dc94d44f7c1995e 04-Jun-2013 Jeff Sharkey <jsharkey@android.com> Accumulate network statistics based on deltas.

Network stats are now read out of the kernel in one sweep, instead of
reading per-UID. We now accumulate the delta traffic between each
stats snapshot using the well-tested SamplingCounter pattern.

Since Wi-Fi and mobile traffic have different costs, track each
separately. Avoids counting misc interfaces like loopback and
ethernet under total.

Bug: 5543387
Change-Id: I642004dc530113c27ef79f2abbae51d8af30117f
/frameworks/base/core/java/android/net/ConnectivityManager.java
a9bebc221108dd679da0557963605cd704d05743 11-Apr-2013 Robert Greenwalt <rgreenwalt@google.com> Use CONNECTIVITY_INTERNAL for global proxy

The Global http proxy shouldn't be used by apps, but can be useful in certain
conditions.

bug:8264794
bug:8557674
Change-Id: Ia3cbe542e448d9e74d0492626a13e9fd34ad797a
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.java
5a6bdc46e2fdc8cfd930396773dd89efd19fa1f1 15-Feb-2013 Robert Greenwalt <rgreenwalt@google.com> Improve ConnectivityManager docs

Also fix some permission problems.
bug:5738328

Change-Id: Ib32c223f425b1fc03b8cce528456bcb50b540fdf
/frameworks/base/core/java/android/net/ConnectivityManager.java
4fa63b2d5e3b2e2a85bf17a9bf056cbdfb7046f0 21-Feb-2013 Jeff Sharkey <jsharkey@android.com> Improve notification UI for lockdown VPN.

Bug: 7064111
Change-Id: I9554f6a426697b4abeb2ddd0827d314920e88ed6
/frameworks/base/core/java/android/net/ConnectivityManager.java
108da0cfa4a2f59cc953a4ec61314e69b61d6777 12-Feb-2013 Russell Brenner <russellbrenner@google.com> Adjust captive portal test for setup wizard

During setup wizard, perform captive portal test without the typical
delays.

Change-Id: If596948e732966817aae6201440e87e19be0c2f8
/frameworks/base/core/java/android/net/ConnectivityManager.java
4c8b7481cf8f2e571a160d086079e2f65a6afb05 07-Dec-2012 Robert Greenwalt <rgreenwalt@google.com> Fix javadoc break

Change-Id: Ia69a5cbead61747537269e267dcd8da320d61ba3
/frameworks/base/core/java/android/net/ConnectivityManager.java
dcf03f39725deec68f644f6162fdfcc884dc9964 16-Nov-2012 Jianzheng Zhou <jianzheng.zhou@freescale.com> Refactor getPersistedNetworkPreference

Optimize for updating mNetworkPreference according to device's networkAttributes
setting from overlay config.xml when connectivityservice start.

Change-Id: I90286332d4f453038f1ddac7dd9d1265d96b4859
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
/frameworks/base/core/java/android/net/ConnectivityManager.java
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

Migrate networking, storage, battery, DropBox, and PackageManager
related Secure settings to Global table.

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.java
69ddab4575ff684c533c995e07ca15fe18543fc0 25-Aug-2012 Jeff Sharkey <jsharkey@android.com> Always-on VPN.

Adds support for always-on VPN profiles, also called "lockdown." When
enabled, LockdownVpnTracker manages the netd firewall to prevent
unencrypted traffic from leaving the device. It creates narrow rules
to only allow traffic to the selected VPN server. When an egress
network becomes available, LockdownVpnTracker will try bringing up
the VPN connection, and will reconnect if disconnected.

ConnectivityService augments any NetworkInfo based on the lockdown
VPN status to help apps wait until the VPN is connected.

This feature requires that VPN profiles use an IP address for both
VPN server and DNS. It also blocks non-default APN access when
enabled. Waits for USER_PRESENT after boot to check KeyStore status.

Bug: 5756357
Change-Id: If615f206b1634000d78a8350a17e88bfcac8e0d0
/frameworks/base/core/java/android/net/ConnectivityManager.java
75fbb4bdfde9188081f000506845d852f31362f0 06-Aug-2012 Jeff Sharkey <jsharkey@android.com> Include network type that caused broadcast.

Network type can be obtained through EXTRA_NETWORK_INFO, but offer
it as first-class extra since the returned NetworkInfo is deprecated.

Bug: 6936247
Change-Id: Ief59577afd2bd930f0f4c5650b413feef86bfbc3
/frameworks/base/core/java/android/net/ConnectivityManager.java
db3c8678e5cbdfec011afaf25bde2091152c30ad 20-Jun-2012 Haoyu Bai <bhy@google.com> Network data activity change intent for network interfaces.

The activity notification is received from netd, an intent
DATA_ACTIVITY_CHANGE is then raised for other part of the system to
consume.

Change-Id: Idfcc4763c51c5b314c57f546c12557082f06bebf
/frameworks/base/core/java/android/net/ConnectivityManager.java
9530e3a22d5ffa2019d1a5177b6a441d4d6d048b 19-Jun-2012 Nicolas Falliere <nicof@google.com> Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec
/frameworks/base/core/java/android/net/ConnectivityManager.java
9f7cbf0e50bcb7e9163b23524814003ba8784732 13-Apr-2012 Jeff Sharkey <jsharkey@android.com> API to report if active network is metered.

Report to developers if active network is "metered" and define it
as the user being sensitive to heavy data usage.

Bug: 3001465
Change-Id: I855ca3cd3eb1de3c4814148d70ccf24957af898a
/frameworks/base/core/java/android/net/ConnectivityManager.java
8fc27e8b87bd1def854a03d84009143b315d4176 05-Apr-2012 Jeff Sharkey <jsharkey@android.com> Support metered Wi-Fi NetworkPolicy.

Add networkId field to NetworkIdentity to identify Wi-Fi networks by
SSID. Add support for policies without usage cycles.

Only apply mobile policies when SIM state is ready, which is cleaner
than just checking for airplane mode. Also avoids creating no-op
default policies when subscriberId is null.

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
/frameworks/base/core/java/android/net/ConnectivityManager.java
54ee2adf1711ce34c309c65c17ed6fd4d8f0d632 31-Jan-2012 Jeff Sharkey <jsharkey@android.com> Deprecate ACTION_BACKGROUND_DATA_SETTING_CHANGED.

Broadcast is no longer sent, except during first boot after platform
upgrade.

Change-Id: I7a9c105b5783ca9f9c3aca2efff6fe5c13a4c1fd
/frameworks/base/core/java/android/net/ConnectivityManager.java
671644c3ef92a9153ea5bd495e132d5fe6674234 07-Oct-2011 Scott Main <smain@google.com> docs: some helpful javadocs for network info

Change-Id: I8f1879bf10acd6371a76f11a8e5ec08643c3f943
/frameworks/base/core/java/android/net/ConnectivityManager.java
4cc5333539f57b54663b0a6e398a11a0aaefc8bb 07-Oct-2011 Scott Main <smain@google.com> docs: deprecate thingy

Change-Id: I579824680f3b5110d56981becaaf81f917989e7e
/frameworks/base/core/java/android/net/ConnectivityManager.java
44a3e0d497f19fad1de4b73eb0eb6d3b6132c405 06-Oct-2011 Jeff Sharkey <jsharkey@android.com> Hide quota APIs until finalized.

Bug: 5383656
Change-Id: Ia2a978a6ff2ee642b0ea4d7d6b8857b7efffd612
/frameworks/base/core/java/android/net/ConnectivityManager.java
9b2886e24301e5d4e7052ec4a6eaff273d3f516c 31-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Create new isNetworkSupported API

Useful for checking if on a wifi-only device.
Similar to asking for NetworkInfo for a network type and checking for
null, though here the intent is explicit.

bug:5087537
Change-Id: Ia3ddd09b6b735b8b3ceb7a347891e015fd96b218
/frameworks/base/core/java/android/net/ConnectivityManager.java
961e30458319cfd50e1892ba7dd14a1d0ebe4cc7 30-Aug-2011 Jeff Sharkey <jsharkey@android.com> Introduce immediate CONNECTIVITY_ACTION variant.

New broadcast that is dispatched immediately after connectivity
changes have been handled by ConnectivityService, bypassing any
applicable CONNECTIVITY_CHANGE_DELAY.

Also protect CONNECTIVITY_CHANGE broadcasts, since they should only
be sent by system.

Bug: 5198167
Change-Id: I75f1fb44b21da1879f0ab960bcaa481126d70fde
/frameworks/base/core/java/android/net/ConnectivityManager.java
9a20fa54c9ba4bd19f2afd6e8cc6e9954e7cb739 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Background data notification, API clean up."
3a844fcf5a0e70a19c38dc500306b9ebe4e1413b 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Background data notification, API clean up.

When restricting background data, show ongoing notification to give
easy access to re-enable. Deprecate getBackgroundDataSetting() API
to always return true, since NetworkInfo.isConnected() is new source
of truth. Handle upgrade path by reading from existing secure value,
and kick one last broadcast when changing value. Remove background
data code from ConnectivityService.

Remove warning alerts, since they push ifaces into restricted list;
should only happen when iface has limit.

Bug: 5163559, 5129421
Change-Id: I0064d9d643656a4d32aaae51d4a58bce49fe295f
/frameworks/base/core/java/android/net/ConnectivityManager.java
aea743aaa43a833fd8ff3dc56205197583152d5f 30-Jul-2011 repo sync <isheriff@google.com> P2p enhancements

- ConnectivityService interaction and support for running dhcp server
and client

- State machine enhancements for connectivity interaction

Change-Id: Iba3beb8c87554ffd67a7b7e852bbb4dd8666a4f5
/frameworks/base/core/java/android/net/ConnectivityManager.java
f0ceede8fff5df24e5c98701d81c2b71eb138aa9 03-Aug-2011 Jeff Sharkey <jsharkey@android.com> Expose quota status for active network.

Create API to expose quota status derived from underlying network
policy. This is designed to support applications making informed
decisions when performing network requests.

Fix bug with random stats generation, and write policy when changing
restrict background data flag. Deprecate EXTRA_NETWORK_INFO, since
it varies based on UID.

Bug: 4517283, 5088603
Change-Id: Ic6893a8967f69937e466be226ba7bb86ef5a5d2d
/frameworks/base/core/java/android/net/ConnectivityManager.java
6c2260b3af3a9243aa7f04cf03106f31817cb4c1 19-Jul-2011 Mike Lockwood <lockwood@android.com> Fix USB tethering

The previous approach no longer works with the new USB drivers, since the usb0
interface is no longer enabled by default.
This introduced a chicken & egg problem - usb0 will not be enabled until the
user tries to start tethering, but Settings will not enable the checkbox unless
usb0 is enabled.
To fix this we add an explicit call to start USB tethering in the connectivity manager.
This will enable RNDIS if necessary and then bring up tethering once usb0 is enabled.

Change-Id: Iae1f733366aa6b0dafa66d4c97207794173ef54b
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/net/ConnectivityManager.java
5ff886e5319c519a6b644a999680ea651e208981 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 7a652bc8 to master

Change-Id: Id0a41cae36f5a3b30f2fe8a202c934153b9cd03f
ccf83af1017b7b1eaf12f6ec3d2cb2137a7cdda9 03-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Fix tethering upstream determination.

Used to use iface names, but on mobile ifaces are multipurpose.
Refined to use ConnectivityService types.
bug:4530116

Change-Id: Iaa632d5f540d27ffff683bd7d94f8004bf422e71
/frameworks/base/core/java/android/net/ConnectivityManager.java
04ba25c418bc4538e9dc0f047cfb9608d358f679 16-Jun-2011 Chia-chi Yeh <chiachi@android.com> VPN: migrate from generic Bundle to our own Parcelable VpnConfig.

Note that VpnConfig is for internal use only.
Also remove hidden methods from ConnectivityManager.

Change-Id: Ic298c4dc9a2c6c452bd8f4be6fa84e7ac489c0c4
/frameworks/base/core/java/android/net/ConnectivityManager.java
ff3bdca31f4cf2bd607519b276dd175763aa1784 24-May-2011 Chia-chi Yeh <chiachi@android.com> The service part of the user space VPN support.

The dialogs will be in another change.

Change-Id: I0cdfd2ef21ffd40ee955b3cbde5ada65dbfdb0bc
/frameworks/base/core/java/android/net/ConnectivityManager.java
8a02401129e5805025d3a39e552a2840e73fb8cf 08-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of e139167c to master

Change-Id: Ic4d8aae7dd457457d9cc8ba081b273e425729f86
d2a458750e5a3d490af09cecb5c28370baf0a913 29-May-2011 Jeff Sharkey <jsharkey@android.com> Map network identity using ConnectivityService.

Instead of deriving network identity based on raw subsystem broadcasts,
listen for updates from ConnectivityService. Added atomic view of all
active NetworkState, and build map from "iface" to NetworkIdentity set
for stats tracking.

To avoid exposing internal complexity, INetworkStatsService calls use
general templates. Added TelephonyManager mapping to classify network
types using broad labels like "3G" or "4G", used to drive templates.

Cleaned up Objects and Preconditions.

Change-Id: I1d4c1403f0503bc3635a59bb378841ba42239a91
/frameworks/base/core/java/android/net/ConnectivityManager.java
5df69fad6e5021d2862bff0553a510f8d6729fbd 07-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 8de47a2f to honeycomb-LTE

Change-Id: I8193235a4c7e574635e17b2eb05bb5420a3c6749
c006f1aec15454782c35e028ad64d79a5c161cc1 20-May-2011 Jeff Sharkey <jsharkey@android.com> Policy and rules work for ConnectivityManager.

Teach ConnectivityManager about UID-specific rules derived from policy,
such as rejecting network traffic on "paid" interfaces. Calls that
return NetworkInfo now filter based on any REJECT rules in effect for
the calling UID. (Added uid parameter if callers that still want all
interfaces.)

Changed NetworkPolicyManager to derive rules based on current policy
combined with PowerManager and ActivityManager status, which it passes
to ConnectivityService for eventual enforcement through netd. When
rules change the usability of a NetworkInfo for a specific UID, it also
dispatches CONNECTIVITY_ACTION broadcasts to that UID. Combined paid
and background policy together to match current working definition.

Change-Id: I797ea49439fcc487cfe2cbc16703d4b91ceb9af6
/frameworks/base/core/java/android/net/ConnectivityManager.java
97ab2d4f86ee9c2b661a00688e934fc7030df22e 27-May-2011 Robert Greenwalt <rgreenwalt@google.com> Reveal some network constants.

Since we've already decided to inc the sdk version we should try to get these in too.

bug:4500218
Change-Id: I6dcb401bf30f1b06f02be0a93681a190d7ee5775
/frameworks/base/core/java/android/net/ConnectivityManager.java
6081084e8831d12d2dd5a9a340ee7d35a54edb8a 23-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Expose more net types to the public.

Ethernet and bluetooth.

Change-Id: Ic499709ffa151c0f27aef497373a8de7289e3e7f
/frameworks/base/core/java/android/net/ConnectivityManager.java
08c39c6a11f728e113811a6a85c109cfc80ce28e 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: I6ae34a32d0e1b6f21c484b8639c3e7ce086e568d
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.java
f8fdec50c7871b640c13cfe3e2e7a3b449f62f69 29-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of aa3866e6 to honeycomb-plus-aosp

Change-Id: I7a3445f7df2a66c70f630fa63ceb4ae150d70963
aa3866e6fa2d0c0e026b78cf43dccce67a2021e5 29-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 6b739dc7: Merge "Add some network types that OEM\'s are asking for." into gingerbread

* commit '6b739dc7292452227cdd8abd90658f4db8f0ce70':
Add some network types that OEM's are asking for.
e12aec941dfc93b76b5efb9bc9f30d2ba3469434 28-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Add some network types that OEM's are asking for.

Adding them hidden so that if OEM's are rolling their own at least they can
use the same values. Will mark them unhidden in a future sdk release.

bug:3395729
Change-Id: I90eabe036a96e1aa7c8cac49ca51efd9b1776a0c
/frameworks/base/core/java/android/net/ConnectivityManager.java
15c7439acb22ab079dd2ebe42bdf0d2ffd525c5d 22-Dec-2010 Jaikumar Ganesh <jaikumar@google.com> Add TYPE_BLUETOOTH network interface for reverse tethering.

Change-Id: I2aa61ce15f57aea9e8fd3a4cb56799c8bc51e998
/frameworks/base/core/java/android/net/ConnectivityManager.java
da3d5e6587c1476d489495ac93e84ebf223024c9 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Add a Dummy data connection for testing purposes.

Enable with:
<string-array translatable="false" name="networkAttributes">
<item>"wifi,1,1,1"</item>
<item>"dummy,7,7,0"</item>
</string-array>

in your config.xml

Change-Id: I3965edaeb4873e95131f4083b8d23d682ce17841
/frameworks/base/core/java/android/net/ConnectivityManager.java
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
/frameworks/base/core/java/android/net/ConnectivityManager.java
d192dad69e9e5a820c5c11d8cd34460c9cc2ed11 14-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Enhance http proxy support

Make it read proxys the correct way from CS so it works for all network types.
Add utility class for apache http client support.

bug:2700664
Change-Id: If81917b19b5f0636247a6519a1ec78bd8dbf3596
/frameworks/base/core/java/android/net/ConnectivityManager.java
5b7c5e055233154d2a82cc2d084cf983d12bb3a7 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am f434dd16: am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread

Merge commit 'f434dd1660f222a1ee85e77c98893b90857805c2'

* commit 'f434dd1660f222a1ee85e77c98893b90857805c2':
Update Inet Connection Status display
f434dd1660f222a1ee85e77c98893b90857805c2 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 134b28a7: Merge "Update Inet Connection Status display" into gingerbread

Merge commit '134b28a7f049719cb74fd5baadbbcc5915bc861b' into gingerbread-plus-aosp

* commit '134b28a7f049719cb74fd5baadbbcc5915bc861b':
Update Inet Connection Status display
1e9aac2bd855f12708d3049eff4435fa4a2f4317 16-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Update Inet Connection Status display

Cellular signal strength should also be green - these assets aren't, but
the art guys are working on that.

Also using a new intent so we don't overload the CONNECTIVITY_ACTION and
confuse the apps.
bug:2994024

Change-Id: I6fe8f65dd6e9869d9724064c4fae45340491a4d8
/frameworks/base/core/java/android/net/ConnectivityManager.java
67fd6c92922a94f46c7b6793a808f473a43eddd3 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Fix the build

add '*' so javadoc recognizes a comment block and finds the required @hide..

Change-Id: If665ba6549f9e017c063ea2800b7970917c33bdf
/frameworks/base/core/java/android/net/ConnectivityManager.java
ca4306c976d393c3cd04270bc2de0af2f4f30fa5 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ec52c98d to master

Change-Id: I31297232c9d918a967b93c3ae977f81b6a94f2ed
ec52c98d441aa592a203f547c0edec79c25bf28e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 0727a865: Merge "Add network condition reporting." into gingerbread

Merge commit '0727a865d83b944c2fecc0bf1228a36976fe5300' into gingerbread-plus-aosp

* commit '0727a865d83b944c2fecc0bf1228a36976fe5300':
Add network condition reporting.
d7085fcf6567452a9d6fc69b0c6b1bf556f4c1b9 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add network condition reporting.

Apps can report if they like their connection to the nets
and we display either not-really-connected or fully-connected
icons. Final icons TBD.

bug:2978624
Change-Id: I28be52085edfe54571c0d4559aba0df883548654
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.java
6fdd0c6274c81b337ad35b70480f881daf7354c3 11-Aug-2010 Danica Chang <danicachang@google.com> bluetooth tethering

Change-Id: Id6d5fb1922facc7013abc29214d3e1141995b767
/frameworks/base/core/java/android/net/ConnectivityManager.java
14f2ef4c9da27a3d58d65dc9f684c5f764ee279a 15-Jun-2010 Robert Greenwalt <robdroid@android.com> Move the net transition wakelock to ConnService.

When the default network goes down we lose the wake-on-incoming-data capability
until the new net is brought up and apps rebuild their connections. We fixed this
in Wifi, but it's a general connectivity issue, not a wifi issue so moving the
mechanism to connecitivty so other networks can use it.

bug:2734419
Change-Id: I39b5d825eb6b548bd9bb8f179b89254f4db53147
/frameworks/base/core/java/android/net/ConnectivityManager.java
8214deb542392f48b6c3fdc377fdf976c0b17a32 12-Mar-2010 jsh <jsh@google.com> Add definitions for WiMAX and iDen network types.

b/2509185

Change-Id: Icf07ce857874e200712218713edbdbb47e646297
/frameworks/base/core/java/android/net/ConnectivityManager.java
5a73506cdd466f2b96686ced3ff0f7ca224d1143 03-Mar-2010 Robert Greenwalt <robdroid@android.com> Add error reporting for Tethering.

Also make the usb interface configuration more robust so retries are possible.

Makes all Tethering errors recoverable - no harm letting them try again anyway. Worst case
is they need to reboot.
/frameworks/base/core/java/android/net/ConnectivityManager.java
c03fa5014912684367174ff3cce664deb29f5e0e 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Add mobile data on/off switch.

bug:2251458
/frameworks/base/core/java/android/net/ConnectivityManager.java
2a091d7aa0c174986387e5d56bf97a87fe075bdb 12-Feb-2010 Robert Greenwalt <robdroid@android.com> Update Tethering.

Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855
/frameworks/base/core/java/android/net/ConnectivityManager.java
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
/frameworks/base/core/java/android/net/ConnectivityManager.java
1bc3c3775b7b2cbaec50cd377db437f284478de0 13-Jan-2010 Robert Greenwalt <robdroid@android.com> Fix Javadoc errors so the sdk can build.

I unhid some API in a previous install, triggering javadoc processing on
their buggy comments.

Fixing build.
/frameworks/base/core/java/android/net/ConnectivityManager.java
c849cdf5cfde007ce591838c4e2b777fb4843c8d 08-Jan-2010 Robert Greenwalt <robdroid@android.com> Unhide some CM constants to support unbundling.

The MOBILE_MMS, MOBILE_SUPL, MOBILE_DUN and MOBILE_HIPRI net types used
by location, messaging, and vending needed to be exposed.

Bug: 2363272
Change-ID: I6d2361d3642064db619b283b9217512563eb3439
/frameworks/base/core/java/android/net/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.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/ConnectivityManager.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/net/ConnectivityManager.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/net/ConnectivityManager.java