Home
last modified time | relevance | path

Searched refs:ResponseCode (Results 1 – 25 of 46) sorted by relevance

12

/system/teeui/libteeui/include/teeui/
Dgeneric_operation.h67 : error_(ResponseCode::Ignored), formattedMessageLength_(0), in Operation()
71 ResponseCode init(const MsgString& promptText, const MsgVector<uint8_t>& extraData, in init()
74 if (!hmacKey_) return ResponseCode::Unexpected; in init()
75 if (error_ != ResponseCode::Ignored) return ResponseCode::OperationPending; in init()
86 return ResponseCode::UIErrorMessageTooLong; in init()
103 return ResponseCode::UIErrorMessageTooLong; in init()
105 return ResponseCode::UIErrorMalformedUTF8Encoding; in init()
108 return ResponseCode::Unexpected; in init()
112 if (locale.size() >= kMaxLocaleSize) return ResponseCode::UIErrorMessageTooLong; in init()
123 return ResponseCode::SystemError; in init()
[all …]
Dcommon_message_types.h32 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()
/system/security/keystore2/src/
Derror.rs34 pub use android_system_keystore2::aidl::android::system::keystore2::ResponseCode::ResponseCode;
47 Rc(ResponseCode),
66 Error::Rc(ResponseCode::SYSTEM_ERROR) in sys()
71 Error::Rc(ResponseCode::PERMISSION_DENIED) in perm()
177 Some(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in map_or_log_err()
215 Some(Error::Rp(_)) => ResponseCode::SYSTEM_ERROR.0, in get_error_code()
220 ResponseCode::SYSTEM_ERROR.0 in get_error_code()
223 Some(selinux::Error::PermissionDenied) => ResponseCode::PERMISSION_DENIED.0, in get_error_code()
224 _ => ResponseCode::SYSTEM_ERROR.0, in get_error_code()
238 fn nested_nested_rc(rc: ResponseCode) -> anyhow::Result<()> { in nested_nested_rc()
[all …]
Dauthorization.rs30 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()
85 KsResponseCode::INVALID_ARGUMENT => ResponseCode::INVALID_ARGUMENT.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()
97 Some(selinux::Error::PermissionDenied) => ResponseCode::PERMISSION_DENIED.0, in map_or_log_err()
[all …]
Dapc.rs28 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()
107 Some(Error::Binder(_, _)) => ResponseCode::SYSTEM_ERROR.0, in map_or_log_err()
109 Some(selinux::Error::PermissionDenied) => ResponseCode::PERMISSION_DENIED.0, in map_or_log_err()
[all …]
Dlegacy_migrator.rs31 Domain::Domain, KeyDescriptor::KeyDescriptor, ResponseCode::ResponseCode,
301 Some(&Error::Rc(ResponseCode::KEY_NOT_FOUND)) => {} in with_try_migrate()
314 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in with_try_migrate()
320 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in with_try_migrate()
334 Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)).context("Legacy database is empty.") in with_try_migrate()
481 return Err(Error::Rc(ResponseCode::LOCKED)).context(concat!( in check_and_migrate()
492 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate()
507 return Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate()
543 Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate()
593 Err(Error::Rc(ResponseCode::KEY_NOT_FOUND)) in check_and_migrate_super_key()
/system/security/keystore/include/keystore/
Dkeystore_return_types.h45 KeyStoreServiceReturnCode(const ResponseCode& errorCode) : errorCode_(int32_t(errorCode)) {} in KeyStoreServiceReturnCode()
55 inline KeyStoreServiceReturnCode& operator=(const ResponseCode& errorCode) {
64 return errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR) || in isOk()
69 if (!errorCode_) return static_cast<int32_t>(ResponseCode::NO_ERROR /* 1 */); in getErrorCode()
72 inline bool operator==(const ResponseCode& rhs) const {
73 return (rhs == ResponseCode::NO_ERROR &&
79 errorCode_ == static_cast<int32_t>(ResponseCode::NO_ERROR)) ||
82 inline bool operator!=(const ResponseCode& rhs) const { return !(*this == rhs); }
89 inline bool operator==(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
95 inline bool operator!=(const ResponseCode& lhs, const KeyStoreServiceReturnCode& rhs) {
[all …]
/system/security/keystore2/apc_compat/
Dapc_compat.cpp38 using android::hardware::confirmationui::V1_0::ResponseCode;
41 static uint32_t responseCode2Compat(ResponseCode rc) { in responseCode2Compat()
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()
[all …]
/system/netd/server/
DNdcDispatcher.cpp57 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \
66 (cli)->sendMsg(ResponseCode::OperationFailed, (errMsg), (addErrno)); \
73 using netdutils::ResponseCode;
169 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
179 cli->sendMsg(ResponseCode::OperationFailed, "Failed to get interface list", true); in runCommand()
183 cli->sendMsg(ResponseCode::InterfaceListResult, iface.c_str(), false); in runCommand()
186 cli->sendMsg(ResponseCode::CommandOkay, "Interface list completed", false); in runCommand()
193 cli->sendMsg(ResponseCode::CommandSyntaxError, "Missing argument", false); in runCommand()
203 cli->sendMsg(ResponseCode::OperationFailed, "Interface not found", true); in runCommand()
213 cli->sendMsg(ResponseCode::InterfaceGetCfgResult, msg.c_str(), false); in runCommand()
[all …]
DMDnsSdListener.cpp50 using android::netdutils::ResponseCode;
80 cli->sendMsg(ResponseCode::CommandParameterError, in discover()
93 cli->sendMsg(ResponseCode::CommandParameterError, in discover()
99 cli->sendMsg(ResponseCode::CommandOkay, "Discover operation started", false); in discover()
112 context->mListener->sendBroadcast(ResponseCode::ServiceDiscoveryFailed, msg, false); in MDnsSdListenerDiscoverCallback()
122 respCode = ResponseCode::ServiceDiscoveryServiceAdded; in MDnsSdListenerDiscoverCallback()
128 respCode = ResponseCode::ServiceDiscoveryServiceRemoved; in MDnsSdListenerDiscoverCallback()
141 cli->sendMsg(ResponseCode::CommandParameterError, msg, false); in stop()
149 cli->sendMsg(ResponseCode::CommandParameterError, "Unknown requestId", false); in stop()
157 cli->sendMsg(ResponseCode::CommandOkay, msg, false); in stop()
[all …]
/system/security/keystore/
Duser_state.cpp85 ResponseCode UserState::initialize(const android::String8& pw) { in initialize()
87 return ResponseCode::SYSTEM_ERROR; in initialize()
89 ResponseCode response = writeMasterKey(pw); in initialize()
90 if (response != ResponseCode::NO_ERROR) { in initialize()
94 return ResponseCode::NO_ERROR; in initialize()
97 ResponseCode UserState::copyMasterKey(LockedUserState<UserState>* src) { in copyMasterKey()
99 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
102 return ResponseCode::SYSTEM_ERROR; in copyMasterKey()
109 ResponseCode UserState::copyMasterKeyFile(LockedUserState<UserState>* src) { in copyMasterKeyFile()
115 return ResponseCode::SYSTEM_ERROR; in copyMasterKeyFile()
[all …]
Duser_state.h61 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);
Dkeystore_cli_v2.cpp66 return static_cast<int>(ks2::ResponseCode::SYSTEM_ERROR); in unwrapError()
237 if (ks2::ResponseCode(error) == ks2::ResponseCode::KEY_NOT_FOUND && create) { in loadOrCreateAndVerifyEncryptionKey()
273 return static_cast<int>(ks2::ResponseCode::INVALID_ARGUMENT); in loadOrCreateAndVerifyEncryptionKey()
290 if (ks2::ResponseCode(error) == ks2::ResponseCode::KEY_NOT_FOUND && create) { in loadOrCreateAndVerifyAuthenticationKey()
326 return static_cast<int>(ks2::ResponseCode::INVALID_ARGUMENT); in loadOrCreateAndVerifyAuthenticationKey()
387 return static_cast<int>(ks2::ResponseCode::SYSTEM_ERROR); in encryptWithAuthentication()
393 return static_cast<int>(ks2::ResponseCode::SYSTEM_ERROR); in encryptWithAuthentication()
424 return static_cast<int>(ks2::ResponseCode::SYSTEM_ERROR); in encryptWithAuthentication()
436 return static_cast<int>(ks2::ResponseCode::SYSTEM_ERROR); in encryptWithAuthentication()
452 return static_cast<int>(ks2::ResponseCode::SYSTEM_ERROR); in decryptWithAuthentication()
[all …]
/system/core/gatekeeperd/include/gatekeeper/
DGateKeeperResponse.h27 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_;
/system/core/trusty/confirmationui/
DTrustyConfirmationUI.cpp71 using TeeuiRc = ::teeui::ResponseCode;
90 ResponseCode convertRc(TeeuiRc trc) { in convertRc()
92 uint32_t(TeeuiRc::OK) == uint32_t(ResponseCode::OK) && in convertRc()
93 uint32_t(TeeuiRc::Canceled) == uint32_t(ResponseCode::Canceled) && in convertRc()
94 uint32_t(TeeuiRc::Aborted) == uint32_t(ResponseCode::Aborted) && in convertRc()
95 uint32_t(TeeuiRc::OperationPending) == uint32_t(ResponseCode::OperationPending) && in convertRc()
96 uint32_t(TeeuiRc::Ignored) == uint32_t(ResponseCode::Ignored) && in convertRc()
97 uint32_t(TeeuiRc::SystemError) == uint32_t(ResponseCode::SystemError) && in convertRc()
98 uint32_t(TeeuiRc::Unimplemented) == uint32_t(ResponseCode::Unimplemented) && in convertRc()
99 uint32_t(TeeuiRc::Unexpected) == uint32_t(ResponseCode::Unexpected) && in convertRc()
[all …]
DNotSoSecureInput.cpp35 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()
DTrustyConfirmationUI.h54 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>>
/system/teeui/libteeui/include/secure_input/
Dsecure_input_device.h35 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)>;
Dsecure_input_proto.h65 using InputHandshakeResponse = teeui::Message<teeui::ResponseCode, Nonce>;
74 using FinalizeInputSessionHandshakeResponse = teeui::Message<teeui::ResponseCode>;
83 using DeliverInputEventResponse = teeui::Message<teeui::ResponseCode, InputResponse>;
/system/core/gatekeeperd/
DGateKeeperResponse.cpp38 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()
/system/security/keystore2/aidl/android/security/apc/
DIConfirmationCallback.aidl19 import android.security.apc.ResponseCode;
44 oneway void onCompleted(in ResponseCode result, in @nullable byte[] dataConfirmed); in onCompleted()
DResponseCode.aidl25 enum ResponseCode { enum
/system/security/keystore/tests/
Dconfirmationui_invocation_test.cpp35 public std::promise<std::tuple<apc::ResponseCode, std::optional<std::vector<uint8_t>>>> {
40 onCompleted(::aidl::android::security::apc::ResponseCode result, in onCompleted()
75 ASSERT_EQ(responseCode, apc::ResponseCode::ABORTED); in TEST()
/system/security/keystore2/aidl/android/security/remoteprovisioning/
DResponseCode.aidl21 enum ResponseCode { enum
/system/security/keystore2/aidl/android/security/authorization/
DResponseCode.aidl22 enum ResponseCode { enum

12