Home
last modified time | relevance | path

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

/tools/tradefederation/contrib/src/com/android/media/tests/
DCamera2StressTest.java116 for (IFileEntry remoteFile : screenshotDir.getChildren(false)) { in postScreenshotOnFailure()
117 if (remoteFile.isDirectory()) { in postScreenshotOnFailure()
120 if (!remoteFile.getName().contains(test.getTestName())) { in postScreenshotOnFailure()
122 + "test (%s)", remoteFile.getName(), test.getTestName()); in postScreenshotOnFailure()
125 File screenshot = new File(tmpDir, remoteFile.getName()); in postScreenshotOnFailure()
126 if (!getDevice().pullFile(remoteFile.getFullPath(), screenshot)) { in postScreenshotOnFailure()
127 CLog.w("Could not pull screenshot: %s", remoteFile.getFullPath()); in postScreenshotOnFailure()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DDynamicRemoteFileResolverTest.java84 public File remoteFile = null; field in DynamicRemoteFileResolverTest.RemoteFileOption
99 public File remoteFile = null; field in DynamicRemoteFileResolverTest.RemoteFileOptionWithOptionClass
125 assertEquals("gs:/fake/path", object.remoteFile.getPath()); in testResolve()
137 assertThat(object.remoteFile.getAbsolutePath()).isEqualTo(fake.getAbsolutePath()); in testResolve()
152 assertEquals("gs:/fake/path?key=value", object.remoteFile.getPath()); in testResolveWithQuery()
167 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolveWithQuery()
179 assertEquals("gs:/fake/path?key=value", object.remoteFile.getPath()); in testResolveWithQuery_overrides()
195 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolveWithQuery_overrides()
206 assertEquals("gs:/fake/path?optional=true", object.remoteFile.getPath()); in testResolveOptional()
444 assertEquals("gs:/fake/path", object.remoteFile.getPath()); in testResolve_withNoGlobalNameSpace()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceRemoteCmdFormatter.java89 String remoteFile, in getScpCommand() argument
108 cmd.add(String.format("%s@%s:%s", user, hostName, remoteFile)); in getScpCommand()
112 cmd.add(String.format("%s@%s:%s", user, hostName, remoteFile)); in getScpCommand()
DGceManager.java557 File remoteFile = in logNestedRemoteFile() local
560 if (remoteFile != null) { in logNestedRemoteFile()
562 logFile(remoteFile, baseName, logger, type); in logNestedRemoteFile()
567 File remoteFile, String baseName, ITestLogger logger, LogDataType type) { in logFile() argument
568 if (remoteFile.isDirectory()) { in logFile()
569 for (File f : remoteFile.listFiles()) { in logFile()
573 try (InputStreamSource remoteFileStream = new FileInputStreamSource(remoteFile, true)) { in logFile()
576 name = remoteFile.getName(); in logFile()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java133 private boolean isFileFresh(File localFile, StorageObject remoteFile) throws IOException { in isFileFresh() argument
134 if (localFile == null && remoteFile == null) { in isFileFresh()
137 if (localFile == null || remoteFile == null) { in isFileFresh()
143 return remoteFile.getMd5Hash().equals(FileUtil.calculateBase64Md5(localFile)); in isFileFresh()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/
DNativeDeviceTest.java1379 IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class); in testIsNewer() local
1380 EasyMock.expect(remoteFile.getDate()).andReturn("2016-08-11"); in testIsNewer()
1381 EasyMock.expect(remoteFile.getTime()).andReturn("18:00"); in testIsNewer()
1382 EasyMock.replay(remoteFile); in testIsNewer()
1383 assertTrue(testDevice.isNewer(localFile, remoteFile)); in testIsNewer()
1384 EasyMock.verify(remoteFile); in testIsNewer()
1411 IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class); in testIsNewer_timeOffset() local
1412 EasyMock.expect(remoteFile.getDate()).andReturn("2016-08-11"); in testIsNewer_timeOffset()
1413 EasyMock.expect(remoteFile.getTime()).andReturn("18:15"); in testIsNewer_timeOffset()
1414 EasyMock.replay(remoteFile); in testIsNewer_timeOffset()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DITestSuite.java473 for (File remoteFile : mBuildInfo.getRemoteFiles()) { in stageTestArtifacts()
476 getTestsDir(), remoteFile.toString(), includeFilters, excludeFilters); in stageTestArtifacts()
481 remoteFile, String.join(", ", modules))); in stageTestArtifacts()
/tools/tradefederation/core/tests/res/testdata/
Dtradefed-prebuilt-cts-8.0_r21.jarMETA-INF/ META-INF/MANIFEST.MF jline/ jline/CompletionHandler.class CompletionHandler ...