Commit Graph

8564 Commits

Author SHA1 Message Date
Jeff Sharkey
d00b130332 API to report if active network is metered.
Report to developers if active network is "metered" and define it
as the user being sensitive to heavy data usage.

Bug: 3001465
Change-Id: I855ca3cd3eb1de3c4814148d70ccf24957af898a
2012-04-16 11:20:27 -07:00
The Android Automerger
5037317c01 merge in jb-release history after reset to master 2012-04-10 07:03:55 -07:00
Jeff Sharkey
078d356a9b Migrate to @Override to remove warnings.
Bug: 6303344
Change-Id: I0d33b2ed448467379d576ccd71fb5ae20c878852
2012-04-09 10:57:21 -07:00
The Android Automerger
8f84cb84c8 merge in jb-release history after reset to master 2012-04-09 07:04:01 -07:00
Jeff Sharkey
dc164ff128 INetworkStatsSession with lifecycle for caching.
Users outside system_server now explicitly communicate their
lifecycle, which keeps a strong-reference chain to any fully loaded
NetworkStatsCollection histories.

Bug: 6236498
Change-Id: I8e22739b6e89a626b676967a736d7117fd000778
2012-04-06 13:38:29 -07:00
Jeff Sharkey
2d9e5a5f9e Support metered Wi-Fi NetworkPolicy.
Add networkId field to NetworkIdentity to identify Wi-Fi networks by
SSID.  Add support for policies without usage cycles.

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

Bug: 3001465, 3291052
Change-Id: I1f8aaa49a5db306df022c402ea7f3f5d4bc0cfc7
2012-04-05 16:02:25 -07:00
The Android Automerger
04afb87300 merge in jb-release history after reset to master 2012-03-26 07:04:24 -07:00
Mike Lockwood
62b7c11709 Merge remote-tracking branch 'goog/ics-aah-exp' into merge 2012-03-22 15:32:51 -07:00
The Android Automerger
231f3b0e45 merge in jb-release history after reset to master 2012-03-05 07:02:50 -08:00
yoonsung.nam
48d1833b15 Fix the bug net.dns1.pid is same as net.dns2.pid
writePidDns() does not increase the index in case first given dns
already exist in the property.

Change-Id: I1129d0042929b3ee119160e53cae0e4143c7ea88
Signed-off-by: yoonsung.nam <yoonsung.nam@samsung.com>
2012-03-02 10:23:03 -08:00
The Android Automerger
777c4cf8f1 merge in jb-release history after reset to master 2012-03-01 07:02:28 -08:00
Irfan Sheriff
b9f329f633 Improve Wi-Fi hand-off
When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
2012-02-29 17:33:36 -08:00
The Android Automerger
dabdbf4f52 merge in jb-release history after reset to master 2012-02-20 07:02:21 -08:00
The Android Open Source Project
5b04a4566f am 19222ad5: am 64406699: Reconcile with ics-mr1-release
* commit '19222ad532f7127278c4ce54b77cb282721ac061':
2012-02-16 11:25:37 -08:00
The Android Open Source Project
6afd0d0166 am d2a0a9d4: am b548bb97: Reconcile with ics-mr1-release
* commit 'd2a0a9d414255bc37d76383aeabc5ad105a2d42a':
2012-02-16 11:25:16 -08:00
The Android Open Source Project
19222ad532 am 64406699: Reconcile with ics-mr1-release
* commit '644066992121dc65941c2b47a548d1d09719dfa7':
2012-02-16 10:13:52 -08:00
The Android Open Source Project
6440669921 Reconcile with ics-mr1-release
Change-Id: I7c4496218c25c8d2b0271782ad08b4b63055ed92
2012-02-16 10:10:14 -08:00
The Android Open Source Project
d2a0a9d414 am b548bb97: Reconcile with ics-mr1-release
* commit 'b548bb973a9333dd0d40a6e2b6a2782ddfec15fa':
2012-02-16 10:04:19 -08:00
The Android Open Source Project
b548bb973a Reconcile with ics-mr1-release
Change-Id: I57beb3d2c4e7ee06eb1a14475bf05ce655cb26f3
2012-02-16 10:02:16 -08:00
Robert Greenwalt
0e1bb7585e am 4f967940: am ccdf4844: am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1
* commit '4f967940a58391b2f0320abab8c4d647b2a2ad67':
2012-02-16 07:34:07 -08:00
The Android Automerger
3a0ae99a10 merge in jb-release history after reset to master 2012-02-16 07:02:35 -08:00
Robert Greenwalt
4f967940a5 am ccdf4844: am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1
* commit 'ccdf484440271df24fddd86ae85e1de897bb82a7':
2012-02-15 18:35:41 -08:00
Robert Greenwalt
5a9b24658b am 1b2583c4: am 6df6d66f: am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1
* commit '1b2583c41c37c055821d8f4ebbdc717f108c3b48':
  Stop using shared DUN APN when tethering stops.
2012-02-15 07:53:53 -08:00
The Android Automerger
a80f8aae2b merge in ics-mr1-release history after reset to ics-mr1 2012-02-14 14:15:44 -08:00
Robert Greenwalt
6df6d66fd1 am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1
* commit 'c8711ca7eb962072ccd6175be3cfa861195ba6cd':
  Stop using shared DUN APN when tethering stops.
2012-02-14 13:41:47 -08:00
Robert Greenwalt
2ddc99fb92 am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1
* commit 'c8711ca7eb962072ccd6175be3cfa861195ba6cd':
  Stop using shared DUN APN when tethering stops.
2012-02-14 13:40:02 -08:00
Robert Greenwalt
ccdf484440 am c8711ca7: Merge "Stop using shared DUN APN when tethering stops." into ics-mr1
* commit 'c8711ca7eb962072ccd6175be3cfa861195ba6cd':
  Stop using shared DUN APN when tethering stops.
2012-02-14 13:39:55 -08:00
Robert Greenwalt
59fa0278bb 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
2012-02-14 11:44:09 -08:00
The Android Automerger
0b21f1b9ea merge in jb-release history after reset to master 2012-02-13 09:00:16 -08:00
Doug Zongker
b1a238dbb3 store the hw addr in the extraInfo field of ethernet NetworkInfos 2012-02-10 14:44:03 -08:00
The Android Automerger
6cf2573897 merge in jb-release history after reset to master 2012-02-08 07:02:16 -08:00
Jeff Sharkey
b1b6ccd157 Send broadcast when changing restrict background.
When changing global restrict background status, send connectivity
change broadcast, since it radically changes DISCONNECTED/BLOCKED
status system-wide.

Also reduce verbose stats logging.

Bug: 5854466
Change-Id: I3b612c520f50cc3000a3a569b7e0ab5f691cc2bd
2012-02-07 12:08:58 -08:00
The Android Automerger
72da21e678 merge in jb-release history after reset to master 2012-02-06 07:01:57 -08:00
Jeff Sharkey
b3a842ef9c Unify shorthand for byte-based units.
Change-Id: If990859dee3f0973e1d4c48f05312c84071b3328
2012-02-03 14:50:13 -08:00
The Android Automerger
0532187967 merge in jb-release history after reset to master 2012-02-02 07:01:41 -08:00
Jeff Sharkey
c958c77f1a Deprecate ACTION_BACKGROUND_DATA_SETTING_CHANGED.
Broadcast is no longer sent, except during first boot after platform
upgrade.

Change-Id: I7a9c105b5783ca9f9c3aca2efff6fe5c13a4c1fd
2012-01-30 16:32:54 -08:00
The Android Automerger
c4ec6419be merge in jb-release history after reset to master 2012-01-25 16:11:00 -08:00
Wink Saville
678258626a Merge "Add additional debug" 2012-01-25 14:04:59 -08:00
Wink Saville
5030c0534f Add additional debug
When ConnectivityService#startUsingNetworkFeature is called and the
special network is not available output some additional information.

Change-Id: I34b226a208596fa6418f1f37a0feec1d274d493c
2012-01-25 13:47:54 -08:00
The Android Automerger
95ec30fedd merge in ics-release history after reset to master 2012-01-25 07:00:17 -08:00
Jeff Sharkey
6298b780ae Move network stats to FileRotator pattern.
Split existing network stats into two separate classes: a recorder
which generates historical data based on periodic counter snapshots,
and a collection of historical data with persistance logic.

Recorder keeps a pending history in memory until outstanding data
crosses a specific threshold.  Persisting is handled through a given
FileRotator.  This pattern significantly reduces disk churn and
memory overhead.  Separate UID data from UID tag data, enabling a
shorter rotation cycle.  Migrate existing stats into new structure.

Remove "xt" stats until iptables hooks are ready.  Avoid consuming
Entry values when recording into NetworkStatsHistory.  Assign
operation counts to default route interface.

Introduce "Rewriter" interface in FileRotator with methods to enable
rewriteAll().  Introduce IndentingPrintWriter to handle indenting in
dump() methods.

Bug: 5386531
Change-Id: Ibe086230a17999a197206ca62d45f266225fdff1
2012-01-24 11:13:14 -08:00
The Android Automerger
0d1f730720 merge in ics-release history after reset to master 2012-01-23 07:00:41 -08:00
Jean-Baptiste Queru
98b4bdbd7d am a1e87397: (-s ours) am f40f28e2: am ba7f0d2a: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)"
* commit 'a1e873975704814416ee4d5023bf0740ec195ec0':
  Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
2012-01-20 16:30:21 -08:00
The Android Open Source Project
33789dd08c am c1cf0488: Reconcile with ics-mr1-release
* commit 'c1cf0488dca56d76b6351935785fe464c1186d65':
2012-01-20 15:52:27 -08:00
Robert Greenwalt
83b1fc9643 Merge "Stop using shared DUN APN when tethering stops." 2012-01-20 14:35:41 -08:00
Jean-Baptiste Queru
f40f28e2d2 am ba7f0d2a: Merge "Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)"
* commit 'ba7f0d2a03643ce429421b81febf18fd50473070':
  Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
2012-01-19 17:25:58 -08:00
Steve Block
85a9820247 Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF)
Change-Id: I44f267700356967dc51e8f85ebf457dc85cfb229
2012-01-19 14:44:50 -08:00
The Android Open Source Project
c1cf0488dc Reconcile with ics-mr1-release
Change-Id: I151eb9ed3a43b1576a15e15b343832c8f9e9509b
2012-01-19 13:06:50 -08:00
The Android Automerger
362273088c merge in ics-release history after reset to master 2012-01-12 14:13:18 -08:00
The Android Automerger
331c68201c merge in ics-mr1-release history after reset to ics-mr1 2012-01-12 14:01:29 -08:00