Commit Graph

7 Commits

Author SHA1 Message Date
Robert Greenwalt
84502f5300 Add tcp buffer size data for ethernet
bug: 16549611
Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37
2014-08-15 15:10:05 -07:00
Robert Greenwalt
62e8e4d3d5 DO NOT MERGE Don't tear down based on NetworkFactory input.
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 8b07ee36a2)
2014-07-22 17:38:42 +00:00
Robert Greenwalt
694a835e89 Make NetworkCapabilities publicly immutable.
Applying API council comments.

bug: 15142362
Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
2014-06-11 18:36:52 +00:00
Robert Greenwalt
521b2bd483 Fix ethernet.
It was attempting to update the NetworkAgent before the NetworkAgent
was created, causing NullPointerExceptions.

bug:15407938
Change-Id: Ie36b906df4b12f095a16d1b30c847a55b074d60c
2014-06-04 11:52:08 -07:00
Robert Greenwalt
301c18a01d Apply refactored NetworkFactory.
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 8af038d056)
2014-06-03 01:22:54 +00:00
Lorenzo Colitti
0ffeaf5c76 DO NOT MERGE - Make Ethernet more reliable.
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 21be8b6dc7)
2014-05-28 09:29:21 +00:00
Lorenzo Colitti
eb730a7ffc Initial EthernetService implementation.
Bug: 14981801
Bug: 14993642
Change-Id: If392ef7063e096854ef830f4fe3b038439a1d307
2014-05-21 19:53:04 -07:00