- Sep 20, 2023
-
-
Mark Chien authored
-
- Sep 19, 2023
-
-
Kangping Dong authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Remi NGUYEN VAN authored
Tests are sometimes run on hardware devices with wrongly configured wifi or cell data. Ensure that this is reported as an infra error, and not a test error, so the root cause is easier to identify. Bug: 264170054 Test: atest Change-Id: I4f964fbd4ee497e8ac92f7729375b75b6c4594a3
-
Mark authored
After this change, all synchronous state machine functions are implemented. There are some intentional limiations: 1. Allow setup states before machine thread started or inside machine thread but states can only be setup once before calling #start. 2. The behavior of transitionTo is defined so that the destination state can never change during state transitions. Once a destination has been specified, it cannot be changed until the previous state transition is complete. In other words, SyncStateMachine does not support calling transitionTo in State enter or exit. 3. Support sendSelfMessage in State#processMessage(), #enter() and #exit(). This allow automaton to decide the follow up action by itself. For example: if something wrong happens during state transition, the implementation can enqueue an error message then process the error message after finishing the current state transition. Test: atest SynStateMachineTest Change-Id: I0790df4eeab2dccdb9f407d9131a62c3c12d123b
-
Treehugger Robot authored
-
Treehugger Robot authored
-
- Sep 15, 2023
-
-
Mark authored
Implement performTransitions which does state transitions. 1. Determine the common ancestor state of current/destination states 2. Invoke state exit list from current state to common ancestor state. 3. Invoke state enter list from common ancestor state to destState by going through mEnterStateStack. The state transition is always defined so that the target can never be changed mid-way of a state transition. In other words, calling transitionTo in State enter and exit is not allowed. Test: atest SyncStateMachineTest Change-Id: I51e8c5440a8b9ac25715c3d030717421f68c15b3
-
Mark authored
Duplicated state is not allowed. Test: atest SynStateMachineTest Change-Id: I0d5c73f666f90aebcfbf535cf0f824c5050941a2
-
Treehugger Robot authored
-
Mark authored
This change adds SyncStateMachine class and provides the user interface but doesn't have the details implementation. Test: m Change-Id: Ic2fa69b9e6424601fc2df2d07a052f48a6a46370
-
- Sep 14, 2023
-
-
Treehugger Robot authored
-
Mark authored
Found R8 accidentally remove TetheringUtils jni methods while doing some refactor. If any of jni java methods is removed by R8, devices would fail to boot because of jni registering failure. Explicitly adding progurad rule to make sure R8 never remove it. Test: boot, atest CtsTetheringTest Change-Id: I091a2f094d01f683fb454ed4624be35555940393
-
Treehugger Robot authored
-
- Sep 13, 2023
-
-
Maciej Żenczykowski authored
This is based on network driver populated skb->mark magic bit. This is the bit used by netd's WakeupController. We mandated the location of this bit in U, though we haven't (yet??) mandated it being supported by all network drivers. If the driver doesn't support it, it could always be false (skb->mark should default to 0), or potentially (this is very very unlikely) be garbage. IFIRC nettrace isn't enabled on pre-U devices anyway. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I2b3b91315d77c08c022396253b26954593dd3f5a
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Iad7800387e1b84587794be93d037f712ac95fa07
-
Yuyang Huang authored
-
Paul Hu authored
-
Treehugger Robot authored
-
- Sep 12, 2023
-
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
(equivalent OWNERS file is already present in root directory of p/m/C) Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I4a4da3cd13bcf4497a210aae44618681ed43fd64
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I18ccf19024f0617778799f548c8707a518eefadc git-subtree-dir: clatd git-subtree-mainline: 655d0850 git-subtree-split: 20078300
-
Treehugger Robot authored
-
Kangping Dong authored
This commit sets up the initial Thread network service for the Android Thread feature which allows an Android device to create a Thread network and being a Border Router. See https://www.threadgroup.org/What-is-Thread for background of Thread. See b/235016403 for the Android Thread feature request. Test: lunch aosp_cf_x86_64_tv-userdebug m && launch_cvd atest CtsThreadNetworkTestCases Bug: 262683651 Change-Id: Ie1bb23084531f67165ec068ea3ca39592dbc01d1
-
Yuyang Huang authored
The mDNS library need to be backported to some internal library which support minSdk 21. Therefore, updated the build rules to add the linter check. Bug: 296175311 Test: TH Change-Id: Iae0bffa315dc6de2339a05f595b13480fa7385ae
-
Yuyang Huang authored
Add end-to-end testing for testing NsdManager advertising and discovering works fine with downstream tethering interfaces. Bug: 281639507 Test: atest NsdManagerTest Change-Id: I5a66423f216cfe0c82db5128502c885980ab264b
-
Paul Hu authored
-
Paul Hu authored
The test flake is likely caused by a carrier configuration update. After the update is complete, the shell permission is dropped, which causes the test network setup to fail due to a lack of permission. The test network setup should also be protected by a synchronized lock to avoid permission lost. Bug: 296980394 Test: atest android.net.cts.ConnectivityDiagnosticsManagerTest \ --iteration 50 Change-Id: I3c7a0a92cddeb7c0f41a11b929f72714f8b22c05
-
Motomu Utsumi authored
* changes: Add java_defaults for @FlaggedApi handling Prepare api directory for udc mainline branch
-
Mike Yu authored
-
Yi Kong authored
packages/modules/Connectivity/service/native/TrafficController.cpp:58:18: error: using decl 'DumpWriter' is unused [misc-unused-using-decls,-warnings-as-errors] using netdutils::DumpWriter; ^ packages/modules/Connectivity/service/native/TrafficController.cpp:58:18: note: remove the using using netdutils::DumpWriter; ~~~~~~~~~~~~~~~~^~~~~~~~~~~ packages/modules/Connectivity/service/native/TrafficController.cpp:61:18: error: using decl 'ScopedIndent' is unused [misc-unused-using-decls,-warnings-as-errors] using netdutils::ScopedIndent; ^ packages/modules/Connectivity/service/native/TrafficController.cpp:61:18: note: remove the using using netdutils::ScopedIndent; ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ Test: presubmit Change-Id: I1871139fed31c57a5c15a8ab4f88aa7c695ff360
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I37c2aefe8759fdbab3078c60e0f97b57799697fc
-
Paul Hu authored
The isLegacy field of Nsd metrics should indicate whether the data was collected from the old backend or not. However, it is currently only dependent on the ENABLE_PLATFORM_MDNS_BACKEND compat change value, which is incorrect. This is because the NsdService always uses the new backend since Android U, regardless of the compat change value. Therefore, the isLegacy data should be obtained from each transaction. Bug: 287546772 Bug: 299880473 Test: atest FrameworksNetTestCases NsdManagerTest Change-Id: I156abd656b90578d710696a69ccf7dfca97a2c9c
-
- Sep 11, 2023
-
-
Igor Zaslavsky authored
Add RemoteAuthConnectionCache and RemoteAuthPlatform with support to sendMessage Design doc: go/remote-auth-manager-fishfood-design Test: built successfully. Bug: : 291333048 Change-Id: I17f73b4fb2e22924a484eeb3baa9b933ae980076
-
Jean Chalard authored
* changes: Implement ConnectivityStateMetrics sample Add base classes for common ConnectivityService tests.
-
Kangping Dong authored
-
Motomu Utsumi authored
Merge "Merge remote-tracking branch 'remotes/aosp/tmp_libs_net_move' into libs_net_move_merge" into main
-
Mike Yu authored
As connectivity pre-check was added to CtsNativeNetDnsTestCases recently, this CL is needed as well. Bug: 298886804 Test: TreeHugger Change-Id: I3c26920e8609256470cd2b8c37fc1f33f56c39fd
-