- Aug 23, 2023
-
-
Patrick Rohr authored
Keeping the function names inline with the naming of the IpClient callbacks makes the code more searchable / readable. Also marking them as private. Test: TH Change-Id: I1c0a9307dee7c90460633a79e3560a5b5f791c32
-
Patrick Rohr authored
* changes: ethernet: clean up EthernetManagerTest ethernet: test adding listener after removing server mode iface
-
Stefano Duo authored
-
Kangping Dong authored
-
Kangping Dong authored
Bug: 296211911 Change-Id: Ifd4f7cd06f1aeaba739d27d2328e89031ca73235
-
- Aug 22, 2023
-
-
Patrick Rohr authored
createChangeEvent is not expected to be called from a test, so make it private. Also delete pollOrThrow as polling inline creates a better log output. Test: atest EthernetManagerTest Change-Id: I2399960fee2c51fdf340186189ae83a20c4ac6f3
-
Patrick Rohr authored
Tests that registering a EthernetStateListener functions as expected after requesting a tethering interface and subsequently removing that interface. Test: atest testCallbacks_afterRemovingServerModeInterface Bug: 290971780 Change-Id: I7b6e1a3b3ac23f4fbdd2d20f63f83d59c4d4999d
-
Patrick Rohr authored
Test: N/A Change-Id: I50101f9e5dc4dede5732a31da4ecd53d027adedc
-
Treehugger Robot authored
-
Yuyang Huang authored
The platform doesn't allow overwriting compat flags that have target SDK lower than the platform SDK in release build. Ignoring the test cases that need compat flag overwrite up to S_V2 makes the MTS pass on S device. Bug: 296248982 Test: TH Change-Id: Iab102725004c39b4dc3c0200c9bc673dd6be1302
-
Colin Cross authored
-
- Aug 21, 2023
-
-
Salil Rajadhyaksha authored
Bug: 290265761 Bug: 291146480 Bug: 290275468 Test: None Change-Id: Iaba64415cf81454b6e999f10bad54810884fc3da
-
Maciej Żenczykowski authored
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Stefano Duo authored
Bug: 284972285 Test: m & atest NetHttpTests Change-Id: Id24fa826f617187722b329821dae9d9548bf218b
-
Remi NGUYEN VAN authored
-
Motomu Utsumi authored
-
- Aug 20, 2023
-
-
Maciej Żenczykowski authored
The goal is to be able to remove getMap() from BpfMap.h, as it effectively leaks (what should be an) internal fd. In practice the dump() operation isn't useful, as initMaps() and thus native_init() already guarantee all these maps have valid file descriptors. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: If89c28923d3ae030dfac0b3b0ab8b15117db3f30
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Id3a128cd72f467fa60213f57c6dd942a0629ba1d
-
Maciej Żenczykowski authored
The FD number isn't actually useful debugging information, and I want to get rid of this fd leak out of BpfMap class. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I981832b019b57f534bed1c1fbfedf6457abba6fa
-
- Aug 18, 2023
-
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Patrick Rohr authored
* changes: ethernet: use TrackRecord backtrace for better failure logs ethernet: correctly report tethering interface state ethernet: add missing assert in eventuallyExpect helper
-
Treehugger Robot authored
-
Remi NGUYEN VAN authored
Allow adding tests or adjusting them to increase coverage on behavior that is implemented in NsdService. Test: m Change-Id: I1b0851bdd220caba68c47d5d50d86a543227817b
-
Paul Hu authored
Report the nsd metrics event of resolution stop. Bug: 287546772 Test: atest FrameworksNetTestCases Change-Id: I2e6de22c946d58a3410f16b2f2689fd3ffc635a4
-
Paul Hu authored
-
chiachangwang authored
Those tests are no longer flaky after fix being merged, so add them back to presubmit. Fix: 293239828 Test: atest CtsNetTestCases:android.net.cts.Ikev2VpnTest \ --rerun-until-failure 100 Change-Id: I3e5b0f8053404b8840e8ce67ea82344ab53ce421
-
- Aug 17, 2023
-
-
Treehugger Robot authored
* changes: StatsValue - define operator+= eliminate 'struct Stats' in favour of StatsValue eliminate InitStats
-
Treehugger Robot authored
-
Chidera Olibie authored
- Adds NetHttpCoverageTests to postsubmit. This would allow us to run tests with @SkipPresubmit in post submit. - Don't jarjar com.android.testutil so that the annotation can still be found by the testrunner. Bug: b/293843426 Test: th Change-Id: I9e792d338515acba798092bbc4c615aef2cac47a
-
Chiachang Wang authored
-
Motomu Utsumi authored
DeviceConfigUtils has isFeatureEnabled for NetworkStack and Tethering which were confusing since the difference was only the arguments. This CL renames isFeatureEnabled for Tethering module to isTetheringFeatureEnabled to avoid confusion. Bug: 279108992 Test: m Change-Id: I05255bb38619afbe621d29524d7910d206a149f1
-
Paul Hu authored
The created handler thread will stay there for a while until all the tests are finished. This is considered as a leakage which will take the resource from the devices. In low end devices, this may possibly impact the performance. The created threads should be closed explicitly. Test: atest FrameworksNetTests Change-Id: Id5faceec341578f1c9757194c91a433fbb3f657f
-
chiachangwang authored
The created handler thread will stay there for a while until all the tests are finished. This is considered as a leakage which will take the resource from the devices. In low end devices, this may possibly impact the performance. The created threads should be closed explicitly. Test: atest FrameworksNetTests Change-Id: I332d55d8effdb975fd9a8953b19910a7fb25e426
-
Motomu Utsumi authored
-
Motomu Utsumi authored
* changes: Use Java code path for bpf map operations in BpfNetMaps Rename to isTetheringFeatureNotChickenedOut
-
Paul Hu authored
-
- Aug 16, 2023
-
-
Motomu Utsumi authored
Following CLs remove the default value from isFeatureEnabled since the default value was difficult to use correctly. For example, there was a code that use isAtLeastT() as default value and expect feature is always enabled on T+ devices. However, default value is used only when the device does not have the flag value or flag value is 0. So the expectation that the feature is always enabled on T+ devices is not correct if flag is pushed to the device by mistake or the device is upgraded from S to T but the flag value is not cleared. If the feature should be always enabled on T+ devices, `isAtleastT() || isFeatureEnabled()` should be used instead of `isFeatureEnabled( isAtleastT() /* defaultValue*/ )` After the default value argument is removed from isFeatureEnabled, isFeatureEnabled is used for default false flag and isTetheringFeatureNotChickenedOut is used for default true kill switch flag. automatic_on_off_keepalive_version flag is not configured and devices don't have this flag value. So updating to use isTetheringFeatureNotChickenedOut should not have any behavior change. Test: m Bug: 279108992 Change-Id: I43ceab6cc5234bd5a43af3acbd7bd7344844c5a6
-