Home
last modified time | relevance | path

Searched refs:pathName (Results 1 - 25 of 29) sorted by relevance

12

/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_cold_run_test.cpp74 static int ExecvAbortStub(const char *pathName, char *const argv[]) in ExecvAbortStub() argument
76 if (!(strcmp(pathName, "/system/bin/appspawn") == 0 || strcmp(pathName, "/system/asan/bin/appspawn") == 0)) { in ExecvAbortStub()
79 APPSPAWN_LOGV("ExecvAbortStub pathName: %{public}s ", pathName); in ExecvAbortStub()
84 int ExecvLocalProcessStub(const char *pathName, char *const argv[]) in ExecvLocalProcessStub() argument
86 if (!(strcmp(pathName, "/system/bin/appspawn") == 0 || strcmp(pathName, "/system/asan/bin/appspawn") == 0)) { in ExecvLocalProcessStub()
89 APPSPAWN_LOGV("ExecvLocalProcessStub pathName: %{public}s ", pathName); in ExecvLocalProcessStub()
93 ExecvTimeoutStub(const char *pathName, char *const argv[]) ExecvTimeoutStub() argument
103 HandleExecvStub(const char *pathName, char *const argv[]) HandleExecvStub() argument
[all...]
/base/startup/appspawn/test/mock/
H A Dapp_system_stub.c229 int AccessStub(const char *pathName, int mode) in AccessStub() argument
231 if (strstr(pathName, "/data/app/el2/50/base") != NULL) { in AccessStub()
234 if (strstr(pathName, "/mnt/sandbox/50/com.example.myapplication/data/storage/el2") != NULL) { in AccessStub()
237 if (strstr(pathName, "/data/app/el5/100/base/com.example.myapplication") != NULL) { in AccessStub()
243 int ExecvStub(const char *pathName, char *const argv[]) in ExecvStub() argument
245 printf("ExecvStub %s \n", pathName); in ExecvStub()
252 func(pathName, argv); in ExecvStub()
256 int ExecvpStub(const char *pathName, char *const argv[]) in ExecvpStub() argument
258 printf("ExecvpStub %s \n", pathName); in ExecvpStub()
262 int ExecveStub(const char *pathName, cha argument
[all...]
/base/startup/init/interfaces/innerkits/file/
H A Dinit_file.c29 int GetControlFile(const char *pathName) in GetControlFile() argument
31 if (pathName == NULL) { in GetControlFile()
35 BEGET_ERROR_CHECK(snprintf_s(path, sizeof(path), sizeof(path) - 1, OHOS_FILE_ENV_PREFIX "%s", pathName) >= 0, in GetControlFile()
/base/telephony/cellular_data/services/data_service_ext_wrapper/src/
H A Ddata_service_ext_wrapper.cpp35 char pathName[PATH_PARAMETER_SIZE] = {0}; in InitDataServiceExtWrapper() local
36 int retLen = GetParameter(CONFIG_DATA_SERVICE_EXT_PATH, "", pathName, PATH_PARAMETER_SIZE); in InitDataServiceExtWrapper()
41 DataServiceExtWrapperHandle_ = dlopen(pathName, RTLD_NOW); in InitDataServiceExtWrapper()
/base/sensors/sensor/vibration_convert/core/native/src/
H A Dgenerate_vibration_json_file.cpp73 int32_t GenerateVibrationJsonFile::DebugJsonFile(const std::string &pathName, const std::vector<T> &srcDatas) in DebugJsonFile() argument
75 if (access(pathName.c_str(), 0) != 0) { in DebugJsonFile()
87 std::ofstream ofs(pathName, std::ios::out); in DebugJsonFile()
/base/update/updater/utils/
H A Dutils_fs.cpp36 int MkdirRecursive(const std::string &pathName, mode_t mode) in MkdirRecursive() argument
41 slashPos = pathName.find_first_of("/", slashPos); in MkdirRecursive()
53 auto subDir = pathName.substr(0, slashPos); in MkdirRecursive()
63 int ret = mkdir(pathName.c_str(), mode); in MkdirRecursive()
/base/startup/init/services/init/
H A Dinit_service_file.c56 static int SetFileEnv(int fd, const char *pathName) in SetFileEnv() argument
58 INIT_ERROR_CHECK(pathName != NULL, return -1, "Invalid fileName"); in SetFileEnv()
61 HOS_FILE_ENV_PREFIX "%s", pathName) >= 0, return -1, "Failed snprintf_s err=%d", errno); in SetFileEnv()
/base/security/security_guard/test/fuzztest/risk_collect/riskcollect_fuzzer/
H A Drisk_collect_fuzzer.cpp81 const char* pathName = "test"; in KernelInterfaceAdapterFuzzTest() local
82 adapter.Open(pathName, 0); in KernelInterfaceAdapterFuzzTest()
/base/sensors/sensor/vibration_convert/core/native/include/
H A Dgenerate_vibration_json_file.h34 int32_t DebugJsonFile(const std::string &pathName, const std::vector<T> &srcDatas);
/base/security/security_guard/test/unittest/data_collect/sa/
H A Dkernel_interface_adapter.h37 virtual int Open(const char* const pathName, int flags) { return 0; }; in Open() argument
/base/update/updater/utils/include/
H A Dutils_fs.h27 int MkdirRecursive(const std::string &pathName, mode_t mode);
/base/security/security_guard/test/unittest/mock/rdb/
H A Drdb_store.h52 virtual int Attach(const std::string &alias, const std::string &pathName,
69 const std::string &alias, const std::string &pathName, const std::vector<uint8_t> destEncryptKey));
/base/security/security_guard/services/data_collect/store/include/
H A Ddatabase.h48 int Attach(const std::string &alias, const std::string &pathName, const std::vector<uint8_t> destEncryptKey);
/base/security/security_guard/test/unittest/data_collect/include/
H A Ddatabase.h48 int Attach(const std::string &alias, const std::string &pathName, const std::vector<uint8_t> destEncryptKey);
/base/telephony/sms_mms/test/unittest/
H A Dmms_msg_test.h51 MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) const;
H A Dmms_msg_test.cpp662 MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) const in MmsAddAttachment()
665 std::size_t pos = pathName.find_last_of('/'); in MmsAddAttachment()
666 std::string fileName(pathName.substr(pos + 1)); in MmsAddAttachment()
668 if (!imageAttachment.SetAttachmentFilePath(pathName, isSmil)) { in MmsAddAttachment()
661 MmsAddAttachment( MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) const MmsAddAttachment() argument
/base/global/resource_management/frameworks/resmgr/include/
H A Dhap_parser.h206 * @param pathName the raw resource path
210 static RState IsRawDirFromHap(const char *hapPath, const std::string &pathName, bool &outValue);
215 * @param pathName the raw resource path
219 static RState IsRawDirUnCompressed(const std::string &pathName, bool &outValue);
H A Dhap_manager.h372 RState IsRawDirFromHap(const std::string &pathName, bool &outValue);
/base/security/security_guard/services/data_collect/store/src/
H A Ddatabase.cpp142 int Database::Attach(const std::string &alias, const std::string &pathName, in Attach() argument
147 ret = store_->Attach(alias, pathName, destEncryptKey); in Attach()
/base/security/security_guard/test/fuzztest/data_collect/datacollect_fuzzer/
H A Ddatabase_mock.cpp92 int Database::Attach(const std::string &alias, const std::string &pathName, in Attach() argument
/base/telephony/sms_mms/test/gtest/
H A Dmms_gtest.cpp180 bool MmsAddAttachment(MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) in MmsAddAttachment() argument
183 std::size_t pos = pathName.find_last_of('/'); in MmsAddAttachment()
184 std::string fileName(pathName.substr(pos + 1)); in MmsAddAttachment()
185 if (!imageAttachment.SetAttachmentFilePath(pathName, isSmil)) { in MmsAddAttachment()
507 const std::string pathName = "/data/app/enSrc/618C0A89.smil"; in HWTEST_F() local
508 std::size_t pos = pathName.find_last_of('/'); in HWTEST_F()
509 std::string fileName(pathName.substr(pos + 1)); in HWTEST_F()
515 retBool = attachment.SetAttachmentFilePath(pathName, true); in HWTEST_F()
518 EXPECT_STREQ(retStr.c_str(), pathName.c_str()); in HWTEST_F()
/base/global/resource_management/frameworks/resmgr/src/utils/
H A Dhap_parser.cpp877 RState HapParser::IsRawDirFromHap(const char *hapPath, const std::string &pathName, bool &outValue) in IsRawDirFromHap() argument
880 if (pathName.empty()) { in IsRawDirFromHap()
890 std::string rawPath = HapParser::GetRawFilePath(extractor, pathName); in IsRawDirFromHap()
903 RState HapParser::IsRawDirUnCompressed(const std::string &pathName, bool &outValue) in IsRawDirUnCompressed() argument
906 Utils::CanonicalizePath(pathName.c_str(), outPath, PATH_MAX); in IsRawDirUnCompressed()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/mock/
H A Dmock_image_source.cpp84 std::unique_ptr<ImageSource> ImageSource::CreateImageSource(const std::string &pathName, const SourceOptions &opts, in CreateImageSource() argument
/base/global/resource_management/frameworks/resmgr/src/
H A Dhap_manager.cpp1180 RState HapManager::IsRawDirFromHap(const std::string &pathName, bool &outValue) in IsRawDirFromHap() argument
1189 RState state = HapParser::IsRawDirFromHap(tempPath.c_str(), pathName, outValue); in IsRawDirFromHap()
1195 RState state = HapParser::IsRawDirUnCompressed(pathName, outValue); in IsRawDirFromHap()
1200 const std::string finalPath = (*iter)->GetResourcePath() + RAW_FILE_PATH + pathName; in IsRawDirFromHap()
/base/global/resource_management/interfaces/inner_api/include/
H A Dresource_manager.h224 virtual RState IsRawDirFromHap(const std::string &pathName, bool &outValue) = 0;

Completed in 15 milliseconds

12