Home
last modified time | relevance | path

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

/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java105 String devicePath = "path/somewhere/file.txt"; in testDeleteFile() local
113 devicePath))); in testDeleteFile()
114 assertTrue(mProvider.deleteFile(devicePath)); in testDeleteFile()
120 String devicePath = "path/somewhere/file.txt"; in testDeleteFile_fail() local
131 devicePath))); in testDeleteFile_fail()
132 assertFalse(mProvider.deleteFile(devicePath)); in testDeleteFile_fail()
138 String devicePath = "path/somewhere/file.txt"; in testError() local
148 devicePath))); in testError()
149 assertFalse(mProvider.deleteFile(devicePath)); in testError()
157 String devicePath = "path/somewhere/file.txt"; in testPushFile() local
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DPushFileInvoker.java61 String devicePath = String.format("/data/%s", file); in setUp() local
62 if (!device.doesFileExist(devicePath)) { in setUp()
63 CLog.w("Ignoring non-existent path %s", devicePath); in setUp()
66 if (device.isDirectory(devicePath)) { in setUp()
67 CLog.w("%s is a directory, skipping", devicePath); in setUp()
71 device.executeShellCommand(String.format("chmod 755 %s", devicePath)); in setUp()
74 devicePath = String.format("su root %s", devicePath); in setUp()
77 device.executeShellCommand(devicePath, receiver, in setUp()
DPushFilePreparer.java370 for (String devicePath : mFilesPushed) { in tearDown()
371 device.deleteFile(devicePath); in tearDown()
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java99 String devicePath = "/sdcard/" + tmpFile.getName(); in testPushFile() local
100 mToBeDeleted.add(devicePath); in testPushFile()
101 boolean res = mHandler.pushFile(tmpFile, devicePath); in testPushFile()
114 String devicePath = "/sdcard/" + tmpFile.getName(); in testDeleteFile() local
116 boolean res = mHandler.pushFile(tmpFile, devicePath); in testDeleteFile()
120 assertTrue(mHandler.deleteFile(devicePath)); in testDeleteFile()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DJavaCodeCoverageListener.java174 for (String devicePath : devicePaths) { in collectAndLogCoverageMeasurementsAsRoot()
175 mDevice.deleteFile(devicePath); in collectAndLogCoverageMeasurementsAsRoot()
188 for (String devicePath : devicePaths) { in collectAndLogCoverageMeasurements()
189 File coverageFile = mDevice.pullFile(devicePath); in collectAndLogCoverageMeasurements()
191 coverageFile, "Failed to pull the Java code coverage file from %s", devicePath); in collectAndLogCoverageMeasurements()
202 + getNameWithoutExtension(devicePath) in collectAndLogCoverageMeasurements()
DGTest.java302 String devicePath = "/data/local/tmp/" + flagFile.getName(); in createFlagFile() local
304 if (!mDevice.pushFile(flagFile, devicePath)) { in createFlagFile()
311 return devicePath; in createFlagFile()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java1851 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException { in dumpHeap() argument
1852 if (Strings.isNullOrEmpty(devicePath) || Strings.isNullOrEmpty(process)) { in dumpHeap()
1859 File dump = dumpAndPullHeap(pid, devicePath); in dumpHeap()
1861 deleteFile(devicePath); in dumpHeap()
1866 private File dumpAndPullHeap(String pid, String devicePath) throws DeviceNotAvailableException { in dumpAndPullHeap() argument
1867 executeShellCommand(String.format(DUMPHEAP_CMD, pid, devicePath)); in dumpAndPullHeap()
1871 while (!doesFileExist(devicePath) && attempt < 3) { in dumpAndPullHeap()
1875 File dumpFile = pullFile(devicePath); in dumpAndPullHeap()
DNativeDevice.java4832 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException { in dumpHeap() argument
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DJavaCodeCoverageListenerTest.java324 private void mockCoverageFileOnDevice(String devicePath) in mockCoverageFileOnDevice() argument
326 File coverageFile = folder.newFile(new File(devicePath).getName()); in mockCoverageFileOnDevice()
332 doReturn(coverageFile).when(mMockDevice).pullFile(devicePath); in mockCoverageFileOnDevice()
375 private static HashMap<String, Metric> createMetricsWithCoverageMeasurement(String devicePath) { in createMetricsWithCoverageMeasurement() argument
376 return TfMetricProtoUtil.upgradeConvert(ImmutableMap.of("coverageFilePath", devicePath)); in createMetricsWithCoverageMeasurement()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/
DITestDevice.java950 public File dumpHeap(String process, String devicePath) throws DeviceNotAvailableException; in dumpHeap() argument