| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_interface_test_003/foo/v1_0/ |
| H A D | Types.idl | 16 package ohos.hdi.foo.v1_0;
18 enum FooType {
19 FOO_TYPE_ONE = 1,
20 FOO_TYPE_TWO = 2,
23 struct FooInfo {
26 enum FooType type;
|
| H A D | IFooExt.idl | 16 package ohos.hdi.foo.v1_0; 18 import ohos.hdi.foo.v1_0.Types; 26 TestFunc19([in] struct FooInfo inData, [out] enum AudioPortPin outData);
|
| H A D | IFoo.idl | 16 package ohos.hdi.foo.v1_0;
18 import ohos.hdi.foo.v1_0.Types;
22 GetData([out] struct FooInfo info);
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_interface_test_003/c_target/foo/v1_0/ |
| H A D | ifoo_ext.h.txt | 20 #include "foo/v1_0/types.h" 28 #define IFOOEXT_INTERFACE_DESC "ohos.hdi.foo.v1_0.IFooExt" 76 int32_t (*TestFunc19)(struct IFooExt *self, const struct FooInfo* inData, enum AudioPortPin* outData);
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_interface_test_004/c_target/foo/v1_0/ |
| H A D | foo_callback_service.c.txt | 16 #include "v1_0/foo_callback_service.h" 22 #define HDF_LOG_TAG foo_callback_service 24 static int32_t FooCallbackPushData(struct IFooCallback *self, const char* message) 29 static int32_t FooCallbackGetVersion(struct IFooCallback *self, uint32_t* majorVer, uint32_t* minorVer) 36 struct IFooCallback *FooCallbackServiceGet(void) 38 struct FooCallbackService *service = (struct FooCallbackService *)OsalMemCalloc(sizeof(struct FooCallbackService)); 40 HDF_LOGE("%{public}s: malloc FooCallbackService obj failed!", __func__); 44 service->interface.PushData = FooCallbackPushData; [all...] |
| H A D | foo_ext_proxy.c.txt | 19 #define HDF_LOG_TAG foo_ext_proxy 23 return IFooExtGetInstance("foo_ext_service", isStub); 30 if (strcmp(instName, "foo_ext_service") == 0) { 40 IFooExtReleaseInstance("foo_ext_service", instance, isStub); 51 if (strcmp(instName, "foo_ext_service") == 0) {
|
| H A D | foo_callback_service.h.txt | 25 struct FooCallbackService { 29 struct IFooCallback *FooCallbackServiceGet(void); 31 void FooCallbackServiceRelease(struct IFooCallback *instance);
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_001/cpp_target/foo/v1_0/ |
| H A D | types.h.txt | 30 namespace Foo { 36 enum FooType : int32_t { 37 FOO_TYPE_ONE = 1, 38 FOO_TYPE_TWO = 2, 41 struct FooInfo { 44 OHOS::HDI::Foo::V1_0::FooType type; 96 OHOS::HDI::Foo::V1_0::AudioPortPin pins; 101 OHOS::HDI::Foo::V1_0::SceneDesc scene; 102 OHOS::HDI::Foo [all...] |
| H A D | ifoo.h.txt | 23 #include "foo/v1_0/ifoo_callback.h" 24 #include "foo/v1_0/types.h" 28 namespace Foo { 35 DECLARE_HDI_DESCRIPTOR(u"ohos.hdi.foo.v1_0.IFoo"); 39 static sptr<OHOS::HDI::Foo::V1_0::IFoo> Get(bool isStub = false); 40 static sptr<OHOS::HDI::Foo::V1_0::IFoo> Get(const std::string &serviceName, bool isStub = false); 44 virtual int32_t GetData(OHOS::HDI::Foo::V1_0::FooInfo& info) = 0; 46 virtual int32_t SetCallback(const sptr<OHOS::HDI::Foo::V1_0::IFooCallback>& cbObj) = 0; 66 } // Foo [all...] |
| H A D | foo_proxy.cpp.txt | 21 #define HDF_LOG_TAG foo_proxy 25 namespace Foo { 27 sptr<OHOS::HDI::Foo::V1_0::IFoo> OHOS::HDI::Foo::V1_0::IFoo::Get(bool isStub) 29 return IFoo::Get("foo_service", isStub); 32 sptr<OHOS::HDI::Foo::V1_0::IFoo> IFoo::Get(const std::string &serviceName, bool isStub) 35 std::string desc = Str16ToStr8(OHOS::HDI::Foo::V1_0::IFoo::GetDescriptor()); 36 void *impl = LoadHdiImpl(desc.c_str(), serviceName == "foo_service" ? "service" : serviceName.c_str()); 41 return reinterpret_cast<OHOS::HDI::Foo::V1_0::IFoo *>(impl); 47 } // Foo [all...] |
| H A D | ifoo_callback.h.txt | 26 namespace Foo { 33 DECLARE_HDI_DESCRIPTOR(u"ohos.hdi.foo.v1_0.IFooCallback"); 57 } // Foo
|
| H A D | foo_service.cpp.txt | 16 #include "v1_0/foo_service.h" 19 #define HDF_LOG_TAG foo_service 23 namespace Foo { 25 extern "C" IFoo *FooImplGetInstance(void) 27 return new (std::nothrow) FooService(); 30 int32_t FooService::Ping(const std::string& sendMsg, std::string& recvMsg) 35 int32_t FooService::GetData(OHOS::HDI::Foo::V1_0::FooInfo& info) 40 int32_t FooService [all...] |
| H A D | foo_service.h.txt | 23 namespace Foo { 25 class FooService : public OHOS::HDI::Foo::V1_0::IFoo { 27 FooService() = default; 28 virtual ~FooService() = default; 32 int32_t GetData(OHOS::HDI::Foo::V1_0::FooInfo& info) override; 34 int32_t SetCallback(const sptr<OHOS::HDI::Foo::V1_0::IFooCallback>& cbObj) override; 38 } // Foo
|
| H A D | foo_callback_service.h.txt | 23 namespace Foo { 25 class FooCallbackService : public OHOS::HDI::Foo::V1_0::IFooCallback { 27 FooCallbackService() = default; 28 virtual ~FooCallbackService() = default; 34 } // Foo
|
| H A D | foo_callback_service.cpp.txt | 16 #include "v1_0/foo_callback_service.h" 19 #define HDF_LOG_TAG foo_callback_service 23 namespace Foo { 25 int32_t FooCallbackService::PushData(const std::string& message) 31 } // Foo
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_004/c_target/foo/v1_0/ |
| H A D | types.c.txt | 93 bool FooInfoBlockMarshalling(struct HdfSBuf *data, const struct FooInfo *dataBlock) 203 bool FooInfoBlockUnmarshalling(struct HdfSBuf *data, struct FooInfo *dataBlock) 245 dataBlock->type = (enum FooType)enumTmp; 404 void FooInfoFree(struct FooInfo *dataBlock, bool freeSelf)
|
| H A D | types.h.txt | 49 enum FooType { 50 FOO_TYPE_ONE = 1, 51 FOO_TYPE_TWO = 2, 54 struct FooInfo { 57 enum FooType type; 135 bool FooInfoBlockMarshalling(struct HdfSBuf *data, const struct FooInfo *dataBlock); 137 bool FooInfoBlockUnmarshalling(struct HdfSBuf *data, struct FooInfo *dataBlock); 139 void FooInfoFree(struc [all...] |
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_005/cpp_target/foo/v1_0/ |
| H A D | types.h.txt | 28 namespace Foo { 34 enum FooType : int32_t { 35 FOO_TYPE_ONE = 1, 36 FOO_TYPE_TWO = 2, 39 struct FooInfo { 42 OHOS::HDI::Foo::V1_0::FooType type; 91 OHOS::HDI::Foo::V1_0::AudioPortPin pins; 96 OHOS::HDI::Foo::V1_0::SceneDesc scene; 97 OHOS::HDI::Foo [all...] |
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_006/cpp_target/foo/v1_0/ |
| H A D | types.h.txt | 28 namespace Foo { 34 enum FooType : int32_t { 35 FOO_TYPE_ONE = 1, 36 FOO_TYPE_TWO = 2, 39 struct FooInfo { 42 OHOS::HDI::Foo::V1_0::FooType type; 91 OHOS::HDI::Foo::V1_0::AudioPortPin pins; 96 OHOS::HDI::Foo::V1_0::SceneDesc scene; 97 OHOS::HDI::Foo [all...] |
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_005/foo/v1_0/ |
| H A D | Types.idl | 16 package ohos.hdi.foo.v1_0;
18 enum FooType {
19 FOO_TYPE_ONE = 1,
20 FOO_TYPE_TWO = 2,
23 struct FooInfo {
26 enum FooType type;
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_005/c_target/foo/v1_0/ |
| H A D | types.h.txt | 27 enum FooType { 28 FOO_TYPE_ONE = 1, 29 FOO_TYPE_TWO = 2, 32 struct FooInfo { 35 enum FooType type;
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_006/c_target/foo/v1_0/ |
| H A D | types.h.txt | 27 enum FooType { 28 FOO_TYPE_ONE = 1, 29 FOO_TYPE_TWO = 2, 32 struct FooInfo { 35 enum FooType type;
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_003/foo/v1_0/ |
| H A D | Types.idl | 16 package ohos.hdi.foo.v1_0;
18 enum FooType {
19 FOO_TYPE_ONE = 1,
20 FOO_TYPE_TWO = 2,
23 struct FooInfo {
26 enum FooType type;
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_all_type_test_004/foo/v1_0/ |
| H A D | Types.idl | 16 package ohos.hdi.foo.v1_0;
18 enum FooType {
19 FOO_TYPE_ONE = 1,
20 FOO_TYPE_TWO = 2,
23 struct FooInfo {
26 enum FooType type;
|
| /foundation/ability/idl_tool/test/hdi_unittest/hdi_compile_opt_test_02/cpp_target/foo/v1_0/ |
| H A D | foo_callback_stub.cpp.txt | 16 #include "v1_0/foo_callback_stub.h" 20 #define HDF_LOG_TAG foo_callback_stub 24 namespace Foo { 29 OHOS::HDI::Foo::V1_0::FooCallbackStub::FooCallbackStub(const sptr<OHOS::HDI::Foo::V1_0::IFooCallback> &impl) 30 : IPCObjectStub(OHOS::HDI::Foo::V1_0::IFooCallback::GetDescriptor()), impl_(impl) 34 OHOS::HDI::Foo::V1_0::FooCallbackStub [all...] |