/base/usb/usb_manager/test/native/service_unittest/src/ |
D | usb_core_test.cpp | 81 auto &instance = UsbSrvClient::GetInstance(); variable 83 int32_t ret = instance.GetCurrentFunctions(funcs); 98 auto &instance = UsbSrvClient::GetInstance(); variable 100 int32_t ret = instance.GetCurrentFunctions(funcs); 116 auto &instance = UsbSrvClient::GetInstance(); variable 118 int32_t ret = instance.GetCurrentFunctions(funcs); 134 auto &instance = UsbSrvClient::GetInstance(); variable 136 int32_t ret = instance.GetCurrentFunctions(funcs); 151 auto &instance = UsbSrvClient::GetInstance(); variable 152 int32_t isok = instance.SetCurrentFunctions(UsbSrvSupport::FUNCTION_ACM); [all …]
|
/base/security/device_security_level/baselib/msglib/src/lite/ |
D | messenger_device_session_manager.c | 101 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in ProcessSessionMessageReceived() local 102 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in ProcessSessionMessageReceived() 113 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in OnSessionMessageReceived() local 114 WorkQueue *queue = instance->queue; in OnSessionMessageReceived() 119 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in OnSessionMessageReceived() 203 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in MessengerOnSessionOpened() local 204 LockMutex(&instance->mutex); in MessengerOnSessionOpened() 205 AddListNodeBefore(&sessionInfo->link, &instance->openedSessionList); in MessengerOnSessionOpened() 206 UnlockMutex(&instance->mutex); in MessengerOnSessionOpened() 240 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in MessengerOnSessionOpened() local [all …]
|
D | messenger_device_status_manager.c | 73 DeviceStatusManager *instance = GetDeviceManagerInstance(); in ProcessDeviceStatusReceived() local 74 DeviceStatusReceiver deviceStatusReceiver = instance->deviceStatusReceiver; in ProcessDeviceStatusReceived() 85 DeviceStatusManager *instance = GetDeviceManagerInstance(); in ProcessDeviceStatusReceiver() local 87 WorkQueue *queue = instance->queue; in ProcessDeviceStatusReceiver() 93 DeviceStatusReceiver deviceStatusReceiver = instance->deviceStatusReceiver; in ProcessDeviceStatusReceiver() 128 DeviceStatusManager *instance = GetDeviceManagerInstance(); in MessengerOnNodeStateChange() local 131 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange() 177 DeviceStatusManager *instance = GetDeviceManagerInstance(); in InitDeviceStatusManager() local 178 instance->pkgName = pkgName; in InitDeviceStatusManager() 179 instance->deviceStatusReceiver = deviceStatusReceiver; in InitDeviceStatusManager() [all …]
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_socket_manager.c | 97 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in ProcessSocketMessageReceived() local 106 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in ProcessSocketMessageReceived() 121 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in OnSocketMessageReceived() local 123 WorkQueue *queue = instance->queue; in OnSocketMessageReceived() 128 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in OnSocketMessageReceived() 162 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in RemoveSocketNode() local 163 ListHead *socketList = isServer ? &instance->serverSocketList : &instance->clientSocketList; in RemoveSocketNode() 165 LockMutex(&instance->mutex); in RemoveSocketNode() 176 UnlockMutex(&instance->mutex); in RemoveSocketNode() 215 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in CreateOrRestartSocketCloseTimer() local [all …]
|
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/ |
D | auth_sub_session.c | 36 BaseProtocol *instance; member 68 BaseProtocol *protocol = impl->instance; in StartAuthSubSession() 84 BaseProtocol *protocol = impl->instance; in ProcessAuthSubSession() 100 return impl->instance->setPsk(impl->instance, psk); in SetPsk() 110 return impl->instance->setSelfProtectedMsg(impl->instance, selfMsg); in SetSelfProtectedMsg() 120 return impl->instance->setPeerProtectedMsg(impl->instance, peerMsg); in SetPeerProtectedMsg() 130 return impl->instance->getSessionKey(impl->instance, returnSessionKey); in GetSessionKey() 140 impl->instance->destroy(impl->instance); in DestroyAuthSubSession() 176 impl->instance = protocol; in CreateAuthSubSession()
|
/base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/MainAbility/ |
D | GlobalContext.ts | 22 private static instance: GlobalContext; property in GlobalContext 26 if (!GlobalContext.instance) { 27 GlobalContext.instance = new GlobalContext(); 29 return GlobalContext.instance;
|
/base/security/crypto_framework/frameworks/js/napi/crypto/src/ |
D | napi_pub_key.cpp | 47 napi_value instance; in ConvertToJsPubKey() local 50 napi_new_instance(env, constructor, 0, nullptr, &instance); in ConvertToJsPubKey() 57 napi_set_named_property(env, instance, CRYPTO_TAG_ALG_NAME.c_str(), napiAlgName); in ConvertToJsPubKey() 61 napi_set_named_property(env, instance, CRYPTO_TAG_FORMAT.c_str(), napiFormat); in ConvertToJsPubKey() 62 return instance; in ConvertToJsPubKey() 92 napi_value instance = ConvertBlobToNapiValue(env, &returnBlob); in JsGetEncoded() local 94 return instance; in JsGetEncoded() 107 napi_value instance = ConvertBigIntToNapiValue(env, &returnBigInteger); in GetAsyKeySpecBigInt() local 109 return instance; in GetAsyKeySpecBigInt() 122 napi_value instance = nullptr; in GetAsyKeySpecNumber() local [all …]
|
D | napi_pri_key.cpp | 47 napi_value instance; in ConvertToJsPriKey() local 50 napi_new_instance(env, constructor, 0, nullptr, &instance); in ConvertToJsPriKey() 57 napi_set_named_property(env, instance, CRYPTO_TAG_ALG_NAME.c_str(), napiAlgName); in ConvertToJsPriKey() 61 napi_set_named_property(env, instance, CRYPTO_TAG_FORMAT.c_str(), napiFormat); in ConvertToJsPriKey() 62 return instance; in ConvertToJsPriKey() 92 napi_value instance = ConvertBlobToNapiValue(env, &returnBlob); in JsGetEncoded() local 94 return instance; in JsGetEncoded() 130 napi_value instance = ConvertBigIntToNapiValue(env, &returnBigInteger); in GetAsyKeySpecBigInt() local 132 return instance; in GetAsyKeySpecBigInt() 145 napi_value instance = nullptr; in GetAsyKeySpecNumber() local [all …]
|
D | napi_key.cpp | 59 napi_value instance = nullptr; in JsGetAlgorithm() local 60 napi_create_string_utf8(env, algo, NAPI_AUTO_LENGTH, &instance); in JsGetAlgorithm() 61 return instance; in JsGetAlgorithm() 84 napi_value instance = nullptr; in JsGetFormat() local 85 napi_create_string_utf8(env, format, NAPI_AUTO_LENGTH, &instance); in JsGetFormat() 86 return instance; in JsGetFormat() 115 napi_value instance = ConvertBlobToNapiValue(env, &blob); in JsGetEncoded() local 117 return instance; in JsGetEncoded()
|
D | napi_asy_key_spec_generator.cpp | 139 napi_value instance = nullptr; in GenKeyPairAsyncWorkReturn() local 148 instance = napiKeyPair->ConvertToJsKeyPair(env); in GenKeyPairAsyncWorkReturn() 151 env, instance, napiKeyPair, in GenKeyPairAsyncWorkReturn() 166 ReturnAsyKeyCallbackResult(env, ctx, instance); in GenKeyPairAsyncWorkReturn() 168 ReturnAsyKeyPromiseResult(env, ctx, instance); in GenKeyPairAsyncWorkReturn() 188 napi_value instance = nullptr; in PubKeyAsyncWorkReturn() local 197 instance = napiPubKey->ConvertToJsPubKey(env); in PubKeyAsyncWorkReturn() 200 env, instance, napiPubKey, in PubKeyAsyncWorkReturn() 216 ReturnAsyKeyCallbackResult(env, ctx, instance); in PubKeyAsyncWorkReturn() 218 ReturnAsyKeyPromiseResult(env, ctx, instance); in PubKeyAsyncWorkReturn() [all …]
|
/base/powermgr/power_manager/power_dialog/entry/src/main/ets/common/ |
D | GlobalContext.ts | 19 private static instance: GlobalContext; property in GlobalContext 23 if (!GlobalContext.instance) { 25 GlobalContext.instance = new GlobalContext(); 28 return GlobalContext.instance;
|
/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
D | napi_key.cpp | 51 napi_value instance = nullptr; in JsGetAlgorithm() local 52 napi_create_string_utf8(env, algo, NAPI_AUTO_LENGTH, &instance); in JsGetAlgorithm() 53 return instance; in JsGetAlgorithm() 66 napi_value instance = nullptr; in JsGetFormat() local 67 napi_create_string_utf8(env, format, NAPI_AUTO_LENGTH, &instance); in JsGetFormat() 68 return instance; in JsGetFormat() 88 napi_value instance = ConvertBlobToNapiValue(env, &tmpCfBlob); in JsGetEncoded() local 90 return instance; in JsGetEncoded()
|
D | napi_x509_cert_chain.cpp | 100 napi_value instance = nullptr; in CreateCertChainJSInstance() local 102 napi_new_instance(env, constructor, 0, nullptr, &instance); in CreateCertChainJSInstance() 103 return instance; in CreateCertChainJSInstance() 132 napi_value instance = CreateCertChainJSInstance(env); in BuildCreateInstance() local 139 env, instance, napiObject, in BuildCreateInstance() 146 return instance; in BuildCreateInstance() 158 napi_value instance = BuildCreateInstance(env, context->certChain); in CreateCertChainComplete() local 159 if (instance == nullptr) { in CreateCertChainComplete() 166 ReturnJSResult(env, context->async, instance); in CreateCertChainComplete() 202 napi_value instance = BuildX509CertChainValidateResultJS(env, &context->result); in ValidateComplete() local [all …]
|
D | napi_pub_key.cpp | 53 napi_value instance; in ConvertToJsPubKey() local 56 napi_new_instance(env, constructor, 0, nullptr, &instance); in ConvertToJsPubKey() 63 napi_set_named_property(env, instance, CRYPTO_TAG_ALG_NAME.c_str(), napiAlgName); in ConvertToJsPubKey() 67 napi_set_named_property(env, instance, CRYPTO_TAG_FORMAT.c_str(), napiFormat); in ConvertToJsPubKey() 70 return instance; in ConvertToJsPubKey() 88 napi_value instance = ConvertBlobToNapiValue(env, &tmpCfBlob); in JsGetEncoded() local 90 return instance; in JsGetEncoded()
|
D | napi_cert_crl_common.cpp | 33 napi_value instance; in ConvertCertArrToNapiValue() local 34 napi_create_array(env, &instance); in ConvertCertArrToNapiValue() 35 if (instance == nullptr) { in ConvertCertArrToNapiValue() 41 return instance; in ConvertCertArrToNapiValue() 47 napi_set_element(env, instance, j++, element); in ConvertCertArrToNapiValue() 50 return instance; in ConvertCertArrToNapiValue() 71 napi_value instance = NapiX509Certificate::CreateX509Cert(env); in ConvertCertToNapiValue() local 73 env, instance, x509Cert, in ConvertCertToNapiValue() 81 return instance; in ConvertCertToNapiValue()
|
/base/usb/usb_manager/frameworks/dialog/dialog_ui/usb_right_dialog/src/main/ets/util/ |
D | GlobalThisProxy.ts | 20 private static instance: GlobalThisProxy; property in GlobalThisProxy 26 if (!GlobalThisProxy.instance) { 27 GlobalThisProxy.instance = new GlobalThisProxy(); 29 return GlobalThisProxy.instance;
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | token_modify_notifier.cpp | 87 static TokenModifyNotifier instance; in GetInstance() local 89 if (!instance.hasInited_) { in GetInstance() 90 Utils::UniqueWriteGuard<Utils::RWLock> infoGuard(instance.initLock_); in GetInstance() 91 if (!instance.hasInited_) { in GetInstance() 93 instance.notifyTokenWorker_.Start(1); in GetInstance() 95 instance.hasInited_ = true; in GetInstance() 99 return instance; in GetInstance()
|
/base/location/frameworks/location_common/common/source/ |
D | location_sa_load_manager.cpp | 111 auto instance = DelayedSingleton<LocationSaLoadManager>::GetInstance(); in OnLoadSystemAbilitySuccess() local 112 if (instance == nullptr) { in OnLoadSystemAbilitySuccess() 116 instance->LoadSystemAbilitySuccess(); in OnLoadSystemAbilitySuccess() 122 auto instance = DelayedSingleton<LocationSaLoadManager>::GetInstance(); in OnLoadSystemAbilityFail() local 123 if (instance == nullptr) { in OnLoadSystemAbilityFail() 127 instance->LoadSystemAbilityFail(); in OnLoadSystemAbilityFail()
|
/base/startup/init/device_info/ |
D | device_info.cpp | 37 OHOS::device_info::DeviceInfoKits &instance = OHOS::device_info::DeviceInfoKits::GetInstance(); in AclGetDevUdid() local 38 int ret = instance.GetUdid(result); in AclGetDevUdid() 53 OHOS::device_info::DeviceInfoKits &instance = OHOS::device_info::DeviceInfoKits::GetInstance(); in AclGetSerial() local 54 int ret = instance.GetSerialID(result); in AclGetSerial()
|
/base/startup/init/test/unittest/param/ |
D | watcher_agent_unittest.cpp | 173 WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance(); in TestRecvMessage() local 174 if (instance.remoteWatcher_ != nullptr) { in TestRecvMessage() 175 instance.remoteWatcher_->OnRemoteRequest(IWatcher::PARAM_CHANGE, data, reply, option); in TestRecvMessage() 176 … instance.remoteWatcher_->OnRemoteRequest(IWatcher::PARAM_CHANGE + 1, data, reply, option); in TestRecvMessage() 177 instance.remoteWatcher_->OnParameterChange(name.c_str(), "testname", "testvalue"); in TestRecvMessage() 179 instance.remoteWatcher_->OnParameterChange(name.c_str(), "testname.2", "testvalue"); in TestRecvMessage() 181 instance.remoteWatcher_->OnParameterChange(name.c_str(), "testname.2", "testvalue"); in TestRecvMessage() 185 … instance.remoteWatcher_->OnParameterChange("44444444444444444444", "testname.2", "testvalue"); in TestRecvMessage() 197 …OHOS::init_param::WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance… in TestResetService() local 198 if (instance.GetDeathRecipient() != nullptr) { in TestResetService() [all …]
|
/base/update/updater/test/unittest/updater_ui_test/ |
D | ui_test_graphic_engine.h | 29 static TestGraphicEngine instance; in GetInstance() local 32 OHOS::SoftEngine::InitGfxEngine(&instance); in GetInstance() 35 return instance; in GetInstance()
|
/base/useriam/user_auth_framework/services/core/src/ |
D | template_cache_manager.cpp | 122 auto instance = GetInstance(); in Subscribe() local 123 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Subscribe() 125 int32_t ret = sam->SubscribeSystemAbility(SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN, instance); in Subscribe() 142 auto instance = GetInstance(); in Subscribe() local 143 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Subscribe() 145 ErrCode errCode = AccountSA::OsAccountManager::SubscribeOsAccount(instance); in Subscribe() 162 auto instance = GetInstance(); in Unsubscribe() local 163 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Unsubscribe() 165 ErrCode errCode = AccountSA::OsAccountManager::UnsubscribeOsAccount(instance); in Unsubscribe()
|
/base/useriam/fingerprint_auth/services_ex/src/ |
D | screen_state_monitor.cpp | 77 auto instance = GetInstance(); in Subscribe() local 78 IF_FALSE_LOGE_AND_RETURN_VAL(instance != NULL, ResultCode::GENERAL_ERROR); in Subscribe() 80 int32_t ret = CommonEventManager::NewSubscribeCommonEvent(instance); in Subscribe() 91 auto instance = GetInstance(); in Unsubscribe() local 92 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Unsubscribe() 94 int32_t ret = CommonEventManager::NewUnSubscribeCommonEvent(instance); in Unsubscribe()
|
/base/useriam/user_auth_framework/frameworks/native/executors/src/listener/ |
D | auth_executor_mgr_status_listener.cpp | 31 …static sptr<AuthExecutorMgrStatusListener> instance(new (std::nothrow) AuthExecutorMgrStatusListen… in GetInstance() local 32 if (instance == nullptr) { in GetInstance() 35 return instance; in GetInstance()
|
/base/hiviewdfx/hiview/base/ |
D | audit.cpp | 38 static auto& instance = Audit::GetInstance(); in WriteAuditEvent() local 39 if (!instance.IsEnabled()) { in WriteAuditEvent() 56 instance.WriteEvent(out); in WriteAuditEvent() 62 static auto& instance = Audit::GetInstance(); in GetAuditLog() local 63 if (!instance.IsEnabled()) { in GetAuditLog() 67 instance.GetAuditLogInner(loadFromFile, ret); in GetAuditLog() 73 static auto& instance = Audit::GetInstance(); in IsEnabled() local 74 return instance.enabled_; in IsEnabled()
|