403aa2684e0e93b4792aabc0bbe1f32ac5e417af |
|
28-Nov-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Make StatusBar display all default networks. The basic principle is: if an app's traffic could possibly go over a network without the app using the multinetwork APIs (hence "by default"), then the status bar should show that network's connectivity. In the normal case, app traffic only goes over the system's default network connection, so that's the only network returned. With a VPN in force, some app traffic may go into the VPN, and thus over whatever underlying networks the VPN specifies, while other app traffic may go over the system default network (e.g.: a split-tunnel VPN, or an app disallowed by the VPN), so the set of networks returned includes the VPN's underlying networks and the system default. Specifically: 1. Add a NETWORK_CAPABILITY_VALIDATED bit to NetworkCapabilities. 2. Add a hidden API to retrieve the NetworkCapabilities of all default networks for a given macro-user. 3. Modify the status bar code that used getActiveNetworkInfo to determine which network was active, and make it consider all validated networks instead. 4. Because the set of active networks depends on which VPN app the user is running, make the status bar re-evaluate the networking situation when the active user changes. Bug: 17460017 Change-Id: Ie4965f35fb5936b088e6060ee06e362c22297ab2
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
06314e4eab4b78d971ff878de3984f2dc673c2d3 |
|
29-Oct-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Fix Legacy typing of net-specific requests. We're starting to get network requests for specific SIMs and the Legacy Type Inference was broken because the incoming request included a network specifier while the legacy requests it was compared with did not. Only compare the things we care about. bug:18031008 Change-Id: If107042828c152ede51a2497a3859bc1a6c83694
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
4e2dea77dcaa0b7b940d881bbc25e13e35e2ea49 |
|
20-Sep-2014 |
Wink Saville <wink@google.com> |
Cleanup NetworkCapabilities. Remove unused imports and variables. Fix misspellings. Added @Overrides. Change-Id: I81f4adb0504e92d01c5465a0e14bc46d5ec3987e
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
94badcc8cea8f428501e9ca819a2fe7a45af8b59 |
|
10-Jul-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Missed an entry in the copy constructor. bug:15755597 Change-Id: Iee17ca88404a6a50258d204a12cd0c04cd15e34e
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
5f90bccd96397f23b988c5e668b13f5344fd104b |
|
10-Jul-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add networkSpecifier string to NetworkCapabilties. Allows transport specific network selectivity where multi-sim or sta+sta is supported. bug:1575597 Change-Id: I9c60fe7710e988c17d63236788b492a3ddd264a1
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
6bc2c2c34f2b23eae79ad733c97a691734055c4f |
|
07-May-2014 |
Paul Jensen <pauljensen@google.com> |
Convert Vpn from NetworkStateTracker to NetworkAgent. This eliminates the need for the ConnectivityService.VpnCallback class. This requires shifting VPNs to the new "network" netd API. VpnService.protect() is modified to no longer go through ConnectivityService. NetworkCapabilities is extended to add a transport type for VPNs and a capability requiring a non-VPN (so the default NetworkRequest isn't satisfied by a VPN). bug:15409918 Change-Id: Ic4498f1961582208add6f375ad16ce376ee9eb95
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
16e12abbef5b84b75e3180b3d1ba5244b7e2557d |
|
09-Jul-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add Trust to NetworkCapabilities. Indicates the user has indicated implicit trust of a network. This generally means it's a sim-selected carrier, a plugged in ethernet, a paired BT device or a wifi they've asked to connect to. Untrusted networks are probably limited to unknown wifi AP. Change-Id: I89490bdaa3c2d63d33f876c72d8b088dc155fa3d
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
7569f1811f6061b2a6605c69bca1bb7af72ae1a0 |
|
09-Jun-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Make NetworkCapabilities publicly immutable. Applying API council comments. bug: 15142362 (cherry picked from commit Ie0bde68b72656a676d90c0343b9756fe9268d8d6) Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
01d004ef427c89fd04ab8a6d99cfb7ed81c6c962 |
|
19-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Update the docs for NetworkCapabilities Preparing for ConnectivityService API update Change-Id: I397e375b9254d4271183cf34c4a689deea1e198e
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
c9c90c771c9cd1381a49b714df9a2bc392959fcc |
|
14-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add networks and requests to CS.dump Adds debugging. Change-Id: I352dfe970c990fd210f3d1598519e321bbdd6ed5 (cherry picked from commit 9bdf6bd99db56c652ba9a62d91f258d11d19ca9f)
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
5152c0987db69dad24259a8316fb819755bfda77 |
|
13-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Merge "Add has* utility functions to NetworkCapabilities"
|
5c55e3335caf5200669e961aef557238282f59d7 |
|
08-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add has* utility functions to NetworkCapabilities Change-Id: Icf735b778a3956812be522db39c29cf54c757a25
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
0b38f08ede62cbfead15639c29d7f3ef0265dc0e |
|
21-Apr-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Fix reboot loop. The multinetwork branch is rebooting on startup with: E/AndroidRuntime( 1024): *** FATAL EXCEPTION IN SYSTEM PROCESS: NetworkStats [...] E/AndroidRuntime( 1024): Caused by: java.lang.NullPointerException: Attempt to read from field 'long android.net.NetworkCapabilities.mNetworkCapabilities' on a null object reference E/AndroidRuntime( 1024): at android.net.NetworkCapabilities.<init>(NetworkCapabilities.java:235) E/AndroidRuntime( 1024): at android.net.BaseNetworkStateTracker.getNetworkCapabilities(BaseNetworkStateTracker.java:103) E/AndroidRuntime( 1024): at com.android.server.ConnectivityService.getAllNetworkState(ConnectivityService.java:1134) E/AndroidRuntime( 1024): at com.android.server.net.NetworkStatsService.updateIfacesLocked(NetworkStatsService.java:877) E/AndroidRuntime( 1024): at com.android.server.net.NetworkStatsService.updateIfaces(NetworkStatsService.java:849) E/AndroidRuntime( 1024): at com.android.server.net.NetworkStatsService.access$600(NetworkStatsService.java:139) E/AndroidRuntime( 1024): at com.android.server.net.NetworkStatsService$2.onReceive(NetworkStatsService.java:717) E/AndroidRuntime( 1024): at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:766) E/AndroidRuntime( 1024): ... 4 more This seems to be due to NetworkCapabilities' copy constructor not null-checking its argument. Unbreak things by ignoring null. Change-Id: Iff3c38e6d72390fa86e51bfce534ebd42a262e19
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|
1448f0540ba3898080aaf599dcebe51c4fd6287d |
|
08-Apr-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add NetworkCapabilities part of API. Merging to master, adding @hide until we're ready to reveal the API change. bug:13885501 Change-Id: Ib40e28092e092630bfec557bde77f58eec8ae1c8
/frameworks/base/core/java/android/net/NetworkCapabilities.java
|