/aosp12/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/1.0/generic/ |
H A D | GenericOperation.h | 57 if (error_ != ResponseCode::Ignored) return ResponseCode::OperationPending; in init() 88 return ResponseCode::Unexpected; in init() 95 return ResponseCode::SystemError; in init() 97 return ResponseCode::OK; in init() 108 error_ = ResponseCode::Ignored; in abort() 119 error_ = ResponseCode::Ignored; in finalize() 145 return ResponseCode::OK; in deliverSecureInputEvent() 154 return ignored ? ResponseCode::Ignored : ResponseCode::OK; in deliverSecureInputEvent() 160 return ResponseCode::Ignored; in deliverSecureInputEvent() 175 error_ = ResponseCode::Unexpected; in userConfirm() [all …]
|
/aosp12/system/teeui/libteeui/include/teeui/ |
H A D | generic_operation.h | 75 if (error_ != ResponseCode::Ignored) return ResponseCode::OperationPending; in init() 128 if (rc == ResponseCode::OK) { in init() 129 error_ = ResponseCode::OK; in init() 154 if (error_ == ResponseCode::OK) { in fetchConfirmationResult() 162 error_ = ResponseCode::Ignored; in fetchConfirmationResult() 181 return ResponseCode::OK; in deliverTestCommand() 189 return ignored ? ResponseCode::Ignored : ResponseCode::OK; in deliverTestCommand() 192 return ResponseCode::Ignored; in deliverTestCommand() 210 return write(Message<ResponseCode>(), out, ResponseCode::Unimplemented); in dispatchCommandMessage() 224 return write(Message<ResponseCode>(), out, ResponseCode::Unimplemented); in extendedProtocolHook() [all …]
|
H A D | common_message_types.h | 32 enum class ResponseCode : uint32_t; 42 enum class ResponseCode : uint32_t { enum 109 inline std::tuple<ReadStream, ResponseCode> read(Message<ResponseCode>, ReadStream in) { in read() argument 110 return readSimpleType<ResponseCode>(in); in read() 112 inline WriteStream write(WriteStream out, const ResponseCode& v) { in write()
|
/aosp12/system/security/keystore2/src/ |
H A D | error.rs | 34 pub use android_system_keystore2::aidl::android::system::keystore2::ResponseCode::ResponseCode; 47 Rc(ResponseCode), 220 ResponseCode::SYSTEM_ERROR.0 in get_error_code() 254 fn nested_nested_ok(rc: ResponseCode) -> anyhow::Result<ResponseCode> { in nested_nested_ok() argument 258 fn nested_ok(rc: ResponseCode) -> anyhow::Result<ResponseCode> { in nested_ok() argument 301 for rc in ResponseCode::LOCKED.0..ResponseCode::BACKEND_BUSY.0 { in keystore_error_test() 340 Result::<(), ResponseCode>::Err(ResponseCode::SYSTEM_ERROR), in keystore_error_test() 352 Result::<(), ResponseCode>::Err(ResponseCode::SYSTEM_ERROR), in keystore_error_test() 361 Result::<(), ResponseCode>::Err(ResponseCode::PERMISSION_DENIED), in keystore_error_test() 368 Result::<(), ResponseCode>::Err(ResponseCode::SYSTEM_ERROR), in keystore_error_test() [all …]
|
H A D | authorization.rs | 30 ResponseCode::ResponseCode, 33 ResponseCode::ResponseCode as KsResponseCode }; 45 Rc(ResponseCode), 82 KsResponseCode::SYSTEM_ERROR => ResponseCode::SYSTEM_ERROR.0, in map_or_log_err() 83 KsResponseCode::KEY_NOT_FOUND => ResponseCode::KEY_NOT_FOUND.0, in map_or_log_err() 84 KsResponseCode::VALUE_CORRUPTED => ResponseCode::VALUE_CORRUPTED.0, in map_or_log_err() 89 _ => ResponseCode::SYSTEM_ERROR.0, in map_or_log_err() 95 Some(Error::Binder(_, _)) => ResponseCode::SYSTEM_ERROR.0, in map_or_log_err() 98 _ => ResponseCode::SYSTEM_ERROR.0, in map_or_log_err() 204 Err(Error::Rc(ResponseCode::INVALID_ARGUMENT)) in on_lock_screen_event() [all …]
|
H A D | apc.rs | 28 ResponseCode::ResponseCode, 46 Rc(ResponseCode), 55 Error::Rc(ResponseCode::SYSTEM_ERROR) in sys() 60 Error::Rc(ResponseCode::OPERATION_PENDING) in pending() 65 Error::Rc(ResponseCode::CANCELLED) in cancelled() 70 Error::Rc(ResponseCode::ABORTED) in aborted() 75 Error::Rc(ResponseCode::IGNORED) in ignored() 80 Error::Rc(ResponseCode::UNIMPLEMENTED) in unimplemented() 110 _ => ResponseCode::SYSTEM_ERROR.0, in map_or_log_err() 240 (ResponseCode::CANCELLED, _, _) | (ResponseCode::ABORTED, true, _) => { in result() [all …]
|
/aosp12/system/netd/server/ |
H A D | NdcDispatcher.cpp | 73 using netdutils::ResponseCode; 296 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 313 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 785 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 795 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 805 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 813 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 825 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 835 cli->sendMsg(ResponseCode::CommandSyntaxError, in runCommand() 872 cli->sendMsg(ResponseCode::CommandOkay, in runCommand() [all …]
|
H A D | MDnsSdListener.cpp | 50 using android::netdutils::ResponseCode; 80 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 93 cli->sendMsg(ResponseCode::CommandParameterError, in discover() 157 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop() 173 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister() 186 cli->sendMsg(ResponseCode::CommandParameterError, in serviceRegister() 228 cli->sendMsg(ResponseCode::CommandParameterError, in resolveService() 240 cli->sendMsg(ResponseCode::CommandParameterError, in resolveService() 294 cli->sendMsg(ResponseCode::CommandParameterError, in getAddrInfo() 306 cli->sendMsg(ResponseCode::CommandParameterError, in getAddrInfo() [all …]
|
/aosp12/system/security/keystore/include/keystore/ |
H A D | keystore_return_types.h | 55 inline KeyStoreServiceReturnCode& operator=(const ResponseCode& errorCode) { 64 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk() 72 inline bool operator==(const ResponseCode& rhs) const { 73 return (rhs == ResponseCode::NO_ERROR && 79 errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR)) || 132 inline KeyStoreNativeReturnCode& operator=(const ResponseCode& errorCode) { 141 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk() 145 if (errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) /* 1 */) { in getErrorCode() 150 inline bool operator==(const ResponseCode& rhs) const { 151 return (rhs == ResponseCode::NO_ERROR && [all …]
|
/aosp12/system/security/keystore2/apc_compat/ |
H A D | apc_compat.cpp | 43 case ResponseCode::OK: in responseCode2Compat() 45 case ResponseCode::Canceled: in responseCode2Compat() 47 case ResponseCode::Aborted: in responseCode2Compat() 49 case ResponseCode::OperationPending: in responseCode2Compat() 51 case ResponseCode::Ignored: in responseCode2Compat() 53 case ResponseCode::SystemError: in responseCode2Compat() 54 case ResponseCode::Unimplemented: in responseCode2Compat() 55 case ResponseCode::Unexpected: in responseCode2Compat() 56 case ResponseCode::UIError: in responseCode2Compat() 106 if (rc == ResponseCode::OK) { in promptUserConfirmation() [all …]
|
/aosp12/system/security/keystore/ |
H A D | user_state.cpp | 87 return ResponseCode::SYSTEM_ERROR; in initialize() 94 return ResponseCode::NO_ERROR; in initialize() 99 return ResponseCode::SYSTEM_ERROR; in copyMasterKey() 102 return ResponseCode::SYSTEM_ERROR; in copyMasterKey() 115 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() 120 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() 125 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() 129 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() 134 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile() 136 return ResponseCode::NO_ERROR; in copyMasterKeyFile() [all …]
|
H A D | user_state.h | 61 ResponseCode initialize(const android::String8& pw); 63 ResponseCode copyMasterKey(LockedUserState<UserState>* src); 64 ResponseCode copyMasterKeyFile(LockedUserState<UserState>* src); 65 ResponseCode writeMasterKey(const android::String8& pw); 66 ResponseCode readMasterKey(const android::String8& pw);
|
/aosp12/system/core/trusty/confirmationui/ |
H A D | TrustyConfirmationUI.cpp | 71 using TeeuiRc = ::teeui::ResponseCode; 90 ResponseCode convertRc(TeeuiRc trc) { in convertRc() 109 return ResponseCode(trc); in convertRc() 396 return ResponseCode::OperationPending; in promptUserConfirmation() 404 return ResponseCode::OperationPending; in promptUserConfirmation() 410 return ResponseCode::Unexpected; in promptUserConfirmation() 447 return ResponseCode::OK; in promptUserConfirmation() 450 Return<ResponseCode> 452 ResponseCode rc = ResponseCode::Ignored; in deliverSecureInputEvent() 472 if (!sapp) return ResponseCode::Ignored; in deliverSecureInputEvent() [all …]
|
H A D | NotSoSecureInput.cpp | 35 using teeui::ResponseCode; 128 teeui::ResponseCode rc; in handleEvent() 133 if (rc != ResponseCode::OK) { in handleEvent() 143 if (rc != ResponseCode::OK) { in handleEvent() 160 if (rc != ResponseCode::OK) { in start() 167 teeui::ResponseCode performDTUPHandshake() { in performDTUPHandshake() 168 ResponseCode rc; in performDTUPHandshake() 172 if (rc != ResponseCode::OK) { in performDTUPHandshake() 181 if (rc != ResponseCode::OK) { in performDTUPHandshake() 185 return ResponseCode::OK; in performDTUPHandshake()
|
H A D | TrustyConfirmationUI.h | 54 Return<ResponseCode> promptUserConfirmation(const sp<IConfirmationResultCallback>& resultCB, 59 Return<ResponseCode> deliverSecureInputEvent( 88 ResponseCode prompt_result_; 91 std::tuple<teeui::ResponseCode, teeui::MsgVector<uint8_t>, teeui::MsgVector<uint8_t>>
|
/aosp12/frameworks/base/keystore/java/android/security/ |
H A D | AndroidProtectedConfirmation.java | 24 import android.security.apc.ResponseCode; 33 public static final int ERROR_OK = ResponseCode.OK; 34 public static final int ERROR_CANCELED = ResponseCode.CANCELLED; 35 public static final int ERROR_ABORTED = ResponseCode.ABORTED; 36 public static final int ERROR_OPERATION_PENDING = ResponseCode.OPERATION_PENDING; 37 public static final int ERROR_IGNORED = ResponseCode.IGNORED; 38 public static final int ERROR_SYSTEM_ERROR = ResponseCode.SYSTEM_ERROR; 39 public static final int ERROR_UNIMPLEMENTED = ResponseCode.UNIMPLEMENTED;
|
H A D | KeyStore2.java | 31 import android.system.keystore2.ResponseCode; 123 throw new KeyStoreException(ResponseCode.SYSTEM_ERROR, ""); in handleRemoteExceptionWithRetry() 329 case ResponseCode.LOCKED: in getKeyStoreException() 331 case ResponseCode.UNINITIALIZED: in getKeyStoreException() 333 case ResponseCode.SYSTEM_ERROR: in getKeyStoreException() 335 case ResponseCode.PERMISSION_DENIED: in getKeyStoreException() 337 case ResponseCode.KEY_NOT_FOUND: in getKeyStoreException() 339 case ResponseCode.VALUE_CORRUPTED: in getKeyStoreException() 341 case ResponseCode.KEY_PERMANENTLY_INVALIDATED: in getKeyStoreException()
|
H A D | AndroidKeyStoreMaintenance.java | 26 import android.system.keystore2.ResponseCode; 36 public static final int SYSTEM_ERROR = ResponseCode.SYSTEM_ERROR; 37 public static final int INVALID_ARGUMENT = ResponseCode.INVALID_ARGUMENT; 38 public static final int PERMISSION_DENIED = ResponseCode.PERMISSION_DENIED; 39 public static final int KEY_NOT_FOUND = ResponseCode.KEY_NOT_FOUND;
|
/aosp12/system/core/gatekeeperd/include/gatekeeper/ |
H A D | GateKeeperResponse.h | 27 enum class ResponseCode : int32_t { enum 34 GateKeeperResponse(ResponseCode response_code, int32_t timeout = 0, 47 static GateKeeperResponse error() { return GateKeeperResponse(ResponseCode::ERROR); } in error() 49 return GateKeeperResponse(ResponseCode::RETRY, timeout); in retry() 52 return GateKeeperResponse(ResponseCode::OK, 0, std::move(payload), reenroll); 62 ResponseCode response_code() const { return response_code_; } in response_code() 64 void response_code(ResponseCode response_code) { response_code_ = response_code; } in response_code() 75 ResponseCode response_code_;
|
/aosp12/hardware/interfaces/confirmationui/1.0/vts/functional/ |
H A D | VtsHalConfirmationUIV1_0TargetTest.cpp | 180 ResponseCode error_; 238 ASSERT_HAL_CALL(ResponseCode::OK, in TEST_P() 245 ASSERT_EQ(ResponseCode::OK, result.args->error_); in TEST_P() 282 ASSERT_HAL_CALL(ResponseCode::UIErrorMessageTooLong, in TEST_P() 294 ASSERT_HAL_CALL(ResponseCode::UIErrorMessageTooLong, in TEST_P() 305 ASSERT_HAL_CALL(ResponseCode::OK, in TEST_P() 325 ASSERT_HAL_CALL(ResponseCode::OK, in TEST_P() 346 ASSERT_HAL_CALL(ResponseCode::OK, in TEST_P() 367 ASSERT_HAL_CALL(ResponseCode::OK, in TEST_P() 389 ASSERT_HAL_CALL(ResponseCode::OK, in TEST_P() [all …]
|
/aosp12/system/core/gatekeeperd/ |
H A D | GateKeeperResponse.cpp | 38 response_code_ = ResponseCode(in->readInt32()); in readFromParcel() 39 if (response_code_ == ResponseCode::OK) { in readFromParcel() 52 } else if (response_code_ == ResponseCode::RETRY) { in readFromParcel() 63 if (response_code_ == ResponseCode::OK) { in writeToParcel() 75 } else if (response_code_ == ResponseCode::RETRY) { in writeToParcel()
|
/aosp12/system/teeui/libteeui/include/secure_input/ |
H A D | secure_input_device.h | 35 using HsBeginCb = std::function<std::tuple<teeui::ResponseCode, Nonce>()>; 36 using HsFinalizeCb = std::function<teeui::ResponseCode(const Signature&, const Nonce&)>; 38 std::function<std::tuple<teeui::ResponseCode, secure_input::InputResponse>( 40 using InputResultCb = std::function<void(teeui::ResponseCode)>;
|
/aosp12/frameworks/base/core/java/com/android/internal/widget/ |
H A D | VerifyCredentialResponse.java | 42 @interface ResponseCode {} annotation in VerifyCredentialResponse 49 private final @ResponseCode int mResponseCode; 58 final @ResponseCode int responseCode = source.readInt(); 127 private VerifyCredentialResponse(@ResponseCode int responseCode, int timeout, in VerifyCredentialResponse() 170 public @ResponseCode int getResponseCode() { in getResponseCode()
|
/aosp12/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | KeyStoreCryptoOperationUtils.java | 32 import android.system.keystore2.ResponseCode; 120 case ResponseCode.KEY_NOT_FOUND: in getInvalidKeyException() 122 case ResponseCode.KEY_PERMANENTLY_INVALIDATED: in getInvalidKeyException() 124 case ResponseCode.LOCKED: in getInvalidKeyException() 125 case ResponseCode.UNINITIALIZED: in getInvalidKeyException()
|
/aosp12/hardware/interfaces/confirmationui/1.0/default/ |
H A D | ConfirmationUI.cpp | 41 Return<ResponseCode> ConfirmationUI::promptUserConfirmation( in promptUserConfirmation() 47 if (result == ResponseCode::OK) { in promptUserConfirmation() 54 Return<ResponseCode> ConfirmationUI::deliverSecureInputEvent( in deliverSecureInputEvent()
|