History log of /frameworks/base/core/java/android/net/ConnectivityManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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