@Override public void pull(String remoteFilePath, String localFilePath) throws Exception { delegate.pullFile(remoteFilePath, localFilePath); }
/** * Pulls a single file. * * @param remote the full path to the remote file * @param local The local destination. * @throws IOException in case of an IO exception. * @throws AdbCommandRejectedException if adb rejects the command * @throws TimeoutException in case of a timeout reading responses from the device. * @throws SyncException in case of a sync exception. */ @Override public void pullFile(String remote, String local) throws IOException, AdbCommandRejectedException, TimeoutException, SyncException { device.pullFile(remote, local); }
@Override public void pull(File remoteFile, File localFile) throws Exception { delegate.pullFile(remoteFile.getAbsolutePath(), localFile.getAbsolutePath()); }
@Override public void pullFile(String remote, String local) throws IOException { try { iDevice.pullFile(remote, local); } catch (TimeoutException e) { throw new IOException(String.format("Failed to pull %s from device", remote), e); } catch (AdbCommandRejectedException e) { throw new IOException(String.format("Failed to pull %s from device", remote), e); } catch (SyncException e) { throw new IOException(String.format("Failed to pull %s from device", remote), e); } }
@Override public void pullFile(String remote, String local) throws IOException { try { iDevice.pullFile(remote, local); } catch (TimeoutException e) { throw new IOException(String.format("Failed to pull %s from device", remote), e); } catch (AdbCommandRejectedException e) { throw new IOException(String.format("Failed to pull %s from device", remote), e); } catch (SyncException e) { throw new IOException(String.format("Failed to pull %s from device", remote), e); } }
private void pullTestVideo() throws IOException, AdbCommandRejectedException, TimeoutException, SyncException { logger.trace("Started pulling file {} to {}", remoteFilePath, localVideoFile); long startNanos = nanoTime(); deviceInterface.pullFile(remoteFilePath, localVideoFile.toString()); logger.trace("Pulling finished in {}ms {}", millisSinceNanoTime(startNanos), remoteFilePath); }
@Override public void testRunEnded(long elapsedTime, Map<String, String> runMetrics) { TestIdentifier testIdentifier = new TestIdentifier(testCase.getTestClass(), testCase.getTestMethod()); final String remoteFile = RemoteFileManager.getCoverageFileName(testIdentifier); final File file = fileManager.createFile(COVERAGE, pool, device, testIdentifier); try { device.getDeviceInterface().pullFile(remoteFile, file.getAbsolutePath()); } catch (Exception e) { logger.error("Something went wrong while pulling coverage file", e); } } }
device.pullFile(savePath, localPath);