Home
last modified time | relevance | path

Searched refs:ActiveOperationalDataset (Results 1 – 24 of 24) sorted by relevance

/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DActiveOperationalDatasetTest.java19 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 …]
DPendingOperationalDatasetTest.java27 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 …]
DThreadNetworkControllerTest.java57 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/
DActiveOperationalDatasetTest.java24 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 …]
DThreadNetworkControllerTest.java79 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/
DThreadNetworkController.java192 @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 …]
DPendingOperationalDataset.java69 @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()
DActiveOperationalDataset.java74 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 …]
DIActiveOperationalDatasetReceiver.aidl19 import android.net.thread.ActiveOperationalDataset;
23 void onSuccess(in ActiveOperationalDataset dataset); in onSuccess()
DIOperationalDatasetCallback.aidl19 import android.net.thread.ActiveOperationalDataset;
26 void onActiveOperationalDatasetChanged(in @nullable ActiveOperationalDataset activeOpDataset); in onActiveOperationalDatasetChanged()
DIThreadNetworkController.aidl19 import android.net.thread.ActiveOperationalDataset;
38 void join(in ActiveOperationalDataset activeOpDataset, in IOperationReceiver receiver); in join()
DActiveOperationalDataset.aidl19 parcelable ActiveOperationalDataset;
/packages/modules/Connectivity/framework-t/api/
Dsystem-current.txt426 …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/
DThreadNetworkShellCommand.java21 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()
DThreadNetworkControllerService.java21 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 …]
DActiveOperationalDatasetReceiverWrapper.java22 import android.net.thread.ActiveOperationalDataset;
66 public void onSuccess(ActiveOperationalDataset dataset) { in onSuccess()
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/
DThreadNetworkSettingsFragment.java28 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/
DThreadNetworkControllerServiceTest.java19 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));
DThreadNetworkShellCommandTest.java37 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/
DThreadIntegrationTest.java94 private static final ActiveOperationalDataset DEFAULT_DATASET =
95 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS);
337 private void startFtdChild(FullThreadDevice ftd, ActiveOperationalDataset activeDataset) in startFtdChild()
DBorderRoutingTest.java106 private static final ActiveOperationalDataset DEFAULT_DATASET =
107 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS);
DServiceDiscoveryTest.java90 private static final ActiveOperationalDataset DEFAULT_DATASET =
91 ActiveOperationalDataset.fromThreadTlvs(DEFAULT_DATASET_TLVS);
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java31 import android.net.thread.ActiveOperationalDataset;
132 public void joinAndWait(ActiveOperationalDataset activeDataset) in joinAndWait()
DFullThreadDevice.java28 import android.net.thread.ActiveOperationalDataset;
77 private ActiveOperationalDataset mActiveOperationalDataset;
175 public void joinNetwork(ActiveOperationalDataset dataset) { in joinNetwork()