/foundation/arkui/ace_engine/frameworks/core/components/web/resource/ |
H A D | web_javascript_value.h | 52 enum class Type : unsigned char { NONE = 0, BOOLEAN, INTEGER, DOUBLE, STRING, BINARY, DICTIONARY, LIST }; class in OHOS::Ace::WebJavaScriptValue 55 explicit WebJavaScriptValue(Type type) : type_(type) {} in WebJavaScriptValue() 56 explicit WebJavaScriptValue(int value) : type_(Type::INTEGER), data_(value) {} in WebJavaScriptValue() 57 explicit WebJavaScriptValue(double value) : type_(Type::DOUBLE), data_(value) {} in WebJavaScriptValue() 58 explicit WebJavaScriptValue(bool value) : type_(Type::BOOLEAN), data_(value) {} in WebJavaScriptValue() 59 explicit WebJavaScriptValue(const std::string& value) : type_(Type::STRING), str_(value) {} in WebJavaScriptValue() 60 WebJavaScriptValue(const char* data, size_t len) : type_(Type::BINARY), str_(data, len) {} in WebJavaScriptValue() 62 : type_(Type::LIST), listValue_(value.begin(), value.end()) in WebJavaScriptValue() 65 : type_(Type::DICTIONARY), dictionaryValue_(value) in WebJavaScriptValue() 71 case Type in WebJavaScriptValue() [all...] |
H A D | web_javascript_result_callback.cpp | 30 case NWebValue::Type::INTEGER: in GetWebJSValueHelper() 32 case NWebValue::Type::DOUBLE: in GetWebJSValueHelper() 34 case NWebValue::Type::BOOLEAN: in GetWebJSValueHelper() 36 case NWebValue::Type::STRING: in GetWebJSValueHelper() 38 case NWebValue::Type::LIST: { in GetWebJSValueHelper() 47 case NWebValue::Type::DICTIONARY: { in GetWebJSValueHelper() 56 case NWebValue::Type::BINARY: { in GetWebJSValueHelper() 61 case NWebValue::Type::NONE: in GetWebJSValueHelper() 84 WebJSValue::Type type = webJSValue->GetType(); in GetBasicTypeWebViewValue() 86 case WebJSValue::Type in GetBasicTypeWebViewValue() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/detail/ |
H A D | any.h | 29 template<typename Type> 32 static constexpr TypeId TYPE_ID = UidFromType<Type>(); 33 static constexpr bool IS_PTR_TYPE = IsInterfacePtr_v<Type>; 37 return MakeUid<Type>(BUILTIN_ANY_TAG); in StaticGetClassId() 48 return AnyPC<Type>::template GetCompatibleTypes<Type>(dir); in onstexpr() 58 using PCType = AnyPC<Type>; in onstexpr() 66 *static_cast<Type*>(data) = InternalGetValue(); 75 using PCType = AnyPC<Type>; in onstexpr() 78 if (auto ptr = interface_pointer_cast<typename Type in onstexpr() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/engine/ |
H A D | internal_access.h | 27 template<typename Type, typename AnyType, typename AccessType = Type> 36 return MetaType<Type>::coreType == type; 40 CORE_NS::ScopedHandle<Type> guard { params.handle }; 42 sizeof(Type)) /*NOLINT(bugprone-sizeof-expression)*/ 47 CORE_NS::ScopedHandle<const Type> guard { params.handle }; 49 sizeof(Type)) /*NOLINT(bugprone-sizeof-expression)*/ 54 template<typename Type> 55 class EngineInternalValueAccess : public EngineInternalValueAccessImpl<Type, Any<Type>> {}; [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/base/ |
H A D | capture.h | 29 template<typename Type> 30 Type&& CaptureWrap(Type&& obj) in CaptureWrap() 32 return BASE_NS::forward<Type>(obj); in CaptureWrap() 46 template<typename Type> 47 CaptureWrapper<BASE_NS::weak_ptr<Type>> CaptureWrap(BASE_NS::shared_ptr<Type> p) in CaptureWrap() 55 template<typename Type> 56 CaptureWrapper<BASE_NS::weak_ptr<Type>> CaptureWrap(BASE_NS::weak_ptr<Type> [all...] |
H A D | interface_traits.h | 124 template<typename Func, typename Type> 125 using EnableIfProperBindFunction = decltype(BASE_NS::declval<void(const Type&)>()(BASE_NS::declval<Func>()())); 155 template<typename Type> 156 using ToggleConst = BASE_NS::conditional_t<BASE_NS::is_const_v<Type>, BASE_NS::remove_const_t<Type>, const Type>; 158 template<typename Type> 161 template<typename Type> 162 struct ToggleConstSharedPtrImpl<BASE_NS::shared_ptr<Type>> { 163 using type = BASE_NS::shared_ptr<const Type>; [all...] |
H A D | meta_types.h | 61 template<typename Type> 62 using EnableIfDefined = decltype(sizeof(Type)); 64 template<typename Type> 65 constexpr bool IsDefined_v = META_NS::IsDetected_v<EnableIfDefined, Type>; // NOLINT(readability-identifier-naming) 67 template<typename Type> 68 constexpr bool HasUid_v = IsDefined_v<MetaType<Type>>; // NOLINT(readability-identifier-naming) 73 template<typename Type> 76 static_assert(HasUid_v<Type>, "META_TYPE missing for given type"); in MakeUid() 77 return MakeUidImpl(BASE_NS::CompileTime::FNV1aHash(MetaType<Type>::name), type); in MakeUid() 80 template<typename Type> [all...] |
H A D | expected.h | 33 template<typename Type, typename Error> 37 constexpr Expected(Type t) : hasValue_(true), value_(BASE_NS::move(t)) {} in Expected() 43 value_.~Type(); in ~Expected() 54 constexpr const Type& operator*() const in operator *() 58 constexpr Type& operator*() in operator *() 68 constexpr const Type& GetValue() const in GetValue() 73 constexpr Type& GetValue() in GetValue() 83 Type value_;
|
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/serialization/ |
H A D | serializer.h | 25 template<typename Type> 27 NamedValue(BASE_NS::string_view name, Type& v) : name(name), value(v) {} in NamedValue() 30 Type& value; 33 template<typename Type> 34 NamedValue(BASE_NS::string_view name, const Type& v) -> NamedValue<const Type>; 68 template<typename Type> 69 ExportSerializer& operator&(const NamedValue<Type>& nv) in operator &() 72 if constexpr (is_enum_v<BASE_NS::remove_const_t<Type>>) { in operator &() 73 using UT = BASE_NS::underlying_type_t<BASE_NS::remove_const_t<Type>>; in operator &() [all...] |
H A D | common_value_serializers.h | 26 using Type = BASE_NS::underlying_type_t<BASE_NS::remove_const_t<BASE_NS::remove_reference_t<decltype(v)>>>; in EnumExport() 27 return f.ExportToNode(Any<Type>(static_cast<Type>(v))); in EnumExport() 34 using Type = BASE_NS::underlying_type_t<Plain>; in EnumImport() 35 Any<Type> any; in EnumImport() 43 template<typename Type> 44 bool ExtractInteger(const ISerNode::ConstPtr& node, Type& out) in ExtractInteger() 47 out = static_cast<Type>(n->GetValue()); in ExtractInteger() 51 out = static_cast<Type>(n->GetValue()); in ExtractInteger() 57 template<typename Type> [all...] |
H A D | value_serializer.h | 30 template<typename Type, typename ExportFunc, typename ImportFunc> 35 return UidFromType<Type>(); 39 Type v {}; 47 Type v {}; 48 return import_(f, node, v) ? IAny::Ptr(new Any<Type>(v)) : nullptr; 56 template<typename Type, typename Export, typename Import> 60 CreateShared<ValueSerializer<Type, Export, Import>>(BASE_NS::move(e), BASE_NS::move(i))); in RegisterSerializer() 63 template<typename Type, typename Export, typename Import> 66 RegisterSerializer<Type>(GetObjectRegistry().GetGlobalSerializationData(), BASE_NS::move(e), BASE_NS::move(i)); in RegisterSerializer() 69 template<typename Type> [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | interpolator.cpp | 40 using Type = BASE_NS::Math::Quat; 43 if (IsSetCompatibleWith<Type>(output) && IsGetCompatibleWith<Type>(from) && IsGetCompatibleWith<Type>(to)) { 44 Type value0 = GetValue<Type>(from); 45 Type value1 = GetValue<Type>(to); 46 return output.SetValue<Type>(BASE_NS::Math::Slerp(value0, value1, t)); 53 return id == UidFromType<Type>(); [all...] |
/foundation/resourceschedule/work_scheduler/services/native/src/ |
H A D | work_status.cpp | 69 if (workInfo.GetConditionMap()->count(WorkCondition::Type::TIMER) > 0) { in WorkStatus() 70 auto workTimerCondition = workInfo.GetConditionMap()->at(WorkCondition::Type::TIMER); in WorkStatus() 78 conditionMap_.emplace(WorkCondition::Type::TIMER, timeCondition); in WorkStatus() 89 int32_t WorkStatus::OnConditionChanged(WorkCondition::Type &type, shared_ptr<Condition> value) in OnConditionChanged() 93 && type != WorkCondition::Type::TIMER in OnConditionChanged() 94 && type != WorkCondition::Type::GROUP) { in OnConditionChanged() 103 if (type == WorkCondition::Type::GROUP && value && value->boolVal) { in OnConditionChanged() 112 if (type == WorkCondition::Type::STANDBY && value) { in OnConditionChanged() 144 if (conditionMap_.count(WorkCondition::Type::TIMER) > 0) { in UpdateTimerIfNeed() 146 if (conditionMap_.at(WorkCondition::Type in UpdateTimerIfNeed() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/ |
H A D | any_builder.h | 45 template<typename Type> 48 GetObjectRegistry().GetPropertyRegister().RegisterAny(CreateShared<DefaultAnyBuilder<Any<Type>>>()); in RegisterTypeForBuiltinAny() 51 template<typename Type> 54 GetObjectRegistry().GetPropertyRegister().RegisterAny(CreateShared<DefaultAnyBuilder<ArrayAny<Type>>>()); in RegisterTypeForBuiltinArrayAny() 57 template<typename Type> 60 GetObjectRegistry().GetPropertyRegister().UnregisterAny(Type::StaticGetClassId()); in UnregisterUserAny() 63 template<typename Type> 66 GetObjectRegistry().GetPropertyRegister().UnregisterAny(Any<Type>::StaticGetClassId()); in UnregisterTypeForBuiltinAny() 69 template<typename Type> 72 GetObjectRegistry().GetPropertyRegister().UnregisterAny(ArrayAny<Type> in UnregisterTypeForBuiltinArrayAny() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/animation/ |
H A D | interpolator.h | 28 template<class Type, class Name, const META_NS::ClassInfo& ClassId> 33 if (IsGetCompatibleWith<Type>(output) && IsGetCompatibleWith<Type>(from) && IsGetCompatibleWith<Type>(to)) { 34 Type value0 = GetValue<Type>(from); 35 Type value1 = GetValue<Type>(to); 36 return output.SetValue<Type>(value0 + (value1 - value0) * t); 42 return id == UidFromType<Type>(); [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/ |
H A D | call_context.h | 32 template<typename Type> 33 bool Set(const ICallContext::Ptr& context, BASE_NS::string_view name, const Type& value) in Set() 35 return context->Set(name, Any<Type>(value)); in Set() 43 template<typename Type> 44 bool SetResult(const ICallContext::Ptr& context, const Type& value) in SetResult() 46 return context->SetResult(Any<Type>(value)); in SetResult() 53 template<typename Type = void, typename = BASE_NS::enable_if_t<BASE_NS::is_same_v<Type, void>>> 65 template<typename Type> 66 Expected<Type, GenericErro [all...] |
H A D | util.h | 79 template<typename Type> 80 Type GetValue(const Property<Type>& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 84 template<typename Type> 85 Type GetValue(const IProperty::ConstPtr& p, NonDeduced_t<BASE_NS::remove_const_t<Type>> defaultValue = {}) noexcept 87 return GetValue(Property<Type>(p), BASE_NS::move(defaultValue)); 89 template<typename Type> 90 Type GetValu [all...] |
H A D | future.h | 65 using Type = void(Param); 70 using Type = void(); 74 using ContinuationTypedFuntionType = typename ContinuationTypedFuntionTypeImpl<Param>::Type; 76 template<typename Type> 104 template<typename Func, typename = EnableIfCanInvokeWithArguments<Func, ContinuationTypedFuntionType<Type>>> 107 using ReturnType = decltype(func(Type {})); in Then() 110 Type value {}; in Then() 114 CORE_LOG_W("Type mismatch for future then"); in Then() 123 Type GetResult() const 126 return fut_->GetResultOr<Type>(Typ [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | canvas_paint_op.h | 36 enum class Type : uint8_t { class 48 static constexpr auto kType = Type::SaveOp; 53 static constexpr auto kType = Type::RestoreOp; 58 static constexpr auto kType = Type::FillRectOp; 65 static constexpr auto kType = Type::FillTextOp; 75 static constexpr auto kType = Type::BezierCurveToOp; 82 static constexpr auto kType = Type::SetTransformOp; 89 static constexpr auto kType = Type::SetFillColorOp; 96 static constexpr auto kType = Type::SetFillGradientOp; 103 static constexpr auto kType = Type [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/ |
H A D | intf_iterable.h | 57 enum Type { FAILED, STOP, CONTINUE } value; enum 59 IterationResult(Type v = CONTINUE) : value(v) {} in IterationResult() 93 template<typename Type> 95 META_INTERFACE(ICallable, IIterableCallable, UidFromType<Type>()) 97 using ArgType = Type&; 98 virtual IterationResult Invoke(Type&) = 0; 104 template<typename Type> 106 META_INTERFACE(ICallable, IIterableConstCallable, UidFromType<Type>()) 108 using ArgType = const Type&; 109 virtual IterationResult Invoke(const Type [all...] |
/foundation/resourceschedule/work_scheduler/frameworks/src/ |
H A D | work_info.cpp | 60 conditionMap_.emplace(WorkCondition::Type::NETWORK, networkCondition); in RequestNetworkType() 68 conditionMap_.emplace(WorkCondition::Type::CHARGER, chargerCondition); in RequestChargerType() 75 conditionMap_.emplace(WorkCondition::Type::BATTERY_LEVEL, batteryLevelCondition); in RequestBatteryLevel() 82 conditionMap_.emplace(WorkCondition::Type::BATTERY_STATUS, batteryCondition); in RequestBatteryStatus() 89 conditionMap_.emplace(WorkCondition::Type::STORAGE, storageCondition); in RequestStorageLevel() 98 conditionMap_.emplace(WorkCondition::Type::TIMER, repeatCycle); in RequestRepeatCycle() 106 conditionMap_.emplace(WorkCondition::Type::TIMER, repeatCycle); in RequestRepeatCycle() 111 if (conditionMap_.count(WorkCondition::Type::TIMER) > 0) { in RequestBaseTimeAndCycle() 112 conditionMap_.at(WorkCondition::Type::TIMER)->timeVal = baseTime; in RequestBaseTimeAndCycle() 113 conditionMap_.at(WorkCondition::Type in RequestBaseTimeAndCycle() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/animation/ |
H A D | animation.h | 52 template<class Type> 53 class KeyframeAnimation final : public Internal::StartablePropertyAnimationInterfaceAPI<KeyframeAnimation<Type>, 55 META_API(KeyframeAnimation<Type>) 68 auto& From(const Type& value) in From() 74 p->SetValue(IAny::Ptr { new Any<Type>(value) }); in From() 80 auto& To(const Type& value) in To() 86 p->SetValue(IAny::Ptr { new Any<Type>(value) }); in To() 97 template<class Type> 99 : public Internal::StartablePropertyAnimationInterfaceAPI<TrackAnimation<Type>, META_NS::ClassId::TrackAnimation> { 100 META_API(TrackAnimation<Type>) [all...] |
/foundation/filemanagement/user_file_service/services/native/file_access_service/include/ |
H A D | holder_manager.h | 30 template<typename Type> 43 uint32_t save(Type content) in save() 50 holder_.insert(std::pair<uint32_t, Type>(id, content)); in save() 55 Type get(uint32_t id) in get() 62 return Type(); in get() 65 Type pop(uint32_t id) in pop() 76 return Type(); in pop() 96 uint32_t getId(std::function<bool(const Type &)> func) in getId() 99 [func](const std::pair<uint32_t, Type> type) { in getId() 108 void getAll(std::vector<Type> [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/src/ |
H A D | number.cpp | 23 struct Type {}; struct 39 constexpr CompType(Type<T>) in CompType() 73 Type<float>(), 74 Type<double>(), 75 Type<bool>(), 76 Type<uint8_t>(), 77 Type<uint16_t>(), 78 Type<uint32_t>(), 79 Type<uint64_t>(), 80 Type<int8_ [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
H A D | dcamera_event_cmd_test.cpp | 41 "Type": 0, 48 "Type": "MESSAGE", 54 "Type": "MESSAGE", 61 "Type": "MESSAGE", 67 "Type": "MESSAGE", 74 "Type": "MESSAGE", 80 "Type": "MESSAGE", 87 "Type": "MESSAGE", 94 "Type": "MESSAGE", 101 "Type" [all...] |