Home
last modified time | relevance | path

Searched refs:deviceFilePath (Results 1 – 8 of 8) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DTestDeviceStressTest.java112 String deviceFilePath = null; in testPushFolderWithManyFiles() local
115 deviceFilePath = String.format("%s/%s", externalStorePath, "testDir"); in testPushFolderWithManyFiles()
123 mTestDevice.deleteFile(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.deleteFile(deviceFilePath); in testPushFolderWithManyFiles()
134 assertFalse(String.format("%s exists", deviceFilePath), in testPushFolderWithManyFiles()
135 mTestDevice.doesFileExist(deviceFilePath)); in testPushFolderWithManyFiles()
[all …]
DTestDeviceFuncTest.java209 String deviceFilePath = null; in testPushPull_normal() local
215 deviceFilePath = String.format("%s/%s", externalStorePath, "tmp_testPushPull.txt"); in testPushPull_normal()
217 mTestDevice.deleteFile(deviceFilePath); in testPushPull_normal()
218 assertFalse(String.format("%s exists", deviceFilePath), in testPushPull_normal()
219 mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal()
221 assertTrue(mTestDevice.pushFile(tmpFile, deviceFilePath)); in testPushPull_normal()
222 assertTrue(mTestDevice.doesFileExist(deviceFilePath)); in testPushPull_normal()
224 assertTrue(mTestDevice.pullFile(deviceFilePath, tmpDestFile)); in testPushPull_normal()
231 if (deviceFilePath != null) { in testPushPull_normal()
232 mTestDevice.deleteFile(deviceFilePath); in testPushPull_normal()
[all …]
DNativeDeviceTest.java1257 public void deleteFile(String deviceFilePath) in testGetBugreportz()
1259 assertEquals("/data/0/com.android.shell/bugreports/*", deviceFilePath); in testGetBugreportz()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DINativeDevice.java644 public boolean pullDir(String deviceFilePath, File localDir) in pullDir() argument
656 public boolean pushFile(File localFile, String deviceFilePath) in pushFile() argument
668 public boolean pushString(String contents, String deviceFilePath) in pushString() argument
680 public boolean pushDir(File localDir, String deviceFilePath) in pushDir() argument
694 public boolean pushDir(File localDir, String deviceFilePath, Set<String> excludedDirectories) in pushDir() argument
717 public boolean syncFiles(File localFileDir, String deviceFilePath) in syncFiles() argument
728 public boolean doesFileExist(String deviceFilePath) throws DeviceNotAvailableException; in doesFileExist() argument
736 public void deleteFile(String deviceFilePath) throws DeviceNotAvailableException; in deleteFile() argument
761 public boolean isDirectory(String deviceFilePath) throws DeviceNotAvailableException; in isDirectory() argument
770 public String[] getChildren(String deviceFilePath) throws DeviceNotAvailableException; in getChildren() argument
/tools/tradefederation/core/src/com/android/tradefed/device/
DNativeDevice.java1274 public boolean doesFileExist(String deviceFilePath) throws DeviceNotAvailableException { in doesFileExist() argument
1275 String lsGrep = executeShellCommand(String.format("ls \"%s\"", deviceFilePath)); in doesFileExist()
1281 public void deleteFile(String deviceFilePath) throws DeviceNotAvailableException { in deleteFile() argument
1282 if (deviceFilePath.startsWith(SD_CARD)) { in deleteFile()
1285 if (handler.deleteFile(deviceFilePath)) { in deleteFile()
1291 String path = StringEscapeUtils.escapeShell(deviceFilePath); in deleteFile()
1567 public boolean pushDir(File localFileDir, String deviceFilePath) in pushDir() argument
1569 return pushDir(localFileDir, deviceFilePath, new HashSet<>()); in pushDir()
1575 File localFileDir, String deviceFilePath, Set<String> excludedDirectories) in pushDir() argument
1587 String remotePath = String.format("%s/%s", deviceFilePath, childFile.getName()); in pushDir()
[all …]
DTestDevice.java1135 public boolean doesFileExist(String deviceFilePath) throws DeviceNotAvailableException { in doesFileExist() argument
1136 if (deviceFilePath.startsWith(SD_CARD)) { in doesFileExist()
1137 deviceFilePath = in doesFileExist()
1138 deviceFilePath.replaceFirst( in doesFileExist()
1141 return super.doesFileExist(deviceFilePath); in doesFileExist()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java501 String deviceFilePath = match.group(2); in getNestedDeviceSshBugreportz() local
503 remoteSshCommandExec(gceAvd, options, runUtil, "./bin/adb", "pull", deviceFilePath); in getNestedDeviceSshBugreportz()
505 String remoteFilePath = "./" + new File(deviceFilePath).getName(); in getNestedDeviceSshBugreportz()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...