Home
last modified time | relevance | path

Searched refs:constructor (Results 1 - 25 of 29) sorted by relevance

12

/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dstub_collector.cpp26 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor) in StubConstructorRegister() argument
28 if (ifDesc == nullptr || constructor == nullptr) { in StubConstructorRegister()
34 HDF_LOGE("repeat registration stub constructor for if %{public}s", ifDesc); in StubConstructorRegister()
37 g_constructorMap.emplace(std::make_pair(ifDesc, constructor)); in StubConstructorRegister()
41 void StubConstructorUnregister(const char *ifDesc, const struct StubConstructor *constructor) in StubConstructorUnregister() argument
43 if (ifDesc == nullptr || constructor == nullptr) { in StubConstructorUnregister()
69 auto constructor = g_constructorMap.find(ifDesc); in StubCollectorGetOrNewObject() local
70 if (constructor == g_constructorMap.end()) { in StubCollectorGetOrNewObject()
71 HDF_LOGE("no stub constructor for %{public}s", ifDesc); in StubCollectorGetOrNewObject()
75 if (constructor in StubCollectorGetOrNewObject()
101 auto constructor = g_constructorMap.find(ifDesc); StubCollectorRemoveObject() local
[all...]
H A Dhdi_support.cpp80 HdiImpl() : handler(nullptr), constructor(nullptr), destructor(nullptr), useCount(0) {} in HdiImpl()
89 void *(*constructor)(void); member
146 auto constructor = g_hdiConstructorMap.find(libName); in LoadHdiImpl() local
147 if (constructor != g_hdiConstructorMap.end()) { in LoadHdiImpl()
148 return constructor->second.constructor(); in LoadHdiImpl()
158 hdiImpl.constructor = reinterpret_cast<HdiImplInstanceFunc>(dlsym(hdiImpl.handler, symName.data())); in LoadHdiImpl()
159 if (hdiImpl.constructor == nullptr) { in LoadHdiImpl()
171 void *implInstance = hdiImpl.constructor(); in LoadHdiImpl()
194 auto constructor in UnloadHdiImpl() local
[all...]
H A Dobject_collector.cpp32 bool ObjectCollector::ConstructorRegister(const std::u16string &interfaceName, const Constructor &constructor) in ConstructorRegister() argument
38 constructorMapper_.emplace(interfaceName, std::move(constructor)); in ConstructorRegister()
54 auto constructor = constructorMapper_.find(interfaceName); in NewObjectLocked() local
55 if (constructor != constructorMapper_.end()) { in NewObjectLocked()
56 return constructor->second(interface); in NewObjectLocked()
/drivers/hdf_core/interfaces/inner_api/hdi/
H A Dstub_collector.h33 * The service module registers the constructor with the object collector based on the interface name,
34 * and then creates a stub object based on the interface name and registered constructor.
51 /** Define the interface type of the stub object constructor. */
52 struct HdfRemoteService **(*constructor)(void *); member
58 * @brief Registers a stub constructor.
61 * @param constructor Indicate the pointer to the constructor of the stub object.
63 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor);
66 * @brief Unregisters a stub constructor.
69 * @param constructor Indicat
[all...]
H A Dobject_collector.h34 * and registers the interface name and constructor with the object collector.
35 * When the service module driver is initialized, the registered constructor (obtained based on the interface name) is
58 /** Define the constructor interface type. */
62 /** Register a constructor based on the interface name. */
63 bool ConstructorRegister(const std::u16string &interfaceName, const Constructor &constructor);
64 /** Unregister a constructor based on the interface name. */
79 /** Define the mapping between the interface name and the constructor. */
89 * unregister a template object constructor.
94 /** Constructor, which registers a template object constructor through the ObjectCollector. */
96 /** Destructor, which unregisters a template object constructor throug
[all...]
/drivers/hdf_core/framework/utils/src/
H A Dhdf_sbuf.c309 const struct HdfSbufConstructor *constructor = HdfSbufConstructorGet(type); in HdfSbufTypedObtainCapacity() local
310 if (constructor == NULL) { in HdfSbufTypedObtainCapacity()
311 HDF_LOGE("sbuf constructor %u not implement", type); in HdfSbufTypedObtainCapacity()
314 if (constructor->obtain == NULL) { in HdfSbufTypedObtainCapacity()
315 HDF_LOGE("sbuf constructor %u obtain method not implement", type); in HdfSbufTypedObtainCapacity()
332 sbuf->impl = constructor->obtain(capacity); in HdfSbufTypedObtainCapacity()
370 const struct HdfSbufConstructor *constructor = HdfSbufConstructorGet(type); in HdfSbufTypedBind() local
371 if (constructor == NULL) { in HdfSbufTypedBind()
372 HDF_LOGE("sbuf constructor %u not implement", type); in HdfSbufTypedBind()
376 if (constructor in HdfSbufTypedBind()
[all...]
/drivers/external_device_manager/frameworks/js/napi/driver_extension_ability/
H A Ddriver_extension_ability_module.cpp23 extern "C" __attribute__((constructor)) void NAPI_app_ability_DriverExtensionAbility_AutoRegister() in NAPI_app_ability_DriverExtensionAbility_AutoRegister()
/drivers/external_device_manager/frameworks/js/napi/driver_extension_context/
H A Ddriver_extension_context_module.cpp23 extern "C" __attribute__((constructor)) void NAPI_application_DriverExtensionContext_AutoRegister() in NAPI_application_DriverExtensionContext_AutoRegister()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
H A DXTools.js16 constructor() {}
H A DGLFrame.js153 constructor() {}
/drivers/hdf_core/adapter/uhdf2/hdi/test/stub_collector/
H A Dstub_collector_test.cpp38 const char *IFDESC = "test stub constructor";
41 .constructor = TestConstruct,
78 // constructor is nullptr
83 .constructor = nullptr, in HWTEST_F()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/message/
H A DXMessage.js20 constructor() {
H A Dmock.js60 constructor() {}
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
H A DNapiLog.js17 constructor() {}
H A Dast.js61 constructor(name, type, value, bindToken, jinzhi) {
356 constructor(name, nodeType, refName) {
580 constructor(name, value) {
684 constructor(array) {
771 constructor(astRoot) {
H A DGenerator.js22 constructor() {
H A Dparser.js33 constructor() {
H A Dlexer.js63 constructor() {
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/
H A DXShader.js27 constructor() {
H A DXTexture.js25 constructor() {
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
H A Dusb_bus_extension.cpp197 __attribute__ ((constructor)) static void RegBusExtension() in RegBusExtension()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/attr/
H A DAttributeArea.js19 constructor() {
/drivers/external_device_manager/test/unittest/ndk_stage_js_test/entry/src/main/cpp/
H A Dbase_ddk_ndk_test.cpp198 extern "C" __attribute__((constructor)) void RegisterModule(void) in RegisterModule()
H A Dhid_ddk_ndk_test.cpp203 extern "C" __attribute__((constructor)) void RegisterModule(void) in RegisterModule()
/drivers/external_device_manager/test/unittest/ndk_permission_js_test/entry/src/main/cpp/
H A Dddk_permission_test.cpp251 extern "C" __attribute__((constructor)) void RegisterModule(void) in RegisterModule()

Completed in 18 milliseconds

12