Home
last modified time | relevance | path

Searched refs:instance (Results 1 – 25 of 218) sorted by relevance

123456789

/base/security/device_security_level/baselib/msglib/src/common/
Dmessenger_device_session_manager.c101 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()
210 FOREACH_LIST_NODE_SAFE (node, &instance->pendingSendList, temp) { in MessengerOnSessionOpened()
224 UnlockMutex(&instance->mutex); in MessengerOnSessionOpened()
[all …]
/base/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c73 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/usb/usb_manager/test/native/service_unittest/src/
Dusb_core_test.cpp79 auto &instance = UsbSrvClient::GetInstance(); variable
81 int32_t ret = instance.GetCurrentFunctions(funcs);
96 auto &instance = UsbSrvClient::GetInstance(); variable
98 int32_t ret = instance.GetCurrentFunctions(funcs);
113 auto &instance = UsbSrvClient::GetInstance(); variable
114 int32_t isok = instance.SetCurrentFunctions(UsbSrvSupport::FUNCTION_ACM);
128 auto &instance = UsbSrvClient::GetInstance(); variable
129 int32_t isok = instance.SetCurrentFunctions(UsbSrvSupport::FUNCTION_ECM);
143 auto &instance = UsbSrvClient::GetInstance(); variable
145 int32_t isok = instance.SetCurrentFunctions(funcs);
[all …]
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/
Dauth_sub_session.c35 BaseProtocol *instance; member
64 BaseProtocol *protocol = impl->instance; in StartAuthSubSession()
80 BaseProtocol *protocol = impl->instance; in ProcessAuthSubSession()
96 return impl->instance->setPsk(impl->instance, psk); in SetPsk()
106 return impl->instance->setSelfProtectedMsg(impl->instance, selfMsg); in SetSelfProtectedMsg()
116 return impl->instance->setPeerProtectedMsg(impl->instance, peerMsg); in SetPeerProtectedMsg()
126 return impl->instance->getSessionKey(impl->instance, returnSessionKey); in GetSessionKey()
136 impl->instance->destroy(impl->instance); in DestroyAuthSubSession()
172 impl->instance = protocol; in CreateAuthSubSession()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
Dnapi_pub_key.cpp47 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 …]
Dnapi_pri_key.cpp47 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 …]
Dnapi_key.cpp59 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()
Dnapi_asy_key_spec_generator.cpp139 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 …]
Dnapi_key_pair.cpp49 napi_value instance; in ConvertToJsKeyPair() local
52 napi_new_instance(env, constructor, 0, nullptr, &instance); in ConvertToJsKeyPair()
73 napi_set_named_property(env, instance, CRYPTO_TAG_PUB_KEY.c_str(), pubKey); in ConvertToJsKeyPair()
96 napi_set_named_property(env, instance, CRYPTO_TAG_PRI_KEY.c_str(), priKey); in ConvertToJsKeyPair()
98 return instance; in ConvertToJsKeyPair()
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dtoken_modify_notifier.cpp73 static TokenModifyNotifier instance; in GetInstance() local
75 if (!instance.hasInited_) { in GetInstance()
76 Utils::UniqueWriteGuard<Utils::RWLock> infoGuard(instance.initLock_); in GetInstance()
77 if (!instance.hasInited_) { in GetInstance()
78 instance.notifyTokenWorker_.Start(1); in GetInstance()
79 instance.hasInited_ = true; in GetInstance()
83 return instance; in GetInstance()
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_key.cpp51 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()
Dnapi_pub_key.cpp53 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()
/base/location/frameworks/location_common/common/source/
Dlocation_sa_load_manager.cpp111 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/update/updater/test/unittest/updater_ui_test/
Dui_test_graphic_engine.h29 static TestGraphicEngine instance; in GetInstance() local
32 OHOS::SoftEngine::InitGfxEngine(&instance); in GetInstance()
35 return instance; in GetInstance()
/base/startup/init/device_info/
Ddevice_info.cpp37 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/user_auth_framework/services/core/src/
Dtemplate_cache_manager.cpp118 auto instance = GetInstance(); in Subscribe() local
119 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Subscribe()
121 int32_t ret = sam->SubscribeSystemAbility(SUBSYS_ACCOUNT_SYS_ABILITY_ID_BEGIN, instance); in Subscribe()
137 auto instance = GetInstance(); in Subscribe() local
138 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Subscribe()
140 ErrCode errCode = AccountSA::OsAccountManager::SubscribeOsAccount(instance); in Subscribe()
157 auto instance = GetInstance(); in Unsubscribe() local
158 IF_FALSE_LOGE_AND_RETURN(instance != NULL); in Unsubscribe()
160 ErrCode errCode = AccountSA::OsAccountManager::UnsubscribeOsAccount(instance); in Unsubscribe()
/base/useriam/user_auth_framework/frameworks/native/executors/src/listener/
Dauth_executor_mgr_status_listener.cpp31 …static sptr<AuthExecutorMgrStatusListener> instance(new (std::nothrow) AuthExecutorMgrStatusListen… in GetInstance() local
32 if (instance == nullptr) { in GetInstance()
35 return instance; in GetInstance()
Ddriver_manager_status_listener.cpp29 …static sptr<DriverManagerStatusListener> instance(new (std::nothrow) DriverManagerStatusListener()… in GetInstance() local
30 if (instance == nullptr) { in GetInstance()
33 return instance; in GetInstance()
/base/startup/init/test/unittest/param/
Dwatcher_agent_unittest.cpp170 WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance(); in TestRecvMessage() local
171 if (instance.remoteWatcher_ != nullptr) { in TestRecvMessage()
172 instance.remoteWatcher_->OnRemoteRequest(IWatcher::PARAM_CHANGE, data, reply, option); in TestRecvMessage()
173instance.remoteWatcher_->OnRemoteRequest(IWatcher::PARAM_CHANGE + 1, data, reply, option); in TestRecvMessage()
174 instance.remoteWatcher_->OnParameterChange(name.c_str(), "testname", "testvalue"); in TestRecvMessage()
176 instance.remoteWatcher_->OnParameterChange(name.c_str(), "testname.2", "testvalue"); in TestRecvMessage()
178 instance.remoteWatcher_->OnParameterChange(name.c_str(), "testname.2", "testvalue"); in TestRecvMessage()
182instance.remoteWatcher_->OnParameterChange("44444444444444444444", "testname.2", "testvalue"); in TestRecvMessage()
194 …OHOS::init_param::WatcherManagerKits &instance = OHOS::init_param::WatcherManagerKits::GetInstance… in TestResetService() local
195 if (instance.GetDeathRecipient() != nullptr) { in TestResetService()
[all …]
/base/useriam/fingerprint_auth/services_ex/src/
Dscreen_state_monitor.cpp77 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/hiviewdfx/hiview/base/
Daudit.cpp38 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()
/base/security/access_token/interfaces/innerkits/privacy/test/mock/src/
Diservice_registry.cpp21 static auto instance = new SystemAbilityManagerClient(); in GetInstance() local
22 return *instance; in GetInstance()
/base/security/access_token/interfaces/innerkits/accesstoken/test/mock/src/
Diservice_registry.cpp21 static auto instance = new SystemAbilityManagerClient(); in GetInstance() local
22 return *instance; in GetInstance()
/base/account/os_account/frameworks/test/unittest/mock/
Diservice_registry.cpp21 static auto instance = new SystemAbilityManagerClient(); in GetInstance() local
22 return *instance; in GetInstance()
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dauth_code_import.c530 static int32_t InitAuthCodeImportCmd(AuthCodeImportCmd *instance, const AuthCodeImportParams *param… in InitAuthCodeImportCmd() argument
533 if (DeepCopyUint8Buff(&params->authId, &(instance->params.authIdSelf)) != HC_SUCCESS) { in InitAuthCodeImportCmd()
537 if (DeepCopyString(params->appId, &(instance->params.appId)) != HC_SUCCESS) { in InitAuthCodeImportCmd()
541 if (DeepCopyString(params->groupId, &(instance->params.groupId)) != HC_SUCCESS) { in InitAuthCodeImportCmd()
545 instance->params.userTypeSelf = params->userType; in InitAuthCodeImportCmd()
546 instance->base.type = AUTH_CODE_IMPORT_CMD_TYPE; in InitAuthCodeImportCmd()
547 instance->base.strategy = strategy; in InitAuthCodeImportCmd()
548 instance->base.isCaller = isCaller; in InitAuthCodeImportCmd()
549 instance->base.beginState = isCaller ? CREATE_AS_CLIENT_STATE : CREATE_AS_SERVER_STATE; in InitAuthCodeImportCmd()
550 instance->base.finishState = isCaller ? CLIENT_FINISH_STATE : SERVER_FINISH_STATE; in InitAuthCodeImportCmd()
[all …]

123456789