Home
last modified time | relevance | path

Searched refs:builder (Results 1 – 25 of 33) sorted by relevance

12

/base/useriam/user_auth_framework/test/unittest/services/src/
Dschedule_node_test.cpp51 auto builder = ScheduleNode::Builder::New(nullptr, nullptr); variable
52 EXPECT_EQ(builder, nullptr);
59 auto builder = ScheduleNode::Builder::New(faceCollector, faceCollector); variable
60 EXPECT_EQ(builder, nullptr);
64 auto builder = ScheduleNode::Builder::New(faceVerifier, faceVerifier); variable
65 EXPECT_EQ(builder, nullptr);
70 auto builder = ScheduleNode::Builder::New(faceAllInOne, faceAllInOne); variable
71 ASSERT_NE(builder, nullptr);
72 auto scheduleNode = builder->Build();
82 auto builder = ScheduleNode::Builder::New(faceVerifier, faceAllInOne); variable
[all …]
/base/hiviewdfx/hiview/plugins/freeze_detector/
Dwatch_point.cpp27 WatchPoint::WatchPoint(const WatchPoint::Builder& builder) in WatchPoint() argument
28 : seq_(builder.seq_), in WatchPoint()
29 timestamp_(builder.timestamp_), in WatchPoint()
30 pid_(builder.pid_), in WatchPoint()
31 uid_(builder.uid_), in WatchPoint()
32 tid_(builder.tid_), in WatchPoint()
33 domain_(builder.domain_), in WatchPoint()
34 stringId_(builder.stringId_), in WatchPoint()
35 msg_(builder.msg_), in WatchPoint()
36 packageName_(builder.packageName_), in WatchPoint()
[all …]
Dwatch_point.h59 explicit WatchPoint(const WatchPoint::Builder& builder);
/base/useriam/user_auth_framework/services/core/src/
Dschedule_node_impl.cpp164 auto builder = FiniteStateMachine::Builder::New(GetDescription(), S_INIT); in MakeFiniteStateMachine() local
165 if (builder == nullptr) { in MakeFiniteStateMachine()
169 builder->MakeTransition(S_INIT, E_START_AUTH, S_VERIFY_STARING, in MakeFiniteStateMachine()
173 builder->MakeTransition(S_VERIFY_STARING, E_VERIFY_STARTED_SUCCESS, S_COLLECT_STARING, in MakeFiniteStateMachine()
175 builder->MakeTransition(S_VERIFY_STARING, E_VERIFY_STARTED_FAILED, S_END, in MakeFiniteStateMachine()
177 builder->MakeTransition(S_VERIFY_STARING, E_SCHEDULE_RESULT_RECEIVED, S_END); in MakeFiniteStateMachine()
178 builder->MakeTransition(S_VERIFY_STARING, E_STOP_AUTH, S_END); in MakeFiniteStateMachine()
179 builder->MakeTransition(S_VERIFY_STARING, E_TIME_OUT, S_END); in MakeFiniteStateMachine()
182 builder->MakeTransition(S_COLLECT_STARING, E_COLLECT_STARTED_SUCCESS, S_AUTH_PROCESSING); in MakeFiniteStateMachine()
183 builder->MakeTransition(S_COLLECT_STARING, E_SCHEDULE_RESULT_RECEIVED, S_END); in MakeFiniteStateMachine()
[all …]
Dschedule_node_helper.cpp67 auto builder = ScheduleNode::Builder::New(collector, verifier); in ScheduleInfoToScheduleNode() local
68 if (builder == nullptr) { in ScheduleInfoToScheduleNode()
73 builder->SetAccessTokenId(para.tokenId.value()); in ScheduleInfoToScheduleNode()
75 node = builder->SetAuthType(static_cast<AuthType>(info.authType)) in ScheduleInfoToScheduleNode()
/base/customization/enterprise_device_management/services/edm/src/utils/
Djson_serializer.cpp25 Json::CharReaderBuilder builder; in Deserialize() local
26 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize()
36 Json::StreamWriterBuilder builder; in Serialize() local
37 builder["indentation"] = " "; in Serialize()
38 jsonString = Json::writeString(builder, dataObj); in Serialize()
Dmap_string_serializer.cpp29 Json::CharReaderBuilder builder; in Deserialize() local
30 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize()
58 Json::StreamWriterBuilder builder; in Serialize() local
59 builder["indentation"] = " "; in Serialize()
60 jsonString = Json::writeString(builder, root); in Serialize()
/base/usb/usb_manager/services/native/src/
Dusb_host_manager.cpp104 Json::StreamWriterBuilder builder; in PublishCommonEvent() local
105 builder["indentation"] = ""; in PublishCommonEvent()
106 auto jsonString = Json::writeString(builder, dev.ToJson()); in PublishCommonEvent()
123 Json::StreamWriterBuilder builder; in Dump() local
124 builder["indentation"] = " "; in Dump()
126 …dprintf(fd, "usb host list info: %s\n", Json::writeString(builder, item.second->ToJson()).c_str()); in Dump()
Dusb_service_subscriber.cpp50 Json::StreamWriterBuilder builder; in PortChangedEvent() local
51 builder["indentation"] = ""; in PortChangedEvent()
52 auto jsonString = Json::writeString(builder, port); in PortChangedEvent()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_js.cpp45 NapiHiAppEventBuilder builder; in Write() local
46 asyncContext->appEventPack = builder.Build(env, params, paramNum); in Write()
47 asyncContext->result = builder.GetResult(); in Write()
48 asyncContext->callback = builder.GetCallback(); in Write()
Dnapi_hiappevent_js_v9.cpp39 NapiHiAppEventBuilder builder; in Write() local
40 auto appEventPack = builder.BuildV9(env, params, paramNum); in Write()
52 asyncContext->result = builder.GetResult(); in Write()
53 asyncContext->callback = builder.GetCallback(); in Write()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_event_test.cpp145 Json::CharReaderBuilder builder; variable
147 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
199 Json::CharReaderBuilder builder; variable
201 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
235 Json::CharReaderBuilder builder; variable
237 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
269 Json::CharReaderBuilder builder; variable
271 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader());
/base/customization/enterprise_device_management/services/edm/include/
Dipolicy_serializer.h118 Json::CharReaderBuilder builder; in Deserialize() local
119 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in Deserialize()
156 Json::StreamWriterBuilder builder; in Serialize() local
157 builder["indentation"] = " "; in Serialize()
158 jsonString = Json::writeString(builder, arrayData); in Serialize()
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dcompose_rule.cpp34 Json::CharReaderBuilder builder; in ParseComposeRule() local
35 Json::CharReaderBuilder::strictMode(&builder.settings_); in ParseComposeRule()
43 bool ret = parseFromStream(builder, fin, &root, &errs); in ParseComposeRule()
Dextract_rule.cpp33 Json::CharReaderBuilder builder; in ParseExtractRule() local
34 Json::CharReaderBuilder::strictMode(&builder.settings_); in ParseExtractRule()
42 bool ret = parseFromStream(builder, fin, &root, &errs); in ParseExtractRule()
/base/hiviewdfx/hiview/base/event_report/event/
Dlogger_event.cpp99 Json::StreamWriterBuilder builder; in ToJsonString() local
100 builder["indentation"] = ""; in ToJsonString()
101 std::unique_ptr<Json::StreamWriter> jsonWriter(builder.newStreamWriter()); in ToJsonString()
/base/time/time_service/services/time/src/
Dntp_update_time.cpp224 Json::CharReaderBuilder builder; in GetAutoTimeInfoFromFile() local
225 builder["collectComments"] = true; in GetAutoTimeInfoFromFile()
227 if (!parseFromStream(builder, ifs, &jsonValue, &errs)) { in GetAutoTimeInfoFromFile()
250 Json::StreamWriterBuilder builder; in SaveAutoTimeInfoToFile() local
251 const std::string json_file = Json::writeString(builder, jsonValue); in SaveAutoTimeInfoToFile()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dsys_event_service_ohos.cpp332 bool SysEventServiceOhos::BuildEventQuery(std::shared_ptr<EventQueryWrapperBuilder> builder, in BuildEventQuery() argument
335 if (builder == nullptr) { in BuildEventQuery()
342 builder->Append(eventType); in BuildEventQuery()
346 return !any_of(rules.cbegin(), rules.cend(), [this, callingUid, &builder] (auto& rule) { in BuildEventQuery()
352 [this, callingUid, &builder, &rule] (auto& eventName) { in BuildEventQuery()
368 builder->Append(rule.domain, eventName, eventType, rule.condition); in BuildEventQuery()
372 builder->Append(rule.domain, eventName, rule.eventType, rule.condition); in BuildEventQuery()
376 builder->Append(rule.domain, eventName, type, rule.condition); in BuildEventQuery()
/base/customization/enterprise_device_management/services/edm/src/
Dpolicy_manager.cpp52 Json::StreamWriterBuilder builder; in ParsePolicyItems() local
53 builder["indentation"] = " "; in ParsePolicyItems()
54 std::string arrayToString = Json::writeString(builder, items[i]); in ParsePolicyItems()
169 Json::CharReaderBuilder builder; in LoadPolicy() local
170 if (!parseFromStream(builder, ifs, &policyRoot_, &errs)) { in LoadPolicy()
189 Json::StreamWriterBuilder builder; in SavePolicy() local
191 builder["indentation"] = " "; in SavePolicy()
192 const std::unique_ptr<Json::StreamWriter> writer(builder.newStreamWriter()); in SavePolicy()
313 Json::CharReaderBuilder builder; in ParseJsonString() local
314 const std::unique_ptr<Json::CharReader> reader(builder.newCharReader()); in ParseJsonString()
/base/telephony/data_storage/common/src/
Dparser_util.cpp84 Json::CharReaderBuilder builder; in ParserPdpProfileJson() local
85 Json::CharReader *reader(builder.newCharReader()); in ParserPdpProfileJson()
187 Json::CharReaderBuilder builder; in ParserOpKeyJson() local
188 Json::CharReader *reader(builder.newCharReader()); in ParserOpKeyJson()
/base/global/i18n/frameworks/intl/src/
Dlocale_config.cpp648 icu::LocaleBuilder builder = icu::LocaleBuilder().setLanguage(origin.getLanguage()). in GetRegionChangeLocale() local
650 icu::Locale temp = builder.setExtension('u', "").build(status); in GetRegionChangeLocale()
669 icu::LocaleBuilder builder = icu::LocaleBuilder().setLanguage(origin.getLanguage()). in GetMainLanguage() local
671 icu::Locale temp = builder.setExtension('u', "").build(status); in GetMainLanguage()
682 builder.setRegion(""); in GetMainLanguage()
683 temp = builder.build(status); in GetMainLanguage()
856 icu::LocaleBuilder builder = icu::LocaleBuilder().setRegion(region); in GetDisplayRegion() local
857 originLocale = builder.build(status); in GetDisplayRegion()
/base/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp123 Json::CharReaderBuilder builder; in ParseOperatorConfigFromFile() local
124 Json::CharReader *reader(builder.newCharReader()); in ParseOperatorConfigFromFile()
/base/powermgr/power_manager/power_dialog/entry/src/main/ets/pages/
DthermalLowDialog.ets65 builder: LowCustomDialog({
DthermalHighDialog.ets66 builder: HighCustomDialog({
DbatteryDialog.ets66 builder: BatteryCustomDialog({

12