/test/xts/device_attest_lite/services/core/utils/ |
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 == NULL) { in GetObjectItemValueNumber() [all …]
|
/test/xts/device_attest/services/core/utils/ |
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 == NULL) { in GetObjectItemValueNumber() [all …]
|
/test/xts/device_attest/services/core/attest/ |
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, AuthStatus* authStatus) in ParseExpireTime() argument [all …]
|
/test/xts/device_attest_lite/services/core/attest/ |
D | attest_service_auth.c | 132 static int32_t ParseAuthResult(const cJSON* root, AuthStatus* authStatus) in ParseAuthResult() argument 134 if (root == NULL || authStatus == NULL) { in ParseAuthResult() 138 cJSON* item = cJSON_GetObjectItem(root, "authResult"); in ParseAuthResult() 148 static int32_t ParseSoftwareResult(const cJSON* root, AuthStatus* authStatus) in ParseSoftwareResult() argument 150 if (root == NULL || authStatus == NULL) { in ParseSoftwareResult() 154 cJSON* item = cJSON_GetObjectItem(root, "softwareResult"); in ParseSoftwareResult() 224 static int32_t ParseSoftwareResultDetail(const cJSON* root, AuthStatus* authStatus) in ParseSoftwareResultDetail() argument 226 if (root == NULL || authStatus == NULL) { in ParseSoftwareResultDetail() 231 cJSON* json = cJSON_GetObjectItem(root, "softwareResultDetail"); in ParseSoftwareResultDetail() 271 static int32_t ParseExpireTime(const cJSON* root, AuthStatus* authStatus) in ParseExpireTime() argument [all …]
|
/test/testfwk/developer_test/src/core/config/ |
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: 183 root = tree.getroot() 184 for child in root: [all …]
|
/test/testfwk/xdevice/src/xdevice/_core/executor/ |
D | request.py | 69 def __init__(self, root=None, drivers=None, config=None): argument 70 self.root = root 146 def set_root_descriptor(self, root): argument 147 if not isinstance(root, Descriptor): 150 self.root = root 151 self._init_driver(root) 215 def __init__(self, uuid=None, root=None, listeners=None, config=None): argument 217 self.root = root 261 if not hasattr(self.root, "source"): 263 return getattr(self.root, "source", "")
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
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 = nullptr; in Tfind() local [all …]
|
/test/xts/device_attest_lite/services/core/adapter/ |
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/services/core/adapter/ |
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/testfwk/arkxtest/uitest/core/ |
D | dump_handler.cpp | 73 …void DumpHandler::AddExtraAttrs(nlohmann::json &root, const map<int32_t, string_view> &elementTree… in AddExtraAttrs() argument 75 auto windowIdValue = root["attributes"]["hostWindowId"].dump(); in AddExtraAttrs() 80 auto accessibilityIdInfo = root["attributes"]["accessibilityId"].dump(); in AddExtraAttrs() 103 root["extraAttrs"] = extraAttrs; in AddExtraAttrs() 105 auto &childrenData = root["children"]; in AddExtraAttrs() 113 void DumpHandler::DumpWindowInfoToJson(vector<Widget> &allWidget, nlohmann::json &root) in DumpWindowInfoToJson() argument 128 DFSMarshalWidget(allWidget, 0, root, widgetCountMap, visitWidgetMap); in DumpWindowInfoToJson()
|
/test/xts/acts/multimedia/image/image_js_standard/imagePixelMapNDK/entry/src/main/cpp/napi/ |
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, "alphaType", &napiAlphaType) != napi_ok in parseAlphaType() [all …]
|
/test/xts/acts/demo/sectest/poc_patch_scan/2022-09/OpenHarmony-SA-2022-0901/ |
D | poc.cpp | 56 cJSON *root = cJSON_Parse(json_string); // cJSON_Parse方法解析json数据 in main() local 57 if (root == NULL) in main()
|
/test/testfwk/developer_test/src/core/driver/ |
D | lite_driver.py | 111 request.root.source.source_file) 176 test_case = request.root.source.source_file 226 test_case = request.root.source.source_file 343 config_file = request.root.source.config_file.strip() 348 source = request.root.source.source_string.strip() 357 if request.root.source.test_name.startswith("{"): 361 request.root.source.test_name)[0] 433 source_file=request.root.source.source_file.strip()) 484 config_file = request.root.source.config_file 485 suite_file = request.root.source.source_file [all …]
|
/test/testfwk/developer_test/localCoverage/codeCoverage/ |
D | mutilProcess_CodeCoverage.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) 262 for root, dirs, files in os.walk(cov_path): 275 for root, dirs, files in os.walk(single_test_info_path): 279 single_test_info_path, root, file
|
/test/testfwk/developer_test/localCoverage/resident_service/ |
D | init_gcov.py | 129 root = tree.getroot() 130 loadlibs = root.find("loadlibs") 133 for sa in root.findall('systemability'): 135 root.remove(sa) 212 root = tree.getroot() 213 loadlibs = root.find("loadlibs") 216 for sa in root.findall('systemability'): 218 root.remove(sa)
|
D | pull_service_gcda.py | 53 resident_service_path, services_str, root, device_port): argument 72 developer_path, services_str, root, device_port) 113 component_gcda_dict, developer_path, resident_service_path, root, port_nu): argument 127 developer_path, resident_service_path, services_str, root, port_nu)
|
/test/xts/acts/multimedia/image/image_js_standard/imagePackingNDK/entry/src/main/cpp/napi/ |
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/xdevice/src/xdevice/_core/report/ |
D | result_reporter.py | 442 root = self.data_helper.parse_data_report(data_report) 443 self._parse_devices(root) 445 module_name = self._get_module_name(data_report, root) 446 total = int(root.get(ReportConstant.tests, 0)) 451 self._append_product_info(test_suites_attributes, root) 452 for child in root: 498 def _append_product_info(cls, test_suites_attributes, root): argument 499 product_info = root.get(ReportConstant.product_info, "") 505 LOG.error("%s %s", root.get(ReportConstant.name, ""), error.args) 526 def _get_module_name(cls, data_report, root): argument [all …]
|
/test/xts/acts/commonlibrary/toolchain/libc-test/ |
D | tar_files.py | 48 for root, dirs, files in os.walk(source_dir): 50 pathfile = os.path.join(root, file)
|
/test/xts/acts/distributeddatamgr/distributedKVStoretest/distributedKVStorejstest/hap/src/main/js/test/ |
D | SchemaJsTest.js | 169 schema.root.appendChild(english); 202 schema.root.appendChild(english); 229 schema.root.appendChild(name); 273 schema.root.appendChild(english); 294 expect(schema.root instanceof ddm.FieldNode).assertTrue();
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
D | drivers_lite.py | 146 config_file = request.root.source.config_file 254 report_name = "report" if request.root.source. \ 256 request.root.source.test_name)[0] 649 if request.root.source.source_file.strip(): 651 request.root.source.source_file.strip()) 653 request.root.source.source_file.strip()).split(".")[0] 655 source = request.root.source.source_string.strip() 683 report_name = "report" if request.root.source. \ 685 request.root.source.test_name)[0] 923 config_file = request.root.source.config_file [all …]
|
/test/xts/acts/applications/kitframework/ |
D | kitfwk_oem_api_test.c | 109 cJSON* root = cJSON_Parse(kitInfoMsg); variable 112 TEST_ASSERT_NOT_NULL_MESSAGE(root, "Invalid json format!"); 114 cJSON* kitInfoArray = cJSON_GetObjectItem(root, KIT_INFO_JSON_KEY); 116 cJSON_Delete(root);
|
/test/xts/acts/applications/kitframework_ipcamera/ |
D | kitfwk_oem_api_test.cpp | 107 cJSON* root = cJSON_Parse(kitInfoMsg); variable 110 ASSERT_NE(root, nullptr) << "Invalid json format!" << "\n"; 112 cJSON* kitInfoArray = cJSON_GetObjectItem(root, KIT_INFO_JSON_KEY); 114 cJSON_Delete(root);
|
/test/xts/acts/distributeddatamgr/kvStoretest/kvStorejstest/hap/src/main/js/test/ |
D | SchemaJsunit.test.js | 173 schema.root.appendChild(english); 205 schema.root.appendChild(english); 231 schema.root.appendChild(name); 274 schema.root.appendChild(english); 294 expect(schema.root instanceof ddm.FieldNode).assertTrue();
|
/test/xts/tools/lite/build/ |
D | utils.py | 324 for root, dirs, files in os.walk(out_dir): 327 with open(os.path.join(root, file), 'r') as json_data: 330 os.remove(os.path.join(root, file)) 369 for root, _, files in os.walk(gralde_output_dir): 372 file_util.copy_file(os.path.join(root, file),
|