Home
last modified time | relevance | path

Searched refs:any (Results 1 - 25 of 154) sorted by relevance

1234567

/foundation/graphic/graphic_3d/lume/metaobject/test/src/interface/
H A DIntfAnyTest.cpp19 #include <meta/interface/detail/any.h>
53 Any<uint32_t> any { 1 }; in HWTEST_F()
55 EXPECT_THAT(any.GetCompatibleTypes(CompatibilityDirection::BOTH), UnorderedElementsAre(uid)); in HWTEST_F()
56 EXPECT_TRUE(IsCompatible(any, uid)); in HWTEST_F()
57 EXPECT_TRUE(IsCompatibleWith<uint32_t>(any)); in HWTEST_F()
58 EXPECT_TRUE(IsSetCompatible(any, uid)); in HWTEST_F()
59 EXPECT_TRUE(IsSetCompatibleWith<uint32_t>(any)); in HWTEST_F()
60 EXPECT_TRUE(IsGetCompatible(any, uid)); in HWTEST_F()
61 EXPECT_TRUE(IsGetCompatibleWith<uint32_t>(any)); in HWTEST_F()
62 EXPECT_EQ(any in HWTEST_F()
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/
H A Dintf_any.h71 virtual AnyReturnValue CopyFrom(const IAny& any) = 0;
131 inline bool IsArray(const IAny& any) in IsArray() argument
133 return any.GetInterface<IArrayAny>() != nullptr; in IsArray()
136 inline bool IsArray(const IAny::ConstPtr& any) in IsArray() argument
138 return any && any->GetInterface<IArrayAny>() != nullptr; in IsArray()
142 inline T GetValue(const IAny& any, NonDeduced_t<T> defaultValue = {}) in GetValue() argument
145 if (!any.GetValue(t)) {
161 inline bool IsCompatible(const IAny& any, const TypeId& uid, CompatibilityDirection dir = CompatibilityDirection::BOTH) in IsCompatible() argument
163 for (auto&& v : any in IsCompatible()
171 IsCompatibleWith( const IAny& any, const IAny& other, CompatibilityDirection dir = CompatibilityDirection::BOTH) IsCompatibleWith() argument
183 IsCompatibleWith(const IAny& any, CompatibilityDirection dir = CompatibilityDirection::BOTH) IsCompatibleWith() argument
188 IsSetCompatible(const IAny& any, const TypeId& uid) IsSetCompatible() argument
193 IsGetCompatible(const IAny& any, const TypeId& uid) IsGetCompatible() argument
199 IsSetCompatibleWith(const IAny& any) IsSetCompatibleWith() argument
205 IsGetCompatibleWith(const IAny& any) IsGetCompatibleWith() argument
[all...]
/foundation/communication/netmanager_ext/services/networksharemanager/include/
H A Dnetworkshare_main_statemachine.h19 #include <any>
40 using HandleFunc = int (NetworkShareMainStateMachine::*)(const std::any &messageObj);
60 void MainSmEventHandle(int eventId, const std::any &messageObj);
70 int HandleInitInterfaceStateActive(const std::any &messageObj);
71 int HandleInitInterfaceStateInactive(const std::any &messageObj);
72 int HandleAliveInterfaceStateActive(const std::any &messageObj);
73 int HandleAliveInterfaceStateInactive(const std::any &messageObj);
74 int HandleAliveUpstreamMonitorCallback(const std::any &messageObj);
75 int HandleErrorInterfaceStateInactive(const std::any &messageObj);
76 int HandleErrorClear(const std::any
[all...]
H A Dnetworkshare_sub_statemachine.h29 #include <any>
39 using HandleFunc = int (NetworkShareSubStateMachine::*)(const std::any &messageObj);
76 void SubSmEventHandle(int eventId, const std::any &messageObj);
99 int HandleInitSharingRequest(const std::any &messageObj);
100 int HandleInitInterfaceDown(const std::any &messageObj);
101 int HandleSharedUnrequest(const std::any &messageObj);
102 int HandleSharedInterfaceDown(const std::any &messageObj);
103 int HandleSharedConnectionChange(const std::any &messageObj);
104 int HandleSharedErrors(const std::any &messageObj);
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/
H A Dnumber.h20 #include <meta/interface/detail/any.h>
45 Number(IAny::ConstPtr any) : Number() in Number() argument
47 number_->CopyFrom(*any); in Number()
50 Number(const IAny& any) : Number() in Number() argument
52 number_->CopyFrom(any); in Number()
66 Number& operator=(IAny::ConstPtr any) in operator =() argument
68 number_->CopyFrom(*any); in operator =()
72 Number& operator=(const IAny& any) in operator =() argument
74 number_->CopyFrom(any); in operator =()
H A Dutil.h29 inline BASE_NS::shared_ptr<CORE_NS::IInterface> GetPointer(const IAny& any) in GetPointer() argument
32 any.GetValue(ret); in GetPointer()
36 inline BASE_NS::shared_ptr<const CORE_NS::IInterface> GetConstPointer(const IAny& any) in GetConstPointer() argument
39 any.GetValue(ret); in GetConstPointer()
44 inline BASE_NS::shared_ptr<Interface> GetPointer(const IAny& any) in GetPointer() argument
46 return interface_pointer_cast<Interface>(GetPointer(any)); in GetPointer()
70 if (auto&& any = i->GetInternalAny()) {
71 dupi->SetInternalAny(any->Clone(false));
186 inline bool IsValueGetCompatible(const IAny& any, const IValue& value) in IsValueGetCompatible() argument
188 for (auto&& t : any in IsValueGetCompatible()
196 IsModifierGetCompatible(const IAny& any, const IModifier& value) IsModifierGetCompatible() argument
[all...]
/foundation/filemanagement/app_file_service/utils/include/b_json/
H A Db_json_entity.h19 #include <any>
35 std::string GetJSonSource(std::string_view jsonFromRealWorld, std::any option = std::any()) in GetJSonSource()
42 * @brief 构造方法,具备T(Json::Value&, std::any)能力的构造函数
47 explicit BJsonEntity(Json::Value &obj, std::any option = std::any()) : obj_(obj), option_(option) {} in BJsonEntity()
53 std::any option_;
H A Db_json_entity_extension_config.h80 std::string GetJSonSource(std::string_view jsonFromRealWorld, std::any option);
84 * @brief 构造方法,具备T(Json::Value&, std::any)能力的构造函数
89 explicit BJsonEntityExtensionConfig(Json::Value &obj, std::any option = std::any()) : BJsonEntity(obj, option) {} in BJsonEntityExtensionConfig()
/foundation/graphic/graphic_3d/lume/metaobject/src/serialization/
H A Dimporter.cpp197 Any<uint64_t> any; in ImportIObjectFlags() local
198 if (ImportValue(node, any)) { in ImportIObjectFlags()
200 if (any.GetValue(v)) { in ImportIObjectFlags()
284 if (auto any = array.Clone(AnyCloneOptions { CloneValueType::DEFAULT_VALUE, TypeIdRole::ITEM })) { in ImportArray()
285 if (!ImportValue(m, *any) || !array.InsertAnyAt(-1, *any)) { in ImportArray()
326 } else if (auto any = interface_pointer_cast<IAny>(intf)) { in ImportPointer()
327 return ImportAny(node, any); in ImportPointer()
338 } else if (auto any = ImportAny(n)) { in ImportPointer()
339 if (entity.SetValue(interface_pointer_cast<CORE_NS::IInterface>(any))) { in ImportPointer()
368 ImportWeakPtrInAny(const ISerNode::ConstPtr& node, const IAny::Ptr& any) ImportWeakPtrInAny() argument
383 ImportAny(const IObjectNode::ConstPtr& node, const IAny::Ptr& any) ImportAny() argument
411 IAny::Ptr any; ImportAny() local
455 ImportAny(BASE_NS::string_view name, IAny::Ptr& any) ImportAny() argument
[all...]
H A Dexporter.cpp31 bool Exporter::ShouldSerialize(const IAny& any) const in ShouldSerialize()
34 if (any.GetValue(p)) { in ShouldSerialize()
206 auto any = array.Clone(AnyCloneOptions { CloneValueType::DEFAULT_VALUE, TypeIdRole::ITEM }); in ExportArray() local
207 if (any) { in ExportArray()
210 if (!array.GetAnyAt(i, *any)) { in ExportArray()
214 if (ExportValue(*any, node) && node) { in ExportArray()
262 if (auto any = interface_pointer_cast<IAny>(intf)) { in ExportPointer()
263 return ExportAny(any, res); in ExportPointer()
295 ReturnError Exporter::ExportAny(const IAny::ConstPtr& any, ISerNode::Ptr& res) in ExportAny() argument
298 if (!registry_.GetPropertyRegister().IsAnyRegistered(any in ExportAny()
387 ExportAny(BASE_NS::string_view name, const IAny::Ptr& any) ExportAny() argument
[all...]
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_sta/Mock/
H A Dmock_state_machine.h32 virtual void SendMessage(int msgName, const std::any &messageObj);
33 virtual void SendMessage(int msgName, int param1, int param2, const std::any &messageObj);
46 InternalMessagePtr CreateMessage(int msgName, const std::any &messageObj);
47 InternalMessagePtr CreateMessage(int msgName, int param1, int param2, const std::any &messageObj);
52 void MessageExecutedLater(int msgName, const std::any &messageObj, int64_t delayTimeMs);
53 void MessageExecutedLater(int msgName, int param1, int param2, const std::any &messageObj, int64_t delayTimeMs);
H A Dmock_state_machine.cpp53 void StateMachine::SendMessage(int msgName, const std::any &messageObj) in SendMessage()
59 void StateMachine::SendMessage(int msgName, int param1, int param2, const std::any &messageObj) in SendMessage()
146 InternalMessagePtr StateMachine::CreateMessage(int msgName, const std::any &messageObj) in CreateMessage()
158 InternalMessagePtr StateMachine::CreateMessage(int msgName, int param1, int param2, const std::any &messageObj) in CreateMessage()
180 void StateMachine::MessageExecutedLater(int msgName, const std::any &messageObj, in MessageExecutedLater()
184 int param2, const std::any &messageObj, int64_t delayTimeMs) in MessageExecutedLater()
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/task_manager/task_group/
H A Ditask_group.h19 #include <any>
28 using TaskFunc = std::function<void(std::any param)>;
29 using TaskCallback = std::function<void(std::any param)>;
37 virtual bool SubmitTask(std::any param) = 0;
H A Dbase_task_group.h19 #include <any>
38 bool SubmitTask(std::any param) override;
56 BlockingQueue<std::any> que_;
/foundation/multimedia/image_effect/test/unittest/
H A DTestUtils.cpp59 Plugin::Any any; in HWTEST_F() local
60 ErrorCode result = NativeCommonUtils::ParseOHAny(&value, any); in HWTEST_F()
62 int actualValue = Plugin::AnyCast<int>(any); in HWTEST_F()
70 Plugin::Any any; in HWTEST_F() local
71 ErrorCode result = NativeCommonUtils::ParseOHAny(&value, any); in HWTEST_F()
73 float actualValue = Plugin::AnyCast<float>(any); in HWTEST_F()
81 Plugin::Any any; in HWTEST_F() local
82 ErrorCode result = NativeCommonUtils::ParseOHAny(&value, any); in HWTEST_F()
84 double actualValue = Plugin::AnyCast<double>(any); in HWTEST_F()
92 Plugin::Any any; in HWTEST_F() local
102 Plugin::Any any; HWTEST_F() local
112 Plugin::Any any; HWTEST_F() local
120 Plugin::Any any; HWTEST_F() local
129 Plugin::Any any; HWTEST_F() local
134 Plugin::Any any = 10.0; HWTEST_F() local
226 Plugin::Any any = nullptr; HWTEST_F() local
[all...]
/foundation/multimedia/image_effect/frameworks/native/capi/
H A Dnative_common_utils.cpp63 ErrorCode AnyCastOHAny(const Plugin::Any &any, ImageEffect_DataType &ohDataType, ImageEffect_DataType ohDataTypeValue, in AnyCastOHAny() argument
66 auto result = Plugin::AnyCast<ValueType>(&any); in AnyCastOHAny()
75 ErrorCode NativeCommonUtils::ParseOHAny(const ImageEffect_Any *value, Plugin::Any &any) in ParseOHAny() argument
79 any = value->dataValue.int32Value; in ParseOHAny()
82 any = value->dataValue.floatValue; in ParseOHAny()
85 any = value->dataValue.doubleValue; in ParseOHAny()
88 any = value->dataValue.charValue; in ParseOHAny()
91 any = value->dataValue.longValue; in ParseOHAny()
94 any = value->dataValue.boolValue; in ParseOHAny()
97 any in ParseOHAny()
106 SwitchToOHAny(const Plugin::Any &any, ImageEffect_Any *value) SwitchToOHAny() argument
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/include/meta/ext/serialization/
H A Dcommon_value_serializers.h35 Any<Type> any; in EnumImport()
36 bool res = f.ImportFromNode(node, any); in EnumImport()
38 out = static_cast<Plain>(any.InternalGetValue()); in EnumImport()
87 Any<Type> any; in ImportFromNode() local
88 auto res = f.ImportFromNode(node, any); in ImportFromNode()
90 value = any.InternalGetValue(); in ImportFromNode()
/foundation/communication/wifi/wifi/base/state_machine/include/
H A Dinternal_message.h24 #include <any>
199 void SetMessageObj(const std::any &messageObj) in SetMessageObj()
217 const std::any &GetMessageObj(void) const in GetMessageObj()
269 /* any message obj. */
270 std::any mMessageObj;
318 InternalMessagePtr CreateMessage(int messageName, const std::any &messageObj);
339 InternalMessagePtr CreateMessage(int messageName, int param1, int param2, const std::any &messageObj);
H A Dstate_machine.h135 InternalMessagePtr CreateMessage(int msgName, const std::any &messageObj);
146 InternalMessagePtr CreateMessage(int msgName, int param1, int param2, const std::any &messageObj);
188 virtual void SendMessage(int msgName, const std::any &messageObj);
198 virtual void SendMessage(int msgName, int param1, int param2, const std::any &messageObj);
252 void MessageExecutedLater(int msgName, const std::any &messageObj, int64_t delayTimeMs);
265 void MessageExecutedLater(int msgName, int param1, int param2, const std::any &messageObj, int64_t delayTimeMs);
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dnumber.cpp51 loadAny([](const IAny& any, Number::VariantType& var) {
53 bool res = any.GetValue(v);
105 static const CompType* FindCompatible(const IAny& any) in FindCompatible() argument
107 auto anyComps = any.GetCompatibleTypes(CompatibilityDirection::BOTH); in FindCompatible()
140 AnyReturnValue Number::CopyFrom(const IAny& any) in CopyFrom() argument
142 if (auto c = FindCompatible(any)) { in CopyFrom()
143 c->loadAny(any, value_); in CopyFrom()
H A Dregister_value_serializers.cpp24 #include <meta/interface/detail/any.h>
100 Any<BASE_NS::string> any; in RegisterValueSerializers()
101 if (f.ImportFromNode(node, any)) { in RegisterValueSerializers()
102 out = BASE_NS::StringToUid(any.InternalGetValue()); in RegisterValueSerializers()
111 Any<int64_t> any; in RegisterValueSerializers()
112 if (f.ImportFromNode(node, any)) { in RegisterValueSerializers()
113 out = TimeSpan::Microseconds(any.InternalGetValue()); in RegisterValueSerializers()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/test/unittest/fake/hiview/include/
H A Dfake_hiview.h19 #include <any>
44 static void Put(const std::string &key, const std::any &an) in Put()
55 static std::map<std::string, std::any> fakeCache_;
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dp2p_monitor.cpp113 const std::string &iface, P2P_STATE_MACHINE_CMD msgName, int param1, int param2, const std::any &messageObj) const in MessageToStateMachine()
165 std::any anyNone; in Broadcast2SmConnectSupplicant()
171 std::any anyDevice = device; in Broadcast2SmDeviceFound()
177 std::any anyDevice = privateInfo; in Broadcast2SmPrivateDeviceFound()
183 std::any anyDevice = device; in Broadcast2SmDeviceLost()
189 std::any anyConfig = config; in Broadcast2SmGoNegRequest()
195 std::any anyNone; in Broadcast2SmGoNegSuccess()
201 std::any anyNone; in Broadcast2SmGoNegFailure()
208 std::any anyGroup = group; in Broadcast2SmInvitationReceived()
214 std::any anyNon in Broadcast2SmInvitationResult()
[all...]
H A Dabstract_ui.h17 #include <any>
21 std::any &GetVerityModuleV2();
50 const std::string txt, std::function<void(AlertDialog &, std::any)> &buttonEvent, std::any ctx) in SetButton()
/foundation/multimedia/camera_framework/services/deferred_processing_service/include/base/task_manager/
H A Dtask_manager.h42 bool SubmitTask(TaskGroupHandle handle, std::any param = std::any());
49 void DoDefaultWorks(std::any param);

Completed in 13 milliseconds

1234567