Home
last modified time | relevance | path

Searched refs:listFiles (Results 1 – 25 of 32) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileSystemLogSaverTest.java275 assertEquals(1, mReportDir.listFiles()[0].list().length); in testCreateReportDirectory_sharded()
276 assertEquals(BUILD_ID, mReportDir.listFiles()[0].list()[0]); in testCreateReportDirectory_sharded()
277 assertEquals(1, mReportDir.listFiles()[0].listFiles()[0].list().length); in testCreateReportDirectory_sharded()
278 assertEquals(TEST_TAG, mReportDir.listFiles()[0].listFiles()[0].list()[0]); in testCreateReportDirectory_sharded()
280 assertEquals(1, mReportDir.listFiles()[0].listFiles()[0].listFiles()[0].list().length); in testCreateReportDirectory_sharded()
282 mReportDir.listFiles()[0].listFiles()[0].listFiles()[0].list()[0].startsWith( in testCreateReportDirectory_sharded()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java260 assertEquals(pullTo.listFiles().length, 0); in testPullDir_OneFile()
264 assertEquals(pullTo.listFiles().length, 1); in testPullDir_OneFile()
265 assertEquals(pullTo.listFiles()[0].getName(), fileName); in testPullDir_OneFile()
304 assertEquals(pullTo.listFiles().length, 0); in testPullDir_RecursiveSubDir()
308 assertEquals(pullTo.listFiles().length, 1); in testPullDir_RecursiveSubDir()
309 assertEquals(pullTo.listFiles()[0].getName(), subDirName); in testPullDir_RecursiveSubDir()
310 assertTrue(pullTo.listFiles()[0].isDirectory()); in testPullDir_RecursiveSubDir()
313 assertEquals(pullTo.listFiles()[0].listFiles().length, 1); in testPullDir_RecursiveSubDir()
314 assertEquals(pullTo.listFiles()[0].listFiles()[0].getName(), fileName); in testPullDir_RecursiveSubDir()
/tools/tradefederation/core/src/com/android/tradefed/util/
DFileUtil.java166 File[] children = file.listFiles(); in chmodRWXRecursively()
262 File[] children = file.listFiles(); in setReadableRecursive()
264 for (File childFile : file.listFiles()) { in setReadableRecursive()
482 for (File childFile : sourceDir.listFiles()) { in recursiveHardlink()
507 for (File childFile : sourceDir.listFiles()) { in recursiveSymlink()
539 File[] childFiles = sourceDir.listFiles(); in recursiveCopy()
668 File[] childFiles = rootDir.listFiles(); in recursiveDelete()
820 if (dir.listFiles() != null) { in findFile()
821 for (File file : dir.listFiles()) { in findFile()
856 for (File file : rootDir.listFiles()) { in findDirsUnder()
[all …]
DClassPathScanner.java152 File[] childFiles = dir.listFiles(); in getEntriesFromDir()
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java152 assertEquals(tmpPullDir.listFiles()[0].getName(), subDirName); // Verify subDir in testPullDir()
153 assertEquals(tmpPullDir.listFiles()[0].listFiles().length, 1); // Verify subDir content. in testPullDir()
155 FileUtil.readStringFromFile(tmpPullDir.listFiles()[0].listFiles()[0]), in testPullDir()
/tools/metalava/src/main/java/com/android/tools/metalava/
DConvertJarsToSignatureFiles.kt174 val listFiles = file.listFiles() in <lambda>() constant
175 listFiles?.forEach { in <lambda>()
DRewriteAnnotations.kt72 source.listFiles()?.forEach { in <lambda>()
95 source.listFiles()?.forEach { in <lambda>()
145 file.isDirectory -> file.listFiles()?.forEach { rewriteAnnotations(it) } in <lambda>()
DAnnotationStatistics.kt404 val listFiles = file.listFiles() in <lambda>() constant
405 listFiles?.forEach { in <lambda>()
DDriver.kt413 source.listFiles()?.forEach { file -> in processFlags()
485 source.listFiles()?.forEach { file -> in processNonCodebaseFlags()
1118 val files = file.listFiles() in skippableDirectory()
1162 val files = file.listFiles() in addHiddenPackages()
1203 for (sibling in file.parentFile.listFiles()) { in addHiddenPackages()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparerTest.java367 assertEquals(2, fakeSplitApkApks.listFiles().length); in testSetupAndTearDown_ApkAndApks()
382 for (File f : fakeSplitApkApks.listFiles()) { in testSetupAndTearDown_ApkAndApks()
538 assertEquals(1, fakeSplitApexApks.listFiles().length); in testInstallUsingBundletool()
539 assertEquals(2, fakeSplitApkApks.listFiles().length); in testInstallUsingBundletool()
561 for (File f : fakeSplitApkApks.listFiles()) { in testInstallUsingBundletool()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DAtraceRunMetricCollector.java75 File[] testDirectories = metricDirectory.listFiles(); in processMetricDirectory()
118 File[] traceFiles = testDirectory.listFiles(); in processTraceFiles()
DFilePullerLogCollector.java57 for (File f : metricDirectory.listFiles()) { in processMetricDirectory()
/tools/tradefederation/core/tests/src/com/android/tradefed/build/
DBuildInfoTest.java175 List<VersionedFile> listFiles = in testListFiles() local
177 assertEquals(2, listFiles.size()); in testListFiles()
/tools/tradefederation/core/src/com/android/tradefed/build/
DLocalDeviceBuildProvider.java161 File[] imageFiles = mBuildDir.listFiles(new PatternFilenameFilter(".*\\.img")); in createBuildImageZip()
234 File[] files = dir.listFiles(new PatternFilenameFilter(regex)); in findFileInDir()
/tools/tradefederation/core/util-apps/ContentProvider/main/java/android/tradefed/contentprovider/
DManagedFileContentProvider.java119 File[] files = file.listFiles(); in query()
294 File[] childFiles = rootDir.listFiles(); in recursiveDelete()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DTfTestLauncher.java338 String[] listFiles = tmpDir.list(); in testTmpDirClean() local
342 for (String file : Arrays.asList(listFiles)) { in testTmpDirClean()
DNativeCodeCoverageListener.java97 Arrays.asList(localDir.listFiles()), in testRunEnded()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparer.java268 File[] splits = splitsDir.listFiles(); in installSingleModuleUsingBundletool()
305 File[] splits = splitsDir.listFiles(); in installMultipleModuleUsingBundletool()
DAllTestAppsInstallSetup.java103 File[] files = directory.listFiles(); in installApksRecursively()
DInstallAllTestZipAppsSetup.java140 File[] files = directory.listFiles(); in installApksRecursively()
DDefaultTestsZipInstaller.java245 File[] childFiles = hostDir.listFiles(); in getTestsZipDataFiles()
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java279 for (File file : srcFile.listFiles()) { in copyFile()
299 for (File file : srcFile.listFiles()) { in copyFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java1712 assertTrue(tmpTestsDir.listFiles().length == 1); in testInvoke_deviceInfoBuild_withEnv()
1716 .listFiles()[0] in testInvoke_deviceInfoBuild_withEnv()
1720 assertTrue(tmpTestsDir.listFiles()[0].listFiles().length == 1); in testInvoke_deviceInfoBuild_withEnv()
1722 tmpTestsFile.getName(), tmpTestsDir.listFiles()[0].listFiles()[0].getName()); in testInvoke_deviceInfoBuild_withEnv()
1800 assertTrue(tmpTestsDir.listFiles().length == 0); in testInvoke_deviceInfoBuild_withEnv_andSkipProperty()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtil2Test.java96 for (File file : destDir.listFiles()) { in testExtractZip()
DTarUtilTest.java137 assertEquals(content, FileUtil.readStringFromFile(unzipped.listFiles()[0])); in testGzipDir_unGzip()

12