/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
D | MockFileUtil.java | 40 IFileEntry rootEntry = EasyMock.createMock(IFileEntry.class); in setMockDirContents() 46 Collection<IFileEntry> mockChildren = new ArrayList<IFileEntry>(childNames.length); in setMockDirContents() 48 IFileEntry childMockEntry = EasyMock.createMock(IFileEntry.class); in setMockDirContents() 72 IFileEntry rootEntry = EasyMock.createMock(IFileEntry.class); in setMockDirPath() 77 IFileEntry childMockEntry = EasyMock.createMock(IFileEntry.class); in setMockDirPath() 81 Collection<IFileEntry> childrenResult = new ArrayList<IFileEntry>(1); in setMockDirPath()
|
D | NativeDeviceTest.java | 291 final IFileEntry fakeEntry = EasyMock.createMock(IFileEntry.class); in testPullDir_nothingToDo() 295 public IFileEntry getFileEntry(FileEntry path) in testPullDir_nothingToDo() 307 Collection<IFileEntry> childrens = new ArrayList<>(); in testPullDir_nothingToDo() 326 final IFileEntry fakeEntry = EasyMock.createMock(IFileEntry.class); in testPullDir() 327 final IFileEntry fakeDir = EasyMock.createMock(IFileEntry.class); in testPullDir() 333 public IFileEntry getFileEntry(FileEntry path) in testPullDir() 362 Collection<IFileEntry> children = new ArrayList<>(); in testPullDir() 363 IFileEntry fakeFile = EasyMock.createMock(IFileEntry.class); in testPullDir() 374 Collection<IFileEntry> fakeDirChildren = new ArrayList<>(); in testPullDir() 393 final IFileEntry fakeEntry = EasyMock.createMock(IFileEntry.class); in testPullDir_pullFail() [all …]
|
D | TestDeviceFuncTest.java | 792 IFileEntry entry = getDevice().getFileEntry("/data"); in testGetFileEntry_recovery()
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | FileEntryWrapper.java | 29 class FileEntryWrapper implements IFileEntry { 33 private Map<String, IFileEntry> mChildMap = null; 66 public IFileEntry findChild(String name) throws DeviceNotAvailableException { in findChild() 101 public Collection<IFileEntry> getChildren(boolean useCache) throws DeviceNotAvailableException { in getChildren() 108 private Map<String, IFileEntry> buildChildrenMap() throws DeviceNotAvailableException { in buildChildrenMap() 110 Map<String, IFileEntry> childMap = new HashMap<String, IFileEntry>(childEntrys.length); in buildChildrenMap() 125 static IFileEntry getDescendant(IFileEntry fileEntry, List<String> childSegments) in getDescendant() 127 IFileEntry child = fileEntry; in getDescendant()
|
D | IFileEntry.java | 29 public interface IFileEntry { interface 55 public IFileEntry findChild(String name) throws DeviceNotAvailableException; in findChild() 93 public Collection<IFileEntry> getChildren(boolean useCache) throws DeviceNotAvailableException; in getChildren()
|
D | NativeDevice.java | 1256 public IFileEntry getFileEntry(String path) throws DeviceNotAvailableException { in getFileEntry() 1260 IFileEntry rootFile = new FileEntryWrapper(this, service.getRoot()); in getFileEntry() 1272 public IFileEntry getFileEntry(FileEntry entry) throws DeviceNotAvailableException { in getFileEntry() 1373 IFileEntry entry = getFileEntry(entryRoot); in pullDir() 1374 Collection<IFileEntry> children = entry.getChildren(false); in pullDir() 1379 for (IFileEntry item : children) { in pullDir() 1428 IFileEntry remoteFileEntry = getFileEntry(deviceFilePath); in syncFiles() 1445 private boolean syncFiles(File localFileDir, final IFileEntry remoteFileEntry) in syncFiles() 1453 IFileEntry entry = remoteFileEntry.findChild(localFile.getName()); in syncFiles() 1571 protected boolean isNewer(File localFile, IFileEntry entry) { in isNewer() [all …]
|
D | INativeDevice.java | 602 public IFileEntry getFileEntry(String path) throws DeviceNotAvailableException; in getFileEntry()
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
D | LogFilesReporter.java | 21 import com.android.tradefed.device.IFileEntry; 115 IFileEntry outputDir = getDevice().getFileEntry(dir); in uploadFolderOnDeviceToLogs() 117 for (IFileEntry file : outputDir.getChildren(false)) { in uploadFolderOnDeviceToLogs() 155 IFileEntry outputDir = getDevice().getFileEntry(folder); in doesDirectoryExistOnDevice()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | NativeStressTest.java | 25 import com.android.tradefed.device.IFileEntry; 148 IFileEntry rootEntry, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() 153 for (IFileEntry childEntry : rootEntry.getChildren(true)) { in doRunAllTestsInSubdirectory() 231 IFileEntry nativeTestDirectory = mDevice.getFileEntry(testPath); in run()
|
D | NativeBenchmarkTest.java | 24 import com.android.tradefed.device.IFileEntry; 171 IFileEntry rootEntry, ITestDevice testDevice, ITestInvocationListener listener) in doRunAllTestsInSubdirectory() 176 for (IFileEntry childEntry : rootEntry.getChildren(true)) { in doRunAllTestsInSubdirectory() 255 IFileEntry nativeTestDirectory = mDevice.getFileEntry(testPath); in run()
|
D | UiAutomatorTest.java | 24 import com.android.tradefed.device.IFileEntry; 323 IFileEntry traceSrcDir = mDevice.getFileEntry(traceSrcDirectory); in logTraceFiles() 326 for (IFileEntry testDirectory : traceSrcDir.getChildren(false)) { in logTraceFiles() 331 for (IFileEntry traceFile : testDirectory.getChildren(false)) { in logTraceFiles()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | NativeStressTestTest.java | 20 import com.android.tradefed.device.IFileEntry; 43 private IFileEntry mMockStressFile; 58 mMockStressFile = EasyMock.createNiceMock(IFileEntry.class); in setUp()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | Camera2StressTest.java | 21 import com.android.tradefed.device.IFileEntry; 110 IFileEntry screenshotDir = getDevice().getFileEntry(FAILURE_SCREENSHOT_DIR); in postScreenshotOnFailure() 113 for (IFileEntry remoteFile : screenshotDir.getChildren(false)) { in postScreenshotOnFailure()
|
D | Camera2FrameworkStressTest.java | 21 import com.android.tradefed.device.IFileEntry; 170 IFileEntry dirEntry = getDevice().getFileEntry(resultDir); in getCameraIdList() 172 for (IFileEntry file : dirEntry.getChildren(false)) { in getCameraIdList()
|
D | AdbScreenrecordTest.java | 21 import com.android.tradefed.device.IFileEntry; 255 IFileEntry video = getDevice().getFileEntry(deviceFileName); in extractDurationAndBitrateFromVideoFileUsingAvprobe()
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | PackageManagerHostTestUtils.java | 22 import com.android.tradefed.device.IFileEntry; 521 IFileEntry file = mDevice.getFileEntry(remoteFilePath); in checkFilePermissions()
|
/tools/tradefederation/core/prod-tests/src/com/android/performance/tests/ |
D | AppTransitionTests.java | 26 import com.android.tradefed.device.IFileEntry; 364 IFileEntry srcDir = mDevice.getFileEntry(String.format("%s/%s", in logTraceFiles() 368 for (IFileEntry file : srcDir.getChildren(false)) { in logTraceFiles()
|