Home
last modified time | relevance | path

Searched refs:tempValue (Results 1 - 25 of 34) sorted by relevance

12

/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/
H A Dnapi_common.cpp68 napi_value tempValue = nullptr; in SetColorFromJS() local
70 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetColorFromJS()
71 if (tempValue == nullptr) { in SetColorFromJS()
78 napi_get_named_property(env, tempValue, "alpha", &tempValueChild); in SetColorFromJS()
80 napi_get_named_property(env, tempValue, "red", &tempValueChild); in SetColorFromJS()
82 napi_get_named_property(env, tempValue, "green", &tempValueChild); in SetColorFromJS()
84 napi_get_named_property(env, tempValue, "blue", &tempValueChild); in SetColorFromJS()
99 napi_value tempValue = nullptr; in GetDecorationFromJS() local
100 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in GetDecorationFromJS()
101 if (tempValue in GetDecorationFromJS()
125 napi_value tempValue = nullptr; ParsePartTextStyle() local
750 napi_value tempValue = nullptr; GetTextTabFromJS() local
832 napi_value tempValue = nullptr; GetStartEndParams() local
[all...]
H A Dnapi_common.h354 napi_value tempValue = nullptr; in SetDoubleValueFromJS() local
355 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetDoubleValueFromJS()
356 if (tempValue == nullptr) { in SetDoubleValueFromJS()
359 ConvertFromJsValue(env, tempValue, cValue); in SetDoubleValueFromJS()
364 napi_value tempValue = nullptr; in SetBoolValueFromJS() local
365 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetBoolValueFromJS()
366 if (tempValue == nullptr) { in SetBoolValueFromJS()
369 ConvertFromJsValue(env, tempValue, cValue); in SetBoolValueFromJS()
461 napi_value tempValue = nullptr; in SetFontMetricsFloatValueFromJS() local
462 napi_get_named_property(env, argValue, str.c_str(), &tempValue); in SetFontMetricsFloatValueFromJS()
474 napi_value tempValue = nullptr; SetLineMetricsDoubleValueFromJS() local
484 napi_value tempValue = nullptr; SetLineMetricsSizeTValueFromJS() local
[all...]
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/
H A Djs_drawing_utils.cpp96 napi_value tempValue = nullptr; in ConvertFromJsColor() local
99 napi_get_named_property(env, jsValue, g_argbString[idx], &tempValue); in ConvertFromJsColor()
100 if (napi_get_value_int32(env, tempValue, curChannel) != napi_ok || in ConvertFromJsColor()
126 napi_value tempValue = nullptr; in ConvertFromJsRect() local
129 napi_get_named_property(env, jsValue, g_ltrbString[idx], &tempValue); in ConvertFromJsRect()
130 if (napi_get_value_double(env, tempValue, curEdge) != napi_ok) { in ConvertFromJsRect()
139 napi_value tempValue = nullptr; in ConvertFromJsIRect() local
142 napi_get_named_property(env, jsValue, g_ltrbString[idx], &tempValue); in ConvertFromJsIRect()
143 if (napi_get_value_int32(env, tempValue, curEdge) != napi_ok) { in ConvertFromJsIRect()
171 napi_value tempValue in ConvertFromJsPoint3d() local
190 napi_value tempValue = nullptr; ConvertFromJsPoint() local
[all...]
/foundation/multimedia/image_framework/frameworks/kits/js/common/
H A Dimage_napi_utils.cpp36 napi_value tempValue = nullptr; in GetBufferByName() local
38 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetBufferByName()
40 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_arraybuffer_info(env, tempValue, res, len)), false); in GetBufferByName()
47 napi_value tempValue = nullptr; in GetUint32ByName() local
49 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetUint32ByName()
51 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_value_uint32(env, tempValue, res)), false); in GetUint32ByName()
58 napi_value tempValue = nullptr; in GetInt32ByName() local
60 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_named_property(env, root, name, &tempValue)), false); in GetInt32ByName()
62 IMG_NAPI_CHECK_RET(IMG_IS_OK(napi_get_value_int32(env, tempValue, res)), false); in GetInt32ByName()
69 napi_value tempValue in GetDoubleByName() local
80 napi_value tempValue = nullptr; GetBoolByName() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/graphic_2d_configure/src/
H A Dgraphic_2d_xml_parser.cpp166 xmlChar *tempValue = nullptr; in ExtractPropertyValue() local
169 tempValue = xmlGetProp(&node, reinterpret_cast<const xmlChar*>(propName.c_str())); in ExtractPropertyValue()
172 if (tempValue != nullptr) { in ExtractPropertyValue()
173 RS_LOGD("Graphic2dXmlParser not empty tempValue"); in ExtractPropertyValue()
174 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue()
175 xmlFree(tempValue); in ExtractPropertyValue()
176 tempValue = nullptr; in ExtractPropertyValue()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/
H A Dmulti_ver_natural_store_transfer_data.cpp39 Value tempValue(sizeByte); in SegmentAndTransferValueToHash()
41 std::copy(oriValue.begin() + i * sizeByte, oriValue.begin() + sizeByte * (i + 1), tempValue.begin()); in SegmentAndTransferValueToHash()
42 partValues.push_back(std::move(tempValue)); in SegmentAndTransferValueToHash()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_predicates_test.cpp692 std::stringstream tempValue; in BasicDataTypeTest() local
708 tempValue.str(""); in BasicDataTypeTest()
709 tempValue << DBL_MIN; in BasicDataTypeTest()
710 predicates1.EqualTo("doubleValue", tempValue.str()); in BasicDataTypeTest()
735 tempValue.str(""); in BasicDataTypeTest()
736 tempValue << FLT_MIN; in BasicDataTypeTest()
737 predicates1.EqualTo("floatValue", tempValue.str()); in BasicDataTypeTest()
860 std::stringstream tempValue; in BasicDataTypeTest002() local
877 tempValue.str(""); in BasicDataTypeTest002()
878 tempValue << DBL_MI in BasicDataTypeTest002()
946 std::stringstream tempValue; HWTEST_F() local
994 std::stringstream tempValue; HWTEST_F() local
1048 std::stringstream tempValue; HWTEST_F() local
1096 std::stringstream tempValue; HWTEST_F() local
1144 std::stringstream tempValue; HWTEST_F() local
1438 std::stringstream tempValue; HWTEST_F() local
1629 std::stringstream tempValue; HWTEST_F() local
[all...]
/foundation/multimedia/audio_framework/services/audio_service/server/src/config/
H A Daudio_param_parser.cpp159 xmlChar *tempValue = nullptr; in ExtractPropertyValue() local
162 tempValue = xmlGetProp(&node, reinterpret_cast<const xmlChar*>(propName.c_str())); in ExtractPropertyValue()
165 if (tempValue != nullptr) { in ExtractPropertyValue()
166 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue()
167 xmlFree(tempValue); in ExtractPropertyValue()
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/config/
H A Daudio_strategy_router_parser.cpp106 xmlChar *tempValue = nullptr; in ExtractPropertyValue() local
109 tempValue = xmlGetProp(node, reinterpret_cast<const xmlChar*>(propName.c_str())); in ExtractPropertyValue()
112 if (tempValue != nullptr) { in ExtractPropertyValue()
113 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue()
114 xmlFree(tempValue); in ExtractPropertyValue()
H A Daudio_device_parser.cpp176 xmlChar *tempValue = nullptr; in ExtractPropertyValue() local
179 tempValue = xmlGetProp(node, reinterpret_cast<const xmlChar*>(propName.c_str())); in ExtractPropertyValue()
182 if (tempValue != nullptr) { in ExtractPropertyValue()
183 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue()
184 xmlFree(tempValue); in ExtractPropertyValue()
H A Daudio_policy_parser.cpp759 xmlChar *tempValue = nullptr; in ExtractPropertyValue() local
762 tempValue = xmlGetProp(&node, reinterpret_cast<const xmlChar*>(propName.c_str())); in ExtractPropertyValue()
765 if (tempValue != nullptr) { in ExtractPropertyValue()
766 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue()
767 xmlFree(tempValue); in ExtractPropertyValue()
/foundation/distributedhardware/distributed_screen/common/src/
H A Ddscreen_util.cpp128 char tempValue[SYSTEM_PARAM_VALUE_SIZE] = {0}; in IsPartialRefreshEnabled() local
129 auto ret = GetParameter(PARTIAL_REFRESH_PARAM, "-1", tempValue, sizeof(tempValue)); in IsPartialRefreshEnabled()
134 DHLOGI("get system parameter (dscreen.partial.refresh.enable) success, param value = %{public}s", tempValue); in IsPartialRefreshEnabled()
135 return (std::atoi(tempValue) == PARTIAL_REFRESH_ENABLED_VALUE); in IsPartialRefreshEnabled()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/text_blob_napi/
H A Djs_text_blob.cpp174 napi_value tempValue = nullptr; in OnMakeRunBuffer() local
178 napi_get_named_property(env, tempRunBuffer, "glyph", &tempValue); in OnMakeRunBuffer()
179 bool isGlyphOk = ConvertFromJsValue(env, tempValue, glyph); in OnMakeRunBuffer()
180 napi_get_named_property(env, tempRunBuffer, "positionX", &tempValue); in OnMakeRunBuffer()
181 bool isPositionXOk = ConvertFromJsValue(env, tempValue, positionX); in OnMakeRunBuffer()
182 napi_get_named_property(env, tempRunBuffer, "positionY", &tempValue); in OnMakeRunBuffer()
183 bool isPositionYOk = ConvertFromJsValue(env, tempValue, positionY); in OnMakeRunBuffer()
257 napi_value tempValue = nullptr; in MakePoints() local
258 status = napi_get_named_property(env, tempNumber, "x", &tempValue); in MakePoints()
263 const bool isPointXOk = ConvertFromJsValue(env, tempValue, point in MakePoints()
[all...]
/foundation/distributeddatamgr/data_share/frameworks/native/common/src/
H A Ddatashare_result_set.cpp241 int64_t tempValue = cellUnit->cell.longValue; in GetString() local
242 value = std::to_string(tempValue); in GetString()
245 double tempValue = cellUnit->cell.doubleValue; in GetString() local
247 if (os << tempValue) { in GetString()
293 const char *tempValue = block->GetCellUnitValueString(cellUnit, &sizeIncludingNull); in GetLong() local
294 value = ((sizeIncludingNull > 1) && (tempValue != nullptr)) ? long(strtoll(tempValue, nullptr, 0)) : 0L; in GetLong()
332 const char *tempValue = block->GetCellUnitValueString(cellUnit, &sizeIncludingNull); in GetDouble() local
333 value = ((sizeIncludingNull > 1) && (tempValue != nullptr)) ? strtod(tempValue, nullpt in GetDouble()
[all...]
/foundation/arkui/ace_engine/frameworks/base/i18n/
H A Ddate_time_sequence.cpp54 std::string tempValue; in GetDateOrder() local
57 unistr.toUTF8String<std::string>(tempValue); in GetDateOrder()
58 std::string value = ModifyOrder(tempValue); in GetDateOrder()
/foundation/multimedia/audio_framework/services/audio_service/common/src/
H A Daudio_common_converter.cpp160 uint8_t tempValue = (sampleValue >> (BYTES_ALIGNMENT_SIZE * j)) & 0xff; in ConvertFloatToAudioBuffer() local
161 buffer[samplePerFrame * i + j] = tempValue; in ConvertFloatToAudioBuffer()
/foundation/graphic/graphic_2d/rosen/modules/hyper_graphic_manager/core/config/
H A Dxml_parser.cpp544 xmlChar *tempValue = nullptr; in ExtractPropertyValue() local
547 tempValue = xmlGetProp(&node, reinterpret_cast<const xmlChar*>(propName.c_str())); in ExtractPropertyValue()
550 if (tempValue != nullptr) { in ExtractPropertyValue()
551 HGM_LOGD("XMLParser not aempty tempValue"); in ExtractPropertyValue()
552 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue()
553 xmlFree(tempValue); in ExtractPropertyValue()
554 tempValue = nullptr; in ExtractPropertyValue()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/animation/window_animation_manager/
H A Drs_window_animation_manager.cpp219 napi_value tempValue; in GetMissionIds() local
220 napi_get_element(env, arr, index, &tempValue); in GetMissionIds()
222 napi_coerce_to_object(env, tempValue, &value); in GetMissionIds()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/text_line_napi/
H A Djs_text_line.cpp423 napi_value tempValue = nullptr; in OnGetStringIndexForPosition() local
424 status = napi_get_named_property(env, argv[0], "x", &tempValue); in OnGetStringIndexForPosition()
425 if (status != napi_ok || tempValue == nullptr) { in OnGetStringIndexForPosition()
429 if (!ConvertFromJsValue(env, tempValue, x)) { in OnGetStringIndexForPosition()
433 status = napi_get_named_property(env, argv[0], "y", &tempValue); in OnGetStringIndexForPosition()
434 if (status != napi_ok || tempValue == nullptr) { in OnGetStringIndexForPosition()
438 if (!ConvertFromJsValue(env, tempValue, y)) { in OnGetStringIndexForPosition()
/foundation/multimedia/av_codec/test/moduletest/demuxer/src/InnerAPI/
H A Dinner_demuxer_sample.cpp223 uint64_t tempValue = pair; in GetIndexByPtsForVideo() local
234 previousValue = tempValue; in GetIndexByPtsForVideo()
244 uint64_t tempValue = pair; in GetIndexByPtsForAudio() local
256 previousValue = tempValue; in GetIndexByPtsForAudio()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/paragraph_napi/
H A Djs_paragraph.cpp373 napi_value tempValue = nullptr; in OnGetRectsForRange() local
378 napi_get_named_property(env, argv[0], "start", &tempValue); in OnGetRectsForRange()
379 bool isStartOk = ConvertFromJsValue(env, tempValue, start); in OnGetRectsForRange()
380 napi_get_named_property(env, argv[0], "end", &tempValue); in OnGetRectsForRange()
381 bool isEndOk = ConvertFromJsValue(env, tempValue, end); in OnGetRectsForRange()
415 napi_value tempValue = CreateTextRectJsValue(env, rectsForPlaceholders[index]); in OnGetRectsForPlaceholders() local
416 NAPI_CALL(env, napi_set_element(env, returnPlaceholders, index, tempValue)); in OnGetRectsForPlaceholders()
623 napi_value tempValue = CreateLineMetricsJsValue(env, vectorLineMetrics[index]); in OnGetLineMetrics() local
624 napi_set_element(env, returnLineMetrics, index, tempValue); in OnGetLineMetrics()
/foundation/distributeddatamgr/data_object/frameworks/jskitsimpl/src/common/
H A Djs_util.cpp274 napi_value tempValue; in GetValue() local
275 napi_get_null(env, &tempValue); in GetValue()
277 napi_strict_equals(env, jsValue, tempValue, &equal); in GetValue()
/foundation/multimedia/audio_framework/frameworks/js/napi/common/
H A Dnapi_param_utils.cpp827 napi_value tempValue = nullptr; in GetAudioCapturerFilter() local
828 if (napi_get_named_property(env, in, "capturerInfo", &tempValue) == napi_ok) { in GetAudioCapturerFilter()
829 GetCapturerInfo(env, &(audioCapturerFilter->capturerInfo), tempValue); in GetAudioCapturerFilter()
842 napi_value tempValue = nullptr; in GetAudioCapturerInfo() local
843 napi_status status = napi_get_named_property(env, in, "source", &tempValue); in GetAudioCapturerInfo()
845 GetValueInt32(env, intValue, tempValue); in GetAudioCapturerInfo()
864 napi_value tempValue = nullptr; in GetAudioRendererFilter() local
874 if (napi_get_named_property(env, in, "rendererInfo", &tempValue) == napi_ok) { in GetAudioRendererFilter()
875 GetRendererInfo(env, &(audioRendererFilter->rendererInfo), tempValue); in GetAudioRendererFilter()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/path_napi/
H A Djs_path.cpp629 napi_value tempValue = nullptr; in OnAddPolygon() local
633 napi_get_named_property(env, tempRunBuffer, "x", &tempValue); in OnAddPolygon()
634 bool isPositionXOk = ConvertFromJsValue(env, tempValue, positionX); in OnAddPolygon()
635 napi_get_named_property(env, tempRunBuffer, "y", &tempValue); in OnAddPolygon()
636 bool isPositionYOk = ConvertFromJsValue(env, tempValue, positionY); in OnAddPolygon()
/foundation/multimedia/player_framework/frameworks/js/avscreen_capture/
H A Davscreen_capture_napi.cpp344 int32_t tempValue; in GetWindowIDsVectorParams() local
345 napi_get_value_int32(env, temp, &tempValue); in GetWindowIDsVectorParams()
346 if (tempValue >= 0) { in GetWindowIDsVectorParams()
347 windowIDsVec.push_back(static_cast<uint64_t>(tempValue)); in GetWindowIDsVectorParams()
349 MEDIA_LOGI("JsSkipPrivacyMode skip %{public}d", tempValue); in GetWindowIDsVectorParams()

Completed in 37 milliseconds

12