Home
last modified time | relevance | path

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

123456789

/frameworks/base/core/java/com/android/internal/util/
DJournaledFile.java49 if (mReal.exists()) { in chooseForRead()
51 if (mTemp.exists()) { in chooseForRead()
54 } else if (mTemp.exists()) { in chooseForRead()
75 if (!mReal.exists()) { in chooseForWrite()
88 if (mTemp.exists()) { in chooseForWrite()
/frameworks/compile/mclinker/unittests/
DPathTest.cpp49 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
53 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
59 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
63 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
69 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
73 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
80 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
84 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java58 if (mBaseName.exists()) { in startWrite()
59 if (!mBackupName.exists()) { in startWrite()
133 public boolean exists() { in exists() method in AtomicFile
134 return mBaseName.exists() || mBackupName.exists(); in exists()
143 if (mBackupName.exists()) { in openRead()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java43 if (mDatabaseFile.exists()) { in setUp()
61 assertTrue(mDatabaseFile.exists()); in testNoCorruptionCase()
71 assertTrue(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
84 if (mDatabaseFile.exists()) { in testDatabaseIsCorrupt()
91 assertFalse(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
DDatabaseGeneralTest.java60 if (mDatabaseFile.exists()) { in setUp()
1056 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1059 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1077 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1082 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1096 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1097 assertTrue(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler()
1103 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1104 assertFalse(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler()
1121 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbAudioManager.java102 boolean exists = false; in waitForAlsaFile()
103 for (int retry = 0; !exists && retry < kNumRetries; retry++) { in waitForAlsaFile()
104 exists = alsaDevFile.exists(); in waitForAlsaFile()
105 if (!exists) { in waitForAlsaFile()
116 return exists; in waitForAlsaFile()
/frameworks/base/core/java/android/util/
DAtomicFile.java90 if (mBaseName.exists()) { in startWrite()
91 if (!mBackupName.exists()) { in startWrite()
195 if (mBackupName.exists()) { in openRead()
210 if (mBackupName.exists()) { in getLastModifiedTime()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
DServicesTests.java43 resultFile.exists()); in testStressConcurentFirstLaunch()
47 "'.", completeFile.exists()); in testStressConcurentFirstLaunch()
82 if (!completeFile.exists()) { in areAllServicesRunning()
/frameworks/support/v4/java/android/support/v4/util/
DAtomicFile.java88 if (mBaseName.exists()) { in startWrite()
89 if (!mBackupName.exists()) { in startWrite()
164 if (mBackupName.exists()) { in openRead()
/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java75 if (keyFile.exists()) { in generateNewKey()
118 if (!keyFile.exists()) { in retrieveKey()
128 if (!keyFile.exists()) { in deleteKey()
/frameworks/support/tests/java/android/support/v4/provider/
DDocumentFileTest.java107 assertTrue("exists", doc.exists()); in testSimple()
262 assertTrue("exists", dog.exists()); in testDelete()
269 assertFalse("exists", dog.exists()); in testDelete()
286 assertTrue(dog.exists()); in testRename()
310 assertFalse(dog.exists()); in testRename()
314 assertTrue(dog.exists()); in testRename()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeBackupActivity.java104 boolean exists = mDataFile.exists(); in populateUI()
107 if (exists) { in populateUI()
/frameworks/support/v4/java/android/support/v4/provider/
DSingleDocumentFile.java94 public boolean exists() { in exists() method in SingleDocumentFile
95 return DocumentsContractApi19.exists(mContext, mUri); in exists()
DTreeDocumentFile.java95 public boolean exists() { in exists() method in TreeDocumentFile
96 return DocumentsContractApi19.exists(mContext, mUri); in exists()
DRawDocumentFile.java118 public boolean exists() { in exists() method in RawDocumentFile
119 return mFile.exists(); in exists()
/frameworks/base/packages/Keyguard/scripts/
Dnew_merge.py113 if (os.path.exists(TEMP_FILE1)):
116 if (os.path.exists(TEMP_FILE2)):
132 if (os.path.exists(outFile)):
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiCollection.java62 if (item.exists()) { in getChildByDescription()
120 if (item.exists()) { in getChildByText()
DUiScrollable.java90 protected boolean exists(UiSelector selector) { in exists() method in UiScrollable
260 if (exists(childSelector)) { in scrollIntoView()
265 if (exists(childSelector)) { in scrollIntoView()
270 if(exists(childSelector)) { in scrollIntoView()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java64 assertFalse(mCopyFile.exists()); in testCopyFile()
66 assertTrue(mCopyFile.exists()); in testCopyFile()
72 assertFalse(mCopyFile.exists()); in testCopyToFile()
74 assertTrue(mCopyFile.exists()); in testCopyToFile()
DFileObserverTest.java66 if (mTestFile != null && mTestFile.exists()) { in tearDown()
74 assertTrue(mTestFile.exists()); in testRun()
/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.java100 if (mBackupFile.exists()) { in loadFromDiskLocked()
106 if (mFile.exists() && !mFile.canRead()) { in loadFromDiskLocked()
567 if (mFile.exists()) { in writeToFile()
576 if (!mBackupFile.exists()) { in writeToFile()
620 if (mFile.exists()) { in writeToFile()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/res/
D.README3 directory exists.
/frameworks/support/v4/java/android/support/v4/content/
DContextCompat.java377 if (!file.exists()) { in createFilesDir()
379 if (file.exists()) { in createFilesDir()
/frameworks/base/core/java/android/content/res/
DObbScanner.java44 if (!obbFile.exists()) { in getObbInfo()

123456789