Home
last modified time | relevance | path

Searched refs:ValueType (Results 1 – 25 of 172) sorted by relevance

1234567

/foundation/window/window_manager/window_scene/session_manager/src/
Dwindow_scene_config.cpp29 const std::map<std::string, WindowSceneConfig::ValueType> WindowSceneConfig::configItemTypeMap_ = {
30 { "maxAppWindowNumber", WindowSceneConfig::ValueType::INTS },
31 { "modeChangeHotZones", WindowSceneConfig::ValueType::INTS },
32 { "duration", WindowSceneConfig::ValueType::INTS },
33 { "durationIn", WindowSceneConfig::ValueType::INTS },
34 { "durationOut", WindowSceneConfig::ValueType::INTS },
35 { "defaultWindowMode", WindowSceneConfig::ValueType::INTS },
36 { "dragFrameGravity", WindowSceneConfig::ValueType::INTS },
37 { "floatingBottomPosY", WindowSceneConfig::ValueType::INTS },
38 { "defaultFloatingWindow", WindowSceneConfig::ValueType::INTS },
[all …]
/foundation/window/window_manager/wmserver/src/
Dwindow_manager_config.cpp28 const std::map<std::string, WindowManagerConfig::ValueType> WindowManagerConfig::configItemTypeMap_…
29 { "maxAppWindowNumber", WindowManagerConfig::ValueType::INTS },
30 { "modeChangeHotZones", WindowManagerConfig::ValueType::INTS },
31 { "duration", WindowManagerConfig::ValueType::INTS },
32 { "durationIn", WindowManagerConfig::ValueType::INTS },
33 { "durationOut", WindowManagerConfig::ValueType::INTS },
34 { "defaultWindowMode", WindowManagerConfig::ValueType::INTS },
35 { "dragFrameGravity", WindowManagerConfig::ValueType::INTS },
36 { "floatingBottomPosY", WindowManagerConfig::ValueType::INTS },
37 { "defaultFloatingWindow", WindowManagerConfig::ValueType::INTS },
[all …]
/foundation/window/window_manager/utils/include/
Dxml_config_base.h28 enum class ValueType { enum
40 ValueType type_ = ValueType::UNDIFINED;
65 case ValueType::MAP: in ClearValue()
69 case ValueType::STRING: in ClearValue()
72 case ValueType::INTS: in ClearValue()
76 case ValueType::FLOATS: in ClearValue()
80 case ValueType::STRINGS: in ClearValue()
96 case ValueType::MAP:
99 case ValueType::BOOL:
102 case ValueType::STRING:
[all …]
/foundation/multimedia/histreamer/engine/include/plugin/common/
Dany.h117 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
118 … std::is_copy_constructible<decay_t<ValueType>>::value,
120 Any(ValueType&& value) // NOLINT: explicit in Any()
122 DoEmplace<decay_t<ValueType>>(std::forward<ValueType>(value)); in Any()
146 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
147 … std::is_copy_constructible<decay_t<ValueType>>::value,
149 Any& operator=(ValueType&& value)
151 *this = Any(std::forward<ValueType>(value));
168 template <typename ValueType, typename... Args,
169 enable_if_t<std::is_constructible<decay_t<ValueType>, Args...>::value &&
[all …]
Dplugin_attr_desc.h26 const ValueType g_emptyString = std::string();
27 const ValueType g_u8Def = (uint8_t)0;
28 const ValueType g_u32Def = (uint32_t)0;
29 const ValueType g_d32Def = (int32_t)0;
30 const ValueType g_d64Def = (int64_t)0;
31 const ValueType g_u64Def = (uint64_t)0;
32 const ValueType g_doubleDef = (double)0.0;
33 const ValueType g_seekableDef = Seekable::INVALID;
34 const ValueType g_srcInputTypedef = SrcInputType::UNKNOWN;
35 const ValueType g_unknown = nullptr;
[all …]
/foundation/graphic/graphic_2d/utils/option_parser/export/
Doption_parser.h37 return AddOption(shortOpt, longOpt, &result, Option::ValueType::i32);
43 return AddOption(shortOpt, longOpt, &result, Option::ValueType::u32);
49 return AddOption(shortOpt, longOpt, &result, Option::ValueType::i64);
55 return AddOption(shortOpt, longOpt, &result, Option::ValueType::f64);
61 return AddOption(shortOpt, longOpt, &result, Option::ValueType::str);
67 return AddOption(shortOpt, longOpt, &result, Option::ValueType::bol);
79 return AddArguments(&result, Argument::ValueType::i32);
85 return AddArguments(&result, Argument::ValueType::u32);
91 return AddArguments(&result, Argument::ValueType::i64);
97 return AddArguments(&result, Argument::ValueType::f64);
[all …]
/foundation/graphic/graphic_2d/utils/option_parser/src/
Doption_parser.cpp36 case Argument::ValueType::i32: in ParseArgument()
39 case Argument::ValueType::u32: in ParseArgument()
42 case Argument::ValueType::i64: in ParseArgument()
45 case Argument::ValueType::f64: in ParseArgument()
48 case Argument::ValueType::str: in ParseArgument()
89 if (option.type == Option::ValueType::bol) { in ParseShortOption()
99 case Option::ValueType::i32: in ParseShortOption()
102 case Option::ValueType::u32: in ParseShortOption()
105 case Option::ValueType::i64: in ParseShortOption()
108 case Option::ValueType::f64: in ParseShortOption()
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
Dkv_store_nb_conflict_data_impl.cpp33 DBStatus KvStoreNbConflictDataImpl::GetValue(ValueType type, Value &value) const in GetValue()
39 if (type == ValueType::OLD_VALUE) { in GetValue()
48 bool KvStoreNbConflictDataImpl::IsDeleted(ValueType type) const in IsDeleted()
50 if (type == ValueType::OLD_VALUE) { in IsDeleted()
56 bool KvStoreNbConflictDataImpl::IsNative(ValueType type) const in IsNative()
58 if (type == ValueType::OLD_VALUE) { in IsNative()
Dkv_store_nb_conflict_data_impl.h33 DBStatus GetValue(ValueType type, Value &value) const override;
35 bool IsDeleted(ValueType type) const override;
37 bool IsNative(ValueType type) const override;
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/color_manager/color_space_object_convertor/
Djs_color_space_utils.h89 using ValueType = std::remove_cv_t<std::remove_reference_t<T>>; in CreateJsValue() local
90 if constexpr (std::is_same_v<ValueType, bool>) { in CreateJsValue()
92 } else if constexpr (std::is_arithmetic_v<ValueType>) { in CreateJsValue()
94 } else if constexpr (std::is_same_v<ValueType, std::string>) { in CreateJsValue()
96 } else if constexpr (std::is_enum_v<ValueType>) { in CreateJsValue()
97 return engine.CreateNumber(static_cast<std::make_signed_t<ValueType>>(value)); in CreateJsValue()
98 } else if constexpr (std::is_same_v<ValueType, const char*>) { in CreateJsValue()
111 using ValueType = std::remove_cv_t<std::remove_reference_t<T>>; in ConvertFromJsValue() local
112 if constexpr (std::is_same_v<ValueType, bool>) { in ConvertFromJsValue()
119 } else if constexpr (std::is_arithmetic_v<ValueType>) { in ConvertFromJsValue()
[all …]
/foundation/distributeddatamgr/kv_store/test/unittest/distributedKVStore/
DFieldNodeJsTest.js123 node.type = ddm.ValueType.STRING;
125 expect(node.type === ddm.ValueType.STRING).assertTrue()
143 node.type = ddm.ValueType.INTEGER;
145 expect(node.type === ddm.ValueType.INTEGER).assertTrue()
162 node.type = ddm.ValueType.FLOAT;
164 expect(node.type === ddm.ValueType.FLOAT).assertTrue()
181 node.type = ddm.ValueType.BYTE_ARRAY;
183 expect(node.type === ddm.ValueType.BYTE_ARRAY).assertTrue()
200 node.type = ddm.ValueType.BOOLEAN;
202 expect(node.type === ddm.ValueType.BOOLEAN).assertTrue()
[all …]
/foundation/multimedia/histreamer/engine/pipeline/core/
Dcompatible_check.cpp48 …bilityValueCheck(CapabilityID key, std::pair<const Plugin::ValueType&, const Plugin::ValueType&> i…
49 … uint8_t flags, std::function<int(T,T)> cmpFunc, Plugin::ValueType& outValue);
52 …FixInvalDiscCapValCheck(CapabilityID key, const Plugin::ValueType& val1, const Plugin::ValueType& … in FixInvalDiscCapValCheck()
53 Plugin::ValueType& outValue) in FixInvalDiscCapValCheck()
62 bool FixDiscCapValCheck(CapabilityID key, const Plugin::ValueType& val1, const Plugin::ValueType& v… in FixDiscCapValCheck()
63 Plugin::ValueType& outValue) in FixDiscCapValCheck()
86 bool ExtractFixedCap(const Plugin::ValueType& value, Plugin::ValueType& fixedValue);
87 static std::map<CapabilityID, std::function<bool(const Plugin::ValueType&, Plugin::ValueType&)>> g_…
101 …= std::function<bool(Capability::Key key, const Plugin::ValueType& val1, const Plugin::ValueType& …
102 Plugin::ValueType& outValue)>;
[all …]
/foundation/multimedia/histreamer/engine/plugin/plugins/sink/video_surface_sink/
Dsurface_sink_plugin.h60 Status GetParameter(Tag tag, ValueType &value) override;
62 Status SetParameter(Tag tag, const ValueType &value) override;
83 void SetVideoWidth(const ValueType& value);
84 void SetVideoHeight(const ValueType& value);
85 void SetVideoPixelFormat(const ValueType& value);
86 void SetMaxSurfaceNum(const ValueType& value);
87 void SetVideoScaleType(const ValueType& value);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/
Dkv_store_nb_conflict_data.h31 enum class ValueType { enum
42 DB_API virtual DBStatus GetValue(ValueType type, Value &value) const = 0;
44 DB_API virtual bool IsDeleted(ValueType type) const = 0;
46 DB_API virtual bool IsNative(ValueType type) const = 0;
/foundation/multimedia/histreamer/engine/plugin/plugins/ffmpeg_adapter/audio_encoder/
Dffmpeg_au_enc_config.cpp36 const T* FindTagInMap(Tag tag, const std::map<Tag, ValueType>& tagStore) in FindTagInMap()
47 void ConfigAudioCommonAttr(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in ConfigAudioCommonAttr()
66 void ConfigAacCodec(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in ConfigAacCodec()
80 using ConfigFunc = std::function<void(AVCodecContext&, const std::map<Tag, ValueType>&)>;
86 void GetAudioCommonAttr(const AVCodecContext& codecContext, Tag tag, ValueType& outVal) in GetAudioCommonAttr()
103 void GetAacAttr(const AVCodecContext& codecContext, Tag tag, ValueType& outVal) in GetAacAttr()
117 using GetAttrFunc = std::function<void(const AVCodecContext&, Tag, ValueType&)>;
128 void ConfigAudioEncoder(AVCodecContext& codecContext, const std::map<Tag, ValueType>& meta) in ConfigAudioEncoder()
135 Status GetAudioEncoderParameters(const AVCodecContext& codecContext, Tag tag, Plugin::ValueType& ou… in GetAudioEncoderParameters()
Dffmpeg_au_enc_config.h34 void ConfigAudioEncoder(AVCodecContext& codecContext, const std::map<Tag, ValueType>& meta);
35 Status GetAudioEncoderParameters(const AVCodecContext& codecContext, Tag tag, Plugin::ValueType& ou…
/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/
Djs_runtime_utils.h45 using ValueType = std::remove_cv_t<std::remove_reference_t<T>>; in CreateJsValue() local
46 if constexpr (std::is_same_v<ValueType, bool>) { in CreateJsValue()
48 } else if constexpr (std::is_arithmetic_v<ValueType>) { in CreateJsValue()
50 } else if constexpr (std::is_same_v<ValueType, std::string>) { in CreateJsValue()
52 } else if constexpr (std::is_enum_v<ValueType>) { in CreateJsValue()
53 return engine.CreateNumber(static_cast<std::make_signed_t<ValueType>>(value)); in CreateJsValue()
54 } else if constexpr (std::is_same_v<ValueType, const char*>) { in CreateJsValue()
67 using ValueType = std::remove_cv_t<std::remove_reference_t<T>>; in ConvertFromJsValue() local
68 if constexpr (std::is_same_v<ValueType, bool>) { in ConvertFromJsValue()
75 } else if constexpr (std::is_arithmetic_v<ValueType>) { in ConvertFromJsValue()
[all …]
/foundation/multimedia/histreamer/engine/plugin/plugins/ffmpeg_adapter/video_encoder/
Dffmpeg_vid_enc_config.cpp44 const T* FindTagInMap(Tag tag, const std::map<Tag, ValueType>& tagStore) in FindTagInMap()
55 Status SetVideoResolution(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in SetVideoResolution()
70 void SetVideoFrameRateAndTimeBase(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tag… in SetVideoFrameRateAndTimeBase()
87 Status SetVideoPixelFormat(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in SetVideoPixelFormat()
144 void SetDefaultEncodeParams(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in SetDefaultEncodeParams()
154 Status ConfigVideoCommonAttr(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in ConfigVideoCommonAttr()
165 void ConfigH264Codec(AVCodecContext& codecContext, const std::map<Tag, ValueType>& tagStore) in ConfigH264Codec()
186 using ConfigFunc = std::function<void(AVCodecContext&, const std::map<Tag, ValueType>&)>;
191 void GetVideoCommonAttr(const AVCodecContext& codecContext, Tag tag, ValueType& outVal) in GetVideoCommonAttr()
205 void GetH264Attr(const AVCodecContext& codecContext, Tag tag, ValueType& outVal) in GetH264Attr()
[all …]
/foundation/multimedia/histreamer/engine/plugin/plugins/source/audio_capture/
Daudio_capture_plugin.h38 Status GetParameter(Tag tag, ValueType& value) override;
39 Status SetParameter(Tag tag, const ValueType& value) override;
50 bool AssignSampleRateIfSupported(const ValueType& value);
51 bool AssignChannelNumIfSupported(const ValueType& value);
52 bool AssignSampleFmtIfSupported(const ValueType& value);
/foundation/multimedia/histreamer/tests/ut/
DTestFFmpegVidEncConfig.cpp28 std::map<Tag, ValueType> meta {};
30 ValueType value;
34 ValueType val = 3;
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
Djson_object.cpp149 if (value_.type() != Json::ValueType::objectValue) { in Parse()
210 if (value_.type() != Json::ValueType::objectValue) { in Parse()
323 if (valueNode.type() != Json::ValueType::objectValue) { in GetSubFieldPath()
358 if (valueNode.type() != Json::ValueType::objectValue) { in GetSubFieldPathAndType()
399 if (valueNode.type() != Json::ValueType::arrayValue) { in GetArraySize()
419 if (valueNode.type() != Json::ValueType::arrayValue) { in GetArrayContentOfStringOrStringArray()
488 leafNode = Json::Value(Json::ValueType::objectValue); in LeafJsonNodeAssignValue()
510 if (nearest->type() != Json::ValueType::objectValue) { // path ends with type not object in MoveToPath()
528 value_ = Json::Value(Json::ValueType::objectValue); in InsertField()
538 if (isAppend || nearest->type() == Json::ValueType::arrayValue) { in InsertField()
[all …]
/foundation/multimedia/histreamer/engine/plugin/plugins/ffmpeg_adapter/muxer/
Dffmpeg_muxer_plugin.h49 Status GetParameter(Tag tag, ValueType& value) override;
51 Status SetParameter(Tag tag, const ValueType& value) override;
59 Status SetTrackParameter(uint32_t trackId, Tag tag, const ValueType& value) override;
61 Status GetTrackParameter(uint32_t trackId, Tag tag, ValueType& value) override;
/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_engine/plugin/plugins/av_trans_input/dscreen_input/
Ddscreen_input_plugin.h52 Status GetParameter(Tag tag, ValueType &value) override;
53 Status SetParameter(Tag tag, const ValueType &value) override;
61 std::map<Tag, ValueType> paramsMap_;
/foundation/distributeddatamgr/kv_store/test/unittest/distributeddata/
DSingleKvStoreEnumJsTest.js127 var string = factory.ValueType.STRING;
139 var integer = factory.ValueType.INTEGER;
151 var float = factory.ValueType.FLOAT;
163 var byteArray = factory.ValueType.BYTE_ARRAY;
175 var boolean = factory.ValueType.BOOLEAN;
187 var double = factory.ValueType.DOUBLE;
DSchemaJsTest.js30 type : ddm.ValueType.STRING,
158 first.type = ddm.ValueType.STRING;
163 second.type = ddm.ValueType.STRING;
168 english.type = ddm.ValueType.STRING;
191 first.type = ddm.ValueType.STRING;
196 second.type = ddm.ValueType.STRING;
201 english.type = ddm.ValueType.STRING;
228 name.type = ddm.ValueType.INTEGER;
274 english.type = ddm.ValueType.STRING;
295 english.type = ddm.ValueType.STRING;

1234567