Home
last modified time | relevance | path

Searched refs:activeDataset (Results 1 – 9 of 9) sorted by relevance

/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DPendingOperationalDatasetTest.java137 final ActiveOperationalDataset activeDataset = createActiveDataset(); in constructor_correctValuesAreSet() local
140 activeDataset, in constructor_correctValuesAreSet()
144 assertThat(dataset.getActiveOperationalDataset()).isEqualTo(activeDataset); in constructor_correctValuesAreSet()
177 ActiveOperationalDataset activeDataset = pendingDataset.getActiveOperationalDataset(); in fromThreadTlvs_openthreadTlvs_success() local
179 assertThat(activeDataset.getActiveTimestamp().getSeconds()).isEqualTo(1L); in fromThreadTlvs_openthreadTlvs_success()
180 assertThat(activeDataset.getChannel()).isEqualTo(26); in fromThreadTlvs_openthreadTlvs_success()
181 assertThat(activeDataset.getChannelMask().get(0)) in fromThreadTlvs_openthreadTlvs_success()
184 assertThat(activeDataset.getExtendedPanId()) in fromThreadTlvs_openthreadTlvs_success()
186 assertThat(activeDataset.getMeshLocalPrefix()) in fromThreadTlvs_openthreadTlvs_success()
188 assertThat(activeDataset.getNetworkKey()) in fromThreadTlvs_openthreadTlvs_success()
[all …]
DThreadNetworkControllerTest.java372 ActiveOperationalDataset activeDataset = newRandomizedDataset("TestNet", mController);
377 () -> mController.join(activeDataset, mExecutor, newOutcomeReceiver(joinFuture)));
381 assertThat(getActiveOperationalDataset(mController)).isEqualTo(activeDataset);
387 ActiveOperationalDataset activeDataset = newRandomizedDataset("TestNet", mController);
390 SecurityException.class, () -> mController.join(activeDataset, mExecutor, v -> {}));
396 ActiveOperationalDataset activeDataset = newRandomizedDataset("TestNet", mController);
401 () -> mController.join(activeDataset, mExecutor, newOutcomeReceiver(joinFuture)));
524 ActiveOperationalDataset activeDataset) {
525 if (activeDataset.equals(activeDataset2)) {
569 final ActiveOperationalDataset activeDataset =
[all …]
/packages/modules/Connectivity/thread/framework/java/android/net/thread/
DPendingOperationalDataset.java112 ActiveOperationalDataset activeDataset = ActiveOperationalDataset.fromThreadTlvs(tlvs); in fromThreadTlvs() local
113 SparseArray<byte[]> unknownTlvs = activeDataset.getUnknownTlvs(); in fromThreadTlvs()
143 activeDataset = in fromThreadTlvs()
144 new ActiveOperationalDataset.Builder(activeDataset) in fromThreadTlvs()
147 return new PendingOperationalDataset(activeDataset, pendingTimestamp, delayTimer); in fromThreadTlvs()
DThreadNetworkController.java350 void onActiveOperationalDatasetChanged(@Nullable ActiveOperationalDataset activeDataset); in onActiveOperationalDatasetChanged() argument
375 @Nullable ActiveOperationalDataset activeDataset) { in onActiveOperationalDatasetChanged()
378 mExecutor.execute(() -> mCallback.onActiveOperationalDatasetChanged(activeDataset)); in onActiveOperationalDatasetChanged()
491 @NonNull ActiveOperationalDataset activeDataset, in join()
494 requireNonNull(activeDataset, "activeDataset cannot be null"); in join()
498 mControllerService.join(activeDataset, new OperationReceiverProxy(executor, receiver)); in join()
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkControllerServiceTest.java583 ActiveOperationalDataset activeDataset = mActiveDatasetCaptor.getValue();
584 assertThat(activeDataset.getActiveTimestamp().isAuthoritativeSource()).isFalse();
606 ActiveOperationalDataset activeDataset = mActiveDatasetCaptor.getValue();
607 assertThat(activeDataset.getActiveTimestamp().isAuthoritativeSource()).isTrue();
623 ActiveOperationalDataset activeDataset = mActiveDatasetCaptor.getValue();
624 assertThat(activeDataset.getNetworkName()).isEqualTo(DEFAULT_NETWORK_NAME);
625 assertThat(activeDataset.getChannelMask().size()).isEqualTo(1);
626 assertThat(activeDataset.getChannelMask().get(CHANNEL_PAGE_24_GHZ))
628 assertThat(activeDataset.getChannel()).isEqualTo(DEFAULT_SELECTED_CHANNEL);
DThreadNetworkShellCommandTest.java231 var activeDataset = in join_controllerServiceJoinIsCalled() local
234 verify(mControllerService, times(1)).join(eq(activeDataset), any()); in join_controllerServiceJoinIsCalled()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/utils/
DThreadNetworkControllerWrapper.java132 public void joinAndWait(ActiveOperationalDataset activeDataset) in joinAndWait() argument
139 activeDataset, directExecutor(), newOutcomeReceiver(future))); in joinAndWait()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkControllerService.java1050 @NonNull ActiveOperationalDataset activeDataset, @NonNull IOperationReceiver receiver) {
1054 mHandler.post(() -> joinInternal(activeDataset, receiverWrapper));
1058 @NonNull ActiveOperationalDataset activeDataset,
1064 getOtDaemon().join(activeDataset.toThreadTlvs(), newOtStatusReceiver(receiver));
1589 ActiveOperationalDataset activeDataset, long listenerId) {
1591 boolean hasChange = !Objects.equals(mActiveDataset, activeDataset);
1598 callbackEntry.getKey().onActiveOperationalDatasetChanged(activeDataset);
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadIntegrationTest.java337 private void startFtdChild(FullThreadDevice ftd, ActiveOperationalDataset activeDataset) in startFtdChild() argument
340 ftd.joinNetwork(activeDataset); in startFtdChild()