Home
last modified time | relevance | path

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

/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.java191 for (String devicePath : mFilesPushed) { in tearDown()
192 device.executeShellCommand("rm -r " + devicePath); in tearDown()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DCodeCoverageListener.java65 String devicePath = devicePathMetric.getMeasurements().getSingleString(); in testRunEnded() local
66 if (devicePath == null) { in testRunEnded()
73 File coverageFile = mDevice.pullFile(devicePath); in testRunEnded()
74 verifyNotNull(coverageFile, "Failed to pull the coverage file from %s", devicePath); in testRunEnded()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java1326 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException {
1327 if (Strings.isNullOrEmpty(devicePath) || Strings.isNullOrEmpty(process)) {
1334 File dump = dumpAndPullHeap(pid, devicePath);
1336 executeShellCommand(String.format("rm %s", devicePath));
1341 private File dumpAndPullHeap(String pid, String devicePath) throws DeviceNotAvailableException {
1342 executeShellCommand(String.format(DUMPHEAP_CMD, pid, devicePath));
1346 while (!doesFileExist(devicePath) && attempt < 3) {
1350 File dumpFile = pullFile(devicePath);
DITestDevice.java647 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException; in dumpHeap() argument
DNativeDevice.java3958 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException { in dumpHeap() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DCodeCoverageTestBaseTest.java903 String devicePath = String.format(COVERAGE_PATH, getPackageName());
906 mockDeviceFile(devicePath, measurement);
907 metrics.put(CodeCoverageTest.COVERAGE_REMOTE_FILE_LABEL, devicePath);
915 private void mockDeviceFile(String devicePath, ByteString contents) {
923 doReturn(true).when(mDevice).doesFileExist(devicePath);
924 doAnswer(pullFile).when(mDevice).pullFile(devicePath);