/foundation/arkui/ace_engine/test/unittest/core/pattern/grid_col/ |
H A D | grid_col_test_ng.cpp | 112 int32_t propValue; in HWTEST_F() local 114 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::XS); in HWTEST_F() 115 EXPECT_EQ(propValue, prop.xs); in HWTEST_F() 116 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::SM); in HWTEST_F() 117 EXPECT_EQ(propValue, prop.sm); in HWTEST_F() 118 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::MD); in HWTEST_F() 119 EXPECT_EQ(propValue, prop.md); in HWTEST_F() 120 propValue = layoutProperty->GetPropValue(prop, V2::GridSizeType::LG); in HWTEST_F() 121 EXPECT_EQ(propValue, prop.lg); in HWTEST_F() 122 propValue in HWTEST_F() [all...] |
/foundation/communication/nfc/frameworks/js/napi/tag/ |
H A D | nfc_napi_tag.cpp | 735 napi_value propValue = nullptr;
in BuildTagTechAndExtraData() local 736 propValue = nullptr;
in BuildTagTechAndExtraData() 738 napi_get_named_property(env, parameters, VAR_TECH.c_str(), &propValue);
in BuildTagTechAndExtraData() 739 if (propValue == nullptr || napi_is_array(env, propValue, &isArray) != napi_ok || !isArray) {
in BuildTagTechAndExtraData() 745 napi_get_array_length(env, propValue, &length);
in BuildTagTechAndExtraData() 746 napi_value technologies = propValue;
in BuildTagTechAndExtraData() 754 propValue = nullptr;
in BuildTagTechAndExtraData() 755 napi_get_element(env, technologies, i, &propValue);
in BuildTagTechAndExtraData() 757 ParseInt32(env, technology, propValue);
in BuildTagTechAndExtraData() 842 napi_value propValue = nullptr; BuildTagFromWantParams() local [all...] |
H A D | nfc_napi_foreground_dispatch.cpp | 169 napi_value propValue;
in SetTagExtraData() local 178 napi_create_uint32(env, extra.GetIntValue(KITS::TagInfo::SAK, 0), &propValue);
in SetTagExtraData() 179 napi_set_named_property(env, eachElement, KITS::TagInfo::SAK, propValue);
in SetTagExtraData() 182 NAPI_AUTO_LENGTH, &propValue);
in SetTagExtraData() 183 napi_set_named_property(env, eachElement, KITS::TagInfo::ATQA, propValue);
in SetTagExtraData() 187 NAPI_AUTO_LENGTH, &propValue);
in SetTagExtraData() 188 napi_set_named_property(env, eachElement, KITS::TagInfo::APP_DATA, propValue);
in SetTagExtraData() 191 NAPI_AUTO_LENGTH, &propValue);
in SetTagExtraData() 192 napi_set_named_property(env, eachElement, KITS::TagInfo::PROTOCOL_INFO, propValue);
in SetTagExtraData() 196 NAPI_AUTO_LENGTH, &propValue);
in SetTagExtraData() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/ |
H A D | app_style_manager.cpp | 159 jerry_value_t propValue = jerry_get_property(staticStyleValue, propKey); in HandleStaticStyle() local 160 AppStyleItem *newStyleItem = AppStyleItem::GenerateFromJSValue(propKey, propValue); in HandleStaticStyle() 167 ReleaseJerryValue(propKey, propValue, VA_ARG_END_FLAG); in HandleStaticStyle() 183 jerry_value_t propValue = jerry_get_property(dynamicStyleValue, propKey); in HandleDynamicStyle() local 185 if (jerry_value_is_function(propValue)) { in HandleDynamicStyle() 188 expressionValue = JSFunction::Call(propValue, curr.GetViewModel(), nullptr, 0); in HandleDynamicStyle() 191 expressionValue = CallJSFunction(propValue, curr.GetNativeElement(), nullptr, 0); in HandleDynamicStyle() 194 lazyLoadManager->AddLazyLoadWatcher(curr.GetNativeElement(), propKey, propValue); in HandleDynamicStyle() 196 expressionValue = curr.AddWatcherItem(propKey, propValue); in HandleDynamicStyle() 207 if (expressionValue != propValue) { in HandleDynamicStyle() 263 jerry_value_t propValue = GetStyleObjFromOptions(options, type); HandleSelectors() local [all...] |
H A D | app_style.cpp | 106 jerry_value_t propValue = jerry_get_property(object, propKey); in AddItemsInLoop() local 107 AppStyleItem *newStyleItem = AppStyleItem::GenerateFromJSValue(propKey, propValue); in AddItemsInLoop() 109 ReleaseJerryValue(propKey, propValue, VA_ARG_END_FLAG); in AddItemsInLoop() 125 jerry_value_t propValue = UNDEFINED; in AddKeyFramesItemsInLoop() local 140 propValue = AddKeyFramesTransformValue(propValueFrom, propValueTo, isItemNeedToAdd, propKeyFrom); in AddKeyFramesItemsInLoop() 143 propValue = ConcatJerryString(propValueFrom, propValueTo); in AddKeyFramesItemsInLoop() 152 newStyleItem = AppStyleItem::GenerateFromJSValue(propKeyFrom, propValue); in AddKeyFramesItemsInLoop() 154 jerry_release_value(propValue); in AddKeyFramesItemsInLoop() 167 jerry_value_t propValue = UNDEFINED; in AddKeyFramesTransformValue() local 170 return propValue; in AddKeyFramesTransformValue() 276 jerry_value_t propValue; ConcatJerryString() local [all...] |
H A D | app_style_sheet.cpp | 125 jerry_value_t propValue = jerry_get_property(styleSheetObj, propName); in InitNormalSelectors() local 126 InitSelectors(&idSelectors_, propValue, false, overwrite); in InitNormalSelectors() 127 jerry_release_value(propValue); in InitNormalSelectors() 135 jerry_value_t propValue = jerry_get_property(styleSheetObj, propName); in InitNormalSelectors() local 136 InitSelectors(&classSelectors_, propValue, false, overwrite); in InitNormalSelectors() 137 jerry_release_value(propValue); in InitNormalSelectors() 145 jerry_value_t propValue = jerry_get_property(styleSheetObj, propName); in InitNormalSelectors() local 146 InitSelectors(&keyFrameSelectors_, propValue, true, overwrite); in InitNormalSelectors() 147 jerry_release_value(propValue); in InitNormalSelectors()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/ |
H A D | stylemgr_tdd_test.h | 56 uint16_t propValue) const; 65 JSValue PrepareStyleOption(const char* styleType, const char* propName, uint16_t propValue) const; 66 JSValue PrepareAttrOption(const char* propName, const char* propValue) const; 67 void AddValueToAttrOption(jerry_value_t attrOption, const char* propName, const char* propValue) const; 68 void AddStrValueToOption(jerry_value_t option, const char* propName, const char* propValue) const;
|
H A D | stylemgr_tdd_test.cpp | 94 uint16_t propValue) const in PrepareStyleSheet() 126 JSValue heightValue = jerry_create_number(propValue); in PrepareStyleSheet() 181 JSValue StyleMgrTddTest::PrepareStyleOption(const char* styleType, const char* propName, uint16_t propValue) const in PrepareStyleOption() 204 JSValue propValueObj = jerry_create_number(propValue); in PrepareStyleOption() 214 JSValue StyleMgrTddTest::PrepareAttrOption(const char* propName, const char* propValue) const in PrepareAttrOption() 237 JSValue propValueObj = jerry_create_string(reinterpret_cast<const jerry_char_t *>(propValue)); in PrepareAttrOption() 244 void StyleMgrTddTest::AddValueToAttrOption(jerry_value_t attrOption, const char* propName, const char* propValue) const in AddValueToAttrOption() 258 JSValue propValueObj = jerry_create_string(reinterpret_cast<const jerry_char_t *>(propValue)); in AddValueToAttrOption() 263 void StyleMgrTddTest::AddStrValueToOption(jerry_value_t option, const char* propName, const char* propValue) const in AddStrValueToOption() 273 JSValue propValueObj = jerry_create_string(reinterpret_cast<const jerry_char_t *>(propValue)); in AddStrValueToOption() [all...] |
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | analog_clock_component.cpp | 188 jerry_value_t propValue = jerry_get_property(obj, propName); in GetIntegerProperty() local 190 jerry_value_t target = jerry_value_to_number(propValue); in GetIntegerProperty() 193 jerry_release_value(propValue); in GetIntegerProperty() 201 jerry_value_t propValue = jerry_get_property(obj, propName); in GetBoolProperty() local 203 bool res = jerry_value_to_boolean(propValue); in GetBoolProperty() 204 jerry_release_value(propValue); in GetBoolProperty()
|
/foundation/graphic/graphic_2d/rosen/modules/graphic_2d_configure/src/ |
H A D | graphic_2d_xml_parser.cpp | 165 std::string propValue = "";
in ExtractPropertyValue() local 174 propValue = reinterpret_cast<const char*>(tempValue);
in ExtractPropertyValue() 179 return propValue;
in ExtractPropertyValue()
|
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/napi/ |
H A D | napi_zlib_common.cpp | 93 void SetNamedProperty(napi_env env, napi_value obj, const char *propName, const int propValue) in SetNamedProperty() argument 96 napi_create_int32(env, propValue, &prop); in SetNamedProperty()
|
H A D | napi_zlib_common.h | 52 void SetNamedProperty(napi_env env, napi_value obj, const char *propName, const int propValue);
|
/foundation/arkui/napi/sample/native_module_systemtest/ |
H A D | js_test_object_napi.cpp | 95 napi_value propValue = nullptr; in AddReturnedStatus() local 102 env, expected_message, NAPI_AUTO_LENGTH, &propValue)); in AddReturnedStatus() 103 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, key, propValue)); in AddReturnedStatus()
|
/foundation/multimedia/audio_framework/services/audio_service/server/src/config/ |
H A D | audio_param_parser.cpp | 158 std::string propValue = ""; in ExtractPropertyValue() local 166 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue() 170 return propValue; in ExtractPropertyValue()
|
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/config/ |
H A D | audio_strategy_router_parser.cpp | 105 std::string propValue = ""; in ExtractPropertyValue() local 113 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue() 117 return propValue; in ExtractPropertyValue()
|
H A D | audio_device_parser.cpp | 175 std::string propValue = ""; in ExtractPropertyValue() local 183 propValue = reinterpret_cast<const char*>(tempValue); in ExtractPropertyValue() 187 return propValue; in ExtractPropertyValue()
|
/foundation/arkui/ace_engine_lite/frameworks/native_engine/jsi/ |
H A D | jsi.cpp | 367 JSIValue propValue = GetNamedProperty(object, propName); in GetNumberProperty() local 368 double res = ValueToNumber(propValue); in GetNumberProperty() 369 ReleaseValue(propValue); in GetNumberProperty() 379 JSIValue propValue = GetNamedProperty(object, propName); in GetBooleanProperty() local 380 bool res = ValueToBoolean(propValue); in GetBooleanProperty() 381 ReleaseValue(propValue); in GetBooleanProperty() 391 JSIValue propValue = GetNamedProperty(object, propName); in GetStringProperty() local 392 char *res = ValueToString(propValue); in GetStringProperty() 393 ReleaseValue(propValue); in GetStringProperty() 403 JSIValue propValue in GetStringPropertyWithBufferSize() local [all...] |
/foundation/resourceschedule/resource_schedule_service/ressched_executor/plugins/socperf_executor_plugin/framework/src/ |
H A D | socperf_executor_config.cpp | 363 char* propValue = reinterpret_cast<char*>(xmlGetProp(xmlNode, reinterpret_cast<const xmlChar*>(propName))); in GetXmlIntProp() local 364 if (propValue != nullptr && IsNumber(propValue)) { in GetXmlIntProp() 365 ret = atoi(propValue); in GetXmlIntProp() 367 if (propValue != nullptr) { in GetXmlIntProp() 368 xmlFree(propValue); in GetXmlIntProp()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/context/ |
H A D | js_ability_impl.cpp | 372 jerry_value_t propValue = jerry_create_number(errorCode); in InvokeOnRestoreData() local 373 jerry_value_t setResult = jerry_set_property(args[0], propName, propValue); in InvokeOnRestoreData() 379 ReleaseJerryValue(propName, propValue, setResult, args[0], VA_ARG_END_FLAG); in InvokeOnRestoreData() 383 ReleaseJerryValue(propName, propValue, setResult, args[0], onRestoreDataFunction, VA_ARG_END_FLAG); in InvokeOnRestoreData()
|
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/ |
H A D | napi_data_ability_operation.h | 36 void SetNamedProperty(napi_env env, napi_value obj, const char *propName, int propValue);
|
/foundation/ability/form_fwk/frameworks/js/napi/form_provider/ |
H A D | js_form_provider.cpp | 96 napi_value propValue = nullptr; in GetStringByProp() local 103 napi_get_named_property(env, value, prop.c_str(), &propValue); in GetStringByProp() 104 if (propValue == nullptr) { in GetStringByProp() 108 napi_typeof(env, propValue, &valueType); in GetStringByProp() 114 if (napi_get_value_string_utf8(env, propValue, nullptr, 0, &size) != napi_ok) { in GetStringByProp() 120 if (napi_get_value_string_utf8(env, propValue, result.data(), (size + 1), &size) != napi_ok) { in GetStringByProp()
|
/foundation/ability/form_fwk/frameworks/js/napi/formProvider/ |
H A D | napi_form_provider.cpp | 87 napi_value propValue = nullptr; in GetStringByProp() local 94 napi_get_named_property(env, value, prop.c_str(), &propValue); in GetStringByProp() 95 if (propValue == nullptr) { in GetStringByProp() 99 napi_typeof(env, propValue, &valueType); in GetStringByProp() 105 if (napi_get_value_string_utf8(env, propValue, nullptr, 0, &size) != napi_ok) { in GetStringByProp() 111 if (napi_get_value_string_utf8(env, propValue, result.data(), (size + 1), &size) != napi_ok) { in GetStringByProp()
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/ |
H A D | camera_input_napi.cpp | 113 napi_value propValue; in OnErrorCallback() local 115 napi_create_int32(env_, errorType, &propValue); in OnErrorCallback() 117 napi_set_named_property(env_, result, "code", propValue); in OnErrorCallback() 134 napi_value propValue; in OnCameraOcclusionDetectedCallback() local 138 napi_get_boolean(env_, isCameraOcclusion == 1 ? true : false, &propValue); in OnCameraOcclusionDetectedCallback() 139 napi_set_named_property(env_, result[PARAM1], "isCameraOccluded", propValue); in OnCameraOcclusionDetectedCallback()
|
H A D | camera_manager_napi.cpp | 227 napi_value propValue; in OnCameraStatusCallback() local 246 napi_create_int64(env_, jsCameraStatus, &propValue); in OnCameraStatusCallback() 247 napi_set_named_property(env_, result[PARAM1], "status", propValue); in OnCameraStatusCallback() 382 napi_value propValue; in OnTorchStatusChangeCallback() local 389 napi_get_boolean(env_, torchStatusInfo.isTorchAvailable, &propValue); in OnTorchStatusChangeCallback() 390 napi_set_named_property(env_, result[PARAM1], "isTorchAvailable", propValue); in OnTorchStatusChangeCallback() 391 napi_get_boolean(env_, torchStatusInfo.isTorchActive, &propValue); in OnTorchStatusChangeCallback() 392 napi_set_named_property(env_, result[PARAM1], "isTorchActive", propValue); in OnTorchStatusChangeCallback() 393 napi_create_double(env_, torchStatusInfo.torchLevel, &propValue); in OnTorchStatusChangeCallback() 394 napi_set_named_property(env_, result[PARAM1], "torchLevel", propValue); in OnTorchStatusChangeCallback() 461 napi_value propValue = nullptr; OnFoldStatusChangedCallback() local [all...] |
/foundation/multimedia/audio_framework/frameworks/js/napi/common/ |
H A D | napi_param_utils.cpp | 969 int32_t propValue = -1; in GetAudioInterrupt() local 970 napi_status status = NapiParamUtils::GetValueInt32(env, "contentType", propValue, in); in GetAudioInterrupt() 972 audioInterrupt.contentType = static_cast<ContentType>(propValue); in GetAudioInterrupt() 974 status = NapiParamUtils::GetValueInt32(env, "streamUsage", propValue, in); in GetAudioInterrupt() 976 audioInterrupt.streamUsage = static_cast<StreamUsage>(propValue); in GetAudioInterrupt() 1091 napi_value propValue = nullptr; in GetEffectPropertyArray() local 1093 status = napi_get_named_property(env, element, "effectClass", &propValue); in GetEffectPropertyArray() 1095 prop.effectClass = GetStringArgument(env, propValue); in GetEffectPropertyArray() 1097 status = napi_get_named_property(env, element, "effectProp", &propValue); in GetEffectPropertyArray() 1099 prop.effectProp = GetStringArgument(env, propValue); in GetEffectPropertyArray() 1132 napi_value propValue = nullptr; GetEnhancePropertyArray() local [all...] |