/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | path_tools.cpp | 68 string res; in NormalizePath() local 69 res.reserve(path.size()); in NormalizePath() 70 res.push_back('/'); in NormalizePath() 78 if ((!res.empty()) && (res.back() == '/')) { in NormalizePath() 79 res.resize(res.size() - 1); in NormalizePath() 82 if (auto p = res.find_last_of('/'); string::npos != p) { in NormalizePath() 83 res.resize(p); in NormalizePath() 85 if (res in NormalizePath() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | dh_utils_hisysevent.cpp | 27 int32_t res = HiSysEventWrite( in HiSysEventWriteMsg() local 32 if (res != DH_FWK_SUCCESS) { in HiSysEventWriteMsg() 33 DHLOGE("Write HiSysEvent error, res:%{public}d", res); in HiSysEventWriteMsg() 40 int32_t res = HiSysEventWrite( in HiSysEventWriteErrCodeMsg() local 46 if (res != DH_FWK_SUCCESS) { in HiSysEventWriteErrCodeMsg() 47 DHLOGE("Write HiSysEvent error, res:%{public}d", res); in HiSysEventWriteErrCodeMsg() 60 int32_t res = HiSysEventWrite( in HiSysEventWriteReleaseMsg() local 67 if (res ! in HiSysEventWriteReleaseMsg() 75 int32_t res = HiSysEventWrite( HiSysEventWriteCompOfflineMsg() local 89 int32_t res = HiSysEventWrite( HiSysEventWriteCompMgrFailedMsg() local [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/ |
H A D | devsl_dispatcher_test.cpp | 48 bool res = true; in HWTEST_F() local 53 res = false; in HWTEST_F() 56 EXPECT_TRUE(res == true); in HWTEST_F() 69 bool res = true; in HWTEST_F() local 75 res = false; in HWTEST_F() 78 EXPECT_TRUE(res == true); in HWTEST_F() 91 bool res = true; in HWTEST_F() local 97 res = false; in HWTEST_F() 100 EXPECT_TRUE(res == true); in HWTEST_F() 113 bool res in HWTEST_F() local 141 bool res = true; HWTEST_F() local [all...] |
/kernel/linux/linux-6.6/drivers/acpi/arm64/ |
H A D | apmt.c | 26 static int __init apmt_init_resources(struct resource *res, in apmt_init_resources() argument 32 res[num_res].start = node->base_address0; in apmt_init_resources() 33 res[num_res].end = node->base_address0 + SZ_4K - 1; in apmt_init_resources() 34 res[num_res].flags = IORESOURCE_MEM; in apmt_init_resources() 39 res[num_res].start = node->base_address1; in apmt_init_resources() 40 res[num_res].end = node->base_address1 + SZ_4K - 1; in apmt_init_resources() 41 res[num_res].flags = IORESOURCE_MEM; in apmt_init_resources() 58 res[num_res].start = irq; in apmt_init_resources() 59 res[num_res].end = irq; in apmt_init_resources() 60 res[num_re in apmt_init_resources() 80 struct resource res[DEV_MAX_RESOURCE_COUNT]; apmt_add_platform_device() local [all...] |
/third_party/curl/tests/libtest/ |
H A D | libauthretry.c | 35 CURLcode res; in send_request() local 53 res = curl_easy_perform(curl); in send_request() 57 return res; in send_request() 87 CURLcode res; in test() local 113 res = send_wrong_password(curl, url, 100, main_auth_scheme); in test() 114 if(res != CURLE_OK) in test() 117 res = send_right_password(curl, url, 200, fallback_auth_scheme); in test() 118 if(res != CURLE_OK) in test() 131 res = send_wrong_password(curl, url, 300, main_auth_scheme); in test() 132 if(res ! in test() [all...] |
H A D | lib568.c | 46 int res; in test() local 74 res = TEST_ERR_MAJOR_BAD; in test() 88 res = TEST_ERR_MAJOR_BAD; in test() 99 res = curl_easy_perform(curl); in test() 100 if(res) in test() 110 res = TEST_ERR_MAJOR_BAD; in test() 118 res = curl_easy_perform(curl); in test() 119 if(res) in test() 126 res = TEST_ERR_MAJOR_BAD; in test() 136 res in test() [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A D | i5k_amb.c | 254 int res = 0; in i5k_amb_hwmon_init() local 290 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 292 if (res) in i5k_amb_hwmon_init() 305 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 307 if (res) in i5k_amb_hwmon_init() 321 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 323 if (res) in i5k_amb_hwmon_init() 337 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 339 if (res) in i5k_amb_hwmon_init() 353 res in i5k_amb_hwmon_init() 399 int res; i5k_amb_add() local 421 int res = -ENODEV; i5k_find_amb_registers() local 456 int res = -ENODEV; i5k_channel_probe() local 502 int i, res; i5k_amb_probe() local 584 int res; i5k_amb_init() local [all...] |
/kernel/linux/linux-5.10/fs/hfsplus/ |
H A D | dir.c | 309 int res; in hfsplus_link() local 323 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 326 if (!res) in hfsplus_link() 328 if (res != -EEXIST) in hfsplus_link() 334 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link() 336 if (res) in hfsplus_link() 342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 343 if (res) in hfsplus_link() 355 return res; in hfsplus_link() 365 int res; in hfsplus_unlink() local 419 int res; hfsplus_rmdir() local 442 int res = -ENOMEM; hfsplus_symlink() local 484 int res = -ENOMEM; hfsplus_mknod() local 535 int res; hfsplus_rename() local [all...] |
/kernel/linux/linux-6.6/fs/hfsplus/ |
H A D | dir.c | 309 int res; in hfsplus_link() local 323 res = hfsplus_rename_cat(inode->i_ino, in hfsplus_link() 326 if (!res) in hfsplus_link() 328 if (res != -EEXIST) in hfsplus_link() 334 res = hfsplus_create_cat(cnid, src_dir, in hfsplus_link() 336 if (res) in hfsplus_link() 342 res = hfsplus_create_cat(cnid, dst_dir, &dst_dentry->d_name, inode); in hfsplus_link() 343 if (res) in hfsplus_link() 355 return res; in hfsplus_link() 365 int res; in hfsplus_unlink() local 419 int res; hfsplus_rmdir() local 442 int res = -ENOMEM; hfsplus_symlink() local 484 int res = -ENOMEM; hfsplus_mknod() local 537 int res; hfsplus_rename() local [all...] |
/kernel/linux/linux-6.6/drivers/edac/ |
H A D | skx_common.c | 120 static bool skx_adxl_decode(struct decoded_addr *res, bool error_in_1st_level_mem) in skx_adxl_decode() argument 125 if (res->addr >= skx_tohm || (res->addr >= skx_tolm && in skx_adxl_decode() 126 res->addr < BIT_ULL(32))) { in skx_adxl_decode() 127 edac_dbg(0, "Address 0x%llx out of range\n", res->addr); in skx_adxl_decode() 131 if (adxl_decode(res->addr, adxl_values)) { in skx_adxl_decode() 132 edac_dbg(0, "Failed to decode 0x%llx\n", res->addr); in skx_adxl_decode() 136 res->socket = (int)adxl_values[component_indices[INDEX_SOCKET]]; in skx_adxl_decode() 138 res->imc = (adxl_nm_bitmap & BIT_NM_MEMCTRL) ? in skx_adxl_decode() 140 res in skx_adxl_decode() 533 skx_mce_output_error(struct mem_ctl_info *mci, const struct mce *m, struct decoded_addr *res) skx_mce_output_error() argument 637 struct decoded_addr res; skx_mce_check_error() local [all...] |
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | i5k_amb.c | 254 int res = 0; in i5k_amb_hwmon_init() local 290 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 292 if (res) in i5k_amb_hwmon_init() 305 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 307 if (res) in i5k_amb_hwmon_init() 321 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 323 if (res) in i5k_amb_hwmon_init() 337 res = device_create_file(&pdev->dev, in i5k_amb_hwmon_init() 339 if (res) in i5k_amb_hwmon_init() 353 res in i5k_amb_hwmon_init() 399 int res; i5k_amb_add() local 421 int res = -ENODEV; i5k_find_amb_registers() local 456 int res = -ENODEV; i5k_channel_probe() local 502 int i, res; i5k_amb_probe() local 584 int res; i5k_amb_init() local [all...] |
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/ |
H A D | iso_protocol.c | 167 int32_t res = isSelf ? BuildSelfTokenMessage(message, length, params, msg) : in IsoCalToken() local 169 if (res != HC_SUCCESS) { in IsoCalToken() 171 return res; in IsoCalToken() 175 res = GetLoaderInstance()->computeHmac(&keyParams, &messageBuf, token); in IsoCalToken() 177 if (res != HC_SUCCESS) { in IsoCalToken() 178 LOGE("ComputeHmac for token failed, res: %x.", res); in IsoCalToken() 179 return res; in IsoCalToken() 219 int32_t res = IsoCombineHkdfSalt(&impl->params, &hkdfSaltBuf, isClient); in IsoGenSessionKey() local 220 if (res ! in IsoGenSessionKey() 253 int32_t res = GetLoaderInstance()->computeHmac(&keyParams, &messageBuf, authResultMac); IsoGenAuthResultMac() local 265 int32_t res = GetLoaderInstance()->generateRandom(&randC); ClientGenRandomProcEvent() local 307 int32_t res = ClientGenRandomProcEvent(&impl->params); ClientGenRandom() local 353 int32_t res = GetLoaderInstance()->generateRandom(&randS); ServerGenTokenProcEvent() local 410 int32_t res = ServerGenTokenParseEvent(inputEvent, &impl->params); ServerGenToken() local 470 int32_t res = IsoCalToken(impl, &tokenS, false); ClientGenTokenProcEvent() local 517 int32_t res = ClientGenTokenParseEvent(inputEvent, &impl->params); ClientGenToken() local 547 int32_t res = IsoCalToken(impl, &tokenC, false); ServerGenSessKeyProcEvent() local 599 int32_t res = ServerGenSessKeyParseEvent(inputEvent, &impl->params); ServerGenSessKey() local 630 int32_t res = IsoGenAuthResultMac(&impl->params, &authResultMac); ClientGenSessKeyProcEvent() local 649 int32_t res = ClientGenSessKeyParseEvent(inputEvent, &impl->params); ClientGenSessKey() local 727 int32_t res = STATE_MACHINE[i].stateProcessFunc((IsoProtocol *)self, receviedMsg, returnSendMsg); IsoProtocolSwitchState() local [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
H A D | dlmdebug.c | 35 void dlm_print_one_lock_resource(struct dlm_lock_resource *res) in dlm_print_one_lock_resource() argument 37 spin_lock(&res->spinlock); in dlm_print_one_lock_resource() 38 __dlm_print_one_lock_resource(res); in dlm_print_one_lock_resource() 39 spin_unlock(&res->spinlock); in dlm_print_one_lock_resource() 42 static void dlm_print_lockres_refmap(struct dlm_lock_resource *res) in dlm_print_lockres_refmap() argument 45 assert_spin_locked(&res->spinlock); in dlm_print_lockres_refmap() 50 bit = find_next_bit(res->refmap, O2NM_MAX_NODES, bit); in dlm_print_lockres_refmap() 56 printk("], inflight=%u\n", res->inflight_locks); in dlm_print_lockres_refmap() 82 void __dlm_print_one_lock_resource(struct dlm_lock_resource *res) in __dlm_print_one_lock_resource() argument 87 assert_spin_locked(&res in __dlm_print_one_lock_resource() 352 struct dlm_lock_resource *res; debug_purgelist_print() local 488 dump_lockres(struct dlm_lock_resource *res, char *buf, int len) dump_lockres() argument 546 struct dlm_lock_resource *res = NULL; lockres_seq_start() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/c67x00/ |
H A D | c67x00-drv.c | 109 struct resource *res, *res2; in c67x00_drv_probe() local 112 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in c67x00_drv_probe() 113 if (!res) in c67x00_drv_probe() 128 if (!request_mem_region(res->start, resource_size(res), in c67x00_drv_probe() 134 c67x00->hpi.base = ioremap(res->start, resource_size(res)); in c67x00_drv_probe() 173 release_mem_region(res->start, resource_size(res)); in c67x00_drv_probe() 183 struct resource *res; in c67x00_drv_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_gmrid_manager.c | 55 struct ttm_resource **res) in vmw_gmrid_man_get_node() 60 *res = kmalloc(sizeof(**res), GFP_KERNEL); in vmw_gmrid_man_get_node() 61 if (!*res) in vmw_gmrid_man_get_node() 64 ttm_resource_init(bo, place, *res); in vmw_gmrid_man_get_node() 68 ttm_resource_fini(man, *res); in vmw_gmrid_man_get_node() 69 kfree(*res); in vmw_gmrid_man_get_node() 76 gman->used_gmr_pages += PFN_UP((*res)->size); in vmw_gmrid_man_get_node() 113 (*res)->start = id; in vmw_gmrid_man_get_node() 119 gman->used_gmr_pages -= PFN_UP((*res) in vmw_gmrid_man_get_node() 52 vmw_gmrid_man_get_node(struct ttm_resource_manager *man, struct ttm_buffer_object *bo, const struct ttm_place *place, struct ttm_resource **res) vmw_gmrid_man_get_node() argument 127 vmw_gmrid_man_put_node(struct ttm_resource_manager *man, struct ttm_resource *res) vmw_gmrid_man_put_node() argument [all...] |
/third_party/curl/lib/ |
H A D | share.c | 61 CURLSHcode res = CURLSHE_OK; in curl_share_setopt() local 87 res = CURLSHE_NOMEM; in curl_share_setopt() 90 res = CURLSHE_NOT_BUILT_IN; in curl_share_setopt() 99 res = CURLSHE_NOMEM; in curl_share_setopt() 102 res = CURLSHE_NOT_BUILT_IN; in curl_share_setopt() 114 res = CURLSHE_NOMEM; in curl_share_setopt() 117 res = CURLSHE_NOT_BUILT_IN; in curl_share_setopt() 123 res = CURLSHE_NOMEM; in curl_share_setopt() 128 res = CURLSHE_NOT_BUILT_IN; in curl_share_setopt() 133 res in curl_share_setopt() [all...] |
/third_party/node/lib/internal/modules/esm/ |
H A D | fetch_module.js | 153 const { 0: res } = await once(req, 'response'); 155 const hasLocation = ObjectPrototypeHasOwnProperty(res.headers, 'location'); 156 if (isRedirect(res.statusCode) && hasLocation) { 157 const location = new URL(res.headers.location, parsed); 160 res.headers.location, 169 if (res.statusCode === 404) { 176 if (res.statusCode < 200 || res.statusCode >= 300) { 178 res.headers.location, 182 const { headers } = res; [all...] |
/third_party/openssl/test/ |
H A D | sparse_array_test.c | 41 int res = 0; in test_sparse_array() local 61 res = 1; in test_sparse_array() 64 return res; in test_sparse_array() 81 int res = 0; in test_sparse_array_num() local 91 res = 1; in test_sparse_array_num() 94 return res; in test_sparse_array_num() 107 int res; member 117 doall_data->res = 0; in leaf_check_all() 121 doall_data->res = 1; in leaf_check_all() 133 doall_data->res in leaf_delete() 153 int res = 0; test_sparse_array_doall() local [all...] |
/base/security/certificate_framework/frameworks/core/v1.0/certificate/ |
H A D | cert_crl_common.c | 23 CfResult res = in->base.getEncoded(&(in->base), &encodingBlob); in CloneCertificateObj() local 24 if (res != CF_SUCCESS) { in CloneCertificateObj() 26 return res; in CloneCertificateObj() 29 res = HcfX509CertificateCreate(&encodingBlob, &clone); in CloneCertificateObj() 30 if (res != CF_SUCCESS) { in CloneCertificateObj() 33 return res; in CloneCertificateObj() 43 CfResult res = in->getEncoded(in, &encodingBlob); in CloneCrlObj() local 44 if (res != CF_SUCCESS) { in CloneCrlObj() 46 return res; in CloneCrlObj() 49 res in CloneCrlObj() [all...] |
/base/update/updater/test/unittest/flashd_test/ |
H A D | flashd_utils_unittest.cpp | 51 std::string res = ""; in HWTEST_F() local 53 res += s; in HWTEST_F() 55 EXPECT_EQ("", res); in HWTEST_F() 58 res = ""; in HWTEST_F() 60 res += s; in HWTEST_F() 62 EXPECT_EQ("flashupdaterupdater.img", res); in HWTEST_F() 83 std::string res = GetFileName(testStr); in HWTEST_F() local 84 EXPECT_EQ("test.zip", res); in HWTEST_F() 87 res = GetFileName(testStr); in HWTEST_F() 88 EXPECT_EQ("test.zip", res); in HWTEST_F() [all...] |
/foundation/ability/ability_runtime/test/unittest/uri_perm_mgr_test/ |
H A D | tokenid_permission_test.cpp | 55 bool res = tokenIdPermission->VerifyProxyAuthorizationUriPermission(); in HWTEST_F() local 56 EXPECT_EQ(res, false); in HWTEST_F() 70 bool res = tokenIdPermission->VerifyFileAccessManagerPermission(); in HWTEST_F() local 71 EXPECT_EQ(res, false); in HWTEST_F() 85 bool res = tokenIdPermission->VerifyReadImageVideoPermission(); in HWTEST_F() local 86 EXPECT_EQ(res, false); in HWTEST_F() 100 bool res = tokenIdPermission->VerifyWriteImageVideoPermission(); in HWTEST_F() local 101 EXPECT_EQ(res, false); in HWTEST_F() 115 bool res = tokenIdPermission->VerifyReadAudioPermission(); in HWTEST_F() local 116 EXPECT_EQ(res, fals in HWTEST_F() 130 bool res = tokenIdPermission->VerifyWriteAudioPermission(); HWTEST_F() local [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/ |
H A D | bms_bundle_permission_getrequest_test.cpp | 83 bool res = BundlePermissionMgr::Init(); in HWTEST_F() local 84 EXPECT_EQ(res, true); in HWTEST_F() 89 res = BundlePermissionMgr::GetRequestPermissionStates(bundleInfo, tokenId, DEVICE_ID); in HWTEST_F() 90 EXPECT_EQ(res, true); in HWTEST_F() 101 bool res = BundlePermissionMgr::Init(); in HWTEST_F() local 102 EXPECT_EQ(res, true); in HWTEST_F() 107 res = BundlePermissionMgr::GetRequestPermissionStates(bundleInfo, tokenId, DEVICE_ID); in HWTEST_F() 108 EXPECT_EQ(res, true); in HWTEST_F() 119 bool res = BundlePermissionMgr::Init(); in HWTEST_F() local 120 EXPECT_EQ(res, tru in HWTEST_F() [all...] |
/foundation/communication/bluetooth/frameworks/cj/connection/src/ |
H A D | bluetooth_connection_common.cpp | 64 char* res = static_cast<char*>(malloc(sizeof(char) * length)); in MallocCString() local 65 if (res == nullptr) { in MallocCString() 68 return std::char_traits<char>::copy(res, origin.c_str(), length); in MallocCString() 73 CArrString res{0}; in Convert2CArrString() 75 return res; in Convert2CArrString() 81 return res; in Convert2CArrString() 83 res.head = static_cast<char **>(malloc(sizeof(char *) * size)); in Convert2CArrString() 84 if (!res.head) { in Convert2CArrString() 85 return res; in Convert2CArrString() 90 res in Convert2CArrString() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/animat/ |
H A D | rs_cubic_animat_test.cpp | 50 bool res = rsCubicBezierInterpolator.Marshalling(parcel); in HWTEST_F() local 51 EXPECT_EQ(res, true); in HWTEST_F() 67 float res = rsCubicBezierInterpolator.InterpolateImpl(input); in HWTEST_F() local 68 EXPECT_EQ(res, 1.0f); in HWTEST_F() 71 res = rsCubicBezierInterpolator.InterpolateImpl(input); in HWTEST_F() 72 EXPECT_NE(res, 1.0f); in HWTEST_F() 88 int res = rsCubicBezierInterpolator.BinarySearch(key); in HWTEST_F() local 89 EXPECT_NE(res, 0); in HWTEST_F() 92 res = rsCubicBezierInterpolator.BinarySearch(key); in HWTEST_F() 93 EXPECT_NE(res, in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/animation/ |
H A D | rs_cubic_bezier_interpolator_test.cpp | 50 float res = rsCubicBezierInterpolator.InterpolateImpl(input); in HWTEST_F() local 51 EXPECT_EQ(res, 1.0f); in HWTEST_F() 54 res = rsCubicBezierInterpolator.InterpolateImpl(input); in HWTEST_F() 55 EXPECT_NE(res, 1.0f); in HWTEST_F() 71 bool res = rsCubicBezierInterpolator.Marshalling(parcel); in HWTEST_F() local 72 EXPECT_EQ(res, true); in HWTEST_F() 106 int res = rsCubicBezierInterpolator.BinarySearch(key); in HWTEST_F() local 107 EXPECT_NE(res, 0); in HWTEST_F() 110 res = rsCubicBezierInterpolator.BinarySearch(key); in HWTEST_F() 111 EXPECT_NE(res, in HWTEST_F() [all...] |