/base/useriam/user_auth_framework/test/unittest/services/src/ |
D | widget_client_test.cpp | 87 WidgetClient::Instance().SetWidgetSchedule(schedule); 94 WidgetClient::Instance().SetWidgetSchedule(nullSchedule); 101 WidgetClient::Instance().SetWidgetParam(widgetParam); 108 WidgetClient::Instance().SetWidgetCallback(testCallback); 115 WidgetClient::Instance().SetAuthTokenId(tokenId); 116 EXPECT_EQ(WidgetClient::Instance().GetAuthTokenId(), tokenId); 122 WidgetClient::Instance().Reset(); 123 …EXPECT_EQ(WidgetClient::Instance().OnNotice((NoticeType)0, eventData), ResultCode::INVALID_PARAMET… 129 WidgetClient::Instance().Reset(); 130 …EXPECT_EQ(WidgetClient::Instance().OnNotice(NoticeType::WIDGET_NOTICE, eventData), ResultCode::INV… [all …]
|
D | user_idm_session_controller_test.cpp | 43 UserIdmSessionController::Instance().ForceReset(); in TearDown() 54 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge)); 67 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId1, challenge)); 68 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId2, challenge)); 69 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId3, challenge)); 80 EXPECT_EQ(false, UserIdmSessionController::Instance().OpenSession(userId, challenge)); 95 EXPECT_EQ(false, UserIdmSessionController::Instance().IsSessionOpened(userId)); 97 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge)); 100 EXPECT_EQ(true, UserIdmSessionController::Instance().IsSessionOpened(userId)); 118 EXPECT_EQ(true, UserIdmSessionController::Instance().OpenSession(userId, challenge)); [all …]
|
D | resource_node_utils_test.cpp | 90 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1)); 91 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2)); 95 ResourceNodePool::Instance().DeleteAll(); 123 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1)); 124 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2)); 128 ResourceNodePool::Instance().DeleteAll(); 135 EXPECT_TRUE(ResourceNodePool::Instance().Select(testIndex).lock() == nullptr); 145 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode)); 150 ResourceNodePool::Instance().DeleteAll(); 159 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode)); [all …]
|
D | resource_node_pool_test.cpp | 44 ResourceNodePool::Instance().DeleteAll(); in TearDown() 49 auto &pool = ResourceNodePool::Instance(); 55 auto &pool1 = ResourceNodePool::Instance(); 56 auto &pool2 = ResourceNodePool::Instance(); 62 EXPECT_EQ(ResourceNodePool::Instance().Insert(nullptr), false); 71 auto &pool = ResourceNodePool::Instance(); 84 auto &pool = ResourceNodePool::Instance(); 94 auto &pool = ResourceNodePool::Instance(); 118 auto &pool = ResourceNodePool::Instance(); 172 auto &pool = ResourceNodePool::Instance(); [all …]
|
D | context_pool_test.cpp | 47 auto &pool = ContextPool::Instance(); 53 auto &pool1 = ContextPool::Instance(); 54 auto &pool2 = ContextPool::Instance(); 62 auto &pool = ContextPool::Instance(); 73 auto &pool = ContextPool::Instance(); 86 auto &pool = ContextPool::Instance(); 96 auto &pool = ContextPool::Instance(); 126 auto &pool = ContextPool::Instance(); 146 auto &pool = ContextPool::Instance(); 199 auto &pool = ContextPool::Instance(); [all …]
|
D | user_idm_database_test.cpp | 46 auto &database = UserIdmDatabase::Instance(); 70 auto &database = UserIdmDatabase::Instance(); 89 auto secUserInfo = UserIdmDatabase::Instance().GetSecUserInfo(USER_ID); 120 auto &database = UserIdmDatabase::Instance(); 136 auto &database = UserIdmDatabase::Instance(); 171 auto &database = UserIdmDatabase::Instance(); 207 int32_t result = UserIdmDatabase::Instance().DeleteCredentialInfo(testUserId, testCredentialId, 234 int32_t result = UserIdmDatabase::Instance().DeleteCredentialInfo(testUserId, testCredentialId, 256 … int32_t result = UserIdmDatabase::Instance().DeleteUser(testUserId, testAuthToken, testCredInfos); 283 … int32_t result = UserIdmDatabase::Instance().DeleteUser(testUserId, testAuthToken, testCredInfos); [all …]
|
D | schedule_node_helper_test.cpp | 92 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode1)); 93 EXPECT_TRUE(ResourceNodePool::Instance().Insert(resourceNode2)); 100 ResourceNodePool::Instance().DeleteAll();
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_utils_test.cpp | 67 …EXPECT_GE(TextCoder::Instance().Utf8ToGsm7bit(pDestText, BUF_SIZE, const_cast<uint8_t *>(pMsgText)… 68 … EXPECT_GE(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1); 69 EXPECT_GE(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1); 70 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 1, pMsgText, -1), -1); 71 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 0, pMsgText, -1), 0); 72 EXPECT_EQ(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0); 73 EXPECT_EQ(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0); 74 EXPECT_EQ(TextCoder::Instance().Gsm7bitToUtf8(pDestText, 0, pMsgText, 0, msgLangInfo), 0); 75 EXPECT_GE(TextCoder::Instance().ShiftjisToUtf8(pDestText, 1, pMsgText, -1), 0); 76 EXPECT_GE(TextCoder::Instance().Ucs2ToUtf8(pDestText, 1, pMsgText, -1), 0); [all …]
|
/base/web/webview/test/unittest/nweb_helper_test/ |
D | nweb_helper_test.cpp | 137 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR); 138 bool result = NWebAdapterHelper::Instance().Init(false); 141 std::shared_ptr<NWeb> nweb = NWebHelper::Instance().CreateNWeb(create_info); 144 NWebHelper::Instance().SetHttpDns(config); 145 auto nwebHelper = NWebHelper::Instance().GetNWeb(nweb_id); 147 NWebHelper::Instance().PrepareForPageLoad("web_test", true, 0); 148 result = NWebHelper::Instance().InitAndRun(false); 160 auto web_storage = NWebHelper::Instance().GetWebStorage(); 176 auto dataBase = NWebHelper::Instance().GetDataBase(); 183 NWebHelper::Instance().libHandleWebEngine_ = nullptr; [all …]
|
/base/useriam/user_auth_framework/test/fuzztest/services/servicecore_fuzzer/src/ |
D | resource_node_pool_fuzzer.cpp | 36 ResourceNodePool::Instance().Insert(node); in FuzzResourcePoolInsert() 44 ResourceNodePool::Instance().Delete(executorIndex); in FuzzResourcePoolDelete() 52 ResourceNodePool::Instance().DeleteAll(); in FuzzResourcePoolDeleteAll() 60 ResourceNodePool::Instance().Select(executorIndex); in FuzzResourcePoolSelect() 68 ResourceNodePool::Instance().GetPoolSize(); in FuzzResourcePoolGetPoolSize() 76 ResourceNodePool::Instance().RegisterResourceNodePoolListener(listener); in FuzzRegisterResourceNodePoolListener() 84 ResourceNodePool::Instance().DeregisterResourceNodePoolListener(listener); in FuzzDeregisterResourceNodePoolListener()
|
/base/web/webview/test/unittest/napi_web_cookie_manager_test/ |
D | napi_web_cookie_manager_test.cpp | 60 NWebHelper::Instance().SetBundlePath(MOCK_INSTALLATION_DIR); 61 NWebAdapterHelper::Instance().Init(false); 62 NWebCookieManager* cookieManager = NWebHelper::Instance().GetCookieManager();
|
/base/useriam/user_auth_framework/services/ipc/src/ |
D | user_idm_service.cpp | 71 auto contextList = ContextPool::Instance().Select(CONTEXT_ENROLL); in OpenSession() 76 ContextPool::Instance().Delete(ctx->GetContextId()); in OpenSession() 80 if (!UserIdmSessionController::Instance().OpenSession(userId, challenge)) { in OpenSession() 96 if (!UserIdmSessionController::Instance().CloseSession(userId)) { in CloseSession() 109 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetCredentialInfoInner() 124 auto userInfo = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetCredentialInfoInner() 162 auto userInfos = UserIdmDatabase::Instance().GetSecUserInfo(userId); in GetSecInfoInner() 237 if (!ContextPool::Instance().Insert(context)) { in AddCredential() 260 auto credInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, credPara.authType); in UpdateCredential() 277 if (!UserIdmSessionController::Instance().IsSessionOpened(userId)) { in Cancel() [all …]
|
D | co_auth_service.cpp | 93 if (!ResourceNodePool::Instance().Insert(resourceNode)) { in ExecutorRegister() 106 auto result = ResourceNodePool::Instance().Delete(executorIndex); in ExecutorRegister() 123 ResourceNodePool::Instance().DeleteAll(); in Init() 152 ResourceNodePool::Instance().Enumerate([fd](const std::weak_ptr<ResourceNode> &node) { in Dump()
|
D | executor_messenger_service.cpp | 45 auto scheduleNode = ContextPool::Instance().SelectScheduleNodeByScheduleId(scheduleId); in SendData() 61 auto scheduleNode = ContextPool::Instance().SelectScheduleNodeByScheduleId(scheduleId); in Finish()
|
/base/useriam/face_auth/frameworks/ipc/src/ |
D | face_auth_client_impl.cpp | 51 static FaceAuthClientImpl &Instance(); 151 FaceAuthClientImpl::Instance().ResetProxy(remote); in OnRemoteDied() 154 FaceAuthClientImpl &FaceAuthClientImpl::Instance() in Instance() function in OHOS::UserIam::FaceAuth::FaceAuthClientImpl 162 return FaceAuthClientImpl::Instance(); in GetInstance()
|
/base/useriam/pin_auth/frameworks/client/src/ |
D | pinauth_register_impl.cpp | 104 PinAuthRegisterImpl &PinAuthRegisterImpl::Instance() in Instance() function in OHOS::UserIam::PinAuth::PinAuthRegisterImpl 112 return PinAuthRegisterImpl::Instance(); in GetInstance() 122 PinAuthRegisterImpl::Instance().ResetProxy(remote); in OnRemoteDied()
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_read.cpp | 56 LogAssistant& LogAssistant::Instance() in Instance() function in OHOS::HiviewDFX::LogAssistant 289 OHOS::HiviewDFX::LogAssistant::Instance().RegRealTimeAppLogListener(listener); in RegRealTimeAppLogListener() 294 OHOS::HiviewDFX::LogAssistant::Instance().RegHistoryAppLogListener(listener); in RegHistoryAppLogListener() 299 OHOS::HiviewDFX::LogAssistant::Instance().RemoveAllListeners(); in RemoveAllListeners() 304 OHOS::HiviewDFX::LogAssistant::Instance().RealTimeAppLogUpdate(realTimeLog); in RealTimeAppLogUpdate() 309 OHOS::HiviewDFX::LogAssistant::Instance().UpdateHiAppEventLogDir(path); in UpdateHiAppEventLogDir() 315 OHOS::HiviewDFX::LogAssistant::Instance().PullEventHistoryLog(beginTimeStamp, in PullEventHistoryLog()
|
/base/web/webview/test/unittest/nweb_surface_adapter_test/ |
D | nweb_surface_adapter_test.cpp | 102 auto surfaceAdapter = NWebSurfaceAdapter::Instance(); 121 auto surfaceAdapter = NWebSurfaceAdapter::Instance(); 145 auto surfaceAdapter = NWebSurfaceAdapter::Instance(); 161 auto surfaceAdapter = NWebSurfaceAdapter::Instance(); 197 auto surfaceAdapter = NWebSurfaceAdapter::Instance();
|
/base/useriam/user_auth_framework/frameworks/native/client/src/ |
D | co_auth_client_impl.cpp | 111 CoAuthClientImpl::Instance().ResetProxy(remote); in OnRemoteDied() 114 CoAuthClientImpl &CoAuthClientImpl::Instance() in Instance() function in OHOS::UserIam::UserAuth::CoAuthClientImpl 122 return CoAuthClientImpl::Instance(); in GetInstance()
|
/base/useriam/user_auth_framework/test/unittest/inner_api/src/ |
D | user_auth_client_test.cpp | 50 int32_t ret = UserAuthClientImpl::Instance().GetAvailableStatus(testAuthType, testAtl); 76 …int32_t ret = UserAuthClientImpl::Instance().GetAvailableStatus(testApiVersion, testAuthType, test… 191 …uint64_t contextId = UserAuthClientImpl::Instance().BeginNorthAuthentication(testApiVersion, testC… 199 … contextId = UserAuthClientImpl::Instance().BeginNorthAuthentication(testApiVersion, testChallenge, 239 …uint64_t contextId = UserAuthClientImpl::Instance().BeginNorthAuthentication(testApiVersion, testC… 435 int32_t ret = UserAuthClientImpl::Instance().GetVersion(version); 459 int32_t result = UserAuthClientImpl::Instance().GetVersion(version); 487 EXPECT_EQ(UserAuthClientImpl::Instance().GetVersion(version), GENERAL_ERROR); 488 EXPECT_EQ(UserAuthClientImpl::Instance().GetVersion(version), GENERAL_ERROR); 489 EXPECT_EQ(UserAuthClientImpl::Instance().GetVersion(version), GENERAL_ERROR); [all …]
|
/base/useriam/user_auth_framework/services/core/src/ |
D | auth_widget_helper.cpp | 40 WidgetClient::Instance().SetPinSubType(static_cast<PinSubType>(profile.pinSubType)); in InitWidgetContextParam() 42 WidgetClient::Instance().SetSensorInfo(profile.sensorInfo); in InitWidgetContextParam() 59 auto credentialInfos = UserIdmDatabase::Instance().GetCredentialInfo(userId, authType); in GetUserAuthProfile() 65 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in GetUserAuthProfile()
|
D | resource_node_utils.cpp | 39 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in NotifyExecutorToDeleteTemplates() 59 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SendMsgToExecutor() 83 auto resourceNode = ResourceNodePool::Instance().Select(executorIndex).lock(); in SetCachedTemplates()
|
/base/web/webview/interfaces/kits/napi/webcookiemanager/ |
D | napi_web_cookie_manager.cpp | 129 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsGetCookie() 169 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsSetCookie() 189 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsCookieAllowed() 217 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptCookieEnabled() 230 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsIsThirdPartyCookieAllowed() 258 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsPutAcceptThirdPartyCookieEnabled() 271 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsExistCookie() 283 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteEntireCookie() 295 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in JsDeleteSessionCookie() 305 …OHOS::NWeb::NWebCookieManager* cookieManager = OHOS::NWeb::NWebHelper::Instance().GetCookieManager… in SaveCookieAsyncCallback() [all …]
|
/base/useriam/user_auth_framework/services/context/src/ |
D | widget_context.cpp | 147 auto tokenId = WidgetClient::Instance().GetAuthTokenId(); in BuildTask() 165 if (!ContextPool::Instance().Insert(context)) { in BuildTask() 183 WidgetClient::Instance().SetWidgetContextId(GetContextId()); in OnStart() 184 WidgetClient::Instance().SetWidgetParam(para_.widgetParam); in OnStart() 185 WidgetClient::Instance().SetAuthTypeList(para_.authTypeList); in OnStart() 186 WidgetClient::Instance().SetWidgetSchedule(schedule_); in OnStart() 220 WidgetClient::Instance().ReportWidgetResult(resultCode, authType, freezingTime, remainTimes); in AuthResult() 369 WidgetClient::Instance().Reset(); in End()
|
/base/useriam/user_auth_framework/test/fuzztest/clients/userauthclient_fuzzer/ |
D | user_auth_client_fuzzer.cpp | 102 UserAuthClientImpl::Instance().GetAvailableStatus(authType, atl); in FuzzClientGetAvailableStatus() 152 …UserAuthClientImpl::Instance().BeginNorthAuthentication(apiVersion, challenge, authType, atl, call… in FuzzClientBeginAuthentication002() 188 UserAuthClientImpl::Instance().GetVersion(version); in FuzzClientGetVersion() 209 UserAuthClientImpl::Instance().BeginWidgetAuth(apiVersion, authParam, widgetParam, callback); in FuzzBeginWidgetAuth() 218 UserAuthClientImpl::Instance().SetWidgetCallback(version, callback); in FuzzSetWidgetCallback() 227 UserAuthClientImpl::Instance().Notice(noticeType, eventData); in FuzzNotice()
|