/ohos5.0/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/ |
H A D | parser_test.cpp | 83 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 97 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 111 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 127 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 144 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 160 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 176 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 192 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 207 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 222 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/ |
H A D | b_json_service_disposal_config_test.cpp | 75 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 98 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 121 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 147 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 175 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 203 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 233 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 261 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 291 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); 323 EXPECT_EQ(access(filePath.c_str(), F_OK), 0); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/ |
H A D | directory_ex.cpp | 141 if (access(subPath.c_str(), F_OK) != 0) { in ForceCreateDirectory() 148 return access(path.c_str(), F_OK) == 0; in ForceCreateDirectory() 182 if (access(subPath.c_str(), F_OK) == 0) { in ForceRemoveDirectory() 193 if (access(currentPath.c_str(), F_OK) == 0) { in ForceRemoveDirectory() 199 return ret && (access(path.c_str(), F_OK) != 0); in ForceRemoveDirectory() 205 if (access(fileName.c_str(), F_OK) == 0) { in RemoveFile() 242 if (access(fileName.c_str(), F_OK) != 0) { in ChangeModeFile() 273 if (access(subPath.c_str(), F_OK) == 0) { in ChangeModeDirectory() 284 if (access(currentPath.c_str(), F_OK) == 0) { in ChangeModeDirectory() 318 if (access(realPath.c_str(), F_OK) != 0) { in PathToRealPath()
|
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/ohos_resource_adapter_test/ |
H A D | ohos_resource_adapter_test.cpp | 167 if (access(NWEB_HAP_PATH.c_str(), F_OK) == 0) { 170 if (access(NWEB_HAP_PATH_1.c_str(), F_OK) == 0) { 174 if (access(NWEB_HAP_PATH_MODULE_UPDATE.c_str(), F_OK) == 0) { 216 if (access(NWEB_HAP_PATH.c_str(), F_OK) == 0) { 219 if (access(NWEB_HAP_PATH_1.c_str(), F_OK) == 0) { 222 if (access(NWEB_HAP_PATH_MODULE_UPDATE.c_str(), F_OK) == 0) { 274 if (access(NWEB_HAP_PATH.c_str(), F_OK) == 0) { 277 if (access(NWEB_HAP_PATH_1.c_str(), F_OK) == 0) { 280 if (access(NWEB_HAP_PATH_MODULE_UPDATE.c_str(), F_OK) == 0) { 331 if (access(NWEB_HAP_PATH.c_str(), F_OK) == 0) { [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/demuxer_test/ |
H A D | demuxer_hevc_unit_test.cpp | 144 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 163 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 182 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 201 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 220 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 271 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 322 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 341 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 360 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 379 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { [all …]
|
/ohos5.0/base/startup/appspawn/test/unittest/hnp_test/ |
H A D | hnp_installer_test.cpp | 307 EXPECT_EQ(access(HNP_BASE_PATH"/hnppublic/bin/out", F_OK), 0); 308 EXPECT_EQ(access(HNP_BASE_PATH"/hnp/sample/bin/out", F_OK), 0); 368 EXPECT_EQ(access(HNP_BASE_PATH"/hnppublic/bin/out", F_OK), 0); 369 EXPECT_EQ(access(HNP_BASE_PATH"/hnp/sample/bin/out", F_OK), 0); 411 EXPECT_EQ(access(HNP_BASE_PATH"/hnppublic/bin/out", F_OK), -1); 422 EXPECT_EQ(access(HNP_BASE_PATH"/hnppublic/bin/out", F_OK), 0); 423 EXPECT_EQ(access(HNP_BASE_PATH"/hnp/sample/bin/out", F_OK), 0); 476 EXPECT_EQ(access(HNP_BASE_PATH"/hnppublic/bin/out", F_OK), 0); 477 EXPECT_EQ(access(HNP_BASE_PATH"/hnp/sample/bin/out", F_OK), 0); 519 EXPECT_EQ(access(HNP_BASE_PATH"/hnppublic/bin/outt", F_OK), 0); [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tests/unittests/backup_tools/backup_tool/ |
H A D | tools_op_test.cpp | 171 if (access(incrementalpath.c_str(), F_OK) == 0) { 176 if (access(wholePath.c_str(), F_OK) == 0) { 183 if (access(incrementalpath.c_str(), F_OK) != 0) { 188 if (access(wholePath.c_str(), F_OK) != 0) { 193 if (access(incrementalpath.c_str(), F_OK) == 0) { 196 if (access(wholePath.c_str(), F_OK) != 0) {
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_uninstaller_test/ |
H A D | bms_bundle_uninstaller_test.cpp | 171 int bundleDataExist = access(BUNDLE_DATA_DIR1.c_str(), F_OK); in CheckFileExist() 174 bundleDataExist = access(BUNDLE_DATA_DIR2.c_str(), F_OK); in CheckFileExist() 177 bundleDataExist = access(BUNDLE_DATA_DIR3.c_str(), F_OK); in CheckFileExist() 180 bundleDataExist = access(BUNDLE_DATA_DIR4.c_str(), F_OK); in CheckFileExist() 183 int bundleCodeExist = access(BUNDLE_CODE_DIR.c_str(), F_OK); in CheckFileExist() 189 int bundleDataExist = access(BUNDLE_DATA_DIR1.c_str(), F_OK); in CheckFileNonExist() 192 bundleDataExist = access(BUNDLE_DATA_DIR2.c_str(), F_OK); in CheckFileNonExist() 195 bundleDataExist = access(BUNDLE_DATA_DIR3.c_str(), F_OK); in CheckFileNonExist() 198 bundleDataExist = access(BUNDLE_DATA_DIR4.c_str(), F_OK); in CheckFileNonExist() 201 int bundleCodeExist = access(BUNDLE_CODE_DIR.c_str(), F_OK); in CheckFileNonExist() [all …]
|
/ohos5.0/base/web/webview/ohos_adapter/ohos_resource_adapter/src/ |
H A D | ohos_resource_adapter_impl.cpp | 146 if (access(arkWebCoreHapPathOverride.c_str(), F_OK) == 0) { in GetArkWebHapPath() 148 if (access(sandboxPath.c_str(), F_OK) == 0) { in GetArkWebHapPath() 157 if (access(installPath.c_str(), F_OK) == 0) { in GetArkWebHapPath() 163 if (access(WEBVIEW_SANDBOX_HAP_PATH, F_OK) == 0) { in GetArkWebHapPath() 168 if (access(WEBVIEW_APP_HAP_PATH2, F_OK) == 0) { in GetArkWebHapPath() 173 if (access(WEBVIEW_APP_HAP_PATH, F_OK) == 0) { in GetArkWebHapPath() 178 if (access(WEBVIEW_HAP_PATH, F_OK) == 0) { in GetArkWebHapPath() 199 if (access(sandboxPath.c_str(), F_OK) == 0) { in GetNWebHapPath() 208 if (access(installPath.c_str(), F_OK) == 0) { in GetNWebHapPath() 219 if (access(NWEB_HAP_PATH.c_str(), F_OK) == 0) { in GetNWebHapPath() [all …]
|
/ohos5.0/commonlibrary/c_utils/base/src/ |
H A D | directory_ex.cpp | 218 if (access(subPath.c_str(), F_OK) != 0) { in ForceCreateDirectory() 225 return access(path.c_str(), F_OK) == 0; in ForceCreateDirectory() 291 if (faccessat(currentFd, name, F_OK, AT_SYMLINK_NOFOLLOW) == 0) { in ForceRemoveDirectory() 318 if (faccessat(AT_FDCWD, path.c_str(), F_OK, AT_SYMLINK_NOFOLLOW) == 0) { in ForceRemoveDirectory() 324 return faccessat(AT_FDCWD, path.c_str(), F_OK, AT_SYMLINK_NOFOLLOW) != 0; in ForceRemoveDirectory() 329 if (access(fileName.c_str(), F_OK) == 0) { in RemoveFile() 366 if (access(fileName.c_str(), F_OK) != 0) { in ChangeModeFile() 396 if (access(subPath.c_str(), F_OK) == 0) { in ChangeModeDirectory() 407 if (access(currentPath.c_str(), F_OK) == 0) { in ChangeModeDirectory() 435 if (access(realPath.c_str(), F_OK) != 0) { in PathToRealPath()
|
/ohos5.0/base/startup/init/services/init/standard/ |
H A D | device.c | 32 if (access("dev/null", F_OK) != 0) { in MountBasicFs() 80 if (access("/dev/null", F_OK) != 0) { in CreateDeviceNode() 86 if (access("/dev/random", F_OK) != 0) { in CreateDeviceNode() 92 if (access("/dev/urandom", F_OK) != 0) { in CreateDeviceNode()
|
H A D | init_mount.c | 41 INIT_CHECK(access(fstabFile, F_OK) == 0, fstabFile = "/system/etc/fstab.required"); in LoadRequiredFstab() 42 INIT_ERROR_CHECK(access(fstabFile, F_OK) == 0, return NULL, "Failed get fstab.required"); in LoadRequiredFstab()
|
/ohos5.0/base/security/selinux_adapter/test/unittest/common/ |
H A D | test_common.cpp | 36 if (access(subPath.c_str(), F_OK) != 0) { in CreateDirectory() 43 return access(path.c_str(), F_OK) == 0; in CreateDirectory() 54 if (access(path.c_str(), F_OK) != 0) { in RemoveDirectory() 100 if (access(path.c_str(), F_OK) != 0) { in CreateFile() 108 return access(path.c_str(), F_OK) == 0; in CreateFile()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/native/kv_store/src/kvstore_impl_posix/ |
H A D | kv_store.c | 75 if (stat(keyPath, &info) != F_OK) { in GetValueByFile() 149 if (access(kvPath, F_OK) == F_OK) { in InitKv() 153 if (mkdir(kvPath, S_IRUSR | S_IWUSR | S_IXUSR) != F_OK) { in InitKv() 203 if (access(keyPath, F_OK) == F_OK) { in NewItem()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_sandbox_app_system_test/ |
H A D | bundle_mgr_sandbox_app_system_test.cpp | 259 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 263 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 267 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 271 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 275 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 279 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 283 ret = access(dataPath.c_str(), F_OK); in CheckPathAreExisted() 295 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() 299 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() 303 ret = access(dataPath.c_str(), F_OK); in CheckPathAreNonExisted() [all …]
|
/ohos5.0/foundation/filemanagement/app_file_service/tools/backup_tool/src/ |
H A D | tools_op_incremental_backup.cpp | 136 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in OnFileReady() 145 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in OnFileReady() 150 if (access(tmpDataPath.data(), F_OK) != 0 && mkdir(tmpDataPath.data(), S_IRWXU) != 0) { in OnFileReady() 161 if (access(tmpmanifestPath.data(), F_OK) != 0 && mkdir(tmpmanifestPath.data(), S_IRWXU) != 0) { in OnFileReady() 235 if (access(BConstants::BACKUP_TOOL_LINK_DIR.data(), F_OK) == 0) { in BackupToolDirSoftlinkToBackupDir() 250 … if (access(BConstants::GetSaBundleBackupToolDir(BConstants::DEFAULT_USER_ID).data(), F_OK) != 0 && in BackupToolDirSoftlinkToBackupDir() 304 if (access((BConstants::BACKUP_TOOL_INCREMENTAL_RECEIVE_DIR).data(), F_OK) != 0 && in Init() 329 if (access(tmpPath.data(), F_OK) != 0 && mkdir(tmpPath.data(), S_IRWXU) != 0) { in Init()
|
/ohos5.0/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
H A D | app_spawn_kickdog_test.cpp | 91 if (access(LINUX_APPSPAWN_WATCHDOG_FILE, F_OK) == 0) { 99 if (access(LINUX_APPSPAWN_WATCHDOG_FILE, F_OK) == 0) { 107 if (access(LINUX_APPSPAWN_WATCHDOG_FILE, F_OK) == 0) {
|
/ohos5.0/base/startup/init/services/param/adapter/ |
H A D | param_persistadp.c | 133 …if (access(PARAM_PERSIST_SAVE_PATH, F_OK) == 0 && access(PARAM_PUBLIC_PERSIST_SAVE_PATH, F_OK) != … in GetPersistFilePath() 147 …if (access(PARAM_OLD_PERSIST_SAVE_PATH, F_OK) == 0 && access(PARAM_PRIVATE_PERSIST_SAVE_PATH, F_OK… in GetPersistFilePath() 167 (access(PERSIST_PARAM_FIXED_FLAGS, F_OK) != 0)) { in LoadPersistParam()
|
/ohos5.0/base/startup/init/test/unittest/init/ |
H A D | cmds_unittest.cpp | 89 return access(mkdirFile, F_OK); in __anon799520280102() 148 int ret = access(testFile2, F_OK); 185 int ret = access(testFile1, F_OK); 190 ret = access(testFile1, F_OK); 224 int ret = access("/data/init_ut/test_cmd_dir0", F_OK);
|
/ohos5.0/foundation/distributeddatamgr/udmf/framework/common/ |
H A D | custom_utd_store.cpp | 70 if (access(path.c_str(), F_OK) != 0 && access(old_path.c_str(), F_OK) == 0) { in GetTypeCfgs() 116 if (access(path.c_str(), F_OK) == 0) { in CreateDirectory() 130 if (access(subPath.c_str(), F_OK) != 0) { in CreateDirectory() 139 if (access(path.c_str(), F_OK) == 0) { in CreateDirectory()
|
/ohos5.0/base/hiviewdfx/hitrace/test/unittest/hitrace_dump/ |
H A D | hitrace_dump_test.cpp | 121 if (access((debugfsDir + "trace_marker").c_str(), F_OK) != -1) { in SetUpTestCase() 123 } else if (access((tracefsDir + "trace_marker").c_str(), F_OK) != -1) { in SetUpTestCase() 419 ASSERT_TRUE(access(DEFAULT_OUTPUT_DIR.c_str(), F_OK) == 0) << "/data/log/hitrace not exists."; 449 ASSERT_TRUE(access(DEFAULT_OUTPUT_DIR.c_str(), F_OK) == 0) << "/data/log/hitrace not exists."; 466 …ASSERT_TRUE(access(outputFileName.c_str(), F_OK) < 0) << "The file was not deleted half an hour ag… 518 ASSERT_TRUE(access(DEFAULT_OUTPUT_DIR.c_str(), F_OK) == 0) << "/data/log/hitrace not exists."; 535 if (access(filePath.c_str(), F_OK) != 0) { 551 if (access(filePath.c_str(), F_OK) != 0) { 565 if (access(filePath.c_str(), F_OK) != 0) {
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_helper.cpp | 65 if (access(shmFileName.c_str(), F_OK) == 0) { in DeleteRdFiles() 82 if (access(dbFileName.c_str(), F_OK) != 0) { in DeleteRdbStore() 112 if (access(dbFile.c_str(), F_OK) != 0) { in DeleteRdbStore()
|
/ohos5.0/foundation/filemanagement/app_file_service/test/fuzztest/remotefileshare_fuzzer/ |
H A D | remotefileshare_fuzzer.cpp | 55 if (access(g_sharePATH, F_OK) != 0) { in ShareFilePathIoctlFdAndCidFuzzTest() 98 if (access(g_sharePATH, F_OK) != 0) { in ShareFilePathIoctlCidFuzzTest() 149 if (access(g_sharePATH, F_OK) != 0) { in ShareFilePathIoctlFdFuzzTest()
|
/ohos5.0/foundation/communication/netmanager_base/services/netsyscontroller/src/ |
H A D | mock_netsys_native_client.cpp | 256 if (access(TEST_CELL_RX.c_str(), F_OK) == 0) { in GetCellularRxBytes() 265 if (access(TEST_CELL_TX.c_str(), F_OK) == 0) { in GetCellularTxBytes() 292 if (access(TEST_ALL_RX.c_str(), F_OK) == 0) { in GetAllRxBytes() 301 if (access(TEST_ALL_TX.c_str(), F_OK) == 0) { in GetAllTxBytes() 401 if (access(TEST_IFACE_RX.c_str(), F_OK) == 0) { in GetIfaceRxBytes() 410 if (access(TEST_IFACE_TX.c_str(), F_OK) == 0) { in GetIfaceTxBytes() 419 if (access(TEST_IFACE_RX_P.c_str(), F_OK) == 0) { in GetIfaceRxPackets() 428 if (access(TEST_IFACE_TX_P.c_str(), F_OK) == 0) { in GetIfaceTxPackets()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/avsource_test/ |
H A D | avsource_hevc_unit_test.cpp | 208 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 223 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 238 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 253 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 268 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 283 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 380 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 426 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 554 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { 576 if (access(HEVC_LIB_PATH.c_str(), F_OK) != 0) { [all …]
|