Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java104 String devicePath = "path/somewhere/file.txt"; in testDeleteFile() local
112 devicePath))); in testDeleteFile()
113 assertTrue(mProvider.deleteFile(devicePath)); in testDeleteFile()
119 String devicePath = "path/somewhere/file.txt"; in testDeleteFile_fail() local
130 devicePath))); in testDeleteFile_fail()
131 assertFalse(mProvider.deleteFile(devicePath)); in testDeleteFile_fail()
137 String devicePath = "path/somewhere/file.txt"; in testError() local
147 devicePath))); in testError()
148 assertFalse(mProvider.deleteFile(devicePath)); in testError()
156 String devicePath = "path/somewhere/file.txt"; in testPushFile() local
[all …]
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DPushFileInvoker.java58 String devicePath = String.format("/data/%s", file); in setUp() local
59 if (!device.doesFileExist(devicePath)) { in setUp()
60 CLog.w("Ignoring non-existent path %s", devicePath); in setUp()
63 if (device.isDirectory(devicePath)) { in setUp()
64 CLog.w("%s is a directory, skipping", devicePath); in setUp()
68 device.executeShellCommand(String.format("chmod 755 %s", devicePath)); in setUp()
71 devicePath = String.format("su root %s", devicePath); in setUp()
74 device.executeShellCommand(devicePath, receiver, in setUp()
DPushFilePreparer.java289 for (String devicePath : mFilesPushed) { in tearDown()
290 device.deleteFile(devicePath); in tearDown()
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java82 String devicePath = "/sdcard/" + tmpFile.getName(); in testPushFile() local
83 mToBeDeleted.add(devicePath); in testPushFile()
84 boolean res = mHandler.pushFile(tmpFile, devicePath); in testPushFile()
97 String devicePath = "/sdcard/" + tmpFile.getName(); in testDeleteFile() local
99 boolean res = mHandler.pushFile(tmpFile, devicePath); in testDeleteFile()
103 assertTrue(mHandler.deleteFile(devicePath)); in testDeleteFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DJavaCodeCoverageListener.java96 String devicePath = devicePathMetric.getMeasurements().getSingleString(); in testRunEnded() local
97 if (devicePath == null) { in testRunEnded()
105 coverageFile = mDevice.pullFile(devicePath); in testRunEnded()
106 verifyNotNull(coverageFile, "Failed to pull the coverage file from %s", devicePath); in testRunEnded()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java1692 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException { in dumpHeap() argument
1693 if (Strings.isNullOrEmpty(devicePath) || Strings.isNullOrEmpty(process)) { in dumpHeap()
1700 File dump = dumpAndPullHeap(pid, devicePath); in dumpHeap()
1702 deleteFile(devicePath); in dumpHeap()
1707 private File dumpAndPullHeap(String pid, String devicePath) throws DeviceNotAvailableException { in dumpAndPullHeap() argument
1708 executeShellCommand(String.format(DUMPHEAP_CMD, pid, devicePath)); in dumpAndPullHeap()
1712 while (!doesFileExist(devicePath) && attempt < 3) { in dumpAndPullHeap()
1716 File dumpFile = pullFile(devicePath); in dumpAndPullHeap()
DITestDevice.java911 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException; in dumpHeap() argument
DNativeDevice.java4302 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException { in dumpHeap() argument