• Home
  • History
  • Annotate
  • only in /frameworks/opt/net/ethernet/
History log of /frameworks/opt/net/ethernet/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
76502788598a85d24b9ae3e253016a9370c49a42 01-Aug-2015 Billy Lau <billylau@google.com> Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS

Replaced the method where we used to enforce static permission
CHANGE_NETWORK_STATE to method calls that also check for WRITE_SETTINGS.
This is due to the merging of CHANGE_NETWORK_STATE permission with
WRITE_SETTINGS in M.

Change-Id: I104ac41733663b4f6b5cd30e7314574ec4acdc07
ava/com/android/server/ethernet/EthernetServiceImpl.java
0e47a8aae62e79d80db150bdde3298a100ab2d03 04-Aug-2015 Lorenzo Colitti <lorenzo@google.com> Stop DHCP if it times out.

This was not necessary in L, but it is necessary after
https://partner-android-review.googlesource.com/#/c/205415/ .

Bug: 22936203
Change-Id: I24a96c33e5bb375f36217a1c2cec2076eb5ac8b4
ava/com/android/server/ethernet/EthernetNetworkFactory.java
399830a4096b343dfd5e7f83c43e8241a2c98513 20-Feb-2015 Bill Yi <byi@google.com> am 23518c13: am d08728aa: Merge commit \'a3d7e61812f8d68ca109280c4e7589e4f968723a\' into HEAD

* commit '23518c13828ff82d5284f9df2e8f8b0690e76c46':
23518c13828ff82d5284f9df2e8f8b0690e76c46 20-Feb-2015 Bill Yi <byi@google.com> am d08728aa: Merge commit \'a3d7e61812f8d68ca109280c4e7589e4f968723a\' into HEAD

* commit 'd08728aa5050ca03b6954ddb708146e16c1fb53a':
d08728aa5050ca03b6954ddb708146e16c1fb53a 19-Feb-2015 Bill Yi <byi@google.com> Merge commit 'a3d7e61812f8d68ca109280c4e7589e4f968723a' into HEAD
f0653246d3bbf0d535d7f8ad4b59833150b129b4 16-Feb-2015 Pierre Couillaud <pierre@broadcom.com> am 52334a19: am ef8e0b94: eth: make sure dhcp is stopped before bringing up interface.

* commit '52334a190a36d6fdbfcf0a38526925183f396fb2':
eth: make sure dhcp is stopped before bringing up interface.
52334a190a36d6fdbfcf0a38526925183f396fb2 16-Feb-2015 Pierre Couillaud <pierre@broadcom.com> am ef8e0b94: eth: make sure dhcp is stopped before bringing up interface.

* commit 'ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4':
eth: make sure dhcp is stopped before bringing up interface.
ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4 11-Feb-2015 Pierre Couillaud <pierre@broadcom.com> eth: make sure dhcp is stopped before bringing up interface.

Signed-off-by: Pierre Couillaud <pierre@broadcom.com>
Signed-off-by: Blair Prescott <blairp@broadcom.com>
ava/com/android/server/ethernet/EthernetNetworkFactory.java
e054cab9bdf485f919e8642f3be38d7dcdc73bd3 21-Nov-2014 Jaewan Kim <jaewan@google.com> am a3d7e618: Add an API to check availability of Ethernet interface.

* commit 'a3d7e61812f8d68ca109280c4e7589e4f968723a':
Add an API to check availability of Ethernet interface.
a3d7e61812f8d68ca109280c4e7589e4f968723a 19-Oct-2014 Jaewan Kim <jaewan@google.com> Add an API to check availability of Ethernet interface.

Bug: 18045481
Change-Id: I3fb517c3e7fa807e2937fda92026301e312be986
ava/com/android/server/ethernet/EthernetNetworkFactory.java
ava/com/android/server/ethernet/EthernetServiceImpl.java
a633d8417b4518d951c295d55996f6eb43546327 02-Oct-2014 Lorenzo Colitti <lorenzo@google.com> am 74d270d1: Clear all Ethernet state when our interface goes away.

* commit '74d270d167ed6c3a6fa28e426da80d51a44a2af0':
Clear all Ethernet state when our interface goes away.
74d270d167ed6c3a6fa28e426da80d51a44a2af0 01-Oct-2014 Lorenzo Colitti <lorenzo@google.com> Clear all Ethernet state when our interface goes away.

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
ava/com/android/server/ethernet/EthernetNetworkFactory.java
561243aa75eb62a4845ddd55039ea9c565bf6c63 11-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> am e3cbf2e7: Don\'t accept score below 0.

* commit 'e3cbf2e7349dd366f33905784595e2e3a1cec245':
Don't accept score below 0.
e3cbf2e7349dd366f33905784595e2e3a1cec245 10-Sep-2014 Robert Greenwalt <rgreenwalt@google.com> Don't accept score below 0.

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
ava/com/android/server/ethernet/EthernetNetworkFactory.java
b0294c02f7cafc89352113165ea9dad393faecd7 23-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> am 69b9c6a7: Use config resource for tcp buffer size

* commit '69b9c6a7d6453c1c76857c5edfeb1d89a1315674':
Use config resource for tcp buffer size
69b9c6a7d6453c1c76857c5edfeb1d89a1315674 22-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Use config resource for tcp buffer size

bug:16549611
Change-Id: I48426f6b746e4bd9729bdd529d81b163ff5112a9
ava/com/android/server/ethernet/EthernetNetworkFactory.java
eee5a803fcf8154d81401a8997862b43a4203955 20-Aug-2014 Lorenzo Colitti <lorenzo@google.com> am aea43f59: Actually provide useful output in Ethernet service dump.

* commit 'aea43f5901e6591c390b83b10d3dd9b515a6442a':
Actually provide useful output in Ethernet service dump.
aea43f5901e6591c390b83b10d3dd9b515a6442a 19-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Actually provide useful output in Ethernet service dump.

Bug: 17133859
Change-Id: Ic8424004e48712e4dd906d5bb6a48ce7d38ff9d8
ava/com/android/server/ethernet/EthernetNetworkFactory.java
ava/com/android/server/ethernet/EthernetServiceImpl.java
6620ea245591d1cbf897e1c3512c135c79f1464f 19-Aug-2014 Lorenzo Colitti <lorenzo@google.com> am 41a372f1: Stop using LinkProperties for static configuration.

* commit '41a372f13a7d19807d91e09f2e955b8a61f02d5c':
Stop using LinkProperties for static configuration.
41a372f13a7d19807d91e09f2e955b8a61f02d5c 12-Aug-2014 Lorenzo Colitti <lorenzo@google.com> Stop using LinkProperties for static configuration.

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
ava/com/android/server/ethernet/EthernetConfigStore.java
ava/com/android/server/ethernet/EthernetNetworkFactory.java
ava/com/android/server/ethernet/EthernetServiceImpl.java
4d918aa164b69a155cef4b1fc4feeb6dc3e9e7de 18-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> am dcbf3b90: Add tcp buffer size data for ethernet

* commit 'dcbf3b908024d9ce1d3bf9216f8af11503459afc':
Add tcp buffer size data for ethernet
dcbf3b908024d9ce1d3bf9216f8af11503459afc 07-Aug-2014 Robert Greenwalt <rgreenwalt@google.com> Add tcp buffer size data for ethernet

bug: 16549611
Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37
ava/com/android/server/ethernet/EthernetNetworkFactory.java
e6850a0b0a254e5ed8b517ff79bd15666c1e1bdb 22-Jul-2014 Robert Greenwalt <rgreenwalt@google.com> am 3191f909: (-s ours) DO NOT MERGE Don\'t tear down based on NetworkFactory input.

* commit '3191f909a20216646f1652537eba6804b5435c74':
DO NOT MERGE Don't tear down based on NetworkFactory input.
3191f909a20216646f1652537eba6804b5435c74 20-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> 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 ed75bcf13a0b416843cf8d8e349a3340ae270f9d)
ava/com/android/server/ethernet/EthernetNetworkFactory.java
ed75bcf13a0b416843cf8d8e349a3340ae270f9d 20-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> 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
ava/com/android/server/ethernet/EthernetNetworkFactory.java
15a018d81c4bd9c33ac3bd40c84d748375f77277 12-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 4b1ec3fc: Make NetworkCapabilities publicly immutable.

* commit '4b1ec3fc8e4e4b432328297c45519fa4f6baa3cd':
Make NetworkCapabilities publicly immutable.
4b1ec3fc8e4e4b432328297c45519fa4f6baa3cd 10-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Make NetworkCapabilities publicly immutable.

Applying API council comments.

bug: 15142362
Change-Id: Ie0bde68b72656a676d90c0343b9756fe9268d8d6
ava/com/android/server/ethernet/EthernetNetworkFactory.java
8a7826b228d94342b78d4e31e18f96d0ed10e556 06-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am ff0bf8dc: Fix ethernet.

* commit 'ff0bf8dcf33f32eee17a6af5f688f6b5fef13aac':
Fix ethernet.
0ea648f0f8d935412e05955619b2ffe10a76cf7d 04-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> am 0d1b1749: Apply refactored NetworkFactory.

* commit '0d1b1749dad71372d9baeb0f852d3d91fccac73d':
Apply refactored NetworkFactory.
ff0bf8dcf33f32eee17a6af5f688f6b5fef13aac 04-Jun-2014 Robert Greenwalt <rgreenwalt@google.com> Fix ethernet.

It was attempting to update the NetworkAgent before the NetworkAgent
was created, causing NullPointerExceptions.

bug:15407938
Change-Id: Ie36b906df4b12f095a16d1b30c847a55b074d60c
ava/com/android/server/ethernet/EthernetNetworkFactory.java
0d1b1749dad71372d9baeb0f852d3d91fccac73d 28-May-2014 Robert Greenwalt <rgreenwalt@google.com> 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 a0a5625c7fa746d363b743ff7c662888a459d392)
ava/com/android/server/ethernet/EthernetNetworkFactory.java
a0a5625c7fa746d363b743ff7c662888a459d392 28-May-2014 Robert Greenwalt <rgreenwalt@google.com> 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
ava/com/android/server/ethernet/EthernetNetworkFactory.java
ad3d02fa0aee27095c039f7d9bdbf5bde3d2a1f8 28-May-2014 Lorenzo Colitti <lorenzo@google.com> am 044a758e: (-s ours) DO NOT MERGE - Make Ethernet more reliable.

* commit '044a758ebb1e38df875a45e9cfe84f4a53352aba':
DO NOT MERGE - Make Ethernet more reliable.
044a758ebb1e38df875a45e9cfe84f4a53352aba 22-May-2014 Lorenzo Colitti <lorenzo@google.com> 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 8c797f82fd3856effc121cb2d096fabbb66221a1)
ava/com/android/server/ethernet/EthernetNetworkFactory.java
8c797f82fd3856effc121cb2d096fabbb66221a1 22-May-2014 Lorenzo Colitti <lorenzo@google.com> 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
ava/com/android/server/ethernet/EthernetNetworkFactory.java
20c1c99c4351abd8bb3d6e8f966fcf3b6de0e5b0 21-May-2014 Lorenzo Colitti <lorenzo@google.com> Initial EthernetService implementation.

Bug: 14981801
Bug: 14993642
Change-Id: If392ef7063e096854ef830f4fe3b038439a1d307
ndroid.mk
ava/com/android/server/ethernet/EthernetConfigStore.java
ava/com/android/server/ethernet/EthernetNetworkFactory.java
ava/com/android/server/ethernet/EthernetService.java
ava/com/android/server/ethernet/EthernetServiceImpl.java
e7a7ef99f94206a42388b5bf42a4c0e9f61a718e 20-May-2014 Alex Cheung <alexcheung@google.com> Initial empty repository