Searched refs:localFile (Results 1 – 7 of 7) sorted by relevance
/tools/tradefederation/core/src/com/android/tradefed/targetprep/ |
D | TestFilePushSetup.java | 151 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/ |
D | PackageManagerOTATestUtils.java | 242 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()
|
D | PackageManagerHostTestUtils.java | 186 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/ |
D | ZipUtil2.java | 40 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/ |
D | NativeDeviceTest.java | 256 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/ |
D | NativeDevice.java | 892 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 …]
|
D | INativeDevice.java | 475 public boolean pullFile(String remoteFilePath, File localFile) in pullFile() argument 533 public boolean pushFile(File localFile, String deviceFilePath) in pushFile() argument
|