- Feb 28, 2024
-
-
Motomu Utsumi authored
testSampleConnectivityState was flaky since sometimes networks were disconnected before ConnectivityService#sampleConnectivityState generates metrics This CL fixes this issue by adding setKeepConnectedReason to prevent networks are disconnected Bug: 318546530 Test: TH Change-Id: I824f5cd379c8144b48341cc0fd18eb976a4b1cde
-
- Feb 26, 2024
-
-
Chiachang Wang authored
-
Chiachang Wang authored
-
Chiachang Wang authored
The hasNetworkStackPermission() method does not enfore the permission check. It should be replaced with enforceNetworkStackPermission(). Bug: 325984919 Test: atest FrameworksNetTests Change-Id: I9ad0b47190dbc9afd2ee6f5dfc21a4935036733a
-
Chiachang Wang authored
Test: atest FrameworksNetTests Bug: 325984919 Change-Id: If76a216eca8527b4a7a7f7776d09f66e62daea06
-
Zhanglong Xia authored
-
Junyu Lai authored
-
- Feb 23, 2024
-
-
Junyu Lai authored
-
Zhanglong Xia authored
The API `createRandomizedDataset()` randomly selects a channel between channel 11 and 26. But not all countries support channels between 11 and 26. This CL selects random channel from the preferred channel mask if the preferred channel mask is not 0, otherwise choose one from the supported channel mask. Bug:b/308310823 Test: atest ThreadNetworkUnitTests && atest CtsThreadNetworkTestCases Change-Id: I6add3edc7e4fa888c46b57c4463ab18e0aa84e80
-
- Feb 22, 2024
-
-
Paul Hu authored
* changes: Add CTS test for Multipacket Known-Answer Suppression Add CTS test for Known-Answer Suppression
-
Yahav Nussbaum authored
-
Junyu Lai authored
This change is a follow-up from aosp/2970991. The kernel bug can trigger crashes on some T devices. Therefore, bumping the required API level is necessary. No CTS modification since the check doesn't exist in pre-U CTS releases. Test: atest CtsHostsideNetworkTests:com.android.cts.net.HostsideNetworkCallbackTests Bug: 326143935 Change-Id: I63796f25315ee9f966dd5bf0afd2240b1ed456e1
-
Yahav Nussbaum authored
Bug: 324993608 Test: TH Change-Id: I1dc79353e9bae3d977db88e572e871cd459fc7fc
-
Treehugger Robot authored
-
Chiachang Wang authored
* changes: Add start activity method override method Add permission control methods override
-
Treehugger Robot authored
-
Kangping Dong authored
remove handling of this error code given it's not returned from IOtDaemon APIs. Test: atest CtsThreadNetworkTestCases Change-Id: Id1d9b9d0ad45b7242e7c1d081b05ac51cf928603
-
Kangping Dong authored
In most cases, OT_ERROR_INVALID_STATE in ot-daemon indicates an internal error. OtDaemonServer should actually maintain the state to make sure no OT_ERROR_INVALID_STATE error can be returned. Test: atest CtsThreadNetworkTestCases Change-Id: I9dd6667548048873bf0c5b8eb85d929dfcaef997
-
Chiachang Wang authored
Add helper methods to support verifying startActivityAsUser(). Test: atest FrameworksNetTests Bug: 325984919 Change-Id: Id512ba6b1181974dde799ece64b263ce7a2f88f7
-
Chiachang Wang authored
Bug: 325984919 Test: atest FrameworksNetTests Change-Id: Ib57a4a936538295a6df10ae7e334bc969ea455d1
-
- Feb 21, 2024
-
-
Kangping Dong authored
This is required to included Thread module APIs in DP2 release. See ag/26286387 merged-in is used to stop the CL from being merged into U branches Bug: 325886480 Merged-In: I1eed7982b40d28947aa3f9575c568eac325dc832 Merged-In: I79be1b48058ce6fb08149e18cdd7a5f5b0762769 Change-Id: I79be1b48058ce6fb08149e18cdd7a5f5b0762769
-
Kangping Dong authored
-
Yahav Nussbaum authored
-
Junyu Lai authored
This is used in follow-up changes to rate-limit TrafficStats get* API calls. Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.TrafficStatsRateLimitCacheTest Bug: N/A Change-Id: I91bc71dda3a1b7c0b5525278b3c04d12492972fa
-
Kangping Dong authored
Per comment in https://android-review.git.corp.google.com/c/platform/test/mts/+/2930711/comment/a88f14b1_a2fb9841/ Bug: 322142548 Change-Id: Id87c9f20be31cbead2062c08addc5995df143896
-
Jimi Chen authored
-
- Feb 20, 2024
-
-
Suprabh Shukla authored
The feature is now turned on so the tests can be re-enabled. This reverts commit 62663423. Test: atest CtsHostsideNetworkTests Bug: 304347838 Change-Id: I85f462e75931240bde8b0dd956c0011ec8435b8f
-
Ying Xu authored
-
Ying Xu authored
Always store the corresponding SubscriptionId together with the Carrier uid so that when the carrier loses the Privilege, both the uid and SubscriptionID will be used in the onCarrierPrivilegesLost callback Bug: 324357121 Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.connectivity.CarrierPrivilegeAuthenticatorTest atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.ConnectivityServiceTest Change-Id: I28e51c583261a67d4441c6f825ade6781b862ee4
-
Remi NGUYEN VAN authored
-
Jimi Chen authored
Refactor the test case to support listen custom DNS/HTTP port. Avoid binding system restricted port (<1024). Bug: 322113686 Test: atest NetworkStackIntegrationTests:android.net.NetworkStatsIntegrationTest Change-Id: I5d3b966cdadc9321ca2ee0d04a5b8f71ee79bd8a
-
Kangping Dong authored
This commit follows the guideline in go/ae-v-thread-admin-control that Thread radio should be disabled when the user restriction is set and nobody can enable Thread again (it fails with ERROR_FAILED_PRECONDIFITION). This commit adds only unit tests, E2E CTS tests are tracked in b/319079428 Bug: 319077876 Change-Id: I8981aa9e71948c64ee79701427ac794880826327
-
- Feb 19, 2024
-
-
Zhi Dou authored
If sdk_version is empty, by default the library will be built against the implementation of the framework jars. There are on going project to automatically repackaging flag libraries in the libray which is built direactly against the implementation of the framework jars. This change set the right sdk_version for the testing library. Bug: 310504781 Test: atest jarjar-rules-generator-test and CI Change-Id: I24d8dc47f7ed83f0b84c632d24396e2bdf932424
-
Handa Wang authored
-
Handa Wang authored
-
Motomu Utsumi authored
-
Motomu Utsumi authored
This CL also specifies aconfig_declaration module in java_sdk_library register_nsd_offload_engine will be moved to the platform flags.aconfig in the followup CL. Test: TH Change-Id: I430a5f0b1e1ef2e3394cf6aa8efebbd46da41765
-
Handa Wang authored
When adding a service, the MdnsRecordRepository finds the existing service solely by service name, which is wrong. it should check both the service name and the service type. Bug: 325862182 Change-Id: I72c6837d0dfb41fc9b2d7763e18b3f5415f8c0d9
-
Handa Wang authored
This test case lets the BR send a UDP message to Thread device using socket API and verify the message is received on the Thread device via ot-ctl udp command. For now this only verifies the direction BR -> ED because the other direction ED -> BR is depending on platform UDP feature which is not enabled yet. Bug: 321168973 Test: atest ThreadNetworkIntegrationTests:BorderRoutingTest#unicastRouting_borderRouterSendsUdpToThreadDevice_datagramReceived Change-Id: I590583dd818f3d72dec41184e5427a8b08f842bb
-
- Feb 17, 2024
-
-
Maciej Żenczykowski authored
-