- Oct 26, 2023
-
-
Mark authored
When tethering restarts due to an IP conflict, it starts to bring up downstream before its IpServer is completely disabled. Test: atest TetheringTests Change-Id: I0b0f0bf1bb9ac8421c05fe512d5082d095fa7180
-
Mark authored
A simple replacement without changing any behavior. Test: atest TetheringTests Change-Id: I34903b57df68081e974163edec82a851ee4ccc98
-
Mark authored
Test: atest StateMachineShimTest Change-Id: Ic818aa55e7e0fd7a62dfce50a6ad719e6e1c44ec
-
- Oct 25, 2023
-
-
Kangping Dong authored
-
Kangping Dong authored
Design doc: go/thread-android-api Android FR: b/235016403 Bug: 262683651 Change-Id: Icbd4ee4150e3fd78df627c2e726c259e7ee50871
-
Jean Chalard authored
-
Mark Chien authored
-
Patrick Rohr authored
* changes: Add toString for more consistent logging to IaPrefixOption Create IpPrefix in IaPrefixOption constructor Add @Computed annotation to Struct Remove check that preferred lifetime >= t2 Remove IA prefix option option-code from public constructor
-
Junyu Lai authored
-
Maciej Żenczykowski authored
-
- Oct 24, 2023
-
-
Patrick Rohr authored
toString() approximately follows the format of tcpdump logging ND options. Test: TH Change-Id: Idce2024f44bba5427dc0f88128b87b367c09ccb6
-
Patrick Rohr authored
The constructor is invoked during Struct#parse() at which point we might as well try to create the IpPrefix object which will be used later. If this fails for some reason (UnknownHostException or ClassCastException), the prefix is bogus and should not be used. Test: TH Change-Id: I7e0090735022d017ba11aa85266ba19e65807da7
-
Patrick Rohr authored
@Computed will ignore "computed" fields from struct parsing. Fields cannot both be annotated by @Computed and @Field (though there currently is no check for this). Test: builds Change-Id: I29fe506c5e3be4cc50fdaf3a07fc5e922111165b
-
Maciej Żenczykowski authored
Stripping comments since those are not interesting for the purposes of what these things actually do. Doing R+ since tethering apex only supports R+ now. Generated via: (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android11-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk30-11-R.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android12-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk31-12-S.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android13-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk33-13-T.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/android14-release:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk34-14-U.rc (cd ../../../../../system/bpf && git cat-file -p remotes/aosp/main:bpfloader/bpfloader.rc; ) | egrep -v '^ *#' > bpfloader-sdk34-14-U-QPR2.rc Test: N/A Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: Idd8032ce66ef07a1d9e42343e75b26d764e6d8c1
-
Patrick Rohr authored
For a single address, DHCPv6 won't work well (i.e. potentially lose provisioning) if the preferred lifetime is lower than t2. However, this might be a valid scenario in a renumbering event in the presence of multiple prefixes. Additionally, in DHCPv6 it is up to the server to configure the client correctly. Test: TH Change-Id: I37b2a0b89deda85b3f7be29c8f02f685aa6e65f8
-
Kangping Dong authored
-
Chalard Jean authored
Test: In followup changes : RoutingCoordinatorManagerTest Change-Id: Ia6811d614e02123a072c7638291828745abae051
-
Kangping Dong authored
This commit declares the initial "thread_enabled" feature flag and use this to flag all existing and future Thread system APIs with @FlaggedApi Bug: 301473012 Test: build Change-Id: I43f64ce38f7fd0806733b21c4f393e4563e6a467
-
Maciej Żenczykowski authored
Generated via: cat ../../../system/bpf/bpfloader/bpfloader.rc > netbpfload/netbpfload.rc (plus changing Android.bp to use it) Test: TreeHugger Signed-off-by:
Maciej Żenczykowski <maze@google.com> Change-Id: I4bcdd57b0b5abcc296a4c56273d6aac632560345
-
Junyu Lai authored
Revert submission 2799494-revert-2745215-npmsbpf-OBOPDXREUI Reason for revert: Need to 1. Merge API first. 2. Wait for prebuilt. 3. Merge the caller. Reverted changes: /q/submissionid:2799494-revert-2745215-npmsbpf-OBOPDXREUI Change-Id: Icd5f3d40595a0d2a221b016cec70568bf3597c16
-
Mark Chien authored
* changes: SyncSM05.1: add testMultiDepthTransition SyncSM05: add SyncStateMachineTest
-
Mark Chien authored
The problem is that the test releases mHotspotIpServer’s prefix before testing mUsbIpServer, which means that mUsbIpServer might choose the same address as mHotspotIpServer’s. To fix this, we need to test that mUsbIpServer and mHotspotIpServer have different addresses before calling releaseDownstream(mHotspotIpServer). Change-Id: Id7f7bbfeda841ec9b97e24c0f11893fa37b9ef54 Test: TH Bug: 300127195
-
Junyu Lai authored
-
Jean Chalard authored
-
Hansen Kurli authored
-
- Oct 23, 2023
-
-
Patrick Rohr authored
Since it is constant. Struct.parse() still requires a constructor that includes the code field, so it is marked protected. Test: TH Change-Id: Iccb4e3ec4078e0dcc73836f0d1b721146153da50
-
Maciej Żenczykowski authored
-
Jordan Silva authored
-
Jordan Silva authored
Revert submission 2745215-npmsbpf DroidMonitor: Potential culprit for Bug 307256512 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted. Reason for revert: 307256512 Reverted changes: /q/submissionid:2745215-npmsbpf Change-Id: I27119a7484453d1369bbdf71ad2479edec7d664f
-
Junyu Lai authored
A helper class to *read* java BpfMaps. This is designed to provide direct bpf access in the caller process through ConnectivityManager APIs. The change also removes any statical link to net-utils-device-common-struct from service-connectivity. This is because net-utils-device-common-struct is already included in framework-connectivity. Including it again in service-connectivity would create a r8 build fail by circular dependency. Test: atest FrameworksNetTests:android.net.connectivity.com.android.server.BpfNetMapsTest Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.net.module.util.StructTest Test: atest FrameworksNetTests:android.net.connectivity.android.net.BpfNetMapsReaderTest Bug: 297836825 Change-Id: I7a6d2eb816d0dc7343167bddd672806b199f44fe
-
Hansen Kurli authored
* changes: Add tests for always on lockdown VPN on system user. Remove MockVpn.setAlwaysOnPackage() non-lockdown. Mock onUserAdded() and onUserRemoved() Refactor helper method to return integer ranges. Add tests for onUserAdded and onUserRemoved
-
Junyu Lai authored
-
Hansen Kurli authored
Call setRequireVpnForUids() directly to mock an always on Vpn being enabled instead of calling the real Vpn method. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: I63d6547104cc6ee984413d4cf6027ceecd301ecc
-
Hansen Kurli authored
Add test coverage for Vpn.setAlwaysOnPackage() where the caller is system user to ensure uid = 0 is not restricted. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: Id9f81fdf0147597f64f8440b971930b3bd7b55e5
-
Chalard Jean authored
Test: manual Change-Id: Ife55ed9dc152cd2c21e56b84201b9c34dbb04d46
-
Hansen Kurli authored
Remove calls to MockVpn.setAlwaysOnPackage() where lockdown is false as this does not cause any changes to occur. Also verify setRequireVpnForUids() is not called for this case in VpnTest. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: I3428e8b31b02975975be9e943e1f88cf0e80c5ee
-
Mark authored
Test: atest TetheringTests Change-Id: I427360f6a106b001123442ccd4802290d4f13369
-
Mark authored
A initial test for SyncStateMachine, will add more tests in the following changes. Test: atest SyncStateMachineTest Change-Id: Ie6dbbe22bfef40b1675d50243d14d0a235df1e3a
-
Hansen Kurli authored
Replace calls to onUserAdded() and onUserRemoved() to their equivalent setUids() or setRequireVpnForUids() calls. Note coverage for the calls to Vpn were added in VpnTest. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: Ifa895f71f78bd3376216fd2759c7a5a33cd3aff1
-
Hansen Kurli authored
Calls to setRequireVpnForUids() for Vpn lockdown actually uses a List instead of a Set of integer ranges. Add intRangesExcludingUids() to return the needed List of integer ranges and replace relevant usages of UidRange.toIntRanges() with it. Bug: 230548427 Test: atest FrameworksNetTests Change-Id: I61cd4751ce2faeb129daa5ad5da7181e3c1df73c
-