Home
last modified time | relevance | path

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

/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkControllerServiceTest.java428 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in userRestriction_setEnabledWhenUserRestricted_failedPreconditionError() local
429 mService.setEnabled(true, newOperationReceiver(setEnabledFuture)); in userRestriction_setEnabledWhenUserRestricted_failedPreconditionError()
432 var thrown = assertThrows(ExecutionException.class, () -> setEnabledFuture.get()); in userRestriction_setEnabledWhenUserRestricted_failedPreconditionError()
492 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in airplaneMode_setEnabledWhenAirplaneModeIsOn_WillNotAutoDisableSecondTime() local
495 mService.setEnabled(true, newOperationReceiver(setEnabledFuture)); in airplaneMode_setEnabledWhenAirplaneModeIsOn_WillNotAutoDisableSecondTime()
513 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime() local
515 mService.setEnabled(true, newOperationReceiver(setEnabledFuture)); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime()
518 mService.setEnabled(false, newOperationReceiver(setEnabledFuture)); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DThreadNetworkShellCommand.java148 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in setThreadEnabled() local
149 mControllerService.setEnabled(enabled, newOperationReceiver(setEnabledFuture)); in setThreadEnabled()
150 return waitForFuture(setEnabledFuture, SET_ENABLED_TIMEOUT, getErrorWriter()); in setThreadEnabled()