Home
last modified time | relevance | path

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

12

/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DFileSystemLogSaverTest.java274 assertEquals(1, mReportDir.listFiles()[0].list().length); in testCreateReportDirectory_sharded()
275 assertEquals(BUILD_ID, mReportDir.listFiles()[0].list()[0]); in testCreateReportDirectory_sharded()
276 assertEquals(1, mReportDir.listFiles()[0].listFiles()[0].list().length); in testCreateReportDirectory_sharded()
277 assertEquals(TEST_TAG, mReportDir.listFiles()[0].listFiles()[0].list()[0]); in testCreateReportDirectory_sharded()
279 assertEquals(1, mReportDir.listFiles()[0].listFiles()[0].listFiles()[0].list().length); in testCreateReportDirectory_sharded()
281 mReportDir.listFiles()[0].listFiles()[0].listFiles()[0].list()[0].startsWith( in testCreateReportDirectory_sharded()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/contentprovider/
DContentProviderHandlerTest.java301 assertEquals(pullTo.listFiles().length, 0); in testPullDir_OneFile()
305 assertEquals(pullTo.listFiles().length, 1); in testPullDir_OneFile()
306 assertEquals(pullTo.listFiles()[0].getName(), fileName); in testPullDir_OneFile()
345 assertEquals(pullTo.listFiles().length, 0); in testPullDir_RecursiveSubDir()
349 assertEquals(pullTo.listFiles().length, 1); in testPullDir_RecursiveSubDir()
350 assertEquals(pullTo.listFiles()[0].getName(), subDirName); in testPullDir_RecursiveSubDir()
351 assertTrue(pullTo.listFiles()[0].isDirectory()); in testPullDir_RecursiveSubDir()
354 assertEquals(pullTo.listFiles()[0].listFiles().length, 1); in testPullDir_RecursiveSubDir()
355 assertEquals(pullTo.listFiles()[0].listFiles()[0].getName(), fileName); in testPullDir_RecursiveSubDir()
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java167 File[] children = file.listFiles(); in chmodRWXRecursively()
263 File[] children = file.listFiles(); in setReadableRecursive()
265 for (File childFile : file.listFiles()) { in setReadableRecursive()
483 for (File childFile : sourceDir.listFiles()) { in recursiveHardlink()
508 for (File childFile : sourceDir.listFiles()) { in recursiveSymlink()
540 File[] childFiles = sourceDir.listFiles(); in recursiveCopy()
703 File[] childFiles = rootDir.listFiles(); in recursiveDelete()
855 if (dir.listFiles() != null) { in findFile()
856 for (File file : dir.listFiles()) { in findFile()
891 for (File file : rootDir.listFiles()) { in findDirsUnder()
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DFileReadSandboxTest.kt127 badDir.listFiles() in Test sandbox()
128 root.listFiles() in Test sandbox()
136 subDir.listFiles() // Implicitly allowed. in Test sandbox()
137 subSubDir.listFiles() // Implicitly allowed. in Test sandbox()
138 subSubDir2.listFiles() // *Not* implicitly allowed. in Test sandbox()
141 root.listFiles() in Test sandbox()
/tools/tradefederation/core/util-apps/ContentProvider/hostsidetests/src/com/android/tradefed/contentprovider/
DContentProviderTest.java169 assertEquals(tmpPullDir.listFiles()[0].getName(), subDirName); // Verify subDir in testPullDir()
170 assertEquals(tmpPullDir.listFiles()[0].listFiles().length, 1); // Verify subDir content. in testPullDir()
172 FileUtil.readStringFromFile(tmpPullDir.listFiles()[0].listFiles()[0]), in testPullDir()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparerTest.java717 assertEquals(2, fakeSplitApkApks.listFiles().length); in testSetupAndTearDown_ApkAndApks()
732 for (File f : fakeSplitApkApks.listFiles()) { in testSetupAndTearDown_ApkAndApks()
917 assertEquals(1, fakeSplitApexApks.listFiles().length); in testInstallUsingBundletool()
918 assertEquals(2, fakeSplitApkApks.listFiles().length); in testInstallUsingBundletool()
940 for (File f : fakeSplitApkApks.listFiles()) { in testInstallUsingBundletool()
1043 assertEquals(1, fakeSplitApexApks.listFiles().length); in testInstallUsingBundletool_skipModuleNotPreloaded()
1044 assertEquals(2, fakeSplitApkApks.listFiles().length); in testInstallUsingBundletool_skipModuleNotPreloaded()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt396 source.listFiles()?.forEach { file -> in processFlags()
464 source.listFiles()?.forEach { file -> in processNonCodebaseFlags()
1105 val files = file.listFiles() in skippableDirectory()
1149 val files = file.listFiles() in addHiddenPackages()
1190 for (sibling in file.parentFile?.listFiles() ?: emptyArray()) { in addHiddenPackages()
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>()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java1792 assertTrue(tmpTestsDir.listFiles().length == 1); in testInvoke_deviceInfoBuild_withEnv()
1796 .listFiles()[0] in testInvoke_deviceInfoBuild_withEnv()
1800 assertTrue(tmpTestsDir.listFiles()[0].listFiles().length == 1); in testInvoke_deviceInfoBuild_withEnv()
1802 tmpTestsFile.getName(), tmpTestsDir.listFiles()[0].listFiles()[0].getName()); in testInvoke_deviceInfoBuild_withEnv()
1888 assertTrue(tmpTestsDir.listFiles().length == 0); in testInvoke_deviceInfoBuild_withEnv_andSkipProperty()
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/
DAtraceRunMetricCollector.java75 File[] testDirectories = metricDirectory.listFiles(); in processMetricDirectory()
118 File[] traceFiles = testDirectory.listFiles(); in processTraceFiles()
/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.java171 File[] imageFiles = mBuildDir.listFiles(new PatternFilenameFilter(".*\\.img")); in createBuildImageZip()
244 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.java355 String[] listFiles = tmpDir.list(); in testTmpDirClean() local
359 for (String file : Arrays.asList(listFiles)) { in testTmpDirClean()
/tools/tradefederation/contrib/src/com/android/uicd/tests/
DUiConductorTest.java278 for (File file : srcFile.listFiles()) { in copyFile()
298 for (File file : srcFile.listFiles()) { in copyFile()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandbox.java511 if (heapDumpDir != null && heapDumpDir.listFiles().length != 0) { in logAndCleanHeapDump()
512 for (File f : heapDumpDir.listFiles()) { in logAndCleanHeapDump()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DInstallApexModuleTargetPreparer.java246 if (splitsDir == null || splitsDir.listFiles() == null) { in getSplitsForApks()
249 return Arrays.asList(splitsDir.listFiles()); in getSplitsForApks()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DFilePullerLogCollector.java57 for (File f : metricDirectory.listFiles()) { in processMetricDirectory()
/tools/tradefederation/core/src/com/android/tradefed/config/proxy/
DTradefedDelegator.java66 mDelegatedTfRootDir.listFiles( in createClasspath()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DZipUtil2Test.java96 for (File file : destDir.listFiles()) { in testExtractZip()
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DNativeCodeCoverageListener.java164 return ZipUtil.createZip(Arrays.asList(untarDir.listFiles()), "native_coverage"); in convertTarToZip()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DSubprocessConfigBuilder.java101 dir.listFiles((parent, name) -> name.toLowerCase().endsWith(".jar"))) { in build()
/tools/tradefederation/core/src/com/android/tradefed/util/
DClassPathScanner.java155 File[] childFiles = dir.listFiles(); in getEntriesFromDir()

12