No description. Add one?
  • Java 78%
  • Kotlin 11.8%
  • AIDL 4.4%
  • C++ 3.7%
  • C 1.5%
  • Other 0.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Suprabh Shukla a8ad3d5ef0 Deflaking network access checks in CtsHostsideNetworkTests
Checking that the network was successfully restricted before starting
the activities in ConnOnActivityStartTest. This avoids races between uid
state changes and device state changes in NPMS code that lead to
unpredictable UnknownHostException flakes in the first iteration.

Moving the java cache clearing to happen immediately before the check,
so no side effect from different code can impact the DNS query.

Increasing the socket-timeout to mitigate socket timeout failures.

Changing the default test URL to generate a 204 to avoid any extraneous
errors that may arise in doing other I/O, and switching to the canonical
connectivity check URL on the android.com domain.

Enabling support for passing down a custom url to use for testing
network connectivity using the runner options. This will enable easily
switching between different URLs for debugging when required.

Using a dedicated data class to encapsulate information to be returned
from test app to the instrumentation app.
This makes the logic more resilient, readable and maintainable.

Test: atest CtsHostsideNetworkTests:HostsideConnOnActivityStartTest --\
--test-arg com.android.compatibility.common.tradefed.testtype.JarHostTest:\
set-option:com.android.cts.net.HostsideConnOnActivityStartTest:\
custom-url:"https\://www.example.com"

Bug: 330406935
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:04c638ee3a5bab7895817ebfc0d3f6a69b1ee26d)
Merged-In: I139408fc0a9ffa21d7bd2f3f249d45a7b25243b4
Change-Id: I139408fc0a9ffa21d7bd2f3f249d45a7b25243b4
2024-04-02 05:51:41 +00:00
bpf_progs Merge "NetBpfLoad: enable mainline on T+" into main 2024-03-19 22:16:32 +00:00
clatd [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
common Merge "Separate Struct.java into its own lib." into main 2024-03-28 06:23:57 +00:00
Cronet Merge changes from topic "revert-3001326-revert-2998737-revert-2980591-cronet_121_0_6167_71-JBOUFGJXPX-ICXECJPUPA-OOMALUYYUV" into main 2024-03-20 13:39:16 +00:00
DnsResolver [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
framework Udpate setNetworkSpecifier logic support Satellite Transport 2024-04-01 06:20:23 +00:00
framework-t Merge "Changes to support satellite stats appear as TYPE_MOBILE" into main 2024-04-01 14:33:37 +00:00
nearby Test BluetoothFinderManager for SDK at least V 2024-03-02 22:11:44 +00:00
netbpfload NetBpfLoad: Get logs back 2024-03-25 22:49:56 +00:00
netd NetBpfLoad: avoid needlessly reloading bpf on netd/zygote restart 2024-03-28 22:57:33 -07:00
remoteauth Replace use of deprecated logging functions 2024-02-05 07:47:42 +01:00
service Merge "Add a flag to disable the background firewall chain" into main 2024-04-02 05:47:56 +00:00
service-t Merge "Changes to support satellite stats appear as TYPE_MOBILE" into main 2024-04-01 14:33:37 +00:00
staticlibs Merge changes Ie882a5c7,Id94b6538,I58eda41f into main 2024-04-01 18:41:53 +00:00
tests Deflaking network access checks in CtsHostsideNetworkTests 2024-04-02 05:51:41 +00:00
Tethering Merge "Tethering: Throw exception when register null callback to avoid a crash" into main 2024-04-02 05:45:07 +00:00
thread [Thread] discover and resolve the meshcop service only on test network 2024-04-01 01:26:56 +00:00
tools Merge "Add tests to confirm that genjarjar keeps excluded Tests." into main 2024-03-14 10:20:01 +00:00
.gitignore Ignores vim temporary files from git 2023-12-23 17:45:32 +08:00
OWNERS Move the owner of xfrm netlink source code to its own directory. 2023-11-22 18:50:00 +09:00
OWNERS_core_networking OWNERS: remove ex-employees 2024-01-22 22:24:54 +00:00
OWNERS_core_networking_xts xTS OWNERS: allow maze to +2 APF fw CTS tests 2024-03-12 02:42:59 +00:00
PREUPLOAD.cfg Enable tethering to perform its own hidden API processing 2021-06-28 23:41:38 +01:00
TEST_MAPPING Exclude NetworkStackModuleTest in mts CtsNetTestCasesLatestSdk case 2024-03-27 20:11:45 +09:00