- Sep 19, 2023
-
-
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
-
- 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
-
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 08, 2023
-
-
Treehugger Robot authored
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
Due to try_make_writable's implementation: // try to make the 1st 'len' header bytes r/w via DPA void try_make_writable(struct __sk_buff* skb, int len) { if (len > skb->len) len = skb->len; if (skb->data_end - skb->data < len) bpf_skb_pull_data(skb, len); } This *should* normally result in nothing actually being done. This is because the 'len' we request should trivially be <= skb->len (by virtue of how we construct the packet / get here), and because skb->data_end - skb->data < len was previously (to this patch) already checked below in line 251 (and thus the packet would have been dropped if it was false). However, there's a tentative theory that we could somehow end up with the entire payload in the non-linear portion of the packet, and thus need to move it into the linear header portion where we actually have direct packet access to it. Note also that we already called this in line 71, so it should be safe to add another call without causing bpf verifier unhappiness... Test: TreeHugger Bug: 298879031 Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: If3531c3cf6932ac3f1d384a43d28326d17544aa3
-
Sudheer Shanka authored
-
Patrick Rohr authored
Test: none Change-Id: I0506ec660fd88e39079b2f36aed1516e27cdc0a6
-
Yuyang Huang authored
-
Paul Hu authored
-
Treehugger Robot authored
* changes: Add third_party/google_benchmark to cronet's copybara Move buildtools/third_party/libc++[abi] to third_party in Cronet's copybara Cronet Import: Add jni_zero to the list of third_parties
-
Motomu Utsumi authored
-
Mohannad Farrag authored
Test: None Change-Id: Id390c6c53f619b7bc87c80ae08acca9ee3a65c2e
-
Mohannad Farrag authored
Test: None Change-Id: Iaa00d4d383f84fbabe346cbe9a929ba471d68297
-
Mohannad Farrag authored
Test: None Change-Id: Iba6f410c23bdabbb5559772039b4242965e720a7
-
Yuyang Huang authored
Bug: 297482971 Test: TH Change-Id: I6f2cdd066d9047b113ff80211cf6d4c6fa605104
-
Yuyang Huang authored
-
Motomu Utsumi authored
This CL also updates not to use isTetheringFeatureEnabled for TETHER_FORCE_UPSTREAM_AUTOMATIC_VERSION which is wrongly configured in Connectivity namespace. Test: m Bug: 279108992 Change-Id: If4f3a57c749bbaeb85454c31248c5bc5feaab936
-
Sudheer Shanka authored
Bug: 298729534 Test: atest com.android.cts.net.HostsideConnOnActivityStartTest (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:eaf030ea96f3af817e8b301c8edf48f79d7f229d) Merged-In: I58a23e927cd14b973048e34566350eeef215f7db Change-Id: I58a23e927cd14b973048e34566350eeef215f7db
-
Yuyang Huang authored
framework-connectivity-t-mdns-standalone-build-sources should only be used for building service-connectivity-mdns-standalone-build-test. Added comment to prevent this filegroup being used in wrong way. Test: TH Change-Id: I11dd390967db1a115dcadcdebc20f226ab6c0a51
-
- Sep 07, 2023
-
-
Xinyi Zhou authored
Test: -m Fix: 292812342 Fix: 297413048 Fix: 214879640 Ignore-AOSP-First: merge conflicts, need to be merged in downstream first Change-Id: I7efa92469f0c061a972a7dadf6a38686b78c61b4 Merged-In: I7efa92469f0c061a972a7dadf6a38686b78c61b4
-
KH Shi authored
-
Chiachang Wang authored
Verify that the extra info for validation logs in the NetworkInfo is set. Bug: 297790570 Test: atest FrameworksNetTests Change-Id: I5b77b3bab30154b7979cda003274cde0d834a5fb
-
Junyu Lai authored
-
- Sep 06, 2023
-
-
Maciej Żenczykowski authored
Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I399ac8dfc4992f4c604f1d32c2f1b8ae06710808
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
-
Maciej Żenczykowski authored
Test: TreeHugger Bug: 291025434 Bug: 289802481 Bug: 294510745 Change-Id: I3c9646468834305e48c531040640e05f80b1c5e7
-
Lorenzo Colitti authored
This allows using assumptions to skip tests. Test: atest CtsHostsideNetworkTests Change-Id: Ic1fc41c1ca0c30b6b7350c413d710d959b9a5013
-
Lorenzo Colitti authored
Test: test-only change Change-Id: If3702cf9c3a36e3b7cb1853784f1a8ff98d7be07
-
Paul Hu authored
Report more advertising metrics data below when the service is unregistered. - Replied request count (sum across interfaces) - Sent packet count (including announcements and probes) - Number of conflicts during probing - Nubmer of conflicts after probing Bug: 287546772 Test: atest FrameworksNetTestCases NsdManagerTest Merged-In: I50c54a35dc523422e3a7302c059bbbc38eac5631 Change-Id: I50c54a35dc523422e3a7302c059bbbc38eac5631
-
Junyu Lai authored
There was no such method in R release, use SdkLevel to check framework version and use different API accordingly. Test: TH Fix: 297768044 Change-Id: I357c0d56646ffd5eb018b6bb4efe47d4c48e71d3
-
Yuyang Huang authored
-
- Sep 05, 2023
-
-
Paul Hu authored
Per RFC6762#10.1, the cache flush bit should be false for existing announcement. Otherwise, the record will be deleted immediately when receiving this response. Bug: 299054783 Test: atest FrameworksNetTestCases NsdManagerTest Change-Id: I8bf1a5b1914b49720862836abb543b232185f5f5
-
Motomu Utsumi authored
-
Yuyang Huang authored
Add the missing logic to send the rawOffloadPacket to OffloadEngine. Bug: 297314970 Test: atest CtsNetTestCases FrameworksNetTestCases Change-Id: I06d7a9bb84df72808eff4f0c9df60f7e60aa2a2c
-
Yuyang Huang authored
-