Searched refs:deviceFilePath (Results 1 – 5 of 5) sorted by relevance
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | TestDeviceStressTest.java | 112 String deviceFilePath = null; in testPushFolderWithManyFiles() local 115 deviceFilePath = String.format("%s/%s", externalStorePath, "testDir"); in testPushFolderWithManyFiles() 123 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles() 124 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles() 125 mTestDevice.doesFileExist(deviceFilePath)); in testPushFolderWithManyFiles() 126 assertTrue(mTestDevice.pushDir(tmpDir, deviceFilePath)); in testPushFolderWithManyFiles() 127 assertTrue(mTestDevice.doesFileExist(deviceFilePath)); in testPushFolderWithManyFiles() 133 mTestDevice.executeShellCommand(String.format("rm -r %s", deviceFilePath)); in testPushFolderWithManyFiles() 134 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles() 135 mTestDevice.doesFileExist(deviceFilePath)); in testPushFolderWithManyFiles() [all …]
|
D | TestDeviceFuncTest.java | 203 String deviceFilePath = null; in testPushPull_normal() local 209 deviceFilePath = String.format("%s/%s", externalStorePath, "tmp_testPushPull.txt"); in testPushPull_normal() 211 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() 212 assertFalse(String.format("%s exists", deviceFilePath), in testPushPull_normal() 213 mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal() 215 assertTrue(mTestDevice.pushFile(tmpFile, deviceFilePath)); in testPushPull_normal() 216 assertTrue(mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal() 218 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_normal() 225 if (deviceFilePath != null) { in testPushPull_normal() 226 mTestDevice.executeShellCommand(String.format("rm %s", deviceFilePath)); in testPushPull_normal() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | INativeDevice.java | 521 public boolean pullDir(String deviceFilePath, File localDir) in pullDir() argument 533 public boolean pushFile(File localFile, String deviceFilePath) in pushFile() argument 545 public boolean pushString(String contents, String deviceFilePath) in pushString() argument 557 public boolean pushDir(File localDir, String deviceFilePath) in pushDir() argument 580 public boolean syncFiles(File localFileDir, String deviceFilePath) in syncFiles() argument 591 public boolean doesFileExist(String deviceFilePath) throws DeviceNotAvailableException; in doesFileExist() argument 609 public boolean isDirectory(String deviceFilePath) throws DeviceNotAvailableException; in isDirectory() argument 618 public String[] getChildren(String deviceFilePath) throws DeviceNotAvailableException; in getChildren() argument
|
D | NativeDevice.java | 1330 public boolean pushDir(File localFileDir, String deviceFilePath) in pushDir() argument 1342 String remotePath = String.format("%s/%s", deviceFilePath, childFile.getName()); in pushDir() 1361 public boolean pullDir(String deviceFilePath, File localDir) in pullDir() argument 1367 if (!isDirectory(deviceFilePath)) { in pullDir() 1368 CLog.e("Device path %s is not a directory", deviceFilePath); in pullDir() 1372 new FileEntry(null, deviceFilePath, FileListingService.TYPE_DIRECTORY, false); in pullDir() 1410 public boolean syncFiles(File localFileDir, String deviceFilePath) in syncFiles() argument 1412 if (localFileDir == null || deviceFilePath == null) { in syncFiles() 1416 localFileDir.getAbsolutePath(), deviceFilePath, getSerialNumber()); in syncFiles() 1423 deviceFilePath = String.format("%s/%s", interpolatePathVariables(deviceFilePath), in syncFiles() [all …]
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | PackageManagerOTATestUtils.java | 288 public void pushSystemApp(final File localFile, final String deviceFilePath) in pushSystemApp() argument 292 mDevice.pushFile(localFile, deviceFilePath); in pushSystemApp()
|