/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/ |
H A D | hdf_utils.py | 8 # See the LICENSE file in the root of this repository for complete details. 205 def get_framework_lite_dir(root): 206 return os.path.join(root, 'drivers', 'adapter', 'khdf', 'liteos') 209 def get_vendor_root_dir(root): 210 return os.path.join(root, 'vendor') 213 def get_vendor_dir(root, vendor): 214 return os.path.join(get_vendor_root_dir(root), vendor) 217 def get_vendor_hdf_dir_framework(root): 219 return os.path.join(root, relative_path) 222 def module_save_file_info(root) [all...] |
/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...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_delete_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 81 root, _, module, _, _, kernel, device = self.get_args() 92 root=root, vendor="", module="", 114 root=root, vendor="", kernel="", board="", 117 path=os.path.join(root, dot_path)) 160 root, vendor, _, _, _ = self.get_args() 161 vendor_hdf_dir = hdf_utils.get_vendor_hdf_dir(root, vendor) 170 def _delete_module(self, root, mode [all...] |
H A D | hdf_add_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 73 root, vendor, _, _, board = self.get_args() 74 target_dir = hdf_utils.get_vendor_hdf_dir(root, vendor) 98 root, vendor, module, driver, board, kernel, _ = args_tuple 103 framework_hdf = hdf_utils.get_vendor_hdf_dir_framework(root) 110 root, module) 130 root_path=root, config_file_json=config_file_json, 136 root, vendor, module, driver, board, kernel, _ = args_tuple 145 adapter_hdf = hdf_utils.get_vendor_hdf_dir_adapter(root, kernel) 187 root, vendo [all...] |
H A D | hdf_get_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 64 root = self.args.root_dir 65 vendor_root_dir = hdf_utils.get_vendor_root_dir(root) 69 hdf = hdf_utils.get_vendor_hdf_dir(root, vendor) 91 root, vendor, _, _, _ = self.get_args() 92 target = hdf_utils.get_vendor_dir(root, vendor) 102 root, vendor, _, _, _ = self.get_args() 103 hdf_dir = hdf_utils.get_vendor_hdf_dir(root, vendor) 108 vendor_k = HdfVendorKconfigFile(root, vendor, kernel=None, path='') 115 HdfModuleKconfigFile(root, modul [all...] |
H A D | hdf_set_handler.py | 8 # See the LICENSE file in the root of this repository for complete details. 59 root, vendor, _, _, _ = self.get_args() 60 HdfLiteMkFile(root).set_vendor(vendor) 61 HdfLiteKconfigFile(root).set_vendor(vendor) 95 root = self.args.root_dir 96 dot_config_path = hdf_utils.get_liteos_a_dot_config_path(root) 100 [os.path.join(root, config) for config in orig_dot_configs] 132 root, vendor, model, _, board, _, _ = self.get_args() 134 root=root, vendo [all...] |
H A D | hdf_model_enable_operation.py | 8 # See the LICENSE file in the root of this repository for complete details.
23 def __init__(self, root, vendor, board, model):
24 self.root = root
32 self.root, self.vendor, self.board).scan_build()
37 root, kernel="linux")
81 self.root, self.vendor, self.board)
91 self.root, self.vendor, self.board)
191 return os.path.join(self.root, "kernel", kernel, "config")
194 return os.path.join(self.root, "kerne [all...] |
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_slist.c | 6 * See the LICENSE file in the root of this repository for complete details. 17 list->root = NULL; in HdfSListInit() 23 return ((list == NULL) || (list->root == NULL)); in HdfSListIsEmpty() 50 for (iterator = list->root; iterator != NULL; iterator = iterator->next) { in HdfSListGetLast() 61 link->next = list->root; in HdfSListAdd() 62 list->root = link; in HdfSListAdd() 89 for (iterator = list->root; iterator; iterator = iterator->next) { in HdfSListAddOrder() 95 if (comparer(link, list->root)) { in HdfSListAddOrder() 96 link->next = list->root; in HdfSListAddOrder() 97 list->root in HdfSListAddOrder() [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | ModifyNode.js | 35 ModifyNode.modifyName = function (files, root, node, name) { 36 let parent = getParent(root, node, null); 38 NapiLog.logError("Can't change root node name"); 45 ModifyNode.modifyNodeType = function (files, root, node, type) { 46 let parent = getParent(root, node, null); 48 NapiLog.logError("Can't change root node type"); 66 ModifyNode.addChildAttr = function (root, node) { 83 ModifyNode.addChildNode = function (root, node) { 103 NapiLog.logError('不能删除root节点'); 114 ModifyNode.getInheritList = function (root, nod [all...] |
/drivers/peripheral/distributed_camera/hdi_service/include/utils/ |
H A D | distributed_hardware_log.h | 80 #define CHECK_NULL_FREE_RETURN(ptr, ret, root, ...) \ 84 cJSON_Delete((root)); \ 89 #define CHECK_NULL_RETURN_LOG(root, ret, fmt, ...) \ 91 if ((root) == nullptr) { \ 97 #define CHECK_OBJECT_FREE_RETURN(root, ret, fmt, ...) \ 99 if (!cJSON_IsObject((root))) { \ 101 cJSON_Delete((root)); \ 106 #define CHECK_AND_FREE_RETURN_RET_LOG(cond, ret, root, fmt, ...) \ 110 cJSON_Delete((root)); \
|
/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/ |
H A D | driver_info.cpp | 32 cJSON* root = cJSON_CreateObject(); in Serialize() local 33 if (!root) { in Serialize() 37 cJSON_AddStringToObject(root, "bus", this->bus_.c_str()); in Serialize() 38 cJSON_AddStringToObject(root, "vendor", this->vendor_.c_str()); in Serialize() 39 cJSON_AddStringToObject(root, "version", this->version_.c_str()); in Serialize() 40 cJSON_AddStringToObject(root, "size", this->driverSize_.c_str()); in Serialize() 41 cJSON_AddStringToObject(root, "description", this->description_.c_str()); in Serialize() 42 cJSON_AddStringToObject(root, "ext_info", extInfo.c_str()); in Serialize() 43 str = cJSON_PrintUnformatted(root); in Serialize() 45 cJSON_Delete(root); in Serialize() [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...] |
/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/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...] |
/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/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...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/hdi_operate/ |
H A D | hdi_add_handler.py | 8 # See the LICENSE file in the root of this repository for complete details.
104 root = self.args.root_dir
107 return root, version, interface_converter, interface_name
116 root = self.args.root_dir
120 return root, version, peripheral_converter, peripheral_name, board, vendor
127 root = self.args.root_dir
134 return peripheral_name, root, peripheral_converter, replace_data
137 root, version, interface_converter, interface_name = \
175 create_file_path = self.format_file_path(dst_path, root)
179 operation_file = os.path.join(root, path_tes [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/ |
H A D | hdf_add_driver.py | 8 # See the LICENSE file in the root of this repository for complete details.
31 self.root, self.vendor, self.module, self.driver, \
33 self.template_file_path = hdf_utils.get_template_file_path(self.root)
56 self.root, self.kernel)
70 self.root, self.vendor, self.module,
76 self.root, self.vendor, self.board)
109 self.driver, self.root, self.device, self.kernel)
125 self.driver, self.root, self.device, self.kernel)
130 self.module, self.driver, self.root)
159 device_info = HdfDeviceInfoHcsFile(self.root, sel [all...] |
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/driver_add/linux/ |
H A D | mk_file_add_config.py | 8 # See the LICENSE file in the root of this repository for complete details.
39 def formate_mk_config_build(source_path, date_lines, devices, root):
47 date_lines, source, "", devices, root)
67 date_lines, source, "", devices, root)
72 def audio_makefile_template(date_lines, driver, source_path, head_path, devices, root):
82 date_lines, source, "", devices, root)
102 date_lines, "", head_file, devices, root)
116 source_path, head_path, module, driver, root, devices, board = args_tuple
134 makefile_path = os.path.join(root, temp_makefile, "Makefile")
137 date_lines, driver, source_path, head_path, devices, 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/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))
|
/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/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...] |