Home
last modified time | relevance | path

Searched refs:userType (Results 1 - 14 of 14) sorted by relevance

/drivers/peripheral/user_auth/hdi_service/coauth/inc/
H A Dcoauth.h44 int32_t userType; member
57 int32_t userType; member
/drivers/peripheral/user_auth/hdi_service/idm/src/
H A Didm_session.c325 ResultCode IsValidUserType(int32_t userType) in IsValidUserType() argument
327 if (userType != MAIN_USER && userType != SUB_USER && userType != PRIVATE_USER) { in IsValidUserType()
328 LOG_ERROR("userType is invalid"); in IsValidUserType()
331 LOG_INFO("userType is valid"); in IsValidUserType()
H A Duser_idm_funcs.c39 scheduleParam->userType = param->userType; in SetScheduleParam()
138 ResultCode ret = IsValidUserType(param.userType); in CheckEnrollPermission()
140 LOG_ERROR("userType is invalid"); in CheckEnrollPermission()
344 ret = AddCredentialInfo(userId, &credentialInfo, schedule->userType); in AddCredentialFunc()
544 ret = AddCredentialInfo(userId, &credentialInfo, schedule->userType); in UpdateCredentialFunc()
/drivers/peripheral/user_auth/hdi_service/idm/inc/
H A Didm_session.h42 ResultCode IsValidUserType(int32_t userType);
H A Duser_idm_funcs.h32 int32_t userType; member
/drivers/peripheral/user_auth/hdi_service/database/inc/
H A Didm_common.h54 int32_t userType; member
H A Didm_database.h62 ResultCode AddCredentialInfo(int32_t userId, CredentialInfoHal *credentialInfo, int32_t userType);
/drivers/peripheral/user_auth/test/unittest/database/
H A Didm_database_test.cpp31 extern UserInfo *CreateUser(int32_t userId, int32_t userType);
38 extern ResultCode AddUser(int32_t userId, CredentialInfoHal *credentialInfo, int32_t userType);
75 constexpr int32_t userType = 1024; in HWTEST_F() local
78 EXPECT_NE(userInfo->userType, userType); in HWTEST_F()
333 constexpr int32_t userType = 2; in HWTEST_F() local
337 user = CreateUser(userId, userType); in HWTEST_F()
338 EXPECT_NE(user->userType, 0); in HWTEST_F()
342 EXPECT_EQ(AddUser(userId, &credInfo, userType), RESULT_SUCCESS); in HWTEST_F()
344 EXPECT_EQ(AddCredentialInfo(userId, &credInfo, userType), RESULT_SUCCES in HWTEST_F()
[all...]
/drivers/peripheral/user_auth/test/unittest/idm_test/
H A Didm_session_test.cpp194 constexpr int32_t userType = 1024; in HWTEST_F() local
195 EXPECT_EQ(IsValidUserType(userType), RESULT_BAD_PARAM); in HWTEST_F()
/drivers/peripheral/user_auth/hdi_service/database/src/
H A Didm_file_manager.c104 result = StreamWrite(parcel, &userInfo->userType, sizeof(int32_t)); in StreamWriteUserInfo()
106 LOG_ERROR("userType streamWrite failed"); in StreamWriteUserInfo()
109 LOG_INFO("userInfo userType %{public}d", userInfo->userType); in StreamWriteUserInfo()
280 result = StreamRead(parcel, index, &userInfo->userType, sizeof(int32_t)); in StreamReadUserInfo()
282 LOG_ERROR("Read userType failed"); in StreamReadUserInfo()
285 LOG_INFO("userInfo userType %{public}d", userInfo->userType); in StreamReadUserInfo()
H A Didm_database.c305 IAM_STATIC UserInfo *CreateUser(int32_t userId, int32_t userType) in CreateUser() argument
314 user->userType = userType; in CreateUser()
482 IAM_STATIC ResultCode AddUser(int32_t userId, CredentialInfoHal *credentialInfo, int32_t userType) in AddUser() argument
499 user = CreateUser(userId, userType); in AddUser()
504 LOG_INFO("user userType %{public}d", user->userType); in AddUser()
523 ResultCode AddCredentialInfo(int32_t userId, CredentialInfoHal *credentialInfo, int32_t userType) in AddCredentialInfo() argument
531 ResultCode ret = AddUser(userId, credentialInfo, userType); in AddCredentialInfo()
/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dcoauth.c344 coAuthSchedule->userType = param->userType; in GenerateSchedule()
/drivers/peripheral/user_auth/test/fuzztest/user_auth/userauthhdi_fuzzer/
H A Duser_auth_hdi_fuzzer.cpp192 enrollParam.userType = parcel.ReadInt32(); in FillFuzzEnrollParam()
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp874 checkParam.userType = param.userType; in BeginEnrollment()

Completed in 12 milliseconds