Home
last modified time | relevance | path

Searched refs:constructor (Results 1 – 25 of 31) sorted by relevance

12

/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dstub_collector.cpp26 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor) in StubConstructorRegister() argument
28 if (ifDesc == nullptr || constructor == nullptr) { 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()
75 if (constructor->second->constructor == nullptr) { in StubCollectorGetOrNewObject()
80 HdfRemoteService **stubObject = constructor->second->constructor(servPtr); in StubCollectorGetOrNewObject()
101 auto constructor = g_constructorMap.find(ifDesc); in StubCollectorRemoveObject() local
[all …]
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 = g_hdiConstructorMap.find(libName); in UnloadHdiImpl() local
195 if (constructor != g_hdiConstructorMap.end() && constructor->second.destructor != nullptr) { in UnloadHdiImpl()
[all …]
Dobject_collector.cpp32 …Collector::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/
Dstub_collector.h52 struct HdfRemoteService **(*constructor)(void *); member
63 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor);
71 void StubConstructorUnregister(const char *ifDesc, const struct StubConstructor *constructor);
Dobject_collector.h63 bool ConstructorRegister(const std::u16string &interfaceName, const Constructor &constructor);
/drivers/external_device_manager/frameworks/js/napi/driver_extension_context/
Ddriver_extension_context.js19 constructor(obj) { method in DriverExtensionContext
Ddriver_extension_context_module.cpp23 extern "C" __attribute__((constructor)) void NAPI_application_DriverExtensionContext_AutoRegister() in NAPI_application_DriverExtensionContext_AutoRegister()
/drivers/hdf_core/framework/utils/src/
Dhdf_sbuf.c311 const struct HdfSbufConstructor *constructor = HdfSbufConstructorGet(type); in HdfSbufTypedObtainCapacity() local
312 if (constructor == NULL) { in HdfSbufTypedObtainCapacity()
316 if (constructor->obtain == NULL) { in HdfSbufTypedObtainCapacity()
334 sbuf->impl = constructor->obtain(capacity); in HdfSbufTypedObtainCapacity()
372 const struct HdfSbufConstructor *constructor = HdfSbufConstructorGet(type); in HdfSbufTypedBind() local
373 if (constructor == NULL) { in HdfSbufTypedBind()
378 if (constructor->bind == NULL) { in HdfSbufTypedBind()
396 sbuf->impl = constructor->bind(base, size); in HdfSbufTypedBind()
/drivers/external_device_manager/frameworks/js/napi/driver_extension_ability/
Ddriver_extension_ability_module.cpp23 extern "C" __attribute__((constructor)) void NAPI_app_ability_DriverExtensionAbility_AutoRegister() in NAPI_app_ability_DriverExtensionAbility_AutoRegister()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/
DXTools.js16 constructor() {} method in XTools
DXDefine.js18 constructor() {} method in Scr
DGLFrame.js153 constructor() {} method in GLFrame
/drivers/hdf_core/adapter/uhdf2/hdi/test/stub_collector/
Dstub_collector_test.cpp41 .constructor = TestConstruct,
83 .constructor = nullptr,
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/message/
DXMessage.js20 constructor() { method in XMessage
Dmock.js60 constructor() {} method in MockMessage
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
DNapiLog.js17 constructor() {} method in NapiLog
Dparser.js33 constructor() { method in Parser
Dast.js61 constructor(name, type, value, bindToken, jinzhi) { method in AstObject
356 constructor(name, nodeType, refName) { method in ConfigNode
580 constructor(name, value) { method in ConfigTerm
684 constructor(array) { method in ConfigArray
771 constructor(astRoot) { method in Ast
DGenerator.js22 constructor() { method in Generator
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/control/
DXButton.js19 constructor(x, y, w, h, name) { method in XButton
DXSelect.js20 constructor(list, default_) { method in XSelect
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/
DXShader.js27 constructor() { method in XShader
DXMat4.js19 constructor() { method in XMat4
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/attr/
DAttributeArea.js19 constructor() { method in AttributeArea
/drivers/external_device_manager/services/native/driver_extension_manager/src/bus_extension/usb/
Dusb_bus_extension.cpp197 __attribute__ ((constructor)) static void RegBusExtension() in RegBusExtension()

12