summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-10-01Clear all Ethernet state when our interface goes away.android-wear-5.0.0_r1android-cts-5.0_r9android-cts-5.0_r8android-cts-5.0_r7android-cts-5.0_r6android-cts-5.0_r5android-cts-5.0_r4android-cts-5.0_r3android-5.0.2_r3android-5.0.2_r1android-5.0.1_r1android-5.0.0_r7android-5.0.0_r6android-5.0.0_r5.1android-5.0.0_r5android-5.0.0_r4android-5.0.0_r3android-5.0.0_r2android-5.0.0_r1lollipop-wear-releaselollipop-releaselollipop-devlollipop-cts-releaseLorenzo Colitti
Previously we did not stop DHCP or try to force a disconnect. This made it impossible to reconnect by unplugging and replugging an USB Ethernet adapter. Bug: 17736828 Change-Id: Idd8576a96b063b5ca726ee9149800bdcb0f62bd1
2014-09-10Don't accept score below 0.Robert Greenwalt
Network Factories are allowed to go below, but networks need to be constrained. Allowing the network to go below 0 meant that -1 could sometimes leak through and foul the logic. bug:17361330 Change-Id: Ife34ca0f9c233dd3c3df80f6fea580af43afcdeb
2014-08-21Use config resource for tcp buffer sizeRobert Greenwalt
bug:16549611 Change-Id: I48426f6b746e4bd9729bdd529d81b163ff5112a9
2014-08-19Actually provide useful output in Ethernet service dump.Lorenzo Colitti
Bug: 17133859 Change-Id: Ic8424004e48712e4dd906d5bb6a48ce7d38ff9d8
2014-08-19Stop using LinkProperties for static configuration.Lorenzo Colitti
Also make static IP configuration more robust (e.g., tear down our NetworkAgent when we switch between static and DHCP). Bug: 16114392 Bug: 16893413 Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
2014-08-15Add tcp buffer size data for ethernetRobert Greenwalt
bug: 16549611 Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37
2014-07-22DO NOT MERGE Don't tear down based on NetworkFactory input.Robert Greenwalt
NetworkFactory only indicates if we're interested in new connections. It shouldn't be used to tear down existing connections (they have unwanted callbacks for that). Supports linger properly as well as dealing with tie scores. bug:15612739 Change-Id: Ib3dfe673d3645b9dc4756c176958409a64ec32e4 (cherry picked from commit ed75bcf13a0b416843cf8d8e349a3340ae270f9d)
2014-06-12am 4b1ec3fc: Make NetworkCapabilities publicly immutable.Robert Greenwalt
* commit '4b1ec3fc8e4e4b432328297c45519fa4f6baa3cd': Make NetworkCapabilities publicly immutable.
2014-06-11Make NetworkCapabilities publicly immutable.Robert Greenwalt
Applying API council comments. bug: 15142362 Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
2014-06-06am ff0bf8dc: Fix ethernet.Robert Greenwalt
* commit 'ff0bf8dcf33f32eee17a6af5f688f6b5fef13aac': Fix ethernet.
2014-06-04am 0d1b1749: Apply refactored NetworkFactory.Robert Greenwalt
* commit '0d1b1749dad71372d9baeb0f852d3d91fccac73d': Apply refactored NetworkFactory.
2014-06-04Fix ethernet.Robert Greenwalt
It was attempting to update the NetworkAgent before the NetworkAgent was created, causing NullPointerExceptions. bug:15407938 Change-Id: Ie36b906df4b12f095a16d1b30c847a55b074d60c
2014-06-03Apply refactored NetworkFactory.Robert Greenwalt
Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent. Factory will track requests and by default give a single connect/disconnect api for ease of use. Then NetworkAgent is created and destroyed as needed with very simple logic. Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291 (cherry picked from commit a0a5625c7fa746d363b743ff7c662888a459d392)
2014-06-02Apply refactored NetworkFactory.Robert Greenwalt
Make NetworkFactory a concrete class and divide responsibilites between it and NetworkAgent. Factory will track requests and by default give a single connect/disconnect api for ease of use. Then NetworkAgent is created and destroyed as needed with very simple logic. Change-Id: I401c14a6e5466f2fc63b04219b97ff85bb9af291
2014-05-28am 044a758e: (-s ours) DO NOT MERGE - Make Ethernet more reliable.Lorenzo Colitti
* commit '044a758ebb1e38df875a45e9cfe84f4a53352aba': DO NOT MERGE - Make Ethernet more reliable.
2014-05-28DO NOT MERGE - Make Ethernet more reliable.Lorenzo Colitti
1. If DHCP fails, set the score to 0. Coupled with changes in NetworkAgent, that will cause us to retry DHCP the next time the link is plugged in. 2. Send LinkProperties before sending NetworkInfo, because of a race in NetworkAgent. 3. Make Ethernet work properly after a runtime restart. 4. Improve locking. 5. Clarify how things work in comments. Bug: 15295359 Change-Id: I06cd683a1633838bca1ec177e61f1829889d3934 (cherry picked from commit 8c797f82fd3856effc121cb2d096fabbb66221a1)
2014-05-28Make Ethernet more reliable.Lorenzo Colitti
1. If DHCP fails, set the score to 0. Coupled with changes in NetworkAgent, that will cause us to retry DHCP the next time the link is plugged in. 2. Send LinkProperties before sending NetworkInfo, because of a race in NetworkAgent. 3. Make Ethernet work properly after a runtime restart. 4. Improve locking. 5. Clarify how things work in comments. Bug: 15295359 Change-Id: I06cd683a1633838bca1ec177e61f1829889d3934
2014-05-21Initial EthernetService implementation.Lorenzo Colitti
Bug: 14981801 Bug: 14993642 Change-Id: If392ef7063e096854ef830f4fe3b038439a1d307
2014-05-20Initial empty repositoryAlex Cheung