Commit graph

991 commits

Message SHA1
merge in klp-release history after reset to klp-dev
The Android Automerger   commited 2013-08-26 06:01:09 -07:00
6941ec9f4d
Merge "Introduce network link quality statistics" into klp-dev
Vinit Deshapnde   authored and   Android (Google) Code Review   commited 2013-08-22 16:16:45 +00:00
48f4246a7c
merge in klp-release history after reset to klp-dev
The Android Automerger   commited 2013-08-22 06:01:18 -07:00
ea0eb19e16
Introduce network link quality statistics
This change starts tracking traffic quality data for WiFi and mobile
networks. The quality is tracked based on incidental traffic, and not
on specific measurements. Theoretical bandwidths are hard-coded, as
well as sampling interval; although sampling interval can be changed
by setting a system policy.

Bugs filed to remove shortcomings of this change -

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

Bug: 10006249

Change-Id: I83d8c7594da20fe53abbd5e1f909b1f606b035bb

Vinit Deshapnde   commited 2013-08-21 13:09:01 -07:00
db7abcb6e9
Modify LinkProperties address update methods.
1. Make addLinkAddress a no-op if the address already exists.
2. Make addLinkAddress, addStackedLink and removeStackedLink
   return a boolean indicating whether something changed.
3. Add a removeLinkAddress method (currently there is no way of
   removing an address).
3. Move hasIPv6Address from ConnectivityService to
   LinkProperties, where it belongs.

Bug: 9625448
Bug: 10232006
Change-Id: If641d0198432a7a505e358c059171f25bc9f13d5

Lorenzo Colitti   commited 2013-08-20 21:16:37 +09:00
662b96cf55
Add a string constructor to LinkAddress.
This will allow us to do new LinkAddress("2001:db8::1/64").

Bug: 10232006
Change-Id: If479bdbab16826afe9d82732215141841c282299

Lorenzo Colitti   commited 2013-08-20 14:19:20 +09:00
6efd3893ae
merge in klp-release history after reset to klp-dev
The Android Automerger   commited 2013-08-15 06:01:03 -07:00
dd0ea8adda
am f9a676ac: (-s ours) Reconcile with jb-mr2-release jb-mr2-zeroday-release jb-mr2-zeroday-deb-release - do not merge
* commit 'f9a676ac52':
  Use hostname verifier directly instead of instance DO NOT MERGE
  If in a mobile captive portal is detected enable fail fast.
  Have CaptivePortalTracker use gservices updateable provisioning urls.
  In CaptiviePortalTracker a socket timeout is probably a captive portal.
  Check that hipri has started.
  Fix issue #10226007: Reset apps restores most of the changed settings...
  Fix issue #10226007: Reset apps restores most of the changed settings...

The Android Open Source Project   authored and   Android Git Automerger   commited 2013-08-14 12:16:21 -07:00
511eaf802a
Reconcile with jb-mr2-release jb-mr2-zeroday-release jb-mr2-zeroday-deb-release - do not merge
Change-Id: I498651fc3fa9b021570780e8b8848a806c31962f

The Android Open Source Project   commited 2013-08-14 12:09:27 -07:00
f9a676ac52
merge in klp-release history after reset to klp-dev
The Android Automerger   commited 2013-08-14 06:06:12 -07:00
c337d8660a
In isMobileOk don't execute finally if mobile data is not supported.
Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc

Wink Saville   authored and   The Android Automerger   commited 2013-08-13 17:48:36 -07:00
800495504c
In isMobileOk don't execute finally if mobile data is not supported.
Move the early return outside the try {} finally so we don't call
setEnableFailFastMobileData(DctContants.DISABLED). Otherwise
referencing counting is wrong and an exception is thrown in DcTrackerBase.

Bug: 10304904
Change-Id: I5ba5121e473bada9f3daa8d6f3d3577cec8212fc

Wink Saville   commited 2013-08-13 12:41:06 -07:00
37e7312e12
merge in klp-release history after reset to klp-dev
The Android Automerger   commited 2013-08-12 06:02:03 -07:00
e4f537b6dd
am 4157cb24: am 02eab434: am 3f58ba89: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
* commit '4157cb2477':
  If in a mobile captive portal is detected enable fail fast.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 17:10:34 -07:00
78f8907ae1
am a0ffa2ed: am 55adb390: am 6db564f6: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
* commit 'a0ffa2ed4c':
  Have CaptivePortalTracker use gservices updateable provisioning urls.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 17:10:32 -07:00
0d406dffc0
If in a mobile captive portal is detected enable fail fast.
When captive portal checking completes pass back the result.
This is used to enable/disable failing fast for mobile. When
failing fast is enabled we don't check for data stalls and thus
won't be continually trying to do recovery operations, such as
restarting the radio.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e

Wink Saville   authored and   The Android Automerger   commited 2013-08-08 16:59:18 -07:00
3b5b4882f5
Have CaptivePortalTracker use gservices updateable provisioning urls.
After detecting there is a captive portal the url used in the
notification for mobile networks should be updateable via gservices.
These urls will be the same as used by CheckMp and is needed for
carriers that have specific provisioning urls such as AT&T and Verizon.

Bug: 9622647
Change-Id: Idcf4dabc72ece1dbbe1d5e5a21e550dd06fe16c7

Wink Saville   authored and   The Android Automerger   commited 2013-08-08 16:59:07 -07:00
cd0e1dc7de
Check that hipri has started.
I needed to test the result of startUsingNetworkFeature, otherwise
on mobile networks that are slow to come up, we won't detect
warm SIMs after booting.

Bug: 9962943
Change-Id: Ib638a4e43867ecaa85d6abff65643b77a63526b6

Wink Saville   authored and   The Android Automerger   commited 2013-08-08 16:58:43 -07:00
3e2735620e
am 80cc1ebd: am 9b6363e5: am cbad1243: Merge "Check that hipri has started." into jb-mr2-dev
* commit '80cc1ebde9':
  Check that hipri has started.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 16:22:14 -07:00
5ae370c753
am 02eab434: am 3f58ba89: Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
* commit '02eab434ad9faa25291e63023b7e66698ca457a8':
  If in a mobile captive portal is detected enable fail fast.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 15:46:55 -07:00
4157cb2477
am 55adb390: am 6db564f6: Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
* commit '55adb390bb96175db9abee3ead349a98b4dc4262':
  Have CaptivePortalTracker use gservices updateable provisioning urls.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 15:46:52 -07:00
a0ffa2ed4c
am 9b6363e5: am cbad1243: Merge "Check that hipri has started." into jb-mr2-dev
* commit '9b6363e5e6d37e3e8d103751d81613eeca32bbbf':
  Check that hipri has started.

Wink Saville   authored and   Android Git Automerger   commited 2013-08-08 15:46:46 -07:00
80cc1ebde9
Merge "If in a mobile captive portal is detected enable fail fast." into jb-mr2-dev
Wink Saville   authored and   Android (Google) Code Review   commited 2013-08-08 22:07:27 +00:00
3f58ba8957
Merge "Have CaptivePortalTracker use gservices updateable provisioning urls." into jb-mr2-dev
Wink Saville   authored and   Android (Google) Code Review   commited 2013-08-08 22:06:21 +00:00
6db564f6a3
Use a single socket to communicate with supplicant
This helps to prepare for future updates from external sources.

Bug: 9298955

Change-Id: I4c63ad5fc1ea3564aab38cfce955de19bad75c0c
(cherry picked from commit fb40801ed8c217ae01082fb1cbd0c30bbf5532ac)

Vinit Deshapnde   authored and   Robert Greenwalt   commited 2013-08-08 18:38:53 +00:00
00c193e308
merge in klp-release history after reset to klp-dev
The Android Automerger   commited 2013-08-08 07:54:10 -07:00
7d61db2184
Merge "Simplify LinkPropertiesTest."
Lorenzo Colitti   authored and   Android (Google) Code Review   commited 2013-08-08 02:54:29 +00:00
e5976a0167
Simplify LinkPropertiesTest.
Instead of converting IP addresses to strings throughout the
test, do so once at the beginning.

Change-Id: I7f0dae5d2e9e2cdc6ec808e2cf71197ba6ade0a4

Lorenzo Colitti   commited 2013-08-08 11:03:46 +09:00
34b969b1b5
Add PAC File support for proxy configuration
PAC (Proxy auto-config) files contain a single javascript function,
FindProxyForURL(url, host).  It gets called to determine what proxy should be
used for a specific request.

This adds PAC support to the system.  The ProxyProperties has been modified
to hold the PAC file when one is present.  The Proxy method
setHttpProxySystemProperty has been modified to insert a PacProxySelector
as the default ProxySelector when it is required.  This new ProxySelector
makes calls to the ConnectivityService to parse the PAC file.

The ConnectivityService and the WifiConfigStore have been modified to support
saving the extra PAC file data.

The ConnectivityService now has a class attached (PacProxyNative) that
interfaces to the native calls for PAC files.  The parsing of the PAC file
is handled by libpac (which is being added to external/) which utilizes
libv8 to parse the javascript.

As a fallback to applications that don't use the java ProxySelector,  the proxy
is setup to point to a local proxy server that will handle the pac parsing.

bug:10182711
Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401

Jason Monk   commited 2013-08-07 21:01:39 -04:00
43324ee732
If in a mobile captive portal is detected enable fail fast.
When captive portal checking completes pass back the result.
This is used to enable/disable failing fast for mobile. When
failing fast is enabled we don't check for data stalls and thus
won't be continually trying to do recovery operations, such as
restarting the radio.

Bug: 9462512
Change-Id: I0dea0eee519f8ee7f94e79d40e82c18f30d7fe2e

Wink Saville   commited 2013-08-07 16:22:47 -07:00
ffdadd64e8
Check that hipri has started.
I needed to test the result of startUsingNetworkFeature, otherwise
on mobile networks that are slow to come up, we won't detect
warm SIMs after booting.

Bug: 9962943
Change-Id: Ib638a4e43867ecaa85d6abff65643b77a63526b6

Wink Saville   commited 2013-08-07 11:02:57 -07:00
4a165bb3de
merge in klp-release history after reset to master
The Android Automerger   commited 2013-08-07 06:00:48 -07:00
b1747fbdcc
Merge "Revert "Fix broken unit test""
David Christie   authored and   Android (Google) Code Review   commited 2013-08-06 17:28:49 +00:00
27bd621bd4
Revert "Fix broken unit test"
This reverts commit 9e6dd0ca49.

Change-Id: I67f5e7227a8a874158c4f0954e62a77a317f1edd

David Christie   commited 2013-08-06 17:28:03 +00:00
87893f88f4
Merge "Fix broken unit test"
David Christie   authored and   Android (Google) Code Review   commited 2013-08-06 16:56:16 +00:00
2f3150e97d
Have CaptivePortalTracker use gservices updateable provisioning urls.
After detecting there is a captive portal the url used in the
notification for mobile networks should be updateable via gservices.
These urls will be the same as used by CheckMp and is needed for
carriers that have specific provisioning urls such as AT&T and Verizon.

Bug: 9622647
Change-Id: Idcf4dabc72ece1dbbe1d5e5a21e550dd06fe16c7

Wink Saville   commited 2013-08-05 14:15:54 -07:00
f714b7f5a2
merge in klp-release history after reset to master
The Android Automerger   commited 2013-08-05 06:01:30 -07:00
0d3911a1d8
am 6b67e07d: am 60ae2617: Merge "If frameworks wants ASCII casing, it should explicity ask for it."
* commit '6b67e07d21':
  If frameworks wants ASCII casing, it should explicity ask for it.

Elliott Hughes   authored and   Android Git Automerger   commited 2013-08-02 17:58:33 -07:00
7ada256efa
am 60ae2617: Merge "If frameworks wants ASCII casing, it should explicity ask for it."
* commit '60ae2617b4b304fc3e45a441f87d1765714477ba':
  If frameworks wants ASCII casing, it should explicity ask for it.

Elliott Hughes   authored and   Android Git Automerger   commited 2013-08-02 17:41:57 -07:00
6b67e07d21
If frameworks wants ASCII casing, it should explicity ask for it.
http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4

Elliott Hughes   commited 2013-08-02 15:12:32 -07:00
5547882084
dhcp: Get mtu property from dhcp results
Change-Id: I1b032094e0945b27d98f7ac786247b7cc9d60131
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>

Dmitry Shmidt   commited 2013-08-02 14:07:50 -07:00
feb443e59d
Fix broken unit test
Change-Id: I4aa0035233749f6d585c151329436439ae9b2921

David Christie   commited 2013-08-02 12:33:00 -07:00
9e6dd0ca49
Fix build breakage
Change-Id: Ia684fb55db301fdadaa3aae93f82b2cdcfc200af

David Christie   commited 2013-08-02 10:54:55 -07:00
14298807a1
Add WorkSource capability to AlarmManager.
Change-Id: I663ea3078d405f0fa667a04bdaa376ae6652e994

David Christie   commited 2013-08-01 13:22:40 -07:00
a62588a133
Merge "Add accessors for all addresses and clarify compare* methods"
Lorenzo Colitti   authored and   Android (Google) Code Review   commited 2013-08-01 06:44:29 +00:00
a5094dc770
Fix excessive log spew.
Bug: 10115060
Change-Id: I61fd83071da1224f38757b8d90f58c8d6c41d36b

Wink Saville   commited 2013-07-31 15:49:04 -07:00
27f9273cf3
Add accessors for all addresses and clarify compare* methods
1. Add a method to return all addresses and all LinkAddresses on
   all links (both base links and stacked links). We already had
   one for routes, but did not yet have any for addresses.
2. Rename compareRoutes to compareAllRoutes, because unlike the
   other compare* methods, it looks at all interfaces. Update
   what appears to be its only caller.
3. Update the documentation of the compare* methods to match
   reality (they don't return lists) and clarify whether they
   look at all links or only the base link.

Change-Id: Ie22e6c7f163d5de8e407248b45171dc28382d2d3

Lorenzo Colitti   commited 2013-08-01 00:21:24 +09:00
43553b6fad
merge in klp-release history after reset to master
The Android Automerger   commited 2013-07-31 06:01:34 -07:00
751479bc58
merge in klp-release history after reset to master
The Android Automerger   commited 2013-07-30 11:10:04 -07:00
593a58765f
am 178acfce: am 15884007: Merge "464xlat: use a gatewayed route, not point-to-point"
* commit '178acfced7':
  464xlat: use a gatewayed route, not point-to-point

Lorenzo Colitti   authored and   Android Git Automerger   commited 2013-07-30 10:28:32 -07:00
1f3e3bec7f