/external/nos/host/android/hals/keymaster/ |
D | proto_utils.cpp | 87 static ErrorCode translate_purpose(nosapp::KeyPurpose purpose, KeyPurpose *out) in translate_purpose() 106 return ErrorCode::UNKNOWN_ERROR; in translate_purpose() 109 return ErrorCode::OK; in translate_purpose() 130 ErrorCode translate_algorithm(nosapp::Algorithm algorithm, in translate_algorithm() 150 return ErrorCode::UNKNOWN_ERROR; in translate_algorithm() 153 return ErrorCode::OK; in translate_algorithm() 172 static ErrorCode translate_block_mode(nosapp::BlockMode block_mode, in translate_block_mode() 189 return ErrorCode::UNKNOWN_ERROR; in translate_block_mode() 193 return ErrorCode::OK; in translate_block_mode() 218 static ErrorCode translate_digest(nosapp::Digest digest, in translate_digest() [all …]
|
D | import_wrapped_key.cpp | 53 using parse_asn1_fn = function<ErrorCode(CBS *cbs, Tag tag, 108 static ErrorCode parse_asn1_set(CBS *auth, Tag tag, in parse_asn1_set() 117 return ErrorCode::INVALID_ARGUMENT; in parse_asn1_set() 121 return ErrorCode::OK; in parse_asn1_set() 129 return ErrorCode::INVALID_ARGUMENT; in parse_asn1_set() 150 return ErrorCode::INVALID_ARGUMENT; in parse_asn1_set() 153 if (key_parameter_to_pb(kp, param) != ErrorCode::OK) { in parse_asn1_set() 154 return ErrorCode::INVALID_ARGUMENT; in parse_asn1_set() 158 return ErrorCode::OK; in parse_asn1_set() 161 static ErrorCode parse_asn1_integer(CBS *auth, Tag tag, in parse_asn1_integer() [all …]
|
D | import_key.cpp | 60 static ErrorCode import_key_rsa(const tag_map_t& params, in import_key_rsa() 81 return ErrorCode::INVALID_ARGUMENT; in import_key_rsa() 87 return ErrorCode::INVALID_ARGUMENT; in import_key_rsa() 94 return ErrorCode::IMPORT_PARAMETER_MISMATCH; in import_key_rsa() 107 return ErrorCode::IMPORT_PARAMETER_MISMATCH; in import_key_rsa() 121 return ErrorCode::UNKNOWN_ERROR; in import_key_rsa() 130 return ErrorCode::UNKNOWN_ERROR; in import_key_rsa() 134 return ErrorCode::OK; in import_key_rsa() 137 static ErrorCode import_key_ec(const tag_map_t& params, in import_key_ec() 157 return ErrorCode::INVALID_ARGUMENT; in import_key_ec() [all …]
|
D | KeymasterDevice.cpp | 213 static ErrorCode status_to_error_code(uint32_t status) in status_to_error_code() 217 return ErrorCode::OK; in status_to_error_code() 220 return ErrorCode::INVALID_ARGUMENT; in status_to_error_code() 223 return ErrorCode::UNKNOWN_ERROR; in status_to_error_code() 226 return ErrorCode::INSUFFICIENT_BUFFER_SPACE; in status_to_error_code() 229 return ErrorCode::SECURE_HW_COMMUNICATION_FAILED; in status_to_error_code() 233 return ErrorCode::UNKNOWN_ERROR; in status_to_error_code() 254 const ErrorCode error_code = translate_error_code(response.error_code()); \ 260 if (error_code != ErrorCode::OK) { \ 269 const ErrorCode error_code = translate_error_code(response.error_code()); \ [all …]
|
D | buffer.cpp | 35 using ::android::hardware::keymaster::V4_0::ErrorCode; 95 ErrorCode advance(size_t count) { in advance() 99 return ErrorCode::UNKNOWN_ERROR; in advance() 102 return ErrorCode::OK; in advance() 125 ErrorCode buffer_begin(uint64_t handle, Algorithm algorithm) in buffer_begin() 132 return ErrorCode::UNKNOWN_ERROR; in buffer_begin() 137 return ErrorCode::OK; in buffer_begin() 150 ErrorCode buffer_append(uint64_t handle, in buffer_append() 156 return ErrorCode::UNKNOWN_ERROR; in buffer_append() 161 return ErrorCode::OK; in buffer_append() [all …]
|
D | export_key.cpp | 48 ErrorCode export_key_der(const ExportKeyResponse& response, in export_key_der() 60 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 66 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 76 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 88 &ec_curve) != ErrorCode::OK) { in export_key_der() 91 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 110 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 117 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 122 return ErrorCode::UNKNOWN_ERROR; in export_key_der() 135 return ErrorCode::UNKNOWN_ERROR; in export_key_der() [all …]
|
D | proto_utils.h | 34 using ::android::hardware::keymaster::V4_0::ErrorCode; 51 ErrorCode key_parameter_to_pb(const KeyParameter& param, 53 ErrorCode hidl_params_to_pb(const hidl_vec<KeyParameter>& params, 55 ErrorCode hidl_params_to_map(const hidl_vec<KeyParameter>& params, 57 ErrorCode map_params_to_pb(const tag_map_t& params, 59 ErrorCode pb_to_hidl_params(const nosapp::KeyParameters& pbParams, 61 ErrorCode translate_algorithm(nosapp::Algorithm algorithm, 63 ErrorCode translate_error_code(nosapp::ErrorCode error_code); 64 ErrorCode translate_ec_curve(nosapp::EcCurve ec_curve, EcCurve *out); 65 ErrorCode translate_auth_token(const HardwareAuthToken& auth_token,
|
D | buffer.h | 32 using ::android::hardware::keymaster::V4_0::ErrorCode; 35 ErrorCode buffer_begin(uint64_t handle, Algorithm algorithm); 36 ErrorCode buffer_append(uint64_t handle, 39 ErrorCode buffer_peek(uint64_t handle, 41 ErrorCode buffer_advance(uint64_t handle, size_t count); 42 ErrorCode buffer_final(uint64_t handle, 44 ErrorCode buffer_algorithm(uint64_t handle,
|
/external/nos/test/system-test-harness/src/ |
D | keymaster-import-key-tests.cc | 125 EXPECT_EQ((ErrorCode)response.error_code(), ErrorCode::INVALID_ARGUMENT); in TEST_F() 137 EXPECT_EQ((ErrorCode)response.error_code(), ErrorCode::UNSUPPORTED_KEY_SIZE); in TEST_F() 149 EXPECT_EQ((ErrorCode)response.error_code(), in TEST_F() 150 ErrorCode::UNSUPPORTED_KEY_SIZE); in TEST_F() 161 EXPECT_EQ((ErrorCode)response.error_code(), in TEST_F() 162 ErrorCode::IMPORT_PARAMETER_MISMATCH); in TEST_F() 173 EXPECT_EQ((ErrorCode)response.error_code(), in TEST_F() 174 ErrorCode::IMPORT_PARAMETER_MISMATCH); in TEST_F() 185 EXPECT_EQ((ErrorCode)response.error_code(), in TEST_F() 186 ErrorCode::IMPORT_PARAMETER_MISMATCH); in TEST_F() [all …]
|
D | keymaster-provision-tests.cc | 86 ASSERT_EQ((ErrorCode)response.error_code(), ErrorCode::OK); in TEST_F() 99 ASSERT_EQ((ErrorCode)response.error_code(), ErrorCode::OK); in TEST_F() 103 ASSERT_EQ((ErrorCode)response.error_code(), ErrorCode::OK); in TEST_F() 119 ASSERT_EQ((ErrorCode)response.error_code(), in TEST_F() 120 ErrorCode::PRODUCTION_MODE_PROVISIONING); in TEST_F() 136 ASSERT_EQ((ErrorCode)response.error_code(), in TEST_F() 137 ErrorCode::INVALID_DEVICE_IDS); in TEST_F() 153 ASSERT_EQ((ErrorCode)response.error_code(), ErrorCode::OK); in TEST_F() 168 ASSERT_EQ((ErrorCode)response.error_code(), ErrorCode::OK); in TEST_F() 807 ASSERT_EQ((ErrorCode)response.error_code(), ErrorCode::OK); in TEST_F()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/ |
D | ErrorCode.java | 23 public enum ErrorCode { enum 69 private ErrorCode(int httpCode, int spdyRstCode, int spdyGoAwayCode) { in ErrorCode() method in ErrorCode 75 public static ErrorCode fromSpdy3Rst(int code) { in fromSpdy3Rst() 76 for (ErrorCode errorCode : ErrorCode.values()) { in fromSpdy3Rst() 82 public static ErrorCode fromHttp2(int code) { in fromHttp2() 83 for (ErrorCode errorCode : ErrorCode.values()) { in fromHttp2() 89 public static ErrorCode fromSpdyGoAway(int code) { in fromSpdyGoAway() 90 for (ErrorCode errorCode : ErrorCode.values()) { in fromSpdyGoAway()
|
D | FramedConnection.java | 350 void writeSynResetLater(final int streamId, final ErrorCode errorCode) { in writeSynResetLater() 361 void writeSynReset(int streamId, ErrorCode statusCode) throws IOException { in writeSynReset() 431 public void shutdown(ErrorCode statusCode) throws IOException { in shutdown() 452 close(ErrorCode.NO_ERROR, ErrorCode.CANCEL); in close() 455 private void close(ErrorCode connectionCode, ErrorCode streamCode) throws IOException { in close() 605 ErrorCode connectionErrorCode = ErrorCode.INTERNAL_ERROR; in execute() 606 ErrorCode streamErrorCode = ErrorCode.INTERNAL_ERROR; in execute() 613 connectionErrorCode = ErrorCode.NO_ERROR; in execute() 614 streamErrorCode = ErrorCode.CANCEL; in execute() 616 connectionErrorCode = ErrorCode.PROTOCOL_ERROR; in execute() [all …]
|
D | FramedStream.java | 76 private ErrorCode errorCode = null; 155 public synchronized ErrorCode getErrorCode() { in getErrorCode() 220 public void close(ErrorCode rstStatusCode) throws IOException { in close() 231 public void closeLater(ErrorCode errorCode) { in closeLater() 239 private boolean closeInternal(ErrorCode errorCode) { in closeInternal() 257 ErrorCode errorCode = null; in receiveHeaders() 262 errorCode = ErrorCode.PROTOCOL_ERROR; in receiveHeaders() 270 errorCode = ErrorCode.STREAM_IN_USE; in receiveHeaders() 304 synchronized void receiveRstStream(ErrorCode errorCode) { in receiveRstStream() 400 closeLater(ErrorCode.FLOW_CONTROL_ERROR); in receive() [all …]
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/ |
D | ErrorCode.java | 23 public enum ErrorCode { enum 69 private ErrorCode(int httpCode, int spdyRstCode, int spdyGoAwayCode) { in ErrorCode() method in ErrorCode 75 public static ErrorCode fromSpdy3Rst(int code) { in fromSpdy3Rst() 76 for (ErrorCode errorCode : ErrorCode.values()) { in fromSpdy3Rst() 82 public static ErrorCode fromHttp2(int code) { in fromHttp2() 83 for (ErrorCode errorCode : ErrorCode.values()) { in fromHttp2() 89 public static ErrorCode fromSpdyGoAway(int code) { in fromSpdyGoAway() 90 for (ErrorCode errorCode : ErrorCode.values()) { in fromSpdyGoAway()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/ |
D | ErrorCode.java | 19 public enum ErrorCode { enum 65 private ErrorCode(int httpCode, int spdyRstCode, int spdyGoAwayCode) { in ErrorCode() method in ErrorCode 71 public static ErrorCode fromSpdy3Rst(int code) { in fromSpdy3Rst() 72 for (ErrorCode errorCode : ErrorCode.values()) { in fromSpdy3Rst() 78 public static ErrorCode fromHttp2(int code) { in fromHttp2() 79 for (ErrorCode errorCode : ErrorCode.values()) { in fromHttp2() 85 public static ErrorCode fromSpdyGoAway(int code) { in fromSpdyGoAway() 86 for (ErrorCode errorCode : ErrorCode.values()) { in fromSpdyGoAway()
|
D | FramedConnection.java | 348 void writeSynResetLater(final int streamId, final ErrorCode errorCode) { in writeSynResetLater() 359 void writeSynReset(int streamId, ErrorCode statusCode) throws IOException { in writeSynReset() 429 public void shutdown(ErrorCode statusCode) throws IOException { in shutdown() 450 close(ErrorCode.NO_ERROR, ErrorCode.CANCEL); in close() 453 private void close(ErrorCode connectionCode, ErrorCode streamCode) throws IOException { in close() 600 ErrorCode connectionErrorCode = ErrorCode.INTERNAL_ERROR; in execute() 601 ErrorCode streamErrorCode = ErrorCode.INTERNAL_ERROR; in execute() 608 connectionErrorCode = ErrorCode.NO_ERROR; in execute() 609 streamErrorCode = ErrorCode.CANCEL; in execute() 611 connectionErrorCode = ErrorCode.PROTOCOL_ERROR; in execute() [all …]
|
D | FramedStream.java | 74 private ErrorCode errorCode = null; 153 public synchronized ErrorCode getErrorCode() { in getErrorCode() 218 public void close(ErrorCode rstStatusCode) throws IOException { in close() 229 public void closeLater(ErrorCode errorCode) { in closeLater() 237 private boolean closeInternal(ErrorCode errorCode) { in closeInternal() 255 ErrorCode errorCode = null; in receiveHeaders() 260 errorCode = ErrorCode.PROTOCOL_ERROR; in receiveHeaders() 268 errorCode = ErrorCode.STREAM_IN_USE; in receiveHeaders() 302 synchronized void receiveRstStream(ErrorCode errorCode) { in receiveRstStream() 398 closeLater(ErrorCode.FLOW_CONTROL_ERROR); in receive() [all …]
|
/external/nos/host/generic/nugget/proto/nugget/app/keymaster/ |
D | keymaster.proto | 131 ErrorCode error_code = 1; 140 ErrorCode error_code = 1; 152 ErrorCode error_code = 1; 165 ErrorCode error_code = 1; 178 ErrorCode error_code = 1; 194 ErrorCode error_code = 1; 206 ErrorCode error_code = 1; 215 ErrorCode error_code = 1; 227 ErrorCode error_code = 1; 236 ErrorCode error_code = 1; [all …]
|
/external/grpc-grpc-java/okhttp/src/main/java/io/grpc/okhttp/ |
D | OkHttpClientTransport.java | 60 import io.grpc.okhttp.internal.framed.ErrorCode; 103 private static final Map<ErrorCode, Status> ERROR_CODE_TO_STATUS = buildErrorCodeToStatusMap(); 107 private static Map<ErrorCode, Status> buildErrorCodeToStatusMap() { in buildErrorCodeToStatusMap() 108 Map<ErrorCode, Status> errorToStatus = new EnumMap<ErrorCode, Status>(ErrorCode.class); in buildErrorCodeToStatusMap() 109 errorToStatus.put(ErrorCode.NO_ERROR, in buildErrorCodeToStatusMap() 111 errorToStatus.put(ErrorCode.PROTOCOL_ERROR, in buildErrorCodeToStatusMap() 113 errorToStatus.put(ErrorCode.INTERNAL_ERROR, in buildErrorCodeToStatusMap() 115 errorToStatus.put(ErrorCode.FLOW_CONTROL_ERROR, in buildErrorCodeToStatusMap() 117 errorToStatus.put(ErrorCode.STREAM_CLOSED, in buildErrorCodeToStatusMap() 119 errorToStatus.put(ErrorCode.FRAME_TOO_LARGE, in buildErrorCodeToStatusMap() [all …]
|
/external/icu/icu4c/source/common/ |
D | errorcode.cpp | 24 ErrorCode::~ErrorCode() {} in ~ErrorCode() 26 UErrorCode ErrorCode::reset() { in reset() 32 void ErrorCode::assertSuccess() const { in assertSuccess() 38 const char* ErrorCode::errorName() const { in errorName()
|
/external/mdnsresponder/mDNSWindows/DLL.NET/ |
D | dnssd_NET.h | 109 public __value enum ErrorCode : int enum 212 ErrorCode errorCode, 223 ErrorCode errorCode, 237 ErrorCode errorCode, 251 ErrorCode errorCode, 265 ErrorCode errorCode, 277 ErrorCode errorCode, 733 ErrorCode errorCode, 803 ErrorCode errorCode, 1018 ErrorCode errorCode, [all …]
|
/external/lzma/CPP/7zip/Common/ |
D | OutBuffer.cpp | 36 ErrorCode = S_OK; in Init() 55 result = ErrorCode; in FlushPart() 65 && (ErrorCode == S_OK) in FlushPart() 89 if (ErrorCode != S_OK) in Flush() 90 return ErrorCode; in Flush() 106 ErrorCode = result; in FlushWithCheck()
|
/external/nos/host/android/hals/keymaster/include/ |
D | KeymasterDevice.h | 30 using ::android::hardware::keymaster::V4_0::ErrorCode; 62 Return<ErrorCode> addRngEntropy(const hidl_vec<uint8_t>& data) override; 89 Return<ErrorCode> deleteKey(const hidl_vec<uint8_t>& keyBlob) override; 90 Return<ErrorCode> deleteAllKeys() override; 91 Return<ErrorCode> destroyAttestationIds() override; 107 Return<ErrorCode> abort(uint64_t operationHandle) override; 122 Return<ErrorCode> SendSystemVersionInfo() const; 123 Return<ErrorCode> GetBootInfo();
|
/external/spirv-llvm/lib/SPIRV/libSPIRV/ |
D | SPIRVError.h | 80 SPIRVErrorLog():ErrorCode(SPIRVEC_Success){} in SPIRVErrorLog() 83 return ErrorCode; in getError() 86 ErrorCode = ErrCode; in setError() 97 SPIRVErrorCode ErrorCode; 110 if (ErrorCode != SPIRVEC_Success) in checkError()
|
/external/autotest/client/cros/chameleon/ |
D | chameleon_stream_server.py | 52 class ErrorCode(object): class 180 if error_code != ErrorCode.OK: 204 if error_code != ErrorCode.OK: 220 ErrorCode.OK, length) 316 if error_code != ErrorCode.OK: 490 if frame_info[0] != ErrorCode.OK: 515 while frame_info[0] == ErrorCode.VideoMemoryOverflowDrop: 518 if frame_info[0] != ErrorCode.OK: 583 while error_code == ErrorCode.AudioMemoryOverflowDrop: 587 if error_code != ErrorCode.OK:
|