Lines Matching refs:ErrorCode

105 std::string errorCode2str(const Session::ErrorCode ec) {  in errorCode2str()
107 case Session::ErrorCode::OK: return "OK"; in errorCode2str()
108 case Session::ErrorCode::E_HAT_MAC_EMPTY: return "E_HAT_MAC_EMPTY"; in errorCode2str()
109 case Session::ErrorCode::E_HAT_WRONG_CHALLENGE: return "E_HAT_WRONG_CHALLENGE"; in errorCode2str()
110 case Session::ErrorCode::E_INCORRECT_STATE: return "E_INCORRECT_STATE"; in errorCode2str()
111 case Session::ErrorCode::E_ENROLL_FAILED: return "E_ENROLL_FAILED"; in errorCode2str()
178 const ErrorCode err = validateHat(hat); in enroll()
179 if (err == ErrorCode::OK) { in enroll()
199 int(ErrorCode::E_INCORRECT_STATE), state2str(previousState).c_str()); in enroll()
201 int(ErrorCode::E_INCORRECT_STATE)); in enroll()
233 int(ErrorCode::E_INCORRECT_STATE), in authenticate()
236 int(ErrorCode::E_INCORRECT_STATE)); in authenticate()
262 int(ErrorCode::E_INCORRECT_STATE), in detectInteraction()
265 int(ErrorCode::E_INCORRECT_STATE)); in detectInteraction()
321 const ErrorCode err = validateHat(hat); in resetLockout()
322 if (err == ErrorCode::OK) { in resetLockout()
345 Session::ErrorCode Session::validateHat(const keymaster::HardwareAuthToken& hat) const { in validateHat()
347 return FAILURE(ErrorCode::E_HAT_MAC_EMPTY); in validateHat()
351 return FAILURE_V(ErrorCode::E_HAT_WRONG_CHALLENGE, in validateHat()
355 return ErrorCode::OK; in validateHat()
386 int(ErrorCode::E_ENROLL_FAILED), in onSensorEventOn()
389 int(ErrorCode::E_ENROLL_FAILED)); in onSensorEventOn()