/device/soc/rockchip/common/sdk_linux/kernel/cgroup/ |
H A D | cgroup-v1.c | 60 struct cgroup_root *root; in cgroup_attach_task_all() local 65 for_each_root(root) in cgroup_attach_task_all() 69 if (root == &cgrp_dfl_root) { in cgroup_attach_task_all() 74 from_cgrp = task_cgroup_from_root(from, root); in cgroup_attach_task_all() 574 BUILD_BUG_ON(sizeof(cgrp->root->release_agent_path) < PATH_MAX); 590 strlcpy(cgrp->root->release_agent_path, strstrip(buf), sizeof(cgrp->root->release_agent_path)); 601 seq_puts(seq, cgrp->root->release_agent_path); 705 dead = percpu_ref_is_dying(&ss->root->cgrp.self.refcnt); 706 seq_printf(m, "%s\t%d\t%d\t%d\n", ss->legacy_name, dead ? 0 : ss->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...] |
/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...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/linux/ |
H A D | ump_kernel_random_mapping.c | 24 static ump_dd_mem *search(struct rb_root *root, int id) in search() argument 26 struct rb_node *node = root->rb_node; in search() 43 static mali_bool insert(struct rb_root *root, int id, ump_dd_mem *mem) in insert() argument 45 struct rb_node **new = &(root->rb_node); in insert() 63 rb_insert_color(&mem->node, root); in insert() 79 map->root = RB_ROOT; in ump_random_mapping_create() 111 if (insert(&map->root, id, mem)) { in ump_random_mapping_insert() 131 mem = search(&map->root, id); in ump_random_mapping_get() 167 mem = search(&map->root, id); in ump_random_mapping_remove_internal() 170 rb_erase(&mem->node, &map->root); in ump_random_mapping_remove_internal() [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...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/win_scripts/tools/nvtool/ |
H A D | build_nv.py | 312 def hi_nv_fomat_nv_id(root):
314 for grp in root:
334 root = tree.getroot()
335 hi_nv_fomat_nv_id(root)#标准化NVID
336 root_list.append(root)
342 for root in root_list:
343 grp_list=root.findall('GROUP')#找到所有的grp
355 for root in root_list:
356 grp_list=root.findall('GROUP')#找到所有的grp
415 root [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/tools/nvtool/ |
H A D | build_nv.py | 312 def hi_nv_fomat_nv_id(root):
314 for grp in root:
334 root = tree.getroot()
335 hi_nv_fomat_nv_id(root)#标准化NVID
336 root_list.append(root)
342 for root in root_list:
343 grp_list=root.findall('GROUP')#找到所有的grp
355 for root in root_list:
356 grp_list=root.findall('GROUP')#找到所有的grp
415 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()
|
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/ |
H A D | drm_debugfs.c | 155 * @root: DRI debugfs dir entry. 159 * &struct drm_info_list in the given root directory. These files will be removed 162 void drm_debugfs_create_files(const struct drm_info_list *files, int count, struct dentry *root, in drm_debugfs_create_files() argument 182 tmp->dent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO, root, tmp, &drm_debugfs_fops); in drm_debugfs_create_files() 192 int drm_debugfs_init(struct drm_minor *minor, int minor_id, struct dentry *root) in drm_debugfs_init() argument 201 minor->debugfs_root = debugfs_create_dir(name, root); in drm_debugfs_init() 406 struct dentry *root; in drm_debugfs_connector_add() local 412 root = debugfs_create_dir(connector->name, minor->debugfs_root); in drm_debugfs_connector_add() 413 connector->debugfs_entry = root; in drm_debugfs_connector_add() 416 debugfs_create_file("force", S_IRUGO | S_IWUSR, root, connecto in drm_debugfs_connector_add() 439 struct dentry *root; drm_debugfs_crtc_add() local [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/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/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/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...] |
/device/soc/rockchip/common/vendor/drivers/video/rockchip/rga2/ |
H A D | rga2_debugger.c | 191 static int rga_debugfs_create_files(const struct rga_debugger_list *files, int count, struct dentry *root, in rga_debugfs_create_files() argument 201 ERR("Cannot alloc rga_debugger_node for /sys/kernel/debug/%pd/%s\n", root, files[i].name); in rga_debugfs_create_files() 208 ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO, root, tmp, &rga_debugfs_fops); in rga_debugfs_create_files() 210 ERR("Cannot create /sys/kernel/debug/%pd/%s\n", root, files[i].name); in rga_debugfs_create_files() 316 static int rga_procfs_create_files(const struct rga_debugger_list *files, int count, struct proc_dir_entry *root, in rga_procfs_create_files() argument 333 ent = proc_create_data(files[i].name, S_IFREG | S_IRUGO, root, &rga_procfs_fops, tmp); in rga_procfs_create_files()
|
/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()
|
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_trace_gpu_mem.c | 48 * @tree: Pointer to root of rb_tree containing the dma_buf's mapped. 52 * by passing the root of kbase_device or kbase_process we can remove 97 * @root: Pointer to root of rb_tree containing the dma_buf's. 106 struct rb_root *root) in kbase_capture_dma_buf_mapping() 109 struct rb_node *node = root->rb_node; in kbase_capture_dma_buf_mapping() 137 struct rb_node **new = &(root->rb_node), *parent = NULL; in kbase_capture_dma_buf_mapping() 153 rb_insert_color(&new_buf_node->dma_buf_node, root); in kbase_capture_dma_buf_mapping() 104 kbase_capture_dma_buf_mapping(struct kbase_context *kctx, struct dma_buf *dma_buf, struct rb_root *root) kbase_capture_dma_buf_mapping() argument
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ |
H A D | mali_kbase_trace_gpu_mem.c | 49 * @tree: Pointer to root of rb_tree containing the dma_buf's mapped. 53 * by passing the root of kbase_device or kbase_process we can remove 97 * @root: Pointer to root of rb_tree containing the dma_buf's. 104 static bool kbase_capture_dma_buf_mapping(struct kbase_context *kctx, struct dma_buf *dma_buf, struct rb_root *root) in kbase_capture_dma_buf_mapping() argument 107 struct rb_node *node = root->rb_node; in kbase_capture_dma_buf_mapping() 135 struct rb_node **new = &(root->rb_node), *parent = NULL; in kbase_capture_dma_buf_mapping() 151 rb_insert_color(&buf_node2->dma_buf_node, root); in kbase_capture_dma_buf_mapping()
|
/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)
|
/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
|