Searched refs:setEnabledFuture (Results 1 – 2 of 2) sorted by relevance
428 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in userRestriction_setEnabledWhenUserRestricted_failedPreconditionError() local429 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() local495 mService.setEnabled(true, newOperationReceiver(setEnabledFuture)); in airplaneMode_setEnabledWhenAirplaneModeIsOn_WillNotAutoDisableSecondTime()513 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime() local515 mService.setEnabled(true, newOperationReceiver(setEnabledFuture)); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime()518 mService.setEnabled(false, newOperationReceiver(setEnabledFuture)); in airplaneMode_setDisabledWhenAirplaneModeIsOn_WillAutoDisableSecondTime()
148 CompletableFuture<Void> setEnabledFuture = new CompletableFuture<>(); in setThreadEnabled() local149 mControllerService.setEnabled(enabled, newOperationReceiver(setEnabledFuture)); in setThreadEnabled()150 return waitForFuture(setEnabledFuture, SET_ENABLED_TIMEOUT, getErrorWriter()); in setThreadEnabled()