/foundation/arkui/ace_engine/interfaces/native/node/ |
H A D | node_model.cpp | 36 HMODULE result = nullptr; in FindModule() local 38 GetModuleHandleEx(GET_MODULE_HANDLE_EX_FLAG_PIN, libname, &result); in FindModule() 39 if (result) { in FindModule() 40 return result; in FindModule() 54 void* result = dlopen(libname, RTLD_LAZY | RTLD_LOCAL); 55 if (result) { 56 return result; 336 auto result = extraData->eventMap.try_emplace(eventType, extraParam); in RegisterNodeEvent() local 337 if (!result.second) { in RegisterNodeEvent() 338 result in RegisterNodeEvent() [all...] |
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/src/ |
H A D | napi_accessibility_extension.cpp | 546 // Unwrap result in OnKeyPressEventExec() 547 bool result = false; in OnKeyPressEventExec() 548 if (!ConvertFromJsValue(data->env_, nativeResult, result)) { in OnKeyPressEventExec() 557 HILOG_INFO("OnKeyPressEvent result = %{public}d", result); in OnKeyPressEventExec() 558 data->syncPromise_.set_value(result); in OnKeyPressEventExec() 626 // Unwrap result in OnKeyPressEventCompleteCallback() 627 bool result = false; in OnKeyPressEventCompleteCallback() local 628 if (!ConvertFromJsValue(data->env_, napiResult, result)) { in OnKeyPressEventCompleteCallback() 637 HILOG_INFO("OnKeyPressEvent result in OnKeyPressEventCompleteCallback() 665 napi_value result = nullptr; CallObjectMethod() local [all...] |
/foundation/barrierfree/accessibility/frameworks/aafwk/test/unittest/ |
H A D | accessible_ability_client_impl_test.cpp | 1006 std::vector<AccessibilityElementInfo> result; in HWTEST_F() local 1007 EXPECT_EQ(instance_->GetElementInfoFromCache(WINDOW_ID, ELEMENT_ID, result), RET_OK); in HWTEST_F() 1008 EXPECT_EQ(result.size(), 1); in HWTEST_F() 1025 std::vector<AccessibilityElementInfo> result; in HWTEST_F() local 1026 EXPECT_EQ(instance_->GetElementInfoFromCache(WINDOW_ID, ELEMENT_ID, result), RET_OK); in HWTEST_F() 1027 EXPECT_EQ(result.size(), 1); in HWTEST_F() 1033 EXPECT_EQ(instance_->GetElementInfoFromCache(WINDOW_ID, ELEMENT_ID, result), RET_ERR_FAILED); in HWTEST_F() 1034 EXPECT_EQ(result.size(), 0); in HWTEST_F() 1051 std::vector<AccessibilityElementInfo> result; in HWTEST_F() local 1052 EXPECT_EQ(instance_->GetElementInfoFromCache(WINDOW_ID, ELEMENT_ID, result), RET_O in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/matrix_napi/ |
H A D | js_matrix.cpp | 109 napi_value result = nullptr;
in CreateJsMatrix() local 113 napi_create_object(env, &result);
in CreateJsMatrix() 114 if (result == nullptr) {
in CreateJsMatrix() 119 status = napi_wrap(env, result, jsMatrix, JsMatrix::Destructor, nullptr, nullptr);
in CreateJsMatrix() 125 napi_define_properties(env, result, sizeof(g_properties) / sizeof(g_properties[0]), g_properties);
in CreateJsMatrix() 126 return result;
in CreateJsMatrix() 128 return result;
in CreateJsMatrix() 676 bool result = m_matrix->SetPolyToPoly(srcPoints, dstPoints, count);
in OnSetPolyToPoly() local 677 return CreateJsValue(env, result);
in OnSetPolyToPoly() 711 bool result in OnSetRectToRect() local [all...] |
/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | common_utils.cpp | 71 auto result = Plugin::AnyCast<ValueType>(&any); in ParseJson() local 72 if (result == nullptr) { in ParseJson() 76 json->Put(key, *result); in ParseJson() 323 ErrorCode CommonUtils::ParseAnyAndAddToJson(const std::string &key, Plugin::Any &any, EffectJsonPtr &result) in ParseAnyAndAddToJson() argument 325 CHECK_AND_RETURN_RET(ParseJson<float>(key, any, result) != ErrorCode::SUCCESS, ErrorCode::SUCCESS); in ParseAnyAndAddToJson() 326 CHECK_AND_RETURN_RET(ParseJson<int32_t>(key, any, result) != ErrorCode::SUCCESS, ErrorCode::SUCCESS); in ParseAnyAndAddToJson() 327 CHECK_AND_RETURN_RET(ParseJson<uint32_t>(key, any, result) != ErrorCode::SUCCESS, ErrorCode::SUCCESS); in ParseAnyAndAddToJson() 559 uint32_t result = pixelMap->SetImageInfo(imageInfo, true); in ModifyPixelMapPropertyInner() local 560 EFFECT_LOGI("ModifyPixelMapPropertyInner: SetImageInfo width=%{public}d, height=%{public}d, result: %{public}d", in ModifyPixelMapPropertyInner() 561 imageInfo.size.width, imageInfo.size.height, result); in ModifyPixelMapPropertyInner() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | exif_metadata.cpp | 144 ImageMetadata::PropertyMapPtr result = std::make_shared<ImageMetadata::PropertyMap>(); in GetAllProperties() local 149 result->insert(std::make_pair(key, value)); in GetAllProperties() 155 result->insert(std::make_pair(key, value)); in GetAllProperties() 159 return result; in GetAllProperties() 543 std::string result = std::accumulate(value.begin(), value.end(), std::string(), [](std::string res, char a) { in SetByte() local 549 const char *p = result.c_str(); in SetByte() 550 int valueLen = static_cast<int>(result.length()); in SetByte() 579 auto result = ExifMetadatFormatter::Format(key, value); in SetValue() local 580 if (result.first) { in SetValue() 588 return SetHwMoteValue(key, result in SetValue() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | backup_file_utils.cpp | 130 string result = filePath; in ConvertLowQualityPath() local 131 size_t displayNameIndex = result.rfind("/"); in ConvertLowQualityPath() 133 return result; in ConvertLowQualityPath() 135 std::string displayName = result.substr(displayNameIndex + 1); in ConvertLowQualityPath() 140 size_t pos = result.find(relativePath); in ConvertLowQualityPath() 142 return result; in ConvertLowQualityPath() 144 string publicPath = result.substr(0, pos + 1); in ConvertLowQualityPath() 145 result = publicPath + LOW_QUALITY_PATH + displayName; in ConvertLowQualityPath() 146 return result; in ConvertLowQualityPath() 500 int result in GenerateThumbnailsAfterRestore() local [all...] |
/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/ |
H A D | common.cpp | 55 napi_value result = nullptr; in NapiGetNull() local 56 napi_get_null(env, &result); in NapiGetNull() 57 return result; in NapiGetNull() 535 const napi_env &env, const napi_ref &callbackIn, int32_t errCode, const napi_value &result) in SetCallback() 551 results[1] = result; in SetCallback() 557 const napi_env &env, const AsyncWorkData &info, const napi_value &result) in SetPromise() 560 napi_resolve_deferred(env, info.deferred, result); in SetPromise() 576 return result; in SetPromise() 579 void Common::ReturnCallbackPromise(const napi_env &env, const AsyncWorkData &info, const napi_value &result) in ReturnCallbackPromise() argument 582 SetCallback(env, info.callback, info.errorCode, result); in ReturnCallbackPromise() 534 SetCallback( const napi_env &env, const napi_ref &callbackIn, int32_t errCode, const napi_value &result) SetCallback() argument 556 SetPromise( const napi_env &env, const AsyncWorkData &info, const napi_value &result) SetPromise() argument [all...] |
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_hotspot_proxy.cpp | 176 ErrCode WifiHotspotProxy::GetHotspotConfig(HotspotConfig &result) in GetHotspotConfig() argument 209 result.SetSsid((readStr != nullptr) ? readStr : ""); in GetHotspotConfig() 210 result.SetSecurityType(static_cast<KeyMgmt>(reply.ReadInt32())); in GetHotspotConfig() 211 result.SetBand(static_cast<BandType>(reply.ReadInt32())); in GetHotspotConfig() 212 result.SetChannel(reply.ReadInt32()); in GetHotspotConfig() 214 result.SetPreSharedKey((readStr != nullptr) ? readStr : ""); in GetHotspotConfig() 215 result.SetMaxConn(reply.ReadInt32()); in GetHotspotConfig() 216 result.SetIpAddress(reply.ReadString()); in GetHotspotConfig() 217 result.SetLeaseTime(reply.ReadInt32()); in GetHotspotConfig() 293 ErrCode WifiHotspotProxy::GetStationList(std::vector<StationInfo> &result) in GetStationList() argument [all...] |
/foundation/distributeddatamgr/data_share/frameworks/native/proxy/src/ |
H A D | data_share_service_proxy.cpp | 84 int32_t result = -1; in InsertEx() local 95 if (!ITypesUtil::Unmarshal(reply, errCode, result)) { in InsertEx() 99 return std::make_pair(errCode, result); in InsertEx() 116 int32_t result = -1; in UpdateEx() local 127 if (!ITypesUtil::Unmarshal(reply, errCode, result)) { in UpdateEx() 131 return std::make_pair(errCode, result); in UpdateEx() 148 int32_t result = -1; in DeleteEx() local 159 if (!ITypesUtil::Unmarshal(reply, errCode, result)) { in DeleteEx() 163 return std::make_pair(errCode, result); in DeleteEx() 186 auto result in Query() local [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/src/ |
H A D | js_config.cpp | 334 std::map<std::string, StatisticInfos> result; in QueryStatistics() member 370 auto [status, result] = proxy->QueryStatistics(ctxt->accountId, ctxt->bundleName, ctxt->storeId); in QueryStatistics() 373 ctxt->result = std::move(result); in QueryStatistics() 375 auto output = [env, ctxt](napi_value& result) { in QueryStatistics() 376 result = JSUtils::Convert2JSValue(env, ctxt->result); in QueryStatistics() 377 ASSERT_VALUE(ctxt, result != nullptr, napi_generic_failure, "output failed"); in QueryStatistics() 506 auto output = [env, ctxt](napi_value &result) { in QueryLastSyncInfo() 507 result in QueryLastSyncInfo() [all...] |
/foundation/distributedhardware/device_manager/services/implementation/src/dependency/softbus/ |
H A D | softbus_connector.cpp | 412 void SoftbusConnector::OnSoftbusPublishResult(int32_t publishId, PublishResult result) in OnSoftbusPublishResult() argument 414 LOGI("Callback In, publishId: %{public}d, result: %{public}d.", publishId, result); in OnSoftbusPublishResult() 418 iter.second->OnPublishResult(iter.first, publishId, result); in OnSoftbusPublishResult() 422 void SoftbusConnector::OnSoftbusJoinLNNResult(ConnectionAddr *addr, const char *networkId, int32_t result) in OnSoftbusJoinLNNResult() argument 426 LOGD("[SOFTBUS]OnSoftbusJoinLNNResult, result: %{public}d.", result); in OnSoftbusJoinLNNResult() 528 void SoftbusConnector::OnSoftbusDiscoveryResult(int subscribeId, RefreshResult result) in OnSoftbusDiscoveryResult() argument 532 if (result == REFRESH_LNN_SUCCESS) { in OnSoftbusDiscoveryResult() 533 LOGI("[SOFTBUS]start to discovery device successfully with subscribeId: %{public}d, result in OnSoftbusDiscoveryResult() [all...] |
/foundation/distributeddatamgr/udmf/framework/ndkimpl/data/ |
H A D | udmf.cpp | 115 OH_UdmfRecord** result = new (std::nothrow) OH_UdmfRecord* [size] { nullptr };
in CreateUnifiedDataRecordsArray() local 116 if (result == nullptr) {
in CreateUnifiedDataRecordsArray() 120 result[i] = new (std::nothrow) OH_UdmfRecord;
in CreateUnifiedDataRecordsArray() 121 if (result[i] == nullptr) {
in CreateUnifiedDataRecordsArray() 122 DestroyUnifiedRecordArray(result, size);
in CreateUnifiedDataRecordsArray() 125 result[i]->record_ = records[i];
in CreateUnifiedDataRecordsArray() 127 unifiedData->records = result;
in CreateUnifiedDataRecordsArray() 506 auto result = GetValueFromUint8Array(record, typeId, value);
in OH_UdmfRecord_GetGeneralEntry() local 507 if (result != UDMF_E_OK) {
in OH_UdmfRecord_GetGeneralEntry() 508 LOG_ERROR(UDMF_CAPI, "Get value from valueType failed. typeId: %{public}s, result in OH_UdmfRecord_GetGeneralEntry() [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/cj/src/ |
H A D | pasteboard_ffi.cpp | 389 char **result = new char *[vec.size()]; in VectorToCArrString() local 390 if (result == nullptr) { in VectorToCArrString() 395 result[i] = new char[vec[i].length() + 1]; in VectorToCArrString() 396 if (result[i] == nullptr) { in VectorToCArrString() 399 if (strcpy_s(result[i], vec[i].length() + 1, vec[i].c_str()) != 0) { in VectorToCArrString() 400 delete[] result[i]; in VectorToCArrString() 401 result[i] = nullptr; in VectorToCArrString() 408 delete[] result[j - 1]; in VectorToCArrString() 409 result[j - 1] = nullptr; in VectorToCArrString() 411 delete[] result; in VectorToCArrString() [all...] |
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/ |
H A D | napi_pastedata_record.cpp | 319 auto output = [exeContext](napi_env env, napi_value *result) -> napi_status { in ConvertToText() 321 napi_create_string_utf8(env, (exeContext->text).c_str(), (exeContext->text).length(), result); in ConvertToText() 355 napi_value result = nullptr; in ToPlainText() local 356 napi_create_string_utf8(env, str.c_str(), NAPI_AUTO_LENGTH, &result); in ToPlainText() 357 return result; in ToPlainText() 413 napi_value result = nullptr; in GetValidTypes() local 414 NAPI_CALL(env, napi_create_array(env, &result)); in GetValidTypes() 418 NAPI_CALL(env, napi_set_element(env, result, i, element)); in GetValidTypes() 420 return result; in GetValidTypes() 456 auto output = [exeContext](napi_env env, napi_value *result) in GetRecordData() [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/common/src/ |
H A D | softbus_channel_adapter.cpp | 106 static void onDevTimeSyncResult(const TimeSyncResultInfo *info, int32_t result)
in onDevTimeSyncResult() argument 108 SoftbusChannelAdapter::GetInstance().OnSoftbusTimeSyncResult(info, result);
in onDevTimeSyncResult() 471 std::string peerDevId, int32_t result)
in OnSoftbusChannelOpened() 473 AVTRANS_LOGI("On softbus channel opened, sessionId: %{public}" PRId32", result: %{public}" PRId32
in OnSoftbusChannelOpened() 474 " peerSessionName: %{public}s", sessionId, result, peerSessionName.c_str());
in OnSoftbusChannelOpened() 481 EventType type = (result == 0) ? EventType::EVENT_CHANNEL_OPENED : EventType::EVENT_CHANNEL_OPEN_FAIL;
in OnSoftbusChannelOpened() 561 void SoftbusChannelAdapter::OnSoftbusTimeSyncResult(const TimeSyncResultInfo *info, int32_t result)
in OnSoftbusTimeSyncResult() argument 563 AVTRANS_LOGI("On softbus channel time sync result:%{public}" PRId32, result);
in OnSoftbusTimeSyncResult() 564 TRUE_RETURN(result in OnSoftbusTimeSyncResult() 470 OnSoftbusChannelOpened(std::string peerSessionName, int32_t sessionId, std::string peerDevId, int32_t result) OnSoftbusChannelOpened() argument [all...] |
/third_party/icu/icu4c/source/test/intltest/ |
H A D | msfmrgts.cpp | 97 //Apply pattern with param and print the result in Test4074764() 112 //Apply pattern without param and print the result in Test4074764() 134 errln("Formatted with arguments > substitution failed. result = " + tempBuffer); in Test4074764() 759 UnicodeString result; in Test4118594() local 761 result = mf->format( oldobjs, 1, result, pos, status ); in Test4118594() 765 logln("text for parsing: \"" + result + "\""); in Test4118594() 766 // result now equals "3.14, 3.1" in Test4118594() 767 if (result != "3.14, 3.1") in Test4118594() 768 dataerrln("result in Test4118594() 815 UnicodeString result; Test4105380() local [all...] |
H A D | itspoof.cpp | 249 int32_t result = uspoof_areConfusableUnicodeString(sc, s1, s2, &status); in testAreConfusable() local 251 TEST_ASSERT_EQ(USPOOF_SINGLE_SCRIPT_CONFUSABLE, result); in testAreConfusable() 293 UnicodeString result; in parseHex() local 299 result.append(cc); in parseHex() 310 result.append(cc); in parseHex() 312 return result; in parseHex() 616 int32_t result = uspoof_checkUnicodeString(sc, testString, NULL, &status); in testRestrictionLevel() local 619 TEST_ASSERT_EQ(expectedLevel, result & USPOOF_RESTRICTION_LEVEL_MASK); in testRestrictionLevel() 620 TEST_ASSERT_EQ(expectedValue, result & USPOOF_ALL_CHECKS); in testRestrictionLevel() 706 UnicodeString result; in testBug12815() local [all...] |
/third_party/icu/icu4c/source/common/ |
H A D | localematcher.cpp | 767 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredLocales, errorCode); in acceptLanguage() local 769 if (result.getDesiredIndex() >= 0) { in acceptLanguage() 771 *acceptResult = *result.getDesiredLocale() == *result.getSupportedLocale() ? in acceptLanguage() 774 const char *bestStr = result.getSupportedLocale()->getName(); in acceptLanguage() 791 uloc_acceptLanguage(char *result, int32_t resultAvailable, in uloc_acceptLanguage() argument 797 if ((result == nullptr ? resultAvailable != 0 : resultAvailable < 0) || in uloc_acceptLanguage() 807 result, resultAvailable, outResult, *status); in uloc_acceptLanguage() 811 uloc_acceptLanguageFromHTTP(char *result, int32_t resultAvailable, in uloc_acceptLanguageFromHTTP() argument 817 if ((result in uloc_acceptLanguageFromHTTP() [all...] |
/third_party/lzma/CPP/7zip/UI/FileManager/ |
H A D | BrowseDialog.cpp | 974 bool CorrectFsPath(const UString &relBase, const UString &path2, UString &result)
in CorrectFsPath() argument 976 result.Empty();
in CorrectFsPath() 990 result = path;
in CorrectFsPath() 1001 result = path;
in CorrectFsPath() 1019 result.Insert(0, WCHAR_PATH_SEPARATOR);
in CorrectFsPath() 1024 result.Insert(0, cur);
in CorrectFsPath() 1027 result.Insert(0, path);
in CorrectFsPath() 1031 result += path.Left(start);
in CorrectFsPath() 1044 if (fi.Find(us2fs(base + result + cur)))
in CorrectFsPath() 1048 result in CorrectFsPath() 1069 CorrectFsPath(const UString & , const UString &path, UString &result) CorrectFsPath() argument [all...] |
/third_party/node/deps/icu-small/source/common/ |
H A D | localematcher.cpp | 767 LocaleMatcher::Result result = matcher.getBestMatchResult(desiredLocales, errorCode); in acceptLanguage() local 769 if (result.getDesiredIndex() >= 0) { in acceptLanguage() 771 *acceptResult = *result.getDesiredLocale() == *result.getSupportedLocale() ? in acceptLanguage() 774 const char *bestStr = result.getSupportedLocale()->getName(); in acceptLanguage() 791 uloc_acceptLanguage(char *result, int32_t resultAvailable, in uloc_acceptLanguage() argument 797 if ((result == nullptr ? resultAvailable != 0 : resultAvailable < 0) || in uloc_acceptLanguage() 807 result, resultAvailable, outResult, *status); in uloc_acceptLanguage() 811 uloc_acceptLanguageFromHTTP(char *result, int32_t resultAvailable, in uloc_acceptLanguageFromHTTP() argument 817 if ((result in uloc_acceptLanguageFromHTTP() [all...] |
/third_party/lwip/src/apps/http/ |
H A D | http_client.c | 192 httpc_close(httpc_state_t* req, httpc_result_t result, u32_t server_response, err_t err) in httpc_close() argument 197 req->conn_settings->result_fn(req->callback_arg, result, req->rx_content_len, server_response, err); in httpc_close() 286 httpc_result_t result; in httpc_tcp_recv() local 289 result = HTTPC_RESULT_ERR_CLOSED; in httpc_tcp_recv() 293 result = HTTPC_RESULT_ERR_CONTENT_LEN; in httpc_tcp_recv() 296 result = HTTPC_RESULT_OK; in httpc_tcp_recv() 298 return httpc_close(req, result, req->rx_status, ERR_OK); in httpc_tcp_recv() 444 httpc_result_t result; in httpc_dns_found() local 453 result = HTTPC_RESULT_ERR_CONNECT; in httpc_dns_found() 457 result in httpc_dns_found() [all...] |
/third_party/node/deps/v8/src/snapshot/ |
H A D | snapshot.cc | 214 Handle<Context> result; in NewContextFromSnapshot() local 215 if (!maybe_result.ToHandle(&result)) return MaybeHandle<Context>(); in NewContextFromSnapshot() 223 return result; in NewContextFromSnapshot() 438 v8::StartupData result = SnapshotImpl::CreateSnapshotBlob( in Create() local 444 CHECK(Snapshot::VerifyChecksum(&result)); in Create() 445 return result; in Create() 584 v8::StartupData result = {data, static_cast<int>(total_length)}; in CreateSnapshotBlob() local 588 Checksum(SnapshotImpl::ChecksummedContent(&result))); in CreateSnapshotBlob() 590 return result; in CreateSnapshotBlob() 604 uint32_t result in VerifyChecksum() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | lp_bld_conv.c | 169 LLVMValueRef result; in lp_build_float_to_half() local 192 result = lp_build_intrinsic_binary(builder, intrinsic, in lp_build_float_to_half() 196 result = lp_build_extract_range(gallivm, result, 0, 4); in lp_build_float_to_half() 198 result = LLVMBuildBitCast(builder, result, lp_build_vec_type(gallivm, lp_type_float_vec(16, 16 * length)), ""); in lp_build_float_to_half() 202 result = lp_build_float_to_smallfloat(gallivm, i32_type, src, 10, 5, 0, true); in lp_build_float_to_half() 204 result = LLVMBuildTrunc(builder, result, lp_build_vec_type(gallivm, i16_type), ""); in lp_build_float_to_half() 238 lp_build_print_value(gallivm, "llvm = ", result); in lp_build_float_to_half() [all...] |
H A D | lp_bld_format_aos.c | 158 LLVMValueRef result = src; in scale_bits_up() local 169 result = lp_build_cmp(&bld, PIPE_FUNC_EQUAL, src, in scale_bits_up() 171 result = lp_build_andnot(&bld, dst_mask, result); in scale_bits_up() 178 result = LLVMBuildShl(builder, in scale_bits_up() 191 result = LLVMBuildOr(builder, result, lower, ""); in scale_bits_up() 199 result = LLVMBuildOr(builder, in scale_bits_up() 200 result, in scale_bits_up() 201 LLVMBuildLShr(builder, result, shu in scale_bits_up() [all...] |