Home
last modified time | relevance | path

Searched refs:leaveFuture (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkShellCommand.java168 CompletableFuture<Void> leaveFuture = new CompletableFuture<>(); in leave() local
169 mControllerService.leave(newOperationReceiver(leaveFuture)); in leave()
170 return waitForFuture(leaveFuture, LEAVE_TIMEOUT, getErrorWriter()); in leave()
/packages/modules/Connectivity/thread/tests/cts/src/android/net/thread/cts/
DThreadNetworkControllerTest.java444 CompletableFuture<Void> leaveFuture = new CompletableFuture<>();
449 () -> mController.leave(mExecutor, newOutcomeReceiver(leaveFuture)));
450 leaveFuture.get(LEAVE_TIMEOUT_MILLIS, MILLISECONDS);
465 CompletableFuture<Void> leaveFuture = new CompletableFuture<>();
467 leave(mController, newOutcomeReceiver(leaveFuture));
468 leaveFuture.get(LEAVE_TIMEOUT_MILLIS, MILLISECONDS);