/base/startup/appspawn/common/ |
D | appspawn_server.c | 47 static void NotifyResToParent(struct AppSpawnContent_ *content, AppSpawnClient *client, int result) in NotifyResToParent() argument 49 if (content->notifyResToParent != NULL) { in NotifyResToParent() 50 content->notifyResToParent(content, client, result); in NotifyResToParent() 83 int DoStartApp(struct AppSpawnContent_ *content, AppSpawnClient *client, char *longProcName, uint32… in DoStartApp() argument 87 if (content->handleInternetPermission != NULL) { in DoStartApp() 88 content->handleInternetPermission(client); in DoStartApp() 91 if (content->setAppSandbox) { in DoStartApp() 92 ret = content->setAppSandbox(content, client); in DoStartApp() 93 APPSPAWN_CHECK(ret == 0, NotifyResToParent(content, client, ret); in DoStartApp() 98 if (content->setKeepCapabilities) { in DoStartApp() [all …]
|
D | appspawn_server.h | 54 void (*loadExtendLib)(struct AppSpawnContent_ *content); 55 void (*initAppSpawn)(struct AppSpawnContent_ *content); 56 void (*runAppSpawn)(struct AppSpawnContent_ *content, int argc, char *const argv[]); 57 void (*setUidGidFilter)(struct AppSpawnContent_ *content); 60 void (*clearEnvironment)(struct AppSpawnContent_ *content, AppSpawnClient *client); 61 void (*initDebugParams)(struct AppSpawnContent_ *content, AppSpawnClient *client); 62 int (*setAppAccessToken)(struct AppSpawnContent_ *content, AppSpawnClient *client); 63 int (*setAppSandbox)(struct AppSpawnContent_ *content, AppSpawnClient *client); 64 int (*setKeepCapabilities)(struct AppSpawnContent_ *content, AppSpawnClient *client); 65 int (*setFileDescriptors)(struct AppSpawnContent_ *content, AppSpawnClient *client); [all …]
|
/base/startup/appspawn/standard/ |
D | main.c | 85 … AppSpawnContent *content = AppSpawnCreateContent(NWEBSPAWN_SOCKET_NAME, argv[0], argvSize, mode); in main() local 86 APPSPAWN_CHECK(content != NULL, return -1, "Invalid content for nwebspawn"); in main() 87 APPSPAWN_CHECK(content->initAppSpawn != NULL, return -1, "Invalid content for nwebspawn"); in main() 88 APPSPAWN_CHECK(content->runAppSpawn != NULL, return -1, "Invalid content for nwebspawn"); in main() 91 content->loadExtendLib = LoadExtendLibNweb; in main() 92 content->runChildProcessor = RunChildProcessorNweb; in main() 93 content->initAppSpawn(content); in main() 94 content->runAppSpawn(content, argc, argv); in main() 97 … AppSpawnContent *content = AppSpawnCreateContent(APPSPAWN_SOCKET_NAME, argv[0], argvSize, mode); in main() local 98 APPSPAWN_CHECK(content != NULL, return -1, "Invalid content for appspawn"); in main() [all …]
|
D | appspawn_process.c | 51 static int SetAsanEnabledEnv(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAsanEnabledEnv() argument 78 static int SetProcessName(struct AppSpawnContent_ *content, AppSpawnClient *client, in SetProcessName() argument 114 static int SetKeepCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetKeepCapabilities() argument 125 static int SetCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetCapabilities() argument 161 isRet = SetSelinuxCon(content, client) == -1; in SetCapabilities() 166 static void InitDebugParams(struct AppSpawnContent_ *content, AppSpawnClient *client) in InitDebugParams() argument 190 static void ClearEnvironment(AppSpawnContent *content, AppSpawnClient *client) in ClearEnvironment() argument 201 SetAsanEnabledEnv(content, client); in ClearEnvironment() 207 int SetXpmRegion(struct AppSpawnContent_ *content) in SetXpmRegion() argument 222 static int SetUidGid(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetUidGid() argument [all …]
|
D | appspawn_service.c | 455 sandboxArg.content = &g_appSpawnContent->content; in HandleMessage() 487 if (g_appSpawnContent->content.isNweb) { in OnReceiveRequest() 563 static void NotifyResToParent(struct AppSpawnContent_ *content, AppSpawnClient *client, int result) in NotifyResToParent() argument 574 static void AppSpawnInit(AppSpawnContent *content) in AppSpawnInit() argument 576 AppSpawnContentExt *appSpawnContent = (AppSpawnContentExt *)content; in AppSpawnInit() 580 if (content->loadExtendLib) { in AppSpawnInit() 581 content->loadExtendLib(content); in AppSpawnInit() 584 content->notifyResToParent = NotifyResToParent; in AppSpawnInit() 586 SetContentFunction(content); in AppSpawnInit() 589 if (content->setUidGidFilter) { in AppSpawnInit() [all …]
|
/base/startup/appspawn/test/unittest/app_spawn_standard_test/ |
D | app_spawn_standard_test.cpp | 153 int32_t TestSetAppSandboxProperty(struct AppSpawnContent_ *content, AppSpawnClient *client) in TestSetAppSandboxProperty() argument 433 …AppSpawnContent *content = AppSpawnCreateContent("AppSpawn", (char*)longProcName.c_str(), longProc… variable 434 EXPECT_TRUE(content); 435 content->loadExtendLib = LoadExtendLib; 436 content->runChildProcessor = RunChildProcessor; 438 content->runChildProcessor(content, nullptr); 447 AppSpawnColdRun(content, 4, argv); 453 AppSpawnColdRun(content, 4, argv); 458 AppSpawnColdRun(content, 4, argv); 463 AppSpawnColdRun(content, 4, argv); [all …]
|
/base/startup/appspawn/adapter/ |
D | appspawn_adapter.h | 27 int32_t SetAppSandboxProperty(struct AppSpawnContent_ *content, AppSpawnClient *client); 28 int SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client); 29 int SetSelinuxCon(struct AppSpawnContent_ *content, AppSpawnClient *client); 30 void LoadExtendLib(AppSpawnContent *content); 31 void LoadExtendLibNweb(AppSpawnContent *content); 32 void RunChildProcessor(AppSpawnContent *content, AppSpawnClient *client); 33 void RunChildProcessorNweb(AppSpawnContent *content, AppSpawnClient *client); 35 void SetUidGidFilter(struct AppSpawnContent_ *content); 36 int SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client);
|
D | appspawn_adapter.cpp | 39 int SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAppAccessToken() argument 44 if (content->isNweb) { in SetAppAccessToken() 66 int SetSelinuxCon(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetSelinuxCon() argument 69 if (content->isNweb) { in SetSelinuxCon() 72 UNUSED(content); in SetSelinuxCon() 97 void SetUidGidFilter(struct AppSpawnContent_ *content) in SetUidGidFilter() argument 101 if (content->isNweb) { in SetUidGidFilter() 120 int SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetSeccompFilter() argument 125 if (content->isNweb) { in SetSeccompFilter()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/ |
D | log_print.cpp | 76 static void PrintLogPrefix(const LogContent& content, const LogFormat& format, std::ostream& out) in PrintLogPrefix() argument 81 time_t time = content.tv_sec; in PrintLogPrefix() 103 out << setw(MONO_WIDTH) << content.mono_sec; in PrintLogPrefix() 106 out << setw(EPOCH_WIDTH) << content.tv_sec; in PrintLogPrefix() 115 out << setw(MSEC_WIDTH) << (content.tv_nsec / NS2MS); in PrintLogPrefix() 117 out << setw(USEC_WIDTH) << (content.tv_nsec / NS2US); in PrintLogPrefix() 119 out << setw(NSEC_WIDTH) << content.tv_nsec; in PrintLogPrefix() 126 if (content.type != LOG_KMSG) { in PrintLogPrefix() 129 out << " " << setw(PID_WIDTH) << content.pid << " " << setw(PID_WIDTH) << content.tid; in PrintLogPrefix() 131 out << " " << LogLevel2ShortStr(content.level) << " "; in PrintLogPrefix() [all …]
|
/base/startup/appspawn/lite/ |
D | appspawn_process.c | 83 static int SetProcessName(struct AppSpawnContent_ *content, AppSpawnClient *client, in SetProcessName() argument 90 static int SetKeepCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetKeepCapabilities() argument 102 static int SetUidGid(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetUidGid() argument 131 static int SetCapabilities(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetCapabilities() argument 164 static void RunChildProcessor(AppSpawnContent *content, AppSpawnClient *client) in RunChildProcessor() argument 180 void SetContentFunction(AppSpawnContent *content) in SetContentFunction() argument 183 content->setProcessName = SetProcessName; in SetContentFunction() 184 content->setKeepCapabilities = SetKeepCapabilities; in SetContentFunction() 185 content->setUidGid = SetUidGid; in SetContentFunction() 186 content->setCapabilities = SetCapabilities; in SetContentFunction() [all …]
|
/base/hiviewdfx/faultloggerd/test/unittest/backtrace/ |
D | backtrace_utils_test.cpp | 128 static bool CheckBacktraceContent(const std::string& content) in CheckBacktraceContent() argument 139 if (!CheckContent(content, keyWord, true)) { in CheckBacktraceContent() 144 if (!CheckContent(content, keyWord, false)) { in CheckBacktraceContent() 153 std::string content; in TestGetBacktraceInterface() local 154 if (!GetBacktrace(content)) { in TestGetBacktraceInterface() 158 GTEST_LOG_(INFO) << content; in TestGetBacktraceInterface() 160 if (content.empty()) { in TestGetBacktraceInterface() 164 if (!CheckBacktraceContent(content)) { in TestGetBacktraceInterface() 189 std::string content; variable 190 if (!OHOS::HiviewDFX::LoadStringFromFile(TEST_TEMP_FILE, content)) { [all …]
|
/base/startup/init/services/param/linux/ |
D | param_message.c | 52 ParamMsgContent *content = (ParamMsgContent *)(request->data + offset); in FillParamMsgContent() local 53 content->type = type; in FillParamMsgContent() 54 content->contentSize = length + 1; in FillParamMsgContent() 56 int ret = memcpy_s(content->content, content->contentSize - 1, value, length); in FillParamMsgContent() 59 content->content[length] = '\0'; in FillParamMsgContent() 60 offset += sizeof(ParamMsgContent) + PARAM_ALIGN(content->contentSize); in FillParamMsgContent() 92 ParamMsgContent *content = (ParamMsgContent *)(msg->data + *offset); in GetNextContent() local 93 *offset += sizeof(ParamMsgContent) + PARAM_ALIGN(content->contentSize); in GetNextContent() 94 return content; in GetNextContent()
|
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
D | string_utils.cpp | 31 void StringUtils::StringSplit(const string &content, const string &split, vector<string> &result) in StringSplit() argument 33 SplitStr(content, split, result, false, false); in StringSplit() 36 bool StringUtils::IsBegin(const string &content, const string &begin) in IsBegin() argument 38 if (content.find(begin) == 0) { in IsBegin() 44 bool StringUtils::IsEnd(const string &content, const string &end) in IsEnd() argument 47 if (content.length() >= end.length()) { in IsEnd() 48 result = (0 == content.compare(content.length() - end.length(), end.length(), end)); in IsEnd() 53 bool StringUtils::IsContain(const string &content, const string &contain) in IsContain() argument 55 return IsSubStr(content, contain); in IsContain()
|
/base/startup/init/services/param/trigger/ |
D | trigger_processor.c | 32 static int DoTriggerExecute_(const TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerExecute_() argument 40 DoCmdByIndex(cmd->cmdKeyIndex, cmd->content, &cmd->cfgContext); in DoTriggerExecute_() 47 static int DoTriggerCheckResult(TriggerNode *trigger, const char *content, uint32_t size) in DoTriggerCheckResult() argument 49 UNUSED(content); in DoTriggerCheckResult() 61 static int ExecuteTriggerImmediately(TriggerNode *trigger, const char *content, uint32_t size) in ExecuteTriggerImmediately() argument 67 triggerHead->executeTrigger(trigger, content, size); in ExecuteTriggerImmediately() 77 static void StartTriggerExecute_(TriggerNode *trigger, const char *content, uint32_t size) in StartTriggerExecute_() argument 83 triggerHead->executeTrigger(trigger, content, size); in StartTriggerExecute_() 116 uint64_t eventId, const uint8_t *content, uint32_t size) in ProcessBeforeEvent() argument 118 PARAM_LOGV("ProcessBeforeEvent %s ", (char *)content); in ProcessBeforeEvent() [all …]
|
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/utils/ |
D | log.ts | 23 static info(tag, content): void { 24 hilog.info(IAM_DOMAIN_ID_FACE, TAG + ":" + tag, content,); 27 static error(tag, content): void { 28 hilog.error(IAM_DOMAIN_ID_FACE, TAG + ":" + tag, content,);
|
/base/startup/init/services/modules/seccomp/scripts/tools/ |
D | audit_log_analysis.py | 43 content = '@allowList\n' 58 content = '{}{};all\n'.format(content, func_name) 61 content = '{}{};arm64\n'.format(content, func_name) 63 content = '{}{};arm\n'.format(content, ';arm\n'.join( 66 return content 69 def gen_output_file(filter_name, content): argument 73 output_file.write(content) 111 content = get_item_content(function_name_nr_table_dict, arch_nr) 112 gen_output_file(args.filter_name, content)
|
D | merge_policy.py | 72 content = '{}\n'.format(item_str) 78 content = '{}{};all\n'.format(content, func_name) 83 content = '{}{};arm64\n'.format(content, func_name) 85 content = '{}{};arm\n'.format(content, ';arm\n'.join( 88 return content 137 content = self.get_item_content(function_name_nr_table_dict, "@priority", dict_priority) 138 content += self.get_item_content(function_name_nr_table_dict, "@allowList", dict_allow_list) 139 …content += self.get_item_content(function_name_nr_table_dict, "@priorityWithArgs", dict_priority_w… 140 …content += self.get_item_content(function_name_nr_table_dict, "@allowListWithArgs", dict_allow_lis… 141 content += self.get_item_content(function_name_nr_table_dict, "@blockList", dict_blocklist) [all …]
|
D | strace_log_analysis.py | 48 content = '@allowList\n' 51 content = '{}{};{}\n'.format(content, ';{}\n'.format(arch).join(func_name_list), arch) 53 return content 75 content = get_item_content(args.target_cpu, func_name_set, function_name_nr_table_dict) 76 audit_policy.gen_output_file(args.filter_name, content)
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/ |
D | zip_output.cpp | 74 const char* content = line.c_str(); in Execute() local 75 uint16_t content_size = strlen(content); in Execute() 76 uint16_t size = strlen(content) + 1; // include \n in Execute() 85 CompressBigLine(content, size); in Execute() 89 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in Execute() 90 MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset, content, content_size) != EOK) { in Execute() 95 srcBuffer->content[srcBuffer->offset] = '\n'; in Execute() 116 if (write(fd_, destBuffer->content, destBuffer->offset) < 0) { in CompressAndWriteToFd() 130 DumpStatus ZipOutput::CompressBigLine(const char* content, uint16_t size) in CompressBigLine() argument 132 if (!content) { in CompressBigLine() [all …]
|
/base/hiviewdfx/hiview/base/event_store/utility/writer/ |
D | sys_event_doc_writer.cpp | 170 uint8_t* content = nullptr; in WriteContent() local 171 if (int ret = BuildContent(sysEvent, &content, contentSize); ret != DOC_STORE_SUCCESS) { in WriteContent() 175 out_.write(reinterpret_cast<char*>(content), contentSize); in WriteContent() 176 delete[] content; in WriteContent() 189 uint8_t* content = new(std::nothrow) uint8_t[contentSize]; in BuildContent() local 190 if (content == nullptr) { in BuildContent() 194 if (CopyValue(content, contentSize, contentSize) != EOK) { in BuildContent() 196 delete[] content; in BuildContent() 200 if (CopyValue(content + pos, contentSize, sysEvent->GetEventSeq()) != EOK) { in BuildContent() 202 delete[] content; in BuildContent() [all …]
|
/base/update/updater/services/script/script_instruction/ |
D | script_updateprocesser.cpp | 32 std::string content; in Execute() local 35 sstream >> content; in Execute() 36 env.PostMessage("set_progress", content); in Execute() 54 std::string content; in Execute() local 59 sstream >> content; in Execute() 60 env.PostMessage("show_progress", content); in Execute()
|
/base/hiviewdfx/hiview/base/event_store/utility/reader/ |
D | sys_event_doc_reader.cpp | 124 uint8_t* content = nullptr; in Read() local 126 if (auto ret = ReadContent(&content, contentSize); ret != DOC_STORE_SUCCESS) { in Read() 129 TryToAddEntry(content, contentSize, query, entries, num); in Read() 150 uint8_t* content = nullptr; in ReadPages() local 152 if (ReadContent(&content, contentSize) != DOC_STORE_SUCCESS) { in ReadPages() 162 TryToAddEntry(content, contentSize, query, entries, num); in ReadPages() 187 int SysEventDocReader::ReadContent(uint8_t** content, uint32_t& contentSize) in ReadContent() argument 202 *content = new(std::nothrow) uint8_t[contentSize]; in ReadContent() 203 if (*content == nullptr) { in ReadContent() 207 in_.read(reinterpret_cast<char*>(*content), contentSize); in ReadContent() [all …]
|
/base/telephony/telephony_data/common/src/ |
D | parser_util.cpp | 71 char *content = nullptr; in ParserPdpProfileJson() local 76 ret = LoaderJsonFile(content, path); in ParserPdpProfileJson() 82 if (content == nullptr) { in ParserPdpProfileJson() 86 const int contentLength = strlen(content); in ParserPdpProfileJson() 87 const std::string rawJson(content); in ParserPdpProfileJson() 88 free(content); in ParserPdpProfileJson() 89 content = nullptr; in ParserPdpProfileJson() 179 char *content = nullptr; in ParserOpKeyJson() local 180 int ret = LoaderJsonFile(content, path); in ParserOpKeyJson() 185 if (content == nullptr) { in ParserOpKeyJson() [all …]
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | log_data.h | 41 char* content; member 54 content = tmp + mtagLen; in init() 58 if (strncpy_s(content, mfmtLen + 1, mfmt, mfmtLen - 1)) { in init() 66 content = nullptr; in deinit() 68 HilogData() : len(0), tag(nullptr), content(nullptr) {} in HilogData() 72 domain(msg.domain), tag(nullptr), content(nullptr) in HilogData() 88 content = tag + tag_len; in HilogData()
|
/base/hiviewdfx/faultloggerd/test/utils/ |
D | dfx_test_util.cpp | 180 bool CheckContent(const std::string& content, const std::string& keyContent, bool checkExist) in CheckContent() argument 183 if (content.find(keyContent) != std::string::npos) { in CheckContent() 188 printf("Failed to find: %s in %s\n", keyContent.c_str(), content.c_str()); in CheckContent() 193 printf("Find: %s in %s\n", keyContent.c_str(), content.c_str()); in CheckContent() 233 std::string content; in GetSelfMemoryCount() local 234 if (!OHOS::HiviewDFX::LoadStringFromFile(path, content)) { in GetSelfMemoryCount() 240 OHOS::SplitStr(content, "\n", result); in GetSelfMemoryCount() 264 std::string content; in GetSelfMapsCount() local 265 if (!OHOS::HiviewDFX::LoadStringFromFile(path, content)) { in GetSelfMapsCount() 271 OHOS::SplitStr(content, "\n", result); in GetSelfMapsCount() [all …]
|