Home
last modified time | relevance | path

Searched refs:instance_ (Results 1 – 17 of 17) sorted by relevance

/drivers/peripheral/location/gnss/hdi_service/
Dlocation_vendor_interface.cpp31 LocationVendorInterface* LocationVendorInterface::instance_ = nullptr; member in OHOS::HDI::Location::LocationVendorInterface
47 if (instance_ == nullptr) { in GetInstance()
49 if (instance_ == nullptr) { in GetInstance()
50 instance_ = new LocationVendorInterface(); in GetInstance()
53 return instance_; in GetInstance()
59 if (instance_ != nullptr) { in DestroyInstance()
60 delete instance_; in DestroyInstance()
61 instance_ = nullptr; in DestroyInstance()
Dlocation_vendor_interface.h38 static LocationVendorInterface* instance_; variable
/drivers/peripheral/user_auth/test/unittest/mocks/inc/
Dc_mocker.h34 EXPECT_EQ(instance_, nullptr); in CMocker()
35 instance_ = static_cast<T *>(this); in CMocker()
41 EXPECT_EQ(instance_, this); in ~CMocker()
42 instance_ = nullptr; in ~CMocker()
46 return instance_; in GetInstance()
55 static T *instance_;
60 T *CMocker<T>::instance_ = nullptr;
/drivers/peripheral/camera/vdi_base/v4l2/include/camera_host/
Dcamera_host_config.h62 if (CameraHostConfig::instance_ != nullptr) { in ~AutoRelease()
63 delete CameraHostConfig::instance_; in ~AutoRelease()
64 CameraHostConfig::instance_ = nullptr; in ~AutoRelease()
68 static CameraHostConfig *instance_; variable
/drivers/peripheral/camera/vdi_base/v4l2/src/camera_host/
Dcamera_host_config.cpp36 CameraHostConfig *CameraHostConfig::instance_ = nullptr; member in OHOS::Camera::CameraHostConfig
41 if (instance_ == nullptr) { in GetInstance()
42 instance_ = new (std::nothrow) CameraHostConfig(); in GetInstance()
43 if (instance_ != nullptr) { in GetInstance()
44 instance_->ReadConfigFile(); in GetInstance()
47 return instance_; in GetInstance()
/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_host/
Ddcamera_host.h68 if (DCameraHost::instance_ != nullptr) { in ~AutoRelease()
69 DCameraHost::instance_ = nullptr; in ~AutoRelease()
74 static OHOS::sptr<DCameraHost> instance_; variable
/drivers/peripheral/distributed_camera/hdi_service/include/dcamera_provider/
Ddcamera_provider.h68 if (DCameraProvider::instance_ != nullptr) { in ~AutoRelease()
69 DCameraProvider::instance_ = nullptr; in ~AutoRelease()
74 static OHOS::sptr<DCameraProvider> instance_; variable
/drivers/peripheral/camera/vdi_base/v4l2/include/
Dcamera_dump.h45 static CameraDumper instance_; in GetInstance() local
46 return instance_; in GetInstance()
/drivers/peripheral/battery/interfaces/hdi_service/src/
Dbattery_config.cpp45 std::shared_ptr<BatteryConfig> BatteryConfig::instance_ = nullptr; member in OHOS::HDI::Battery::V1_2::BatteryConfig
51 if (instance_ == nullptr) { in GetInstance()
52 instance_ = std::make_shared<BatteryConfig>(); in GetInstance()
54 return *(instance_.get()); in GetInstance()
110 instance_ = nullptr; in DestroyInstance()
/drivers/peripheral/camera/vdi_base/usb_camera/vdi_impl/src/camera_host/
Dcamera_host_usb_config.cpp27 CameraHostConfig *CameraHostConfig::instance_ = nullptr; member in OHOS::Camera::CameraHostConfig
32 if (instance_ == nullptr) { in GetInstance()
33 instance_ = new (std::nothrow) CameraHostConfig(); in GetInstance()
35 return instance_; in GetInstance()
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_host/
Ddcamera_host.cpp25 OHOS::sptr<DCameraHost> DCameraHost::instance_ = nullptr; member in OHOS::DistributedHardware::DCameraHost
35 if (instance_ == nullptr) { in GetInstance()
36 instance_ = new DCameraHost(); in GetInstance()
37 if (instance_ == nullptr) { in GetInstance()
42 return instance_; in GetInstance()
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dobject_collector.cpp25 ObjectCollector *ObjectCollector::instance_ = new ObjectCollector(); member in ObjectCollector
29 return *instance_; in GetInstance()
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_provider/
Ddcamera_provider.cpp26 OHOS::sptr<DCameraProvider> DCameraProvider::instance_ = nullptr; member in OHOS::DistributedHardware::DCameraProvider
36 if (instance_ == nullptr) { in GetInstance()
37 instance_ = new DCameraProvider(); in GetInstance()
38 if (instance_ == nullptr) { in GetInstance()
43 return instance_; in GetInstance()
/drivers/peripheral/thermal/interfaces/hdi_service/src/
Dthermal_dfx.cpp64 std::shared_ptr<ThermalDfx> ThermalDfx::instance_ = nullptr; member in OHOS::HDI::Thermal::V1_1::ThermalDfx
70 if (instance_ == nullptr) { in GetInstance()
71 instance_ = std::make_shared<ThermalDfx>(); in GetInstance()
73 return *(instance_.get()); in GetInstance()
79 instance_ = nullptr; in DestroyInstance()
/drivers/peripheral/battery/interfaces/hdi_service/include/
Dbattery_config.h57 static std::shared_ptr<BatteryConfig> instance_; variable
/drivers/peripheral/thermal/interfaces/hdi_service/include/
Dthermal_dfx.h68 static std::shared_ptr<ThermalDfx> instance_; variable
/drivers/hdf_core/interfaces/inner_api/hdi/
Dobject_collector.h78 static ObjectCollector *instance_; variable