Home
last modified time | relevance | path

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

1234

/system/bt/gd/hal/
Dsnoop_logger_test.cc79 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_)); in SetUp()
80 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_last_)); in SetUp()
81 ASSERT_FALSE(std::filesystem::exists(temp_snooz_log_)); in SetUp()
82 ASSERT_FALSE(std::filesystem::exists(temp_snooz_log_last_)); in SetUp()
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()
121 ASSERT_FALSE(std::filesystem::exists(temp_snoop_log_last_)); in TEST_F()
[all …]
/system/apex/apexd/
Dapexd_private.cpp40 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()
Dapexd_verity.cpp166 auto exists = PathExists(hashtree_file); in PrepareHashTree() local
167 if (!exists.ok()) { in PrepareHashTree()
168 return exists.error(); in PrepareHashTree()
170 if (*exists) { in PrepareHashTree()
Dapex_file_test.cpp243 auto exists = PathExists(decompression_file_path); in TEST() local
244 ASSERT_RESULT_OK(exists); in TEST()
245 ASSERT_TRUE(*exists) << decompression_file_path << " does not exist"; in TEST()
277 auto exists = PathExists(decompression_file.path); in TEST() local
278 ASSERT_RESULT_OK(exists); in TEST()
279 ASSERT_TRUE(*exists) << decompression_file.path << " does not exist"; in TEST()
/system/timezone/distro/core/src/test/com/android/timezone/distro/
DFileUtilsTest.java131 File exists = new File(dir, "exists"); in testEnsureDirectoryExists() local
132 assertTrue(exists.mkdir()); in testEnsureDirectoryExists()
133 assertTrue(exists.setReadable(true /* readable */, true /* ownerOnly */)); in testEnsureDirectoryExists()
134 assertTrue(exists.setExecutable(true /* readable */, true /* ownerOnly */)); in testEnsureDirectoryExists()
135 FileUtils.ensureDirectoriesExist(exists, true /* makeWorldReadable */); in testEnsureDirectoryExists()
136 assertDirExistsAndIsAccessible(exists, false /* requireWorldReadable */); in testEnsureDirectoryExists()
139 assertFalse(subDir.exists()); in testEnsureDirectoryExists()
169 assertFalse(toCreate.exists()); in testEnsureDirectoriesExist_noPermissions()
178 assertTrue(exists1.exists()); in testEnsureFileDoesNotExist()
180 assertFalse(exists1.exists()); in testEnsureFileDoesNotExist()
[all …]
/system/timezone/distro/installer/src/main/com/android/timezone/distro/installer/
DTimeZoneDistroInstaller.java160 if (oldStagedDataDir.exists()) { in stageInstallWithErrorCode()
163 if (workingDir.exists()) { in stageInstallWithErrorCode()
221 if (!tzLookupFile.exists()) { in stageInstallWithErrorCode()
237 if (!telephonyLookupFile.exists()) { in stageInstallWithErrorCode()
258 if (!stagedTzDataDir.exists()) { in stageInstallWithErrorCode()
293 if (oldStagedDataDir.exists()) { in stageUninstall()
297 if (workingDir.exists()) { in stageUninstall()
303 if (!stagedTzDataDir.exists()) { in stageUninstall()
314 if (!currentTzDataDir.exists()) { in stageUninstall()
343 if (!currentTzDataDir.exists()) { in getInstalledDistroVersion()
[all …]
/system/timezone/distro/installer/src/test/com/android/timezone/distro/installer/
DTimeZoneDistroInstallerTest.java102 if (tempDir.exists()) { in tearDown()
535 assertFalse(workingDir.exists()); in testStageUninstall_oldDirsAlreadyExists()
536 assertFalse(oldStagedDataDir.exists()); in testStageUninstall_oldDirsAlreadyExists()
662 assertTrue(testInstallDir.exists()); in assertInstallDistroStaged()
665 assertTrue(stagedTzDataDir.exists()); in assertInstallDistroStaged()
669 assertTrue(distroVersionFile.exists()); in assertInstallDistroStaged()
672 assertTrue(tzdataFile.exists()); in assertInstallDistroStaged()
675 assertTrue(icuFile.exists()); in assertInstallDistroStaged()
678 assertTrue(tzLookupFile.exists()); in assertInstallDistroStaged()
682 assertTrue(telephonyLookupFile.exists()); in assertInstallDistroStaged()
[all …]
/system/incremental_delivery/incfs/tests/include/
DIncFsTestBase.h29 static bool exists(std::string_view path) { in exists() function
40 ASSERT_TRUE(exists(image_dir_path_)); in SetUp()
41 ASSERT_TRUE(exists(mount_dir_path_)); in SetUp()
62 EXPECT_FALSE(exists(image_dir_path_)); in TearDown()
63 EXPECT_FALSE(exists(mount_dir_path_)); in TearDown()
/system/sepolicy/build/
Dfile_utils.py25 if os.path.exists(file_path):
29 if parent_dir and not os.path.exists(parent_dir):
/system/bt/gd/storage/
Dstorage_module_test.cc112 ASSERT_FALSE(std::filesystem::exists(temp_config_)); in SetUp()
113 ASSERT_FALSE(std::filesystem::exists(temp_backup_config_)); in SetUp()
121 if (std::filesystem::exists(temp_config_)) { in DeleteConfigFiles()
124 if (std::filesystem::exists(temp_backup_config_)) { in DeleteConfigFiles()
144 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
228 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
283 ASSERT_TRUE(std::filesystem::exists(temp_config_)); in TEST_F()
/system/extras/systrace_analysis/
Danalyze_trace.py34 if not os.path.exists(chromium_trace_path):
38 if not os.path.exists(vinn_path):
/system/timezone/distro/core/src/main/com/android/timezone/distro/
DFileUtils.java72 if (!dirToCheck.exists()) { in ensureDirectoriesExist()
109 if (file.exists()) { in ensureFileDoesNotExist()
154 if (!file.exists()) { in filesExist()
/system/bt/tools/scripts/
Ddump_metrics_ascii.py31 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']):
43 if not os.path.exists(proto_path):
47 if not os.path.exists(output_dir):
/system/timezone/debug_tools/host/
Ddump-tzdata.py76 if not os.path.exists(output_dir):
89 if not os.path.exists(csvs_dir):
/system/keymaster/android_keymaster/
Dpure_soft_secure_key_storage.cpp102 keymaster_error_t PureSoftSecureKeyStorage::KeyExists(const km_id_t keyid, bool* exists) { in KeyExists() argument
108 *exists = pure_soft_secure_storage_map_->KeyExists(keyid); in KeyExists()
/system/sepolicy/tests/
Dsepolicy_tests.py137 if not os.path.exists(options.libpath):
143 if not os.path.exists(options.policy):
150 if not os.path.exists(f):
/system/security/keystore2/src/
Did_rotation.rs92 assert!(!temp_file_path.exists()); in test_had_factory_reset_since_id_rotation()
98 assert!(temp_file_path.exists()); in test_had_factory_reset_since_id_rotation()
/system/update_engine/scripts/
Dota_stress_test.py67 assert otafile.exists()
71 assert update_device_script.exists()
Dsimulate_ota.py129 assert os.path.exists(args.source[0]), \
131 assert os.path.exists(args.target[0]), \
/system/keymaster/include/keymaster/
Dsecure_key_storage.h49 virtual keymaster_error_t KeyExists(const km_id_t keyid, bool* exists) = 0;
Dpure_soft_secure_key_storage.h42 keymaster_error_t KeyExists(const km_id_t keyid, bool* exists) override;
/system/timezone/
Dupdate-tzdata.py62 if not os.path.exists(zic_input_file):
134 if not os.path.exists(dir):
161 if not os.path.exists(zic_binary_file):
/system/timezone/distro/tools/src/main/com/android/timezone/distro/tools/
DCreateTimeZoneDistro.java80 if (!f.exists()) { in main()
132 if (!file.exists()) { in getMandatoryPropertyFile()
/system/bt/build/toolchain/clang/
Dget_clang_suffix.py10 if os.path.exists(clang_path):
/system/chre/pal/util/
Dwifi_scan_cache.c238 bool exists = isWifiScanResultInCache(result, &index); in chreWifiScanCacheScanEventAdd() local
239 if (!exists && gWifiCacheState.event.resultTotal >= in chreWifiScanCacheScanEventAdd()
244 if (!exists) { in chreWifiScanCacheScanEventAdd()

1234