Home | History | Annotate | Download | only in keystore

Lines Matching refs:errorCode

26 using keymaster::ErrorCode;
33 * ErrorCode, which has negative error codes and use 0 for ERROR_OK;
37 * ErrorCode::OK (0), because this is what (java) clients expect.
44 KeyStoreServiceReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {}
45 KeyStoreServiceReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {}
46 KeyStoreServiceReturnCode(const KeyStoreServiceReturnCode& errorCode)
47 : errorCode_(errorCode.errorCode_) {}
48 KeyStoreServiceReturnCode(const KeyStoreNativeReturnCode& errorCode);
49 explicit inline KeyStoreServiceReturnCode(const int32_t& errorCode) : errorCode_(errorCode) {}
50 inline KeyStoreServiceReturnCode& operator=(const ErrorCode& errorCode) {
51 errorCode_ = int32_t(errorCode);
54 inline KeyStoreServiceReturnCode& operator=(const ResponseCode& errorCode) {
55 errorCode_ = int32_t(errorCode);
58 inline KeyStoreServiceReturnCode& operator=(const KeyStoreServiceReturnCode& errorCode) {
59 errorCode_ = errorCode.errorCode_;
64 errorCode_ == static_cast<int32_t>(ErrorCode::OK);
73 errorCode_ == static_cast<int32_t>(ErrorCode::OK)) ||
76 inline bool operator==(const ErrorCode& rhs) const {
77 return (rhs == ErrorCode::OK &&
82 inline bool operator!=(const ErrorCode& rhs) const { return !(*this == rhs); }
91 inline bool operator==(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
97 inline bool operator!=(const ErrorCode& lhs, const KeyStoreServiceReturnCode& rhs) {
107 * ErrorCode, which has negative error codes and use 0 for ERROR_OK;
110 * always returns ErrorCode::OK (0) on success, even if it was initialized with
118 KeyStoreNativeReturnCode(const ErrorCode& errorCode) : errorCode_(int32_t(errorCode)) {}
119 KeyStoreNativeReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {}
120 KeyStoreNativeReturnCode(const KeyStoreNativeReturnCode& errorCode)
121 : errorCode_(errorCode.errorCode_) {}
122 explicit inline KeyStoreNativeReturnCode(const int32_t& errorCode) : errorCode_(errorCode) {}
123 KeyStoreNativeReturnCode(const KeyStoreServiceReturnCode& errorcode);
124 inline KeyStoreNativeReturnCode& operator=(const ErrorCode& errorCode) {
125 errorCode_ = int32_t(errorCode);
128 inline KeyStoreNativeReturnCode& operator=(const ResponseCode& errorCode) {
129 errorCode_ = int32_t(errorCode);
132 inline KeyStoreNativeReturnCode& operator=(const KeyStoreNativeReturnCode& errorCode) {
133 errorCode_ = errorCode.errorCode_;
138 errorCode_ == static_cast<int32_t>(ErrorCode::OK);
142 return static_cast<int32_t>(ErrorCode::OK) /* 0 */;
148 errorCode_ == static_cast<int32_t>(ErrorCode::OK)) ||
151 inline bool operator==(const ErrorCode& rhs) const {
152 return (rhs == ErrorCode::OK &&
157 inline bool operator!=(const ErrorCode& rhs) const { return !(*this == rhs); }
166 inline bool operator==(const ErrorCode& lhs, const KeyStoreNativeReturnCode& rhs) {
172 inline bool operator!=(const ErrorCode& lhs, const KeyStoreNativeReturnCode& rhs) {
177 const KeyStoreServiceReturnCode& errorCode)
178 : errorCode_(int32_t(errorCode)) {}
180 const KeyStoreNativeReturnCode& errorCode)
181 : errorCode_(int32_t(errorCode)) {}