/frameworks/base/core/java/com/android/internal/util/ |
D | JournaledFile.java | 40 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/ |
D | FileUtilsTest.java | 59 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()
|
D | FileObserverTest.java | 66 if (mTestFile != null && mTestFile.exists()) { in tearDown() 74 assertTrue(mTestFile.exists()); in testRun()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 44 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()
|
D | DatabaseGeneralTest.java | 60 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 …]
|
D | DatabaseStressTest.java | 43 if (mDatabaseFile.exists()) { in setUp()
|
/frameworks/base/tests/DumpRenderTree/src/com/android/dumprendertree/ |
D | LayoutTestsAutoTest.java | 239 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/ |
D | SystemKeyStore.java | 77 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/ |
D | AtomicFile.java | 47 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/ |
D | HugeBackupActivity.java | 104 boolean exists = mDataFile.exists(); in populateUI() 107 if (exists) { in populateUI()
|
/frameworks/base/core/java/android/gesture/ |
D | GestureLibraries.java | 69 if (!parentFile.exists()) { in save() 93 if (file.exists() && file.canRead()) { in load()
|
/frameworks/base/core/java/android/app/ |
D | SharedPreferencesImpl.java | 97 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/ |
D | VideoEditorHelper.java | 131 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/ |
D | ObbScanner.java | 44 if (!obbFile.exists()) { in getObbInfo()
|
/frameworks/base/media/java/android/media/videoeditor/ |
D | VideoEditorFactory.java | 50 if (!dir.exists()) { in create()
|
/frameworks/base/test-runner/src/junit/runner/ |
D | TestCaseClassLoader.java | 134 if (file.exists()) { in loadFileData() 161 if (!archive.exists()) in loadJarData()
|
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/ |
D | DefaultContainerService.java | 149 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/ |
D | SQLiteUnfinalizedExceptionTest.java | 36 if (mDatabaseFile.exists()) { in setUp()
|
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
D | drm_file.c | 138 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/ |
D | NativeLibraryHelper.java | 85 if (nativeLibraryDir.exists()) { in removeNativeBinariesFromDirLI()
|
/frameworks/base/core/java/android/webkit/ |
D | CacheManager.java | 199 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/ |
D | MediaMimeTest.java | 62 assertTrue(new File(MP3_FILE).exists()); in setUp()
|
/frameworks/base/test-runner/src/android/test/ |
D | ClassPathPackageInfoSource.java | 117 if (classPathEntry.exists()) { in findClasses() 160 if (directory.exists()) { in findClassesInDirectory()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/net/ |
D | NetworkStatsFactoryTest.java | 52 if (mTestProc.exists()) { in setUp() 63 if (mTestProc.exists()) { in tearDown()
|
/frameworks/base/tests/DumpRenderTree/assets/ |
D | run_layout_tests.py | 127 if os.path.exists(diff_result): 241 if not os.path.exists(results_dir):
|