/drivers/peripheral/location/gnss/hdi_service/ |
D | location_vendor_interface.cpp | 31 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()
|
D | location_vendor_interface.h | 38 static LocationVendorInterface* instance_; variable
|
/drivers/peripheral/user_auth/test/unittest/mocks/inc/ |
D | c_mocker.h | 34 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/ |
D | camera_host_config.h | 62 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/ |
D | camera_host_config.cpp | 36 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/ |
D | dcamera_host.h | 68 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/ |
D | dcamera_provider.h | 68 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/ |
D | camera_dump.h | 45 static CameraDumper instance_; in GetInstance() local 46 return instance_; in GetInstance()
|
/drivers/peripheral/battery/interfaces/hdi_service/src/ |
D | battery_config.cpp | 45 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/ |
D | camera_host_usb_config.cpp | 27 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/ |
D | dcamera_host.cpp | 25 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/ |
D | object_collector.cpp | 25 ObjectCollector *ObjectCollector::instance_ = new ObjectCollector(); member in ObjectCollector 29 return *instance_; in GetInstance()
|
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_provider/ |
D | dcamera_provider.cpp | 26 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/ |
D | thermal_dfx.cpp | 64 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/ |
D | battery_config.h | 57 static std::shared_ptr<BatteryConfig> instance_; variable
|
/drivers/peripheral/thermal/interfaces/hdi_service/include/ |
D | thermal_dfx.h | 68 static std::shared_ptr<ThermalDfx> instance_; variable
|
/drivers/hdf_core/interfaces/inner_api/hdi/ |
D | object_collector.h | 78 static ObjectCollector *instance_; variable
|