e1a6cf2caa628a02032be9b26462958f3769bd70 |
|
14-May-2015 |
Erik Kline <ek@google.com> |
Add a test that Network#getNetworkHandle() behaves sanely. Additionally: - make zero more obvious for debugging, rather than emitting some inscrutable magic value. Bug: 19537384 Change-Id: Iac9a3297a0dda1ba3d69fd01cf6de81f01fd837e
/frameworks/base/core/java/android/net/Network.java
|
d895999858db47e6f2d090a94b29749fa39278c2 |
|
05-Jun-2015 |
Erik Kline <ek@google.com> |
Make public Network#bindSocket(FileDescriptor). Code that uses android.system.Os to create sockets as FileDescriptors should be able to bind them to networks. Note that FileDescriptors could already be marked as "protected from VPNs" via NetworkUtils#protectFromVpn(), but heretofore were not easily bound to any particular network. Bug: 21449922 Change-Id: I4bb86db5d95d5a55bb2d7e245848d11eaa351e65
/frameworks/base/core/java/android/net/Network.java
|
cee9b51c4beec4494d78bab784ba7e7e20c30e31 |
|
06-May-2015 |
Paul Jensen <pauljensen@google.com> |
Query HTTP proxy for network via a new API to avoid permissions exceptions Add @hidden ConnectivityManager.getProxyForNetwork() API. Bug:20470604 Change-Id: I6a9bc4afc8273bc43b14cdeccfedbbf3ff66be40
/frameworks/base/core/java/android/net/Network.java
|
25f3b7bb2d05e4a020e7d82ada1543d2cdc75fbb |
|
05-Mar-2015 |
Erik Kline <ek@google.com> |
multinetwork API: native implementation Bug: 19537384 Change-Id: I04f4a7de2b1e583989b67a853df6ab50289c2185
/frameworks/base/core/java/android/net/Network.java
|
57bf2a8a38e929f00f3323cf97a8ea7a9af900ce |
|
11-Apr-2015 |
Prerepa Viswanadham <dham@google.com> |
Merge commit 'e593d0a' into merge_work Change-Id: I4f8ae40fc446cd9cda4d5c6ec99469a98dda595b
|
582b868c4466b25dd8a8e21c423b9180d25dac41 |
|
06-Apr-2015 |
Lorenzo Colitti <lorenzo@google.com> |
Unhide Network.openConnection(URL, Proxy). Spun off from https://partner-android-review.googlesource.com/#/c/205463/ for ease of review. Bug: 19416463 Change-Id: Ia37a53a350d55b5514b949242368dfe396f6b9a0
/frameworks/base/core/java/android/net/Network.java
|
72db88e46fba5f2581eb21c042dc79887cda1c10 |
|
10-Mar-2015 |
Paul Jensen <pauljensen@google.com> |
Deprecate static ConnectivityManager.get/setProcessDefaultNetwork() functions. These functions risk hitting an unchecked Exception due to ConnectivityManager not being instantiated yet. Also, change Network.openConnection() to throw a checked Exception rather than an unchecked Exception when ConnectivityManager is not yet instantiated. bug:19416463 Change-Id: Ie1e2b3238aec0343d267c76b64927073f2f05f85
/frameworks/base/core/java/android/net/Network.java
|
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac |
|
28-Feb-2015 |
John Spurlock <jspurlock@google.com> |
Remove unused imports in frameworks/base. Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/net/Network.java
|
7014da74e861f8cfc34fcbd528b4c83a1dc97503 |
|
20-Jan-2015 |
Neil Fuller <nfuller@google.com> |
resolved conflicts for merge of 7382c02d to lmp-mr1-dev-plus-aosp Change-Id: Idfa2750230aa56e7ae34fcc33d62558df942abd0
|
50a01d89606b40dd151ad407d05c3b2867bbdbad |
|
12-Jan-2015 |
Neil Fuller <nfuller@google.com> |
Changes associated with an OkHttp upgrade Change-Id: I2a4db602aa7ffdef886e0f1a955715a2551a87a5
/frameworks/base/core/java/android/net/Network.java
|
e0bef71662d81caaaa0d7214fb0bef5d39996a69 |
|
10-Dec-2014 |
Paul Jensen <pauljensen@google.com> |
Fix several HTTP proxy issues with multinetworking. 1. Send PROXY_CHANGE_ACTION broadcast when any network's proxy changes, not just the default network. 2. When a process is bound to a particular Network, update the proxy system properties to those for the bound Network, and keep them updated when PROXY_CHANGE_ACTION broadcasts are received. 3. Make Network.openConnection() use the proxy for the Network. bug:17905627 bug:17420465 bug:18144582 (cherry-pick of https://android-review.googlesource.com/#/c/115170) Change-Id: Ia2819985e6108a8c121e74c683a5646becfd0a97
/frameworks/base/core/java/android/net/Network.java
|
e15db7c23d9e99e6f788a69d07a8436c6039bb08 |
|
22-Oct-2014 |
Sreeram Ramachandran <sreeram@google.com> |
Add an API to select a network for a DatagramSocket. Mirrors the API that does this for Sockets. Bug: 18076907 Change-Id: Ifa27b39e23797558546aab751fbfb3aed3b7dbcb
/frameworks/base/core/java/android/net/Network.java
|
07ed07459a7266418b0105e2823effadd69a80d9 |
|
08-Sep-2014 |
Paul Jensen <pauljensen@google.com> |
Make Network.openConnection() share HttpHandlers not OkHttpClients. HttpHandler and HttpsHandler classes have a lot of bug fixes baked into them that the Network.openConnection() API should be using, for example disabling SPDY support. bug:17420465 Change-Id: I9f1472753a542d1dd6bffde3a60c37a9145098aa
/frameworks/base/core/java/android/net/Network.java
|
0ed0a28ad82a210d8d932aba207ad51b6c4fd0c4 |
|
29-Aug-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Use per-Network connection pools for openConnection. If we don't do this, per-network HTTP requests will go over the wrong network if any previous HTTP request was made by the same app on another network. Bug: 17300006 Change-Id: I1854c16dee6adb9e81fb12b097577439d69a644e
/frameworks/base/core/java/android/net/Network.java
|
9f1274b7e43d14c7e3a42148ebfda3905fec8b06 |
|
21-Aug-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Rework the per-network URL API. This addresses API council comments. Bug: 17112978 Change-Id: I698b243b2b685d1f25414cee72450be3ae0c2bf0
/frameworks/base/core/java/android/net/Network.java
|
dc418e3365761c575247791229078b26212b8df9 |
|
31-Jul-2014 |
Dan Sandler <dsandler@android.com> |
Fix docs build. Change-Id: I3be4c5b74e85d2491316986d8c3c0575cd01a8fc
/frameworks/base/core/java/android/net/Network.java
|
5b37fa2ed574dbfaf2a2ef6adf5daccb9db941a8 |
|
29-Jul-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Allow using third-party HTTP/... stacks for per-network URLs. Also switch to double-checked locking for mNetworkBoundSocketFactory and OkHttpClient. Change-Id: Ic52776ee760036ad5623b7496156b8909dc282fa
/frameworks/base/core/java/android/net/Network.java
|
f0382899c71a540103ba2dbcd0fe8aa8c926c4a8 |
|
30-Jul-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Use a new socket for each of the host's IP addresses. If Socket.connect() times out, the socket cannot be used any more - any attempt to do so fails with EBADF. Use a new socket for each IP address. Bug: 16664129 Change-Id: If3616df86f7c2da0eabd30dca5db65d0da85cb17
/frameworks/base/core/java/android/net/Network.java
|
c473dc4e4f090899f1d95a01669c02416cd27feb |
|
17-Jul-2014 |
Lorenzo Colitti <lorenzo@google.com> |
Add a getBoundURL method that returns a network-specific URL. Change-Id: I4b57e675bb87064ab75dcc36b00fdc7a2987b86e
/frameworks/base/core/java/android/net/Network.java
|
32a58f00d388584f5f47c0d5d4c74ce7c8457d78 |
|
20-Jun-2014 |
Paul Jensen <pauljensen@google.com> |
Use return values from JNI functions binding sockets and processes to networks. bug:15757549 Change-Id: If23b14febc923b9a0348f0cf9029fd4bf6e8d725
/frameworks/base/core/java/android/net/Network.java
|
2c7bf2cb46024eb87aec4b5ac0fa15477cc14f7a |
|
24-Jun-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Clean up and add some Network logging. Dumps the netid for the Network and adds that to the NetworkAgentInfo. Change-Id: Id9fbcc55ca55bf1a020f747f0c44902efb1b5f87
/frameworks/base/core/java/android/net/Network.java
|
6078b50b017fbcf8d6cbf9f83226ed5667d5729e |
|
12-Jun-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Apply API Council comments to ConnectivityManager rename isNetworkActive -> isDefaultNetworkActive rename registerNetworkActiveListener -> registerDefaultNetworkActiveListener make listenForNetwork/requestNetwork take a NetworkRequest rename NetworkCallbackListener -> NetworkCallback rename listenForNetwork -> registerNetworkCallback rename releaseNetworkRequest -> unregisterNetworkCallback remove NetworkRequest param from NetworkCallback functions rename onNetworkCapabilitiesChagned to onCapabilitiesChanged remove onReleased change time units in onLosing from Sec -> ms bug: 15142362 Change-Id: Ibc96e3f461706efe1eafa0d85605249cfd6e9fdd
/frameworks/base/core/java/android/net/Network.java
|
0a363a319ff6e7b83c4c37b3406f4b0bd2dbf273 |
|
29-May-2014 |
Paul Jensen <pauljensen@google.com> |
Apply API review to android.net.Network: - socketFactory() renamed to getSocketFactory() - Make sure bindProcess() documentation points developers to getSocketFactory() as the preferred approach - Move bindProcess() and unbindProcess() to ConnectivityManager.setProcessBoundNetwork() -- passing null clears it. - Move getProcessBoundNetwork() to ConnectivityManager.getProcessBoundNetwork(). Bug:15142362 Bug:13885501 Change-Id: Ia55c59d52e1ec8bf10dd0d9d037bd04c0998bc71 (cherry picked from commit 5ca1e6675bf4182b6e9ca76a7696bf2e38e96c4f)
/frameworks/base/core/java/android/net/Network.java
|
8ef3401d2ae613ff0f14d75be860f5c833019494 |
|
27-May-2014 |
Paul Jensen <pauljensen@google.com> |
Adjust Network's SocketFactory to restrict host name resolution to that Network bug: 13885501 Change-Id: Iab9a5a2e060fe261f4be9ba974c1a55fb6b9c98b (cherry picked from commit 92064edf55ee11967d9cc7529125236ee8e469b2)
/frameworks/base/core/java/android/net/Network.java
|
2d6f265d00db883616989788595ead4f3af902a0 |
|
20-May-2014 |
Paul Jensen <pauljensen@google.com> |
Implement bind-to-network functionality of android.net.Network. This is implemented by calling through to netd_client. Included are functions to bind-to-network-for-process strictly for DNS to facilitate startUsingNetworkFeature() reimplementation. bug: 13885501 Change-Id: Ib22c7d02ea81d251bdfeeb0f64a47ce32eefcb1b (cherry picked from commit dbf76f898f1f57eb74722358087c926d2f529bda)
/frameworks/base/core/java/android/net/Network.java
|
d19c41c0bbd2de637eb6a52a49e0ebcd420cf2ba |
|
19-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add javadoc and unhide new API Change-Id: I12e475bbf4000c7acec4ca27b1d3bf8f870cc2cf
/frameworks/base/core/java/android/net/Network.java
|
85956263c1a7451df14720b0ae9430227f594856 |
|
19-May-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
Add docs to Network Still must be hidden until we unhide the new API in ConnectivityManager. Change-Id: I4749e56777199093cdba9223eb3d721c3174047d
/frameworks/base/core/java/android/net/Network.java
|
3e32a4b667f54bb25157ad25d2a026057d642000 |
|
14-May-2014 |
Paul Jensen <pauljensen@google.com> |
Add Network-specific host name resolution API. Change-Id: I932f73158a8f6e3ccc36c319d138180dff2aa070
/frameworks/base/core/java/android/net/Network.java
|
9ba9c58e4a249456794fbfb9989f27bd846d067e |
|
20-Mar-2014 |
Robert Greenwalt <rgreenwalt@google.com> |
First pass on multinetwork framework Starting to switch netd to use NetId. Adding the Network identifying class bug:13550136 Change-Id: Ie0db4fb17c9300bfafb63329adfa02339911b33d
/frameworks/base/core/java/android/net/Network.java
|