/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 | 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/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/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/opt/gamesdk/third_party/protobuf-3.0.0/python/ |
D | setup.py | 24 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']): 26 elif os.path.exists("../src/protoc"): 28 elif os.path.exists("../src/protoc.exe"): 30 elif os.path.exists("../vsprojects/Debug/protoc.exe"): 32 elif os.path.exists("../vsprojects/Release/protoc.exe"): 54 if not require and not os.path.exists(source): 59 if (not os.path.exists(output) or 60 (os.path.exists(source) and 64 if not os.path.exists(source):
|
/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()
|
/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/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/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 | 64 assertThat(!mTemporaryFile.exists()); in testEnsureFileExists_fileDoesNotAlreadyExist_getsCreated() 68 assertThat(mTemporaryFile.exists()); in testEnsureFileExists_fileDoesNotAlreadyExist_getsCreated() 78 assertThat(mTemporaryFile.exists()); 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/opt/gamesdk/src/tuningfork/tools/validation/src/test/java/com/google/tuningfork/validation/ |
D | DeveloperTuningforkParserTest.java | 115 assertThat(file1.exists()).isTrue(); in checkFidelityParametersFiles() 116 assertThat(file2.exists()).isTrue(); in checkFidelityParametersFiles() 117 assertThat(file3.exists()).isTrue(); in checkFidelityParametersFiles() 118 assertThat(file4.exists()).isFalse(); in checkFidelityParametersFiles()
|
/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/FlickerTests/lib/test/src/com/android/server/wm/flicker/monitor/ |
D | ScreenRecorderTest.java | 58 assertThat(file.exists()).isTrue(); in videoIsRecorded() 68 assertThat(file.exists()).isTrue(); in videoCanBeSaved()
|
/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/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()
|