- 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
-
Motomu Utsumi authored
Experiment to verify bpf map operations refactoring showed no change of map size metrics and no system health regressions. So this CL update BpfNetMaps to always use new code path with kill switch. Test: m Bug: 217624062 Change-Id: Ic17470ac5c075884871ea2df2c13c054f5ac2929
-
Motomu Utsumi authored
Original name was isTetheringFeatureForceDisabled but it's expected that the caller of this method will use as `enabled = !isTetheringFeatureForceDisabled` which is error prune. So aosp/2711138 renames to isTetheringFeatureNotChickenedOut and updates to return true if the feature is not disabled. Bug: 279108992 Test: m Change-Id: Ia992113e9fb1aee09fcfe48e2b39ca03876063ee
-
- Aug 15, 2023
-
-
Xiao Ma authored
-
Remi NGUYEN VAN authored
-
- Aug 14, 2023
-
-
Xiao Ma authored
RFC7421_PREFIX_LENGTH is being removed from NetworkConstants and import it from NetworkStackConstants instead. Bug: 290885904 Test: TH Change-Id: I35e785be3f1a278c76b0810cad844710254b0f15
-
Remi NGUYEN VAN authored
Similarly to Nearby, remoteauth is expected to regularly need to change the API files. Import the existing owners file for that purpose. Test: m Change-Id: I4b900481df3bf505a8209e5370dc4bc4c928dbee
-
Remi NGUYEN VAN authored
-
Remi NGUYEN VAN authored
-
Remi NGUYEN VAN authored
This should help find changes that do not do proper NewApi checks in presubmit, and when building with RUN_ERROR_PRONE=true Test: m Change-Id: I87ce56d9df2eb27dafd2ec8d2c814c83098a979f
-
KH Shi authored
-
- Aug 12, 2023
-
-
Maciej Żenczykowski authored
(next step is to replace use of Stats struct with identical (except field order) StatsValue struct) Test: TreeHugger Bug: 294604315 Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I9be3c411f9592bf4edc75386b1c5b386ebeb5905
-
- Aug 11, 2023
-
-
Treehugger Robot authored
-
- Aug 10, 2023
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
KH Shi authored
-
Treehugger Robot authored
-
Paul Hu authored
-
KH Shi authored
This patch is based on aosp/2535559 from maze@. Add source prefix into the upstream key such that only packets which source IPv6 address matches it will be forwarded to the upstream interface. In this patch, the source prefix is set to zero so there is no behavior changes. Next CL in patch series will use the real source prefixes retrieved from upstream interface. Test: atest TetheringTests Bug: 261923493 Change-Id: I43d068a29b937c7dfeb6fab632a8effb47ee2263
-
Yuyang Huang authored
Fix flaky test by only catch relevant the AddOrUpdateEvent and RemoveEvent. Bug: 294685851 Test: atest CtsNetTestCases Change-Id: Ia12e51a6527f1e23610fdb0bea1068ebb5b80a73
-
KH Shi authored
NativeHandles shouldn't be closed in OffloadHardwareInterface after passing them to initOffload() of AIDL service, because their owner will be changed to ParcelFileDescriptor by libbinder. Add test cases to verify that NativeHandles are closed correctly. NativeHandles should be closed after initOffload if: - Init with HIDL HAL interface - Has null NativeHandle, any non-null NativeHandles should be closed Bug: 277834236 Test: atest OffloadHardwareInterfaceTest Change-Id: Icbe74da73d3bdc582d1816b314fdfce9661465fc
-
KH Shi authored
-
Paul Hu authored
The NsdService will throw a NPE if a new client is registered with a null INsdManagerCallback object. To avoid this, perform a null check before registering a new client and throw an IllegalArgumentException if the callback is null. Bug: 293285797 Test: atest FrameworksNetTests Change-Id: Id61e27873591031c3fe383879aee0d40eebc08b3
-
Paul Hu authored
-
Paul Hu authored
The nsd metrics implementation needs to be updated to support the new field sent_query_count on NetworkNsdReported. Bug: 287546772 Test: m Merged-In: Ie1d8d5f2cce4f6040dcfb980db6ab11dfe01fb72 Change-Id: Ie1d8d5f2cce4f6040dcfb980db6ab11dfe01fb72
-
- Aug 09, 2023
-
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Ibcb4fd53b0bbb04dc52f9fcbb5ab6bdae9efe02c
-
Xiao Ma authored
Remove the dependency on services-connectivity-shared-srcs filegroup gradually. Bug: 290885904 Test: TH Change-Id: I6474563a3a0b521945e6467a2832862764ad4770
-
Junyu Lai authored
-
Treehugger Robot authored
-
Junyu Lai authored
Test main thread mocked settings object but use that on the handler thread as well, which is not thread-safe. Create a real object instead of mocking it instead. Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest#testDataMigration_differentFromFallback \ --rerun-until-failure 500 Fix: 289705810 Change-Id: Ibfb722818467fdf2b69a4b8fa87b4ac04a713573
-
Treehugger Robot authored
-
- Aug 08, 2023
-
-
Chiachang Wang authored
-
- Aug 07, 2023
-
-
chiachangwang authored
These tests were disabled from presubmit because of flaky test. It's no longer flaky now, so add these tests back to presubmit. Bug: 293233390 Test: atest FrameworksNetTests Change-Id: I7f1f36385d2ca6ed210e1d9b7399b6509fd26519
-
Treehugger Robot authored
-
Jean Chalard authored
-
Chalard Jean authored
When the device is very slow to run this test, cell might end its lingering period in the middle of the test while wifi is the default. VPN will then ignore it as an underlying network, causing the test to fail. Test: testVpnSetUnderlyingNetworks Added sleep in a strategic place to make sure the problem was correctly identified, and observed the test failing. After the fix, the test passes with the sleep. Fixes: 280627836 Fixes: 293844384 Change-Id: Iaf56de963eb17845c1d76a0310b55f7f9321f7e4
-
- Aug 06, 2023
-
-
Yuyang Huang authored
Bug: 294326360 Test: atest FrameworksNetTests Change-Id: I9a3a84f907362260bdcf6be19e2c4d5345788d2e
-
Yuyang Huang authored
Move scheduling logic into a standalone MdnsQueryScheduler class to simplify the MdnsServiceTypeClient class. Bug: 292470176 Test: atest FrameworksNetTests CtsNetTestCases Change-Id: I31130c239bc54f6dc0efde2921ce51df35076a74
-
- Aug 05, 2023
-
-
Kefan Tu authored
-