summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-29Disable the IpManager timeout on Ethernet.android-cts_7.1_r1android-cts-7.1_r9android-cts-7.1_r8android-cts-7.1_r7android-cts-7.1_r6android-cts-7.1_r5android-cts-7.1_r4android-cts-7.1_r3android-cts-7.1_r29android-cts-7.1_r28android-cts-7.1_r27android-cts-7.1_r26android-cts-7.1_r25android-cts-7.1_r24android-cts-7.1_r23android-cts-7.1_r22android-cts-7.1_r21android-cts-7.1_r20android-cts-7.1_r2android-cts-7.1_r19android-cts-7.1_r18android-cts-7.1_r17android-cts-7.1_r16android-cts-7.1_r15android-cts-7.1_r14android-cts-7.1_r13android-cts-7.1_r12android-cts-7.1_r11android-cts-7.1_r10android-cts-7.1_r1android-7.1.2_r9android-7.1.2_r8android-7.1.2_r6android-7.1.2_r5android-7.1.2_r4android-7.1.2_r39android-7.1.2_r38android-7.1.2_r37android-7.1.2_r36android-7.1.2_r33android-7.1.2_r32android-7.1.2_r30android-7.1.2_r3android-7.1.2_r29android-7.1.2_r28android-7.1.2_r27android-7.1.2_r25android-7.1.2_r24android-7.1.2_r23android-7.1.2_r2android-7.1.2_r19android-7.1.2_r18android-7.1.2_r17android-7.1.2_r16android-7.1.2_r15android-7.1.2_r14android-7.1.2_r13android-7.1.2_r12android-7.1.2_r11android-7.1.2_r10android-7.1.2_r1android-7.1.1_r9android-7.1.1_r8android-7.1.1_r7android-7.1.1_r61android-7.1.1_r60android-7.1.1_r6android-7.1.1_r59android-7.1.1_r58android-7.1.1_r57android-7.1.1_r56android-7.1.1_r55android-7.1.1_r54android-7.1.1_r53android-7.1.1_r52android-7.1.1_r51android-7.1.1_r50android-7.1.1_r49android-7.1.1_r48android-7.1.1_r47android-7.1.1_r46android-7.1.1_r45android-7.1.1_r44android-7.1.1_r43android-7.1.1_r42android-7.1.1_r41android-7.1.1_r40android-7.1.1_r4android-7.1.1_r39android-7.1.1_r38android-7.1.1_r35android-7.1.1_r33android-7.1.1_r32android-7.1.1_r31android-7.1.1_r3android-7.1.1_r28android-7.1.1_r27android-7.1.1_r26android-7.1.1_r25android-7.1.1_r24android-7.1.1_r23android-7.1.1_r22android-7.1.1_r21android-7.1.1_r20android-7.1.1_r2android-7.1.1_r17android-7.1.1_r16android-7.1.1_r15android-7.1.1_r14android-7.1.1_r13android-7.1.1_r12android-7.1.1_r11android-7.1.1_r10android-7.1.1_r1android-7.1.0_r7android-7.1.0_r6android-7.1.0_r5android-7.1.0_r4android-7.1.0_r3android-7.1.0_r2android-7.1.0_r1nougat-mr2.3-releasenougat-mr2.2-releasenougat-mr2.1-releasenougat-mr2-security-releasenougat-mr2-releasenougat-mr2-pixel-releasenougat-mr2-devnougat-mr1.8-releasenougat-mr1.7-releasenougat-mr1.6-releasenougat-mr1.5-releasenougat-mr1.4-releasenougat-mr1.3-releasenougat-mr1.2-releasenougat-mr1.1-releasenougat-mr1-volantis-releasenougat-mr1-security-releasenougat-mr1-releasenougat-mr1-flounder-releasenougat-mr1-devnougat-mr1-cts-releasenougat-dr1-releaseLorenzo Colitti
am: c84dd94998 * commit 'c84dd9499807fcf281e846e46d451e677d8cbef2': Disable the IpManager timeout on Ethernet. Change-Id: I33e0c1243534db348a0b6a8f8ce1a71b68d0ff91
2016-04-29Disable the IpManager timeout on Ethernet.nougat-devLorenzo Colitti
This fixes a longstanding bug where after a DHCP timeout, we would never restart the DHCP client and get an IP address until the link bounced. Also, two minor improvements: 1. Dump IpManager info when dump() is called. 2. When onLinkPropertiesChange is called, also update mLinkProperties. We were already sending the updated LinkProperties to the NetworkAgent, so this is really only useful for dump(), but it's just one line and safe because onLinkPropertiesChange already grabs the lock. Bug: 17733693 Change-Id: I42c3319cb4bc151c547ed721baf5e83f97e23862
2016-02-22Use more IpManager featuresErik Kline
- WaitForProvisioningCallback - setHttpProxy - setTcpBufferSizes Bug: 26991160 Change-Id: I5e02039a35006f0466fb40c43805f0443cd758c2
2016-02-17Use IpManager on EthernetErik Kline
Bug: 17733693 Bug: 26991160 Change-Id: Idaee8c64bf452e58b93031d8d7ad666edb0c82ae
2015-10-15Stop requiring CHANGE_NETWORK_STATE to change Ethernet config.android-wear-n-preview-3android-wear-n-preview-2android-wear-n-preview-1android-wear-7.1.1_r1android-n-preview-5android-n-preview-4android-n-preview-3android-n-preview-2android-n-preview-1android-n-iot-preview-2android-6.0.1_r9android-6.0.1_r81android-6.0.1_r80android-6.0.1_r8android-6.0.1_r79android-6.0.1_r78android-6.0.1_r77android-6.0.1_r74android-6.0.1_r73android-6.0.1_r72android-6.0.1_r70android-6.0.1_r7android-6.0.1_r69android-6.0.1_r68android-6.0.1_r67android-6.0.1_r66android-6.0.1_r65android-6.0.1_r63android-6.0.1_r62android-6.0.1_r61android-6.0.1_r60android-6.0.1_r59android-6.0.1_r58android-6.0.1_r57android-6.0.1_r56android-6.0.1_r55android-6.0.1_r54android-6.0.1_r53android-6.0.1_r52android-6.0.1_r51android-6.0.1_r50android-6.0.1_r5android-6.0.1_r49android-6.0.1_r48android-6.0.1_r47android-6.0.1_r46android-6.0.1_r45android-6.0.1_r43android-6.0.1_r42android-6.0.1_r41android-6.0.1_r40android-6.0.1_r4android-6.0.1_r33android-6.0.1_r32android-6.0.1_r31android-6.0.1_r30android-6.0.1_r3android-6.0.1_r28android-6.0.1_r27android-6.0.1_r26android-6.0.1_r25android-6.0.1_r24android-6.0.1_r22android-6.0.1_r21android-6.0.1_r20android-6.0.1_r18android-6.0.1_r17android-6.0.1_r16android-6.0.1_r13android-6.0.1_r12android-6.0.1_r11android-6.0.1_r10android-6.0.1_r1android-6.0.0_r41nougat-mr1-wear-releasen-iot-preview-2marshmallow-mr3-releasemarshmallow-mr2-releasemarshmallow-mr1-releasemarshmallow-mr1-devmarshmallow-dr1.6-releasemarshmallow-dr1.5-releasemarshmallow-dr1.5-devmarshmallow-dr-dragon-releaseLorenzo Colitti
Requiring CHANGE_NETWORK_STATE is pointless, since immediately after doing that we require CONNECTIVITY_INTERNAL, which is a system-only permission. Bug: 23597341 Change-Id: If4c8ecbb319e547c2c81d2dcc3c7bbb63e0bc2af
2015-09-08Don't crash on startup if we can't fetch the interface list.android-6.0.0_r26android-6.0.0_r25android-6.0.0_r24android-6.0.0_r23android-6.0.0_r13android-6.0.0_r12android-6.0.0_r11marshmallow-dr-releasemarshmallow-dr-devLorenzo Colitti
The intent of the code was to catch exceptions, but it wasn't actually doing that because when a netd command fails we get an IllegalStateException, not a RemoteException. Bug: 23581852 Change-Id: I66c7c33bdc7b0d0de4fa5cd92dff054797cf860f
2015-08-07Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGSandroid-cts-6.0_r9android-cts-6.0_r8android-cts-6.0_r7android-cts-6.0_r6android-cts-6.0_r5android-cts-6.0_r4android-cts-6.0_r32android-cts-6.0_r31android-cts-6.0_r30android-cts-6.0_r3android-cts-6.0_r29android-cts-6.0_r28android-cts-6.0_r27android-cts-6.0_r26android-cts-6.0_r25android-cts-6.0_r24android-cts-6.0_r23android-cts-6.0_r22android-cts-6.0_r21android-cts-6.0_r20android-cts-6.0_r2android-cts-6.0_r19android-cts-6.0_r18android-cts-6.0_r17android-cts-6.0_r16android-cts-6.0_r15android-cts-6.0_r14android-cts-6.0_r13android-cts-6.0_r12android-cts-6.0_r1android-6.0.0_r7android-6.0.0_r6android-6.0.0_r5android-6.0.0_r4android-6.0.0_r3android-6.0.0_r2android-6.0.0_r1marshmallow-releasemarshmallow-devmarshmallow-cts-releaseBilly Lau
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
2015-08-04Stop DHCP if it times out.Lorenzo Colitti
This was not necessary in L, but it is necessary after https://partner-android-review.googlesource.com/#/c/205415/ . Bug: 22936203 Change-Id: I24a96c33e5bb375f36217a1c2cec2076eb5ac8b4
2015-02-20am 23518c13: am d08728aa: Merge commit ↵Bill Yi
\'a3d7e61812f8d68ca109280c4e7589e4f968723a\' into HEAD * commit '23518c13828ff82d5284f9df2e8f8b0690e76c46':
2015-02-20am d08728aa: Merge commit \'a3d7e61812f8d68ca109280c4e7589e4f968723a\' into HEADBill Yi
* commit 'd08728aa5050ca03b6954ddb708146e16c1fb53a':
2015-02-19Merge commit 'a3d7e61812f8d68ca109280c4e7589e4f968723a' into HEADandroid-wear-5.1.1_r1android-wear-5.1.0_r1android-m-preview-2android-m-preview-1android-m-previewmaster-soongBill Yi
2015-02-16am 52334a19: am ef8e0b94: eth: make sure dhcp is stopped before bringing up ↵Pierre Couillaud
interface. * commit '52334a190a36d6fdbfcf0a38526925183f396fb2': eth: make sure dhcp is stopped before bringing up interface.
2015-02-16am ef8e0b94: eth: make sure dhcp is stopped before bringing up interface.Pierre Couillaud
* commit 'ef8e0b9491467cf8d49fa3af7d43f12e3bd524e4': eth: make sure dhcp is stopped before bringing up interface.
2015-02-11eth: make sure dhcp is stopped before bringing up interface.Pierre Couillaud
Signed-off-by: Pierre Couillaud <pierre@broadcom.com> Signed-off-by: Blair Prescott <blairp@broadcom.com>
2014-11-21am a3d7e618: Add an API to check availability of Ethernet interface.Jaewan Kim
* commit 'a3d7e61812f8d68ca109280c4e7589e4f968723a': Add an API to check availability of Ethernet interface.
2014-11-19Add an API to check availability of Ethernet interface.android-cts-5.1_r9android-cts-5.1_r8android-cts-5.1_r7android-cts-5.1_r6android-cts-5.1_r5android-cts-5.1_r4android-cts-5.1_r3android-cts-5.1_r28android-cts-5.1_r27android-cts-5.1_r26android-cts-5.1_r25android-cts-5.1_r24android-cts-5.1_r23android-cts-5.1_r22android-cts-5.1_r21android-cts-5.1_r20android-cts-5.1_r2android-cts-5.1_r19android-cts-5.1_r18android-cts-5.1_r17android-cts-5.1_r16android-cts-5.1_r15android-cts-5.1_r14android-cts-5.1_r13android-cts-5.1_r10android-cts-5.1_r1android-5.1.1_r9android-5.1.1_r8android-5.1.1_r7android-5.1.1_r6android-5.1.1_r5android-5.1.1_r4android-5.1.1_r38android-5.1.1_r37android-5.1.1_r36android-5.1.1_r35android-5.1.1_r34android-5.1.1_r33android-5.1.1_r30android-5.1.1_r3android-5.1.1_r29android-5.1.1_r28android-5.1.1_r26android-5.1.1_r25android-5.1.1_r24android-5.1.1_r23android-5.1.1_r22android-5.1.1_r20android-5.1.1_r2android-5.1.1_r19android-5.1.1_r18android-5.1.1_r17android-5.1.1_r16android-5.1.1_r15android-5.1.1_r14android-5.1.1_r13android-5.1.1_r12android-5.1.1_r10android-5.1.1_r1android-5.1.0_r5android-5.1.0_r4android-5.1.0_r3android-5.1.0_r1lollipop-mr1-wfc-releaselollipop-mr1-releaselollipop-mr1-fi-releaselollipop-mr1-devlollipop-mr1-cts-releaseJaewan Kim
Bug: 18045481 Change-Id: I3fb517c3e7fa807e2937fda92026301e312be986
2014-10-02am 74d270d1: Clear all Ethernet state when our interface goes away.Lorenzo Colitti
* commit '74d270d167ed6c3a6fa28e426da80d51a44a2af0': Clear all Ethernet state when our interface goes away.
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-11am e3cbf2e7: Don\'t accept score below 0.Robert Greenwalt
* commit 'e3cbf2e7349dd366f33905784595e2e3a1cec245': Don't accept score below 0.
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-22am 69b9c6a7: Use config resource for tcp buffer sizeRobert Greenwalt
* commit '69b9c6a7d6453c1c76857c5edfeb1d89a1315674': Use config resource for tcp buffer size
2014-08-21Use config resource for tcp buffer sizeRobert Greenwalt
bug:16549611 Change-Id: I48426f6b746e4bd9729bdd529d81b163ff5112a9
2014-08-20am aea43f59: Actually provide useful output in Ethernet service dump.Lorenzo Colitti
* commit 'aea43f5901e6591c390b83b10d3dd9b515a6442a': Actually provide useful output in Ethernet service dump.
2014-08-19Actually provide useful output in Ethernet service dump.Lorenzo Colitti
Bug: 17133859 Change-Id: Ic8424004e48712e4dd906d5bb6a48ce7d38ff9d8
2014-08-19am 41a372f1: Stop using LinkProperties for static configuration.Lorenzo Colitti
* commit '41a372f13a7d19807d91e09f2e955b8a61f02d5c': Stop using LinkProperties for static configuration.
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-17am dcbf3b90: Add tcp buffer size data for ethernetRobert Greenwalt
* commit 'dcbf3b908024d9ce1d3bf9216f8af11503459afc': Add tcp buffer size data for ethernet
2014-08-15Add tcp buffer size data for ethernetRobert Greenwalt
bug: 16549611 Change-Id: I61d29bb88b9e58c50e03c39570f3ebb7712e4f37
2014-07-22am 3191f909: (-s ours) DO NOT MERGE Don\'t tear down based on NetworkFactory ↵Robert Greenwalt
input. * commit '3191f909a20216646f1652537eba6804b5435c74': DO NOT MERGE Don't tear down based on NetworkFactory input.
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-23Don'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
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