/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 144 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F() 145 EXPECT_EQ(0, exists("com.example/cache/foo/one")); in TEST_F() 146 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F() 151 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F() 152 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 153 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F() 168 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() 169 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F() 174 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AtomicDirectory.java | 204 public boolean exists() { in exists() method in AtomicDirectory 205 return mBaseDirectory.exists() || mBackupDirectory.exists(); in exists() 212 if (mBaseDirectory.exists()) { in delete() 216 if (mBackupDirectory.exists()) { in delete() 223 if (!mBaseDirectory.exists()) { in getOrCreateBaseDirectory() 245 if (!mBaseDirectory.exists()) { in backup() 251 if (mBackupDirectory.exists()) { in backup() 264 if (!mBackupDirectory.exists()) { in restore() 270 if (mBaseDirectory.exists()) { in restore()
|
D | AtomicFile.java | 63 if (mBaseName.exists()) { in startWrite() 64 if (!mBackupName.exists()) { in startWrite() 142 public boolean exists() { in exists() method in AtomicFile 143 return mBaseName.exists() || mBackupName.exists(); in exists() 153 if (mBackupName.exists()) { in openRead()
|
/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/packages/SystemUI/src/com/android/systemui/ |
D | DockedStackExistsListener.java | 47 public void onDockedStackExistsChanged(boolean exists) 49 DockedStackExistsListener.onDockedStackExistsChanged(exists); 75 private static void onDockedStackExistsChanged(boolean exists) { in onDockedStackExistsChanged() argument 76 mLastExists = exists; in onDockedStackExistsChanged() 80 if (l != null) l.accept(exists); in onDockedStackExistsChanged()
|
/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 | 116 if (mBaseName.exists()) { in startWrite() 117 if (!mBackupName.exists()) { in startWrite() 225 if (mBackupName.exists()) { in openRead() 237 public boolean exists() { in exists() method in AtomicFile 238 return mBaseName.exists() || mBackupName.exists(); in exists() 249 if (mBackupName.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/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterLoaderTest.java | 64 assertTrueForFiles(files, File::exists, " must exist"); in testPersistAndLoadSnapshot() 84 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents() 85 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents() 86 assertFalse(new File(FILES_DIR.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents() 129 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testPurging() 130 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testPurging() 160 assertTrueForFiles(files, File::exists, " must exist"); in testLowResolutionPersistAndLoadSnapshot() 161 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testLowResolutionPersistAndLoadSnapshot() 295 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles() 296 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testRemoveObsoleteFiles() [all …]
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 99 mQuotaExceeded = mQuotaFile.exists(); in onCreate() 118 if (!empty.exists()) { in onFullBackup() 152 if (mWallpaperInfo.exists()) { in onFullBackup() 153 if (sysChanged || lockChanged || !infoStage.exists()) { in onFullBackup() 160 if (sysEligible && mWallpaperFile.exists()) { in onFullBackup() 161 if (sysChanged || !imageStage.exists()) { in onFullBackup() 171 … if (lockEligible && hasLockWallpaper && mLockWallpaperFile.exists() && !mQuotaExceeded) { in onFullBackup() 172 if (lockChanged || !lockImageStage.exists()) { in onFullBackup() 219 final int sysWhich = FLAG_SYSTEM | (lockImageStage.exists() ? 0 : FLAG_LOCK); in onRestoreFinished() 235 if (!lockImageStage.exists()) { in onRestoreFinished() [all …]
|
/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/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/SystemUI/src/com/android/systemui/stackdivider/ |
D | Divider.java | 150 private void notifyDockedStackExistsChanged(final boolean exists) { in notifyDockedStackExistsChanged() argument 154 mForcedResizableController.notifyDockedStackExistsChanged(exists); in notifyDockedStackExistsChanged() 236 public void onDockedStackExistsChanged(boolean exists) throws RemoteException { in onDockedStackExistsChanged() argument 237 notifyDockedStackExistsChanged(exists); in onDockedStackExistsChanged()
|
/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 | 171 assertTrue("Cannot open input file " + inputFileName, inputFile.exists()); in decodeFile() 232 if (outEncodeFile.exists()) { in testEncoder() 241 assertTrue("Cannot open decoded input file", rawFile.exists()); in testEncoder() 315 if (mDecodedFileFullHd.exists()) { in deleteDecodedFiles() 320 if (mDecodedFileQcif.exists()) { in deleteDecodedFiles() 325 if (mDecodedFileAudio.exists()) { in deleteDecodedFiles()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppRegistry.java | 150 if (cookieFile != null && cookieFile.exists()) { in getInstantAppCookieLPw() 187 if (!appDir.exists() && !appDir.mkdirs()) { in persistInstantApplicationCookie() 192 if (cookieFile.exists() && !cookieFile.delete()) { in persistInstantApplicationCookie() 212 if (iconFile.exists()) { in getInstantAppIconLPw() 222 if (idFile.exists()) { in getInstantAppAndroidIdLPw() 238 if (!appDir.exists() && !appDir.mkdirs()) { in generateInstantAppAndroidIdLPw() 517 if (!appDir.exists()) { in writeInstantApplicationIconLPw() 617 return new File(instantAppDir, INSTANT_APP_METADATA_FILE).exists() in hasInstantAppMetadataLPr() 618 || new File(instantAppDir, INSTANT_APP_ICON_FILE).exists() in hasInstantAppMetadataLPr() 619 || new File(instantAppDir, INSTANT_APP_ANDROID_ID_FILE).exists() in hasInstantAppMetadataLPr() [all …]
|
/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/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)):
|