summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2019-03-21Merge "Fix Automated API Review issues." am: 43c1ade661 am: 9e3f29037bPaul Hu
am: ce18c5a1ec Change-Id: Iba1630161579571d4975aba9bbd5c767f82c8a98
2019-03-21Merge "Fix Automated API Review issues."Paul Hu
2019-03-21Fix Automated API Review issues.paulhu
1. Some API's argument/return value must be marked either @NonNull or @Nullable. 2. Change some system APIs to public APIs. 3. Modify the method name Bug: 126700123 Bug: 126702339 Bug: 126699682 Bug: 118296575 Bug: 126699216 Bug: 126699675 Bug: 126699429 Bug: 126699193 Bug: 123586045 Test: atest FrameworksNetTests Change-Id: Iaa2832cdcf83758ed0fec81b954a0c63bc5a7bf6
2019-03-20Merge "Improve partial connectivity" am: f6cbc2d533 am: 270e77d930Lucas Lin
am: 728a68eefc Change-Id: I25f9d056c26bf947c2e09516da51b627c3da9685
2019-03-21Merge "Improve partial connectivity"Lucas Lin
2019-03-20Renamed the variableJack Yu
Changed nrs (stands for NetworkRegistrationState) to nri (stands for NetworkRegistrationInfo). Test: Build Bug: 127657991 Merged-In: I4deb1271818019465c55b59cd4a4a8029b514697 Change-Id: I4deb1271818019465c55b59cd4a4a8029b514697 (cherry picked from commit 1746d2582ab0f8fc904f5799c2a989d5277b30e4)
2019-03-20Improve partial connectivitylucaslin
Improve the design and fix some nits. Bug: 113450764 Test: 1. Build pass 2. atest FrameworksNetTests 3. atest NetworkStackTests 4. Change captive_portal_https_url to https://invalid.com to simulate partial connectivity. Change-Id: Ia56645841d00d2ed8406cfeacb86a4a27fd58650
2019-03-19Renamed NetworkRegistrationState to NetworkRegistrationInfoJack Yu
API review changes. The class covers more information other than registration state. Test: Build Bug: 127657991 Merged-In: I8af36b388182ab08257b64c37078f156d4821709 Change-Id: I8af36b388182ab08257b64c37078f156d4821709 (cherry picked from commit e27d3fde88d37332cc9970c79b25060c003e9f17)
2019-03-19Merge "Move the IpMemoryStore to the network stack." am: 93bf5ef495 am: ↵Xiao Ma
5db1518bfa am: 3176d57308 Change-Id: I243056012d2f099d96a33657c0eb63a5b66a2cfe
2019-03-18Renamed the variableJack Yu
Changed nrs (stands for NetworkRegistrationState) to nri (stands for NetworkRegistrationInfo). Test: Build Bug: 127657991 Change-Id: I4deb1271818019465c55b59cd4a4a8029b514697
2019-03-18Renamed NetworkRegistrationState to NetworkRegistrationInfoJack Yu
API review changes. The class covers more information other than registration state. Test: Build Bug: 127657991 Change-Id: I8af36b388182ab08257b64c37078f156d4821709
2019-03-18Move the IpMemoryStore to the network stack.Chalard Jean
Test: atest FrameworksNetTests Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6
2019-03-17Merge "Remove NetworkParcelable" am: 205886d28f am: 7201f61c57Remi NGUYEN VAN
am: 13be9e9fcd Change-Id: Ifec0dd683bf9c9b73c4af12835b76d284559daf8
2019-03-17Merge "Remove aidl wrappers for framework parcelables" am: 1a1396070e am: ↵Remi NGUYEN VAN
7cf43a2f53 am: 5fd40295cb Change-Id: I019fbbfd5dde5268cbb38bdaee1bc50a434372bc
2019-03-18Merge "Remove NetworkParcelable"Remi NGUYEN VAN
2019-03-18Merge "Remove aidl wrappers for framework parcelables"Remi NGUYEN VAN
2019-03-16Remove NetworkParcelableRemi NGUYEN VAN
With the @JavaOnlyStableParcelable annotation, Network can now be used as-is as a framework parcelable. Test: atest FrameworksNetTests NetworkStackTests Bug: 126477266 Change-Id: I5d9695a31b3ac48d10edcf08ccd0c34375353b79
2019-03-16Remove aidl wrappers for framework parcelablesRemi NGUYEN VAN
The new @JavaOnlyStableParcelable annotation allows using the framework parcelables directly, which removes a lot of boilerplate. Includes new copy constructors for IpPrefix and LinkAddress so they can be copied easily as-is into parcelables. Test: atest FrameworksNetTests Test: booted, WiFi works Bug: 126477266 Change-Id: Icac8afe498d0b5ebf9a0d0b9eceb14d64a29b381
2019-03-14Moved transport to IntDefJack Yu
Moved out from the sub class per API review feedback. Test: Build Bug: 128607082 Merged-In: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0 Change-Id: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0
2019-03-14Moved transport to IntDefJack Yu
Moved out from the sub class per API review feedback. Test: Build Bug: 128607082 Change-Id: I1b513bcaaa0ebf47c14593d962579ed48a7c6db0
2019-03-13Merge "Support partial connectivity probe result option" am: da0ebedb47 am: ↵Chiachang Wang
cca7cdc8d9 am: 07b34ba935 Change-Id: I8781b8df0ec631cf4675335c30f7954254b0c617
2019-03-12Support partial connectivity probe result optionChiachang Wang
Bug: 124629963 Test: atest NetworkStackTests Change-Id: I1c22bad6ba94d23892e8907d6e7b28d074922339
2019-03-12Merge "Check if network has partial connectivity" am: 174ae05817 am: 6cf91d1558Lucas Lin
am: c0448b383f Change-Id: Ib6c5ecc8238e1ac237eddcc00802fa5e7c0e24b9
2019-03-12Check if network has partial connectivitylucaslin
In some networks, network validation may only get success result for http probe but fail result for https probe. For this kind of network, it may still work at some websites or apps, but user didn't know about that. In order to fix this issue, we will check if network has partial connectivity and notify user to make a choice if they want to use this partial connectivity or not. Bug: 113450764 Test: 1. Build pass. 2. Fake partial connectivity case for testing. 3. atest FrameworksNetTests 4. atest NetworkStackTests Change-Id: I69ed00ac4850904ff708c9fef22e148879a10e92
2019-03-09Merge "Send data stall data to statsd"Chiachang Wang
2019-03-08Give Telephony the permissions to access the network stack.Chalard Jean
Test: manual Change-Id: I28308f421aa955fe110b50452b115a0178b24745
2019-03-08Send data stall data to statsdChiachang Wang
Short term fix to send the metrics via legacy API. This allows data stall metrics available in internal branch. Bug: 120452078 Test: atest NetworkStackTests and test against statsd Change-Id: I4dd08086f4aee12bbb9478551d8039e9bb6a381e
2019-03-07Merge "Fix SocketUtils API"Remi NGUYEN VAN
2019-03-06Fix SocketUtils APIRemi NGUYEN VAN
- connect, sendTo, bind were added as public API, so do not need to be maintained as SystemApi in SocketUtils. These APIs were added in Q timeframe. - Add @Nullable/@NonNull annotations. Bug: 126699304 Bug: 126477266 Test: booted, WiFi works Change-Id: I3f086ac8952cfd6a4d8f861d2e1c7aa1ca8be999
2019-03-05Update description based on API feedbackChiachang Wang
Bug: 126883311 Test: Build pass atest NetworkStackTests Change-Id: If3d21829bbe98d125215abe96247ca7d5a66d1f3
2019-02-26Add more test case and some clean upChiachang Wang
Bug: 120452078 Test: atest NetworkStackTests Change-Id: Ifb981ccdaa7818bf2bebec98e91979007222910b
2019-02-22Merge "Injecting data stall event to statsd"Chiachang Wang
2019-02-22Injecting data stall event to statsdChiachang Wang
Bug: 121185319 Bug: 120452078 Test: - Build and test against data stall code - atest NetworkStackTests Change-Id: I2ee16085e7861d38bcd203c98ffd682f86fdc867
2019-02-20Merge "Consider 200 response with "Content-length <= 4" to not be a captive ↵Treehugger Robot
portal."
2019-02-16Merge "Fix framework and NetworkStack classes conflicts"Remi NGUYEN VAN
2019-02-15Fix framework and NetworkStack classes conflictsRemi NGUYEN VAN
Classes that are used in framework.jar cannot be linked in NetworkStack, as the framework takes precedence in the classpath. This prevents the networkstack from using these classes due to the hidden API usage detection. Do the following: - jarjar any shared source file between framework and NetworkStack, so the version in the NetworkStack uses a different package. - Move any shared class not used in the NetworkStack to services.net The CL uses jarjar on the app copy and not the framework classes, as the framework cannot be updated without an OTA, and non-network stack specific classes should not be renamed because of the network stack. Test: atest FrameworksNetTests NetworkStackTests Test: flashed svelte build, WiFi works Bug: 124033493 Change-Id: I85d888b756adc28c36638913632bfdfdbf0e0486
2019-02-15Merge "Remove NetworkMonitor dependency on ICaptivePortal"Remi NGUYEN VAN
2019-02-15Remove NetworkMonitor dependency on ICaptivePortalRemi NGUYEN VAN
ICaptivePortal is used in the framework and cannot be used as a dependency in NetworkMonitor, as the framework class takes precedence when linking. Also fix NetworkMonitorTest that was not verifying the right startCaptivePortalApp call. Test: atest FrameworksNetTests NetworkStackTests Bug: 124033493 Change-Id: I8e7bb79e50650ae182a2e4277fb49abf5fb6d910 Merged-In: Ib6a89e54312628662b130fbeec18d11e139f09fa
2019-02-15Merge "Remove deps from framework on netd interfaces"Remi NGUYEN VAN
2019-02-14Remove deps from framework on netd interfacesRemi NGUYEN VAN
If included in framework.jar, the interfaces conflict with any app that needs to depend on them, including the NetworkStack. Bug: 124033493 Test: atest FrameworksNetTests NetworkStackTests Change-Id: I2db9f87b7154130726d4700b241d55b041635d98 Merged-In: I0ecae20d514bf888f3a80331f19369ceb1c52aa3
2019-02-14Merge "Use ServiceState to get data cell ID"Chiachang Wang
2019-02-14Add "close" socket option for immediately close socket after finish check ↵Hongshik
captive portal. Unexpected packets are observed after captive portal check. Due to the packets, modem can't fall-back to idle state (modem remained as active state). It makes unnecessary power consumtion. To prevent it, "close" option is added in sendHttpProbe() Test: check socket close. Change-Id: I5b6987071ad915081846504adbb209eb371fd1c3
2019-02-14Use ServiceState to get data cell IDChiachang Wang
ServiceState now contains a CellIdentity that can be obtained specifically from the data subscription, and for PS on cell only. This should be used for connectivity level network monitoring info. Bug: 123893112 Test: 1. atest NetworkMonitorTest 2. Verify if cell id is correct Change-Id: Ieb00de84a0d518e3197e3884f946b872e998304a
2019-02-12Consider 200 response with "Content-length <= 4" to not be a captive portal.Sehee Park
There's no point in considering this a captive portal as the user cannot sign-in to an empty page. Probably the result of a broken transparent proxy. Bug: 122999481 Test: Manual Change-Id: I1ca44092ac05a1708d9b41c5a4aad545b71b7eab Signed-off-by: Sehee Park <sehee32.park@samsung.com>
2019-02-12Merge "Remove hard-coded NetworkStack package name"Remi NGUYEN VAN
2019-02-08Remove hard-coded NetworkStack package nameRemi NGUYEN VAN
Have the network stack pass its package name in showProvisioningNotification instead. Bug: 124033493 Test: flashed, WiFi and captive portal works Test: atest FrameworksNetTests NetworkStackTests Change-Id: I1f3312768ba1fb34e99a827e1fcdaf7510e318a8
2019-02-07Merge "Add API for NetworkStack to start captive portal"Remi NGUYEN VAN
2019-02-06[KA07] Drop TCP keepalive ack packetsAaron Huang
To support TCP keepalive offload, APF filter needs to add program for dropping keepalive ack packets when offload is starting. Bug: 114151147 Test: runtest frameworks-net -c android.net.apf.ApfTest Change-Id: If16a9bc04eb29dfedb950b6e4c85fe9ad4cf259f
2019-02-06[KA04] Expose TCP socket keepalive APIjunyulai
The new set of API allows applications to request keepalives offload for established TCP sockets over wifi. However, the application must not write to or read from the socket after calling this method, until specific callbacks are called. Bug: 114151147 Test: atest FrameworksNetTests FrameworksWifiTests NetworkStackTests Change-Id: I3880505dbc35fefa34ef6c79555458ecf5d296a4
2019-02-06Add API for NetworkStack to start captive portalRemi NGUYEN VAN
Endpoints protected with INTERACT_ACROSS_USERS_FULL, such as startActivityAsUser, should only be used by modules signed with the platform cert. The NetworkStack needs to have the system server start the application so this restriction can be applied. Bug: 123846255 Test: flashed, captive portal works from primary and secondary user Change-Id: Ib3e427b3fd03ced80c02985e795f79b096a2ec9a