Searched refs:immediateFuture (Results 1 – 7 of 7) sorted by relevance
21 import static com.google.common.util.concurrent.Futures.immediateFuture;149 return immediateFuture(result); in requestTile()154 return immediateFuture(result); in requestTile()
173 CompletableFuture<BluetoothActivityEnergyInfo> immediateFuture = new CompletableFuture<>(); in collectBluetoothActivityInfo() local180 immediateFuture.complete(info); in collectBluetoothActivityInfo()185 immediateFuture.completeExceptionally( in collectBluetoothActivityInfo()196 activityInfo = immediateFuture.get(BLUETOOTH_ACTIVITY_REQUEST_TIMEOUT, in collectBluetoothActivityInfo()
221 CompletableFuture<ModemActivityInfo> immediateFuture = new CompletableFuture<>(); in collectModemActivityInfo() local226 immediateFuture.complete(result); in collectModemActivityInfo()232 immediateFuture.complete(null); in collectModemActivityInfo()238 activityInfo = immediateFuture.get(MODEM_ACTIVITY_REQUEST_TIMEOUT, in collectModemActivityInfo()
179 CompletableFuture<WifiActivityEnergyInfo> immediateFuture = new CompletableFuture<>(); in collectWifiActivityInfo() local181 immediateFuture::complete); in collectWifiActivityInfo()185 activityInfo = immediateFuture.get(WIFI_ACTIVITY_REQUEST_TIMEOUT, in collectWifiActivityInfo()
119 Futures.immediateFuture(new ImageExporter.Result())); in saveScreenshot_failsSilently_shouldUpdateErrorWithFailed()134 eq(Display.DEFAULT_DISPLAY))).thenReturn(Futures.immediateFuture(result)); in saveScreenshot_succeeds_shouldUpdateResultWithUri()
126 .thenReturn(Futures.immediateFuture(result)); in setUp()
20 import static com.google.common.util.concurrent.Futures.immediateFuture;276 .thenReturn(immediateFuture(session)); in createController()