/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/ |
D | ActiveOperationalDatasetTest.java | 19 import static android.net.thread.ActiveOperationalDataset.CHANNEL_PAGE_24_GHZ; 29 import android.net.thread.ActiveOperationalDataset; 30 import android.net.thread.ActiveOperationalDataset.Builder; 31 import android.net.thread.ActiveOperationalDataset.SecurityPolicy; 85 private static final ActiveOperationalDataset DEFAULT_DATASET = 86 ActiveOperationalDataset.fromThreadTlvs(VALID_DATASET_TLVS); 117 ActiveOperationalDataset dataset = in parcelable_parcelingIsLossLess() 118 ActiveOperationalDataset.fromThreadTlvs(VALID_DATASET_TLVS); in parcelable_parcelingIsLossLess() 134 () -> ActiveOperationalDataset.fromThreadTlvs(invalidTlv)); in fromThreadTlvs_tooLongTlv_throwsIllegalArgument() 144 () -> ActiveOperationalDataset.fromThreadTlvs(invalidTlv)); in fromThreadTlvs_invalidNetworkKeyTlv_throwsIllegalArgument() [all …]
|
D | PendingOperationalDatasetTest.java | 27 import android.net.thread.ActiveOperationalDataset; 28 import android.net.thread.ActiveOperationalDataset.SecurityPolicy; 55 private static ActiveOperationalDataset createActiveDataset() throws Exception { in createActiveDataset() 59 return new ActiveOperationalDataset.Builder() in createActiveDataset() 86 ActiveOperationalDataset activeDataset1 = in equalityTests() 87 new ActiveOperationalDataset.Builder(createActiveDataset()) in equalityTests() 90 ActiveOperationalDataset activeDataset2 = in equalityTests() 91 new ActiveOperationalDataset.Builder(createActiveDataset()) in equalityTests() 137 final ActiveOperationalDataset activeDataset = createActiveDataset(); in constructor_correctValuesAreSet() 177 ActiveOperationalDataset activeDataset = pendingDataset.getActiveOperationalDataset(); in fromThreadTlvs_openthreadTlvs_success() [all …]
|
D | ThreadNetworkControllerTest.java | 57 import android.net.thread.ActiveOperationalDataset; 293 CompletableFuture<ActiveOperationalDataset> activeFuture = new CompletableFuture<>(); in registerOperationalDatasetCallback_permissionsGranted_returnsCurrentStates() 311 CompletableFuture<ActiveOperationalDataset> activeFuture = new CompletableFuture<>(); in registerOperationalDatasetCallback_noPermissions_throwsSecurityException() 323 CompletableFuture<ActiveOperationalDataset> activeFuture = new CompletableFuture<>(); in unregisterOperationalDatasetCallback_callbackRegistered_success() 334 CompletableFuture<ActiveOperationalDataset> activeFuture = new CompletableFuture<>(); in unregisterOperationalDatasetCallback_noPermissions_throwsSecurityException() 372 ActiveOperationalDataset activeDataset = newRandomizedDataset("TestNet", mController); 387 ActiveOperationalDataset activeDataset = newRandomizedDataset("TestNet", mController); 396 ActiveOperationalDataset activeDataset = newRandomizedDataset("TestNet", mController); 415 ActiveOperationalDataset activeDataset1 = 416 new ActiveOperationalDataset.Builder(newRandomizedDataset("TestNet", mController)) [all …]
|
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/ |
D | ActiveOperationalDatasetTest.java | 24 import android.net.thread.ActiveOperationalDataset.Builder; 25 import android.net.thread.ActiveOperationalDataset.SecurityPolicy; 74 ActiveOperationalDataset dataset1 = in fromThreadTlvs_containsUnknownTlvs_unknownTlvsRetained() 75 ActiveOperationalDataset.fromThreadTlvs(datasetWithUnknownTlvs); in fromThreadTlvs_containsUnknownTlvs_unknownTlvsRetained() 76 ActiveOperationalDataset dataset2 = in fromThreadTlvs_containsUnknownTlvs_unknownTlvsRetained() 77 ActiveOperationalDataset.fromThreadTlvs(dataset1.toThreadTlvs()); in fromThreadTlvs_containsUnknownTlvs_unknownTlvsRetained() 88 Builder builder = new Builder(ActiveOperationalDataset.fromThreadTlvs(VALID_DATASET_TLVS)); in builder_buildWithTooLongTlvs_throwsIllegalState() 98 ActiveOperationalDataset dataset1 = in builder_setUnknownTlvs_success() 99 ActiveOperationalDataset.fromThreadTlvs(VALID_DATASET_TLVS); in builder_setUnknownTlvs_success() 104 ActiveOperationalDataset dataset2 = in builder_setUnknownTlvs_success() [all …]
|
D | ThreadNetworkControllerTest.java | 79 private static final ActiveOperationalDataset DEFAULT_DATASET = 80 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS); 180 ActiveOperationalDataset dataset) { in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity() 232 public void onResult(ActiveOperationalDataset dataset) {} in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity() 258 .join(any(ActiveOperationalDataset.class), any(IOperationReceiver.class)); in join_callbackIsInvokedWithCallingAppIdentity() 269 .join(any(ActiveOperationalDataset.class), any(IOperationReceiver.class)); in join_callbackIsInvokedWithCallingAppIdentity()
|
/packages/modules/Connectivity/thread/framework/java/android/net/thread/ |
D | ThreadNetworkController.java | 192 @NonNull OutcomeReceiver<ActiveOperationalDataset, ThreadNetworkException> receiver) { in createRandomizedDataset() argument 193 ActiveOperationalDataset.checkNetworkName(networkName); in createRandomizedDataset() 350 void onActiveOperationalDatasetChanged(@Nullable ActiveOperationalDataset activeDataset); in onActiveOperationalDatasetChanged() 375 @Nullable ActiveOperationalDataset activeDataset) { in onActiveOperationalDatasetChanged() 491 @NonNull ActiveOperationalDataset activeDataset, in join() 651 if ((channel < ActiveOperationalDataset.CHANNEL_MIN_24_GHZ) in setChannelMaxPowers() 652 || (channel > ActiveOperationalDataset.CHANNEL_MAX_24_GHZ)) { in setChannelMaxPowers() 657 + ActiveOperationalDataset.CHANNEL_MIN_24_GHZ in setChannelMaxPowers() 659 + ActiveOperationalDataset.CHANNEL_MAX_24_GHZ in setChannelMaxPowers() 716 final OutcomeReceiver<ActiveOperationalDataset, ThreadNetworkException> mResultReceiver; [all …]
|
D | PendingOperationalDataset.java | 69 @NonNull private final ActiveOperationalDataset mActiveOpDataset; 84 @NonNull ActiveOperationalDataset activeOpDataset, in PendingOperationalDataset() 112 ActiveOperationalDataset activeDataset = ActiveOperationalDataset.fromThreadTlvs(tlvs); in fromThreadTlvs() 144 new ActiveOperationalDataset.Builder(activeDataset) in fromThreadTlvs() 152 public ActiveOperationalDataset getActiveOperationalDataset() { in getActiveOperationalDataset()
|
D | ActiveOperationalDataset.java | 74 public final class ActiveOperationalDataset implements Parcelable { class 142 public static final Creator<ActiveOperationalDataset> CREATOR = 145 public ActiveOperationalDataset createFromParcel(Parcel in) { 146 return ActiveOperationalDataset.fromThreadTlvs(in.createByteArray()); 150 public ActiveOperationalDataset[] newArray(int size) { 151 return new ActiveOperationalDataset[size]; 168 private ActiveOperationalDataset(Builder builder) { in ActiveOperationalDataset() method in ActiveOperationalDataset 184 private ActiveOperationalDataset( in ActiveOperationalDataset() method in ActiveOperationalDataset 224 public static ActiveOperationalDataset fromThreadTlvs(@NonNull byte[] tlvs) { in fromThreadTlvs() 572 } else if (!(other instanceof ActiveOperationalDataset)) { in equals() [all …]
|
D | IActiveOperationalDatasetReceiver.aidl | 19 import android.net.thread.ActiveOperationalDataset; 23 void onSuccess(in ActiveOperationalDataset dataset); in onSuccess()
|
D | IOperationalDatasetCallback.aidl | 19 import android.net.thread.ActiveOperationalDataset; 26 void onActiveOperationalDatasetChanged(in @nullable ActiveOperationalDataset activeOpDataset); in onActiveOperationalDatasetChanged()
|
D | IThreadNetworkController.aidl | 19 import android.net.thread.ActiveOperationalDataset; 38 void join(in ActiveOperationalDataset activeOpDataset, in IOperationReceiver receiver); in join()
|
D | ActiveOperationalDataset.aidl | 19 parcelable ActiveOperationalDataset;
|
/packages/modules/Connectivity/framework-t/api/ |
D | system-current.txt | 426 …om.android.net.thread.flags.thread_enabled") public final class ActiveOperationalDataset implement… 428 …method @NonNull public static android.net.thread.ActiveOperationalDataset fromThreadTlvs(@NonNull … 433 …method @NonNull @Size(android.net.thread.ActiveOperationalDataset.LENGTH_EXTENDED_PAN_ID) public b… 435 …method @NonNull @Size(android.net.thread.ActiveOperationalDataset.LENGTH_NETWORK_KEY) public byte[… 436 …e(min=android.net.thread.ActiveOperationalDataset.LENGTH_MIN_NETWORK_NAME_BYTES, max=android.net.t… 438 …method @NonNull @Size(android.net.thread.ActiveOperationalDataset.LENGTH_PSKC) public byte[] getPs… 439 …method @NonNull public android.net.thread.ActiveOperationalDataset.SecurityPolicy getSecurityPolic… 445 …ic static final android.os.Parcelable.Creator<android.net.thread.ActiveOperationalDataset> CREATOR; 455 public static final class ActiveOperationalDataset.Builder { 456 …ctor public ActiveOperationalDataset.Builder(@NonNull android.net.thread.ActiveOperationalDataset); [all …]
|
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/ |
D | ThreadNetworkShellCommand.java | 21 import android.net.thread.ActiveOperationalDataset; 155 ActiveOperationalDataset dataset; in join() 157 dataset = ActiveOperationalDataset.fromThreadTlvs(datasetTlvs); in join() 175 ActiveOperationalDataset dataset; in migrate() 177 dataset = ActiveOperationalDataset.fromThreadTlvs(datasetTlvs); in migrate()
|
D | ThreadNetworkControllerService.java | 21 import static android.net.thread.ActiveOperationalDataset.CHANNEL_PAGE_24_GHZ; 22 import static android.net.thread.ActiveOperationalDataset.LENGTH_EXTENDED_PAN_ID; 23 import static android.net.thread.ActiveOperationalDataset.LENGTH_MESH_LOCAL_PREFIX_BITS; 24 import static android.net.thread.ActiveOperationalDataset.LENGTH_NETWORK_KEY; 25 import static android.net.thread.ActiveOperationalDataset.LENGTH_PSKC; 26 import static android.net.thread.ActiveOperationalDataset.MESH_LOCAL_PREFIX_FIRST_BYTE; 27 import static android.net.thread.ActiveOperationalDataset.SecurityPolicy.DEFAULT_ROTATION_TIME_HOUR… 90 import android.net.thread.ActiveOperationalDataset; 91 import android.net.thread.ActiveOperationalDataset.SecurityPolicy; 842 ActiveOperationalDataset dataset = in newChannelMasksReceiver() [all …]
|
D | ActiveOperationalDatasetReceiverWrapper.java | 22 import android.net.thread.ActiveOperationalDataset; 66 public void onSuccess(ActiveOperationalDataset dataset) { in onSuccess()
|
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/ |
D | ThreadNetworkSettingsFragment.java | 28 import android.net.thread.ActiveOperationalDataset; 66 private ActiveOperationalDataset mActiveDataset; 72 private static final ActiveOperationalDataset DEFAULT_ACTIVE_DATASET = 73 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_ACTIVE_DATASET_TLVS); 209 new ActiveOperationalDataset.Builder(DEFAULT_ACTIVE_DATASET) in doMigration()
|
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/ |
D | ThreadNetworkControllerServiceTest.java | 19 import static android.net.thread.ActiveOperationalDataset.CHANNEL_PAGE_24_GHZ; 59 import android.net.thread.ActiveOperationalDataset; 133 private static final ActiveOperationalDataset DEFAULT_ACTIVE_DATASET = 134 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_ACTIVE_DATASET_TLVS); 168 @Captor private ArgumentCaptor<ActiveOperationalDataset> mActiveDatasetCaptor; 583 ActiveOperationalDataset activeDataset = mActiveDatasetCaptor.getValue(); 606 ActiveOperationalDataset activeDataset = mActiveDatasetCaptor.getValue(); 623 ActiveOperationalDataset activeDataset = mActiveDatasetCaptor.getValue(); 642 verify(mockReceiver, never()).onSuccess(any(ActiveOperationalDataset.class));
|
D | ThreadNetworkShellCommandTest.java | 37 import android.net.thread.ActiveOperationalDataset; 232 ActiveOperationalDataset.fromThreadTlvs( in join_controllerServiceJoinIsCalled() 269 ActiveOperationalDataset.fromThreadTlvs( in migrate_controllerServiceMigrateIsCalled()
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/ |
D | ThreadIntegrationTest.java | 94 private static final ActiveOperationalDataset DEFAULT_DATASET = 95 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS); 337 private void startFtdChild(FullThreadDevice ftd, ActiveOperationalDataset activeDataset) in startFtdChild()
|
D | BorderRoutingTest.java | 106 private static final ActiveOperationalDataset DEFAULT_DATASET = 107 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS);
|
D | ServiceDiscoveryTest.java | 90 private static final ActiveOperationalDataset DEFAULT_DATASET = 91 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS);
|
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/ |
D | ThreadNetworkControllerWrapper.java | 31 import android.net.thread.ActiveOperationalDataset; 132 public void joinAndWait(ActiveOperationalDataset activeDataset) in joinAndWait()
|
D | FullThreadDevice.java | 28 import android.net.thread.ActiveOperationalDataset; 77 private ActiveOperationalDataset mActiveOperationalDataset; 175 public void joinNetwork(ActiveOperationalDataset dataset) { in joinNetwork()
|