Home
last modified time | relevance | path

Searched refs:remoteFilePath (Results 1 – 25 of 25) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCacheWrapper.java42 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() argument
43 return mCache.fetchRemoteFile(mDelegateDownloader, remoteFilePath); in downloadFile()
48 public void downloadFile(String remoteFilePath, File destFile) throws BuildRetrievalError { in downloadFile() argument
49 mCache.fetchRemoteFile(mDelegateDownloader, remoteFilePath, destFile); in downloadFile()
54 public boolean isFresh(File localFile, String remoteFilePath) throws BuildRetrievalError { in isFresh() argument
55 return mDelegateDownloader.isFresh(localFile, remoteFilePath); in isFresh()
62 String remoteFilePath, in downloadZippedFiles() argument
67 destDir, remoteFilePath, includeFilters, excludeFilters); in downloadZippedFiles()
DFileDownloadCache.java186 protected void lockFile(String remoteFilePath) { in lockFile() argument
189 FileLock fLock = mJvmLocks.get(remoteFilePath); in lockFile()
191 File f = new File(mCacheRoot, convertPath(remoteFilePath)); in lockFile()
198 mJvmLocks.put(remoteFilePath, fLock); in lockFile()
208 fileLock = mFileLocks.get(remoteFilePath); in lockFile()
211 mFileLocks.put(remoteFilePath, fileLock); in lockFile()
222 protected boolean tryLockFile(String remoteFilePath) { in tryLockFile() argument
224 FileLock fLock = mJvmLocks.get(remoteFilePath); in tryLockFile()
226 File f = new File(mCacheRoot, convertPath(remoteFilePath)); in tryLockFile()
231 mJvmLocks.put(remoteFilePath, fLock); in tryLockFile()
[all …]
DIFileDownloader.java35 public File downloadFile(String remoteFilePath) throws BuildRetrievalError; in downloadFile() argument
61 String remoteFilePath, File destFile, long startOffset, long size) in downloadFile() argument
76 public default boolean isFresh(File localFile, String remoteFilePath) in isFresh() argument
97 String remoteFilePath, in downloadZippedFiles() argument
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteFileUtil.java51 String remoteFilePath) { in fetchRemoteFile() argument
52 String fileName = new File(remoteFilePath).getName(); in fetchRemoteFile()
59 remoteInstance, options, runUtil, timeout, remoteFilePath, localFile)) { in fetchRemoteFile()
86 String remoteFilePath, in fetchRemoteFile() argument
94 remoteFilePath, in fetchRemoteFile()
248 String remoteFilePath, in pushFileToRemote() argument
256 remoteFilePath, in pushFileToRemote()
267 String remoteFilePath, in internalScpExec() argument
303 remoteFilePath, in internalScpExec()
DGceManager.java879 String remoteFilePath = match.group(2); in getBugreportzWithSsh() local
882 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath, localTmpFile)) { in getBugreportzWithSsh()
966 String remoteFilePath = "./" + new File(deviceFilePath).getName(); in getNestedDeviceSshBugreportz() local
969 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath, localTmpFile)) { in getNestedDeviceSshBugreportz()
993 String remoteFilePath, in logNestedRemoteFile() argument
995 return logNestedRemoteFile(logger, gceAvd, options, runUtil, remoteFilePath, type, null); in logNestedRemoteFile()
1017 String remoteFilePath, in logNestedRemoteFile() argument
1024 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath); in logNestedRemoteFile()
1075 gceAvd, options, runUtil, REMOTE_FILE_OP_TIMEOUT, remoteFilePath); in logNestedRemoteFile()
DOxygenUtil.java178 String remoteFilePath = "gs://" + matcher.group(1); in downloadLaunchFailureLogs() local
181 localDir = mDownloader.downloadFile(remoteFilePath); in downloadLaunchFailureLogs()
220 CLog.e("Failed to download Oxygen log from %s", remoteFilePath); in downloadLaunchFailureLogs()
/tools/tradefederation/core/src/com/android/tradefed/build/gcs/
DGCSDownloaderHelper.java80 private void deleteCacheEntry(String remoteFilePath) { in deleteCacheEntry() argument
81 if (remoteFilePath != null) { in deleteCacheEntry()
85 cache.deleteCacheEntry(remoteFilePath); in deleteCacheEntry()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DFileUtilFuncTest.java270 String remoteFilePath = "path/userdata.img"; in testCreateTempFileForRemote() local
271 File tmpFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in testCreateTempFileForRemote()
283 String remoteFilePath = "path/2path/userdata.img"; in testCreateTempFileForRemote_nested() local
284 File tmpFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in testCreateTempFileForRemote_nested()
296 String remoteFilePath = "path/2path/userddddmg"; in testCreateTempFileForRemote_noext() local
297 File tmpFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in testCreateTempFileForRemote_noext()
308 String remoteFilePath = "path/2path/us.img"; in testCreateTempFileForRemote_short() local
309 File tmpFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in testCreateTempFileForRemote_short()
321 String remoteFilePath = "userdata.img"; in testCreateTempFileForRemote_singleFile() local
322 File tmpFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in testCreateTempFileForRemote_singleFile()
DGCSFileDownloaderFuncTest.java91 File createTempFile(String remoteFilePath, File rootDir) in setUp()
95 FileUtil.createTempFileForRemote(remoteFilePath, mLocalRoot); in setUp()
/tools/tradefederation/core/javatests/com/android/tradefed/host/gcs/
DGCSHostResourceManagerTest.java64 public File downloadFile(String remoteFilePath) in setUp()
68 FileUtil.createTempFileForRemote(remoteFilePath, mRoot); in setUp()
69 downloadFile(remoteFilePath, destFile); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/util/
DRemoteZip.java68 String remoteFilePath, in RemoteZip() argument
73 mRemoteFilePath = remoteFilePath; in RemoteZip()
83 String remoteFilePath, long fileSize, IFileDownloader downloader, boolean useZip64) { in RemoteZip() argument
84 this(remoteFilePath, fileSize, downloader, useZip64, false); in RemoteZip()
94 public RemoteZip(String remoteFilePath, long fileSize, IFileDownloader downloader) { in RemoteZip() argument
95 this(remoteFilePath, fileSize, downloader, false); in RemoteZip()
DGCSFileDownloader.java137 public File downloadFile(String remoteFilePath) throws BuildRetrievalError { in downloadFile() argument
138 File destFile = createTempFile(remoteFilePath, null); in downloadFile()
140 downloadFile(remoteFilePath, destFile); in downloadFile()
476 File createTempFile(String remoteFilePath, File rootDir) throws BuildRetrievalError { in createTempFile() argument
477 return createTempFileForRemote(remoteFilePath, rootDir); in createTempFile()
487 public static File createTempFileForRemote(String remoteFilePath, File rootDir) in createTempFileForRemote() argument
491 File tmpFile = FileUtil.createTempFileForRemote(remoteFilePath, rootDir); in createTempFileForRemote()
496 String msg = String.format("Failed to create tmp file for %s", remoteFilePath); in createTempFileForRemote()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java671 public boolean pullFile(String remoteFilePath, File localFile) in pullFile() argument
685 public boolean pullFile(String remoteFilePath, File localFile, int userId) in pullFile() argument
698 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException; in pullFile() argument
711 public File pullFile(String remoteFilePath, int userId) throws DeviceNotAvailableException; in pullFile() argument
720 public String pullFileContents(String remoteFilePath) throws DeviceNotAvailableException; in pullFileContents() argument
733 public File pullFileFromExternal(String remoteFilePath) throws DeviceNotAvailableException; in pullFileFromExternal() argument
DStubDevice.java214 public void installRemotePackage(String remoteFilePath, boolean reinstall, String... extraArgs) in installRemotePackage() argument
221 String remoteFilePath, boolean reinstall, InstallReceiver receiver, String... extraArgs) in installRemotePackage() argument
228 String remoteFilePath, in installRemotePackage() argument
297 public void removeRemotePackage(String remoteFilePath) throws InstallException { in removeRemotePackage() argument
451 String remoteFilePath, ScreenRecorderOptions options, IShellOutputReceiver receiver) in startScreenRecorder() argument
/tools/tradefederation/core/src/com/android/tradefed/config/remote/
DExtendedFile.java51 File file, String buildId, String buildTarget, String branch, String remoteFilePath) { in ExtendedFile() argument
53 mRemoteFilePath = remoteFilePath; in ExtendedFile()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DArtRunTest.java707 private boolean pullAndCheckFile(String remoteFilePath, File localFile) in pullAndCheckFile() argument
711 String statCmd = String.format("stat --format %%s %s", remoteFilePath); in pullAndCheckFile()
715 CLog.d("Size of remote file `%s` is %d bytes", remoteFilePath, remoteFileSize); in pullAndCheckFile()
722 String md5sumCmd = String.format("md5sum -b %s", remoteFilePath); in pullAndCheckFile()
725 CLog.d("MD5 digest of remote file `%s` is %s", remoteFilePath, remoteMd5Digest); in pullAndCheckFile()
728 boolean result = mDevice.pullFile(remoteFilePath, localFile); in pullAndCheckFile()
744 localFile, remoteFilePath, localFileSize, remoteFileSize); in pullAndCheckFile()
755 localFile, remoteFilePath, localMd5Digest, remoteMd5Digest); in pullAndCheckFile()
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java1409 public boolean pullFile(final String remoteFilePath, final File localFile, int userId) in pullFile() argument
1415 if (isSdcardOrEmulated(remoteFilePath) && userId != 0) { in pullFile()
1418 return handler.pullFile(remoteFilePath, localFile); in pullFile()
1421 return pullFileInternal(remoteFilePath, localFile); in pullFile()
1431 public boolean pullFile(final String remoteFilePath, final File localFile) in pullFile() argument
1433 return pullFile(remoteFilePath, localFile, getCurrentUserCompatible()); in pullFile()
1438 public File pullFile(String remoteFilePath, int userId) throws DeviceNotAvailableException { in pullFile() argument
1442 localFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in pullFile()
1443 if (pullFile(remoteFilePath, localFile, userId)) { in pullFile()
1448 CLog.w("Encountered IOException while trying to pull '%s':", remoteFilePath); in pullFile()
[all …]
DTestDevice.java451 String remoteFilePath = match.group(2); in getBugreportzInternal() local
452 if (Strings.isNullOrEmpty(remoteFilePath)) { in getBugreportzInternal()
458 if (!doesFileExist(remoteFilePath)) { in getBugreportzInternal()
459 CLog.e("Did not find bugreportz at: '%s'", remoteFilePath); in getBugreportzInternal()
465 pullFile(remoteFilePath, zipFile); in getBugreportzInternal()
467 remoteFilePath.substring(0, remoteFilePath.lastIndexOf('/')); in getBugreportzInternal()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerDeviceMetricCollector.java239 protected File retrieveFile(ITestDevice device, String remoteFilePath, int userId) in retrieveFile() argument
241 return device.pullFile(remoteFilePath, userId); in retrieveFile()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DRemoteInvocationExecution.java516 String remoteFilePath = mRemoteTradefedDir + PROTO_RESULT_NAME + currentIndex; in isStillRunning() local
518 info, options, runUtil, PULL_RESULT_TIMEOUT, remoteFilePath)) { in isStillRunning()
521 info, options, runUtil, PULL_RESULT_TIMEOUT, remoteFilePath); in isStillRunning()
592 String remoteFilePath = mRemoteTradefedDir + PROTO_RESULT_NAME + currentIndex; in isStillRunning() local
594 info, options, runUtil, PULL_RESULT_TIMEOUT, remoteFilePath)) { in isStillRunning()
597 info, options, runUtil, PULL_RESULT_TIMEOUT, remoteFilePath); in isStillRunning()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DPerfettoPullerMetricCollector.java442 protected File retrieveFile(ITestDevice device, String remoteFilePath, int userId) in retrieveFile() argument
445 return super.retrieveFile(device, remoteFilePath, userId); in retrieveFile()
448 String filePathInDevice = remoteFilePath; in retrieveFile()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DNativeDeviceTest.java346 String remoteFilePath, in testPushDir_childFile()
371 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir()
403 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir_filtered()
521 protected boolean pullFileInternal(String remoteFilePath, File localFile) in testPullDir()
593 protected boolean pullFileInternal(String remoteFilePath, File localFile) in testPullDir_pullFail()
2107 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFile_returnFileSuccess()
2129 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFile_returnNull()
2152 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFileContents_returnFileSuccess()
2171 public boolean pullFile(String remoteFilePath, File localFile, int userId) in testPullFileContents_returnNull()
DTestDeviceTest.java5718 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException { in testGetHeapDump()
6006 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException { in testScreenshotByDisplay()
6007 assertEquals("/data/local/tmp/display_0.png", remoteFilePath); in testScreenshotByDisplay()
6410 public File pullFile(String remoteFilePath, int userId) in testGetBugreportz_fallBack_validation()
6636 public File pullFile(String remoteFilePath) throws DeviceNotAvailableException { in testGetBugreport_deviceUnavail_fallback()
6683 public boolean pullFile(String remoteFilePath, File localFile) in testGetBugreportz()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/suite/
DITestSuiteTest.java1827 String remoteFilePath = "gs://module1/tests.zip"; in testStageTestArtifacts() local
1834 String remoteFilePath, in testStageTestArtifacts()
1839 assertEquals(remoteFilePath, remoteFilePath); in testStageTestArtifacts()
1851 .thenReturn(new HashSet<File>(Arrays.asList(new File(remoteFilePath)))); in testStageTestArtifacts()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java863 public static File createTempFileForRemote(String remoteFilePath, File parentDir) in createTempFileForRemote() argument
865 String[] segments = remoteFilePath.split("/"); in createTempFileForRemote()