History log of /frameworks/base/services/java/com/android/server/ConnectivityService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2384386f3132839bec0cf460a3f19d068ad28507 13-Feb-2012 Robert Greenwalt <rgreenwalt@google.com> Stop using shared DUN APN when tethering stops.

Backported from master, including a bug fix and a cdma enhancement.

Even if other people are sharing the connection (ie, carrier wants
default and tethered traffic on the same APN) stop using a carrier-
described APN when the tethering stops.

bug:5972599
Change-Id: I25e4831855e6b62c0c3ab3a6f4d4846aaee6ac50
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b97d34c7c81ed7def6d0c1d7a76d057051f7d154 06-Jan-2012 tk.mun <tk.mun@samsung.com> Disable wimax when mobile data is in Settings

- Add wimax related code in handleSetMobileData to disable wimax when Moblie data is disabled (Settings -> Wireless & Networks - More -> Mobile Networks ->Data Enabled)

Change-Id: Ibf2d9da2eb90d161128005f26ac4b3e991526af4
Signed-off-by: tk.mun <tk.mun@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
424781e2e1a1f1447eea733ffd1dc0f8006b628e 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix NPE in ConnectivityService.

If it's configured with a defined network but can't create a network state tracker
for it, it would NPE and restart the framework whenever a default network
disconnects.

bug:5603268
Change-Id: I816c4f522d766e0353a713623f6635b03395b01e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6537b028757af736ff53a13488de4fa75aaef9a9 11-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix Wimax-less build.

A build with the wimax network type defined but wimax disabled
causes an NPE in ConnectivityService's constructor.

bug:5237167
Change-Id: I929eac217e1afa0e61346fdbc3e96a7d3ad09a54
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8588e47358878b7a1add2bd1df2ade95091cdb8d 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix build.

Missed a commit that fixed some issues.
bug:5237167

Change-Id: I61e44831e2c3f1cf613ca1387aa95d712b7d2ded
/frameworks/base/services/java/com/android/server/ConnectivityService.java
148c7d0de720a92632aa6ed10a39bfc38b427239 13-Oct-2011 tk.mun <tk.mun@samsung.com> Wimax : wimax framework related open source.

Integrate wimax network related changes into Android Framework.
- In Connectivity service, start wimax service.
- 4G icon display in StatusBarPolicy.
- DHCP renew add.
- Add radio for wiamx

Change-Id: I2d9012247edfdf49d71ca7e1414afd0006f330ca
Signed-off-by: tk.mun <tk.mun@samsung.com>
bug:5237167
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3b28e9a3daede9eac44faeb736ab4c8386ddd089 02-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Start using IP tool for advanced routing.

bug:5495862
bug:5396842
Change-Id: I5e31b352b14a4dc746cacce4d61cf8d9ad7382a0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4efe58d8e7ff6186e5f0341174f22123e0934bee 27-Oct-2011 Robert Greenwalt <rgreenwalt@google.com> Temp disable Tethering if DUN is required

Getting source-based routing working is too risk for this point
in the project but tethering is broken otherwise, so disable
the tethering option if DUN is required until we can get a real
fix in.

bug:5495862
Change-Id: I5e852bf30c887599024a8b61af86ffec1d5333af
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1059c3c30ad96a15695c1a92ae8896e078a6309f 05-Oct-2011 Jeff Sharkey <jsharkey@android.com> Move battery stats to xt_qtaguid for data stats.

Replace TrafficStats calls by reading values from xt_qtaguid kernel
module. To keep BatteryStatsImpl changes lightweight, cache recently
parsed stats. Tracks mobile ifaces from ConnectivityService.

Refactor xt_qtaguid parsing into factory outside of NMS. Add stats
grouping based on UID, and total based on limiting filters like iface
prefix and UID.

Bug: 4902271
Change-Id: I533f116c434b77f93355bf95b839e7478528505b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4c12a47bffc51868285b17db9f00d40affc7c9e3 04-Oct-2011 Chia-chi Yeh <chiachi@android.com> VPN: temporarily disable the default proxy when VPN is active.

Bug: 5361858
Change-Id: I99e84cce9c99ff1f5fdccbfd3bfb9cf496ac541c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e4474c3b7098a13bc81b0dba35bacd93b8a22f79 29-Sep-2011 Chia-chi Yeh <chiachi@android.com> ConnectivityService: detach the logic of global proxy.

The current implementation of global proxy is dead,
and it will be removed completely in separate changes.

Change-Id: I54f6b3960f761483d28d808e99db4c71c9c0348d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c1358b240c28443496249a5483afaccfc93f8d97 29-Sep-2011 Lorenzo Colitti <lorenzo@google.com> Revert "Tell the resolver what protocols to use."

Change Ife82a8d8 broke IPv6 on wifi. Change I4e3a69ea is
an alternate approach that does not require any framework
changes.

Bug: 5284168
Change-Id: Ib6e002aa23700adc71051cf6b76860545497dbf4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
61c0818f2425691e67921ee41ca80e62d2cb9004 26-Sep-2011 Jeff Sharkey <jsharkey@android.com> Merge "Watch network subtype, tethering teardown, empty."
511ecc8cf9f1b0660c4284f667cbc3807d2ebf82 23-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> am b849074c: Merge "Tell the resolver what protocols to use." into ics-factoryrom

* commit 'b849074cb58edc15b0764afdde0326c0b6d5b147':
Tell the resolver what protocols to use.
b849074cb58edc15b0764afdde0326c0b6d5b147 23-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Tell the resolver what protocols to use." into ics-factoryrom
d90c611a59d955d4a2e849d98070a6564df2fe4b 14-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Tell the resolver what protocols to use.

Stop guessing based on the connectivity of the default route and use the correct
v4/v6 proto for your pid.

bug:5284168
Change-Id: Ife82a8d8e54c0ace2bc9e8a624b11d29a4e285e2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
367d15ab1a33b6159447fa8542d4fa8ff148371c 22-Sep-2011 Jeff Sharkey <jsharkey@android.com> Watch network subtype, tethering teardown, empty.

Watch for changes to telephony network subtype, and update iface
mapping to persist stats under correct type. Update network stats
before removing tethering NAT rules.

Skip recording that would create empty historical buckets. Query UID
stats before iface stats to always skew positive when counters are
actively rolling forward.

Bug: 5360042, 5359860, 5335674, 5334448
Change-Id: I8aa37b568e8ffb70647218aa1aff5195d3e44d5a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
94097b44b86f15d2581af5f3df21b5afcab27d01 22-Sep-2011 Wink Saville <wink@google.com> am 904fb9d7: Merge "Notify people of empty proxies too." into ics-factoryrom

* commit '904fb9d79cc72879e4c6767c219ec78feda8e62b':
Notify people of empty proxies too.
0e09082559885528a37e48ab0a865ac6754d2fd5 22-Sep-2011 Robert Greenwalt <rgreenwalt@google.com> Notify people of empty proxies too.

We were telling people when the proxy changed, except if it was changed to null.
bug:5263946

Change-Id: I83416dac8fe992168a8aafd5676f9faee4e484d0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d30f73725bf6f7b668244a0e51245a85005c3e9f 21-Sep-2011 Wink Saville <wink@google.com> am 4aa8d943: Merge "Reduce connectivity logging" into ics-factoryrom

* commit '4aa8d943a970008915b703758743b107927d96fa':
Reduce connectivity logging
c9acde9aa6cf21598640aeebb7d908f1926a48dd 21-Sep-2011 Wink Saville <wink@google.com> Reduce connectivity logging

Change-Id: I5d45b8fbcd01e42df7f2b1cf02fb5b226128abb8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a10a3ad35afc0b2a97cd72afceebd8e3db9b7db4 21-Sep-2011 Irfan Sheriff <isheriff@google.com> Change hostname format to conform to specification

Underscore is not allowed as per RFC 952

Bug: 5348537
Change-Id: I618c137fd54ecf36cece3b9eba39c51cda3aeac3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
cdd02c5d76d3dd4e21b5bb922d7fcfb86efec85f 16-Sep-2011 Jeff Sharkey <jsharkey@android.com> Collect and persist tethering stats.

Use new "gettetherstats" netd command to retrieve statistics for
active tethering connections. Keep tethering poll events separate
from UID poll, even though they end up same historical structures.

Bug: 5244846
Change-Id: Ia0c5165f6712c12b51586f86c331a2aad4ad6afb
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
8e28b7d78232f6cf08739ca0d129cc7f9e650801 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Proactively disable data when over policy limit.

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

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

Track and dismiss notifications from now-stale policies.

Bug: 4587023, 5178147
Change-Id: Ibfcc9f73cda7c369209af701b46eddd3d1943f2d
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
4a56c437b6fd02dce06fa8565953964b01d21b5d 16-Aug-2011 repo sync <isheriff@google.com> Merge "P2p enhancements"
0c074e68437f1a705a8e73ac32e8e4dec370ec43 16-Aug-2011 Chia-chi Yeh <chiachi@android.com> VPN: reset legacy VPN when resetting IPv4 addresses.

Currently legacy VPN only works on IPv4, and it should always
turn down when the addresses are changed. It assumed that the
interface will be brought down and up, so the event can be
detected via interfaceStatusChanged(). However, the assumption
was incorrect and the event is actually driver-dependent. To
fix this issue, ConnectivityService now tells VPN that the
interface is down when resetting IPv4 addresses.

Change-Id: I76d15e56552d86635c5b274ca980be5da905a6fb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f125a093636ef22c81a9d90397407f9ef05a6e9a 15-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Flush central DNS cache when things change.

Flushes the cache for an interface when
either routes or DNS servers change.

Change-Id: I021305f781be669aaa12074dc1cc21511f49eac4
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
e6b2429cf719f30259a3eae61b94524b5cff4fab 10-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Remove default routes for non-default networks.

Recoding/port of a change that existed in GB but got dropped
in the shuffle.

bug:5036222
Change-Id: I87e819d255c0c46f3ec8fe0fe18d27ae9df1ae36
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2b30afdbad5e79c5775ac9756f3b986268d90f1f 05-Aug-2011 Wink Saville <wink@google.com> resolved conflicts for merge of 7bb2d942 to master

Change-Id: I026b01805c81d8b26d22e4a195e5e38655a34d32
7bb2d942498dea702f2020d7b81f0e13c2623500 05-Aug-2011 Wink Saville <wink@google.com> am 090df1dc: Merge "Delay connectivity change notifications." into honeycomb-LTE

* commit '090df1dc4188e5b9ef10a0aca5081a196085ff56':
Delay connectivity change notifications.
628b08530a50bddbe3d65088a8b621c0950e0c19 05-Aug-2011 Wink Saville <wink@google.com> Delay connectivity change notifications.

Because changes to the route tables take time to propagate
we add a delay when sending out change notifications. This allows
applications, such as GTalk, to create sockets without encountering
a 3 minute timeout.

Bug: 5008488
Change-Id: I0eefb03a5d6358a58ea6ae5b4f697ff302b5511d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a841e524013c4bff360f2280cb5d2fbb1895d043 04-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Expose quota status for active network."
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/services/java/com/android/server/ConnectivityService.java
58d4c595818de0d1b7edf382fee6ed1a4bd70e7f 03-Aug-2011 Robert Greenwalt <rgreenwalt@google.com> Reduce ConnectivityService logging

bug:5106520
Change-Id: I4a7a5cac51c09e9e2275b30b7b2c053f94b9088d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8935696a19822283212591917f04e4b91b5b9219 02-Aug-2011 repo sync <isheriff@google.com> Fix networktype on per process DNS setting

This potentially has no impact on mobile due to DNS settings being the same. Seperate this change out of the p2p change

Change-Id: I70fff9b1e13015956793b19732785037adb0af24
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f9665221aaa229dc8a7cac6fbd1d9ea165c42068 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am a128f5f8: am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit 'a128f5f8c952d7f519f64882792e832a4e75e2c8':
Fix NPE when going from proxy to no proxy.
a128f5f8c952d7f519f64882792e832a4e75e2c8 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 1a230885: Merge "Fix NPE when going from proxy to no proxy." into honeycomb-LTE

* commit '1a230885b356256e91b3bf006ec72213ba6f8f76':
Fix NPE when going from proxy to no proxy.
fde1eb7cf88e488d619d3168f83fb2e740d39296 29-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Fix NPE when going from proxy to no proxy.

bug:5081431
Change-Id: I68a8cca94e4612bd9ee2faf1123e0b63dc25b833
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c59c6da9ae14097c77eee69285c6eacc8130936c 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of af75fdb1 to master

Change-Id: Ib7f3521b0af6df9346cf940d69f2988b1c87e129
af75fdb16566c3011284afaa7d12bcf6126dd4f3 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: Ic839eb7bd8081b94802dbbf9140b9d1fa0cf7df3
22d93a0d71d965970f581cd9aa1cbf2efbb5998f 27-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 41394a36 to honeycomb-plus-aosp

Change-Id: If4dc99c558dc45c9a7ff8d3ea5be69578b4ee793
41394a361020e9f58524f23d6831bb8e63063856 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Use dns proxy a bit." into honeycomb-LTE
572b7048a6ed6cf6c5f6bc6c9d542dc377d601ff 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Use dns proxy a bit.

Sets the current default interface and sets the dns per interface.
port of changes 23041 and 22098 from opensource.
bug:5060618

Change-Id: I80e7ef88727eeb8ff2b48059f69b270e5a6b5c16
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a10b7fd2239668a87be690a57ef7b3bc39b6bfd3 26-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of a7f68230 to master

Change-Id: I9e8faaa94f9b251a9c003dc6b9a3e2a97c4564a9
a7f68230be1ac025dbeada77e2ff3f16bb2ac04c 25-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 26ecc31f to honeycomb-plus-aosp

Change-Id: I23f42e247884f0c9d5ae4d3466213592dd3433d9
5db7af968a5b57ad9f8e5a61534cafe46c344b85 24-Jul-2011 Mike Lockwood <lockwood@android.com> Merge "Fix USB tethering"
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/services/java/com/android/server/ConnectivityService.java
6dcf2d77767f73608caa316db534a1df64a2b272 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 19933916: am ad55d351: Add better routes for secondary DNS

* commit '199339169476d0d6d0ecaa8ed3bff3a9e9a0f430':
Add better routes for secondary DNS
199339169476d0d6d0ecaa8ed3bff3a9e9a0f430 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am ad55d351: Add better routes for secondary DNS

* commit 'ad55d35114237071133eb28ded93a014185d4e35':
Add better routes for secondary DNS
ad55d35114237071133eb28ded93a014185d4e35 22-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Add better routes for secondary DNS

We'd been doing no-gateway hostroutes for dns servers on secondary nets, but on
some devices (multi-homed stingray) this is a problem. Add gateway-ed hostroutes
instead so the BP can do it's nonstandard "magical" demultiplexing.

bug:5011392
Change-Id: Ia48f69c8ddf2a37cfb8f014f078f96bf601d2ddb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1efe4d5cfd3913b3c4efa7aee4bf9fea262c0ad2 20-May-2011 Robert Greenwalt <rgreenwalt@google.com> First pass tying into per-interface DNS cache

Change-Id: Iacce225d392786e37fa2dbf9647045fca0b70e64
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b503b85491cf165c8d098e2ae08a7e9f4db0bd03 20-Jul-2011 Chia-chi Yeh <chiachi@android.com> Merge "ConnectivityService: Implement VPN callbacks to update DNS servers."
47d4caf41b052ab88f747ccc789754be5f44f8af 20-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start default connections on startup."
44bb251be76894967ea57a3c904377e32325bc3e 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> ConnectivityService: Implement VPN callbacks to update DNS servers.

Change-Id: I7b5063f0344a2a5c2754600386982e870adc1161
/frameworks/base/services/java/com/android/server/ConnectivityService.java
782ed09f2f37123081541bee3f809ef92959e316 19-Jul-2011 Wink Saville <wink@google.com> am 57aebc61: am f679d4cb: Merge "Fix FeatureUser leak in ConnectivityService" into honeycomb-LTE

* commit '57aebc6109f2059ba335a02bf95928a494cff4ba':
Fix FeatureUser leak in ConnectivityService
57aebc6109f2059ba335a02bf95928a494cff4ba 19-Jul-2011 Wink Saville <wink@google.com> am f679d4cb: Merge "Fix FeatureUser leak in ConnectivityService" into honeycomb-LTE

* commit 'f679d4cb92b6d1c193a154abb5ae8fb3a786fc43':
Fix FeatureUser leak in ConnectivityService
3bed4c9f50b3601e2ceec249e2ee83f39192f5db 19-Jul-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Fix FeatureUser leak in ConnectivityService

In case infinite restoral timer is used for a network feature,
FeatureUser could be keep added but never released if a user
is keep calling "startUsingNetworkFeature".

This patch will add duplication check when adding a FeatureUser
into the list in case infinite restoral timer is used.

Bug: 5043513
Change-Id: I47e7076e217f201454fae33ce596ecdc63cf7908
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c96e6ccec9c41dee75f54e0db418df345e2a9bd9 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Start default connections on startup.

On devices with mobile data we were kind of doing this in Telephony.
Devices without could use this.

bug:5030831
Change-Id: I9940561e88e43917bc8e638f5c3b15fced3821ae
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ef75edaf0fd226bba37fe304d3395c8e5a59ccf7 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am e1635197: am 476f5525: Small fix to 5008973 fix.

* commit 'e1635197bb6e6471b333d194855bb399da419957':
Small fix to 5008973 fix.
d9212d3088d2ecb794933c2f96392ea160b857eb 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 8550f3b8 to master

Change-Id: If2881b8b7faea5139af83a37cba04ccac5904f81
e1635197bb6e6471b333d194855bb399da419957 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> am 476f5525: Small fix to 5008973 fix.

* commit '476f55253adc670d7290ad8c90b5adc9e4f58d3b':
Small fix to 5008973 fix.
8550f3b86aabe04e149866839bde78b335cc1104 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 0a46db5d to honeycomb-plus-aosp

Change-Id: I0f1bea54d999ab3ef10400ee67bd4d3b2a5d1783
476f55253adc670d7290ad8c90b5adc9e4f58d3b 15-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Small fix to 5008973 fix.

Removed redundent log.
Cleaned some logic.
Will try to modify route even if recursive operation had an error.

bug: 5008973
Change-Id: Ie2ca51cc39cfac027a8a2e2eaddcb7d6c378c4da
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0a46db5d88461d9a6c85bb2e95982ac4c511d57e 14-Jul-2011 Robert Greenwalt <rgreenwalt@google.com> Apply the dns and route diff which we get a change

bug:5008973
Change-Id: Ib99e43d9d852452cc1f2aea6bef07bbd194f28cc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5779c9c2d9f1f7a28279fe907aebbb43981286fd 15-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: close the socket in protectVpn() to avoid leaking descriptors.

Change-Id: Idda0c2ea1770abc490566e894711bcb08f60b354
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c9822c5aeae833bb4a586c7af8a7b2641e8c17ae 14-Jul-2011 Wink Saville <wink@google.com> Fix build.

Changes in ConnectivityService in hc-LTE when merged with changes
happening in Master caused the build to break.

Change-Id: I92a0b782ae58e9789b1e950c94ef966234fa94af
/frameworks/base/services/java/com/android/server/ConnectivityService.java
76326a9d7da1e1726142be4e9c6b770aae7a90ca 14-Jul-2011 Wink Saville <wink@google.com> am 3810361e: am 6d1d16c3: Merge "Remove STOPSHIP but allow seamless Handoff when possible." into honeycomb-LTE

* commit '3810361e4a3e93d3c8a10aaeec54f65dfcc2d03d':
Remove STOPSHIP but allow seamless Handoff when possible.
3810361e4a3e93d3c8a10aaeec54f65dfcc2d03d 13-Jul-2011 Wink Saville <wink@google.com> am 6d1d16c3: Merge "Remove STOPSHIP but allow seamless Handoff when possible." into honeycomb-LTE

* commit '6d1d16c324a681dd966d47497a71a02eac512234':
Remove STOPSHIP but allow seamless Handoff when possible.
e822225f7a01ef088ff01f7613f953d5d89945ed 13-Jul-2011 Wink Saville <wink@google.com> Remove STOPSHIP but allow seamless Handoff when possible.

If an address is removed we must reset the connection but
only for the connections associated with that address. For
now we're doing the "all" addresses for a type (IPv6 or IPv4)
in the future we only need to reset a particular addresses
connections.


Bug: 4981919
Change-Id: I97f8071a3ed6f827ed22f32216ca5011bfe6c1d9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ae367419df6e5f55b081fa793b535cc84b55d6ed 08-Jul-2011 Wink Saville <wink@google.com> resolved conflicts for merge of e4a56a32 to master

Change-Id: I50f8fe61303efa78f5d450ddda1483e0ecb81d12
e4a56a32ac243dad5e7fa33c5de4777d9a4b8162 08-Jul-2011 Wink Saville <wink@google.com> am 8171e6f6: Use resetConnections with resetMask.

* commit '8171e6f690cca1bad354e7e352823d79d420daf3':
Use resetConnections with resetMask.
8171e6f690cca1bad354e7e352823d79d420daf3 08-Jul-2011 Wink Saville <wink@google.com> Use resetConnections with resetMask.

Bug: 4981919
Change-Id: I5dec2da0756d5083bc81494fd583672704537694
/frameworks/base/services/java/com/android/server/ConnectivityService.java
2e46764a707bd14cad22bc179669eeecb2d7c647 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: implement status report for legacy VPN.

Change-Id: I81c28dafd9588572df76cbc303b0d6a0f41f9bc6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
100155a310fbb5028fc48e359bdfb7c4d3531843 04-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: convert prepare() into a form which helps solve race conditions.

When someone tries to revoke packageA, it is possible that packageA is
already revoked by packageB. In this case packageB should not be revoked,
and the new prepare() can help solve this problem.

Change-Id: Iee056a191dd99467b8ad1b5379a17b02d404bad1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
44e27b5c74b5f441973561a4f945cb58e0cc45a4 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: remove the old VpnService.

Now VPN is (kind of) integrated into ConnectivityService.

Change-Id: If98e456e779f8e97f562d99c57d909b1f5d9db55
/frameworks/base/services/java/com/android/server/ConnectivityService.java
77fd485c2ff780d1e6ef0ba1e3e811370ecbc528 03-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: export legacy VPN in IConnectivityManager.

Change-Id: I016fe056ceab39ffc36aa235d14b30a9f094a2e1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8909b10175303bd5e2ca82b7ba12cd0017050ef3 01-Jul-2011 Chia-chi Yeh <chiachi@android.com> VPN: Use List<String> instead for dnsServers and searchDomains.

Change-Id: I5d72c182ad47f59121a04b68ec6c2d164e2d00a8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
bf731e7f905b0de85887d076867a499af640b5d1 27-Jun-2011 Wink Saville <wink@google.com> am 7eff4bb3: am f49e4d3f: Merge "Temporary re-enabling iface name change handling on HO" into honeycomb-LTE

* commit '7eff4bb3f9c0cf0335dd1b2769bcb352b137dbaa':
Temporary re-enabling iface name change handling on HO
dde052f4ba57d74af25a513853bacc035368240e 25-Jun-2011 Irfan Sheriff <isheriff@google.com> Merge "WifiWatchdogService - disable bad connections"
86994c1fc16f87658c2fd88537a7374777ecc67d 25-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 40717996 to master

Change-Id: Ie5c0f1f20c313d6c568b3b06f778f75223914ada
bc7dfb58bffea133ccf6d94470a26f8d193f4890 07-Jun-2011 Isaac Levy <ilevy@google.com> WifiWatchdogService - disable bad connections

Complete rewrite of WifiWatchdogService.java. Checking for connectivity and managing wifi upon failure detection.

Change-Id: Ifcb8b5d7e0112cbc2f2282d76fdc93ea15527a44
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7eff4bb3f9c0cf0335dd1b2769bcb352b137dbaa 24-Jun-2011 Wink Saville <wink@google.com> am f49e4d3f: Merge "Temporary re-enabling iface name change handling on HO" into honeycomb-LTE

* commit 'f49e4d3f182071081537dba3387db20cae27c427':
Temporary re-enabling iface name change handling on HO
1ccb10e25d5af8ef1d997b0ed2291dbbcaacf44e 23-Jun-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Temporary re-enabling iface name change handling on HO

Temporary accept interface name change in ConnectivityService.
See bug/4455071.

Bug: 4903011
Change-Id: I7f06c2ca83535b981f047cb671e08550aed7df1a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0e0a7597343b4f030be17788006006c93c85759c 23-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 1d6ffd73: Merge "Restrict access to protected networks." into honeycomb-LTE

* commit '1d6ffd7339c3dfa53de19e27ca09e57233cc25ef':
Restrict access to protected networks.
50393202f3ae0ab9114075ecc5b4c92faaf96251 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Restrict access to protected networks.

Some networks should only be brought up and controlled by system apps.

bug: 4585677
Change-Id: I61b1ee3dcfca0ee54387cecffe5198a0b010d98b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5ff886e5319c519a6b644a999680ea651e208981 22-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 7a652bc8 to master

Change-Id: Id0a41cae36f5a3b30f2fe8a202c934153b9cd03f
7a652bc86a5c7a2b201a48d5c1cfcc9af5d6624f 20-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of b427f0e6 to honeycomb-plus-aosp

Change-Id: I8e287fd814b4a3ca72014ea060a1de043d1b4713
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/services/java/com/android/server/ConnectivityService.java
fdfef57f498e3021a34342538aef9f1c7ccbae78 17-Jun-2011 Jeff Sharkey <jsharkey@android.com> Notify policy listeners about metered ifaces.

Currently, kernel definition of metered networks is applied at the
interface level. This change maintain list of those metered ifaces
and notifies policy listeners, like ConnectivityService. (This gives
us a consistent picture of when a network would be blocked.)

Bug: 4601393
Change-Id: I277d5ca96ab967a1c1c3f1da8f9587557cd6d74c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ad4c9ed7de1c3c3b7781db9c46503263c5bf8464 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "DownloadManager flags for network policy."
1a303953589fdddf21d88b8fa660136f5b060d0d 16-Jun-2011 Jeff Sharkey <jsharkey@android.com> DownloadManager flags for network policy.

Handful of DownloadManager flags to record when a download was paused
because of NetworkPolicyManager rules.

Change-Id: I99fc47f529cb6c8a42dbeca049e0cd0f1556eac4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
4f1f7d3158b1576b72eabbb05f8ab8cfb25cd403 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 241b65ac: am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '241b65aca93e263f0869c5bec4ad1dbda0dec6db':
Reset connections AFTER we take down the network.
241b65aca93e263f0869c5bec4ad1dbda0dec6db 16-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> am 5f350512: Merge "Reset connections AFTER we take down the network." into honeycomb-LTE

* commit '5f3505121b761dbd3bba62d1603fbab49de139b9':
Reset connections AFTER we take down the network.
ec896c6a863b3cc0a55538a19879e2112b5b8658 15-Jun-2011 Robert Greenwalt <rgreenwalt@google.com> Reset connections AFTER we take down the network.

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

bug: 3408025
Change-Id: I5386ff313c759b3f687bc38731454ab43dbe76b8
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
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/services/java/com/android/server/ConnectivityService.java
5bc7c93ca7a40827120f232deca996630cd58a39 08-Jun-2011 Chia-chi Yeh <chiachi@android.com> Merge "Do not register the callbacks in the constructor."
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/services/java/com/android/server/ConnectivityService.java
da8bb74b9d9ffcb095815db800d0816c411f1fba 28-May-2011 Mike Lockwood <lockwood@android.com> Move stringToFile utility from ConnectivityService to FileUtils

Change-Id: I59a2dc649d59677f6b5e7ade252587c7c151ec06
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
008ff39b7cb1a1f80f29595459fd82a55ce52b83 24-May-2011 Chia-chi Yeh <chiachi@android.com> Do not register the callbacks in the constructor.

Change-Id: Ic7509c35cfb17b022a2af3cc14170942d6510e2d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8508485871dd22a998db98ea97403126918c5fa8 22-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 5a6bec53: resolved conflicts for merge of dec3dda8 to honeycomb-plus-aosp

* commit '5a6bec53e224b2db9ecbc6920faab08f4a962256':
Simplfy getActive* calls in ConnectivityService
5a6bec53e224b2db9ecbc6920faab08f4a962256 21-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of dec3dda8 to honeycomb-plus-aosp

Change-Id: If14c7fc51c4549524c2f39797a902093582bae6d
599115894f6f960a879d2e3036c547bbf4136020 20-May-2011 Robert Greenwalt <rgreenwalt@google.com> Simplfy getActive* calls in ConnectivityService

One had been simplified on GB, but somehow it didn't make it here.
bug: 4463770

Change-Id: Ica51e836b1a7a489526a223168910b8e06c99c2b
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5c3816f2ff3d40136da1e40eec792d8faf0e75dd 19-May-2011 Jean-Baptiste Queru <jbq@google.com> Merge c41aefe1

Change-Id: I70fc4382f832d1a2bded8a5ee7d9b96fac77879b
8904c3d814b5959b17a0523177f4142db6a18f1e 19-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am b22a9fd9: am 01758e81: Linkproperties update via unsol data call state change.

* commit 'b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe':
Linkproperties update via unsol data call state change.
c41aefe1d4c862a9fbaf717ffb886bbd702c94f2 19-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 59b1a4ed: Switch to use netd to add/remove routes.

* commit '59b1a4ede7032c1b4d897e13dd4ede09b5e14743':
Switch to use netd to add/remove routes.
59b1a4ede7032c1b4d897e13dd4ede09b5e14743 11-May-2011 Robert Greenwalt <rgreenwalt@google.com> Switch to use netd to add/remove routes.

Also adds support for v6 routes and for removing single routes.

Change-Id: I1c4f08c7938371090944d8d6f603e1e0d6d70c01
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b22a9fd9bb32133cbc7dc4fc7752dbf68e52dffe 18-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> am 01758e81: Linkproperties update via unsol data call state change.

* commit '01758e81b3ad89934581885bb2fc7006510ec639':
Linkproperties update via unsol data call state change.
01758e81b3ad89934581885bb2fc7006510ec639 01-May-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Linkproperties update via unsol data call state change.

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

Change-Id: I05e29f66ac3db8ba4274d3662642607742ba1d12
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c9338305bf4d5cfb9ec2a1d64144d8cef32a00a5 12-May-2011 Chia-chi Yeh <chiachi@android.com> Extract NetworkManagementService out from Tethering to ConnectivityService.

and also some minor refactoring.

Change-Id: I0e74f30ef1b035d9ed37571c512fedc15d05db77
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fc82cb170cfaf419f2a8da3baff8296d3ea4e241 11-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 441bc9a6: am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTE

* commit '441bc9a6f41ca1678a6c965bec7e2f18227ac100':
Fix the adding of host routes.
441bc9a6f41ca1678a6c965bec7e2f18227ac100 10-May-2011 Robert Greenwalt <rgreenwalt@google.com> am e6848fac: Merge "Fix the adding of host routes." into honeycomb-LTE

* commit 'e6848faceff58f84f671dbc73be08ef7890fea09':
Fix the adding of host routes.
f43396caaaae8f336bcf6fe9128a89dc7a7b0a5c 07-May-2011 Robert Greenwalt <rgreenwalt@google.com> Fix the adding of host routes.

We used to just add

Change-Id: I991e4cc976cc2932887dd3242fd50e013d521b0a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b6f8bff10963893435afda7b426c7a5b1ac1cc1f 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> am 9c7e6fc5: am f13eb830: Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE

* commit '9c7e6fc50614cc1739d4bfbf6187893c27b01a67':
Add auto-restore timeout for secondary networks.
9c7e6fc50614cc1739d4bfbf6187893c27b01a67 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> am f13eb830: Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE

* commit 'f13eb8301f4704179938e374129f2943c9c38d5f':
Add auto-restore timeout for secondary networks.
f13eb8301f4704179938e374129f2943c9c38d5f 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Add auto-restore timeout for secondary networks." into honeycomb-LTE
f2102f7a1a26d399cc60c516ed7d90ef660de055 04-May-2011 Robert Greenwalt <rgreenwalt@google.com> Add auto-restore timeout for secondary networks.

Settable per network so you can have not timeout for some and some for others.
If you set the old NETWORK_RESTORE_DELAY_PROP_NAME system property
(android.telephony.apn-restore) it will override this value.

Change-Id: Icca706fdc74245dce679209116660e5dc4b05d23
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a8e0dfae06298b375637813a3263a62749dd0b82 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of db46fa25 to master

Change-Id: I8df9d5d07588fbd70e417dae567be26f645b74b6
db46fa25be0a3e8040b118f688b69dd526aed86d 02-May-2011 Robert Greenwalt <rgreenwalt@google.com> am a47c4019: Merge "Add RouteInfo objects for tracking routes." into honeycomb-LTE

* commit 'a47c40193fcbe9ca07facea78b2828afdae5e025':
Add RouteInfo objects for tracking routes.
aa70f101e08098ed9cb190abe2d7f952561026b8 28-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Add RouteInfo objects for tracking routes.

Used to have list of gateways for default routes, but general static routes
should be supported.

Change-Id: I01730142c6139f2b833b9d48f5381d2d320b69f6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
316594715d31bb95b5efa08bfc80f287833b3a37 12-Apr-2011 Benoit Goby <benoit@android.com> am 2869d171: resolved conflicts for merge of 08c39c6a to honeycomb-LTE

* commit '2869d1715d815ef2b357bf182d384515cdf6f9ab':
Add support for USB Ethernet adapters
2869d1715d815ef2b357bf182d384515cdf6f9ab 12-Apr-2011 Benoit Goby <benoit@android.com> resolved conflicts for merge of 08c39c6a to honeycomb-LTE

Change-Id: I79f8ac1dc8ff9f5d0559d37043b850cd26246b92
08c39c6a11f728e113811a6a85c109cfc80ce28e 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: I6ae34a32d0e1b6f21c484b8639c3e7ce086e568d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
097786507b07ff7137b305b5cf71b5ecbc6b029e 07-Apr-2011 Wink Saville <wink@google.com> am de1b950d: am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the NetConfig vars." into honeycomb-LTE

* commit 'de1b950d2b07737e3d284ed2ada361737d8a5a1a':
ConnectivityService needs to use the new names for the NetConfig vars.
de1b950d2b07737e3d284ed2ada361737d8a5a1a 07-Apr-2011 Wink Saville <wink@google.com> am 9e7a5a1e: Merge "ConnectivityService needs to use the new names for the NetConfig vars." into honeycomb-LTE

* commit '9e7a5a1e567a0e696d9a7b68fffd00b7408e6ac1':
ConnectivityService needs to use the new names for the NetConfig vars.
975c8488a3667efc24a1ad5da15d571d9615020f 07-Apr-2011 Wink Saville <wink@google.com> ConnectivityService needs to use the new names for the NetConfig vars.

Change-Id: I809a624057462871cd1849051286c2bffd5099e9
/frameworks/base/services/java/com/android/server/ConnectivityService.java
80f7c594fae3f1b19e3ea78938de450418fe183c 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am f4a29403: resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

* commit 'f4a29403ae5b6d3e8e754a025d33f0c33adecb21':
Add external dependency API.
f4a29403ae5b6d3e8e754a025d33f0c33adecb21 07-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 70c3d1c2 to honeycomb-plus-aosp

Change-Id: I0962138f6ecb1ed54fda25524d8850b086f13c4f
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/services/java/com/android/server/ConnectivityService.java
b6c5d824c0eb34c218d18982c51b69c2df198220 05-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am e716a551: resolved conflicts for merge of ab2194aa to honeycomb-plus-aosp

* commit 'e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96':
Only leave one default network up at a time.
e716a5515bfb9d9f1f8a5b87fee8b75bef3a1a96 05-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ab2194aa to honeycomb-plus-aosp

Change-Id: I99a29f920336b00b26b9aadafd2bd835049f48cf
d7a8e8453d8302ac9820af49b4b112468efdf36d 04-Apr-2011 Simon Wilson <simonwilson@google.com> am ec944728: Merge "DO NOT MERGE Disable WiMAX when "Data Enabled" is off" into gingerbread

* commit 'ec94472835787b66e1799110411d5077d0ef37cd':
DO NOT MERGE Disable WiMAX when "Data Enabled" is off
ab2194aadeb35a1f2eae6c4d3abd476b33f167f4 04-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> am 27725e8c: Only leave one default network up at a time.

* commit '27725e8cd1e2eb3b88186ae8d43e437f130b1f84':
Only leave one default network up at a time.
13ec406381335b7b73ac989c296baac31a64df81 01-Apr-2011 Robert Greenwalt <rgreenwalt@google.com> Fix a bad merge.

Re-add change 103769 (Change-Id: I9e7c94718a5b1f08840b219b304ba3904259a65f) from gingerbread
after the bad merge was reverted by master change 104487
(Change-Id: I8fad7ee11f4b26630f3cc4b31cc9cafbe66b3bf4).

bug:4157610
Change-Id: I96a75d71220cc7886a5b186b415d8dacf6951ca6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b1c6b0f1e2c9d80369ff62beae1305b837d8faca 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix the build.

Fix a bad merge.

Change-Id: I45d418a8868c9cab1b142ef997ad1d3550d11eee
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8fad7ee11f4b26630f3cc4b31cc9cafbe66b3bf4 31-Mar-2011 Michael Jurka <mikejurka@google.com> Fix the build

Revert "am 047f9d12: Merge "resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp" into honeycomb-plus-aosp"

This reverts commit 352f2c33d3b8a0b73dcdab98c7a77f698578b048, reversing
changes made to ce8a55db6feae11c1db45a868a7d8a0e7d105471.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
352f2c33d3b8a0b73dcdab98c7a77f698578b048 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 047f9d12: Merge "resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp" into honeycomb-plus-aosp

* commit '047f9d12976d90d0931a64a256bb4843d77f5e20':
Fix some alt-network issues.
6244f0fc168291b428ba2595e0a3a0d5d4be2bd4 31-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ce6766ea to honeycomb-plus-aosp

Change-Id: I4c3c382cc5cd89f8a4437cf17836fb42f9417ee1
8a7fc0af618d08dca5005881ae8d5b1994df34e0 30-Mar-2011 TK MUN <tk.mun@samsung.com> DO NOT MERGE Disable WiMAX when "Data Enabled" is off

When user uncheck "Data Enabled" check box, WiMAX goes
into "disconnected" state.

Change-Id: I3b9bdbc16cc4ddbf7a1aac0c984cad8994c4e9f2
Signed-off-by: TK MUN <tk.mun@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ce6766ea51a943b9f8908cb18d0d9762497b478c 30-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 568845a7: Merge "Fix some alt-network issues." into gingerbread

* commit '568845a766cddc4e4c222b4d9de064f8a48da990':
Fix some alt-network issues.
27725e8cd1e2eb3b88186ae8d43e437f130b1f84 29-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Only leave one default network up at a time.

If original refuses to tear down, tear down new one. It's better
to have none (which will try to launch them all again) than two.

Really people shouldn't refuse the teardown request.

bug:4183397
Change-Id: I54ea1bf0d2cd2ef16fcf2eafc69895ad2fe33ffd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7cf5b419da5a49ccead2af51c7b6587ce1195958 25-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix some alt-network issues.

Two issues.
1) remove default routes for non-default networks.
2) don't report mobile is the active default network just because
it is active.

bug:4157610
Change-Id: I9e7c94718a5b1f08840b219b304ba3904259a65f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15cb32ed9d189526d5a98add386b28cea6bc46b7 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am 5635dc93: am 0b6d0445: am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit '5635dc9313dc6ca3ea739e4ca36c42a2c58537e9':
Fix adding of default route.
0b6d044567b9c3004eb7ed826fd593019cd24352 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am ac70fb8b: Merge "Fix adding of default route." into honeycomb-mr1

* commit 'ac70fb8be6ea3a6b49d0a8a26e99c25f92013516':
Fix adding of default route.
edcb4f9d560a85970030e1df70426e8d1e2267d2 23-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Fix adding of default route.

If you deleted the host routes (started a secondary network like mms, supl
of hipri and then ended it) you would lose the host route to the default
gateway. Then if you needed to re-add the default gateway route (lost
the connection and removed the default route and then re-established)
you couldn't - can't add a gateway that isn't routable apparently.

This happens if you are in a video chat and lose your connection without
losing the interface (PPP keeps it up for a bit).

Fixed it by having addDefaultRoute first add a hsot route for the gateway
before adding the default route. This allows the default add to succeed.

bug:3490353
Change-Id: I415e7319832e6456f8757b14c4f79f098a08839b
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
2e7415564ad1d77537f9f3d5151ed480fcfc6ef9 11-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> am b5c51d5f: Merge "DO NOT MERGE Backport of I1f55df8a from master." into gingerbread

* commit 'b5c51d5fa88c56ebbfb56af89beb077aa4f1f2f8':
DO NOT MERGE Backport of I1f55df8a from master.
6b09916eb2443ff8016b2d05dc7b2ef42a02a7e2 11-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE Backport of I1f55df8a from master.

Fixes false reporting of NO_CONNECTION.
bug:4057115

Change-Id: Ie11e81180276ac3aa486607ec3a8eb1088b2ece6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c01fd043a92462f12210d45a92d751b49e0e1f62 10-Mar-2011 TK MUN <tk.mun@samsung.com> am 4bdab175: DO NOT MERGE WiMAX support

* commit '4bdab1751f0db3b2f03e8c58ef5c11a543dfa3c7':
DO NOT MERGE WiMAX support
4bdab1751f0db3b2f03e8c58ef5c11a543dfa3c7 23-Feb-2011 TK MUN <tk.mun@samsung.com> DO NOT MERGE WiMAX support

- In Connectivity service, start WiMAX service
- 4G icon display in StatusBarPolicy
- Add DHCP renew
- Add radio for WiMAX

Change-Id: Iffff012b270d80e84ec8fbd4486921a8adb847dd
Signed-off-by: TK MUN <tk.mun@samsung.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1997069436f0d47583a0b700c12ed63132cf3312 22-Dec-2010 Benoit Goby <benoit@android.com> Add support for USB Ethernet adapters

Change-Id: Ie75cbcdb1b0c8965b59b89675a05175a1e9ebdd6
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
7e48e76cab10377367b925790cf3a840651009fa 02-Mar-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Start using NetworkUtils.numericToInetAddress."
e590373ea71251cfffc8f22f011e2e6335dce716 23-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Start using NetworkUtils.numericToInetAddress.

Generates InetAddresses without risking an accidental dns lookup. For use with supposedly
numeric-only ip address strings.

Change-Id: I694f3976ce1c6382854706f6557ea88a289add3a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7532d9972cd59025fa76691f8309fd0857bdcb20 26-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fixing the write of BackgroundData setting."
db4afae70aa404f20c271965a8d7c1e2d64cb818 25-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Fixing the write of BackgroundData setting.

I outsmarted myself trying to minimize writes and caused no writes to occur.

bug:3485934
Change-Id: I292e6837d29903a21abb6e001d25d96a4cdc18ec
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
de27b519588ed46c0ba601a489c01d26ec31757d 16-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> am 3259d885: Merge "DO NOT MERGE - backport of l92a02b31 from master" into gingerbread

* commit '3259d8853760a72b811757e1711119d041962a1c':
DO NOT MERGE - backport of l92a02b31 from master
7e62fd1436c0db6398528e654563896364d6000a 12-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> DO NOT MERGE - backport of l92a02b31 from master

Fix handling of multiple possible default networks.

bug:3328196
Change-Id: I994f1621ff82de454192945a9cae961e1710d537
/frameworks/base/services/java/com/android/server/ConnectivityService.java
992564e481af13cbcb058ee801f9254a520c54a1 09-Feb-2011 Robert Greenwalt <rgreenwalt@google.com> Update LinkProperties treatment of gateways

A link can have multiple gateways (think ipv4/ipv6 for a trivial example).
.

bug:3438810
Change-Id: I28c90a6947cd50b82e5ca9a0113148f98b3f4dd8
/frameworks/base/services/java/com/android/server/ConnectivityService.java
de5d85d10ebe5cdf5723b3cec41a1dff80208be0 27-Jan-2011 Wink Saville <wink@google.com> am 93fbb0ad: am 13a8f2a5: Merge "Comment out the isAvailable optimization." into honeycomb

* commit '93fbb0ad960a658633dfa2bc7be9584e4361ab85':
Comment out the isAvailable optimization.
9f7a0b2b0270b1ad59d2103839b1d4b02f910a90 27-Jan-2011 Wink Saville <wink@google.com> Comment out the isAvailable optimization.

As the comment says this causes problems if the connection
is handling errors. This removes the optimization for now.

Bug: 3386481
Change-Id: I6cb00abe8b1949e9b79b4906a6bdab5872b5054d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3ed8dcfc4273e07dda699ba35b42c5c7c0bd906f 20-Jan-2011 Hung-ying Tyan <tyanh@google.com> am 9e0357b9: am 71196f0c: Merge "Make VpnService synchronous API." into honeycomb

* commit '9e0357b96bd5c84e39c3084625d58b21f9bad74c':
Make VpnService synchronous API.
6b818de29a5c273aad99eb3f5456f88169c911f4 19-Jan-2011 Hung-ying Tyan <tyanh@google.com> Make VpnService synchronous API.

This eases VpnSettings on dealing with multiple-activity-instance problem
(i.e., SettingsActivity and VpnSettingsActivity).

+ Most of the code is moved from the VpnServices package to vpn/java/.
+ VpnManager and VpnServiceBinder are revised to provide synchronous API.
+ Add a new method isIdle() to IVpnService.aidl.

Related bug: 3293236 (need to deal with multiple-activity-instance problem)

Change-Id: I03afa3b3af85d7b4ef800683cd075c356a9266c4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
255362b604cb176ea11d69e074154db8da01429c 13-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 4b43f944: am 495056ab: Merge "Turn off DUN connection after tethering." into honeycomb

* commit '4b43f94499b6d0c4a34961d48b97d5e48a039f65':
Turn off DUN connection after tethering.
19b9ab46a9faee6031aaf6c78748401943fea117 10-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Turn off DUN connection after tethering.

Use matching feature type when turning tethering off or the request is ignored.

Also, turn on DUN apn right away so that we don't fail aggressive test cases.

Also don't report connections for enabled apn's that we're no longer connected to.

bug:3332880
bug:3338033
Change-Id: I7db2dfd4879f03465bc9f6d39488c078570dcaf3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8403cbf100f28567bcfd619fcaef3c23cb4afc9a 12-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 1ea7e5df: am a78e9f05: Merge "Fix any_connection reporting." into honeycomb

* commit '1ea7e5df91f023d03fa7c87c534e6024795abaaa':
Fix any_connection reporting.
f21ef7db777e2c79b2f5acac55dcc310b14eb989 11-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix any_connection reporting.

A recent change caused us to think there was no other connection available
when transitioning from 3g to wifi.

bug:3335074
Change-Id: I1f55df8a0eb5b27131572b111fbaac8f1ebbc0d3
/frameworks/base/services/java/com/android/server/ConnectivityService.java
31ff309f2fc8036b1b8d8470649e535f10b4c2a5 07-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> am 89c8f755: Merge "Fix handling of multiple possible default networks" into honeycomb

* commit '89c8f7554bbec5d62ebeddddc2ef2460265a80c5':
Fix handling of multiple possible default networks
bff9018b74e68fe9bceb87ee2b7c2549f04e13c2 07-Jan-2011 Robert Greenwalt <rgreenwalt@google.com> Fix handling of multiple possible default networks

Old code assumed only 2 choices but now we have more.

bug:3328196
Change-Id: I92a02b31fae6c53f73b3684581230fad5cb1b82a
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b35d67a8a773f2d3127a119b424a86b3e56fe563 06-Jan-2011 Stan Chesnutt <chesnutt@google.com> connectivity-change events can happen before boot completes (similar to:
https://android-git.corp.google.com/g/#change,87425 )


Change-Id: Ibc0f12defaa5d90894657ce63fb352578eca7060
/frameworks/base/services/java/com/android/server/ConnectivityService.java
3d1db8672aa1d285d387c8aef5a8bfac72997d18 06-Jan-2011 Stan Chesnutt <chesnutt@google.com> Allow bumpDns() to execute correctly before boot has completed

Change-Id: I5c2cf023e555f49d7e29592f9d1439b3ac367e3d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e32e812b11520b244374371ee49eaed20c84a6e3 29-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Always file DUN requests for tethering.

A bit of a hack so that first trySetupData call uses the proper APN in
strange edge cases. Made a new startUsingNetworkFeature string
that ConnectivityService knows means always pass the request to telephony
even if telephony connections are not currently available.

bug:3133178
Change-Id: I2559b9cbaed4b4ec02bdf7ea78e6003ee2be64f2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d825ea4ff055eb9302dcb5c8e59fe65bf31f0a41 30-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Cache the current value of background-data.

The writing of the persistent setting is async, but we should
still remember it so if somebody asks before the write completes
we give the right answer. Makes the read faster too.

bug:3312848
Change-Id: I864cb5f8d496d5bf9cbf0af9a71ca84da078f7c6
/frameworks/base/services/java/com/android/server/ConnectivityService.java
55985bed7be8c93296eee3f4f39557fba4fbaebe 24-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Make sure the ProxyProperties is always present.

Lets people know that it's non-null, though the InetAddr inside may be.

bug:3305689
Change-Id: I0fe16a9ef1feba987680c419fa2dc0e00e400d91
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1039872f597995cab2f88b9c841f8c2b8e71c451 18-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Reduce the spinning while tethering.

Doing too much stuff - don't retry when we know we shouldn't.

bug:3293460
Change-Id: Ic7b0b6486b39377d74df7a35572059ac60d03fa0
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15c7439acb22ab079dd2ebe42bdf0d2ffd525c5d 22-Dec-2010 Jaikumar Ganesh <jaikumar@google.com> Add TYPE_BLUETOOTH network interface for reverse tethering.

Change-Id: I2aa61ce15f57aea9e8fd3a4cb56799c8bc51e998
/frameworks/base/services/java/com/android/server/ConnectivityService.java
efe5bd77eb2a883c57912a0b4dbed122840f1fdd 22-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> am 46f98746: am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread

* commit '46f987465c1df4ec984e725747d4d79fc592abb7':
Be sure and report NO_CONNECTIVITY when needed.
46f987465c1df4ec984e725747d4d79fc592abb7 22-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> am 5d0fafe8: Merge "Be sure and report NO_CONNECTIVITY when needed." into gingerbread

* commit '5d0fafe80752ad4e40fe0ec2bc06c43e669a0612':
Be sure and report NO_CONNECTIVITY when needed.
d68e321841b53263d97dcc7e1682e8f0c7877e62 21-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Be sure and report NO_CONNECTIVITY when needed.

Reports that we sometimes didn't report NO_CONNECTIVITY led to this suggested change.
Could not repro the problem, but the change looks ok anyway. Better safe than sorry.

bug:3276408
Change-Id: I0cdb48a05a5c9dfcf3a0b468a6eae43d461023b1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0be1e9844a16d7d7708fdb446b330533cd1d3260 15-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Correct an error code to pass CTS.

We used to report an unmatch stopUsingNetworkFeature call with an "ok, stopped" response,
but we need to report it as an error.

bug:3281837
Change-Id: I35728159e62a021cb10de4396b3f60a92df0570f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e798268f16ec6d0542616ea45ca0bb18ae2645ee 07-Dec-2010 Wink Saville <wink@google.com> Have MobileDataStateTracker & DataConnectionTracker communicate directly.

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

Change-Id: I3863e7385155d503f069b1dcb7e4f766ec78b5f8
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
a2e13392412d5094e49ea0053599477401d1a67e 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Make Proxy change broadcast sticky

Makes it easier for apps who care. Includes the current values.

Change-Id: I5f1d3589a036ebc9910281f97d4780ecda2829f2
/frameworks/base/services/java/com/android/server/ConnectivityService.java
733c62909c1cca72be50094acb15dc1014b956ce 06-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Don't clobber the net hostname if it's already set.

Be a good citizen.

Change-Id: Ic58aeab013e2ff34201be71e01e399390edbbb5f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ed9c02b56c6f56a583aa272f82818ef039face75 03-Dec-2010 Wink Saville <wink@google.com> Cleanup logging.

Change-Id: Ie73c6d97ec19b0d27e58c085b60e885d90066056
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b7090d68be1046e7b8743620592bb63c8256eeab 02-Dec-2010 Robert Greenwalt <rgreenwalt@google.com> Load persisted global proxy settings.

Was persisted before, but not loaded at boot.

Change-Id: I6d6b69ede3d212a8266847d73d07a037ae917788
/frameworks/base/services/java/com/android/server/ConnectivityService.java
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
/frameworks/base/services/java/com/android/server/ConnectivityService.java
03595d01188d88c169e8c9dd51b357fd545e69cc 02-Nov-2010 Robert Greenwalt <rgreenwalt@google.com> Tell each VM to flush their DNS cache.

bug:3095357
Change-Id: I93de24e3e5a7d8b94d55f4facfffc863a2b8c202
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c2a443250768086a609c5666f23d93316d84252c 11-Oct-2010 Wink Saville <wink@google.com> am 83d97f46: am 96619f9f: Merge "Add some error-case logging." into gingerbread

Merge commit '83d97f460412f117998f4d446fd65ca79761a294'

* commit '83d97f460412f117998f4d446fd65ca79761a294':
Add some error-case logging.
83d97f460412f117998f4d446fd65ca79761a294 10-Oct-2010 Wink Saville <wink@google.com> am 96619f9f: Merge "Add some error-case logging." into gingerbread

Merge commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696' into gingerbread-plus-aosp

* commit '96619f9f0653a5c7f407c52ab565b5ddf23ad696':
Add some error-case logging.
572172befbdf020e96ee4b10506b2b7cd5f1a09b 09-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Add some error-case logging.

Turning off all debug logging is a good thing, but it leaves us blind when errors come in.
bug:3075537

Change-Id: I8a4e7f2ce094574ec45cec268bdbc46449540c9f
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ba175a5e1331883ef4ecfc2b751789a3492efca1 06-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Turn on some debugging info

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

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

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

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

Mmmmmm... great fresh scent!

Change-Id: I050e70b31b5d4a9c6731f15a4b51a3620a33a78d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f333123d50776507891b90a6eda4a3b8fa305bb6 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 2d457a32 to master

Change-Id: I08fc7881010083407a102f471483cd6d5b9774b4
2d457a32a653ad06487cf0fef9ef400f3055099a 24-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 8f97fe55: Merge "Move long Connectivity tasks to handler thread." into gingerbread

Merge commit '8f97fe551e7bd95abf395eed303b975eaa8f0158' into gingerbread-plus-aosp

* commit '8f97fe551e7bd95abf395eed303b975eaa8f0158':
Move long Connectivity tasks to handler thread.
8dcc28be065bb5997ed97d58c9592324b891023a 23-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Move long Connectivity tasks to handler thread.

Reduce ANR potential.
bug:2942829

Change-Id: I21610b462d5ab91821015cd16eecd86d2c0580d1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
19531dacfee9fcfd527ab04223fb91ae019ec05c 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am f532e958: am 6548f395: Merge "Inet status bug fix" into gingerbread

Merge commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf'

* commit 'f532e9583ec0111b1c198e895ed1b2fd83c3d5cf':
Inet status bug fix
4524c6244884d4b3aff0b6b00372427b6a42ebd8 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of 749e6bc5 to master

Change-Id: Ica492307505d53e57863d4363b5f75abd798bcd8
f532e9583ec0111b1c198e895ed1b2fd83c3d5cf 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 6548f395: Merge "Inet status bug fix" into gingerbread

Merge commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef' into gingerbread-plus-aosp

* commit '6548f395a974d2a8dcefe29b3a498d1ca87d8aef':
Inet status bug fix
029be81302c7a00901e0af34afc06ddabb2805ef 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Inet status bug fix

Don't wipe out the connected status every time we get a cellular status change.
Don't filter out disconnect event for wifi - we need them.

bug:3009923
Change-Id: I68cadac5f44d6eb4e0fe711fda7c5d218abb45bd
/frameworks/base/services/java/com/android/server/ConnectivityService.java
749e6bc5cc429b4db2353c264413f229f2694aa6 21-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 313af5a3: Merge "Add Inet Condition log to bugreports" into gingerbread

Merge commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a' into gingerbread-plus-aosp

* commit '313af5a3b5ba51eb75dea35eb568c841aa4beb6a':
Add Inet Condition log to bugreports
4e8dfefb06227a911eb5abfcb2591d8eae5db42b 20-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add Inet Condition log to bugreports

Reports who reports what condition on which network at what time. Where is implied.

Change-Id: I89fbc7323dec438041859fcc934169fa325f0133
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
057d5e9824a01a03c13d5a32d3c7f5023d01586e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Fix the build

broken merge resolution.

Change-Id: Idf1abef1ef79ddc43b9eaba1e0e523085702e2fe
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
bb08caf54bdb201d9b85393152f1b400eb4abe2b 03-Sep-2010 Wink Saville <wink@google.com> Fix and simplify ConnectivityService singleton.

Change-Id: Idb74854db9d801c1cc138eb5ca866cf01940ff6d
/frameworks/base/services/java/com/android/server/ConnectivityService.java
00092874b1fea2354b6a3048974abfc4bba69258 02-Sep-2010 Joe Onorato <joeo@android.com> Revert "Changed ConnectivityService#getServiceInstance so its a singleton."

This reverts commit 28961cc02f350ccd1770fb5af2f0d4c9793e4aec which causes this exception:

E/SystemServer( 2653): Failure starting Connectivity Service
E/SystemServer( 2653): java.lang.IllegalMonitorStateException: object not locked by thread before wait()
E/SystemServer( 2653): at java.lang.Object.wait(Native Method)
E/SystemServer( 2653): at java.lang.Object.wait(Object.java:358)
E/SystemServer( 2653): at com.android.server.ConnectivityService$ConnectivityThread.getServiceInstance(ConnectivityService.java:186)
E/SystemServer( 2653): at com.android.server.ConnectivityService.getInstance(ConnectivityService.java:200)
E/SystemServer( 2653): at com.android.server.ServerThread.run(SystemServer.java:262)

Change-Id: Idd139e426e61a1913b0bf343e2f0a0b1990ba8bb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
e90aa5e97e3a5502a8334ed6ceb98305f6e01361 01-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add a default dns entry if none is provided

Fixes part of emulator which isn't telling us about dns servers.
Gets some stuff running, but browser is still broken.

bug:2961703
Change-Id: I53b946eba434aca1bb524c2acaf77922377948d1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
28961cc02f350ccd1770fb5af2f0d4c9793e4aec 01-Sep-2010 Wink Saville <wink@google.com> Changed ConnectivityService#getServiceInstance so its a singleton.

Change-Id: I27b5688a50917b01fb2fcd1c124da77ccae226b5
/frameworks/base/services/java/com/android/server/ConnectivityService.java
37e65ebb7eb932e1a144b1cab262e11ca5fd109b 30-Aug-2010 Robert Greenwalt <robdroid@android.com> Rename NetworkProperties to LinkProperties

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

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

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

Change-Id: I7ceb0b624e78d85542d1c36bfabeb5dc31961505
3ded7cb58cd5b31b712e95f9cfecf86f69fb4cae 25-Aug-2010 Robert Greenwalt <robdroid@android.com> am 510f9f86: am 6d734693: Merge "Send all Connectivity broadcasts." into gingerbread

Merge commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0'

* commit '510f9f869fea26b5c11bfc738e7637c988e9d3d0':
Send all Connectivity broadcasts.
9d6b59c08e81b6cfd2db6b4f68c64c0c97a9f9ff 24-Aug-2010 Robert Greenwalt <robdroid@android.com> Send all Connectivity broadcasts.

We were using a flag so new broadcasts replaced old. If people are expecting
to see all the broadcasts they sometimes would fail.

bug:2892383
Change-Id: I63df17fe8f8c68f59e1ad6297fe93e169b4463b4
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
6fdd0c6274c81b337ad35b70480f881daf7354c3 11-Aug-2010 Danica Chang <danicachang@google.com> bluetooth tethering

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

Also, removed some unused NetworkStateTracker event codes.

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

Change-Id: If9b52486c3c281fe4794bc78417c8b03888414b1
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b738fb9938631a2e4540f9a9308f49e6be5565b8 13-Aug-2010 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Always set/remove default routes.

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on teh same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: Ifdf49080fa0413a4d826813706c809975a562dfa
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0d25534fed91f636def5776ddc4605005bd7471c 28-Jul-2010 Irfan Sheriff <isheriff@google.com> Split WifiStateMachine from WifiStateTracker

Notifications handled in WifiService. WifiStateTracker tracks
state for connectivity service

Change-Id: Idb0cf494898d28712af0f95f9e60c5417cd4a053
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1a655771efff8285a230b7369b8275fcd102eeb5 05-Aug-2010 Daniel Sandler <dsandler@google.com> Fix runtime reset (missing case break).

Bug: 2895437
Change-Id: If061c02811144031833f75ad47ae313e2208701c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c76b8fa911bb2501ba55153d3ac25a5132daa3a9 24-Jul-2010 Robert Greenwalt <robdroid@android.com> Always try to set/remove default routes

Must clean up default route if a default 3g connection is replaced
by a non-default (ie, mms) connection on the same interface.

Also stop mucking with all connections dns and routes - do it only
for the connection that has changed.

bug:2865974
Change-Id: I589a0b2768b5e67b608fde181e7ddbd7fce4f491
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a2a1b911a31dd94ee75e94845f762b91f1db1368 07-Jun-2010 Irfan Sheriff <isheriff@google.com> Refactor WifiStateTracker

Implement WifiStateTracker as a HSM.

Change-Id: Ic12fd78f1f183b5c4dea8ad2301002267ceff0cb
/frameworks/base/services/java/com/android/server/ConnectivityService.java
47f69fe2999e46004f2f2463b70d38de9ff7079a 16-Jun-2010 Robert Greenwalt <robdroid@android.com> Pass network properties to ConnectivityService.

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

bug:2655015
Change-Id: I7ac886fe5c519e8bab42f49cd82a5189d9c9ab59
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
d649c12815bcf944b2c97371f3f60716a42a1557 10-Jun-2010 Irfan Sheriff <isheriff@google.com> Make NetworkStateTracker an interface

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

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

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

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

Change-Id: Iddd7421d6b91cda7c8405f9c3d5404ac04ef8e42
/frameworks/base/services/java/com/android/server/ConnectivityService.java
7b00978dc739ed2213ed8e511c69cfb412798109 12-Mar-2010 Irfan Sheriff <isheriff@google.com> Run WifiWatchdogServiceThread only on wifi enable

Bug: 2508997
Change-Id: Ib79ee25fcc8e39e9a1d6c5b9ef9681bc00b6d006
/frameworks/base/services/java/com/android/server/ConnectivityService.java
dfadaeac088cabce854d8f476405cd412f82593a 12-Mar-2010 Robert Greenwalt <robdroid@android.com> Stop creating threads for tethering.

Use the passed in looper and save threads.

Change-Id: I6db04ef64e339a5fb2b71e9fb1da32e2d600447c
/frameworks/base/services/java/com/android/server/ConnectivityService.java
78a640af951377d9749d0dbfd027687cbb92dc72 11-Mar-2010 Robert Greenwalt <robdroid@android.com> Make HiPri work when already connected.

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

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

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

Change-Id: I375026048724d0035297287c61c6c2f58d4e0294
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f0fa39ed7496ae43369fac306d765d7d86fa23d7 09-Mar-2010 Robert Greenwalt <robdroid@android.com> Fix NO_CONNECTIVITY flag in some cases.

Airplane mode seemed to hit this bug.

bug:2498268
Change-Id: I5af9266fbbad3e2323d30d7471058f0f4ec3f544
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
8a9b22056b13477f59df934928c00c58b5871c95 27-Feb-2010 Joe Onorato <joeo@android.com> Switch the services library to using the new Slog
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c9d5fb7c95f158d9a31d534895373afcfad77806 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Add build options for tethering.

Dun-required bool and list of allowed upstream ifaces.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
35429599728793a6830a8ce32a62e98cabefc90e 25-Feb-2010 Robert Greenwalt <robdroid@android.com> Fix no-mobile-data after wifi.

Missed a case - if you disabled mobile data and then cycled wifi, 3g would
be turned back on.

bug:2251458
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c03fa5014912684367174ff3cce664deb29f5e0e 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Add mobile data on/off switch.

bug:2251458
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
/frameworks/base/services/java/com/android/server/ConnectivityService.java
fbf56dc719a2ee13129fd7049565054370c6ed1d 28-Jan-2010 Robert Greenwalt <robdroid@android.com> am 3e229076: am cc4b4016: Fix the reporting of NO_CONNECTIVITY.

Merge commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c'

* commit '3e229076203cd8cfee0adac44cd3c930dfa0e59c':
Fix the reporting of NO_CONNECTIVITY.
64fe5646c5b2eb5ff58cea4ca4d384b4a5f733dc 28-Jan-2010 Robert Greenwalt <robdroid@android.com> am 6d626d41: am 5381e4ef: Merge "Refine fix I53e91db7 to apply only to wifi network" into eclair

Merge commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0'

* commit '6d626d41e9db62a0eadb61ccb2aa4081a8b9f6d0':
Refine fix I53e91db7 to apply only to wifi network
09ac3c3cbc6278af127cffedb9d534449e63b683 26-Jan-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 1f2f23bd to master
cc4b4016e4b86db012f94bb889e5ca61ff362171 26-Jan-2010 Robert Greenwalt <robdroid@android.com> Fix the reporting of NO_CONNECTIVITY.

A refactoring of handleDisconnect instroduced a bug - we were reporting
NO_CONNECTIVITY after any non-primary network (supl, mms, hipri) was lost.

bug:2395006

Change-Id: Ifa9e008872ec646981a35f2c316120cb9685a6a4
/frameworks/base/services/java/com/android/server/ConnectivityService.java
6e6dec284369238f16ac23497292de5a1a39aca8 26-Jan-2010 Robert Greenwalt <robdroid@android.com> Refine fix I53e91db7 to apply only to wifi network

The original fix eliminated duplicate wifi connectivity changes stemming from
location provder scan's for APs. These would generate two DISCONNECTED broadcasts every
two minutes and many apps mis-interpreted them.

The fix was to ignore notifications where the major state was the same as the previous one
for each network. Unfortunately the state of per-apn notifications on cellular is hacky
and so the wifi fix was breaking mms (mms when you're on cellular with a common default+mms apn does
not generate a disconnect notification (apn still connected) so subsequent connect notifications
get dropped as duplicates).

This change refines the previous change so that it only applies to wifi networks.

bug:2392061
Change-Id: I05d8a46a4b55f8d28df8af12e05284e5e68bfc02
drno: ryanpc
/frameworks/base/services/java/com/android/server/ConnectivityService.java
da03c4e4b3d47e6917fdcddecf68f2f52564e3a0 21-Jan-2010 Robert Greenwalt <robdroid@android.com> Try to switch to another default net on connection failure.

This shouldn't be required, but there seems to be something odd going on
in wifi and it doesn't hurt to try other available options. Makes a
connection failure case work like a disconnected case.

bug: 2378462
/frameworks/base/services/java/com/android/server/ConnectivityService.java
73912ce083a35e0b4cbccd9a364791c3725d9e34 22-Dec-2009 Robert Greenwalt <robdroid@android.com> Add bugreport info about network feature use. DO NOT MERGE

Backported from master change Ib9285359.

We've had a couple bug reports showing the effects of a left-live feature request.
We need a bit more bugreport-time logging.

bug: 2323226
bug: 2377507
change-id: I296b2887101c260aea678bf6db91144535cbad7e
/frameworks/base/services/java/com/android/server/ConnectivityService.java
15abc90147333fccf7c9576cbf90d40d73e5a20f 17-Dec-2009 Robert Greenwalt <robdroid@android.com> Cleanup of process-specific DNS.

Backport of MR2 change 421c72b6.

Removes entries sooner. A bug.
Doesn't add one for phone process at all. This was intended to be removed long ago.

bug: 2329900
bug: 2377507
/frameworks/base/services/java/com/android/server/ConnectivityService.java
40bbaaac5f0b93de8d8b8164ac8b59583bc0113a 15-Jan-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 90528645 to master
de8383ca312c03fa8e935ac1549ae31ce668652c 15-Jan-2010 Robert Greenwalt <robdroid@android.com> Set net.hostname sys property to our unique ID.

Give us a default name networking wise so that wifi (at least) can use it.

Bug:2327089
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1193ae4e824c66b75083c444ce0f250594e138ee 13-Jan-2010 Robert Greenwalt <robdroid@android.com> Backport l53e91db7 from master.

Prevents sending out ConnectivityManager broadcasts when the connection
is repeating the same major state. This means continued wifi scanning
does not generate CM broadcasts (though wifi state broadcasts continue).

bug: 2265222
Dr No approval: jsh
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b928535902b204ac3ec25f161352786842248767 22-Dec-2009 Robert Greenwalt <robdroid@android.com> Add bugreport info about network feature use.

We've had a couple bug reports showing the effects of a left-live feature request.
We need a bit more bugreport-time logging.

bug: 2323226
/frameworks/base/services/java/com/android/server/ConnectivityService.java
41c561781323c697e42eef5c08310dbd8c1bf63a 18-Dec-2009 Robert Greenwalt <robdroid@android.com> am 24317443: am 421c72b6: Cleanup of process-specific DNS.

Merge commit '24317443fde973c762afbea1a3f6f2c830dfe3dd'

* commit '24317443fde973c762afbea1a3f6f2c830dfe3dd':
Cleanup of process-specific DNS.
421c72b6773582dd1473ace44c42d4e0ee1287e3 17-Dec-2009 Robert Greenwalt <robdroid@android.com> Cleanup of process-specific DNS.

Removes entries sooner. A bug.
Doesn't add one for phone process at all. This was intended to be removed long ago.

bug: 2329900
/frameworks/base/services/java/com/android/server/ConnectivityService.java
74a76d5e071ba11eb92c92933fa5de338010374d 15-Dec-2009 Dianne Hackborn <hackbod@google.com> am 83652ebf: am 3a3fd2ba: Merge change Iaf1f0918 into eclair-mr2

Merge commit '83652ebfe1963bcecdcf24383165904223baca6e'

* commit '83652ebfe1963bcecdcf24383165904223baca6e':
Implement API to have new broadcasts replace existing broadcasts.
1c633fc89bae9bf0af6fe643ac7ad2e744f27bed 09-Dec-2009 Dianne Hackborn <hackbod@google.com> Implement API to have new broadcasts replace existing broadcasts.

Use this in various places where it should serve no purpose to deliver
both broadcasts. This is intended to reduce somewhat the flurry of
broadcasts that we churn through during boot.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a1b04c01ca130201060cd78b47efcc2c1aa6f5c6 08-Dec-2009 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 47a2573e to master
b097fbbff339adc2d38fe670c689f3dad69c2549 08-Dec-2009 Robert Greenwalt <robdroid@android.com> DO NOT MERGE Reverting change I53e91db7.

Accidentally submitted into eclair instead of eclair-mr2.
I apparently rebased my mr2 working dir to eclair by mistake.

Do not merge this so the desired change will survive on mr2 as intended.

bug: 2265222
/frameworks/base/services/java/com/android/server/ConnectivityService.java
096871e7e1a1f8cdfbaa1acc4bc485b69ddf22a4 08-Dec-2009 Robert Greenwalt <robdroid@android.com> am 90d1b745: Merge change I53e91db7 into eclair

Merge commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3' into eclair-mr2

* commit '90d1b745ec4a7ccd15cdcc185420bf2000b4f7a3':
Filter out minor Connectivity Notifications.
511288a04639859a6d9bbfedfa2f2b4d7d2c3e88 07-Dec-2009 Robert Greenwalt <robdroid@android.com> Filter out minor Connectivity Notifications.

Don't send a connectivity change notification if the change is in detailed state only.
IE, Disconnect/Idle -> Disconnect/Scanning should not trigger a connection change
notification.

bug: 2265222
/frameworks/base/services/java/com/android/server/ConnectivityService.java
18803d37e2ce47407b7ac52513e3254207e8b287 07-Dec-2009 Doug Zongker <dougz@android.com> resolved conflicts for merge of 5a2fdbba to master
ab5c49c7e7f5f61040650109a76f38a443fb852d 04-Dec-2009 Doug Zongker <dougz@android.com> move event log tags used by system server into this package

We can now locate event log tag definitions in individual packages
(and java constants for the tag numbers get auto-generated), so move
all the tags used by the system server into the package.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
5154ae7665743b114c71f90dcc577dc50c63b398 30-Oct-2009 Robert Greenwalt <robdroid@android.com> Cleanup ConnectivityServices network configuration

Don't instantiate objects not needed for the device.

bug: 2226064
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b8f16340b531809aa08cb73c55ddadd5f94de080 07-Oct-2009 Robert Greenwalt <robdroid@android.com> Fix ConnectivityManager permissions check.

bug: 2160462
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d8df149cfb82cf02cef7e04c05f229d7caf7fe90 06-Oct-2009 Robert Greenwalt <robdroid@android.com> Turn some logging back on in ConnectionManager

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

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

Dr.No from mcleron.

Change-Id: Iaca2268684f83fe8757e64db0b0e047a19755311
/frameworks/base/services/java/com/android/server/ConnectivityService.java
1ef95f9eed610897b46a00f51a7cd7944ef26e62 01-Oct-2009 Robert Greenwalt <robdroid@android.com> Reduce the ConnectivityManager logging.

Same great info, just fewer chars.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9c75d4af63f92806943a9fa9d942644bd601310e 28-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix network-feature timeout code.

Track requests independently with seperate timers. Clean up on expiration
by just stopping that particular request, not immediately restoring the default.

bug: 2127590
/frameworks/base/services/java/com/android/server/ConnectivityService.java
c7d2530d52e9c188392b118caea64673dbbad45c 17-Sep-2009 Robert Greenwalt <robdroid@android.com> Report NO_CONNECTIVITY when failover net unavail

Fix ConnectivityService so that it reports connection status correctly.

bug: 2128595
/frameworks/base/services/java/com/android/server/ConnectivityService.java
8206ff30c23c76851bebc8d72a65e65b0f7f9a29 11-Sep-2009 Robert Greenwalt <robdroid@android.com> Fix for multi-apn MMS access.

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

Fix the requestRouteToHost logic to support apn switches without WIFI.

bug:2093841
/frameworks/base/services/java/com/android/server/ConnectivityService.java
b06324a5c1af11b0fef76bdafa569a60498a93d2 25-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix the removal of dns entries.

When switching default networks we should erase any excess dns server entries. The old code
used the wrong index and didn't erase all of them properly.

Found in conjunction with
bug: 2077628
/frameworks/base/services/java/com/android/server/ConnectivityService.java
ec9fe4672a46eb928ab710d8e3caf2ce046100d4 21-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix a race condition for data change notification

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

bug: 2069106
/frameworks/base/services/java/com/android/server/ConnectivityService.java
a64bf834ffa677405af1c87c9f53eed0cd3853ce 20-Aug-2009 Robert Greenwalt <robdroid@android.com> Fix various issues found when testing Mms.

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

bug: 2065037
/frameworks/base/services/java/com/android/server/ConnectivityService.java
0f79b54c3a0b4141b1da38fa301571a89e165632 14-Aug-2009 Mike Lockwood <lockwood@android.com> ConnectivityService: Do not send broadcasts until the system is ready.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/services/java/com/android/server/ConnectivityService.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/services/java/com/android/server/ConnectivityService.java
86e9e55c54a3e07f6c9476d107db99131cefc5d7 17-Jul-2009 Robert Greenwalt <robdroid@android.com> Whitespace cleanup prior to real work.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
231cc608d06ffc31c24bf8aa8c8275bdd2636581 28-Apr-2009 Dianne Hackborn <hackbod@google.com> Rewrite SyncStorageEngine to use flat files and in-memory data structures.

The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.

There are now 4 files associated with this class, holding various pieces of its state that
should be consistent. These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time. Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.

Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database. This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it. Other changes in other projects are required to update to the
new API.

The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
/frameworks/base/services/java/com/android/server/ConnectivityService.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/services/java/com/android/server/ConnectivityService.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/services/java/com/android/server/ConnectivityService.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/services/java/com/android/server/ConnectivityService.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/services/java/com/android/server/ConnectivityService.java