/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | Camera2StressTest.java | 114 for (IFileEntry remoteFile : screenshotDir.getChildren(false)) { in postScreenshotOnFailure() 115 if (remoteFile.isDirectory()) { in postScreenshotOnFailure() 118 if (!remoteFile.getName().contains(test.getTestName())) { in postScreenshotOnFailure() 120 + "test (%s)", remoteFile.getName(), test.getTestName()); in postScreenshotOnFailure() 123 File screenshot = new File(tmpDir, remoteFile.getName()); in postScreenshotOnFailure() 124 if (!getDevice().pullFile(remoteFile.getFullPath(), screenshot)) { in postScreenshotOnFailure() 125 CLog.w("Could not pull screenshot: %s", remoteFile.getFullPath()); in postScreenshotOnFailure()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | DynamicRemoteFileResolverTest.java | 49 public File remoteFile = null; field in DynamicRemoteFileResolverTest.RemoteFileOption 64 public File remoteFile = null; field in DynamicRemoteFileResolverTest.RemoteFileOptionWithOptionClass 105 assertEquals("gs:/fake/path", object.remoteFile.getPath()); in testResolve() 118 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolve() 322 assertEquals("gs:/fake/path", object.remoteFile.getPath()); in testResolve_withNoGlobalNameSpace() 337 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolve_withNoGlobalNameSpace() 402 assertEquals("fakeprotocol:/fake/path", object.remoteFile.getPath()); in testResolve_addition() 416 assertEquals(downloaded.getAbsolutePath(), object.remoteFile.getAbsolutePath()); in testResolve_addition()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | GceManager.java | 443 File remoteFile = in logNestedRemoteFile() local 446 if (remoteFile != null) { in logNestedRemoteFile() 448 logFile(remoteFile, baseName, logger, type); in logNestedRemoteFile() 453 File remoteFile, String baseName, ITestLogger logger, LogDataType type) { in logFile() argument 454 if (remoteFile.isDirectory()) { in logFile() 455 for (File f : remoteFile.listFiles()) { in logFile() 459 try (InputStreamSource remoteFileStream = new FileInputStreamSource(remoteFile, true)) { in logFile() 462 name = remoteFile.getName(); in logFile()
|
D | GceRemoteCmdFormatter.java | 89 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()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | NativeDeviceTest.java | 1365 IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class); in testIsNewer() local 1366 EasyMock.expect(remoteFile.getDate()).andReturn("2016-08-11"); in testIsNewer() 1367 EasyMock.expect(remoteFile.getTime()).andReturn("18:00"); in testIsNewer() 1368 EasyMock.replay(remoteFile); in testIsNewer() 1369 assertTrue(testDevice.isNewer(localFile, remoteFile)); in testIsNewer() 1370 EasyMock.verify(remoteFile); in testIsNewer() 1397 IFileEntry remoteFile = EasyMock.createMock(IFileEntry.class); in testIsNewer_timeOffset() local 1398 EasyMock.expect(remoteFile.getDate()).andReturn("2016-08-11"); in testIsNewer_timeOffset() 1399 EasyMock.expect(remoteFile.getTime()).andReturn("18:15"); in testIsNewer_timeOffset() 1400 EasyMock.replay(remoteFile); in testIsNewer_timeOffset() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | GCSFileDownloader.java | 130 private boolean isFileFresh(File localFile, StorageObject remoteFile) throws IOException { in isFileFresh() argument 131 if (localFile == null && remoteFile == null) { in isFileFresh() 134 if (localFile == null || remoteFile == null) { in isFileFresh() 140 return remoteFile.getMd5Hash().equals(FileUtil.calculateBase64Md5(localFile)); in isFileFresh()
|
/tools/tradefederation/contrib/src/com/android/graphics/tests/ |
D | SkiaTest.java | 173 File remoteFile, in retrieveAndUploadFile() argument 179 String remotePath = remoteFile.getPath(); in retrieveAndUploadFile() 191 listener.testLog(remoteFile.getName(), type, source); in retrieveAndUploadFile()
|