Searched refs:future (Results 1 – 13 of 13) sorted by relevance
51 final SettableFuture<CompressionResult> future = SettableFuture.create(); in compress() local54 future.set(immediateCompress(source)); in compress()56 future.setException(e); in compress()60 return future; in compress()
71 future = self._executor.submit(name, *args, **kwargs)72 return future78 future = self._executor.submit(80 return future255 def future(self): member in RpcClient
268 SettableFuture<Integer> future = SettableFuture.create(); in testCheckMinBatteryLevel_unreadable() local269 future.set(null); in testCheckMinBatteryLevel_unreadable()270 EasyMock.expect(mMockDevice.getBattery()).andReturn(future); in testCheckMinBatteryLevel_unreadable()289 SettableFuture<Integer> future = SettableFuture.create(); in testCheckMinBatteryLevel_belowLevel() local290 future.set(49); in testCheckMinBatteryLevel_belowLevel()291 EasyMock.expect(mMockDevice.getBattery()).andReturn(future); in testCheckMinBatteryLevel_belowLevel()311 SettableFuture<Integer> future = SettableFuture.create(); in testCheckMinBatteryLevel() local312 future.set(50); in testCheckMinBatteryLevel()313 EasyMock.expect(mMockDevice.getBattery()).andReturn(future); in testCheckMinBatteryLevel()
1116 SettableFuture<Integer> future = SettableFuture.create(); in setDeviceDescriptorExpectation() local1117 future.set(50); in setDeviceDescriptorExpectation()1118 EasyMock.expect(mMockIDevice.getBattery()).andReturn(future); in setDeviceDescriptorExpectation()
101 for (Future<HashMap<String, Metric>> future : futures) { in testAddToMetricsMultiThreaded()102 metricsData.putAll(future.get()); in testAddToMetricsMultiThreaded()
17 from future.moves.urllib.request import urlopen
19 from future import standard_library
17 from future import standard_library
1364 SettableFuture<Integer> future = SettableFuture.create(); in testLogDeviceBatteryLevel_physicalDevice() local1365 future.set(50); in testLogDeviceBatteryLevel_physicalDevice()1366 doReturn(future).when(idevice).getBattery(Mockito.anyLong(), Mockito.any()); in testLogDeviceBatteryLevel_physicalDevice()1392 SettableFuture<Integer> future = SettableFuture.create(); in testLogDeviceBatteryLevel_physicalDevice_multi() local1393 future.set(50); in testLogDeviceBatteryLevel_physicalDevice_multi()1394 doReturn(future).when(idevice).getBattery(Mockito.anyLong(), Mockito.any()); in testLogDeviceBatteryLevel_physicalDevice_multi()1430 SettableFuture<Integer> future = SettableFuture.create(); in testLogDeviceBatteryLevel_physicalDevice_stub_multi() local1431 future.set(50); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()1432 doReturn(future).when(idevice).getBattery(Mockito.anyLong(), Mockito.any()); in testLogDeviceBatteryLevel_physicalDevice_stub_multi()
194 self.assertEqual(client.future, client._async_client)
29 - future
100 in the future.