/test/xts/device_attest/services/core/attest/ |
H A D | attest_service_auth.c | 149 static int32_t ParseVersionIdResult(const cJSON* json, SoftwareResultDetail* softwareResultDetail) in ParseVersionIdResult() argument 151 if ((json == NULL) || (softwareResultDetail == NULL)) { in ParseVersionIdResult() 155 cJSON* item = cJSON_GetObjectItem(json, "versionIdResult"); in ParseVersionIdResult() 164 static int32_t ParsePatchLevelResult(const cJSON* json, SoftwareResultDetail* softwareResultDetail) in ParsePatchLevelResult() argument 166 if ((json == NULL) || (softwareResultDetail == NULL)) { in ParsePatchLevelResult() 170 cJSON* item = cJSON_GetObjectItem(json, "patchLevelResult"); in ParsePatchLevelResult() 179 static int32_t ParseRootHashResult(const cJSON* json, SoftwareResultDetail* softwareResultDetail) in ParseRootHashResult() argument 181 if ((json == NULL) || (softwareResultDetail == NULL)) { in ParseRootHashResult() 185 cJSON* item = cJSON_GetObjectItem(json, "rootHashResult"); in ParseRootHashResult() 194 static int32_t ParsePcidResult(const cJSON* json, SoftwareResultDetai argument 216 cJSON* json = cJSON_GetObjectItem(root, "softwareResultDetail"); ParseSoftwareResultDetail() local 687 ParseErrcode(const cJSON* json, AuthResult* authResult) ParseErrcode() argument 705 ParseAuthStats(const cJSON* json, AuthResult* authResult) ParseAuthStats() argument 737 ParseTicket(const cJSON* json, AuthResult* authResult) ParseTicket() argument 769 ParseTokenValue(const cJSON* json, AuthResult* authResult) ParseTokenValue() argument 801 ParseTokenId(const cJSON* json, AuthResult* authResult) ParseTokenId() argument 896 ParseAuthResultRespImpl(cJSON *json, AuthResult* authResult, AuthStatus* authStatus) ParseAuthResultRespImpl() argument 944 cJSON* json = cJSON_Parse(msg); ParseAuthResultResp() local [all...] |
/test/xts/device_attest_lite/services/core/attest/ |
H A D | attest_service_auth.c | 168 static int32_t ParseVersionIdResult(const cJSON* json, SoftwareResultDetail* softwareResultDetail) in ParseVersionIdResult() argument 170 if ((json == NULL) || (softwareResultDetail == NULL)) { in ParseVersionIdResult() 174 cJSON* item = cJSON_GetObjectItem(json, "versionIdResult"); in ParseVersionIdResult() 183 static int32_t ParsePatchLevelResult(const cJSON* json, SoftwareResultDetail* softwareResultDetail) in ParsePatchLevelResult() argument 185 if ((json == NULL) || (softwareResultDetail == NULL)) { in ParsePatchLevelResult() 189 cJSON* item = cJSON_GetObjectItem(json, "patchLevelResult"); in ParsePatchLevelResult() 198 static int32_t ParseRootHashResult(const cJSON* json, SoftwareResultDetail* softwareResultDetail) in ParseRootHashResult() argument 200 if ((json == NULL) || (softwareResultDetail == NULL)) { in ParseRootHashResult() 204 cJSON* item = cJSON_GetObjectItem(json, "rootHashResult"); in ParseRootHashResult() 213 static int32_t ParsePcidResult(const cJSON* json, SoftwareResultDetai argument 235 cJSON* json = cJSON_GetObjectItem(root, "softwareResultDetail"); ParseSoftwareResultDetail() local 707 ParseErrcode(const cJSON* json, AuthResult* authResult) ParseErrcode() argument 725 ParseAuthStats(const cJSON* json, AuthResult* authResult) ParseAuthStats() argument 757 ParseTicket(const cJSON* json, AuthResult* authResult) ParseTicket() argument 789 ParseTokenValue(const cJSON* json, AuthResult* authResult) ParseTokenValue() argument 821 ParseTokenId(const cJSON* json, AuthResult* authResult) ParseTokenId() argument 916 ParseAuthResultRespImpl(cJSON *json, AuthResult* authResult, AuthStatus* authStatus) ParseAuthResultRespImpl() argument 964 cJSON* json = cJSON_Parse(msg); ParseAuthResultResp() local [all...] |
/test/xts/tools/lite/ |
H A D | buildFun.sh | 60 mkdir -p ${DIST_DIR}/json 66 module_list_file=$suite_out_dir/module_info.json 70 python test/xts/tools/lite/build/utils.py --method_name record_testmodule_info --arguments build_target_name=${suite_module_name}#module_name=${suite_module_name}#subsystem_name=${subsystem_name}#suite_out_dir=${DIST_DIR}/json#same_file=True 80 cp -rf ${DIST_DIR}/json/module_info.json ${suite_out_dir} 95 mv ${xts_root_dir_common}/testcases/test_component.json $xts_root_dir_common/test_component.json 100 python test/xts/tools/lite/build/utils.py --method_name generate_allinone_testjson_by_template --arguments tmpl_file=${BASE_HOME}/test/xts/acts/build_lite/Test.tmpl#module_name=OHOS_Image.fls#product_name=${PRODUCT}#config_file=${xts_root_dir_common}/testcases/${PRODUCT}/OHOS_Image.json 109 python test/xts/tools/lite/build/utils.py --method_name generate_allinone_testjson_by_template --arguments tmpl_file=${BASE_HOME}/test/xts/acts/build_lite/Test.tmpl#module_name=OHOS_Image.bin#product_name=${PRODUCT}#config_file=${xts_root_dir_common}/testcases/${PRODUCT}/OHOS_Image.json 111 mv $xts_root_dir_common/test_component.json [all...] |
/test/testfwk/arkxtest/uitest/record/ |
H A D | ui_record.cpp | 23 using nlohmann::json; 143 auto json = snapshootKeyTracker.WriteSingleData(info, outFile, csv_lock); in OnInputEvent() local 144 DoAbcCallBack(json); in OnInputEvent() 153 // cout打印 + record.csv保存json in OnInputEvent() 155 auto json = snapshootKeyTracker.WriteCombinationData(outFile, csv_lock); in OnInputEvent() local 156 DoAbcCallBack(json); in OnInputEvent() 162 void InputEventCallback::DoAbcCallBack(nlohmann::json jsonData) const in DoAbcCallBack() 165 auto data = nlohmann::json(); in DoAbcCallBack() 237 auto data = nlohmann::json(); in FindWidgetsandWriteData() 243 auto layout = nlohmann::json(); in FindWidgetsandWriteData() 249 auto json = pointerTracker_.WriteData(info, outFile, csv_lock); FindWidgetsandWriteData() local [all...] |
H A D | pointer_info.cpp | 32 nlohmann::json FingerInfo::WriteData() in WriteData() 34 auto data = nlohmann::json(); in WriteData() 105 nlohmann::json PointerInfo::WriteData() in WriteData() 107 auto data = nlohmann::json(); in WriteData() 122 auto fingerjson = nlohmann::json(); in WriteData()
|
H A D | ui_record.h | 73 void DoAbcCallBack(nlohmann::json jsonData) const; 74 void SetAbcCallBack(std::function<void(nlohmann::json)> handler) in SetAbcCallBack() 104 std::function<void(nlohmann::json)> abcCallBack = nullptr; 147 int32_t UiDriverRecordStart(std::function<void(nlohmann::json)> handler, std::string modeOpt);
|
H A D | keyevent_tracker.cpp | 104 nlohmann::json KeyeventTracker::WriteCombinationData(ofstream& outFile, shared_ptr<mutex> &csv_lock) in WriteCombinationData() 106 auto data = nlohmann::json(); in WriteCombinationData() 127 nlohmann::json KeyeventTracker::WriteSingleData(KeyEventInfo &info, ofstream &outFile, shared_ptr<mutex> &csv_lock) in WriteSingleData() 130 auto data = nlohmann::json(); in WriteSingleData()
|
H A D | pointer_info.h | 22 #include <nlohmann/json.hpp> 38 nlohmann::json WriteData(); 103 // json 104 nlohmann::json WriteData();
|
H A D | keyevent_tracker.h | 25 #include <nlohmann/json.hpp> 114 nlohmann::json WriteCombinationData(ofstream &outFile, shared_ptr<mutex> &csv_lock); 115 nlohmann::json WriteSingleData(KeyEventInfo &info, ofstream &outFile, shared_ptr<mutex> &csv_lock);
|
/test/testfwk/arkxtest/jsunit/src/module/report/ |
H A D | ReportExtend.js | 121 function handleChild(json, key, hasChildren, childrenStr) { 122 if (json[key].length > 0) { 124 for (let child of json[key]) { 130 function json2xml(json) { 135 for (let key in json) { 137 tagName = json[key]; 139 handleChild(json, key, hasChildren, childrenStr); 141 attrStr += ` ${key}="${json[key]}"`;
|
/test/testfwk/developer_test/src/core/build/ |
H A D | build_lite_testcases.sh | 113 mkdir -p ${DIST_DIR}/json 122 module_list_file=$suite_out_dir/module_info.json 128 python test/xts/tools/lite/build/utils.py --method_name record_testmodule_info --arguments build_target_name=${suite_module_name}#module_name=${suite_module_name}#subsystem_name=${subsystem_name}#suite_out_dir=${DIST_DIR}/json#same_file=True 140 cp -rf ${DIST_DIR}/json/module_info.json ${suite_out_dir} 148 mv ${tdd_root_dir}/testcases/module_info.json ${out_dir}/test/ 149 mv ${tdd_root_dir}/testcases/test_component.json ${out_dir}/test/
|
/test/testfwk/arkxtest/uitest/core/ |
H A D | dump_handler.cpp | 16 #include "json.hpp" 56 static void DFSMarshalWidget(std::vector<Widget> &allWidget, int index, nlohmann::json &dom, in DFSMarshalWidget() 59 auto attrData = json(); in DFSMarshalWidget() 61 auto childrenData = json::array(); in DFSMarshalWidget() 82 auto childData = json(); in DFSMarshalWidget() 91 void DumpHandler::AddExtraAttrs(nlohmann::json &root, const map<int32_t, string_view> &elementTrees, size_t index) in AddExtraAttrs() 102 auto extraAttrs = json(); in AddExtraAttrs() 131 void DumpHandler::DumpWindowInfoToJson(vector<Widget> &allWidget, nlohmann::json &root) in DumpWindowInfoToJson()
|
H A D | frontend_api_handler.cpp | 69 json uiElementInfo; 300 json &value = out.resultValue_; in ApiMapPost() 408 // catch possible json-parsing error in Call() 434 /** Check if the json value represents and illegal data of expected type.*/ 435 static void CheckCallArgType(string_view expect, const json &value, bool isDefAgc, ApiCallErr &error) in CheckCallArgType() 475 // check json property value type recursive in CheckCallArgType() 734 auto filterJson = ReadCallArg<json>(in, INDEX_ZERO); in RegisterUiDriverWindowFinder() 795 auto null = json(); in RegisterUiDriverMiscMethods1() 796 auto rectJson = ReadCallArg<json>(in, INDEX_ONE, null); in RegisterUiDriverMiscMethods1() 848 auto pointJson = ReadCallArg<json>(i in RegisterUiDriverMiscMethods2() [all...] |
H A D | ui_driver.cpp | 108 void UiDriver::DumpWindowsInfo(bool listWindows, Rect& mergeBounds, nlohmann::json& childDom) in DumpWindowsInfo() 123 nlohmann::json child = nlohmann::json(); in DumpWindowsInfo() 141 void UiDriver::DumpUiHierarchy(nlohmann::json &out, bool listWindows, bool addExternAttr, ApiCallErr &error) in DumpUiHierarchy() 147 nlohmann::json childDom = nlohmann::json::array(); in DumpUiHierarchy() 153 nlohmann::json attrData = nlohmann::json(); in DumpUiHierarchy()
|
/test/testfwk/developer_test/local_coverage/resident_service/ |
H A D | init_gcov.py | 22 import json namespace 57 json_data = json.load(fp) 67 json_str = json.dumps(json_data, indent=2) 100 json_data = json.load(fp) 108 json_str = json.dumps(json_data, indent=4) 149 修改foundation.json文件,删去拆分的进程相关 152 :param origin_json: 原foundation.json 153 :return: 修改后foundation.json路径 158 f_dict = json.load(f) 166 new_json = os.path.join(config_path, 'foundation.json') [all...] |
/test/testfwk/arkxtest/uitest/addon/ |
H A D | extension_executor.cpp | 108 json errorJson; \
111 json replyJson; \
134 auto message = json::parse(in.data, nullptr, false);
in CallThroughMessage() 135 CALL_THROUGH_CHECK(!message.is_discarded(), "Illegal messsage, parse json failed", ERR_BAD_ARG, true, ptr);
in CallThroughMessage() 155 json result;
in CallThroughMessage() 164 nlohmann::json msgJson;
in SetCallbackMessageHandler() 210 nlohmann::json options = nullptr;
in StartCapture() 212 options = nlohmann::json::parse(optJson.data, nullptr, false);
in StartCapture() 221 nlohmann::json tree;
in StartCapture() 231 nlohmann::json va in StartCapture() [all...] |
/test/testfwk/arkxtest/uitest/cj/ |
H A D | ui_event_observer_impl.cpp | 20 #include "json.hpp" 70 nlohmann::json elmentInfo; 115 auto json = nlohmann::json::parse(str); in CreateElementInfo() local 116 string bundleName = json["bundleName"]; in CreateElementInfo() 117 string type = json["type"]; in CreateElementInfo() 118 string text = json["text"]; in CreateElementInfo()
|
/test/xts/acts/ |
H A D | get_dependency.py | 18 import json namespace 44 if file == 'bundle.json': 50 json_data = json.load(f) 80 with open(os.path.join(home, path, "bundle.json"), 'r') as file: 81 data = json.load(file) 109 array_str = json.dumps(list(depends_list)) 121 json.dump(depends_list, f, indent=4)
|
/test/xts/acts/pcs/pcs_py/ |
H A D | PermissionUtils.py | 17 import json namespace 33 with open('./resource/pcs/module.json', 'r') as f: 34 permissionData = json.load(f)['module']['definePermissions'] 44 permissionBundleInfoObj = json.loads(permissionBundleInfo)
|
/test/testfwk/developer_test/local_coverage/automate_execute/ |
H A D | build_part.py | 19 import json namespace 27 developer_path, "local_coverage/all_subsystem_config.json" 32 system_text_json = json.load(system_text) 36 print(f"Error: {part_str} not in all_subsystem_config.json") 44 repo_config_path = os.path.join(code_path, ".repo/manifests.git/.repo_config.json") 47 text_json = json.load(fp) 77 bundle_json_path = os.path.join(code_path, part_json.get(part_str, {}).get("path", [""])[0], "bundle.json") 80 bundle_json = json.load(bundle_json_text) 103 print(f"{bundle_json_path}不存在,不能获取编译参数,请检查该部件的bundle.json文件!")
|
/test/testfwk/developer_test/src/core/testcase/ |
H A D | testcase_manager.py | 21 import json
namespace 23 from json import JSONDecodeError
103 json_file_path = hap_file_path.replace(".hap", ".json")
106 data_dic = json.load(json_file)
146 json_file_path = hap_file_path.replace(".hap", ".json")
149 data_dic = json.load(json_file)
162 data_dic = json.load(json_file)
302 data_dic = json.load(json_file)
312 LOG.error("%s is not in part deps info json." % test_part)
|
/test/xts/tools/lite/build/ |
H A D | utils.py | 22 import json namespace 215 module_info_data = json.load(module_file) 235 # parses product json to obtain all the subsystem name 239 product_info = json.load(product_info) 241 print("NO json object could be decoded.") 304 module_info_list_file = os.path.join(suite_out_dir, 'module_info.json') 307 '{}_module_info.json'.format 313 module_info_data = json.load(module_file) 315 print("NO json object could be decoded but continue") 320 json [all...] |
/test/testfwk/developer_test/local_coverage/restore_comment/ |
H A D | build_before_generate.py | 21 import json namespace 88 data_dict = json.load(fp) 107 system_text_json = json.load(system_text) 111 print("Error: part not in all_subsystem_config.json") 112 new_json = json.dumps(new_json_text, indent=4) 145 "test/testfwk/developer_test/local_coverage/all_subsystem_config.json") 148 "test/testfwk/developer_test/local_coverage/restore_comment/part_config.json")
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | mock_element_node_iterator.h | 21 #include "json.hpp" 23 using json = nlohmann::json; 61 static MockAccessibilityElementInfo WrapperJsonToElement(const json &obj) in WrapperJsonToElement() 113 static void DFSVisitJson(std::vector<MockAccessibilityElementInfo> &eles, const json &obj, string hierarchy) in DFSVisitJson() 131 auto data = json::parse(domStr); in ConstructIteratorByJson()
|
/test/testfwk/developer_test/local_coverage/ |
H A D | coverage_tools.py | 22 import json namespace 36 developer_path, "local_coverage/all_subsystem_config.json" 39 developer_path, "local_coverage/code_coverage/subsystem_config.json" 45 system_text_json = json.load(system_text) 49 print("Error: part not in all_subsystem_config.json") 51 new_json = json.dumps(new_json_text, indent=4) 122 root_path, "out", product_name, "build_configs/infos_for_testfwk.json" 126 system_json = json.load(json_text)
|