/base/customization/enterprise_device_management/services/edm_plugin/src/network/executer/ |
D | executer_factory.cpp | 31 std::shared_ptr<ExecuterFactory> ExecuterFactory::instance_; member in OHOS::EDM::IPTABLES::ExecuterFactory 36 if (instance_ == nullptr) { in GetInstance() 38 if (instance_ == nullptr) { in GetInstance() 40 instance_ = temp; in GetInstance() 42 instance_->chainNames_.emplace_back(EDM_DEFAULT_DENY_OUTPUT_CHAIN_NAME); in GetInstance() 43 instance_->executerVector_.emplace_back( in GetInstance() 45 instance_->chainNames_.emplace_back(EDM_DEFAULT_DNS_DENY_OUTPUT_CHAIN_NAME); in GetInstance() 46 instance_->executerVector_.emplace_back(std::make_shared<DomainExecuter>( in GetInstance() 49 instance_->chainNames_.emplace_back(EDM_DENY_OUTPUT_CHAIN_NAME); in GetInstance() 50 instance_->executerVector_.emplace_back(std::make_shared<FirewallExecuter>(OUTPUT_CHAIN, in GetInstance() [all …]
|
D | executer_utils.cpp | 25 std::shared_ptr<ExecuterUtils> ExecuterUtils::instance_ = nullptr; member in OHOS::EDM::IPTABLES::ExecuterUtils 29 if (instance_ == nullptr) { in GetInstance() 31 if (instance_ == nullptr) { in GetInstance() 33 instance_ = temp; in GetInstance() 36 return instance_; in GetInstance()
|
/base/usb/usb_manager/utils/native/include/ |
D | delayed_sp_singleton.h | 41 static sptr<T> instance_; 45 template <typename T> sptr<T> DelayedSpSingleton<T>::instance_ = nullptr; 51 if (instance_ != nullptr) { in GetInstance() 52 return instance_; in GetInstance() 56 if (instance_ == nullptr) { in GetInstance() 57 instance_ = new(std::nothrow) T(); in GetInstance() 58 if (instance_ == nullptr) { in GetInstance() 63 return instance_; in GetInstance() 69 if (instance_) { in DestroyInstance() 70 instance_.clear(); in DestroyInstance() [all …]
|
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/ |
D | delayed_sp_singleton.h | 28 static sptr<T> instance_; 33 sptr<T> DumpDelayedSpSingleton<T>::instance_ = nullptr; 42 if (instance_) { in DestroyInstance() 43 instance_.clear(); in DestroyInstance() 44 instance_ = nullptr; in DestroyInstance() 51 if (!instance_) { in GetInstance() 53 if (instance_ == nullptr) { in GetInstance() 54 instance_ = new T(); in GetInstance() 57 return instance_; in GetInstance()
|
/base/powermgr/display_manager/state_manager/utils/native/include/ |
D | delayed_sp_singleton.h | 34 static sptr<T> instance_; 39 sptr<T> DelayedSpSingleton<T>::instance_ = nullptr; 47 if (!instance_) { in GetInstance() 49 if (instance_ == nullptr) { in GetInstance() 50 instance_ = new T(); in GetInstance() 54 return instance_; in GetInstance() 61 if (instance_) { in DestroyInstance() 62 instance_.clear(); in DestroyInstance() 63 instance_ = nullptr; in DestroyInstance()
|
/base/powermgr/battery_statistics/utils/native/include/ |
D | delayed_stats_sp_singleton.h | 41 static sptr<T> instance_; 46 sptr<T> DelayedStatsSpSingleton<T>::instance_ = nullptr; 54 if (!instance_) { in GetInstance() 56 if (instance_ == nullptr) { in GetInstance() 57 instance_ = new T(); in GetInstance() 61 return instance_; in GetInstance() 68 if (instance_) { in DestroyInstance() 69 instance_.clear(); in DestroyInstance() 70 instance_ = nullptr; in DestroyInstance()
|
/base/powermgr/power_manager/utils/native/include/ |
D | sp_singleton.h | 40 static sptr<T> instance_; 45 sptr<T> DelayedSpSingleton<T>::instance_ = nullptr; 53 if (!instance_) { in GetInstance() 55 if (instance_ == nullptr) { in GetInstance() 56 instance_ = new T(); in GetInstance() 60 return instance_; in GetInstance() 67 if (instance_) { in DestroyInstance() 68 instance_.clear(); in DestroyInstance() 69 instance_ = nullptr; in DestroyInstance()
|
/base/powermgr/battery_manager/utils/native/include/ |
D | sp_singleton.h | 40 static sptr<T> instance_; 45 sptr<T> DelayedSpSingleton<T>::instance_ = nullptr; 53 if (!instance_) { in GetInstance() 55 if (instance_ == nullptr) { in GetInstance() 56 instance_ = new T(); in GetInstance() 60 return instance_; in GetInstance() 67 if (instance_) { in DestroyInstance() 68 instance_.clear(); in DestroyInstance() 69 instance_ = nullptr; in DestroyInstance()
|
/base/powermgr/thermal_manager/utils/native/include/ |
D | delayed_sp_singleton.h | 40 static sptr<T> instance_; 45 sptr<T> DelayedSpSingleton<T>::instance_ = nullptr; 53 if (!instance_) { in GetInstance() 55 if (instance_ == nullptr) { in GetInstance() 56 instance_ = new T(); in GetInstance() 60 return instance_; in GetInstance() 67 if (instance_) { in DestroyInstance() 68 instance_.clear(); in DestroyInstance() 69 instance_ = nullptr; in DestroyInstance()
|
/base/sensors/miscdevice/utils/common/include/ |
D | miscdevice_delayed_sp_singleton.h | 40 static sptr<T> instance_; 45 sptr<T> MiscdeviceDelayedSpSingleton<T>::instance_ = nullptr; 54 if (!instance_) { in GetInstance() 55 if (instance_ == nullptr) { in GetInstance() 56 instance_ = new T(); in GetInstance() 59 return instance_; in GetInstance() 66 if (instance_) { in DestroyInstance() 67 instance_.clear(); in DestroyInstance() 68 instance_ = nullptr; in DestroyInstance()
|
/base/sensors/sensor/utils/common/include/ |
D | sensor_delayed_sp_singleton.h | 40 static sptr<T> instance_; 45 sptr<T> SensorDelayedSpSingleton<T>::instance_ = nullptr; 54 if (!instance_) { in GetInstance() 55 if (instance_ == nullptr) { in GetInstance() 56 instance_ = new T(); in GetInstance() 59 return instance_; in GetInstance() 66 if (instance_) { in DestroyInstance() 67 instance_.clear(); in DestroyInstance() 68 instance_ = nullptr; in DestroyInstance()
|
/base/msdp/device_status/utils/common/include/ |
D | devicestatus_delayed_sp_singleton.h | 43 static sptr<T> instance_; variable 47 sptr<T> DelayedSpSingleton<T>::instance_ { nullptr }; 55 if (instance_ == nullptr) { in GetInstance() 57 if (instance_ == nullptr) { in GetInstance() 58 instance_ = new T(); in GetInstance() 61 return instance_; in GetInstance() 68 if (instance_ != nullptr) { in DestroyInstance() 69 instance_.clear(); in DestroyInstance() 70 instance_ = nullptr; in DestroyInstance()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | ans_dialog_host_client.cpp | 25 if (instance_ != nullptr) { in CreateIfNullptr() 28 AnsDialogHostClient::instance_ = new (std::nothrow) AnsDialogHostClient(); in CreateIfNullptr() 29 result = AnsDialogHostClient::instance_; in CreateIfNullptr() 36 return AnsDialogHostClient::instance_; in GetInstance() 42 AnsDialogHostClient::instance_ = nullptr; in Destroy() 50 if (dialogCallbackInterface == nullptr || AnsDialogHostClient::instance_ == nullptr) { in SetDialogCallbackInterface() 53 AnsDialogHostClient::instance_->dialogCallbackInterface_ = std::move(dialogCallbackInterface); in SetDialogCallbackInterface()
|
/base/location/frameworks/native/source/ |
D | locator.cpp | 21 std::shared_ptr<LocatorImpl> Locator::instance_ = nullptr; member in OHOS::Location::Locator 28 if (instance_ == nullptr) { in GetInstance() 30 if (instance_ == nullptr) { in GetInstance() 32 instance_ = locator; in GetInstance() 35 return instance_; in GetInstance()
|
/base/useriam/fingerprint_auth/services/src/ |
D | fingerprint_auth_service.cpp | 67 std::shared_ptr<FingerprintAuthService> FingerprintAuthService::instance_ = nullptr; member in OHOS::UserIam::FingerprintAuth::FingerprintAuthService 75 if (instance_ == nullptr) { in GetInstance() 77 if (instance_ == nullptr) { in GetInstance() 78 instance_ = Common::MakeShared<FingerprintAuthService>(); in GetInstance() 79 if (instance_ == nullptr) { in GetInstance() 84 return instance_; in GetInstance()
|
/base/msdp/device_status/intention/scheduler/plugin_manager/include/ |
D | plugin_manager.h | 47 IPlugin *instance_ { nullptr }; 83 if (instance_ != nullptr) { in ~Plugin() 87 destroy(instance_); in ~Plugin() 96 if (instance_ != nullptr) { in GetInstance() 97 return instance_; in GetInstance() 101 instance_ = create(context_); in GetInstance() 103 return instance_; in GetInstance()
|
/base/theme/screenlock_mgr/frameworks/native/src/ |
D | screenlock_app_manager.cpp | 27 sptr<ScreenLockAppManager> ScreenLockAppManager::instance_; member in OHOS::ScreenLock::ScreenLockAppManager 42 if (instance_ == nullptr) { in GetInstance() 44 if (instance_ == nullptr) { in GetInstance() 45 instance_ = new ScreenLockAppManager; in GetInstance() 46 std::lock_guard<std::mutex> guard(instance_->managerProxyLock_); in GetInstance() 47 instance_->screenlockManagerProxy_ = GetScreenLockManagerProxy(); in GetInstance() 50 return instance_; in GetInstance()
|
/base/powermgr/power_manager/utils/vibrator/src/ |
D | power_vibrator.cpp | 33 std::shared_ptr<PowerVibrator> PowerVibrator::instance_ = nullptr; member in OHOS::PowerMgr::PowerVibrator 73 if (instance_ != nullptr) { in GetInstance() 74 return instance_; in GetInstance() 76 instance_ = std::make_shared<PowerVibrator>(); in GetInstance() 77 return instance_; in GetInstance()
|
/base/inputmethod/imf/test/unittest/cpp_test/mock/ |
D | datashare_helper.cpp | 20 std::shared_ptr<DataShareHelper> DataShareHelper::instance_; member in OHOS::DataShare::DataShareHelper 57 if (instance_ != nullptr) { in Creator() 58 return instance_; in Creator() 60 instance_ = std::make_shared<DataShareHelper>(); in Creator() 61 return instance_; in Creator()
|
/base/useriam/pin_auth/services/sa/src/ |
D | pin_auth_service.cpp | 42 std::shared_ptr<PinAuthService> PinAuthService::instance_ = nullptr; member in OHOS::UserIam::PinAuth::PinAuthService 50 if (instance_ == nullptr) { in GetInstance() 52 if (instance_ == nullptr) { in GetInstance() 53 instance_ = Common::MakeShared<PinAuthService>(); in GetInstance() 54 if (instance_ == nullptr) { in GetInstance() 59 return instance_; in GetInstance()
|
/base/customization/enterprise_device_management/interfaces/inner_api/datetime_manager/src/ |
D | datetime_manager_proxy.cpp | 23 std::shared_ptr<DatetimeManagerProxy> DatetimeManagerProxy::instance_ = nullptr; member in OHOS::EDM::DatetimeManagerProxy 33 if (instance_ == nullptr) { in GetDatetimeManagerProxy() 35 if (instance_ == nullptr) { in GetDatetimeManagerProxy() 37 instance_ = temp; in GetDatetimeManagerProxy() 40 return instance_; in GetDatetimeManagerProxy()
|
/base/inputmethod/imf/services/adapter/settings_data_provider/src/ |
D | security_mode_parser.cpp | 29 sptr<SecurityModeParser> SecurityModeParser::instance_ = nullptr; member in OHOS::MiscServices::SecurityModeParser 37 if (instance_ == nullptr) { in GetInstance() 39 if (instance_ == nullptr) { in GetInstance() 41 instance_ = new (std::nothrow) SecurityModeParser(); in GetInstance() 42 if (instance_ == nullptr) { in GetInstance() 44 return instance_; in GetInstance() 48 return instance_; in GetInstance()
|
/base/account/os_account/services/accountmgr/include/ |
D | iaccount_context.h | 27 return IAccountContext::instance_; in GetInstance() 37 IAccountContext::instance_ = instance; in SetInstance() 41 static IAccountContext *instance_;
|
/base/customization/enterprise_device_management/interfaces/inner_api/bluetooth_manager/src/ |
D | bluetooth_manager_proxy.cpp | 24 std::shared_ptr<BluetoothManagerProxy> BluetoothManagerProxy::instance_ = nullptr; member in OHOS::EDM::BluetoothManagerProxy 30 if (instance_ == nullptr) { in GetBluetoothManagerProxy() 32 if (instance_ == nullptr) { in GetBluetoothManagerProxy() 34 instance_ = temp; in GetBluetoothManagerProxy() 37 return instance_; in GetBluetoothManagerProxy()
|
/base/update/updateservice/interfaces/inner_api/common/src/ |
D | load_sa_service.cpp | 27 sptr<LoadSaService> LoadSaService::instance_ = nullptr; member in OHOS::UpdateEngine::LoadSaService 32 if (instance_ == nullptr) { in GetInstance() 34 if (instance_ == nullptr) { in GetInstance() 35 instance_ = new LoadSaService(); in GetInstance() 38 return instance_; in GetInstance()
|