Home
last modified time | relevance | path

Searched refs:localFile (Results 1 – 7 of 7) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DTestFilePushSetup.java151 File localFile = getLocalPathForFilename(buildInfo, fileName, device); in setUp() local
152 if (localFile == null) { in setUp()
166 CLog.d("Pushing file: %s -> %s", localFile.getAbsoluteFile(), remoteFileName); in setUp()
167 if (localFile.isDirectory()) { in setUp()
168 device.pushDir(localFile, remoteFileName); in setUp()
169 } else if (localFile.isFile()) { in setUp()
170 device.pushFile(localFile, remoteFileName); in setUp()
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/
DPackageManagerOTATestUtils.java242 public void installFile(final File localFile, final boolean replace, String... extraArgs) in installFile() argument
244 String result = mDevice.installPackage(localFile, replace, extraArgs); in installFile()
246 localFile.getAbsolutePath(), result), result); in installFile()
288 public void pushSystemApp(final File localFile, final String deviceFilePath) in pushSystemApp() argument
292 mDevice.pushFile(localFile, deviceFilePath); in pushSystemApp()
DPackageManagerHostTestUtils.java186 public void installFile(final File localFile, final boolean replace) in installFile() argument
188 String result = mDevice.installPackage(localFile, replace); in installFile()
/tools/tradefederation/core/src/com/android/tradefed/util/
DZipUtil2.java40 private static void applyUnixModeIfNecessary(ZipArchiveEntry entry, File localFile) in applyUnixModeIfNecessary() argument
43 Files.setPosixFilePermissions(localFile.toPath(), in applyUnixModeIfNecessary()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java256 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childFile()
277 public boolean pushFile(File localFile, String remoteFilePath) in testPushDir_childDir()
350 public boolean pullFile(String remoteFilePath, File localFile) in testPullDir()
354 localFile.createNewFile(); in testPullDir()
418 public boolean pullFile(String remoteFilePath, File localFile) in testPullDir_pullFail()
424 localFile.createNewFile(); in testPullDir_pullFail()
1187 public boolean pullFile(String remoteFilePath, File localFile) in testGetBugreportz()
1264 File localFile = FileUtil.createTempFile("timezonetest", ".txt"); in testIsNewer() local
1266 localFile.setLastModified(1470906000000l); // Thu Aug 11 09:00:00 GMT 2016 in testIsNewer()
1271 assertTrue(testDevice.isNewer(localFile, remoteFile)); in testIsNewer()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java892 public boolean pullFile(final String remoteFilePath, final File localFile) in pullFile() argument
904 localFile.getAbsolutePath(), SyncService.getNullProgressMonitor()); in pullFile()
908 getSerialNumber(), localFile.getAbsolutePath(), e.getMessage()); in pullFile()
919 localFile.getAbsolutePath()), pullAction, MAX_RETRY_ATTEMPTS); in pullFile()
927 File localFile = null; in pullFile() local
930 localFile = FileUtil.createTempFileForRemote(remoteFilePath, null); in pullFile()
931 if (pullFile(remoteFilePath, localFile)) { in pullFile()
933 return localFile; in pullFile()
940 FileUtil.deleteFile(localFile); in pullFile()
994 public boolean pushFile(final File localFile, final String remoteFilePath) in pushFile() argument
[all …]
DINativeDevice.java475 public boolean pullFile(String remoteFilePath, File localFile) in pullFile() argument
533 public boolean pushFile(File localFile, String deviceFilePath) in pushFile() argument