Home
last modified time | relevance | path

Searched refs:userId (Results 1 – 25 of 35) sorted by relevance

12

/drivers/peripheral/user_auth/test/unittest/idm_test/
Duser_idm_funcs_test.cpp30 int32_t userId; member
45 extern int32_t GetDeletedCredential(int32_t userId, CredentialInfoHal *deletedCredential);
46 extern int32_t CheckResultValid(uint64_t scheduleId, int32_t userId);
97 int32_t userId = 32156; variable
99 session.userId = userId;
109 param.userId = userId;
129 int32_t userId = 32156; variable
131 session.userId = userId;
139 param.userId = userId;
143 userInfo.userId = userId;
[all …]
Denroll_specification_check_test.cpp29 int32_t userId; member
91 session.userId = 2661;
99 .userId = 0,
109 EXPECT_EQ(CheckIdmOperationToken(session.userId, &token), RESULT_BAD_MATCH);
111 data.userId = session.userId;
113 EXPECT_EQ(CheckIdmOperationToken(session.userId, &token), RESULT_BAD_MATCH);
118 userInfo->userId = session.userId;
123 EXPECT_EQ(CheckIdmOperationToken(session.userId, &token), RESULT_BAD_MATCH);
126 EXPECT_EQ(CheckIdmOperationToken(session.userId, &token), RESULT_SUCCESS);
136 int32_t userId = 2361; variable
[all …]
Didm_session_test.cpp26 int32_t userId; member
81 int32_t userId = 0; variable
82 EXPECT_EQ(GetUserId(&userId), RESULT_BAD_PARAM);
152 session.userId = 2135;
/drivers/peripheral/user_auth/hdi_service/database/inc/
Didm_database.h50 int32_t userId; member
53 ResultCode GetSecureUid(int32_t userId, uint64_t *secUid);
54 ResultCode GetEnrolledInfo(int32_t userId, EnrolledInfoHal **enrolledInfos, uint32_t *num);
55 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo…
56 ResultCode DeleteUserInfo(int32_t userId, LinkedList **creds);
59 ResultCode QueryCredentialUserId(uint64_t credentialId, int32_t *userId);
61 ResultCode AddCredentialInfo(int32_t userId, CredentialInfoHal *credentialInfo);
62 ResultCode SetPinSubType(int32_t userId, uint64_t pinSubType);
63 ResultCode GetPinSubType(int32_t userId, uint64_t *pinSubType);
64 ResultCode DeleteCredentialInfo(int32_t userId, uint64_t credentialId, CredentialInfoHal *credentia…
[all …]
/drivers/peripheral/user_auth/test/unittest/service_test/src/
Duser_auth_interface_service_test.cpp94 void DoOnceEnroll(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthTyp… in DoOnceEnroll() argument
100 EXPECT_EQ(service->BeginEnrollment(userId, authToken, enrollParam, scheduleInfo), 0); in DoOnceEnroll()
112 …enrollResultTest.result = service->UpdateEnrollmentResult(userId, enrollScheduleResult, enrolledRe… in DoOnceEnroll()
117 void DoOnceAuth(const std::shared_ptr<UserAuthInterfaceService> &service, int32_t userId, AuthType … in DoOnceAuth() argument
122 authParam.userId = userId; in DoOnceAuth()
149 int32_t userId = 1245; variable
151 EXPECT_EQ(service->OpenSession(userId, challenge), 0);
153 EXPECT_EQ(service->CloseSession(userId), 0);
255 int32_t userId = 123456; variable
259 EXPECT_EQ(service->BeginEnrollment(userId, authToken, param, scheduleInfo), 8);
[all …]
/drivers/peripheral/user_auth/hdi_service/idm/src/
Duser_idm_funcs.c36 scheduleParam.associateId.userId = param->userId; in GenerateIdmSchedule()
50 if (QueryCredentialFunc(param->userId, param->authType, &credList) != RESULT_SUCCESS) { in GenerateIdmSchedule()
112 if (!IsSessionValid(param.userId)) { in CheckEnrollPermission()
117 ResultCode ret = CheckSpecification(param.userId, param.authType); in CheckEnrollPermission()
123 ret = CheckIdmOperationToken(param.userId, authToken); in CheckEnrollPermission()
139 if (!IsSessionValid(param.userId)) { in CheckUpdatePermission()
143 ResultCode ret = CheckSpecification(param.userId, param.authType); in CheckUpdatePermission()
149 ret = CheckIdmOperationToken(param.userId, authToken); in CheckUpdatePermission()
187 ResultCode AddCredentialFunc(int32_t userId, const Buffer *scheduleResult, uint64_t *credentialId, … in AddCredentialFunc() argument
195 if (ret != RESULT_SUCCESS || sessionUserId != userId) { in AddCredentialFunc()
[all …]
Didm_session.c39 int32_t userId; member
76 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen) in OpenEditSession() argument
97 g_session->userId = userId; in OpenEditSession()
146 ResultCode GetUserId(int32_t *userId) in GetUserId() argument
148 if (userId == NULL || !IsSessionExist()) { in GetUserId()
152 *userId = g_session->userId; in GetUserId()
238 bool IsSessionValid(int32_t userId) in IsSessionValid() argument
243 if (g_session->userId == userId) { in IsSessionValid()
Denroll_specification_check.c49 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken) in CheckIdmOperationToken() argument
72 …if (ret != RESULT_SUCCESS || userIdGet != userId || userIdGet != tokenPlain.tokenDataToEncrypt.use… in CheckIdmOperationToken()
77 ret = GetSecureUid(userId, &secureUid); in CheckIdmOperationToken()
89 ResultCode CheckSpecification(int32_t userId, uint32_t authType) in CheckSpecification() argument
93 SetCredentialConditionUserId(&condition, userId); in CheckSpecification()
/drivers/peripheral/user_auth/hdi_service/idm/inc/
Duser_idm_funcs.h29 int32_t userId; member
36 int32_t userId; member
42 ResultCode AddCredentialFunc(int32_t userId, const Buffer *scheduleResult, uint64_t *credentialId, …
44 ResultCode QueryCredentialFunc(int32_t userId, uint32_t authType, LinkedList **creds);
45 ResultCode GetUserInfoFunc(int32_t userId, uint64_t *secureUid, uint64_t *pinSubType,
47 ResultCode UpdateCredentialFunc(int32_t userId, const Buffer *scheduleResult, uint64_t *credentialI…
Didm_session.h28 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen);
35 bool IsSessionValid(int32_t userId);
36 ResultCode GetUserId(int32_t *userId);
Denroll_specification_check.h33 ResultCode CheckSpecification(int32_t userId, uint32_t authType);
34 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken);
/drivers/peripheral/user_auth/hdi_service/database/src/
Didm_database.c43 IAM_STATIC UserInfo *QueryUserInfo(int32_t userId);
45 IAM_STATIC ResultCode DeleteUser(int32_t userId);
80 int32_t userId = *(int32_t *)condition; in MatchUserInfo() local
81 if (userInfo->userId == userId) { in MatchUserInfo()
104 ResultCode GetSecureUid(int32_t userId, uint64_t *secUid) in GetSecureUid() argument
110 UserInfo *user = QueryUserInfo(userId); in GetSecureUid()
119 ResultCode GetEnrolledInfoAuthType(int32_t userId, uint32_t authType, EnrolledInfoHal *enrolledInfo) in GetEnrolledInfoAuthType() argument
125 UserInfo *user = QueryUserInfo(userId); in GetEnrolledInfoAuthType()
148 ResultCode GetEnrolledInfo(int32_t userId, EnrolledInfoHal **enrolledInfos, uint32_t *num) in GetEnrolledInfo() argument
154 UserInfo *user = QueryUserInfo(userId); in GetEnrolledInfo()
[all …]
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdi_fuzzer/
Duser_auth_hdi_fuzzer.cpp124 authSolution.userId = parcel.ReadInt32(); in FillFuzzAuthSolution()
162 identifyResultInfo.userId = parcel.ReadInt32(); in FillFuzzIdentifyResultInfo()
244 int32_t userId = parcel.ReadInt32(); in FuzzOpenSession() local
247 g_service.OpenSession(userId, challenge); in FuzzOpenSession()
254 int32_t userId = parcel.ReadInt32(); in FuzzCloseSession() local
255 g_service.CloseSession(userId); in FuzzCloseSession()
262 int32_t userId = parcel.ReadInt32(); in FuzzBeginEnrollment() local
269 g_service.BeginEnrollment(userId, authToken, param, info); in FuzzBeginEnrollment()
276 int32_t userId = parcel.ReadInt32(); in FuzzBeginEnrollmentV1_1() local
283 g_service.BeginEnrollmentV1_1(userId, authToken, param, info); in FuzzBeginEnrollmentV1_1()
[all …]
/drivers/peripheral/user_auth/test/unittest/user_auth_test/
Dauth_level_test.cpp28 extern ResultCode GetAcl(int32_t userId, uint32_t authType, uint32_t *acl);
120 int32_t userId = 21361; variable
123 EXPECT_EQ(GetAcl(userId, authType, &acl), RESULT_NOT_ENROLLED);
126 EXPECT_EQ(GetAcl(userId, authType, &acl), RESULT_NOT_ENROLLED);
131 int32_t userId = 21356; variable
133 EXPECT_EQ(SingleAuthTrustLevel(userId, authType, nullptr), RESULT_BAD_PARAM);
146 int32_t userId = 21356; variable
149 EXPECT_EQ(SingleAuthTrustLevel(userId, authType, &atl), RESULT_NOT_ENROLLED);
Didentify_funcs_test.cpp58 int32_t userId = 32156; variable
66 …EXPECT_EQ(DoUpdateIdentify(contextId, scheduleResult, &userId, &token, &result), RESULT_GENERAL_ER…
/drivers/peripheral/user_auth/test/unittest/database/
Didm_database_test.cpp27 extern UserInfo *QueryUserInfo(int32_t userId);
29 extern UserInfo *CreateUser(int32_t userId);
30 extern ResultCode DeleteUser(int32_t userId);
36 extern ResultCode AddUser(int32_t userId, CredentialInfoHal *credentialInfo);
75 info.userId = 1133;
108 userInfo.userId = 1135;
120 userInfo.userId = 1135;
150 userInfo.userId = 123;
153 userInfo.userId = 1123;
163 userInfo1.userId = 123;
[all …]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
Didentify_funcs.c46 ResultCode DoUpdateIdentify(uint64_t contextId, const Buffer *scheduleResult, int32_t *userId, in DoUpdateIdentify() argument
49 if (!IsBufferValid(scheduleResult) || token == NULL || userId == NULL || result == NULL) { in DoUpdateIdentify()
84 *userId = identifyContext->userId; in DoUpdateIdentify()
Dauth_level.c119 IAM_STATIC ResultCode GetAcl(int32_t userId, uint32_t authType, uint32_t *acl) in GetAcl() argument
123 SetCredentialConditionUserId(&condition, userId); in GetAcl()
146 ResultCode SingleAuthTrustLevel(int32_t userId, uint32_t authType, uint32_t *atl) in SingleAuthTrustLevel() argument
160 ret = GetAcl(userId, authType, &authCapabilityLevel); in SingleAuthTrustLevel()
Dcontext_manager.c73 context->userId = params.userId; in InitAuthContext()
260 SetCredentialConditionUserId(&condition, context->userId); in GetAuthCredentialList()
556 int32_t userId = 0; in FillInContext() local
557 ret = QueryCredentialUserId(credentialNode->credentialId, &userId); in FillInContext()
563 context->userId = userId; in FillInContext()
565 if (userId != context->userId) { in FillInContext()
/drivers/peripheral/user_auth/hdi_service/service/
Duser_auth_interface_service.cpp143 static int32_t GetCapabilityLevel(int32_t userId, ScheduleInfoV1_1 &info, uint32_t &capabilityLevel) in GetCapabilityLevel() argument
147 int32_t ret = QueryCredentialFunc(userId, info.authType, &credList); in GetCapabilityLevel()
170 static int32_t SetArrayAttributeToExtraInfo(int32_t userId, std::vector<ScheduleInfoV1_1> &infos) in SetArrayAttributeToExtraInfo() argument
174 int32_t result = GetCapabilityLevel(userId, info, capabilityLevel); in SetArrayAttributeToExtraInfo()
235 solutionIn.userId = param.userId; in BeginAuthenticationV1_1()
272 ret = SetArrayAttributeToExtraInfo(solutionIn.userId, infos); in BeginAuthenticationV1_1()
465 …int32_t ret = DoUpdateIdentify(contextId, scheduleResultBuffer, &info.userId, &token, &info.result… in UpdateIdentificationResult()
489 int32_t UserAuthInterfaceService::GetAuthTrustLevel(int32_t userId, AuthType authType, uint32_t &au… in GetAuthTrustLevel() argument
493 int32_t ret = SingleAuthTrustLevel(userId, authType, &authTrustLevel); in GetAuthTrustLevel()
497 int32_t UserAuthInterfaceService::GetValidSolution(int32_t userId, const std::vector<AuthType> &aut… in GetValidSolution() argument
[all …]
/drivers/external_device_manager/services/native/driver_extension_manager/include/drivers_pkg_manager/
Ddrv_bundle_state_callback.h65 virtual void OnBundleAdded(const std::string &bundleName, const int userId) override;
71 virtual void OnBundleUpdated(const std::string &bundleName, const int userId) override;
77 virtual void OnBundleRemoved(const std::string &bundleName, const int userId) override;
97 ErrCode QueryExtensionAbilityInfos(const std::string &bundleName, const int userId);
/drivers/interface/user_auth/v1_0/
DIUserAuthInterface.idl80 * @param userId Indicates the user ID.
86 OpenSession([in] int userId, [out] unsigned char[] challenge);
90 * @param userId Indicates the user ID.
95 CloseSession([in] int userId);
100 * @param userId Indicates the user ID.
110 BeginEnrollment([in] int userId, [in] unsigned char[] authToken, [in] struct EnrollParam param,
115 * @param userId Indicates the user ID.
122 …UpdateEnrollmentResult([in] int userId, [in] unsigned char[] scheduleResult, [out] struct EnrollRe…
126 * @param userId Indicates the user ID.
131 CancelEnrollment([in] int userId);
[all …]
/drivers/external_device_manager/services/native/driver_extension_manager/src/drivers_pkg_manager/
Ddrv_bundle_state_callback.cpp81 void DrvBundleStateCallback::OnBundleAdded(const std::string &bundleName, const int userId) in OnBundleAdded() argument
85 if (QueryExtensionAbilityInfos(bundleName, userId) != ERR_OK) { in OnBundleAdded()
99 void DrvBundleStateCallback::OnBundleUpdated(const std::string &bundleName, const int userId) in OnBundleUpdated() argument
103 if (QueryExtensionAbilityInfos(bundleName, userId) != ERR_OK) { in OnBundleUpdated()
118 void DrvBundleStateCallback::OnBundleRemoved(const std::string &bundleName, const int userId) in OnBundleRemoved() argument
147 int32_t userId = GetCurrentActiveUserId(); in GetAllDriverInfos() local
150 if (!(iBundleMgr->GetBundleInfos(flags, bundleInfos, userId))) { in GetAllDriverInfos()
185 …DrvBundleStateCallback::QueryExtensionAbilityInfos(const std::string &bundleName, const int userId) in QueryExtensionAbilityInfos() argument
203 if (!(bundleMgr_->GetBundleInfo(bundleName, flags, tmpBundleInfo, userId))) { in QueryExtensionAbilityInfos()
/drivers/peripheral/user_auth/hdi_service/user_auth/inc/
Dcontext_manager.h31 int32_t userId; member
41 int32_t userId; member
Didentify_funcs.h29 ResultCode DoUpdateIdentify(uint64_t contextId, const Buffer *scheduleResult, int32_t *userId, User…

12