/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | OwnersTest.java | 51 assertFalse(owners.getLegacyConfigFile().exists()); in testUpgrade01() 54 assertFalse(owners.getDeviceOwnerFile().exists()); in testUpgrade01() 56 assertFalse(owners.getProfileOwnerFile(10).exists()); in testUpgrade01() 57 assertFalse(owners.getProfileOwnerFile(11).exists()); in testUpgrade01() 58 assertFalse(owners.getProfileOwnerFile(20).exists()); in testUpgrade01() 59 assertFalse(owners.getProfileOwnerFile(21).exists()); in testUpgrade01() 104 assertFalse(owners.getLegacyConfigFile().exists()); in testUpgrade02() 106 assertTrue(owners.getDeviceOwnerFile().exists()); // TODO Check content in testUpgrade02() 108 assertFalse(owners.getProfileOwnerFile(10).exists()); in testUpgrade02() 109 assertFalse(owners.getProfileOwnerFile(11).exists()); in testUpgrade02() [all …]
|
/frameworks/native/cmds/installd/tests/ |
D | installd_cache_test.cpp | 84 static int exists(const char* path) { in exists() function 145 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F() 146 EXPECT_EQ(0, exists("com.example/cache/foo/one")); in TEST_F() 147 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F() 152 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F() 153 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 154 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F() 169 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 170 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F() 175 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AtomicDirectory.java | 212 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()
|
/frameworks/compile/mclinker/unittests/ |
D | PathTest.cpp | 44 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F() 48 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F() 54 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F() 58 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F() 64 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F() 68 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F() 75 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F() 79 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | JournaledFile.java | 54 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()
|
/frameworks/base/core/java/android/util/ |
D | AtomicFile.java | 118 if (mLegacyBackupName.exists()) { in startWrite() 218 if (mLegacyBackupName.exists()) { in openRead() 229 if (mNewName.exists() && mBaseName.exists()) { in openRead() 242 public boolean exists() { in exists() method in AtomicFile 243 return mBaseName.exists() || mLegacyBackupName.exists(); in exists() 254 if (mLegacyBackupName.exists()) { in getLastModifiedTime()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 43 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()
|
D | DatabaseGeneralTest.java | 67 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 …]
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 103 mQuotaExceeded = mQuotaFile.exists(); in onCreate() 127 if (!empty.exists()) { in onFullBackup() 162 if (mWallpaperInfo.exists()) { in onFullBackup() 163 if (sysChanged || lockChanged || !infoStage.exists()) { in onFullBackup() 173 if (sysEligible && mWallpaperFile.exists()) { in onFullBackup() 174 if (sysChanged || !imageStage.exists()) { in onFullBackup() 184 + mWallpaperFile.exists()); in onFullBackup() 189 if (lockChanged && lockImageStage.exists()) { in onFullBackup() 199 … if (lockEligible && hasLockWallpaper && mLockWallpaperFile.exists() && !mQuotaExceeded) { in onFullBackup() 200 if (lockChanged || !lockImageStage.exists()) { in onFullBackup() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotLowResDisabledTest.java | 76 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()
|
D | TaskSnapshotPersisterLoaderTest.java | 78 assertTrueForFiles(files, File::exists, " must exist"); in testPersistAndLoadSnapshot() 92 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents() 93 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents() 94 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents() 137 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testPurging() 138 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testPurging() 424 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles() 425 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testRemoveObsoleteFiles() 443 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles_addedOneInTheMeantime()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | DockedStackListenerCompat.java | 31 public void onDockedStackExistsChanged(boolean exists) { 32 DockedStackListenerCompat.this.onDockedStackExistsChanged(exists); 51 public void onDockedStackExistsChanged(boolean exists) { in onDockedStackExistsChanged() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | FileUtilsTest.java | 62 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()
|
/frameworks/base/tools/bit/ |
D | util.cpp | 43 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()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ |
D | ServicesTests.java | 43 resultFile.exists()); in testStressConcurentFirstLaunch() 47 "'.", completeFile.exists()); in testStressConcurentFirstLaunch() 82 if (!completeFile.exists()) { in areAllServicesRunning()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ExtconUEventObserver.java | 101 Slog.wtf(TAG, file + " exists " + file.exists() + " isDir " + file.isDirectory() in getExtconInfos() 144 if (devPath.exists()) { in getDevicePath() 165 return extconDir.exists() && extconDir.isDirectory(); in namedExtconDirExists() 171 return extconDir.exists() && extconDir.isDirectory(); in extconExists()
|
/frameworks/base/services/core/java/com/android/server/integrity/ |
D | IntegrityFileManager.java | 101 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()
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | ExifUtils.cpp | 919 if (metadata.exists(ANDROID_SCALER_CROP_REGION) && in setFromMetadata() 920 staticInfo.exists(ANDROID_SENSOR_INFO_ACTIVE_ARRAY_SIZE)) { in setFromMetadata() 932 if (metadata.exists(ANDROID_JPEG_GPS_COORDINATES)) { in setFromMetadata() 952 if (metadata.exists(ANDROID_JPEG_GPS_PROCESSING_METHOD)) { in setFromMetadata() 961 if (time_available && metadata.exists(ANDROID_JPEG_GPS_TIMESTAMP)) { in setFromMetadata() 975 if (staticInfo.exists(ANDROID_CONTROL_AE_COMPENSATION_STEP) && in setFromMetadata() 976 metadata.exists(ANDROID_CONTROL_AE_EXPOSURE_COMPENSATION)) { in setFromMetadata() 987 if (metadata.exists(ANDROID_JPEG_ORIENTATION)) { in setFromMetadata() 995 if (metadata.exists(ANDROID_SENSOR_EXPOSURE_TIME)) { in setFromMetadata() 1009 if (metadata.exists(ANDROID_LENS_FOCUS_DISTANCE)) { in setFromMetadata() [all …]
|
/frameworks/base/keystore/java/android/security/ |
D | SystemKeyStore.java | 75 if (keyFile.exists()) { in generateNewKey() 118 if (!keyFile.exists()) { in retrieveKey() 128 if (!keyFile.exists()) { in deleteKey()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/ |
D | ProtoStore.java | 82 if (directory.exists() && !directory.isDirectory()) { in ensureDirectoryExistsOrThrow() 86 if (!directory.exists() && !directory.mkdir()) { in ensureDirectoryExistsOrThrow() 102 if (!file.exists()) { in loadProto()
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
D | HugeBackupActivity.java | 104 boolean exists = mDataFile.exists(); in populateUI() 107 if (exists) { in populateUI()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 121 inputFile.exists()); in testEncoder() 176 if (outEncodeFile.exists()) { in testEncoder() 185 assertTrue("Cannot open file to write decoded output", rawFile.exists()); in testEncoder() 263 if (decodedFile.exists()) { in testEncoder() 277 inputFile.exists()); in testNativeEncoder() 302 if (decodedFile.exists()) { in testNativeEncoder()
|
/frameworks/base/packages/SystemUI/scripts/ |
D | new_merge.py | 113 if (os.path.exists(TEMP_FILE1)): 116 if (os.path.exists(TEMP_FILE2)): 132 if (os.path.exists(outFile)):
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsHistoryTest.java | 145 assertTrue(expectedFile.exists()); in verifyActiveFile() 154 assertTrue(expectedFile.exists()); in verifyFileNumbers() 159 assertFalse(new File(mHistoryDir, file).exists()); in verifyFileDeleted()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotLoader.java | 141 if (!protoFile.exists()) { in loadTask() 150 proto.legacyScale, highResBitmap.exists(), loadLowResolutionBitmap); in loadTask() 157 if (!bitmapFile.exists()) { in loadTask()
|