/third_party/node/test/parallel/ |
H A D | test-stream-pipeline.js | 686 let ret = ''; 688 ret += chunk; 690 return ret; 699 const ret = pipeline(async function*() { 707 ret.resume(); 708 assert.strictEqual(typeof ret.pipe, 'function'); 715 const ret = pipeline(async function*() { // eslint-disable-line require-yield 723 ret.resume(); 724 assert.strictEqual(typeof ret.pipe, 'function'); 785 const ret [all...] |
/third_party/node/deps/openssl/openssl/ssl/statem/ |
H A D | statem_dtls.c | 110 int ret; in dtls1_do_write() local 195 ret = BIO_flush(s->wbio); in dtls1_do_write() 196 if (ret <= 0) { in dtls1_do_write() 198 return ret; in dtls1_do_write() 238 ret = dtls1_write_bytes(s, type, &s->init_buf->data[s->init_off], len, in dtls1_do_write() 240 if (ret <= 0) { in dtls1_do_write() 492 int ret; in dtls1_retrieve_buffered_fragment() local 560 ret = dtls1_preprocess_fragment(s, &frag->msg_header); in dtls1_retrieve_buffered_fragment() 562 if (ret && frag->msg_header.frag_len > 0) { in dtls1_retrieve_buffered_fragment() 572 if (ret) { in dtls1_retrieve_buffered_fragment() 806 int i, ret, recvd_type; dtls_get_reassembled_message() local 1014 int ret, errtype; dtls_wait_for_dry() local 1181 int ret; dtls1_retransmit_message() local [all...] |
/third_party/openssl/ssl/statem/ |
H A D | statem_dtls.c | 114 int ret; in dtls1_do_write() local 199 ret = BIO_flush(s->wbio); in dtls1_do_write() 200 if (ret <= 0) { in dtls1_do_write() 202 return ret; in dtls1_do_write() 242 ret = dtls1_write_bytes(s, type, &s->init_buf->data[s->init_off], len, in dtls1_do_write() 244 if (ret <= 0) { in dtls1_do_write() 496 int ret; in dtls1_retrieve_buffered_fragment() local 564 ret = dtls1_preprocess_fragment(s, &frag->msg_header); in dtls1_retrieve_buffered_fragment() 566 if (ret && frag->msg_header.frag_len > 0) { in dtls1_retrieve_buffered_fragment() 576 if (ret) { in dtls1_retrieve_buffered_fragment() 810 int i, ret, recvd_type; dtls_get_reassembled_message() local 1018 int ret, errtype; dtls_wait_for_dry() local 1185 int ret; dtls1_retransmit_message() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 110 int ret = 0; in p2p_sd_dns_uncompress() local 131 ret = p2p_sd_dns_uncompress_label(&upos, uend, tmp, &spos, end); in p2p_sd_dns_uncompress() 132 if (ret) { in p2p_sd_dns_uncompress() 134 return ret; in p2p_sd_dns_uncompress() 971 u64 ret; in wpas_p2p_sd_request_upnp() local 981 ret = wpas_p2p_sd_request(wpa_s, dst, tlvs); in wpas_p2p_sd_request_upnp() 983 return ret; in wpas_p2p_sd_request_upnp() 992 u64 ret; in wpas_p2p_sd_request_asp() local 1013 ret = wpas_p2p_sd_request(wpa_s, dst, tlvs); in wpas_p2p_sd_request_asp() 1016 return ret; in wpas_p2p_sd_request_asp() 1070 u64 ret; wpas_p2p_sd_request_wifi_display() local 1176 int ret; wpas_p2p_service_del_asp() local 1191 int ret; wpas_p2p_service_add_asp() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | mesh_mpm.c | 219 int ret; in mesh_mpm_send_plink_action() local 419 ret = wpa_drv_send_action(wpa_s, wpa_s->assoc_freq, 0, in mesh_mpm_send_plink_action() 422 if (ret < 0) in mesh_mpm_send_plink_action() 437 int ret; in wpa_mesh_set_plink_state() local 453 ret = wpa_drv_sta_add(wpa_s, ¶ms); in wpa_mesh_set_plink_state() 454 if (ret) { in wpa_mesh_set_plink_state() 456 ": %d", MAC2STR(sta->addr), ret); in wpa_mesh_set_plink_state() 458 ": %d", MAC2STR_SEC(sta->addr), ret); in wpa_mesh_set_plink_state() 662 int ret; in mesh_mpm_auth_peer() local 683 ret in mesh_mpm_auth_peer() 713 int ret; mesh_mpm_add_peer() local 1158 int ret; mesh_mpm_action_rx() local [all...] |
H A D | p2p_supplicant_sd.c | 112 int ret = 0; in p2p_sd_dns_uncompress() local 133 ret = p2p_sd_dns_uncompress_label(&upos, uend, tmp, &spos, end); in p2p_sd_dns_uncompress() 134 if (ret) { in p2p_sd_dns_uncompress() 136 return ret; in p2p_sd_dns_uncompress() 1001 u64 ret; in wpas_p2p_sd_request_upnp() local 1011 ret = wpas_p2p_sd_request(wpa_s, dst, tlvs); in wpas_p2p_sd_request_upnp() 1013 return ret; in wpas_p2p_sd_request_upnp() 1022 u64 ret; in wpas_p2p_sd_request_asp() local 1043 ret = wpas_p2p_sd_request(wpa_s, dst, tlvs); in wpas_p2p_sd_request_asp() 1046 return ret; in wpas_p2p_sd_request_asp() 1100 u64 ret; wpas_p2p_sd_request_wifi_display() local 1206 int ret; wpas_p2p_service_del_asp() local 1221 int ret; wpas_p2p_service_add_asp() local [all...] |
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/ |
H A D | ast.js | 499 let ret = true; 501 ret = this.nodeRefExpand(refObj); 503 ret = nodeCopyExpand(refObj); 506 return ret; 776 let ret = ''; 777 for (let i = 0; i < l; i++) ret += ' '; 778 return ret; 906 let ret = node.refExpand(this.lookup(current, node.getRefPath())); 907 if (!ret) { 988 let ret [all...] |
/foundation/ability/dmsfwk/services/dtbschedmgr/src/continue/ |
H A D | dsched_continue_manager.cpp | 211 int32_t ret = DMSContinueSendMgr::GetInstance().GetMissionIdByBundleName( in ContinueMission() local 213 if (ret != ERR_OK) { in ContinueMission() 214 HILOGE("get missionId fail, ret %{public}d.", ret); in ContinueMission() 284 int32_t ret = CheckContinuationLimit(info.sourceDeviceId_, info.sinkDeviceId_, direction); in HandleContinueMissionWithBundleName() local 285 if (ret != ERR_OK) { in HandleContinueMissionWithBundleName() 286 HILOGE("CheckContinuationLimit failed, ret: %{public}d", ret); in HandleContinueMissionWithBundleName() 518 int32_t ret = DMSContinueSendMgr::GetInstance().GetContinueLaunchMissionInfo(missionId, missionInfo); in NotifyTerminateContinuation() local 519 if (ret ! in NotifyTerminateContinuation() 662 int32_t ret = startCmd->Unmarshal(jsonStr); NotifyContinueDataRecv() local [all...] |
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | js_third_provider_interaction_operation.cpp | 177 bool ret = FindAccessibilityNodeInfosByIdFromProvider( in SearchElementInfoByAccessibilityId() local 179 if (!ret) { in SearchElementInfoByAccessibilityId() 245 bool ret = FindAccessibilityNodeInfosByTextFromProvider( in SearchElementInfosByText() local 247 if (!ret) { in SearchElementInfosByText() 313 bool ret = FindFocusedElementInfoFromProvider( in FindFocusedElementInfo() local 315 if (!ret) { in FindFocusedElementInfo() 369 bool ret = FocusMoveSearchProvider( in FocusMoveSearch() local 371 if (!ret) { in FocusMoveSearch() 430 bool ret = FindAccessibilityNodeInfosByIdFromProvider( in ExecuteAction() local 432 if (!ret) { in ExecuteAction() 595 bool ret = FindAccessibilityNodeInfosByIdFromProvider( SendAccessibilityAsyncEventForThird() local [all...] |
/foundation/multimedia/av_codec/services/media_engine/plugins/source/ |
H A D | file_fd_source_plugin.cpp | 74 int ret = fstat(fd, &s); in GetFileSize() local 75 if (ret == 0) { in GetFileSize() 77 FALSE_RETURN_V_MSG_E(fileSize != 0, fileSize, "fileSize 0, fstat ret 0"); in GetFileSize() 80 MEDIA_LOG_W("GetFileSize error ret " PUBLIC_LOG_D32 ", errno " PUBLIC_LOG_D32, ret, errno); in GetFileSize() 258 int32_t ret = lseek(fd_, offset + static_cast<uint64_t>(offset_), SEEK_SET); in SeekToOfflineFile() local 259 if (ret == -1) { in SeekToOfflineFile() 265 MEDIA_LOG_D("SeekLocal end ret " PUBLIC_LOG_D32 ", position_ " PUBLIC_LOG_U64, ret, position_.load()); in SeekToOfflineFile() 293 int32_t ret in SeekToOnlineFile() local 596 int ret = ioctl(fd_, HMDFS_IOC_CANCEL_READ); SetInterruptState() local 629 int ret = ioctl(fd_, HMDFS_IOC_RESTORE_READ); CheckFileType() local 658 int64_t ret = static_cast<int64_t>(size_) + offset_ - static_cast<int64_t>(position); GetLastSize() local [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | entity_collection.cpp | 128 auto ret = GetEntity(localContextId); in GetEntityRecursive() local 130 if (!CORE_NS::EntityUtil::IsValid(ret)) { in GetEntityRecursive() 132 ret = it->GetEntityRecursive(localContextId); in GetEntityRecursive() 133 if (CORE_NS::EntityUtil::IsValid(ret)) { in GetEntityRecursive() 139 return ret; in GetEntityRecursive() 258 auto ret = GetId(entity); in GetIdRecursive() local 259 if (ret.empty()) { in GetIdRecursive() 261 ret = it->GetIdRecursive(entity); in GetIdRecursive() 262 if (!ret.empty()) { in GetIdRecursive() 267 return ret; in GetIdRecursive() 287 auto ret = GetUniqueIdentifier(entity); GetUniqueIdentifierRecursive() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/drawable/ |
H A D | rs_property_drawable_background.cpp | 60 RSDrawable::Ptr ret = std::make_shared<RSShadowDrawable>(); in OnGenerate() local 61 if (ret->OnUpdate(node)) { in OnGenerate() 62 return ret; in OnGenerate() 134 if (auto ret = std::make_shared<RSMaskDrawable>(); ret->OnUpdate(node)) { in OnGenerate() 135 return std::move(ret); in OnGenerate() 212 if (auto ret = std::make_shared<RSBackgroundColorDrawable>(); ret->OnUpdate(node)) { in OnGenerate() 213 return std::move(ret); in OnGenerate() 266 if (auto ret in OnGenerate() [all...] |
/foundation/multimodalinput/input/frameworks/napi/input_consumer/src/ |
H A D | js_register_module.cpp | 167 napi_value ret; in GetHotkeyEventInfo() local 168 CHKRP(napi_create_int32(env, RET_OK, &ret), CREATE_INT32); in GetHotkeyEventInfo() 169 return ret; in GetHotkeyEventInfo() 253 napi_value ret; in GetEventInfoAPI9() local 254 CHKRP(napi_create_int32(env, RET_OK, &ret), CREATE_INT32); in GetEventInfoAPI9() 255 return ret; in GetEventInfoAPI9() 395 napi_value ret; in SubscribeKey() local 396 CHKRP(napi_create_int32(env, RET_OK, &ret), CREATE_INT32); in SubscribeKey() 397 return ret; in SubscribeKey() 436 napi_value ret; in SubscribeHotkey() local 649 napi_value ret = nullptr; EnumConstructor() local [all...] |
/foundation/window/window_manager/utils/include/ |
H A D | window_helper.h | 373 PointInfo ret = pos; in CalculateOriginPosition() local 374 ret.x += rActial.posX_ - pos.x; in CalculateOriginPosition() 375 ret.y += rActial.posY_ - pos.y; in CalculateOriginPosition() 376 ret.x += rOrigin.posX_ - rActial.posX_; in CalculateOriginPosition() 377 ret.y += rOrigin.posY_ - rActial.posY_; in CalculateOriginPosition() 379 ret.x += (pos.x - rActial.posX_) * rOrigin.width_ / rActial.width_; in CalculateOriginPosition() 380 ret.y += (pos.y - rActial.posY_) * rOrigin.height_ / rActial.height_; in CalculateOriginPosition() 382 return ret; in CalculateOriginPosition() 413 TransformHelper::Matrix4 ret = TransformHelper::Matrix4::Identity; in ComputeWorldTransformMat4() local 417 ret * in ComputeWorldTransformMat4() [all...] |
/foundation/communication/wifi/wifi/frameworks/native/c_adapter/src/ |
H A D | wifi_c_p2p.cpp | 48 OHOS::Wifi::ErrCode ret = wifiP2pPtr->GetP2pEnableStatus(p2pEnableStatus); in GetP2pEnableStatus() local 50 return GetCErrorCode(ret); in GetP2pEnableStatus() 280 OHOS::Wifi::ErrCode ret = wifiP2pPtr->GetCurrentGroup(cppGroupInfo); in GetCurrentGroup() local 281 if (ret != OHOS::Wifi::WIFI_OPT_SUCCESS) { in GetCurrentGroup() 293 OHOS::Wifi::ErrCode ret = wifiP2pPtr->GetP2pConnectedStatus(p2pStatus); in GetP2pConnectedStatus() local 294 if (ret != OHOS::Wifi::WIFI_OPT_SUCCESS) { in GetP2pConnectedStatus() 298 return GetCErrorCode(ret); in GetP2pConnectedStatus() 306 OHOS::Wifi::ErrCode ret = wifiP2pPtr->QueryP2pLocalDevice(cppDeviceInfo); in QueryP2pLocalDevice() local 307 if (ret != OHOS::Wifi::WIFI_OPT_SUCCESS) { in QueryP2pLocalDevice() 319 OHOS::Wifi::ErrCode ret in QueryP2pDevices() local 340 OHOS::Wifi::ErrCode ret = wifiP2pPtr->QueryP2pGroups(groups); QueryP2pGroups() local [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | flicvideo.c | 169 int i, j, ret; in flic_decode_frame_8BPP() local 189 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0) in flic_decode_frame_8BPP() 190 return ret; in flic_decode_frame_8BPP() 482 if ((ret = av_frame_ref(rframe, s->frame)) < 0) in flic_decode_frame_8BPP() 483 return ret; in flic_decode_frame_8BPP() 508 int i, j, ret; in flic_decode_frame_15_16BPP() local 523 if ((ret = ff_reget_buffer(avctx, s->frame, 0)) < 0) in flic_decode_frame_15_16BPP() 524 return ret; in flic_decode_frame_15_16BPP() 784 if ((ret = av_frame_ref(rframe, s->frame)) < 0) in flic_decode_frame_15_16BPP() 785 return ret; in flic_decode_frame_15_16BPP() 808 int i, j, ret; flic_decode_frame_24BPP() local [all...] |
H A D | magicyuv.c | 135 int ret = init_get_bits8(&gb, s->buf + s->slices[i][j].start, in magy_decode_slice10() local 138 if (ret < 0) in magy_decode_slice10() 139 return ret; in magy_decode_slice10() 279 int ret = init_get_bits8(&gb, slice, s->slices[i][j].size - 2); in magy_decode_slice() local 281 if (ret < 0) in magy_decode_slice() 282 return ret; in magy_decode_slice() 438 int ret, i, j; in magy_decode_frame() local 556 ret = ff_set_dimensions(avctx, width, height); in magy_decode_frame() 557 if (ret < 0) in magy_decode_frame() 558 return ret; in magy_decode_frame() [all...] |
/third_party/ffmpeg/libavfilter/ |
H A D | vf_rotate.c | 287 int ret; in config_props() local 291 ret = ff_draw_init(&rot->draw, inlink->format, 0); in config_props() 292 if (ret < 0) in config_props() 293 return ret; in config_props() 315 if ((ret = av_expr_parse(&rot->angle_expr, expr = rot->angle_expr_str, var_names, in config_props() 319 return ret; in config_props() 323 ret = av_expr_parse_and_eval(&res, expr = rot->name##_expr_str, \ in config_props() 326 if (ret < 0 || isnan(res) || isinf(res) || res <= 0) { \ in config_props() 331 return ret; \ in config_props() 560 int ret; in process_command() local [all...] |
/third_party/node/src/api/ |
H A D | environment.cc | 102 void* ret; in Allocate() local 104 ret = allocator_->Allocate(size); in Allocate() 106 ret = allocator_->AllocateUninitialized(size); in Allocate() 107 if (LIKELY(ret != nullptr)) in Allocate() 109 return ret; in Allocate() 113 void* ret = allocator_->AllocateUninitialized(size); in AllocateUninitialized() local 114 if (LIKELY(ret != nullptr)) in AllocateUninitialized() 116 return ret; in AllocateUninitialized() 121 void* ret = allocator_->Reallocate(data, old_size, size); in Reallocate() local 122 if (LIKELY(ret ! in Reallocate() 160 void* ret = NodeArrayBufferAllocator::Reallocate(data, old_size, size); Reallocate() local [all...] |
/third_party/node/src/ |
H A D | util-inl.h | 327 auto ret = a * b; in MultiplyWithOverflowCheck() local 329 CHECK_EQ(b, ret / a); in MultiplyWithOverflowCheck() 331 return ret; in MultiplyWithOverflowCheck() 375 T* ret = UncheckedRealloc(pointer, n); in Realloc() local 376 CHECK_IMPLIES(n > 0, ret != nullptr); in Realloc() 377 return ret; in Realloc() 382 T* ret = UncheckedMalloc<T>(n); in Malloc() local 383 CHECK_IMPLIES(n > 0, ret != nullptr); in Malloc() 384 return ret; in Malloc() 389 T* ret in Calloc() local 463 v8::Local<v8::Map> ret = v8::Map::New(isolate); ToV8Value() local [all...] |
/third_party/node/deps/v8/src/base/platform/ |
H A D | platform-posix.cc | 479 int ret = mprotect(address, size, prot); in SetPermissions() local 484 if (ret != 0 && access == OS::MemoryPermission::kNoAccess) { in SetPermissions() 485 ret = madvise(address, size, MADV_FREE_REUSABLE); in SetPermissions() 486 return ret == 0; in SetPermissions() 490 if (ret == 0 && access == OS::MemoryPermission::kNoAccess) { in SetPermissions() 506 return ret == 0; in SetPermissions() 519 int ret = madvise(address, size, MADV_FREE_REUSABLE); in DiscardSystemPages() local 520 if (ret) { in DiscardSystemPages() 522 ret = madvise(address, size, MADV_DONTNEED); in DiscardSystemPages() 525 int ret in DiscardSystemPages() local 531 int ret = madvise(address, size, MADV_DONTNEED); DiscardSystemPages() local [all...] |
/third_party/node/deps/openssl/openssl/apps/lib/ |
H A D | opt.c | 400 int ret; in opt_cipher_any() local 402 if ((ret = opt_cipher_silent(name, cipherp)) == 0) in opt_cipher_any() 404 return ret; in opt_cipher_any() 409 int mode, ret = 0; in opt_cipher() local 421 ret = 1; in opt_cipher() 426 return ret; in opt_cipher() 455 int ret; in opt_md() local 457 if ((ret = opt_md_silent(name, mdp)) == 0) in opt_md() 460 return ret; in opt_md() 628 int ret; in opt_intmax() local 638 int ret; opt_uintmax() local [all...] |
/third_party/openssl/apps/lib/ |
H A D | opt.c | 400 int ret; in opt_cipher_any() local 402 if ((ret = opt_cipher_silent(name, cipherp)) == 0) in opt_cipher_any() 404 return ret; in opt_cipher_any() 409 int mode, ret = 0; in opt_cipher() local 421 ret = 1; in opt_cipher() 426 return ret; in opt_cipher() 455 int ret; in opt_md() local 457 if ((ret = opt_md_silent(name, mdp)) == 0) in opt_md() 460 return ret; in opt_md() 628 int ret; in opt_intmax() local 638 int ret; opt_uintmax() local [all...] |
/third_party/openssl/test/ |
H A D | dsatest.c | 65 int counter, ret = 0, i, j; in dsa_test() local 117 ret = 1; in dsa_test() 121 return ret; in dsa_test() 151 int ret = 0; in dsa_keygen_test() local 292 ret = 1; in dsa_keygen_test() 304 return ret; in dsa_keygen_test() 309 int ret; in test_dsa_default_paramgen_validate() local 314 ret = TEST_ptr(gen_ctx = EVP_PKEY_CTX_new_from_name(NULL, "DSA", NULL)) in test_dsa_default_paramgen_validate() 325 return ret; in test_dsa_default_paramgen_validate() 330 int ret in test_dsa_sig_infinite_loop() local 421 int ret = 0, setpqg = 0; test_dsa_sig_neg_param() local [all...] |
/foundation/communication/dsoftbus/tests/core/frame/ |
H A D | softbus_test.c | 23 int32_t ret = GetServerProvideInterface()->startDiscovery(pkgName, NULL); in main() local 25 return ret; in main()
|