/drivers/peripheral/user_auth/test/unittest/idm_test/ |
D | user_idm_funcs_test.cpp | 30 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 …]
|
D | enroll_specification_check_test.cpp | 29 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 …]
|
D | idm_session_test.cpp | 26 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/ |
D | idm_database.h | 50 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/ |
D | user_auth_interface_service_test.cpp | 94 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/ |
D | user_idm_funcs.c | 36 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 …]
|
D | idm_session.c | 39 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()
|
D | enroll_specification_check.c | 49 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/ |
D | user_idm_funcs.h | 29 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…
|
D | idm_session.h | 28 ResultCode OpenEditSession(int32_t userId, uint8_t *challenge, uint32_t challengeLen); 35 bool IsSessionValid(int32_t userId); 36 ResultCode GetUserId(int32_t *userId);
|
D | enroll_specification_check.h | 33 ResultCode CheckSpecification(int32_t userId, uint32_t authType); 34 ResultCode CheckIdmOperationToken(int32_t userId, UserAuthTokenHal *authToken);
|
/drivers/peripheral/user_auth/hdi_service/database/src/ |
D | idm_database.c | 43 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/ |
D | user_auth_hdi_fuzzer.cpp | 124 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/ |
D | auth_level_test.cpp | 28 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);
|
D | identify_funcs_test.cpp | 58 int32_t userId = 32156; variable 66 …EXPECT_EQ(DoUpdateIdentify(contextId, scheduleResult, &userId, &token, &result), RESULT_GENERAL_ER…
|
/drivers/peripheral/user_auth/test/unittest/database/ |
D | idm_database_test.cpp | 27 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/ |
D | identify_funcs.c | 46 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()
|
D | auth_level.c | 119 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()
|
D | context_manager.c | 73 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/ |
D | user_auth_interface_service.cpp | 143 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/ |
D | drv_bundle_state_callback.h | 65 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/ |
D | IUserAuthInterface.idl | 80 * @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/ |
D | drv_bundle_state_callback.cpp | 81 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/ |
D | context_manager.h | 31 int32_t userId; member 41 int32_t userId; member
|
D | identify_funcs.h | 29 ResultCode DoUpdateIdentify(uint64_t contextId, const Buffer *scheduleResult, int32_t *userId, User…
|