Home
last modified time | relevance | path

Searched refs:isDirectory (Results 1 – 25 of 128) sorted by relevance

123456

/tools/tradefederation/core/javatests/com/android/tradefed/testtype/rust/
DRustBinaryTestTest.java196 when(mMockITestDevice.isDirectory(testPath)).thenReturn(true); in testNotFound()
216 when(mMockITestDevice.isDirectory(testPath)).thenReturn(true); in testNotFound2()
218 when(mMockITestDevice.isDirectory(testPath + "/d1")).thenReturn(true); in testNotFound2()
220 when(mMockITestDevice.isDirectory(testPath + "/d1/d1_1")).thenReturn(true); in testNotFound2()
222 when(mMockITestDevice.isDirectory(testPath + "/d2")).thenReturn(true); in testNotFound2()
244 when(mMockITestDevice.isDirectory(testPath)).thenReturn(true); in testRun()
246 when(mMockITestDevice.isDirectory(testPath1)).thenReturn(false); in testRun()
248 when(mMockITestDevice.isDirectory(testPath2)).thenReturn(false); in testRun()
285 when(mMockITestDevice.isDirectory(modulePath)).thenReturn(false); in testRun_moduleName()
288 when(mMockITestDevice.isDirectory(notModulePath)).thenReturn(false); in testRun_moduleName()
[all …]
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/
DGoogleBenchmarkTestTest.java108 when(mMockITestDevice.isDirectory(nativeTestPath)).thenReturn(true); in testRun()
109 when(mMockITestDevice.isDirectory(nativeTestPath + "/test1")).thenReturn(false); in testRun()
110 when(mMockITestDevice.isDirectory(nativeTestPath + "/test2")).thenReturn(false); in testRun()
191 when(mMockITestDevice.isDirectory(nativeTestPath)).thenReturn(true); in testRun_withSingleModuleName()
192 when(mMockITestDevice.isDirectory(nativeTestPath + "/test1")).thenReturn(false); in testRun_withSingleModuleName()
193 when(mMockITestDevice.isDirectory(nativeTestPath + "/test2")).thenReturn(false); in testRun_withSingleModuleName()
251 when(mMockITestDevice.isDirectory(nativeTestPath)).thenReturn(true); in testRun_withMultipleModuleNames()
252 when(mMockITestDevice.isDirectory(nativeTestPath + "/test1")).thenReturn(false); in testRun_withMultipleModuleNames()
253 when(mMockITestDevice.isDirectory(nativeTestPath + "/test2")).thenReturn(false); in testRun_withMultipleModuleNames()
303 when(mMockITestDevice.isDirectory(nativeTestPath)).thenReturn(true); in testRun_withRunReportName()
[all …]
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/
DFsDirectoryEntry.java42 if (e2.isDirectory() == e1.isDirectory()) {
46 if (e2.isDirectory()) return 1;
97 public boolean isDirectory(); in isDirectory() method
/tools/tradefederation/core/common_util/com/android/tradefed/util/
DFileUtil.java137 if (parent != null && !parent.isDirectory()) { in mkdirsRWX()
147 if (file.isDirectory() || file.mkdir()) { in mkdirsRWX()
155 return file.isDirectory(); in mkdirsRWX()
173 if (file.isDirectory()) { in chmodRWXRecursively()
286 if (file.isDirectory()) { in setReadableRecursive()
554 if (!destDir.isDirectory() && !destDir.mkdir()) { in recursiveHardlink()
560 if (childFile.isDirectory()) { in recursiveHardlink()
583 if (!destDir.isDirectory() && !destDir.mkdir()) { in recursiveSymlink()
589 if (childFile.isDirectory()) { in recursiveSymlink()
625 if (!destDir.isDirectory() && !destDir.mkdir()) { in recursiveCopy()
[all …]
DZipUtil.java120 if (entry.isDirectory()) { in extractZip()
144 if (!entry.isDirectory() && shouldExtract.test(entry)) { in extractZip()
280 if (file.isDirectory()) { in addToZip()
290 if (file.isDirectory()) { in addToZip()
/tools/tradefederation/core/javatests/com/android/tradefed/device/
DMockitoFileUtil.java48 when(rootEntry.isDirectory()).thenReturn(isDir); in setMockDirContents()
57 when(childMockEntry.isDirectory()).thenReturn(Boolean.FALSE); in setMockDirContents()
87 when(rootEntry.isDirectory()).thenReturn(Boolean.TRUE); in setMockDirPath()
92 when(rootEntry.isDirectory()).thenReturn(Boolean.FALSE); in setMockDirPath()
DLocalAndroidVirtualDeviceTest.java457 Assert.assertTrue(entry.getKey() + " is not a directory.", capturedDir.isDirectory()); in testPreinvocationSetupSuccess()
508 Assert.assertTrue(capturedHostPackageDir.isDirectory()); in testShutdown()
509 Assert.assertTrue(capturedImageDir.isDirectory()); in testShutdown()
510 Assert.assertTrue(capturedInstanceDir.isDirectory()); in testShutdown()
567 Assert.assertTrue(capturedHostPackageDir.isDirectory()); in testPreInvocationSetupBootFailure()
568 Assert.assertTrue(capturedImageDir.isDirectory()); in testPreInvocationSetupBootFailure()
569 Assert.assertTrue(capturedInstanceDir.isDirectory()); in testPreInvocationSetupBootFailure()
617 Assert.assertTrue(capturedHostPackageDir.isDirectory()); in testPreInvocationSetupFailure()
618 Assert.assertTrue(capturedImageDir.isDirectory()); in testPreInvocationSetupFailure()
619 Assert.assertTrue(capturedInstanceDir.isDirectory()); in testPreInvocationSetupFailure()
DTestDeviceFileFuncTest.java391 assertTrue(mTestDevice.isDirectory(remotePath)); in testIsDirectory()
431 assertTrue(mTestDevice.isDirectory(remotePath)); in testGetChildren_Basic()
466 assertFalse(mTestDevice.isDirectory(remotePath)); in testGetChildren_NotDirectory()
492 assertTrue(mTestDevice.isDirectory(remotePath)); in testGetChildren_EmptyDirectory()
542 assertEquals(firstFile.isDirectory(), secondFile.isDirectory()); in compareFiles()
547 if (firstFile.isDirectory()) { in compareFiles()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/apilevels/
DApiGeneratorIntegrationTestBase.kt45 if (!isDirectory) { in <lambda>()
54 if (!isDirectory) { in <lambda>()
63 if (!isDirectory) { in <lambda>()
DApiGeneratorTest.kt50 if (!testPrebuiltsRoot.isDirectory) { in <lambda>()
152 if (!testPrebuiltsRoot.isDirectory) { in <lambda>()
278 if (!testPrebuiltsRoot.isDirectory) { in <lambda>()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DGCSFileDownloaderFuncTest.java271 Assert.assertTrue(localFile.isDirectory()); in checkDownloadedFolder()
286 Assert.assertTrue(subFolder.isDirectory()); in checkDownloadedFolder()
297 Assert.assertTrue(subFolder.isDirectory()); in checkDownloadedFolder()
304 Assert.assertTrue(subSubFolder.isDirectory()); in checkDownloadedFolder()
335 Assert.assertTrue(localFile.isDirectory()); in testDownloadFile_size0Folder()
342 Assert.assertTrue(subFolder.isDirectory()); in testDownloadFile_size0Folder()
359 Assert.assertTrue(localFile.isDirectory()); in testDownloadFile_folderWithOnlyOneFile()
DFakeTestsZipFolderTest.java56 assertTrue(base.exists() && base.isDirectory()); in testFakeTestsZipFolder()
66 assertTrue(file.isDirectory()); in testFakeTestsZipFolder()
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/contentprovider/
DContentProviderHandler.java245 if (fileToPush.isDirectory()) { in pushFile()
390 if (!localDir.isDirectory()) { in pullDirInternal()
411 boolean isDirectory = Boolean.valueOf(columnValues.get(COLUMN_DIRECTORY)); in pullDirInternal()
420 if (isDirectory) { in pullDirInternal()
501 if (childFile.isDirectory()) { in pushDirInternal()
/tools/tradefederation/core/util_apps/ContentProvider/main/java/android/tradefed/contentprovider/
DManagedFileContentProvider.java109 if (!file.isDirectory()) { in query()
208 value = file.isDirectory(); in getColumnValue()
212 value = file.isDirectory() ? null : getType(file); in getColumnValue()
284 if (rootDir.isDirectory()) { in recursiveDelete()
/tools/tradefederation/core/common_util/com/android/tradefed/cache/
DMerkleTree.java35 if (!directory.exists() || !directory.isDirectory()) { in buildFromDir()
51 if (f.isDirectory()) { in buildFromDir()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/cli/internal/
DMakeAnnotationsPackagePrivateCommandTest.kt59 assertTrue(stubAnnotationsDir.path, stubAnnotationsDir.isDirectory) in Check assumptions()
151 assertTrue(source.path, source.isDirectory) in Test stub-annotations containing unknown annotation()
/tools/tradefederation/core/javatests/com/android/tradefed/presubmit/
DTestMappingsValidation.java227 if (deviceBuildInfo.getFile(TEST_MAPPINGS_ZIP).isDirectory()) { in setUp()
264 if (configZip.isDirectory()) { in testValidTestConfigForParameterizedMainlineModules()
454 if (configZip.isDirectory()) { in testNoPerformanceTests()
462 if (deviceConfigZip.isDirectory()) { in testNoPerformanceTests()
754 if (configZip.isDirectory()) { in validateConfigsOfSharedPool()
764 if (deviceConfigZip.isDirectory()) { in validateConfigsOfSharedPool()
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/cli/common/
DMetalavaOptions.kt133 if (!file.isDirectory) { in stringToExistingDir()
150 if (output.isDirectory) { in stringToNewDir()
194 if (output.isDirectory) { in stringToNewFile()
222 if (parentFile != null && !parentFile.isDirectory) { in stringToNewOrExistingFile()
/tools/tradefederation/core/src/com/android/tradefed/device/
DFileEntryWrapper.java77 public boolean isDirectory() { in isDirectory() method in FileEntryWrapper
78 return mFileEntry.isDirectory(); in isDirectory()
/tools/tradefederation/core/src/com/android/tradefed/util/
DGCSFileDownloader.java247 if (!localFile.isDirectory()) { in isFresh()
289 if (!subFolder.isDirectory()) { in recursiveCheckFolderFreshness()
441 if (!localFolder.isDirectory()) { in recursiveDownloadFolder()
463 && !new File(localFolder, subFolderName).isDirectory()) { in recursiveDownloadFolder()
DSystemUtil.java94 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDirs()
120 if (dir.exists() && dir.isDirectory()) { in getExternalTestCasesDir()
DClassPathScanner.java160 if (childFile.isDirectory()) { in getEntriesFromDir()
203 } else if (classPathFile.isDirectory()) { in getClassPathEntries()
/tools/tradefederation/core/src/com/android/tradefed/build/
DFileDownloadCache.java167 if (childFile.isDirectory()) { in addFiles()
193 if (!f.isDirectory()) { in lockFile()
228 if (f.exists() && !f.isDirectory()) { in tryLockFile()
421 if (cachedFile.isDirectory()) { in copyFile()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DInstallAllTestZipAppsSetup.java154 if (directory == null || !directory.isDirectory()) { in installApksRecursively()
160 if (f.isDirectory()) { in installApksRecursively()
/tools/tradefederation/contrib/src/com/android/media/tests/
DCamera2StressTest.java114 if (screenshotDir != null && screenshotDir.isDirectory()) { in postScreenshotOnFailure()
117 if (remoteFile.isDirectory()) { in postScreenshotOnFailure()

123456