/test/xts/device_attest/services/core/utils/ |
H A D | attest_utils_json.c | 33 cJSON* root = cJSON_Parse(rootStr); in GetObjectItemValueObject() local 34 if (root == NULL) { in GetObjectItemValueObject() 37 char *valueString = cJSON_PrintUnformatted(cJSON_GetObjectItem(root, key)); in GetObjectItemValueObject() 38 cJSON_Delete(root); in GetObjectItemValueObject() 51 cJSON* root = cJSON_Parse(rootStr); in GetObjectItemValueStr() local 52 if (root == NULL) { in GetObjectItemValueStr() 57 char *valueString = cJSON_GetStringValue(cJSON_GetObjectItem(root, key)); in GetObjectItemValueStr() 79 cJSON_Delete(root); in GetObjectItemValueStr() 89 cJSON* root = cJSON_Parse(rootStr); in GetObjectItemValueNumber() local 90 if (root in GetObjectItemValueNumber() [all...] |
/test/xts/device_attest_lite/services/core/utils/ |
H A D | attest_utils_json.c | 33 cJSON* root = cJSON_Parse(rootStr); in GetObjectItemValueObject() local 34 if (root == NULL) { in GetObjectItemValueObject() 37 char *valueString = cJSON_PrintUnformatted(cJSON_GetObjectItem(root, key)); in GetObjectItemValueObject() 38 cJSON_Delete(root); in GetObjectItemValueObject() 51 cJSON* root = cJSON_Parse(rootStr); in GetObjectItemValueStr() local 52 if (root == NULL) { in GetObjectItemValueStr() 57 char *valueString = cJSON_GetStringValue(cJSON_GetObjectItem(root, key)); in GetObjectItemValueStr() 79 cJSON_Delete(root); in GetObjectItemValueStr() 89 cJSON* root = cJSON_Parse(rootStr); in GetObjectItemValueNumber() local 90 if (root in GetObjectItemValueNumber() [all...] |
/test/xts/device_attest/services/core/attest/ |
H A D | attest_service_auth.c | 117 static int32_t ParseAuthResult(const cJSON* root, AuthStatus* authStatus) in ParseAuthResult() argument 119 if (root == NULL || authStatus == NULL) { in ParseAuthResult() 123 cJSON* item = cJSON_GetObjectItem(root, "authResult"); in ParseAuthResult() 133 static int32_t ParseSoftwareResult(const cJSON* root, AuthStatus* authStatus) in ParseSoftwareResult() argument 135 if (root == NULL || authStatus == NULL) { in ParseSoftwareResult() 139 cJSON* item = cJSON_GetObjectItem(root, "softwareResult"); in ParseSoftwareResult() 209 static int32_t ParseSoftwareResultDetail(const cJSON* root, AuthStatus* authStatus) in ParseSoftwareResultDetail() argument 211 if (root == NULL || authStatus == NULL) { in ParseSoftwareResultDetail() 216 cJSON* json = cJSON_GetObjectItem(root, "softwareResultDetail"); in ParseSoftwareResultDetail() 251 static int32_t ParseExpireTime(const cJSON* root, AuthStatu argument 266 ParseAuthType(const cJSON* root, AuthStatus* authStatus) ParseAuthType() argument 296 ParseVersionId(const cJSON* root, AuthStatus* authStatus) ParseVersionId() argument 326 IsAuthStatusValid(const cJSON* root) IsAuthStatusValid() argument 351 cJSON* root = cJSON_Parse(decodedAuthStatus); UnpackAuthStatusResp() local [all...] |
H A D | attest_service.c | 68 cJSON *root = cJSON_CreateObject(); in RecordFullLoadStatus() local 69 if (cJSON_AddNumberToObject(root, "Hour", curHour) == NULL ||\ in RecordFullLoadStatus() 70 cJSON_AddNumberToObject(root, "Number", curNumber) == NULL) { in RecordFullLoadStatus() 72 cJSON_Delete(root); in RecordFullLoadStatus() 76 char *data = cJSON_PrintUnformatted(root); in RecordFullLoadStatus() 77 cJSON_Delete(root); in RecordFullLoadStatus()
|
/test/xts/device_attest_lite/services/core/attest/ |
H A D | attest_service_auth.c | 136 static int32_t ParseAuthResult(const cJSON* root, AuthStatus* authStatus) in ParseAuthResult() argument 138 if (root == NULL || authStatus == NULL) { in ParseAuthResult() 142 cJSON* item = cJSON_GetObjectItem(root, "authResult"); in ParseAuthResult() 152 static int32_t ParseSoftwareResult(const cJSON* root, AuthStatus* authStatus) in ParseSoftwareResult() argument 154 if (root == NULL || authStatus == NULL) { in ParseSoftwareResult() 158 cJSON* item = cJSON_GetObjectItem(root, "softwareResult"); in ParseSoftwareResult() 228 static int32_t ParseSoftwareResultDetail(const cJSON* root, AuthStatus* authStatus) in ParseSoftwareResultDetail() argument 230 if (root == NULL || authStatus == NULL) { in ParseSoftwareResultDetail() 235 cJSON* json = cJSON_GetObjectItem(root, "softwareResultDetail"); in ParseSoftwareResultDetail() 275 static int32_t ParseExpireTime(const cJSON* root, AuthStatu argument 290 ParseAuthType(const cJSON* root, AuthStatus* authStatus) ParseAuthType() argument 320 ParseVersionId(const cJSON* root, AuthStatus* authStatus) ParseVersionId() argument 350 IsAuthStatusValid(const cJSON* root) IsAuthStatusValid() argument 375 cJSON* root = cJSON_Parse(decodedAuthStatus); UnpackAuthStatusResp() local [all...] |
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | searchndk1.cpp | 388 void *root = nullptr;
in Tdelete() local 390 tsearch(&n1, &root, PodNode_cmp);
in Tdelete() 392 if (tdelete(&n1, &root, PodNode_cmp) == nullptr) {
in Tdelete() 397 if (tdelete(¬_there, &root, PodNode_cmp) == nullptr) {
in Tdelete() 425 void *root = nullptr;
in Tdestroy() local 429 tsearch(&n1, &root, NodeCmp);
in Tdestroy() 430 tsearch(&n2, &root, NodeCmp);
in Tdestroy() 431 tsearch(&n3, &root, NodeCmp);
in Tdestroy() 433 tdestroy(root, node_free);
in Tdestroy() 453 void *root in Tfind() local 475 void *root = nullptr; Tsearch() local 500 void *root = nullptr; Twalk() local [all...] |
/test/testfwk/xdevice/src/xdevice/_core/executor/ |
H A D | request.py | 71 def __init__(self, root=None, drivers=None, config=None): 72 self.root = root 145 def set_root_descriptor(self, root): 146 if not isinstance(root, Descriptor): 149 self.root = root 150 self._init_driver(root) 206 def __init__(self, uuid=None, root=None, listeners=None, config=None): 208 self.root [all...] |
H A D | scheduler.py | 524 root = Descriptor(uuid=uid, name="component", 528 root.children = find_test_descriptors(config) 529 return root 534 root = Descriptor(uuid=uid, name="testdict", 537 root.children = find_testdict_descriptors(config) 538 return root 548 root = Descriptor(uuid=uid, name=fname, 551 Scheduler._find_children_module(root, config) 553 Scheduler._find_children_default(root, config) 554 return root [all...] |
/test/testfwk/developer_test/src/core/config/ |
H A D | config_manager.py | 55 root = tree.getroot()
58 node = root.find(target_name)
75 root = tree.getroot()
76 node = root.find(target_name)
111 root = tree.getroot()
112 for child in root:
148 root = tree.getroot()
149 for child in root:
194 root = tree.getroot()
195 for child in root [all...] |
/test/xts/device_attest/services/core/adapter/ |
H A D | attest_adapter_mock.c | 32 static int32_t GetJsonOjectStringStub(const char *root, const char *key, char **keyJsonStr) in GetJsonOjectStringStub() argument 34 if (root == NULL || key == NULL || keyJsonStr == NULL) { in GetJsonOjectStringStub() 43 ret = GetObjectItemValueObject(jsonStr, root, &rootJsonStr); in GetJsonOjectStringStub() 59 const char* root = g_actionJsonStr[actionType]; in SendChallMsgStub() local 60 if (root == NULL) { in SendChallMsgStub() 63 int32_t ret = GetJsonOjectStringStub(root, ATTEST_MOCK_L2_CHALLENGE, respMsg); in SendChallMsgStub() 76 const char* root = g_actionJsonStr[actionType]; in SendDevAttestStub() local 77 if (root == NULL) { in SendDevAttestStub() 80 int32_t ret = GetJsonOjectStringStub(root, ATTEST_MOCK_L2_RESPONSE, respMsg); in SendDevAttestStub()
|
/test/xts/device_attest_lite/services/core/adapter/ |
H A D | attest_adapter_mock.c | 32 static int32_t GetJsonOjectStringStub(const char *root, const char *key, char **keyJsonStr) in GetJsonOjectStringStub() argument 34 if (root == NULL || key == NULL || keyJsonStr == NULL) { in GetJsonOjectStringStub() 43 ret = GetObjectItemValueObject(jsonStr, root, &rootJsonStr); in GetJsonOjectStringStub() 59 const char* root = g_actionJsonStr[actionType]; in SendChallMsgStub() local 60 if (root == NULL) { in SendChallMsgStub() 63 int32_t ret = GetJsonOjectStringStub(root, ATTEST_MOCK_L2_CHALLENGE, respMsg); in SendChallMsgStub() 76 const char* root = g_actionJsonStr[actionType]; in SendDevAttestStub() local 77 if (root == NULL) { in SendDevAttestStub() 80 int32_t ret = GetJsonOjectStringStub(root, ATTEST_MOCK_L2_RESPONSE, respMsg); in SendDevAttestStub()
|
/test/xts/acts/multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/ |
H A D | image_pixel_map_imgndk_test.cpp | 56 static bool parseWidth(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) in parseWidth() argument 59 if (napi_get_named_property(env, root, "width", &napiWidth) != napi_ok || napiWidth == nullptr) { in parseWidth() 65 static bool parseHeight(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) in parseHeight() argument 68 if (napi_get_named_property(env, root, "height", &napiHeight) != napi_ok || napiHeight == nullptr) { in parseHeight() 74 static bool parsePixelFormat(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) in parsePixelFormat() argument 77 if (napi_get_named_property(env, root, "pixelFormat", &napiPixelFormat) != napi_ok in parsePixelFormat() 84 static bool parseEditable(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) in parseEditable() argument 87 if (napi_get_named_property(env, root, "editable", &napiEditable) != napi_ok in parseEditable() 94 static bool parseAlphaType(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) in parseAlphaType() argument 97 if (napi_get_named_property(env, root, "alphaTyp in parseAlphaType() 104 parseScaleMode(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) parseScaleMode() argument 114 parseCreateOptions(napi_env env, napi_value root, struct OhosPixelMapCreateOps* opts) parseCreateOptions() argument [all...] |
/test/testfwk/xdevice/plugins/devicetest/driver/ |
H A D | windows.py | 120 if str(request.root.source.source_file).endswith(PYD_SUFFIX) or \ 121 str(request.root.source.source_file).endswith(PY_SUFFIX): 122 test_list = [request.root.source.source_file] 176 report_name = request.root.source.test_name if \ 177 not request.root.source.test_name.startswith("{") \ 194 if request.root.source.source_file.strip(): 196 request.root.source.test_name) 233 for root, _, files in os.walk(module_path): 236 test_list.append(os.path.join(root, _file))
|
H A D | device_test.py | 62 for root, _, files in os.walk(module_path): 66 test_list.append(os.path.join(root, _file)) 175 if str(request.root.source.source_file).endswith(PYD_SUFFIX) or \ 176 str(request.root.source.source_file).endswith(PY_SUFFIX): 177 test_list = [request.root.source.source_file] 253 report_name = request.root.source.test_name if \ 254 not request.root.source.test_name.startswith("{") \ 404 report_name = request.root.source.test_name if \ 405 not request.root.source.test_name.startswith("{") \
|
/test/testfwk/developer_test/src/core/driver/ |
H A D | lite_driver.py | 111 request.root.source.source_file) 196 test_case = request.root.source.source_file 248 test_case = request.root.source.source_file 350 config_file = request.root.source.config_file.strip() 355 source = request.root.source.source_string.strip() 364 if request.root.source.test_name.startswith("{"): 368 request.root.source.test_name)[0] 443 source_file=request.root.source.source_file.strip()) 474 config_file = request.root.source.config_file 475 suite_file = request.root [all...] |
/test/testfwk/arkxtest/uitest/core/ |
H A D | dump_handler.cpp | 91 void DumpHandler::AddExtraAttrs(nlohmann::json &root, const map<int32_t, string_view> &elementTrees, size_t index) in AddExtraAttrs() argument 93 auto windowIdValue = root["attributes"]["hostWindowId"].dump(); in AddExtraAttrs() 98 auto accessibilityIdInfo = root["attributes"]["accessibilityId"].dump(); in AddExtraAttrs() 121 root["extraAttrs"] = extraAttrs; in AddExtraAttrs() 123 auto &childrenData = root["children"]; in AddExtraAttrs() 131 void DumpHandler::DumpWindowInfoToJson(vector<Widget> &allWidget, nlohmann::json &root) in DumpWindowInfoToJson() argument 148 DFSMarshalWidget(allWidget, 0, root, cache); in DumpWindowInfoToJson()
|
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/ |
H A D | image_packing_test.cpp | 61 static bool GetInt32Property(napi_env env, napi_value root, const char* utf8name, int32_t* res) in GetInt32Property() argument 64 auto status = napi_get_named_property(env, root, utf8name, &property); in GetInt32Property() 72 static bool GetUint32Property(napi_env env, napi_value root, const char* utf8name, uint32_t* res) in GetUint32Property() argument 75 auto status = napi_get_named_property(env, root, utf8name, &property); in GetUint32Property() 83 static bool GetStringProperty(napi_env env, napi_value root, in GetStringProperty() argument 87 auto status = napi_get_named_property(env, root, utf8name, &value); in GetStringProperty()
|
/test/testfwk/developer_test/local_coverage/resident_service/ |
H A D | init_gcov.py | 132 root = tree.getroot() 133 loadlibs = root.find("loadlibs") 136 for sa in root.findall('systemability'): 138 root.remove(sa) 215 root = tree.getroot() 216 loadlibs = root.find("loadlibs") 219 for sa in root.findall('systemability'): 221 root.remove(sa)
|
H A D | pull_service_gcda.py | 55 resident_service_path, services_str, root, device_port): 75 developer_path, services_str, root, device_port) 116 component_gcda_dict, developer_path, resident_service_path, root, port_nu): 130 developer_path, resident_service_path, services_str, root, port_nu)
|
/test/testfwk/developer_test/local_coverage/code_coverage/ |
H A D | multiprocess_code_coverage.py | 141 for root, dirs, files in os.walk(topdir): 142 if is_filterout_dir(topdir, root): 143 shutil.rmtree(root) 176 for root, dirs, files in os.walk(dir_name): 177 get_gcno_files(cov_path, root) 269 for root, dirs, files in os.walk(cov_path): 282 for root, dirs, files in os.walk(single_test_info_path): 286 single_test_info_path, root, file
|
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | result_reporter.py | 472 root = self.data_helper.parse_data_report(data_report) 473 self._parse_devices(root) 475 module_name = self._get_module_name(data_report, root) 476 total = int(root.get(ReportConstant.tests, 0)) 481 for child in root: 527 def _get_module_name(cls, data_report, root): 532 module_name = root.get(ReportConstant.name, 582 for root, _, files in os.walk(result_path): 586 module_name = self._find_module_name(result_path, root) 587 data_reports.append((os.path.join(root, file_nam [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
H A D | ltp_posix_driver.py | 59 config_file = request.root.source.config_file 60 suite_file = request.root.source.source_file 63 raise ParamError(ErrorMessage.Common.Code_0301001(request.root.source.source_string)) 155 parser_instance.suite_name = request.root.source. \
|
/test/xts/acts/applications/kitframework_ipcamera/ |
H A D | kitfwk_oem_api_test.cpp | 107 cJSON* root = cJSON_Parse(kitInfoMsg);
in HWTEST_F() local 110 ASSERT_NE(root, nullptr) << "Invalid json format!" << "\n";
in HWTEST_F() 112 cJSON* kitInfoArray = cJSON_GetObjectItem(root, KIT_INFO_JSON_KEY);
in HWTEST_F() 114 cJSON_Delete(root);
in HWTEST_F()
|
/test/ostest/wukong/component_event/src/ |
H A D | tree_manager.cpp | 256 auto root = std::make_shared<OHOS::Accessibility::AccessibilityElementInfo>(); in UpdateComponentInfo() local 260 // Get root AccessibilityElementInfo from Accessibility, in UpdateComponentInfo() 261 auto bResult = aacPtr->GetRoot(*(root.get())); in UpdateComponentInfo() 263 ERROR_LOG_STR("Accessibility Ability get root element info failed! ErrCode : (%d) ", bResult); in UpdateComponentInfo() 269 // save root AccessibilityElementInfo. in UpdateComponentInfo() 270 newElementInfoList_.push_back(root); in UpdateComponentInfo() 272 DEBUG_LOG_STR("New Element Info count (%d), Type (%s)", root->GetChildCount(), in UpdateComponentInfo() 273 root->GetComponentType().c_str()); in UpdateComponentInfo() 280 auto cResult = RecursGetChildElementInfo(root, newComponentNode_); in UpdateComponentInfo()
|
/test/xts/acts/demo/sectest/poc_patch_scan/2022-09/OpenHarmony-SA-2022-0901/ |
H A D | poc.cpp | 56 cJSON *root = cJSON_Parse(json_string); // cJSON_Parse方法解析json数据 in main() local 57 if (root == NULL) in main()
|