- Nov 24, 2023
-
-
Kangping Dong authored
A screenshot of the demo app:  Bug: 273227725 Change-Id: I8d9bcf00bb54d3f152c436b56df919d967c5b71b
-
- Nov 22, 2023
-
-
Motomu Utsumi authored
framework-connectivity-flagged-apis-droidstubs is used by jarjar-rules-generator to avoid jarjaring flagged apis. But, this usage of --show-annotation FlaggedApi in the flag is not supported. So this CL removes --show-annotation FlaggedApi. As far as framework-connectivity-flagged-apis-droidstubs contains flagged APIs, it's fine that this droidstubs also contains non-flagged APIs. Test: TH Bug: 312408311 Change-Id: I2f1f5624d98873420c0c36ac6e31386102211045
-
Kangping Dong authored
Per API council feedback and API guideline at go/android-api-guidelines#provide-executor, it should call Binder.clearCallingIdentity() before invoking the app-supplied callbacks so that the app doesn't use the system-server's identity for permission check in the callback. Bug: 309952666 Test: atest ThreadNetworkUnitTests Change-Id: I3cfbce29c0a516506bb76a44b151a583c8477806
-
- Nov 17, 2023
-
-
Handa Wang authored
This CL lets ThreadNetworkControllerService calls the LocalNetworkConfig API to set up border routing between Thread and infrastructure network. Bug: 299552948 Bug: 305861411 Test: Verified on Cuttlefish that forwarding is set up. Change-Id: I8b2f015d9d6248bfb1cd9ac806dc8664970a26d2
-
- Nov 15, 2023
-
-
Yang Sun authored
Bug: 306111568 Test: manual test with cuttlefish. Result: https://paste.googleplex.com/4794566388482048 Change-Id: I7990388a14edea2253ece68b2dca2628732f4878
-
- Nov 13, 2023
-
-
Kangping Dong authored
Per API council review suggestions in b/309952666, add the same permission requirements for the unregister APIs. Bug: 309952666 Test: atest CtsThreadNetworkTestCases Change-Id: Idc481c7676ddc5d748fe7803f74dd63981186c09
-
- Nov 10, 2023
-
-
Handa Wang authored
InfraInterfaceController is used for creating an socket for sending/receiving ICMPv6 ND messages on the infrastructure network interface. Bug: 299552948 Test: verified on a Cuttlefish Change-Id: I02eafadafbf7a04e12fe74954b4812462c532e45
-
- Nov 09, 2023
-
-
Kangping Dong authored
Make it clear that Duration#ZERO is used for automatically selecting a reasonable value by the system. Bug: 307939803 Test: atest CtsThreadNetworkTestCases Change-Id: I880dca187902464fbe45ed6f2a64e9f88a5493ab
-
Kangping Dong authored
Change-Id: Id2c58d8bf72139f10036b5488a12f45dd0c7c2db
-
Kangping Dong authored
Change-Id: I383e4a0c78dc3b29fc1aa80d16204166f84ae61b
-
- Nov 08, 2023
-
-
Kangping Dong authored
Per API council review feedback in b/307939803 Bug: 307939803 Test: atest CtsThreadNetworkTestCases Change-Id: Ia5fbb38e24d09c4a8d95ce0dfd6058a65d5d4614
-
Kangping Dong authored
This commit renames `createRandomDataset` to `createRandomizedDataset` and moves this method to ThreadNetworkController class. The reason for moving this method is that we rely on the service side to know which channels are currently supported by this device and there is no safe way for ActiveOperationalDataset to created a randomized full dataset by its own. Moving this method to ThreadNetworkController also allows us to support future platform-dependend configurations. Bug: 308117328 Bug: 307939803 Change-Id: I0b0b7b727c3b326ab59bb1299ace15df1ff1ad5e
-
Kangping Dong authored
The ThreadNetworkController class provides APIs for managing the Thread network, for example, attach to a specific network, form a network with given dataset or update/migrate an existing network. Bug: 262683651 Test: atest CtsThreadNetworkTestCases Change-Id: Ib3c267d2c81a8c3c7772ed3c9cd2092487cc941a
-
Kangping Dong authored
Add a JNI wrapper of the NDK version of the ServiceManager which allows us to retrieve the ot-daemon lazy service. Bug: 262683651 Test: atest CtsThreadNetworkTestCases Change-Id: I1d331d1ba06c2b88f156622d4ae864dae7b15dc3
-
- Nov 07, 2023
-
-
Kangping Dong authored
Change-Id: I475096305728ba5177d680d5d09b7ee3a89a8ed8
-
Kangping Dong authored
OperationalDatasetTimestamp is saving the timestamp as an Instant object, and this has the problem that when the dataset timestamp is written to a TLV, it's going to loss precision as the nanoseconds of the Instant is converted to "Ticks". This results in bug that the dataset timestamp doesn't equal to the same value when it's converted back from a TLV: ``` var timestamp1 = OperationalDatasetTimestamp.fromInstant(Instant.ofEpochSecond(100, 999938900)); byte[] tlv = timestamp1.toTlvValue(); timestamp2 = OperationalDatasetTimestamp.fromTlvValue(tlv); assertThat(timestamp2).isEqualTo(timestamp1); // This fails!!! ``` Bug: 308408536 Test: atest ThreadNetworkUnitTests CtsThreadNetworkTestCases Change-Id: I81b482a05337b6d1150edaa28b860034592a4347
-
Kangping Dong authored
This make-pretty.sh can be called from any where and it formats only java code under packages/modules/Connectivity/thread/ Test: ./thread/scripts/make-pretty.sh Change-Id: I1b24025cf0267c81a7b133d1e8a08f77cc7ddc0e
-
Motomu Utsumi authored
FlaggedAPI will be ignored in udc-mainline-prod. This makes CtsThreadNetworkTestCases build fail. This CL updates CtsThreadNetworkTestCases to build against FlaggedAPI and also updates framework-connectivity-jarjar-rules not to jarjar FlaggedAPI. Test: TH Test: m CtsThreadNetworkTestCases Change-Id: Ida8872b3bf61b7a59733f5fcec9e7d250efd3e58
-
- Oct 26, 2023
-
-
Krzysztof Kosiński authored
Bug: 255714762 Test: presubmit Change-Id: I1a6394f6ff1cd56fac0f7a340857fdaee92fcbab
-
- Oct 25, 2023
-
-
Kangping Dong authored
Bug: 297729075 Test; build and pass the presubmit Change-Id: Ie90fd5dfd1d77ed45b39c527d37954f5ff6facd8
-
Kangping Dong authored
Per the API review council, the classes should be "final" by default Bug: 301076593 Test: build && atest CtsThreadNetworkTestCases Change-Id: I85f0b4fabe5b1bcec2be052620b38a07c58181d7
-
Kangping Dong authored
Design doc: go/thread-android-api Android FR: b/235016403 Bug: 262683651 Change-Id: Icbd4ee4150e3fd78df627c2e726c259e7ee50871
-
- Oct 24, 2023
-
-
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
-
- Oct 07, 2023
-
-
Krzysztof Kosiński authored
Bug: 255714762 Test: presubmit Change-Id: If91e9af5409fed9d5ccdd13749a0f562c545d589
-
- Sep 12, 2023
-
-
Kangping Dong authored
This commit sets up the initial Thread network service for the Android Thread feature which allows an Android device to create a Thread network and being a Border Router. See https://www.threadgroup.org/What-is-Thread for background of Thread. See b/235016403 for the Android Thread feature request. Test: lunch aosp_cf_x86_64_tv-userdebug m && launch_cvd atest CtsThreadNetworkTestCases Bug: 262683651 Change-Id: Ie1bb23084531f67165ec068ea3ca39592dbc01d1
-
- Sep 11, 2023
-
-
Kangping Dong authored
ot-daemon is a dependency of the new Thread feature. This commit add the ot-daemon binary and init rc file to the Tethering module. Note that the ot-daemon service is default disabled and versioned init rc file is used to ensure that this service won't be started before Android U. This is expected to increase the size of "com.android.tethering.capex" by around 400 KB. Manual verification: 1. on Android T (33) CF device, the ot-daemon service is not started after device boots; It reports service not found error when trying to start the ot-daemon service with adb shell command "start ot-daemon" 2. on Android U (34) CF device, the ot-daemon service is not started after device boots; It can be started with shell comamnd "start ot-daemon" but then failed because of missing sepolicy rules as expected Test: see above manual verification note Bug: 296211911 Change-Id: I222e2bbcc2ad0be2beec9f5f3406e7144d314370
-
- Aug 23, 2023
-
-
Kangping Dong authored
Bug: 296211911 Change-Id: Ifd4f7cd06f1aeaba739d27d2328e89031ca73235
-