/foundation/communication/netstack/utils/napi_utils/src/ |
H A D | napi_utils.cpp | 69 napi_valuetype GetValueType(napi_env env, napi_value value) in GetValueType() argument 71 if (value == nullptr) { in GetValueType() 76 NAPI_CALL_BASE(env, napi_typeof(env, value, &valueType), napi_undefined); in GetValueType() 115 napi_value value = nullptr; in GetNamedProperty() local 116 NAPI_CALL(env, napi_get_named_property(env, object, propertyName.c_str(), &value)); in GetNamedProperty() 117 return value; in GetNamedProperty() 120 void SetNamedProperty(napi_env env, napi_value object, const std::string &name, napi_value value) in SetNamedProperty() argument 126 napi_set_named_property(env, object, name.c_str(), value); in SetNamedProperty() 156 napi_value value = nullptr; in CreateUint32() local 157 if (napi_create_uint32(env, code, &value) ! in CreateUint32() 166 napi_value value = nullptr; CreateUint64() local 173 GetInt64FromValue(napi_env env, napi_value value) GetInt64FromValue() argument 188 napi_value value = GetNamedProperty(env, object, propertyName); GetInt64Property() local 192 GetUint32FromValue(napi_env env, napi_value value) GetUint32FromValue() argument 208 napi_value value = GetNamedProperty(env, object, propertyName); GetUint32Property() local 212 SetUint32Property(napi_env env, napi_value object, const std::string &name, uint32_t value) SetUint32Property() argument 222 SetUint64Property(napi_env env, napi_value object, const std::string &name, uint64_t value) SetUint64Property() argument 235 napi_value value = nullptr; CreateInt32() local 242 GetInt32FromValue(napi_env env, napi_value value) GetInt32FromValue() argument 258 napi_value value = GetNamedProperty(env, object, propertyName); GetInt32Property() local 262 SetInt32Property(napi_env env, napi_value object, const std::string &name, int32_t value) SetInt32Property() argument 272 SetDoubleProperty(napi_env env, napi_value object, const std::string &name, double value) SetDoubleProperty() argument 287 napi_value value = nullptr; CreateStringUtf8() local 294 GetStringFromValueUtf8(napi_env env, napi_value value) GetStringFromValueUtf8() argument 325 napi_value value = GetNamedProperty(env, object, propertyName); GetStringPropertyUtf8() local 329 NapiValueToString(napi_env env, napi_value value) NapiValueToString() argument 366 SetStringPropertyUtf8(napi_env env, napi_value object, const std::string &name, const std::string &value) SetStringPropertyUtf8() argument 376 ValueIsArrayBuffer(napi_env env, napi_value value) ValueIsArrayBuffer() argument 386 GetInfoFromArrayBufferValue(napi_env env, napi_value value, size_t *length) GetInfoFromArrayBufferValue() argument 464 napi_value value = GetNamedProperty(env, object, propertyName); GetBooleanProperty() local 470 SetBooleanProperty(napi_env env, napi_value object, const std::string &name, bool value) SetBooleanProperty() argument 481 GetBoolean(napi_env env, bool value) GetBoolean() argument 488 GetBooleanFromValue(napi_env env, napi_value value) GetBooleanFromValue() argument 522 SetArrayElement(napi_env env, napi_value array, uint32_t index, napi_value value) SetArrayElement() argument 527 IsArray(napi_env env, napi_value value) IsArray() argument 534 SetArrayProperty(napi_env env, napi_value object, const std::string &name, napi_value value) SetArrayProperty() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/ |
H A D | badge_layout_property.h | 38 auto value = MakeRefPtr<BadgeLayoutProperty>(); variable 39 value->LayoutProperty::UpdateLayoutProperty(AceType::DynamicCast<LayoutProperty>(this)); 40 value->propBadgeValue_ = CloneBadgeValue(); 41 value->propBadgeCount_ = CloneBadgeCount(); 42 value->propBadgeMaxCount_ = CloneBadgeMaxCount(); 43 value->propBadgePosition_ = CloneBadgePosition(); 44 value->propBadgePositionX_ = CloneBadgePositionX(); 45 value->propBadgePositionY_ = CloneBadgePositionY(); 46 value->propIsPositionXy_ = CloneIsPositionXy(); 48 value [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/common_napi_utils/ |
H A D | common_napi_utils.h | 45 static int32_t GetCInt32(napi_value value, napi_env env); 46 static int64_t GetCInt64(napi_value value, napi_env env); 47 static napi_value CreateBoolean(napi_env env, bool value); 48 static bool GetBool(napi_env env, napi_value value); 49 static napi_value CreateDouble(napi_env env, double value); 50 static double GetDouble(napi_env env, napi_value value); 51 static size_t GetCString(napi_value value, napi_env env, char* buf, size_t size); 53 static std::string GetStringFromValueUtf8(napi_env env, napi_value value); 56 static napi_valuetype GetValueType(napi_env env, napi_value value); 62 static void SetNamedProperty(napi_env env, napi_value object, const std::string& propertyName, napi_value value); [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_layout_property.h | 35 auto value = MakeRefPtr<GridLayoutProperty>(); variable 36 value->LayoutProperty::UpdateLayoutProperty(DynamicCast<LayoutProperty>(this)); 37 value->propRowsTemplate_ = CloneRowsTemplate(); 38 value->propColumnsTemplate_ = CloneColumnsTemplate(); 39 value->propRowsGap_ = CloneRowsGap(); 40 value->propColumnsGap_ = CloneColumnsGap(); 41 value->propCachedCount_ = CloneCachedCount(); 42 value->propShowCachedItems_ = CloneShowCachedItems(); 43 value->propGridDirection_ = CloneGridDirection(); 44 value [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_layout_property.h | 60 auto value = MakeRefPtr<MenuLayoutProperty>(); variable 61 value->LayoutProperty::UpdateLayoutProperty(DynamicCast<LayoutProperty>(this)); 62 value->propIsRectInTarget_ = CloneIsRectInTarget(); 63 value->propMenuOffset_ = CloneMenuOffset(); 64 value->propTargetSize_ = CloneTargetSize(); 65 value->propPositionOffset_ = ClonePositionOffset(); 66 value->propMenuItemFontStyle_ = CloneMenuItemFontStyle(); 67 value->propTitle_ = CloneTitle(); 68 value->propMenuPlacement_ = CloneMenuPlacement(); 69 value [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/ |
H A D | progress_model_impl.cpp | 28 void ProgressModelImpl::Create(double min, double value, double cachedValue, double max, NG::ProgressType type) in Create() argument 31 min, value, cachedValue, max, static_cast<ProgressType>(type)); in Create() 49 void ProgressModelImpl::SetValue(double value) in SetValue() argument 59 if (value > maxValue_) { in SetValue() 60 LOGE("value is lager than total , set value euqals total"); in SetValue() 61 value = maxValue_; in SetValue() 63 progress->SetValue(value); in SetValue() 66 void ProgressModelImpl::SetColor(const Color& value) in SetColor() argument 76 track->SetSelectColor(value); in SetColor() 79 SetBackgroundColor(const Color& value) SetBackgroundColor() argument 96 SetStrokeWidth(const Dimension& value) SetStrokeWidth() argument 108 SetScaleCount(int32_t value) SetScaleCount() argument 122 SetScaleWidth(const Dimension& value) SetScaleWidth() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_overlay_modifier.h | 46 void SetCursorColor(Color& value); 47 void SetCursorWidth(float value); 48 void SetSelectedBackGroundColor(Color& value); 49 void SetCursorVisible(bool value); 50 void SetContentSize(SizeF& value); 51 void SetContentOffset(OffsetF& value); 52 void SetCursorOffset(const OffsetF& value); 53 void SetInputStyle(InputStyle& value); 54 void SetFrameSize(const SizeF& value); 55 void SetCurrentOffset(float value); [all...] |
/foundation/distributeddatamgr/preferences/interfaces/inner_api/include/ |
H A D | preferences_value.h | 44 bool operator==(const BigInt &value) const in operator ==() 46 return sign_ == value.sign_ && words_ == value.words_; in operator ==() 79 * This constructor is used to convert the int input parameter to a value of type PreferencesValue. 81 * @param value Indicates an int input parameter. 83 PREF_API_EXPORT PreferencesValue(int value); 88 * This constructor is used to convert the int64_t input parameter to a value of type PreferencesValue. 90 * @param value Indicates a int64_t input parameter. 92 PREF_API_EXPORT PreferencesValue(int64_t value); 97 * This constructor is used to convert the int64_t input parameter to a value o [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/image/ |
H A D | image_brightness_test.cpp | 32 ArkUI_NumberValue value[] = {{.f32 = brightnessValue}}; in TestImageBrightness001() local 33 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestImageBrightness001() 36 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_BRIGHTNESS)->value[PARAM_0].f32, brightnessValue); in TestImageBrightness001() 44 ArkUI_NumberValue value[] = {{.f32 = brightnessValue}}; in TestImageBrightness002() local 45 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestImageBrightness002() 48 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_BRIGHTNESS)->value[PARAM_0].f32, brightnessValue); in TestImageBrightness002() 56 ASSERT_EQ(nodeAPI->getAttribute(image, NODE_BRIGHTNESS)->value[PARAM_0].f32, brightnessValue); in TestImageBrightness003() 64 ArkUI_NumberValue value[] in TestImageBrightness004() local 76 ArkUI_NumberValue value[] = {{.f32 = brightnessValue}}; TestImageBrightness005() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/slider/ |
H A D | slider_value_test.cpp | 24 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_VALUE)->value[PARAM_0].f32, PARAM_0); in TestSliderValue001() 32 ArkUI_NumberValue value[] = {{.f32 = progressValue}}; in TestSliderValue002() local 33 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderValue002() 36 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_VALUE)->value[PARAM_0].f32, progressValue); in TestSliderValue002() 52 ArkUI_NumberValue value[] = {{.f32 = progressValue}}; in TestSliderValue003() local 53 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderValue003() 56 ASSERT_NE(nodeAPI->getAttribute(slider, NODE_SLIDER_VALUE)->value[PARAM_0].f32, progressValue); in TestSliderValue003() 64 ArkUI_NumberValue value[] in TestSliderValue004() local 77 ArkUI_NumberValue value[] = {{.f32 = progressValue}}; TestSliderValue005() local [all...] |
H A D | slider_step_test.cpp | 28 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_STEP)->value[PARAM_0].f32, defaultValue); in TestSliderStep001() 36 ArkUI_NumberValue value[] = {{.f32 = stepValue}}; in TestSliderStep002() local 37 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderStep002() 40 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_STEP)->value[PARAM_0].f32, stepValue); in TestSliderStep002() 48 ArkUI_NumberValue value[] = {{.f32 = stepValue}}; in TestSliderStep003() local 49 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderStep003() 52 ASSERT_NE(nodeAPI->getAttribute(slider, NODE_SLIDER_STEP)->value[PARAM_0].f32, stepValue); in TestSliderStep003() 60 ArkUI_NumberValue value[] in TestSliderStep004() local 72 ArkUI_NumberValue value[] = {{.f32 = stepValue}}; TestSliderStep005() local [all...] |
H A D | slider_showsteps_test.cpp | 24 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_SHOW_STEPS)->value[PARAM_0].i32, 0); in TestSliderShowSteps001() 32 ArkUI_NumberValue value[] = {{.i32 = showSteps}}; in TestSliderShowSteps002() local 33 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderShowSteps002() 36 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_SHOW_STEPS)->value[PARAM_0].i32, showSteps); in TestSliderShowSteps002() 44 ArkUI_NumberValue value[] = {{.i32 = showSteps}}; in TestSliderShowSteps003() local 45 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderShowSteps003() 48 ASSERT_NE(nodeAPI->getAttribute(slider, NODE_SLIDER_SHOW_STEPS)->value[PARAM_0].i32, showSteps); in TestSliderShowSteps003() 56 ArkUI_NumberValue value[] in TestSliderShowSteps004() local 68 ArkUI_NumberValue value[] = {{.i32 = showSteps}}; TestSliderShowSteps005() local [all...] |
H A D | slider_style_test.cpp | 23 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_STYLE)->value[PARAM_0].i32, ARKUI_SLIDER_STYLE_OUT_SET); in TestSliderStyle001() 31 ArkUI_NumberValue value[] = {{.i32 = styleValue}}; in TestSliderStyle002() local 32 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderStyle002() 35 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_STYLE)->value[PARAM_0].i32, styleValue); in TestSliderStyle002() 43 ArkUI_NumberValue value[] = {{.i32 = styleValue}}; in TestSliderStyle003() local 44 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderStyle003() 47 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_STYLE)->value[PARAM_0].i32, styleValue); in TestSliderStyle003() 55 ArkUI_NumberValue value[] in TestSliderStyle004() local 67 ArkUI_NumberValue value[] = {{.i32 = styleValue}}; TestSliderStyle005() local [all...] |
H A D | slider_reverse_test.cpp | 23 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_REVERSE)->value[PARAM_0].i32, 0); in TestSliderReverse001() 31 ArkUI_NumberValue value[] = {{.i32 = reverseValue}}; in TestSliderReverse002() local 32 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderReverse002() 35 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_REVERSE)->value[PARAM_0].i32, reverseValue); in TestSliderReverse002() 43 ArkUI_NumberValue value[] = {{.i32 = reverseValue}}; in TestSliderReverse003() local 44 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderReverse003() 47 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_REVERSE)->value[PARAM_0].i32, reverseValue); in TestSliderReverse003() 55 ArkUI_NumberValue value[] in TestSliderReverse004() local 67 ArkUI_NumberValue value[] = {{.i32 = reverseValue}}; TestSliderReverse005() local [all...] |
H A D | slider_direction_test.cpp | 25 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_DIRECTION)->value[PARAM_0].i32, in TestSliderDirection001() 34 ArkUI_NumberValue value[] = {{.i32 = directionValue}}; in TestSliderDirection002() local 35 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderDirection002() 38 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_DIRECTION)->value[PARAM_0].i32, directionValue); in TestSliderDirection002() 46 ArkUI_NumberValue value[] = {{.i32 = directionValue}}; in TestSliderDirection003() local 47 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderDirection003() 50 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_DIRECTION)->value[PARAM_0].i32, directionValue); in TestSliderDirection003() 58 ArkUI_NumberValue value[] in TestSliderDirection004() local 70 ArkUI_NumberValue value[] = {{.i32 = directionValue}}; TestSliderDirection005() local [all...] |
H A D | slider_max_test.cpp | 26 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_MAX_VALUE)->value[PARAM_0].f32, SIZE_100); in TestSliderMax001() 34 ArkUI_NumberValue value[] = {{.f32 = maxValue}}; in TestSliderMax002() local 35 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderMax002() 38 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_MAX_VALUE)->value[PARAM_0].f32, maxValue); in TestSliderMax002() 46 ArkUI_NumberValue value[] = {{.f32 = maxValue}}; in TestSliderMax003() local 47 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderMax003() 50 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_MAX_VALUE)->value[PARAM_0].f32, maxValue); in TestSliderMax003() 58 ArkUI_NumberValue value[] in TestSliderMax004() local 70 ArkUI_NumberValue value[] = {{.f32 = maxValue}}; TestSliderMax005() local [all...] |
H A D | slider_min_test.cpp | 24 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_MIN_VALUE)->value[PARAM_0].f32, PARAM_0); in TestSliderMin001() 32 ArkUI_NumberValue value[] = {{.f32 = minValue}}; in TestSliderMin002() local 33 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderMin002() 36 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_MIN_VALUE)->value[PARAM_0].f32, minValue); in TestSliderMin002() 44 ArkUI_NumberValue value[] = {{.f32 = minValue}}; in TestSliderMin003() local 45 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestSliderMin003() 48 ASSERT_EQ(nodeAPI->getAttribute(slider, NODE_SLIDER_MIN_VALUE)->value[PARAM_0].f32, minValue); in TestSliderMin003() 56 ArkUI_NumberValue value[] in TestSliderMin004() local 68 ArkUI_NumberValue value[] = {{.f32 = minValue}}; TestSliderMin005() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/text/ |
H A D | text_copyoption_test.cpp | 23 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_COPY_OPTION)->value[PARAM_0].i32, ARKUI_COPY_OPTIONS_NONE); in TestTextCopyOption001() 30 ArkUI_NumberValue value[] = {{.i32 = ARKUI_COPY_OPTIONS_IN_APP}}; in TestTextCopyOption002() local 31 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestTextCopyOption002() 34 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_COPY_OPTION)->value[PARAM_0].i32, ARKUI_COPY_OPTIONS_IN_APP); in TestTextCopyOption002() 41 ArkUI_NumberValue value[] = {{.i32 = ARKUI_COPY_OPTIONS_LOCAL_DEVICE}}; in TestTextCopyOption003() local 42 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestTextCopyOption003() 45 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_COPY_OPTION)->value[PARAM_0].i32, ARKUI_COPY_OPTIONS_LOCAL_DEVICE); in TestTextCopyOption003() 52 ArkUI_NumberValue value[] in TestTextCopyOption004() local 64 ArkUI_NumberValue value[] = {{.i32 = exceptionValue}}; TestTextCopyOption005() local [all...] |
H A D | text_textshadow_test.cpp | 23 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_TEXT_SHADOW)->value[PARAM_1].i32, ARKUI_SHADOW_TYPE_COLOR); in TestTextTextShadow001() 34 ArkUI_NumberValue value[] = { in TestTextTextShadow002() local 36 ArkUI_AttributeItem valueItem = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestTextTextShadow002() 39 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_TEXT_SHADOW)->value[PARAM_0].f32, radius); in TestTextTextShadow002() 40 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_TEXT_SHADOW)->value[PARAM_1].i32, ARKUI_SHADOW_TYPE_COLOR); in TestTextTextShadow002() 41 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_TEXT_SHADOW)->value[PARAM_2].u32, colour); in TestTextTextShadow002() 42 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_TEXT_SHADOW)->value[PARAM_3].f32, xDeviation); in TestTextTextShadow002() 43 ASSERT_EQ(nodeAPI->getAttribute(text, NODE_TEXT_TEXT_SHADOW)->value[PARAM_4].f32, yDeviation); in TestTextTextShadow002() 55 ArkUI_NumberValue value[] in TestTextTextShadow003() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/commonattrs/ |
H A D | commonattrs_direction_test.cpp | 26 ArkUI_NumberValue value[] = {{.i32 = direction}}; in TestCommonAttrsDirection001() local 27 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestCommonAttrsDirection001() 30 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_DIRECTION)->value[PARAM_0].u32, direction); in TestCommonAttrsDirection001() 38 ArkUI_NumberValue value[] = {{.i32 = direction}}; in TestCommonAttrsDirection002() local 39 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestCommonAttrsDirection002() 42 ASSERT_EQ(nodeAPI->getAttribute(row, NODE_DIRECTION)->value[PARAM_0].u32, direction); in TestCommonAttrsDirection002() 50 ArkUI_NumberValue value[] = {{.i32 = direction}}; in TestCommonAttrsDirection003() local 51 ArkUI_AttributeItem value_item = {value, sizeo in TestCommonAttrsDirection003() 70 ArkUI_NumberValue value[] = {{.i32 = direction}}; TestCommonAttrsDirection005() local [all...] |
/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/customcomponent/ |
H A D | customcomponent_direction_test.cpp | 26 ArkUI_NumberValue value[] = {{.i32 = direction}}; in TestCustomComponentDirection001() local 27 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestCustomComponentDirection001() 30 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_DIRECTION)->value[PARAM_0].u32, direction); in TestCustomComponentDirection001() 38 ArkUI_NumberValue value[] = {{.i32 = direction}}; in TestCustomComponentDirection002() local 39 ArkUI_AttributeItem value_item = {value, sizeof(value) / sizeof(ArkUI_NumberValue)}; in TestCustomComponentDirection002() 42 ASSERT_EQ(nodeAPI->getAttribute(custom, NODE_DIRECTION)->value[PARAM_0].u32, direction); in TestCustomComponentDirection002() 50 ArkUI_NumberValue value[] = {{.i32 = direction}}; in TestCustomComponentDirection003() local 51 ArkUI_AttributeItem value_item = {value, sizeo in TestCustomComponentDirection003() 70 ArkUI_NumberValue value[] = {{.i32 = direction}}; TestCustomComponentDirection005() local [all...] |
/foundation/arkui/ace_engine/frameworks/base/json/ |
H A D | uobject.h | 39 void AddItemToObject(const std::string& key, const char* value); 40 void AddItemToObject(const std::string& key, const std::string& value); 41 void AddItemToObject(const std::string& key, size_t value); 42 void AddItemToObject(const std::string& key, int32_t value); 43 void AddItemToObject(const std::string& key, int64_t value); 44 void AddItemToObject(const std::string& key, double value); 45 void AddItemToObject(const std::string& key, bool value); 46 void AddItemToObject(const std::string& key, const std::shared_ptr<UObject>& value); 66 void WriteChar(char value); 67 void WriteInt32(int32_t value); [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_collection_ffi.cpp | 23 value = source.value; in NavigationItem() 61 void FFICJCommonVectorStringSetElement(VectorStringHandle vec, int64_t index, const char* value) in FFICJCommonVectorStringSetElement() argument 64 (*actualVec)[index] = value; in FFICJCommonVectorStringSetElement() 67 // never free return value in cj. 75 void FFICJCommonVectorInt32SetElement(VectorInt32Handle vec, int64_t index, int32_t value) in FFICJCommonVectorInt32SetElement() argument 78 (*actualVec)[index] = value; in FFICJCommonVectorInt32SetElement() 88 void FFICJCommonVectorInt64SetElement(VectorInt64Handle vec, int64_t index, int64_t value) in FFICJCommonVectorInt64SetElement() argument 91 (*actualVec)[index] = value; in FFICJCommonVectorInt64SetElement() 101 void FFICJCommonVectorUInt8SetElement(VectorUInt8Handle vec, int64_t index, uint8_t value) in FFICJCommonVectorUInt8SetElement() argument 114 FFICJCommonVectorUInt32SetElement(VectorUInt32Handle vec, int64_t index, uint32_t value) FFICJCommonVectorUInt32SetElement() argument 127 FFICJCommonVectorFloat32SetElement(VectorFloat32Handle vec, int64_t index, float value) FFICJCommonVectorFloat32SetElement() argument 140 FFICJCommonVectorFloat64SetElement(VectorFloat64Handle vec, int64_t index, double value) FFICJCommonVectorFloat64SetElement() argument 153 FFICJCommonVectorBoolSetElement(VectorBoolHandle vec, int64_t index, bool value) FFICJCommonVectorBoolSetElement() argument 166 FFICJCommonVectorNavigationItemSetElement(VectorNavigationItemHandle vec, int64_t index, NavigationItemFFI value) FFICJCommonVectorNavigationItemSetElement() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/capi/ |
H A D | avformat_capi_mock.cpp | 28 bool AVFormatCapiMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() argument 31 return OH_AVFormat_SetIntValue(format_, key.data(), value); in PutIntValue() 36 bool AVFormatCapiMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() argument 39 return OH_AVFormat_GetIntValue(format_, key.data(), &value); in GetIntValue() 44 bool AVFormatCapiMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() argument 47 return OH_AVFormat_SetStringValue(format_, key.data(), std::string(value).c_str()); in PutStringValue() 52 bool AVFormatCapiMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() argument 57 value = out; in GetStringValue() 109 bool AVFormatCapiMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() argument 112 return OH_AVFormat_SetLongValue(format_, key.data(), value); in PutLongValue() 117 GetLongValue(const std::string_view &key, int64_t &value) GetLongValue() argument 125 PutFloatValue(const std::string_view &key, float value) PutFloatValue() argument 133 GetFloatValue(const std::string_view &key, float &value) GetFloatValue() argument 141 PutDoubleValue(const std::string_view &key, double value) PutDoubleValue() argument 149 GetDoubleValue(const std::string_view &key, double &value) GetDoubleValue() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/common/common_mock/avformat/inner/ |
H A D | avformat_inner_mock.cpp | 22 bool AVFormatInnerMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() argument 24 return format_.PutIntValue(key, value); in PutIntValue() 27 bool AVFormatInnerMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() argument 29 return format_.GetIntValue(key, value); in GetIntValue() 32 bool AVFormatInnerMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() argument 34 return format_.PutStringValue(key, value); in PutStringValue() 37 bool AVFormatInnerMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() argument 39 return format_.GetStringValue(key, value); in GetStringValue() 56 bool AVFormatInnerMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() argument 58 return format_.PutLongValue(key, value); in PutLongValue() 61 GetLongValue(const std::string_view &key, int64_t &value) GetLongValue() argument 66 PutFloatValue(const std::string_view &key, float value) PutFloatValue() argument 71 GetFloatValue(const std::string_view &key, float &value) GetFloatValue() argument 76 PutDoubleValue(const std::string_view &key, double value) PutDoubleValue() argument 81 GetDoubleValue(const std::string_view &key, double &value) GetDoubleValue() argument [all...] |