/base/security/device_security_level/baselib/msglib/src/lite/ |
D | messenger_device_session_manager.c | 95 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in ProcessSessionMessageReceived() local 96 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in ProcessSessionMessageReceived() 107 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in OnSessionMessageReceived() local 108 WorkQueue *queue = instance->queue; in OnSessionMessageReceived() 113 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in OnSessionMessageReceived() 183 DeviceSessionManager *instance = GetDeviceSessionManagerInstance(); in MessengerOnSessionOpened() local 184 LockMutex(&instance->mutex); in MessengerOnSessionOpened() 185 AddListNodeBefore(&sessionInfo->link, &instance->openedSessionList); in MessengerOnSessionOpened() 186 UnlockMutex(&instance->mutex); in MessengerOnSessionOpened() 220 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 132 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange() 178 DeviceStatusManager *instance = GetDeviceManagerInstance(); in InitDeviceStatusManager() local 179 instance->pkgName = pkgName; in InitDeviceStatusManager() 180 instance->deviceStatusReceiver = deviceStatusReceiver; in InitDeviceStatusManager() [all …]
|
/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/account/os_account/services/accountmgr/test/unittest/domain_account/ |
D | domain_account_manager_inner_service_test.cpp | 501 InnerDomainAccountManager *instance = new (std::nothrow) InnerDomainAccountManager(); variable 502 instance->libHandle_ = nullptr; 506 instance->LoaderLib(rightPath, rightSoName); 507 EXPECT_NE(instance->libHandle_, nullptr); 509 instance->CloseLib(); 510 EXPECT_EQ(instance->libHandle_, nullptr); 512 instance->CloseLib(); 513 EXPECT_EQ(instance->libHandle_, nullptr); 515 instance->LoaderLib(rightPath, ""); 516 EXPECT_EQ(instance->libHandle_, nullptr); [all …]
|
/base/web/webview/ohos_glue/ohos_adapter/bridge/ |
D | ark_ohos_adapter_helper_impl.cpp | 77 static NWeb::OhosAdapterHelper& instance = NWeb::OhosAdapterHelper::GetInstance(); in GetInstance() local 78 static ArkWebRefPtr<ArkOhosAdapterHelper> impl = new ArkOhosAdapterHelperImpl(instance); in GetInstance() 121 static NWeb::OhosWebDataBaseAdapter& instance = real_.GetOhosWebDataBaseAdapterInstance(); in GetOhosWebDataBaseAdapterInstance() local 122 … static ArkWebRefPtr<ArkOhosWebDataBaseAdapter> impl = new ArkOhosWebDataBaseAdapterImpl(instance); in GetOhosWebDataBaseAdapterInstance() 128 static NWeb::PasteBoardClientAdapter& instance = real_.GetPasteBoard(); in GetPasteBoard() local 129 …tatic ArkWebRefPtr<ArkPasteBoardClientAdapter> impl = new ArkPasteBoardClientAdapterImpl(instance); in GetPasteBoard() 149 static NWeb::AudioSystemManagerAdapter& instance = real_.GetAudioSystemManager(); in GetAudioSystemManager() local 150 …c ArkWebRefPtr<ArkAudioSystemManagerAdapter> impl = new ArkAudioSystemManagerAdapterImpl(instance); in GetAudioSystemManager() 156 …static NWeb::OhosWebPermissionDataBaseAdapter& instance = real_.GetWebPermissionDataBaseInstance(); in GetWebPermissionDataBaseInstance() local 158 new ArkOhosWebPermissionDataBaseAdapterImpl(instance); in GetWebPermissionDataBaseInstance() [all …]
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_socket_manager.c | 91 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in ProcessSocketMessageReceived() local 100 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in ProcessSocketMessageReceived() 115 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in OnSocketMessageReceived() local 117 WorkQueue *queue = instance->queue; in OnSocketMessageReceived() 122 DeviceMessageReceiver messageReceiver = instance->messageReceiver; in OnSocketMessageReceived() 142 DeviceSocketManager *instance = GetDeviceSocketManagerInstance(); in RemoveSocketNode() local 143 ListHead *socketList = isServer ? &instance->serverSocketList : &instance->clientSocketList; in RemoveSocketNode() 145 LockMutex(&instance->mutex); in RemoveSocketNode() 156 UnlockMutex(&instance->mutex); in RemoveSocketNode() 195 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/location/frameworks/location_common/common/source/ |
D | location_sa_load_manager.cpp | 129 auto instance = DelayedSingleton<LocationSaLoadManager>::GetInstance(); in InitLocationSa() local 130 if (instance == nullptr || instance->LoadLocationSa(systemAbilityId) != ERRCODE_SUCCESS) { in InitLocationSa() 148 auto instance = DelayedSingleton<LocationSaLoadManager>::GetInstance(); in UnInitLocationSa() local 149 if (instance == nullptr || instance->UnloadLocationSa(systemAbilityId) != ERRCODE_SUCCESS) { in UnInitLocationSa() 163 auto instance = DelayedSingleton<LocationSaLoadManager>::GetInstance(); in OnLoadSystemAbilitySuccess() local 164 if (instance == nullptr) { in OnLoadSystemAbilitySuccess() 168 instance->LoadSystemAbilitySuccess(); in OnLoadSystemAbilitySuccess() 174 auto instance = DelayedSingleton<LocationSaLoadManager>::GetInstance(); in OnLoadSystemAbilityFail() local 175 if (instance == nullptr) { in OnLoadSystemAbilityFail() 179 instance->LoadSystemAbilityFail(); in OnLoadSystemAbilityFail()
|
/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/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() 138 napi_value instance = ConvertBlobToNapiValue(env, &returnBlob); in JsGetEncodedDer() local 140 return instance; in JsGetEncodedDer() 185 napi_value instance = nullptr; in JsGetEncodedPem() 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() 139 napi_value instance = nullptr; in JsGetEncodedPem() local 140 napi_create_string_utf8(env, returnString, NAPI_AUTO_LENGTH, &instance); in JsGetEncodedPem() 142 return instance; in JsGetEncodedPem() [all …]
|
D | napi_asy_key_spec_generator.cpp | 167 napi_value instance = nullptr; in GenKeyPairAsyncWorkReturn() local 177 instance = napiKeyPair->ConvertToJsKeyPair(env); in GenKeyPairAsyncWorkReturn() 180 env, instance, napiKeyPair, in GenKeyPairAsyncWorkReturn() 195 ReturnAsyKeyCallbackResult(env, ctx, instance); in GenKeyPairAsyncWorkReturn() 197 ReturnAsyKeyPromiseResult(env, ctx, instance); in GenKeyPairAsyncWorkReturn() 217 napi_value instance = nullptr; in PubKeyAsyncWorkReturn() local 227 instance = napiPubKey->ConvertToJsPubKey(env); in PubKeyAsyncWorkReturn() 230 env, instance, napiPubKey, in PubKeyAsyncWorkReturn() 247 ReturnAsyKeyCallbackResult(env, ctx, instance); in PubKeyAsyncWorkReturn() 249 ReturnAsyKeyPromiseResult(env, ctx, instance); in PubKeyAsyncWorkReturn() [all …]
|
D | napi_sm2_crypto_util.cpp | 151 napi_value instance = ConvertBlobToNapiValue(env, output); in JsGenCipherTextBySpec() local 155 return instance; in JsGenCipherTextBySpec() 183 static bool BuildBlobNapiValue(napi_env env, HcfBlob *blob, const char *name, napi_value *instance) in BuildBlobNapiValue() argument 186 napi_status status = napi_set_named_property(env, *instance, name, napiData); in BuildBlobNapiValue() 194 …bool BuildSm2CipherTextSpecToNapiValue(napi_env env, Sm2CipherTextSpec *spec, napi_value *instance) in BuildSm2CipherTextSpecToNapiValue() argument 196 …!BuildSetNamedProperty(env, &(spec->xCoordinate), SM2_UTIL_PARAM_X_COORDINATE.c_str(), instance)) { in BuildSm2CipherTextSpecToNapiValue() 200 …!BuildSetNamedProperty(env, &(spec->yCoordinate), SM2_UTIL_PARAM_Y_COORDINATE.c_str(), instance)) { in BuildSm2CipherTextSpecToNapiValue() 204 …ldBlobNapiValue(env, &(spec->cipherTextData), SM2_UTIL_PARAM_CIPHER_TEXT_DATA.c_str(), instance)) { in BuildSm2CipherTextSpecToNapiValue() 208 if (!BuildBlobNapiValue(env, &(spec->hashData), SM2_UTIL_PARAM_HASH_DATA.c_str(), instance)) { in BuildSm2CipherTextSpecToNapiValue() 222 napi_value instance; in ConvertSm2CipherTextSpecToNapiValue() 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()
|
/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_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_x509_cert_chain.cpp | 129 napi_value instance = nullptr; in CreateCertChainJSInstance() local 131 napi_new_instance(env, constructor, 0, nullptr, &instance); in CreateCertChainJSInstance() 132 return instance; in CreateCertChainJSInstance() 176 napi_value instance = CreateCertChainJSInstance(env); in BuildCreateInstance() local 183 env, instance, napiObject, in BuildCreateInstance() 190 return instance; in BuildCreateInstance() 202 napi_value instance = BuildCreateInstance(env, context->certChain); in CreateCertChainComplete() local 203 if (instance == nullptr) { in CreateCertChainComplete() 210 ReturnJSResult(env, context->async, instance); in CreateCertChainComplete() 246 napi_value instance = BuildCreateInstanceByBulidRlt(env, context); in BuildX509CertChainComplete() local [all …]
|
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() 85 return instance; in ConvertCertToNapiValue()
|
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/ |
D | token_modify_notifier.cpp | 90 static TokenModifyNotifier* instance = nullptr; in GetInstance() local 91 if (instance == nullptr) { in GetInstance() 93 if (instance == nullptr) { in GetInstance() 94 instance = new TokenModifyNotifier(); in GetInstance() 98 if (!instance->hasInited_) { in GetInstance() 99 Utils::UniqueWriteGuard<Utils::RWLock> infoGuard(instance->initLock_); in GetInstance() 100 if (!instance->hasInited_) { in GetInstance() 102 instance->notifyTokenWorker_.Start(1); in GetInstance() 104 instance->hasInited_ = true; in GetInstance() 108 return *instance; in GetInstance()
|
/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/interfaces/innerkits/tokensync/src/ |
D | token_sync_manager_client.cpp | 33 static TokenSyncManagerClient* instance = nullptr; in GetInstance() local 34 if (instance == nullptr) { in GetInstance() 36 if (instance == nullptr) { in GetInstance() 37 instance = new TokenSyncManagerClient(); in GetInstance() 40 return *instance; in GetInstance()
|
/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/ |
D | permission_definition_parser_test.cpp | 181 PermissionDefinitionParser& instance = PermissionDefinitionParser::GetInstance(); variable 187 instance.ParserPermsRawData(permsRawData, permDefList); 195 instance.ParserPermsRawData(permsRawData, permDefList); 203 instance.ParserPermsRawData(permsRawData, permDefList); 211 instance.ParserPermsRawData(permsRawData, permDefList); 224 PermissionDefinitionParser& instance = PermissionDefinitionParser::GetInstance(); variable 230 instance.ParserPermsRawData(permsRawData, permDefList); 239 instance.ParserPermsRawData(permsRawData, permDefList); 248 instance.ParserPermsRawData(permsRawData, permDefList); 261 PermissionDefinitionParser& instance = PermissionDefinitionParser::GetInstance(); variable [all …]
|
/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/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/security/access_token/services/privacymanager/src/sensitive/camera_manager/ |
D | camera_manager_privacy_client.cpp | 33 static CameraManagerPrivacyClient* instance = nullptr; in GetInstance() local 34 if (instance == nullptr) { in GetInstance() 36 if (instance == nullptr) { in GetInstance() 37 instance = new CameraManagerPrivacyClient(); in GetInstance() 40 return *instance; in GetInstance()
|