Home
last modified time | relevance | path

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

12345678910>>...15

/aosp14/frameworks/base/core/java/com/android/internal/os/
H A DAtomicDirectory.java212 public boolean exists() { in exists() method in AtomicDirectory
213 return mBaseDirectory.exists() || mBackupDirectory.exists(); in exists()
221 if (mBaseDirectory.exists()) { in delete()
224 if (mBackupDirectory.exists()) { in delete()
233 if (mBaseDirectory.exists()) { in ensureBaseDirectory()
252 if (!mBaseDirectory.exists()) { in backup()
256 if (mBackupDirectory.exists()) { in backup()
266 if (!mBackupDirectory.exists()) { in restore()
270 if (mBaseDirectory.exists()) { in restore()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DJournaledFile.java54 if (mReal.exists()) { in chooseForRead()
56 if (mTemp.exists()) { in chooseForRead()
59 } else if (mTemp.exists()) { in chooseForRead()
81 if (!mReal.exists()) { in chooseForWrite()
94 if (mTemp.exists()) { in chooseForWrite()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
H A DUserFileManagerImplTest.kt105 assertThat(legacyFile.exists()).isTrue()
112 assertThat(legacyFile.exists()).isFalse()
113 assertThat(File(context.filesDir, UserFileManagerImpl.ROOT_DIR).exists()).isFalse()
136 assertThat(legacyFile.exists()).isTrue()
141 assertThat(legacyFile.exists()).isFalse()
142 assertThat(File(context.filesDir, UserFileManagerImpl.ROOT_DIR).exists()).isFalse()
166 assertThat(file.exists()).isTrue()
171 assertThat(file.exists()).isFalse()
/aosp14/frameworks/base/core/java/android/util/
H A DAtomicFile.java145 if (mLegacyBackupName.exists()) { in startWrite()
244 if (mLegacyBackupName.exists()) { in openRead()
255 if (mNewName.exists() && mBaseName.exists()) { in openRead()
268 public boolean exists() { in exists() method in AtomicFile
269 return mBaseName.exists() || mLegacyBackupName.exists(); in exists()
280 if (mLegacyBackupName.exists()) { in getLastModifiedTime()
/aosp14/frameworks/base/core/tests/coretests/src/android/database/
H A 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()
H A DDatabaseGeneralTest.java67 if (mDatabaseFile.exists()) { in setUp()
960 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
963 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
981 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
986 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1000 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1001 assertTrue(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler()
1007 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler()
1008 assertFalse(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler()
1025 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler()
[all …]
/aosp14/frameworks/base/packages/SystemUI/scripts/token_alignment/helpers/
H A DDOMFuncs.ts34 const exists = this.alreadyHasEntry(containerElement, tagOptions);
36 if (exists) {
37 console.log('Ignored adding entry already available: ', exists.outerHTML);
114 const exists = this.futureEntryAlreadyExist(templateElement, options);
115 if (exists) {
116 console.log('Ignored duplicating entry already available: ', exists.outerHTML);
172 const exists = this.futureEntryAlreadyExist(el, updateOptions);
173 if (exists) {
174 console.log('Ignored updating entry already available: ', exists.outerHTML);
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/
H A DPowerStatsServiceTest.java745 assertTrue(meterFile.exists()); in testDataStorageDeletedMeterMismatch()
746 assertTrue(modelFile.exists()); in testDataStorageDeletedMeterMismatch()
760 assertTrue(modelFile.exists()); in testDataStorageDeletedMeterMismatch()
817 assertTrue(meterFile.exists()); in testDataStorageDeletedModelMismatch()
818 assertTrue(modelFile.exists()); in testDataStorageDeletedModelMismatch()
831 assertTrue(meterFile.exists()); in testDataStorageDeletedModelMismatch()
889 assertTrue(meterFile.exists()); in testDataStorageDeletedResidencyMismatch()
890 assertTrue(modelFile.exists()); in testDataStorageDeletedResidencyMismatch()
903 assertTrue(meterFile.exists()); in testDataStorageDeletedResidencyMismatch()
904 assertTrue(modelFile.exists()); in testDataStorageDeletedResidencyMismatch()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotLowResDisabledTest.java76 assertTrueForFiles(files, File::exists, " must exist"); in testPersistAndLoadSnapshot()
77 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testPersistAndLoadSnapshot()
103 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles()
104 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testRemoveObsoleteFiles()
123 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles_addedOneInTheMeantime()
124 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testRemoveObsoleteFiles_addedOneInTheMeantime()
H A DTaskSnapshotPersisterLoaderTest.java81 assertTrueForFiles(files, File::exists, " must exist"); in testPersistAndLoadSnapshot()
92 assertTrueForFiles(files, file -> !file.exists(), in testPersistAndLoadSnapshot()
101 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents()
102 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents()
103 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents()
146 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testPurging()
147 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testPurging()
434 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles()
435 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testRemoveObsoleteFiles()
453 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles_addedOneInTheMeantime()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DResilientAtomicFile.java90 if (mFile.exists()) { in startWrite()
95 if (!mTemporaryBackup.exists()) { in startWrite()
165 if (mFile.exists()) { in failWrite()
173 if (mTemporaryBackup.exists()) { in openRead()
181 if (mFile.exists()) { in openRead()
199 if (mFile.exists()) { in openRead()
202 } else if (mReserveCopy.exists()) { in openRead()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DPackageManagerSettingsDeviceTests.java113 assertTrue(packageXml.exists()); in testWriteBinaryXmlSettings()
117 assertTrue(packagesReserveCopyXml.exists()); in testWriteBinaryXmlSettings()
119 assertFalse(new File(filesDir, "packages-backup.xml").exists()); in testWriteBinaryXmlSettings()
135 assertTrue(packageXml.exists()); in testWriteTextXmlSettings()
145 "system/packages.xml").exists()); in testReadSettings()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
H A DFileUtilsTest.java62 assertThat(mTemporaryFile.exists()).isFalse(); in testEnsureFileExists_fileDoesNotAlreadyExist_getsCreated()
66 assertThat(mTemporaryFile.exists()).isTrue(); in testEnsureFileExists_fileDoesNotAlreadyExist_getsCreated()
76 assertThat(mTemporaryFile.exists()).isTrue(); in testEnsureFileExists_fileAlreadyExists_doesNotErrorOut()
/aosp14/frameworks/base/tools/bit/
H A Dutil.cpp43 exists = true; in FileInfo()
53 return exists == that.exists in operator ==()
62 return exists != that.exists in operator !=()
98 return !updated.exists || fileInfo != updated; in HasChanged()
/aosp14/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
H A DServicesTests.java43 resultFile.exists()); in testStressConcurentFirstLaunch()
47 "'.", completeFile.exists()); in testStressConcurentFirstLaunch()
82 if (!completeFile.exists()) { in areAllServicesRunning()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
H A DControlsFavoritePersistenceWrapperTest.kt52 if (file.exists()) {
85 if (file.exists()) {
91 assertFalse(file.exists())
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/tare/
H A DCompleteEconomicPolicy.java164 boolean exists = false; in getAction()
168 exists = true; in getAction()
173 final Action action = exists ? new Action(actionId, ctp, price) : null; in getAction()
186 boolean exists = false; in getReward()
190 exists = true; in getReward()
196 final Reward reward = exists in getReward()
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/
H A DIntegrityFileManager.java101 if (metadataFile.exists()) { in IntegrityFileManager()
118 return new File(mRulesDir, RULES_FILE).exists() in initialized()
119 && new File(mRulesDir, METADATA_FILE).exists() in initialized()
120 && new File(mRulesDir, INDEXING_FILE).exists(); in initialized()
199 if (ruleIndexingFile.exists()) { in updateRuleIndexingController()
/aosp14/frameworks/base/core/java/android/security/net/config/
H A DSystemCertificateSource.java47 if (updatable_dir.exists() in getDirectory()
60 return new File(mUserRemovedCaDir, caFile).exists(); in isCertMarkedAsRemoved()
/aosp14/frameworks/base/keystore/java/android/security/
H A DSystemKeyStore.java75 if (keyFile.exists()) { in generateNewKey()
118 if (!keyFile.exists()) { in retrieveKey()
128 if (!keyFile.exists()) { in deleteKey()
/aosp14/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgent.java128 mQuotaExceeded = mQuotaFile.exists(); in onCreate()
144 if (!empty.exists()) { in onFullBackup()
208 if (sysOrLockChanged || !infoStage.exists()) { in backupWallpaperInfoFile()
246 if (sysChanged || !imageStage.exists()) { in backupSystemWallpaperFile()
271 if (lockChanged && lockImageStage.exists()) { in backupLockWallpaperFileIfItExists()
304 if (lockChanged || !lockImageStage.exists()) { in backupLockWallpaperFileIfItExists()
362 boolean lockImageStageExists = lockImageStage.exists(); in onRestoreFinished()
376 boolean separateLockWallpaper = mLockHasLiveComponent || lockImageStage.exists(); in onRestoreFinished()
451 if (stage.exists()) { in restoreFromStage()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DGracePeriodObserverTest.java77 doReturn(true).when(mUserManagerInternal).exists(FIRST_USER); in setUp()
85 doReturn(true).when(mUserManagerInternal).exists(newUser); in testGracePeriod()
101 doReturn(false).when(mUserManagerInternal).exists(removedUser); in testCleanUp()
/aosp14/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
H A DHugeBackupActivity.java104 boolean exists = mDataFile.exists(); in populateUI()
107 if (exists) { in populateUI()
/aosp14/frameworks/base/api/
H A Dmerge_annotation_zips.py49 if path.exists():
63 assert not out_dir.exists()
/aosp14/frameworks/base/packages/SystemUI/scripts/
H A Dnew_merge.py113 if (os.path.exists(TEMP_FILE1)):
116 if (os.path.exists(TEMP_FILE2)):
132 if (os.path.exists(outFile)):

12345678910>>...15