Home
last modified time | relevance | path

Searched refs:rootPath (Results 1 – 2 of 2) sorted by relevance

/tools/tradefederation/core/javatests/com/android/tradefed/device/
DMockitoFileUtil.java43 ITestDevice mockDevice, String rootPath, String... childNames) in setMockDirContents() argument
46 when(mockDevice.getFileEntry(rootPath)).thenReturn(rootEntry); in setMockDirContents()
49 when(rootEntry.getFullEscapedPath()).thenReturn(rootPath); in setMockDirContents()
50 when(rootEntry.getName()).thenReturn(rootPath); in setMockDirContents()
55 String fullPath = rootPath + FileListingService.FILE_SEPARATOR + childName; in setMockDirContents()
73 ITestDevice mockDevice, String rootPath, String... pathSegments) in setMockDirPath() argument
76 when(mockDevice.getFileEntry(rootPath)).thenReturn(rootEntry); in setMockDirPath()
77 when(rootEntry.getFullEscapedPath()).thenReturn(rootPath); in setMockDirPath()
78 when(rootEntry.getName()).thenReturn(rootPath); in setMockDirPath()
82 rootPath = rootPath + FileListingService.FILE_SEPARATOR + pathSegments[i]; in setMockDirPath()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/util/
DClassPathScanner.java152 private void getEntriesFromDir(File dir, Set<String> entries, List<String> rootPath, in getEntriesFromDir() argument
161 rootPath.add(childFile.getName() + "/"); in getEntriesFromDir()
162 getEntriesFromDir(childFile, entries, rootPath, filter); in getEntriesFromDir()
164 rootPath.remove(rootPath.size() - 1); in getEntriesFromDir()
167 String classPathEntryName = constructPath(rootPath, childFile.getName()); in getEntriesFromDir()
184 private String constructPath(List<String> rootPath, String fileName) { in constructPath() argument
186 for (String element : rootPath) { in constructPath()