- Sep 29, 2023
-
-
Chalard Jean authored
Test: FrameworksNetTests Note that carrierPrivilegeAuthenticatorTest is already an @Parameterized test with flag = on and off, so it already tests both. Change-Id: I52fcfd3f21a13d7a39952ba828464ce6ef4085c2
-
Chalard Jean authored
For the current code this is a no-op because the new slots are always computed immediately in the same critical section. When the code uses callbacks for the carrier service UID though, there will no longer be a time where the entire array is reset. Instead, registering the callback will immediately trigger the call that populates it again, which means the value needs to be removed when a SIM card is removed. Unregistering the callback is a good time to do this. Test: CarrierPrivilegeAuthenticatorTest Change-Id: I6de4abdc57ffa455d7f8e4d35f5dd1e18937e94e
-
Chalard Jean authored
Test: CarrierPrivilegeAuthenticatorTest Change-Id: I1e8944de203767edf036da3fe77171025e72fcb7
-
Chalard Jean authored
Tests show that when the carrier service package changes, sometimes neither onCarrierPrivilegesChanged is called nor the ACTION_MULTI_SIM_CONFIG_CHANGED broadcast is sent. Because updating synchronously can be done at any time, it's a strict improvement to also do it onCarrierServiceChanged. Test: CarrierPrivilegeAuthenticatorTest Change-Id: I9525bfe074dd686720d50e19be15529b248e9dbb
-
Chalard Jean authored
This is clearer and less dangerous locking-wise Test: FrameworksNetTests Change-Id: Ife09fef848144e74ddb02aba3594913899bc9f46
-
Chalard Jean authored
Helper methods in the middle of the class make it harder and more confusing. This patch moves the helpers out of the way and regroups the useful methods in a more logical order. Test: FrameworkNetTests Change-Id: I386ef7140c0535c9817a663910c19afeaf70981b
-
Chalard Jean authored
Test: comment-only change Change-Id: I788f6e9f5fdd913d4c5077b6bb82c19664d3cd3f
-
Jean Chalard authored
* changes: Move the MULTI_SIM_ACTION receiver inline Inline registerForCarrierChanges Make mThread a local Introduce a flag for using the carrier service changed callbacks. Have DevSdkIgnoreRunner support @Parameterized parameters
-
Xiao Ma authored
-
Jean Chalard authored
-
Xiao Ma authored
sepolicy gates RTM_GETNEIGH{TBL} with a new permission nlmsg_getneigh and block access from untrusted_apps, but NetworkStackCoverageTests uses the same UID with NetworkStack module, so it still has the permission to send RTM_GETNEIGH(context: u:r:network_stack:s0<00>), which causes the test always fails. Add the same assumeFalse check for tests with network_stack context. Bug: 283346574 Test: atest NetworkStackCoverageTests Change-Id: Iaf652841bb9868783c924aa22fdf0c4f07e1e391
-
Maciej Żenczykowski authored
-
Motomu Utsumi authored
-
Maciej Żenczykowski authored
Bug: 235590615 Bug: 235907076 Bug: 286003437 Test: TreeHugger, m droid gpuservice_unittest libtimeinstate_test bpf_benchmark bpf_module_test libbpf_load_test && mma Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I020a898fe8b257040a100f146654d4a04b19f843
-
- Sep 28, 2023
-
-
Chalard Jean authored
This will be easier to read when this behavior is diverted based on a flag Test: FrameworksNetTests Change-Id: Ifd7abd8ad82cb8307b1cd8535ac5fa82004404e6
-
Chalard Jean authored
This method is only called once in system ready and is better inlined. This will also make followups clearer where they start using callbacks to listen to service package updates based on a flag. Test: CarrierPrivilegeAuthenticatorTest Change-Id: I39cab8ff1c71a8ba0db6d189d8a248013764b18e
-
Chalard Jean authored
Small cleanup Test: CarrierPrivilegeAuthenticatorTest Change-Id: I6b3270d60d67c227bcb9f9a75a47abddd08bf474
-
Chalard Jean authored
Test: CarrierPrivilegeAuthenticatorTest Change-Id: Ia28c6abca67866c1de953cb61953a0d2882cd7e2
-
Chalard Jean authored
Test: aosp/2405723 uses this, TH is happy with existing tests Change-Id: If47d7e239d8483716fb78a97bbc2da4e24731209
-
- Sep 27, 2023
-
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Maciej Żenczykowski authored
Change-Id: I7912bf91841a4260d0a1eec022a6a832b312321d
-
Maciej Żenczykowski authored
Change-Id: Iad7d1818d1959024d5fd1fc8810d2b7ce0f06e40
-
Patrick Rohr authored
This reverts commit cbe17558. Reason for revert: we found the culprit for the flakiness and b/272147742 is fixed. Change-Id: I672c42bb57184393588666b6196f3a316f8c99c7
-
Andriy Naborskyy authored
-
Patrick Rohr authored
-
Motomu Utsumi authored
If the flag value is unset or 0, isFeatureEnabled return false and isFeatureNotChickenedOut return true. If the flag value is -1 (force disable), both return false. If the flag value is other values, both query the package version and return `flagValue <= packageVersion` Now the only difference is a default behavior when the flag is not set or 0. So isFeatureEnabled and isFeatureNotChickenedOut can use the same flag. This CL also fixes the issue in rollback. Before this CL, isFeatureNotChickenedOut did not check the module version and could have a issue if there is a rollback. Test: NetworkStaticLibsTests Bug: 279108992 Change-Id: I12d6ebadff3aee7b7c614aca4eb0a34ef0db9857
-
Motomu Utsumi authored
-
Andriy Naborskyy authored
Do not avoid captive portal on wear proxy network; keep network agent after detecting portal. Bug: 291112432 Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.ConnectivityServiceTest Change-Id: I8f6669da62ebd76b6a46d2aec9b3ea563a08cb5e
-
Yuyang Huang authored
-
Remi NGUYEN VAN authored
-
- Sep 26, 2023
-
-
Patrick Rohr authored
NetworkStatsManagerTest issues NetworkRequests but does not release them. In addition, it performs blocking operations inside the onAvailable() callback that runs on the shared ConnectivityThread impacting tests that run later. Test: TH Bug: 272147742 Change-Id: Ide2f5ba0b12752099d7665deaa9050463cd7ebee
-
Igor Zaslavsky authored
-
Lorenzo Colitti authored
aosp/2724918 moved processing netd events for 464xlat to the handler thread. This CL makes 464xlat run the code that processes those events inline. This simplifies the code and makes the ordering of events more similar to what it was before. Bug: 293965195 Fix: 302071735 Test: existing unit tests Change-Id: I18b0d491aff94646b878a3d3488b5519fd42783c
-
Yuyang Huang authored
Because the WifiManager can not be obtained in instant mode, the test should only runs in AppModeFull. Bug: 300219769 Test: TH Change-Id: If5049a68dce23aafa3c9b8a59bf9a759c9532541
-
Treehugger Robot authored
-
Treehugger Robot authored
-
Chalard Jean authored
The issue seems to be that some other network may become available or change capabilities before Lost happens, as can be the case with real networks like in CTS. Test: TH Bug: 289879931 Change-Id: I849f3b7d99f5d5195a3bbd3c39720923597a51d9
-
Jean Chalard authored
-
- Sep 25, 2023
-
-
Treehugger Robot authored
* changes: Factorize CarrierPrivilegeAuthenticator constructors Change mCarrierServiceUid from int[] to SparseIntArray
-