/aosp12/system/bt/gd/hal/ |
H A D | snoop_logger_test.cc | 90 if (std::filesystem::exists(temp_snoop_log_)) { in DeleteSnoopLogFiles() 93 if (std::filesystem::exists(temp_snoop_log_last_)) { in DeleteSnoopLogFiles() 96 if (std::filesystem::exists(temp_snooz_log_)) { in DeleteSnoopLogFiles() 99 if (std::filesystem::exists(temp_snooz_log_last_)) { in DeleteSnoopLogFiles() 120 ASSERT_TRUE(std::filesystem::exists(temp_snoop_log_)); in TEST_F() 134 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_)); in TEST_F() 136 ASSERT_TRUE(std::filesystem::exists(temp_snooz_log_)); in TEST_F() 151 ASSERT_TRUE(std::filesystem::exists(temp_snoop_log_)); in TEST_F() 172 ASSERT_TRUE(std::filesystem::exists(temp_snooz_log_)); in TEST_F() 192 ASSERT_TRUE(std::filesystem::exists(temp_snooz_log_)); in TEST_F() [all …]
|
/aosp12/frameworks/native/cmds/installd/tests/ |
H A 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 …]
|
/aosp12/system/timezone/distro/core/src/test/com/android/timezone/distro/ |
H A D | FileUtilsTest.java | 132 assertTrue(exists.mkdir()); in testEnsureDirectoryExists() 139 assertFalse(subDir.exists()); in testEnsureDirectoryExists() 178 assertTrue(exists1.exists()); in testEnsureFileDoesNotExist() 184 assertTrue(symlink.exists()); in testEnsureFileDoesNotExist() 259 assertFalse(file.exists()); in testCreateEmptyFile() 261 assertTrue(file.exists()); in testCreateEmptyFile() 267 assertTrue(dir.exists()); in testCreateEmptyFile_isDir() 274 assertTrue(dir.exists()); in testCreateEmptyFile_isDir() 285 assertTrue(file.exists()); in testCreateEmptyFile_truncatesExisting() 289 assertTrue(file.exists()); in testCreateEmptyFile_truncatesExisting() [all …]
|
/aosp12/build/make/target/product/ |
H A D | handheld_system.mk | 22 $(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk) 23 $(call inherit-product-if-exists, external/google-fonts/dancing-script/fonts.mk) 24 $(call inherit-product-if-exists, external/google-fonts/carrois-gothic-sc/fonts.mk) 25 $(call inherit-product-if-exists, external/google-fonts/coming-soon/fonts.mk) 26 $(call inherit-product-if-exists, external/google-fonts/cutive-mono/fonts.mk) 27 $(call inherit-product-if-exists, external/google-fonts/source-sans-pro/fonts.mk) 28 $(call inherit-product-if-exists, external/noto-fonts/fonts.mk) 29 $(call inherit-product-if-exists, external/roboto-fonts/fonts.mk) 30 $(call inherit-product-if-exists, external/hyphenation-patterns/patterns.mk) 31 $(call inherit-product-if-exists, frameworks/base/data/keyboards/keyboards.mk) [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A D | OwnersTest.java | 70 assertThat(owners.getLegacyConfigFile().exists()).isFalse(); in testUpgrade01() 73 assertThat(owners.getDeviceOwnerFile().exists()).isFalse(); in testUpgrade01() 75 assertThat(owners.getProfileOwnerFile(10).exists()).isFalse(); in testUpgrade01() 76 assertThat(owners.getProfileOwnerFile(11).exists()).isFalse(); in testUpgrade01() 77 assertThat(owners.getProfileOwnerFile(20).exists()).isFalse(); in testUpgrade01() 78 assertThat(owners.getProfileOwnerFile(21).exists()).isFalse(); in testUpgrade01() 138 assertThat(owners.getLegacyConfigFile().exists()).isFalse(); in testUpgrade02() 294 assertThat(owners.getDeviceOwnerFile().exists()).isTrue(); in testUpgrade04() 577 assertThat(owners.getLegacyConfigFile().exists()).isFalse(); in testRemoveExistingFiles() 579 assertThat(owners.getDeviceOwnerFile().exists()).isTrue(); in testRemoveExistingFiles() [all …]
|
/aosp12/system/apex/apexd/ |
H A D | apexd_private.cpp | 40 bool exists; in BindMount() local 46 exists = false; in BindMount() 51 exists = true; in BindMount() 55 exists = true; in BindMount() 61 if (exists && !is_dir) { in BindMount() 67 exists = false; in BindMount() 70 if (!exists) { in BindMount() 77 if (exists) { in BindMount()
|
/aosp12/bionic/libc/bionic/ |
H A D | getauxval.cpp | 40 __LIBC_HIDDEN__ unsigned long __bionic_getauxval(unsigned long type, bool* exists) { in __bionic_getauxval() argument 43 *exists = true; in __bionic_getauxval() 47 *exists = false; in __bionic_getauxval() 52 bool exists; in getauxval() local 53 unsigned long result = __bionic_getauxval(type, &exists); in getauxval() 54 if (!exists) errno = ENOENT; in getauxval()
|
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/ |
H A D | ResultStoreTest.java | 66 assertThat(mTestInterimResultDir.exists()).isTrue(); in testConstructor_shouldCreateResultsFolder() 67 assertThat(mTestFinalResultDir.exists()).isTrue(); in testConstructor_shouldCreateResultsFolder() 99 assertThat(staleTestFile1.exists()).isFalse(); in testFlushToDisk_shouldRemoveStaleData() 100 assertThat(staleTestFile2.exists()).isFalse(); in testFlushToDisk_shouldRemoveStaleData() 101 assertThat(activeTestFile3.exists()).isTrue(); in testFlushToDisk_shouldRemoveStaleData() 136 assertThat(fileFoo.exists()).isFalse(); in testPutInterimResultAndFlushToDisk_shouldWriteDirtyResultsOnly() 169 assertThat(new File(mTestFinalResultDir, testFinalFileName).exists()).isFalse(); in testGetFinalResult_whenDeleteFlagTrue_shouldDeleteData() 181 assertThat(new File(mTestFinalResultDir, testFinalFileName).exists()).isTrue(); in testGetFinalResult_whenDeleteFlagFalse_shouldNotDeleteData() 215 assertThat(new File(mTestFinalResultDir, metricsConfigName).exists()).isTrue(); in testPutFinalResult_shouldWriteResultAndRemoveInterim() 226 assertThat(new File(mTestErrorResultDir, metricsConfigName).exists()).isTrue(); in testPutError_shouldWriteErrorAndRemoveInterimResultFile() [all …]
|
/aosp12/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/ |
H A D | TimeZoneDistroInstaller.java | 160 if (oldStagedDataDir.exists()) { in stageInstallWithErrorCode() 163 if (workingDir.exists()) { in stageInstallWithErrorCode() 221 if (!tzLookupFile.exists()) { in stageInstallWithErrorCode() 258 if (!stagedTzDataDir.exists()) { in stageInstallWithErrorCode() 293 if (oldStagedDataDir.exists()) { in stageUninstall() 297 if (workingDir.exists()) { in stageUninstall() 343 if (!currentTzDataDir.exists()) { in getInstalledDistroVersion() 357 if (!stagedTzDataDir.exists()) { in getStagedDistroOperation() 378 if (!baseVersionFile.exists()) { in readBaseVersion() 391 if (dir.exists()) { in deleteBestEffort() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/os/ |
H A 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()
|
/aosp12/frameworks/compile/mclinker/unittests/ |
H A 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()
|
/aosp12/build/soong/bazel/ |
H A D | aquery.go | 139 outputPath, exists := artifactIdToPath[outputId] 140 if !exists { 166 inputPath, exists := artifactIdToPath[inputId] 167 if !exists { 214 if result, exists := depsetIdToArtifactIdsCache[depsetId]; exists { 217 if depset, exists := depsetIdToDepset[depsetId]; exists {
|
/aosp12/build/make/tools/releasetools/ |
H A D | add_img_to_target_files | 117 if os.path.exists(img.name): 153 if os.path.exists(img.name): 165 if os.path.exists(img.name): 201 if os.path.exists(img.name): 219 if os.path.exists(img.name): 235 if os.path.exists(img.name): 251 if os.path.exists(img.name): 267 if os.path.exists(img.name): 286 if os.path.exists(img.name): 604 available = os.path.exists(images_path) or os.path.exists(radio_path) [all …]
|
H A D | add_img_to_target_files.py | 117 if os.path.exists(img.name): 153 if os.path.exists(img.name): 165 if os.path.exists(img.name): 201 if os.path.exists(img.name): 219 if os.path.exists(img.name): 235 if os.path.exists(img.name): 251 if os.path.exists(img.name): 267 if os.path.exists(img.name): 286 if os.path.exists(img.name): 604 available = os.path.exists(images_path) or os.path.exists(radio_path) [all …]
|
H A D | test_common.py | 1299 self.assertTrue(os.path.exists(args[2])) 1313 self.assertTrue(os.path.exists(args[2])) 1328 self.assertTrue(os.path.exists(args[2])) 1736 self.assertTrue(os.path.exists(pubkey)) 1756 self.assertTrue(os.path.exists(pubkey)) 1777 self.assertFalse(os.path.exists(pubkey)) 1790 self.assertFalse(os.path.exists(pubkey)) 1798 self.assertTrue(os.path.exists(search_pubkey)) 1820 self.assertFalse(os.path.exists(pubkey)) 1826 self.assertFalse(os.path.exists(search_pubkey)) [all …]
|
/aosp12/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/ |
H A D | TimeZoneDistroInstallerTest.java | 102 if (tempDir.exists()) { in tearDown() 535 assertFalse(workingDir.exists()); in testStageUninstall_oldDirsAlreadyExists() 672 assertTrue(tzdataFile.exists()); in assertInstallDistroStaged() 675 assertTrue(icuFile.exists()); in assertInstallDistroStaged() 713 assertFalse(workingDir.exists()); in assertInstallDistroStaged() 744 assertFalse(workingDir.exists()); in assertNoDistroOperationStaged() 747 assertFalse(oldDataDir.exists()); in assertNoDistroOperationStaged() 764 assertFalse(workingDir.exists()); in assertDistroUninstallStaged() 767 assertFalse(oldDataDir.exists()); in assertDistroUninstallStaged() 785 assertTrue(versionFile.exists()); in assertInstalledDistro() [all …]
|
/aosp12/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
H A D | DirectoryTests.java | 31 assertTrue(f.exists()); in testStatsActiveMetricDirectoryExists() 38 assertTrue(f.exists()); in testStatsDataDirectoryExists() 45 assertTrue(f.exists()); in testStatsMetadataDirectoryExists() 52 assertTrue(f.exists()); in testStatsServiceDirectoryExists() 59 assertTrue(f.exists()); in testTrainInfoDirectoryExists()
|
/aosp12/packages/providers/MediaProvider/tests/src/com/android/providers/media/ |
H A D | IdleServiceTest.java | 118 assertFalse(exists(a)); in testPruneThumbnails() 119 assertFalse(exists(b)); in testPruneThumbnails() 120 assertTrue(exists(c)); in testPruneThumbnails() 121 assertFalse(exists(d)); in testPruneThumbnails() 132 assertFalse(exists(a)); in testPruneThumbnails() 133 assertFalse(exists(b)); in testPruneThumbnails() 134 assertFalse(exists(c)); in testPruneThumbnails() 135 assertFalse(exists(d)); in testPruneThumbnails() 220 assertFalse(exists(file)); in delete() 227 assertTrue(exists(file)); in touch() [all …]
|
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/ |
H A D | SearchBot.java | 107 findSearchHistoryView().exists()); in assertSearchHistoryVisible() 111 findSearchHistoryView().exists()); in assertSearchHistoryVisible() 119 assertTrue(textField.exists()); in assertInputEquals() 127 assertTrue(textField.exists()); in assertInputFocused() 131 public void assertInputExists(boolean exists) in assertInputExists() argument 133 assertEquals(exists, findSearchViewTextField().exists()); in assertInputExists()
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A 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()
|
/aosp12/frameworks/base/core/java/android/util/ |
H A D | AtomicFile.java | 145 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()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/powerstats/ |
H A D | PowerStatsServiceTest.java | 745 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 …]
|
/aosp12/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
H A D | WallpaperBackupAgent.java | 102 mQuotaExceeded = mQuotaFile.exists(); in onCreate() 126 if (!empty.exists()) { in onFullBackup() 161 if (mWallpaperInfo.exists()) { in onFullBackup() 162 if (sysChanged || lockChanged || !infoStage.exists()) { in onFullBackup() 172 if (sysEligible && mWallpaperFile.exists()) { in onFullBackup() 173 if (sysChanged || !imageStage.exists()) { in onFullBackup() 183 + mWallpaperFile.exists()); in onFullBackup() 188 if (lockChanged && lockImageStage.exists()) { in onFullBackup() 199 if (lockChanged || !lockImageStage.exists()) { in onFullBackup() 265 updateWallpaperComponent(wpService, !lockImageStage.exists()); in onRestoreFinished() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/database/ |
H A 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()
|
/aosp12/build/blueprint/ |
H A D | glob.go | 50 g, exists := c.globs[key] 53 if exists { 68 if g, exists = c.globs[key]; !exists { 73 if exists {
|