Home
last modified time | relevance | path

Searched refs:content (Results 1 – 25 of 419) sorted by relevance

12345678910>>...17

/base/startup/appspawn/common/
Dappspawn_server.c47 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 …]
Dappspawn_server.h55 void (*loadExtendLib)(struct AppSpawnContent_ *content);
56 int (*initAppSpawn)(struct AppSpawnContent_ *content);
57 void (*runAppSpawn)(struct AppSpawnContent_ *content, int argc, char *const argv[]);
58 void (*setUidGidFilter)(struct AppSpawnContent_ *content);
61 void (*clearEnvironment)(struct AppSpawnContent_ *content, AppSpawnClient *client);
62 void (*initDebugParams)(struct AppSpawnContent_ *content, AppSpawnClient *client);
63 int (*setAppAccessToken)(struct AppSpawnContent_ *content, AppSpawnClient *client);
64 int (*setAppSandbox)(struct AppSpawnContent_ *content, AppSpawnClient *client);
65 int (*setKeepCapabilities)(struct AppSpawnContent_ *content, AppSpawnClient *client);
66 int (*setFileDescriptors)(struct AppSpawnContent_ *content, AppSpawnClient *client);
[all …]
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_service/main/security_guard_report/src/
Dcm_security_guard_report.cpp53 struct SGEventContent content; in CmFillSGRecord() local
54 (void)memset_s(&content, sizeof(content), 0, sizeof(content)); in CmFillSGRecord()
56 content.type = 0; in CmFillSGRecord()
57 content.subType = 0; in CmFillSGRecord()
58 content.caller = constant; in CmFillSGRecord()
59 content.objectInfo = objectInfoJson; in CmFillSGRecord()
60 content.bootTime = constant; in CmFillSGRecord()
61 content.wallTime = constant; in CmFillSGRecord()
62 content.outcome = constant; in CmFillSGRecord()
63 content.sourceInfo = constant; in CmFillSGRecord()
[all …]
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
Dapp_spawn_standard_test.cpp153 int32_t TestSetAppSandboxProperty(struct AppSpawnContent_ *content, AppSpawnClient *client) in TestSetAppSandboxProperty() argument
436 …AppSpawnContent *content = AppSpawnCreateContent("AppSpawn", (char*)longProcName.c_str(), longProc… variable
437 EXPECT_TRUE(content);
438 content->loadExtendLib = LoadExtendLib;
439 content->runChildProcessor = RunChildProcessor;
441 content->runChildProcessor(content, nullptr);
450 AppSpawnColdRun(content, 4, argv);
456 AppSpawnColdRun(content, 4, argv);
461 AppSpawnColdRun(content, 4, argv);
466 AppSpawnColdRun(content, 4, argv);
[all …]
/base/startup/appspawn/standard/
Dmain.c86 … AppSpawnContent *content = AppSpawnCreateContent(NWEBSPAWN_SOCKET_NAME, argv[0], argvSize, mode); in main() local
87 APPSPAWN_CHECK(content != NULL, return -1, "Invalid content for nwebspawn"); in main()
88 APPSPAWN_CHECK(content->initAppSpawn != NULL, return -1, "Invalid content for nwebspawn"); in main()
89 APPSPAWN_CHECK(content->runAppSpawn != NULL, return -1, "Invalid content for nwebspawn"); in main()
92 content->loadExtendLib = LoadExtendLibNweb; in main()
93 content->runChildProcessor = RunChildProcessorNweb; in main()
94 isRet = content->initAppSpawn(content); in main()
96 content->runAppSpawn(content, argc, argv); in main()
99 … AppSpawnContent *content = AppSpawnCreateContent(APPSPAWN_SOCKET_NAME, argv[0], argvSize, mode); in main() local
100 APPSPAWN_CHECK(content != NULL, return -1, "Invalid content for appspawn"); in main()
[all …]
Dappspawn_process.c47 static int SetAsanEnabledEnv(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAsanEnabledEnv() argument
49 if (content->isNweb) { in SetAsanEnabledEnv()
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 SetXpmConfig(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetXpmConfig() argument
[all …]
/base/startup/appspawn/adapter/
Dappspawn_adapter.h27 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);
34 void LoadAppSandboxConfig(AppSpawnContent *content);
35 void SetUidGidFilter(struct AppSpawnContent_ *content);
36 int SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client);
Dappspawn_adapter.cpp40 int SetAppAccessToken(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetAppAccessToken() argument
45 if (content->isNweb) { in SetAppAccessToken()
67 int SetSelinuxCon(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetSelinuxCon() argument
70 if (content->isNweb) { in SetSelinuxCon()
73 UNUSED(content); in SetSelinuxCon()
103 void SetUidGidFilter(struct AppSpawnContent_ *content) in SetUidGidFilter() argument
107 if (content->isNweb) { in SetUidGidFilter()
126 int SetSeccompFilter(struct AppSpawnContent_ *content, AppSpawnClient *client) in SetSeccompFilter() argument
131 if (content->isNweb) { in SetSeccompFilter()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
Dlog_print.cpp76 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/global/i18n/frameworks/intl/include/
Dmatched_number_info.h26 …umberInfo(int begin, int end, icu::UnicodeString& content) : _begin(begin), _end(end), content(con… in MatchedNumberInfo() argument
49 void SetContent(icu::UnicodeString& content) in SetContent() argument
51 this->content = content; in SetContent()
56 return content; in GetContent()
65 } else if (_begin == info._begin && _end == info._end && content < info.content) {
77 icu::UnicodeString content; variable
Ddate_time_filter.h32 …std::vector<MatchedDateTimeInfo> Filter(icu::UnicodeString& content, std::vector<MatchedDateTimeIn…
52 std::vector<MatchedDateTimeInfo> FilterDatePeriod(icu::UnicodeString& content,
54 std::vector<MatchedDateTimeInfo> FilterByRules(icu::UnicodeString& content,
56 std::vector<MatchedDateTimeInfo> FilterByPast(icu::UnicodeString& content,
60 std::vector<MatchedDateTimeInfo> FilterDate(icu::UnicodeString& content,
62 std::vector<MatchedDateTimeInfo> FilterDateTime(icu::UnicodeString& content,
64 std::vector<MatchedDateTimeInfo> FilterPeriod(icu::UnicodeString& content,
66 std::vector<MatchedDateTimeInfo> FilterDateTimePunc(icu::UnicodeString& content,
68 bool DealBrackets(icu::UnicodeString& content, std::vector<MatchedDateTimeInfo>& matches,
71 int NestDealDate(icu::UnicodeString& content, MatchedDateTimeInfo& current,
[all …]
/base/startup/appspawn/lite/
Dappspawn_process.c83 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/
Dbacktrace_utils_test.cpp110 static bool CheckBacktraceContent(const std::string& content) in CheckBacktraceContent() argument
121 if (!CheckContent(content, keyWord, true)) { in CheckBacktraceContent()
126 if (!CheckContent(content, keyWord, false)) { in CheckBacktraceContent()
135 std::string content; in TestGetBacktraceInterface() local
136 if (!GetBacktrace(content)) { in TestGetBacktraceInterface()
140 GTEST_LOG_(INFO) << content; in TestGetBacktraceInterface()
142 if (content.empty()) { in TestGetBacktraceInterface()
146 if (!CheckBacktraceContent(content)) { in TestGetBacktraceInterface()
171 std::string content; variable
172 if (!OHOS::HiviewDFX::LoadStringFromFile(TEST_TEMP_FILE, content)) {
[all …]
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/
Devent_entry_creator.h33 std::optional<Entry> CreateEntry(uint8_t* content, uint32_t contentSize);
36 std::string BuildEventJson(uint8_t* content, uint32_t contentSize);
37 std::string ParseEventJsonFromContent(uint8_t* content, uint32_t contentSize);
38 bool HasContainsInnerConds(uint8_t* content);
39 … std::shared_ptr<EventRaw::DecodedEvent> BuildDecodedEvent(uint8_t* content, uint32_t contentSize);
40 uint8_t* BuildRawEvent(uint8_t* content, uint32_t contentSize);
41 std::optional<EventRaw::HiSysEventHeader> BuildRawEventHeader(uint8_t* content);
42 void ParseEventHeaderFromContent(uint8_t* content);
/base/hiviewdfx/hiview/base/event_store/utility/reader/
Devent_entry_creator.cpp45 std::optional<Entry> EventEntryCreator::CreateEntry(uint8_t* content, uint32_t contentSize) in CreateEntry() argument
47 auto eventJsonStr = BuildEventJson(content, contentSize); in CreateEntry()
59 std::string EventEntryCreator::BuildEventJson(uint8_t* content, uint32_t contentSize) in BuildEventJson() argument
61 auto eventJsonStr = ParseEventJsonFromContent(content, contentSize); in BuildEventJson()
82 std::string EventEntryCreator::ParseEventJsonFromContent(uint8_t* content, uint32_t contentSize) in ParseEventJsonFromContent() argument
84 if (!HasContainsInnerConds(content)) { in ParseEventJsonFromContent()
88 auto decodedEvent = BuildDecodedEvent(content, contentSize); in ParseEventJsonFromContent()
100 bool EventEntryCreator::HasContainsInnerConds(uint8_t* content) in HasContainsInnerConds() argument
102 return eventQuery_.IsContainInnerConds(content); in HasContainsInnerConds()
105 std::shared_ptr<EventRaw::DecodedEvent> EventEntryCreator::BuildDecodedEvent(uint8_t* content, uint… in BuildDecodedEvent() argument
[all …]
Dsys_event_doc_reader.cpp124 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()
130 delete[] content; in Read()
151 uint8_t* content = nullptr; in ReadPages() local
153 if (ReadContent(&content, contentSize) != DOC_STORE_SUCCESS) { in ReadPages()
163 TryToAddEntry(content, contentSize, query, entries, num); in ReadPages()
164 delete[] content; in ReadPages()
189 int SysEventDocReader::ReadContent(uint8_t** content, uint32_t& contentSize) in ReadContent() argument
204 *content = new(std::nothrow) uint8_t[contentSize]; in ReadContent()
[all …]
/base/startup/init/services/modules/seccomp/scripts/tools/
Daudit_log_analysis.py44 content = '@allowList\n'
60 content = '{}{};all\n'.format(content, func_name)
63 content = '{}{};arm64\n'.format(content, func_name)
65 content = '{}{};arm\n'.format(content, ';arm\n'.join(
68 content = '{}{};riscv64\n'.format(content, ';riscv64\n'.join(
71 return content
74 def gen_output_file(filter_name, content): argument
78 output_file.write(content)
117 content = get_item_content(function_name_nr_table_dict, arch_nr)
118 gen_output_file(args.filter_name, content)
Dmerge_policy.py72 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 content = '{}{};riscv64\n'.format(content, ';riscv64\n'.join(
90 return content
139 content = self.get_item_content(function_name_nr_table_dict, "@priority", dict_priority)
140 content += self.get_item_content(function_name_nr_table_dict, "@allowList", dict_allow_list)
141content += self.get_item_content(function_name_nr_table_dict, "@priorityWithArgs", dict_priority_w…
142content += self.get_item_content(function_name_nr_table_dict, "@allowListWithArgs", dict_allow_lis…
[all …]
/base/startup/init/services/param/linux/
Dparam_message.c52 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/startup/init/services/param/trigger/
Dtrigger_processor.c32 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/hiviewdfx/hidumper/frameworks/native/src/executor/
Dzip_output.cpp75 const char* content = line.c_str(); in Execute() local
76 uint16_t content_size = strlen(content); in Execute()
77 uint16_t size = strlen(content) + 1; // include \n in Execute()
86 CompressBigLine(content, size); in Execute()
90 if (memcpy_s(srcBuffer->content + srcBuffer->offset, in Execute()
91 MAX_COMPRESS_BUFFER_SIZE - srcBuffer->offset, content, content_size) != EOK) { in Execute()
96 srcBuffer->content[srcBuffer->offset] = '\n'; in Execute()
118 if (write(fd_, destBuffer->content, destBuffer->offset) < 0) { in CompressAndWriteToFd()
132 DumpStatus ZipOutput::CompressBigLine(const char* content, uint16_t size) in CompressBigLine() argument
134 if (!content) { in CompressBigLine()
[all …]
/base/telephony/core_service/services/network_search/src/
Doperator_name_utils.cpp73 char *content = nullptr; in ParserOperatorNameCustJson() local
78 ret = LoaderJsonFile(content, path); in ParserOperatorNameCustJson()
84 if (content == nullptr) { in ParserOperatorNameCustJson()
88 const int contentLength = strlen(content); in ParserOperatorNameCustJson()
89 const std::string rawJson(content); in ParserOperatorNameCustJson()
90 free(content); in ParserOperatorNameCustJson()
91 content = nullptr; in ParserOperatorNameCustJson()
112 int32_t OperatorNameUtils::LoaderJsonFile(char *&content, const char *path) const in LoaderJsonFile() argument
141 content = static_cast<char *>(malloc(len + 1)); in LoaderJsonFile()
142 if (content == nullptr) { in LoaderJsonFile()
[all …]
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Dstring_utils.cpp32 void StringUtils::StringSplit(const string &content, const string &split, vector<string> &result) in StringSplit() argument
34 SplitStr(content, split, result, false, false); in StringSplit()
45 bool StringUtils::IsBegin(const string &content, const string &begin) in IsBegin() argument
47 if (content.find(begin) == 0) { in IsBegin()
53 bool StringUtils::IsEnd(const string &content, const string &end) in IsEnd() argument
56 if (content.length() >= end.length()) { in IsEnd()
57 result = (0 == content.compare(content.length() - end.length(), end.length(), end)); in IsEnd()
62 bool StringUtils::IsContain(const string &content, const string &contain) in IsContain() argument
64 return IsSubStr(content, contain); in IsContain()
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/utils/
Dlog.ts23 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/hiviewdfx/hiview/base/event_store/utility/writer/
Dsys_event_doc_writer.cpp174 uint8_t* content = nullptr; in WriteContent() local
175 if (int ret = BuildContent(sysEvent, &content, contentSize); ret != DOC_STORE_SUCCESS) { in WriteContent()
179 out_.write(reinterpret_cast<char*>(content), contentSize); in WriteContent()
180 delete[] content; in WriteContent()
190 uint8_t* content = new(std::nothrow) uint8_t[contentSize]; in BuildContent() local
191 if (content == nullptr) { in BuildContent()
195 if (memcpy_s(content, contentSize, &contentSize, BLOCK_SIZE) != EOK) { in BuildContent()
197 delete[] content; in BuildContent()
203 …if (memcpy_s(content + offset, contentSize - offset, &contentHeader, DOC_EVENT_HEADER_SIZE) != EOK… in BuildContent()
205 delete[] content; in BuildContent()
[all …]

12345678910>>...17