- Jan 25, 2023
-
-
Patrick Rohr authored
external/cronet has been added to the default manifest in tm-mainline-prod, so this soong variable is not needed anymore. Test: TH Merged-In: I5750d87c9cab0e9d4d213b5a81a2d71cc9610a08 Change-Id: I5750d87c9cab0e9d4d213b5a81a2d71cc9610a08
-
Patrick Rohr authored
-
- Jan 24, 2023
-
-
Treehugger Robot authored
-
Chidera Olibie authored
To be used for POST request tests. This is a copy of the class in chromium. https://source.chromium.org/chromium/chromium/src/+/main:components/cronet/android/test/javatests/src/org/chromium/net/TestUploadDataProvider.java Test: none Bug: 251012627 Change-Id: Ib5b7f425b463ddf74d090b5da1ecd605e5297ddf
-
Ryan Zuklie authored
This runs the Perfetto and NetworkTraceHandler initialization on system initialization along with the existing NetworkStatsService. The code is run within the context of the system_server and is only executed on U or later devices running eng or userdebug builds. Bug: 246985031 Test: build & flash Change-Id: I2b091e31c3ded54c0d7062d7d73f33ed47e0bf98
-
Ryan Zuklie authored
This adds the DataSource base class, data source registration and overrides the lifecycle methods. Adding the Perfetto SDK increases the size of the tethering apex by 450kb (~150 KB for the compressed apex). Bug: 246985031 Test: atest libnetworkstats_test Change-Id: Ie2e8f3e43c8080434408f752346e575a19e9042e
-
Patrick Rohr authored
Since the API was renamed, remove all mentions of cronet from tests. Test: TH Change-Id: I4636f971a70f45d8b12c053989bf353bd0471c26
-
Patrick Rohr authored
In addition, we may want an import for external/cronet. (Though that directory isn't currently available in tm-mainline-prod, so that could potentially cause issues). Test: TH Change-Id: I61734094d3b2f92a2d6d87b221b11ae68e81f270
-
Patrick Rohr authored
To be more inline with the newly added android.net.http APIs. Test: TH Change-Id: Ibd3d875364a931d7da0ff5c6dc574ce2c5360335
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Remi NGUYEN VAN authored
-
Treehugger Robot authored
-
- Jan 23, 2023
-
-
Ryan Zuklie authored
This adds the base (non-perfetto) NetworkTraceHandler with support for starting and stopping tracing, and pulling messages from BPF. The included test covers the end-to-end scenario from socket creation, socket tagging and data traffic. Bug: 246985031 Test: atest --iterations 500 libnetworkstats_test Change-Id: I035d2e03fa7c461ecb93d207b7fd2f53e6a2f52e
-
Treehugger Robot authored
-
Stefano Duo authored
At the moment CronetCtsTestServer doesn't support QUIC and doesn't report the negotiated protocol (i.e., UrlResponseInfo#getNegotiatedProtocol() will always return "unknown"). To circumenvent that, use "https://source.android.com" as target URL. Test: atest CtsCronetTestCases Change-Id: If5bf3d5e8f38675cddabba597db2d64e59cc5b60
-
Stefano Duo authored
The internet connectivity check will be required by multiple test classes. Refactor it into a standalone utility function and port the code to Kotlin at the same time. Also, instead of asserting, make use of junit.Assume. This way when ther is no internet connection the test won't fail but it will just be reported as skipped Test: atest CtsCronetTestCases Change-Id: I170aa19e23a9532d84da72cbcec567b65519bb0b
-
Ryan Zuklie authored
This adds the core BPF implementation of Android network packet tracing. The new code looks into the skb to pull out various bits of information. Both the program and the ring buffer are restricted to 5.8+ kernels and userdebug or eng builds. With the packet_info_config map defaulting to zero, userdebug and eng builds won't run any of the tracing today. The only effect will be 32k memory increase for the ringbuf and the check on the config array. Bug: 246985031 Test: build & flash both userdebug and user Change-Id: I144da2971c0738b565ad58abc17e456209f13bde
-
Ryan Zuklie authored
Test: build & install connectivity module Change-Id: I869810d05ad8266b6a4107a5276864fdbcdbd9b0
-
Maciej Żenczykowski authored
Bruce Chen hasn't been with us since December. Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Id62e55244208c4db70c178d2c72bd904226acbf9
-
Treehugger Robot authored
-
Mohannad Farrag authored
* changes: gn2bp Remove API helpers from cronet_aml_api_sources gn2bp: Add framework-annotations-lib to cronet_aml_api_java
-
Mohannad Farrag authored
-
Motomu Utsumi authored
Follow aosp/2388112 This CL does not add cronet_aml_api_helpers_sources module since it is not used yet. api helper sources will be added when they are used. Test: ./update_results.sh, TH in aosp/2398772 Change-Id: I9f05aff302de9c24bc555f53e5e54d10f0d82057
-
Motomu Utsumi authored
Follow aosp/2388112 Test: ./update_results.sh, TH in aosp/2398772 Change-Id: Ia9f3f221aab26b3cae59fecaf505dfb65c93ed95
-
Motomu Utsumi authored
Follow workaround in aosp/2389777 Test: ./update_results.sh, TH in aosp/2398772 Change-Id: I43166004a20ca73c3375618232b349e724cfd211
-
Remi NGUYEN VAN authored
When registering and advertising a service on the same device, it is possible for NsdService to find the service on the dummy0 interface. It is however unusable and not resolveable. Skip callbacks on the dummy0 interface as they would confuse apps and tests. Bug: 266176036 Test: atest NsdServiceTest Change-Id: I98cca0135e0f6936187d45707cbdad7a7f263ff1
-
Chalard Jean authored
Even if there are no preferences, the allow list needs to be updated upon adding a new user, because it's set unconditionally when the network connects. Adding all existing UIDs would address this issue too and we probably want to do it, but immediately this seems simpler. Bug: 266136779 Test: new test for this Change-Id: I77091a6c3d3ccf2b80ab0aaa01d09ef0df922501
-
Treehugger Robot authored
-
- Jan 20, 2023
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Jean Chalard authored
-
Chalard Jean authored
Bug: 259000745 Test: FrameworksNetTests CtsNetTestCases CtsHostsideNetworkTests Change-Id: I270d76471002f7292c17caaf8b03df3c5482e769
-
chiachangwang authored
Add a flag to control dynamic keepalive mode so that this feature could be dynamically enabled via flag push. Default is enabled in KeepaliveTracker. Bug: 259000745 Test: atest FrameworksNetTests Change-Id: I438de9aefd22229669a9ae4da5fd109fdfa73b10
-
Patrick Rohr authored
Cronet is now built from source, so this code is not used anymore. Test: TH Merged-In: I2a5ba4d5805fbb56945de74eb14ae9ef510e6f45 Change-Id: I2a5ba4d5805fbb56945de74eb14ae9ef510e6f45
-
Remi NGUYEN VAN authored
-
chiachangwang authored
Add SocketKeepalive.start with parameter to enable dynamic keepalive mode based on the existence of TCP connections. This supports IPSec mode to notify KeepaliveTracker to disable keepalive when keepalive is unnecessary to improve battery life. Keepalive is controlled by periodically TCP socket status check for both enable and disable. This is a transition commit and is expected to be updated based on the socket creation or destroy. Bug: 259000745 Test: m ; atest FrameworksNetTests Change-Id: Ie4d598d69a73c4931c7d0b6dfde0e459e5dca6b4
-
Remi NGUYEN VAN authored
On each received packet, query MdnsRecordRepository to detect any conflicting service, and report it though onServiceConflict. Implement restartProbingForConflict and renameServiceForConflict which may be called when that callback is dispatched. Bug: 266151066 Test: atest MndsInterfaceAdvertiserTest MdnsRecordRepositoryTest Change-Id: I5434b00879e0c8f7fc1e4769455b688c3bd7a9b5
-
Ryan Zuklie authored
These all default to false, never ignoring the maps. Bug: 246985031 Test: build connectivity module Change-Id: I404d56dcb311b34587d56dd6edc292029c4ad83f
-