Created
January 16, 2021 12:05
-
-
Save giper45/db8fd303839b734645684d4fa44dd8ba to your computer and use it in GitHub Desktop.
Android Keystore binder service client interface x86
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <android/security/keystore/IKeystoreService.h> | |
#include <android/security/keystore/BpKeystoreService.h> | |
namespace android { | |
namespace security { | |
namespace keystore { | |
IMPLEMENT_META_INTERFACE(KeystoreService, "android.security.keystore.IKeystoreService") | |
::android::IBinder* IKeystoreServiceDefault::onAsBinder() { | |
return nullptr; | |
} | |
::android::binder::Status IKeystoreServiceDefault::getState(int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::get(const ::android::String16&, int32_t, ::std::vector<uint8_t>* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::insert(const ::android::String16&, const ::std::vector<uint8_t>&, int32_t, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::del(const ::android::String16&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::exist(const ::android::String16&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::list(const ::android::String16&, int32_t, ::std::vector<::android::String16>* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::reset(int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::onUserPasswordChanged(int32_t, const ::android::String16&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::lock(int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::unlock(int32_t, const ::android::String16&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::isEmpty(int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::grant(const ::android::String16&, int32_t, ::android::String16* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::ungrant(const ::android::String16&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::getmtime(const ::android::String16&, int32_t, int64_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::is_hardware_backed(const ::android::String16&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::clear_uid(int64_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::addRngEntropy(const ::android::sp<::android::security::keystore::IKeystoreResponseCallback>&, const ::std::vector<uint8_t>&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::generateKey(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>&, const ::android::String16&, const ::android::security::keymaster::KeymasterArguments&, const ::std::vector<uint8_t>&, int32_t, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::getKeyCharacteristics(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>&, const ::android::String16&, const ::android::security::keymaster::KeymasterBlob&, const ::android::security::keymaster::KeymasterBlob&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::importKey(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>&, const ::android::String16&, const ::android::security::keymaster::KeymasterArguments&, int32_t, const ::std::vector<uint8_t>&, int32_t, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::exportKey(const ::android::sp<::android::security::keystore::IKeystoreExportKeyCallback>&, const ::android::String16&, int32_t, const ::android::security::keymaster::KeymasterBlob&, const ::android::security::keymaster::KeymasterBlob&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::begin(const ::android::sp<::android::security::keystore::IKeystoreOperationResultCallback>&, const ::android::sp<::android::IBinder>&, const ::android::String16&, int32_t, bool, const ::android::security::keymaster::KeymasterArguments&, const ::std::vector<uint8_t>&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::update(const ::android::sp<::android::security::keystore::IKeystoreOperationResultCallback>&, const ::android::sp<::android::IBinder>&, const ::android::security::keymaster::KeymasterArguments&, const ::std::vector<uint8_t>&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::finish(const ::android::sp<::android::security::keystore::IKeystoreOperationResultCallback>&, const ::android::sp<::android::IBinder>&, const ::android::security::keymaster::KeymasterArguments&, const ::std::vector<uint8_t>&, const ::std::vector<uint8_t>&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::abort(const ::android::sp<::android::security::keystore::IKeystoreResponseCallback>&, const ::android::sp<::android::IBinder>&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::addAuthToken(const ::std::vector<uint8_t>&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::onUserAdded(int32_t, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::onUserRemoved(int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::attestKey(const ::android::sp<::android::security::keystore::IKeystoreCertificateChainCallback>&, const ::android::String16&, const ::android::security::keymaster::KeymasterArguments&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::attestDeviceIds(const ::android::sp<::android::security::keystore::IKeystoreCertificateChainCallback>&, const ::android::security::keymaster::KeymasterArguments&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::onDeviceOffBody(int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::importWrappedKey(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>&, const ::android::String16&, const ::std::vector<uint8_t>&, const ::android::String16&, const ::std::vector<uint8_t>&, const ::android::security::keymaster::KeymasterArguments&, int64_t, int64_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::presentConfirmationPrompt(const ::android::sp<::android::IBinder>&, const ::android::String16&, const ::std::vector<uint8_t>&, const ::android::String16&, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::cancelConfirmationPrompt(const ::android::sp<::android::IBinder>&, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::isConfirmationPromptSupported(bool* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::onKeyguardVisibilityChanged(bool, int32_t, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
::android::binder::Status IKeystoreServiceDefault::listUidsOfAuthBoundKeys(::std::vector<::std::string>*, int32_t* ) { | |
return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); | |
} | |
} // namespace keystore | |
} // namespace security | |
} // namespace android | |
#include <android/security/keystore/BpKeystoreService.h> | |
#include <binder/Parcel.h> | |
#include <android-base/macros.h> | |
namespace android { | |
namespace security { | |
namespace keystore { | |
BpKeystoreService::BpKeystoreService(const ::android::sp<::android::IBinder>& _aidl_impl) | |
: BpInterface<IKeystoreService>(_aidl_impl){ | |
} | |
::android::binder::Status BpKeystoreService::getState(int32_t userId, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 0 /* getState */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->getState(userId, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::get(const ::android::String16& name, int32_t uid, ::std::vector<uint8_t>* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 1 /* get */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->get(name, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readByteVector(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::insert(const ::android::String16& name, const ::std::vector<uint8_t>& item, int32_t uid, int32_t flags, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(item); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 2 /* insert */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->insert(name, item, uid, flags, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::del(const ::android::String16& name, int32_t uid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 3 /* del */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->del(name, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::exist(const ::android::String16& name, int32_t uid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 4 /* exist */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->exist(name, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::list(const ::android::String16& namePrefix, int32_t uid, ::std::vector<::android::String16>* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(namePrefix); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 5 /* list */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->list(namePrefix, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readString16Vector(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::reset(int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 6 /* reset */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->reset(_aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::onUserPasswordChanged(int32_t userId, const ::android::String16& newPassword, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(newPassword); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 7 /* onUserPasswordChanged */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->onUserPasswordChanged(userId, newPassword, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::lock(int32_t userId, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 8 /* lock */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->lock(userId, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::unlock(int32_t userId, const ::android::String16& userPassword, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(userPassword); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 9 /* unlock */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->unlock(userId, userPassword, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::isEmpty(int32_t userId, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 10 /* isEmpty */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->isEmpty(userId, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::grant(const ::android::String16& name, int32_t granteeUid, ::android::String16* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(granteeUid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 11 /* grant */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->grant(name, granteeUid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readString16(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::ungrant(const ::android::String16& name, int32_t granteeUid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(granteeUid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 12 /* ungrant */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->ungrant(name, granteeUid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::getmtime(const ::android::String16& name, int32_t uid, int64_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 13 /* getmtime */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->getmtime(name, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt64(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::is_hardware_backed(const ::android::String16& string, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(string); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 14 /* is_hardware_backed */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->is_hardware_backed(string, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::clear_uid(int64_t uid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt64(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 15 /* clear_uid */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->clear_uid(uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::addRngEntropy(const ::android::sp<::android::security::keystore::IKeystoreResponseCallback>& cb, const ::std::vector<uint8_t>& data, int32_t flags, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreResponseCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(data); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 16 /* addRngEntropy */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->addRngEntropy(cb, data, flags, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::generateKey(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>& cb, const ::android::String16& alias, const ::android::security::keymaster::KeymasterArguments& arguments, const ::std::vector<uint8_t>& entropy, int32_t uid, int32_t flags, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreKeyCharacteristicsCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(arguments); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(entropy); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 17 /* generateKey */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->generateKey(cb, alias, arguments, entropy, uid, flags, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::getKeyCharacteristics(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>& cb, const ::android::String16& alias, const ::android::security::keymaster::KeymasterBlob& clientId, const ::android::security::keymaster::KeymasterBlob& appData, int32_t uid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreKeyCharacteristicsCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(clientId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(appData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 18 /* getKeyCharacteristics */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->getKeyCharacteristics(cb, alias, clientId, appData, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::importKey(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>& cb, const ::android::String16& alias, const ::android::security::keymaster::KeymasterArguments& arguments, int32_t format, const ::std::vector<uint8_t>& keyData, int32_t uid, int32_t flags, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreKeyCharacteristicsCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(arguments); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(format); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(keyData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 19 /* importKey */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->importKey(cb, alias, arguments, format, keyData, uid, flags, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::exportKey(const ::android::sp<::android::security::keystore::IKeystoreExportKeyCallback>& cb, const ::android::String16& alias, int32_t format, const ::android::security::keymaster::KeymasterBlob& clientId, const ::android::security::keymaster::KeymasterBlob& appData, int32_t uid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreExportKeyCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(format); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(clientId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(appData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 20 /* exportKey */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->exportKey(cb, alias, format, clientId, appData, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::begin(const ::android::sp<::android::security::keystore::IKeystoreOperationResultCallback>& cb, const ::android::sp<::android::IBinder>& appToken, const ::android::String16& alias, int32_t purpose, bool pruneable, const ::android::security::keymaster::KeymasterArguments& params, const ::std::vector<uint8_t>& entropy, int32_t uid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreOperationResultCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(appToken); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(purpose); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeBool(pruneable); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(entropy); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 21 /* begin */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->begin(cb, appToken, alias, purpose, pruneable, params, entropy, uid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::update(const ::android::sp<::android::security::keystore::IKeystoreOperationResultCallback>& cb, const ::android::sp<::android::IBinder>& token, const ::android::security::keymaster::KeymasterArguments& params, const ::std::vector<uint8_t>& input, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreOperationResultCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(token); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(input); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 22 /* update */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->update(cb, token, params, input, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::finish(const ::android::sp<::android::security::keystore::IKeystoreOperationResultCallback>& cb, const ::android::sp<::android::IBinder>& token, const ::android::security::keymaster::KeymasterArguments& params, const ::std::vector<uint8_t>& signature, const ::std::vector<uint8_t>& entropy, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreOperationResultCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(token); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(signature); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(entropy); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 23 /* finish */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->finish(cb, token, params, signature, entropy, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::abort(const ::android::sp<::android::security::keystore::IKeystoreResponseCallback>& cb, const ::android::sp<::android::IBinder>& token, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreResponseCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(token); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 24 /* abort */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->abort(cb, token, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::addAuthToken(const ::std::vector<uint8_t>& authToken, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(authToken); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 25 /* addAuthToken */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->addAuthToken(authToken, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::onUserAdded(int32_t userId, int32_t parentId, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(parentId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 26 /* onUserAdded */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->onUserAdded(userId, parentId, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::onUserRemoved(int32_t userId, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 27 /* onUserRemoved */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->onUserRemoved(userId, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::attestKey(const ::android::sp<::android::security::keystore::IKeystoreCertificateChainCallback>& cb, const ::android::String16& alias, const ::android::security::keymaster::KeymasterArguments& params, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreCertificateChainCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 28 /* attestKey */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->attestKey(cb, alias, params, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::attestDeviceIds(const ::android::sp<::android::security::keystore::IKeystoreCertificateChainCallback>& cb, const ::android::security::keymaster::KeymasterArguments& params, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreCertificateChainCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 29 /* attestDeviceIds */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->attestDeviceIds(cb, params, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::onDeviceOffBody(int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 30 /* onDeviceOffBody */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->onDeviceOffBody(_aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::importWrappedKey(const ::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback>& cb, const ::android::String16& wrappedKeyAlias, const ::std::vector<uint8_t>& wrappedKey, const ::android::String16& wrappingKeyAlias, const ::std::vector<uint8_t>& maskingKey, const ::android::security::keymaster::KeymasterArguments& arguments, int64_t rootSid, int64_t fingerprintSid, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(::android::security::keystore::IKeystoreKeyCharacteristicsCallback::asBinder(cb)); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(wrappedKeyAlias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(wrappedKey); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(wrappingKeyAlias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(maskingKey); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeParcelable(arguments); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt64(rootSid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt64(fingerprintSid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 31 /* importWrappedKey */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->importWrappedKey(cb, wrappedKeyAlias, wrappedKey, wrappingKeyAlias, maskingKey, arguments, rootSid, fingerprintSid, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::presentConfirmationPrompt(const ::android::sp<::android::IBinder>& listener, const ::android::String16& promptText, const ::std::vector<uint8_t>& extraData, const ::android::String16& locale, int32_t uiOptionsAsFlags, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(listener); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(promptText); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeByteVector(extraData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeString16(locale); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(uiOptionsAsFlags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 32 /* presentConfirmationPrompt */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->presentConfirmationPrompt(listener, promptText, extraData, locale, uiOptionsAsFlags, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::cancelConfirmationPrompt(const ::android::sp<::android::IBinder>& listener, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeStrongBinder(listener); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 33 /* cancelConfirmationPrompt */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->cancelConfirmationPrompt(listener, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::isConfirmationPromptSupported(bool* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 34 /* isConfirmationPromptSupported */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->isConfirmationPromptSupported(_aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readBool(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::onKeyguardVisibilityChanged(bool isShowing, int32_t userId, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeBool(isShowing); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_data.writeInt32(userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 35 /* onKeyguardVisibilityChanged */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->onKeyguardVisibilityChanged(isShowing, userId, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
::android::binder::Status BpKeystoreService::listUidsOfAuthBoundKeys(::std::vector<::std::string>* uids, int32_t* _aidl_return) { | |
::android::Parcel _aidl_data; | |
::android::Parcel _aidl_reply; | |
::android::status_t _aidl_ret_status = ::android::OK; | |
::android::binder::Status _aidl_status; | |
_aidl_ret_status = _aidl_data.writeInterfaceToken(getInterfaceDescriptor()); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = remote()->transact(::android::IBinder::FIRST_CALL_TRANSACTION + 36 /* listUidsOfAuthBoundKeys */, _aidl_data, &_aidl_reply); | |
if (UNLIKELY(_aidl_ret_status == ::android::UNKNOWN_TRANSACTION && IKeystoreService::getDefaultImpl())) { | |
return IKeystoreService::getDefaultImpl()->listUidsOfAuthBoundKeys(uids, _aidl_return); | |
} | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_status.readFromParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
if (!_aidl_status.isOk()) { | |
return _aidl_status; | |
} | |
_aidl_ret_status = _aidl_reply.readInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_ret_status = _aidl_reply.readUtf8VectorFromUtf16Vector(uids); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
goto _aidl_error; | |
} | |
_aidl_error: | |
_aidl_status.setFromStatusT(_aidl_ret_status); | |
return _aidl_status; | |
} | |
} // namespace keystore | |
} // namespace security | |
} // namespace android | |
#include <android/security/keystore/BnKeystoreService.h> | |
#include <binder/Parcel.h> | |
namespace android { | |
namespace security { | |
namespace keystore { | |
::android::status_t BnKeystoreService::onTransact(uint32_t _aidl_code, const ::android::Parcel& _aidl_data, ::android::Parcel* _aidl_reply, uint32_t _aidl_flags) { | |
::android::status_t _aidl_ret_status = ::android::OK; | |
switch (_aidl_code) { | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 0 /* getState */: | |
{ | |
int32_t in_userId; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(getState(in_userId, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 1 /* get */: | |
{ | |
::android::String16 in_name; | |
int32_t in_uid; | |
::std::vector<uint8_t> _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(get(in_name, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeByteVector(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 2 /* insert */: | |
{ | |
::android::String16 in_name; | |
::std::vector<uint8_t> in_item; | |
int32_t in_uid; | |
int32_t in_flags; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_item); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(insert(in_name, in_item, in_uid, in_flags, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 3 /* del */: | |
{ | |
::android::String16 in_name; | |
int32_t in_uid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(del(in_name, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 4 /* exist */: | |
{ | |
::android::String16 in_name; | |
int32_t in_uid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(exist(in_name, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 5 /* list */: | |
{ | |
::android::String16 in_namePrefix; | |
int32_t in_uid; | |
::std::vector<::android::String16> _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_namePrefix); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(list(in_namePrefix, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeString16Vector(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 6 /* reset */: | |
{ | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
::android::binder::Status _aidl_status(reset(&_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 7 /* onUserPasswordChanged */: | |
{ | |
int32_t in_userId; | |
::android::String16 in_newPassword; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_newPassword); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(onUserPasswordChanged(in_userId, in_newPassword, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 8 /* lock */: | |
{ | |
int32_t in_userId; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(lock(in_userId, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 9 /* unlock */: | |
{ | |
int32_t in_userId; | |
::android::String16 in_userPassword; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_userPassword); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(unlock(in_userId, in_userPassword, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 10 /* isEmpty */: | |
{ | |
int32_t in_userId; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(isEmpty(in_userId, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 11 /* grant */: | |
{ | |
::android::String16 in_name; | |
int32_t in_granteeUid; | |
::android::String16 _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_granteeUid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(grant(in_name, in_granteeUid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeString16(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 12 /* ungrant */: | |
{ | |
::android::String16 in_name; | |
int32_t in_granteeUid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_granteeUid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(ungrant(in_name, in_granteeUid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 13 /* getmtime */: | |
{ | |
::android::String16 in_name; | |
int32_t in_uid; | |
int64_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_name); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(getmtime(in_name, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt64(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 14 /* is_hardware_backed */: | |
{ | |
::android::String16 in_string; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_string); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(is_hardware_backed(in_string, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 15 /* clear_uid */: | |
{ | |
int64_t in_uid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt64(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(clear_uid(in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 16 /* addRngEntropy */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreResponseCallback> in_cb; | |
::std::vector<uint8_t> in_data; | |
int32_t in_flags; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_data); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(addRngEntropy(in_cb, in_data, in_flags, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 17 /* generateKey */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback> in_cb; | |
::android::String16 in_alias; | |
::android::security::keymaster::KeymasterArguments in_arguments; | |
::std::vector<uint8_t> in_entropy; | |
int32_t in_uid; | |
int32_t in_flags; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_arguments); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_entropy); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(generateKey(in_cb, in_alias, in_arguments, in_entropy, in_uid, in_flags, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 18 /* getKeyCharacteristics */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback> in_cb; | |
::android::String16 in_alias; | |
::android::security::keymaster::KeymasterBlob in_clientId; | |
::android::security::keymaster::KeymasterBlob in_appData; | |
int32_t in_uid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_clientId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_appData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(getKeyCharacteristics(in_cb, in_alias, in_clientId, in_appData, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 19 /* importKey */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback> in_cb; | |
::android::String16 in_alias; | |
::android::security::keymaster::KeymasterArguments in_arguments; | |
int32_t in_format; | |
::std::vector<uint8_t> in_keyData; | |
int32_t in_uid; | |
int32_t in_flags; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_arguments); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_format); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_keyData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_flags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(importKey(in_cb, in_alias, in_arguments, in_format, in_keyData, in_uid, in_flags, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 20 /* exportKey */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreExportKeyCallback> in_cb; | |
::android::String16 in_alias; | |
int32_t in_format; | |
::android::security::keymaster::KeymasterBlob in_clientId; | |
::android::security::keymaster::KeymasterBlob in_appData; | |
int32_t in_uid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_format); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_clientId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_appData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(exportKey(in_cb, in_alias, in_format, in_clientId, in_appData, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 21 /* begin */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreOperationResultCallback> in_cb; | |
::android::sp<::android::IBinder> in_appToken; | |
::android::String16 in_alias; | |
int32_t in_purpose; | |
bool in_pruneable; | |
::android::security::keymaster::KeymasterArguments in_params; | |
::std::vector<uint8_t> in_entropy; | |
int32_t in_uid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_appToken); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_purpose); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readBool(&in_pruneable); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_entropy); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(begin(in_cb, in_appToken, in_alias, in_purpose, in_pruneable, in_params, in_entropy, in_uid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 22 /* update */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreOperationResultCallback> in_cb; | |
::android::sp<::android::IBinder> in_token; | |
::android::security::keymaster::KeymasterArguments in_params; | |
::std::vector<uint8_t> in_input; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_token); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_input); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(update(in_cb, in_token, in_params, in_input, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 23 /* finish */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreOperationResultCallback> in_cb; | |
::android::sp<::android::IBinder> in_token; | |
::android::security::keymaster::KeymasterArguments in_params; | |
::std::vector<uint8_t> in_signature; | |
::std::vector<uint8_t> in_entropy; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_token); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_signature); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_entropy); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(finish(in_cb, in_token, in_params, in_signature, in_entropy, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 24 /* abort */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreResponseCallback> in_cb; | |
::android::sp<::android::IBinder> in_token; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_token); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(abort(in_cb, in_token, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 25 /* addAuthToken */: | |
{ | |
::std::vector<uint8_t> in_authToken; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_authToken); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(addAuthToken(in_authToken, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 26 /* onUserAdded */: | |
{ | |
int32_t in_userId; | |
int32_t in_parentId; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_parentId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(onUserAdded(in_userId, in_parentId, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 27 /* onUserRemoved */: | |
{ | |
int32_t in_userId; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(onUserRemoved(in_userId, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 28 /* attestKey */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreCertificateChainCallback> in_cb; | |
::android::String16 in_alias; | |
::android::security::keymaster::KeymasterArguments in_params; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_alias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(attestKey(in_cb, in_alias, in_params, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 29 /* attestDeviceIds */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreCertificateChainCallback> in_cb; | |
::android::security::keymaster::KeymasterArguments in_params; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_params); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(attestDeviceIds(in_cb, in_params, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 30 /* onDeviceOffBody */: | |
{ | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
::android::binder::Status _aidl_status(onDeviceOffBody(&_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 31 /* importWrappedKey */: | |
{ | |
::android::sp<::android::security::keystore::IKeystoreKeyCharacteristicsCallback> in_cb; | |
::android::String16 in_wrappedKeyAlias; | |
::std::vector<uint8_t> in_wrappedKey; | |
::android::String16 in_wrappingKeyAlias; | |
::std::vector<uint8_t> in_maskingKey; | |
::android::security::keymaster::KeymasterArguments in_arguments; | |
int64_t in_rootSid; | |
int64_t in_fingerprintSid; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_cb); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_wrappedKeyAlias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_wrappedKey); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_wrappingKeyAlias); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_maskingKey); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readParcelable(&in_arguments); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt64(&in_rootSid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt64(&in_fingerprintSid); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(importWrappedKey(in_cb, in_wrappedKeyAlias, in_wrappedKey, in_wrappingKeyAlias, in_maskingKey, in_arguments, in_rootSid, in_fingerprintSid, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 32 /* presentConfirmationPrompt */: | |
{ | |
::android::sp<::android::IBinder> in_listener; | |
::android::String16 in_promptText; | |
::std::vector<uint8_t> in_extraData; | |
::android::String16 in_locale; | |
int32_t in_uiOptionsAsFlags; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_listener); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_promptText); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readByteVector(&in_extraData); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readString16(&in_locale); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_uiOptionsAsFlags); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(presentConfirmationPrompt(in_listener, in_promptText, in_extraData, in_locale, in_uiOptionsAsFlags, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 33 /* cancelConfirmationPrompt */: | |
{ | |
::android::sp<::android::IBinder> in_listener; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readStrongBinder(&in_listener); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(cancelConfirmationPrompt(in_listener, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 34 /* isConfirmationPromptSupported */: | |
{ | |
bool _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
::android::binder::Status _aidl_status(isConfirmationPromptSupported(&_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeBool(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 35 /* onKeyguardVisibilityChanged */: | |
{ | |
bool in_isShowing; | |
int32_t in_userId; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readBool(&in_isShowing); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_data.readInt32(&in_userId); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
::android::binder::Status _aidl_status(onKeyguardVisibilityChanged(in_isShowing, in_userId, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
case ::android::IBinder::FIRST_CALL_TRANSACTION + 36 /* listUidsOfAuthBoundKeys */: | |
{ | |
::std::vector<::std::string> out_uids; | |
int32_t _aidl_return; | |
if (!(_aidl_data.checkInterface(this))) { | |
_aidl_ret_status = ::android::BAD_TYPE; | |
break; | |
} | |
::android::binder::Status _aidl_status(listUidsOfAuthBoundKeys(&out_uids, &_aidl_return)); | |
_aidl_ret_status = _aidl_status.writeToParcel(_aidl_reply); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
if (!_aidl_status.isOk()) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeInt32(_aidl_return); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
_aidl_ret_status = _aidl_reply->writeUtf8VectorAsUtf16Vector(out_uids); | |
if (((_aidl_ret_status) != (::android::OK))) { | |
break; | |
} | |
} | |
break; | |
default: | |
{ | |
_aidl_ret_status = ::android::BBinder::onTransact(_aidl_code, _aidl_data, _aidl_reply, _aidl_flags); | |
} | |
break; | |
} | |
if (_aidl_ret_status == ::android::UNEXPECTED_NULL) { | |
_aidl_ret_status = ::android::binder::Status::fromExceptionCode(::android::binder::Status::EX_NULL_POINTER).writeToParcel(_aidl_reply); | |
} | |
return _aidl_ret_status; | |
} | |
} // namespace keystore | |
} // namespace security | |
} // namespace android |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment