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
Junyu Lai 33bb7fbfb7 Refactor requestNetworkAndGenerateTraffic by using synchronized methods
This is a refactoring of the test to adopt synchronized methods.
This is needed for the follow-up changes to get attributes of
the network prior to generating the network traffic.

This change includes:
  1. Use synchronized methods in AutoReleaseNetworkCallbackRule for
     better managing request/release networks and also improves
     readability.
  2. Decouple the steps of requesting network, set attributes and
     generating network traffic.
  3. Clearer fail messages since the test can directly throw exceptions
     to reflect the failures of a specific procedure.
  4. Remove the global timeout, which makes the test more likely
     to be flaky when individual steps take longer to complete.
  5. Use capabilities in the callback instead of synchronous calls to
     fetch attributes.
  6. Use @RestoreDefaultNetwork annotation to enforce default network
     restoration.

Test: atest CtsNetTestCases:android.net.cts.NetworkStatsManagerTest \
      --rerun-until-failure 30
Bug: 368624224
Change-Id: I3effa3c032afb345f1c0c4b73b51397d18970a19
2024-10-16 16:49:38 +08:00
bpf Merge "KernelUtils.h: add 6.12 to isLtsKernel()." into main 2024-09-27 22:46:19 +00:00
clatd [DON'T BLOCK] Test ownership migration rules 2024-01-31 12:34:50 +00:00
common [Thread][API] add API for ephemeral key. 2024-09-29 02:35:44 +00:00
framework Merge "Fix comment" into main 2024-09-12 15:51:40 +00:00
framework-t [Thread][API] add API for ephemeral key. 2024-09-29 02:35:44 +00:00
nearby Add persist.bluetooth.finder.supported property 2024-09-23 09:41:36 +00:00
networksecurity Migrate CT namespace to "network_security" 2024-09-16 12:12:14 +00:00
remoteauth Merge "Use LazyLock rather than lazy_static macro." into main 2024-09-11 17:46:22 +00:00
service bpf: merge block.c into netd.c 2024-09-19 00:40:53 +00:00
service-t Fix deadlock from outside Perfetto mutex 2024-09-18 18:41:11 +00:00
staticlibs Support get multiple ipv4/ipv6 addresses in apf_utils 2024-09-27 06:55:54 +00:00
tests Refactor requestNetworkAndGenerateTraffic by using synchronized methods 2024-10-16 16:49:38 +08:00
Tethering Merge changes from topic "pac-random-address" into main 2024-09-29 04:25:22 +00:00
thread [Thread] Add unit test for ephemeral key API 2024-09-29 02:35:51 +00:00
tools Update aospify_device for T device 2024-05-22 13:10:19 +09: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 Mark Martin as LAST_RESORT_SUGGESTION 2024-09-26 22:29:48 +00:00
OWNERS_core_networking_xts Add "no-op refactors" reviews for delegated reviewers 2024-06-20 06:29:09 +00:00
PREUPLOAD.cfg Enable builtin formatting hooks 2024-07-17 11:51:08 +09:00
TEST_MAPPING Add CtsHostsideNetworkTests to postsubmit. 2024-09-09 20:03:03 +09:00