/base/security/security_guard/services/config_manager/src/ |
H A D | model_cfg_marshalling.cpp | 121 JsonCfg::Unmarshal(modelId, jsonObj, MODEL_CFG_MODEL_ID_KEY);
in from_json() 127 JsonCfg::Unmarshal(modelCfg.path, jsonObj, MODEL_CFG_PATH_KEY);
in from_json() 128 JsonCfg::Unmarshal(modelCfg.format, jsonObj, MODEL_CFG_FORMAT_KEY);
in from_json() 129 JsonCfg::Unmarshal(modelCfg.startMode, jsonObj, MODEL_CFG_START_MODE_KEY);
in from_json() 132 JsonCfg::Unmarshal(preLoads, jsonObj, MODEL_CFG_PRELOAD_KEY);
in from_json() 142 JsonCfg::Unmarshal(eventList, jsonObj, MODEL_CFG_EVENT_LIST_KEY);
in from_json() 150 JsonCfg::Unmarshal(modelCfg.permissions, jsonObj, MODEL_CFG_PERMISSIONS_KEY);
in from_json() 151 JsonCfg::Unmarshal(modelCfg.dbTable, jsonObj, MODEL_CFG_DB_TABLE_KEY);
in from_json() 152 JsonCfg::Unmarshal(modelCfg.runningCntl, jsonObj, MODEL_CFG_RUNNING_CNTL_KEY);
in from_json() 153 JsonCfg::Unmarshal(modelCf in from_json() [all...] |
/base/security/security_guard/frameworks/common/json/include/ |
H A D | json_cfg.h | 34 static bool Unmarshal(uint64_t &data, nlohmann::json jsonObj, std::string key);
35 static bool Unmarshal(int64_t &data, nlohmann::json jsonObj, std::string key);
36 static bool Unmarshal(uint32_t &data, nlohmann::json jsonObj, std::string key);
37 static bool Unmarshal(int32_t &data, nlohmann::json jsonObj, std::string key);
38 static bool Unmarshal(std::string &data, nlohmann::json jsonObj, std::string key);
39 static bool Unmarshal(std::vector<int32_t> &data, nlohmann::json jsonObj, std::string key);
40 static bool Unmarshal(std::vector<std::string> &data, nlohmann::json jsonObj, std::string key);
41 static bool Unmarshal(std::vector<int64_t> &data, nlohmann::json jsonObj, std::string key);
43 static bool Unmarshal(T &data, nlohmann::json jsonObj, std::string key)
in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 51 static bool Unmarshal(st function in OHOS::Security::SecurityGuard::JsonCfg [all...] |
/base/security/security_guard/services/security_collector/src/ |
H A D | collector_cfg_marshalling.cpp | 41 SecurityGuard::JsonCfg::Unmarshal(eventList, jsonObj, EVENT_ID); in from_json() 49 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.moduleId, jsonObj, MODULE_ID); in from_json() 51 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.moduleName, jsonObj, MODULE_NAME); in from_json() 52 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.modulePath, jsonObj, MODULE_PATH); in from_json() 53 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.version, jsonObj, MODULE_VERSION); in from_json() 54 SecurityGuard::JsonCfg::Unmarshal(moduleCfg.collectorType, jsonObj, MODULE_COLLECTOR_TYPE); in from_json()
|
/base/security/security_guard/frameworks/common/json/src/ |
H A D | json_cfg.cpp | 19 bool JsonCfg::Unmarshal(uint64_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 26 bool JsonCfg::Unmarshal(int64_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 33 bool JsonCfg::Unmarshal(uint32_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 40 bool JsonCfg::Unmarshal(int32_t &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 47 bool JsonCfg::Unmarshal(std::string &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 54 bool JsonCfg::Unmarshal(std::vector<int32_t> &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 67 bool JsonCfg::Unmarshal(std::vector<std::string> &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg 80 bool JsonCfg::Unmarshal(std::vector<int64_t> &data, nlohmann::json jsonObj, std::string key) in Unmarshal() function in OHOS::Security::SecurityGuard::JsonCfg
|
/base/inputmethod/imf/services/include/ |
H A D | sys_cfg_parser.h | 33 bool Unmarshal(cJSON *node) override 44 bool Unmarshal(cJSON *node) override 54 bool Unmarshal(cJSON *node) override 69 bool Unmarshal(cJSON *node) override 81 bool Unmarshal(cJSON *node) override 94 bool Unmarshal(cJSON *node) override 104 bool Unmarshal(cJSON *node) override 115 bool Unmarshal(cJSON *node) override
|
H A D | ime_cfg_manager.h | 46 bool Unmarshal(cJSON *node) override 62 bool Unmarshal(cJSON *node) override
|
/base/inputmethod/imf/frameworks/native/inputmethod_controller/src/ |
H A D | input_method_system_ability_proxy.cpp | 52 [&agent](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, agent); }); in ConnectSystemCmd() 124 return ITypesUtil::Unmarshal(reply, *property); 131 [&inputMethodConfig](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, inputMethodConfig); }); 137 [&security](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, security); }); 153 return ITypesUtil::Unmarshal(reply, *property); 164 return ITypesUtil::Unmarshal(reply, *property); 174 [&isDefaultImeSet](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, isDefaultImeSet); }); 184 [&enableIme](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, enableIme); }); 193 [&props](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, props); }); 212 [&subProps](MessageParcel &reply) { return ITypesUtil::Unmarshal(repl [all...] |
H A D | input_data_channel_stub.cpp | 52 if (!ITypesUtil::Unmarshal(data, text)) { in InsertTextOnRemote() 62 if (!ITypesUtil::Unmarshal(data, length)) { in DeleteForwardOnRemote() 72 if (!ITypesUtil::Unmarshal(data, length)) { in DeleteBackwardOnRemote() 82 if (!ITypesUtil::Unmarshal(data, length)) { in GetTextBeforeCursorOnRemote() 94 if (!ITypesUtil::Unmarshal(data, length)) { in GetTextAfterCursorOnRemote() 113 if (!ITypesUtil::Unmarshal(data, status)) { in SendKeyboardStatusOnRemote() 124 if (!ITypesUtil::Unmarshal(data, functionKey)) { in SendFunctionKeyOnRemote() 134 if (!ITypesUtil::Unmarshal(data, direction)) { in MoveCursorOnRemote() 159 if (!ITypesUtil::Unmarshal(data, start, end)) { in SelectByRangeOnRemote() 170 if (!ITypesUtil::Unmarshal(dat in SelectByMovementOnRemote() [all...] |
H A D | input_data_channel_proxy.cpp | 51 [&text](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, text); }); 58 [&text](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, text); }); 86 [&keyType](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, keyType); }); 92 [&inputPattern](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, inputPattern); }); 98 [&index](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, index); }); 104 [&textConfig](MessageParcel &parcel) { return ITypesUtil::Unmarshal(parcel, textConfig); });
|
H A D | input_client_stub.cpp | 80 if (!ITypesUtil::Unmarshal(data, isStopInactiveClient)) { in OnInputStopOnRemote() 91 if (!ITypesUtil::Unmarshal(data, property, subProperty)) { in OnSwitchInputOnRemote() 103 if (!ITypesUtil::Unmarshal(data, status, info)) { in OnPanelStatusChangeOnRemote()
|
H A D | system_cmd_channel_stub.cpp | 45 if (!ITypesUtil::Unmarshal(data, privateCommand)) { in SendPrivateCommandOnRemote() 60 if (!ITypesUtil::Unmarshal(data, sysPanelStatus)) { in NotifyPanelStatusOnRemote()
|
H A D | keyevent_consumer_stub.cpp | 55 if (!ITypesUtil::Unmarshal(data, isConsumed)) { in OnKeyEventResultOnRemote()
|
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/ |
H A D | input_method_core_stub.cpp | 110 if (!ITypesUtil::Unmarshal(data, isBindFromClient, clientInfo, clientInfo.channel)) { in StartInputOnRemote() 111 IMSA_HILOGE("Unmarshal failed!"); in StartInputOnRemote() 121 if (!ITypesUtil::Unmarshal(data, security)) { in SecurityChangeOnRemote() 122 IMSA_HILOGE("Unmarshal failed!"); in SecurityChangeOnRemote() 137 if (!ITypesUtil::Unmarshal(data, channelObject)) { in OnConnectSystemCmdOnRemote() 150 if (!ITypesUtil::Unmarshal(data, property)) { in SetSubtypeOnRemote() 163 if (!ITypesUtil::Unmarshal(data, inputType)) { in OnSetInputTypeOnRemote() 174 if (!ITypesUtil::Unmarshal(data, channel)) { in StopInputOnRemote() 200 if (!ITypesUtil::Unmarshal(data, isForce)) { in HideKeyboardOnRemote() 211 if (!ITypesUtil::Unmarshal(dat in StopInputServiceOnRemote() [all...] |
H A D | input_method_core_proxy.cpp | 66 [&agent](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, agent); }); 99 [&isEnable](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, isEnable); }); 107 [&isShown](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, isShown); });
|
H A D | input_method_agent_proxy.cpp | 39 [&res](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, res); }); in DispatchKeyEvent() 81 [&res](MessageParcel &reply) { return ITypesUtil::Unmarshal(reply, res); }); in SendPrivateCommand()
|
H A D | input_method_agent_stub.cpp | 108 if (!ITypesUtil::Unmarshal(data, privateCommand)) { in SendPrivateCommandOnRemote() 119 if (!ITypesUtil::Unmarshal(data, attribute)) { in OnAttributeChangeOnRemote()
|
/base/inputmethod/imf/common/src/ |
H A D | itypes_util.cpp | 28 bool ITypesUtil::Unmarshal(MessageParcel &data) in Unmarshal() function in OHOS::MiscServices::ITypesUtil 135 if (!Unmarshal(data, output.name, output.id, output.label, output.labelId, output.icon, output.iconId)) { in Unmarshalling() 154 if (!Unmarshal(data, output.label, output.labelId, output.name, output.id, output.mode, output.locale, in Unmarshalling() 173 if (!Unmarshal(data, output.inputPattern, output.enterKeyType, output.inputOption, output.isTextPreviewSupported)) { in Unmarshalling() 220 if (!Unmarshal(data, output.cursorInfo.left, output.cursorInfo.top, output.cursorInfo.height, in Unmarshalling() 225 if (!Unmarshal(data, output.textSelection.oldBegin, output.textSelection.oldEnd, output.textSelection.newBegin, in Unmarshalling() 230 if (!Unmarshal(data, output.windowId)) { in Unmarshalling() 234 if (!Unmarshal(data, output.positionY)) { in Unmarshalling() 238 if (!Unmarshal(data, output.height)) { in Unmarshalling() 242 if (!Unmarshal(dat in Unmarshalling() [all...] |
/base/security/security_guard/test/unittest/config_manager/src/ |
H A D | security_guard_config_manager_test.cpp | 712 EXPECT_TRUE(JsonCfg::Unmarshal(i32Data, jsonOb, "detectMaxRecord")); in HWTEST_F() 713 EXPECT_FALSE(JsonCfg::Unmarshal(i32Data, jsonOb, "releaseTime")); in HWTEST_F() 714 EXPECT_FALSE(JsonCfg::Unmarshal(i32Data, jsonOb, "isexist")); in HWTEST_F() 716 EXPECT_TRUE(JsonCfg::Unmarshal(u32Data, jsonOb, "detectMaxRecord")); in HWTEST_F() 717 EXPECT_FALSE(JsonCfg::Unmarshal(u32Data, jsonOb, "releaseTime")); in HWTEST_F() 718 EXPECT_FALSE(JsonCfg::Unmarshal(u32Data, jsonOb, "isexist")); in HWTEST_F() 720 EXPECT_TRUE(JsonCfg::Unmarshal(data, jsonOb, "detectMaxRecord")); in HWTEST_F() 721 EXPECT_FALSE(JsonCfg::Unmarshal(data, jsonOb, "releaseTime")); in HWTEST_F() 722 EXPECT_FALSE(JsonCfg::Unmarshal(data, jsonOb, "isexist")); in HWTEST_F() 724 EXPECT_TRUE(JsonCfg::Unmarshal(dataIn in HWTEST_F() [all...] |
/base/security/security_guard/test/fuzztest/config_manager/configmanager_fuzzer/ |
H A D | config_manager_fuzzer.cpp | 129 JsonCfg::Unmarshal(uint64, jsonObj, string); in JsonConfigFuzzTest() 133 JsonCfg::Unmarshal(int64, jsonObj1, string); in JsonConfigFuzzTest() 137 JsonCfg::Unmarshal(vec32, jsonObj2, string); in JsonConfigFuzzTest() 141 JsonCfg::Unmarshal(vec64, jsonObj3, string); in JsonConfigFuzzTest()
|
/base/inputmethod/imf/services/adapter/settings_data_provider/include/ |
H A D | enable_ime_data_parser.h | 46 bool Unmarshal(cJSON *node) override 55 bool Unmarshal(cJSON *node) override 64 bool Unmarshal(cJSON *node) override
|
H A D | security_mode_parser.h | 36 bool Unmarshal(cJSON *node) override
|
/base/inputmethod/imf/services/src/ |
H A D | input_method_system_ability_stub.cpp | 75 if (!ITypesUtil::Unmarshal(data, clientInfo, client, clientInfo.channel)) { in StartInputOnRemote() 193 if (!ITypesUtil::Unmarshal(data, bundleName)) { in EnableImeOnRemote() 252 if (!ITypesUtil::Unmarshal(data, status)) { in ListInputMethodOnRemote() 268 if (!ITypesUtil::Unmarshal(data, bundleName)) { in ListInputMethodSubtypeOnRemote() 297 if (!ITypesUtil::Unmarshal(data, name, subName, trigger)) { in SwitchInputMethodOnRemote() 309 if (!ITypesUtil::Unmarshal(data, status, info)) { in PanelStatusChangeOnRemote() 322 if (!ITypesUtil::Unmarshal(data, clientInfo, client, clientInfo.channel, eventFlag)) { in UpdateListenEventFlagOnRemote() 353 if (!ITypesUtil::Unmarshal(data, type, coreObject) || coreObject == nullptr) { in UnRegisteredProxyImeOnRemote() 364 if (!ITypesUtil::Unmarshal(data, type)) { in IsInputTypeSupportedOnRemote() 375 if (!ITypesUtil::Unmarshal(dat in StartInputTypeOnRemote() [all...] |
/base/inputmethod/imf/services/json/src/ |
H A D | serializable.cpp | 27 auto ret = Unmarshal(root); in Unmarshall() 110 return value.Unmarshal(object); in GetValue()
|
/base/inputmethod/imf/common/include/ |
H A D | itypes_util.h | 36 static bool Unmarshal(MessageParcel &data); 128 static bool Unmarshal(MessageParcel &parcel, T &first, Types &...others); 188 bool ITypesUtil::Unmarshal(MessageParcel &parcel, T &first, Types &...others) in Unmarshal() function in OHOS::MiscServices::ITypesUtil 193 return Unmarshal(parcel, others...); in Unmarshal()
|
/base/inputmethod/imf/services/adapter/settings_data_provider/common/include/ |
H A D | settings_data_utils.h | 36 bool Unmarshal(cJSON *node) override
|