- Sep 28, 2023
-
-
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 25, 2023
-
-
Treehugger Robot authored
* changes: Factorize CarrierPrivilegeAuthenticator constructors Change mCarrierServiceUid from int[] to SparseIntArray
-
Chalard Jean authored
Test: FrameworksNetTests Change-Id: I1731e65ef09cb32b51ac9cc7884a9737c19ecce9
-
Chalard Jean authored
Because followup changes will stop using synchronous getters for getting the service package UIDs, it will be a lot more convenient if this array is automatically sized. Test: FrameworksNetTests Bug: 236669534 Change-Id: I2df8442727b5f17bd2d4e55a8795dc9210beb74b
-
- Sep 22, 2023
-
-
Ryan Zuklie authored
* changes: Add ICMP type/code and udplite/sctp in Nettrace. Make BundleKey a distinct struct from PacketTrace.
-
Treehugger Robot authored
-
Jean Chalard authored
* changes: Block the package updater while CTS are running Add a command to block networking for an app
-
Jin Chen authored
-
- Sep 21, 2023
-
-
Ryan Zuklie authored
This adds support for additional protocols and also provides more clear semantics of protocol specific fields, such as only including tcpFlags when the protocol is IPPROTO_TCP. Test: atest libnetworkstats_test & flash and trace Change-Id: Ic69fc75e85ebf8734027c942a253af4972ad14d8
-
Ryan Zuklie authored
This change refactors BundleKey to be a separate struct. This allows us to do the conversion (e.g. of sport/dport, or icmp fields in the future) in the constructor and change types (use optionals) where it is convenient to simplify the code. This change also fixes a bunch of desigated initializer order warnings in the test (fields should be declared in same order as defined). Test: atest libnetworkstats_test Change-Id: I6373d2512280e93c54395fde38dcff43705b449e
-
Maciej Żenczykowski authored
Test: TreeHugger Bug: 299653233 Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I1e5c7bfc86d2ad61c0bad3b5ef2add94b4ce1481
-
Maciej Żenczykowski authored
-
Chalard Jean authored
Test: manual Bug: 284534251 Change-Id: I8843ce7c9e14cfe3f6f3439405d519587f2656ef
-
Chalard Jean authored
Test: Manual Bug: 284534251 Change-Id: I90566998501c215de350965e3bffcd852d487bfe
-
Jin Chen authored
-
- Sep 20, 2023
-
-
Jin Chen authored
Test: atest RemoteAuthUnitTests Bug: 290675814 Change-Id: I9a38298092607fe87bc7a8b157ff9d44d84fa55a
-
Maciej Żenczykowski authored
-
Treehugger Robot authored
-
Mark Chien authored
-
Jin Chen authored
Fix: 301051105 Test: build Change-Id: I23dfab79503db2fe34ffd06bf48d54961c0bc424
-
- Sep 19, 2023
-
-
Maciej Żenczykowski authored
Mainline no longer supports Q. These files were recently moved into p/m/C as part of a refactor. Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I0f06ace921db6c79d63c0048bdb73d167ff606cf
-
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 16, 2023
-
-
Ken Chen authored
As an inline function, the logic can be reused by others. Bug: Bug: 288340533 Test: build; presubmit Change-Id: I8e57829e304e829eed72cc165b051cd22088260d
-
- 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
-
Remi NGUYEN VAN authored
Test that when a responder only responds with the exact records that were queried, so only reply for PTR in discovery, only send SRV, TXT, A, AAAA when asked explicitly, service resolve succeeds. This ensures that the querier sends followup queries for each record. See RFC6763 12., especially the last paragraph. Bug: 267570781 Bug: 267371243 Test: atest NsdManagerTest Change-Id: Ia392e80c1e27b479c6177d19f6b4be6032dcb1cd
-