Lines Matching refs:ErrorCode

28 using ::aidl::android::hardware::security::keymint::ErrorCode;
36 ErrorCode error;
42 ErrorCode error;
50 EXPECT_EQ(ErrorCode::OK, error); in getSharedSecretParameters()
63 EXPECT_EQ(ErrorCode::OK, result.error); in getAllSharedSecretParameters()
64 if (result.error == ErrorCode::OK) paramsVec.push_back(std::move(result.params)); in getAllSharedSecretParameters()
96 EXPECT_EQ(ErrorCode::OK, response.error); in verifyResponses()
101 ErrorCode GetReturnErrorCode(const Status& result) { in GetReturnErrorCode()
102 if (result.isOk()) return ErrorCode::OK; in GetReturnErrorCode()
104 return static_cast<ErrorCode>(result.getServiceSpecificError()); in GetReturnErrorCode()
106 return ErrorCode::UNKNOWN_ERROR; in GetReturnErrorCode()
145 EXPECT_EQ(ErrorCode::OK, result1.error); in TEST_F()
147 EXPECT_EQ(ErrorCode::OK, result2.error); in TEST_F()
228 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error) in TEST_F()
232 EXPECT_EQ(ErrorCode::OK, responses[i].error) << "Others should succeed"; in TEST_F()
267 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error) in TEST_F()
274 if (responses[i].error == ErrorCode::OK) { in TEST_F()
279 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error); in TEST_F()
315 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error) in TEST_F()
319 EXPECT_EQ(ErrorCode::OK, responses[i].error) << "Others should succeed"; in TEST_F()
353 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error) in TEST_F()
360 if (responses[i].error == ErrorCode::OK) { in TEST_F()
365 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error); in TEST_F()