summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-06-12Move Inet[4]AddressUtils to libs/netRemi NGUYEN VAN
The classes should not be picked up from frameworks/base, as they are part of several mainline modules. Bug: 151052811 Test: m; manual: flashed, wifi and telephony working Test: atest NetworkStackCoverageTests Change-Id: I62da3419408b7eb71ea5319e8717fbb22c76a94e
2020-06-12Merge "Remove DhcpResults from NetworkStack shared lib" into rvc-dev am: ↵Remi NGUYEN VAN
b9364f50bc am: 3de2fc5747 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11835341 Change-Id: Id4b0ccf43671f76faad1a9d350a02e6dc3a9d2b9
2020-06-12Merge "Remove DhcpResults from NetworkStack shared lib" into rvc-dev am: ↵Remi NGUYEN VAN
b9364f50bc Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11835341 Change-Id: I486872d9ad128433a5e8ee41a2b4e3262eaefa7f
2020-06-12Merge "Remove DhcpResults from NetworkStack shared lib" into rvc-devRemi NGUYEN VAN
2020-06-12Merge "Adding NetworkStack Metrics/protos in the Networkstack" into rvc-dev ↵Frank Li
am: 8442e65ebc am: ab4da705a9 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11629108 Change-Id: Ic98ddd7e4db6a4dbdcbd78416cb094dc3cc918e4
2020-06-12Merge "Adding NetworkStack Metrics/protos in the Networkstack" into rvc-dev ↵Frank Li
am: 8442e65ebc Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11629108 Change-Id: I072a714dc4340e2af170b6bf3745fd856aa6dfdc
2020-06-12Merge "Adding NetworkStack Metrics/protos in the Networkstack" into rvc-devFrank Li
2020-06-11Remove DhcpResults from NetworkStack shared libRemi NGUYEN VAN
Remove the dependency on DhcpResults in moduleutils by moving toStableParcelable to NetworkStack main code, and fromStableParcelable to the test only. Only NetworkStack should be generating DhcpResultsParcelables, and only the NetworkStack should be using DhcpResults at this point (eventually the class would move from frameworks/base/core to NetworkStack). Test: built, flashed, WiFi working Bug: 149403767 Original-Change: https://android-review.googlesource.com/1277444 Merged-In: I093fa48967a48f594b242b1e05e7d481fa9ee529 Change-Id: I093fa48967a48f594b242b1e05e7d481fa9ee529
2020-06-11Merge "Increase tcp polling interval on data stall detection" into rvc-dev ↵TreeHugger Robot
am: e60d8975d3 am: 7c4dbc56f3 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11790988 Change-Id: I27ec7cc850662e729851ad6f39477c366e7670c0
2020-06-11Merge "Increase tcp polling interval on data stall detection" into rvc-dev ↵TreeHugger Robot
am: e60d8975d3 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11790988 Change-Id: I8ab5c0fa94817addbf27d9c11e8999c9a4afeef9
2020-06-11Merge "Increase tcp polling interval on data stall detection" into rvc-devTreeHugger Robot
2020-06-10Merge "Disable IPv6 stack when IPv6 provisioning is lost but IPv4 is still ↵TreeHugger Robot
alive." into rvc-dev am: 49053ad506 am: f152f468eb Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11807300 Change-Id: I033101e9ad4b4f17d105751816d80be0487f2ced
2020-06-10Merge "Disable IPv6 stack when IPv6 provisioning is lost but IPv4 is still ↵TreeHugger Robot
alive." into rvc-dev am: 49053ad506 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11807300 Change-Id: I42b053dac66f9908e308802329563c8fb56b7249
2020-06-10Merge "Disable IPv6 stack when IPv6 provisioning is lost but IPv4 is still ↵TreeHugger Robot
alive." into rvc-dev
2020-06-10Adding NetworkStack Metrics/protos in the Networkstacklifr
Here are some new protos we added. 1. NetworkIpProvisioningReported 2. NetworkDhcpRenewReported 3. NetworkValidationReported 4. NetworkStackQuirkReported Test: Run statsd_testdrive Bug: 151796056 Change-Id: I6cb6e8d94ee6ac4bc302646047fb824448c5f543
2020-06-10Merge "Use the latest stable netd AIDL interface in NetworkStack." into ↵Lorenzo Colitti
rvc-dev am: 62db6cc0aa am: f922402729 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11807304 Change-Id: Ib559465908acf15773a227c5ba2cef383d45e356
2020-06-10Merge "Use the latest stable netd AIDL interface in NetworkStack." into ↵Lorenzo Colitti
rvc-dev am: 62db6cc0aa Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11807304 Change-Id: I2b9a29a060bc2d0e93dcefae276d64e780b4301f
2020-06-10Merge "Use the latest stable netd AIDL interface in NetworkStack." into rvc-devLorenzo Colitti
2020-06-10Do not revalidate before network is ready am: 9572aa10c2 am: 265b4007ccRemi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11807299 Change-Id: If2704f44e2ee16fb709e21c0660de534a074450a
2020-06-10Do not revalidate before network is ready am: 9572aa10c2Remi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11807299 Change-Id: I9ba824d442f3878ccf912ac6862388491ab9ac32
2020-06-10Use the latest stable netd AIDL interface in NetworkStack.Lorenzo Colitti
This is not needed by NetworkStack itself, but is needed by Tethering. Update the NetworkStack version as well in order to avoid multiple different versions of the AIDL generated classes in the same process. While this should be safe, because the two APKs have two different ClassLoaders, it still seems better to be consistent. AOSP and master are already using -unstable instead of -V3. In order not to change master, the Merged-In tag is set to the CL that switched AOSP (and master) to -unstable. Test: m Bug: 150736748 Merged-In: I70e22e6d78feac8f153e746fad5bb512fc31bde1 Change-Id: I5ccafd727bc53c0c467842e51924a6e755880317
2020-06-09Disable IPv6 stack when IPv6 provisioning is lost but IPv4 is still alive.Treehugger Robot
When IPv6 provisioning loss happens due to the default route has gone, however, if IPv4 network is still provisioned, we can consider to disable IPv6 stack and still keep the current connection without disconnecting from wifi, applications will be able to reconnect over IPv4 network. Bug: 131781810 Test: atest NetworkStackTests NetworkStackNextTests Test: atest NetworkStackIntegrationTests Merged-In: I8f56a05b38c8387c91306c0dc2bdf4430ec3bd00 Change-Id: I8f56a05b38c8387c91306c0dc2bdf4430ec3bd00
2020-06-09Do not revalidate before network is readyRemi NGUYEN VAN
ConnectivityService sends notifyLinkPropertiesChanged before notifyNetworkConnected. When a captive portal URL is present, this causes NetworkMonitor to revalidate, even though the network is not ready to start validating (DNS servers have not been set yet in particular). ConnectivityService does this because the sending new LinkProperties to NetworkMonitor is part of the standard LinkProperties update flow; NetworkMonitor should be resilient to such behavior. Test: atest NetworkMonitorTest, manual (flashed, wifi working) Bug: 156697983 Original-Change: https://android-review.googlesource.com/1315220 Merged-In: I0619d37a3374726b77e162d174c5b12659db3bbb Change-Id: I0619d37a3374726b77e162d174c5b12659db3bbb
2020-06-09Increase tcp polling interval on data stall detectionChiachang Wang
NetworkMonitor suspects stall if we get high tcp fail rate in 10s. In a cell transition frequently environment, a certain percentage packets lost or retransmission may stay for a longer time interval. The shorter tcp polling interval may not able to get confident enough result. The looser timer may also increase validated result in the metrics which may not a good signal. Thus, increase the polling interval to address it. Bug: 157957111 Test: atest NetworkStackTests Merged-In: I496a32da8f57f88908402722ebe1cd3d0a8483b6 Change-Id: I496a32da8f57f88908402722ebe1cd3d0a8483b6
2020-06-06Add a SkipPresubmit annotation am: 976a9509ab am: a6020be0ddTreehugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11746680 Change-Id: I5c625a09a40faf142e2975f0521f9742aeae4e83
2020-06-06Add a SkipPresubmit annotation am: 976a9509abTreehugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11746680 Change-Id: I5668cde981f91b91e49e09d207d70378a374ec80
2020-06-05Add a SkipPresubmit annotationTreehugger Robot
The SkipPresubmit annotation allows tests to opt-out of presubmit (instead of opt-in as for @android.platform.test.annotations.Presubmit). Test: m Bug: 158153057 Original-Change: https://android-review.googlesource.com/1324131 Merged-In: Id013732057f9e8fc94be9dccba080a902d409842 Change-Id: Id013732057f9e8fc94be9dccba080a902d409842
2020-06-04Merge "Shorten the timeout of DHCP INIT-REBOOT state." into rvc-dev am: ↵TreeHugger Robot
d431edc192 am: 333e87fa11 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11707546 Change-Id: I28005537aa6d1537a60b230816b5925c01a4dbca
2020-06-04Merge "Shorten the timeout of DHCP INIT-REBOOT state." into rvc-dev am: ↵TreeHugger Robot
d431edc192 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11707546 Change-Id: I0fff7fe679e248b520e56bf226d6e77ccbfe0f7f
2020-06-04Merge "Shorten the timeout of DHCP INIT-REBOOT state." into rvc-devTreeHugger Robot
2020-06-04Merge "Refactor out the IPv4-only provisioning result verification." into ↵TreeHugger Robot
rvc-dev am: ef1c2823fd am: 6b5fbb26b3 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11685285 Change-Id: I654bd9c6d639a1b269a82ea03ad51e9f2a6df881
2020-06-04Merge "Refactor out the IPv4-only provisioning result verification." into ↵TreeHugger Robot
rvc-dev am: ef1c2823fd Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11685285 Change-Id: I442aa1421632af51cdf8e7accc0857d9e6b32671
2020-06-04Merge "Refactor out the IPv4-only provisioning result verification." into ↵TreeHugger Robot
rvc-dev
2020-06-04Merge "Adjust the timeout parameters in DHCP client." into rvc-dev am: ↵TreeHugger Robot
43fc3e16d5 am: 4e5fe665af Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11544897 Change-Id: Ibfaef880b77038f08819f9ef6e59bb0ac778a2b6
2020-06-04Merge "Adjust the timeout parameters in DHCP client." into rvc-dev am: ↵TreeHugger Robot
43fc3e16d5 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11544897 Change-Id: Ia62eba6f9ca8aa997c87c7770fbebf5ecd09b974
2020-06-04Merge "Adjust the timeout parameters in DHCP client." into rvc-devTreeHugger Robot
2020-06-03Merge "Wifi: Add 6GHz band to getWifiBand method" into rvc-dev am: ↵Ahmed ElArabawy
8098083832 am: defba844ca Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11688803 Change-Id: I1e983697ba1c21245a1127c8cd64d0db08c23fb2
2020-06-03Merge "Wifi: Add 6GHz band to getWifiBand method" into rvc-dev am: 8098083832Ahmed ElArabawy
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11688803 Change-Id: I0bce5e1af88e814ffd4779dfc434bfc2500e278a
2020-06-03Merge "Wifi: Add 6GHz band to getWifiBand method" into rvc-devAhmed ElArabawy
2020-06-03Merge "Fix venue info notification not displaying" into rvc-dev am: ↵Remi NGUYEN VAN
b4167ae242 am: 7afec38351 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11685294 Change-Id: Ic9cc7e311193d507c7a19e0dcbb23b33c55e7805
2020-06-03Merge "Fix venue info notification not displaying" into rvc-dev am: b4167ae242Remi NGUYEN VAN
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11685294 Change-Id: I741bfdd29fb13c6ab04bbb5f92e7679a922fa58e
2020-06-03Shorten the timeout of DHCP INIT-REBOOT state.Xiao Ma
Currently the timeout in the INIT-REBOOT state is 18s which allows 4 retransmits. In the scenario where DHCP server fails to response due to certain reason, DhcpClient should go back to INIT state ASAP and do the regular DHCPDISCOVER. Shorten the timeout to 5s to speed up the fallback process. Bug: 157960451 Bug: 157603386 Test: atest NetworkStackIntegrationTests Test: manual test to verify that client goes back to INIT state and broadcasts DHCPDISCOVER after 2 retransmissions. Merged-In: I9d214e193a4f80a9512a3a6f385ca3554f050386 Change-Id: I9d214e193a4f80a9512a3a6f385ca3554f050386
2020-06-03Merge "Fix venue info notification not displaying" into rvc-devRemi NGUYEN VAN
2020-06-03Add a null check to prevent NullPointerException am: 10039a4753 am: e3e707a344Lucas Lin
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11702815 Change-Id: I0d2a19858aaf8b359f7c0e354293ca53bc3116db
2020-06-03Add a null check to prevent NullPointerException am: 10039a4753Lucas Lin
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/11702815 Change-Id: Ifb1a34a9edef90fdf3220c51dea1e044af5d9c9d
2020-06-02Add a null check to prevent NullPointerExceptionLucas Lin
TelephonyManager#getAllCellInfo() may return null, so before running the foreach loop, the null check is needed. Bug: 156567547 Test: atest NetworkStackTests:NetworkMonitorTest Change-Id: I925eefaffeadd87ef1b18204cbf82a9e63779a10 Merged-In: I5d5e98add0ea2abf92156c11188739c535e7e9a8 (cherry picked from commit 9d5cc53017e82505ec29cd2f17736a0dfdc3bb91)
2020-06-01Wifi: Add 6GHz band to getWifiBand methodAhmed ElArabawy
This commit adds 6GHz band to getWifiBand method Bug: 139354972 Test: None Change-Id: I6336ed59bbf233b02b129c31a824ee02922ff0cb
2020-06-02Merge "Fallback if redirect url is not valid for captive portal login" into ↵Chiachang Wang
rvc-dev am: 72b7075e12 am: 55971628bc Original change: undetermined Change-Id: Ieb93cd7def22d721547f2a1ce7b980e697acdfde
2020-06-02Merge "Prevent race in NetworkMonitorTest" into rvc-dev am: 6d0b54800f am: ↵Chiachang Wang
b2a00f1204 Original change: undetermined Change-Id: Ie0f512d0c17788549b7e06b134048ccce2196ff0
2020-06-02Merge "Fallback if redirect url is not valid for captive portal login" into ↵Chiachang Wang
rvc-dev am: 72b7075e12 Original change: undetermined Change-Id: Ica01b663d54fc2efb5c08b8b2b9ec534ab91b5da