Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 144) sorted by relevance

123456

/frameworks/base/core/java/com/android/internal/util/
DJournaledFile.java40 if (mReal.exists()) { in chooseForRead()
42 if (mTemp.exists()) { in chooseForRead()
45 } else if (mTemp.exists()) { in chooseForRead()
66 if (!mReal.exists()) { in chooseForWrite()
79 if (mTemp.exists()) { in chooseForWrite()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java59 if (mTestFile.exists()) mTestFile.delete(); in tearDown()
60 if (mCopyFile.exists()) mCopyFile.delete(); in tearDown()
79 Assert.assertTrue(mTestFile.exists()); in testGetFileStatus()
113 Assert.assertFalse(mTestFile.exists()); in testGetFileStatus()
121 assertFalse(mCopyFile.exists()); in testCopyFile()
123 assertTrue(mCopyFile.exists()); in testCopyFile()
130 assertFalse(mCopyFile.exists()); in testCopyToFile()
131 …pyToFile(new ByteArrayInputStream(s.getBytes()), mCopyFile); assertTrue(mCopyFile.exists()); in testCopyToFile()
DFileObserverTest.java66 if (mTestFile != null && mTestFile.exists()) { in tearDown()
74 assertTrue(mTestFile.exists()); in testRun()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java44 if (mDatabaseFile.exists()) { in setUp()
62 assertTrue(mDatabaseFile.exists()); in testNoCorruptionCase()
72 assertTrue(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
85 if (mDatabaseFile.exists()) { in testDatabaseIsCorrupt()
92 assertFalse(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
DDatabaseGeneralTest.java60 if (mDatabaseFile.exists()) { in setUp()
1090 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1093 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1111 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1116 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1130 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1131 assertTrue(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler()
1137 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1138 assertFalse(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler()
1155 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
[all …]
DDatabaseStressTest.java43 if (mDatabaseFile.exists()) { in setUp()
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/
DLayoutTestsAutoTest.java239 if (f.exists()) in getExpectedResultFile()
245 return f.exists() ? androidExpectedResult : genericExpectedResult; in getExpectedResultFile()
285 if (actual.exists() && expected.exists()) { in processResult()
300 if (!expected.exists()) { in processResult()
327 if (f.exists()) { in runTestAndWaitUntilDone()
358 if (!f.exists()) { in runTestAndWaitUntilDone()
451 if (!tests_list.exists()) in startLayoutTests()
/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java77 if (keyFile.exists()) { in generateNewKey()
120 if (!keyFile.exists()) { in retrieveKey()
130 if (!keyFile.exists()) { in deleteKey()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java47 if (mBaseName.exists()) { in startWrite()
48 if (!mBackupName.exists()) { in startWrite()
123 if (mBackupName.exists()) { in openRead()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeBackupActivity.java104 boolean exists = mDataFile.exists(); in populateUI()
107 if (exists) { in populateUI()
/frameworks/base/core/java/android/gesture/
DGestureLibraries.java69 if (!parentFile.exists()) { in save()
93 if (file.exists() && file.canRead()) { in load()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java97 if (mBackupFile.exists()) { in loadFromDiskLocked()
103 if (mFile.exists() && !mFile.canRead()) { in loadFromDiskLocked()
546 if (mFile.exists()) { in writeToFile()
555 if (!mBackupFile.exists()) { in writeToFile()
597 if (mFile.exists()) { in writeToFile()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DVideoEditorHelper.java131 if (!new File(file).exists()) in getBitmap()
317 assertEquals("Exported FileName", tempFile.exists(), true); in validateExport()
365 assertEquals("Exported FileName", tempFile.exists(), true); in validateExport()
415 if (temp != null && temp.exists()) { in checkDeleteExistingFile()
/frameworks/base/core/java/android/content/res/
DObbScanner.java44 if (!obbFile.exists()) { in getObbInfo()
/frameworks/base/media/java/android/media/videoeditor/
DVideoEditorFactory.java50 if (!dir.exists()) { in create()
/frameworks/base/test-runner/src/junit/runner/
DTestCaseClassLoader.java134 if (file.exists()) { in loadFileData()
161 if (!archive.exists()) in loadJarData()
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java149 if (!apkFile.exists()) {
200 if (directory.exists() && directory.isDirectory()) {
517 if (size == 0 && !apkFile.exists()) { in isUnderInternalThreshold()
565 if (sizeBytes == 0 && !apkFile.exists()) { in calculateContainerSize()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteUnfinalizedExceptionTest.java36 if (mDatabaseFile.exists()) { in setUp()
/frameworks/base/media/libdrm/mobile1/src/objmng/
Ddrm_file.c138 int exists = -1; in calcDirSize() local
177 exists = stat(path, &stat_buf); in calcDirSize()
178 if (exists != -1) in calcDirSize()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java85 if (nativeLibraryDir.exists()) { in removeNativeBinariesFromDirLI()
/frameworks/base/core/java/android/webkit/
DCacheManager.java199 if (!mBaseDir.exists()) { in init()
221 if (!mBaseDir.exists()) { in createCacheDirectory()
563 if (!cacheRet.outFile.exists()) { in saveCacheFile()
728 while (file.exists()) { in setupFiles()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
DMediaMimeTest.java62 assertTrue(new File(MP3_FILE).exists()); in setUp()
/frameworks/base/test-runner/src/android/test/
DClassPathPackageInfoSource.java117 if (classPathEntry.exists()) { in findClasses()
160 if (directory.exists()) { in findClassesInDirectory()
/frameworks/base/core/tests/coretests/src/com/android/internal/net/
DNetworkStatsFactoryTest.java52 if (mTestProc.exists()) { in setUp()
63 if (mTestProc.exists()) { in tearDown()
/frameworks/base/tests/DumpRenderTree/assets/
Drun_layout_tests.py127 if os.path.exists(diff_result):
241 if not os.path.exists(results_dir):

123456