1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk -Weverything -Wno-missing-permission-annotation -t --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/input/common/aidl/android.hardware.input.common_interface/1/preprocessed.aidl --ninja -d out/soong/.intermediates/frameworks/native/services/inputflinger/aidl/com.android.server.inputflinger-ndk-source/gen/staging/com/android/server/inputflinger/KeyEvent.cpp.d -h out/soong/.intermediates/frameworks/native/services/inputflinger/aidl/com.android.server.inputflinger-ndk-source/gen/include/staging -o out/soong/.intermediates/frameworks/native/services/inputflinger/aidl/com.android.server.inputflinger-ndk-source/gen/staging -Nframeworks/native/services/inputflinger/aidl frameworks/native/services/inputflinger/aidl/com/android/server/inputflinger/KeyEvent.aidl 4 * 5 * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..). 6 * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER 7 * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE. 8 */ 9 #pragma once 10 11 #include <cstdint> 12 #include <memory> 13 #include <optional> 14 #include <string> 15 #include <vector> 16 #include <android/binder_interface_utils.h> 17 #include <android/binder_parcelable_utils.h> 18 #include <android/binder_to_string.h> 19 #include <aidl/android/hardware/input/common/Source.h> 20 #include <aidl/com/android/server/inputflinger/KeyEventAction.h> 21 #ifdef BINDER_STABILITY_SUPPORT 22 #include <android/binder_stability.h> 23 #endif // BINDER_STABILITY_SUPPORT 24 25 namespace aidl { 26 namespace com { 27 namespace android { 28 namespace server { 29 namespace inputflinger { 30 class KeyEvent { 31 public: 32 typedef std::false_type fixed_size; 33 static const char* descriptor; 34 35 int32_t id = 0; 36 int32_t deviceId = 0; 37 int64_t downTime = 0L; 38 int64_t readTime = 0L; 39 int64_t eventTime = 0L; 40 ::aidl::android::hardware::input::common::Source source = ::aidl::android::hardware::input::common::Source(0); 41 int32_t displayId = 0; 42 int32_t policyFlags = 0; 43 ::aidl::com::android::server::inputflinger::KeyEventAction action = ::aidl::com::android::server::inputflinger::KeyEventAction(0); 44 int32_t flags = 0; 45 int32_t keyCode = 0; 46 int32_t scanCode = 0; 47 int32_t metaState = 0; 48 49 binder_status_t readFromParcel(const AParcel* parcel); 50 binder_status_t writeToParcel(AParcel* parcel) const; 51 52 inline bool operator==(const KeyEvent& _rhs) const { 53 return std::tie(id, deviceId, downTime, readTime, eventTime, source, displayId, policyFlags, action, flags, keyCode, scanCode, metaState) == std::tie(_rhs.id, _rhs.deviceId, _rhs.downTime, _rhs.readTime, _rhs.eventTime, _rhs.source, _rhs.displayId, _rhs.policyFlags, _rhs.action, _rhs.flags, _rhs.keyCode, _rhs.scanCode, _rhs.metaState); 54 } 55 inline bool operator<(const KeyEvent& _rhs) const { 56 return std::tie(id, deviceId, downTime, readTime, eventTime, source, displayId, policyFlags, action, flags, keyCode, scanCode, metaState) < std::tie(_rhs.id, _rhs.deviceId, _rhs.downTime, _rhs.readTime, _rhs.eventTime, _rhs.source, _rhs.displayId, _rhs.policyFlags, _rhs.action, _rhs.flags, _rhs.keyCode, _rhs.scanCode, _rhs.metaState); 57 } 58 inline bool operator!=(const KeyEvent& _rhs) const { 59 return !(*this == _rhs); 60 } 61 inline bool operator>(const KeyEvent& _rhs) const { 62 return _rhs < *this; 63 } 64 inline bool operator>=(const KeyEvent& _rhs) const { 65 return !(*this < _rhs); 66 } 67 inline bool operator<=(const KeyEvent& _rhs) const { 68 return !(_rhs < *this); 69 } 70 71 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_LOCAL; toString()72 inline std::string toString() const { 73 std::ostringstream _aidl_os; 74 _aidl_os << "KeyEvent{"; 75 _aidl_os << "id: " << ::android::internal::ToString(id); 76 _aidl_os << ", deviceId: " << ::android::internal::ToString(deviceId); 77 _aidl_os << ", downTime: " << ::android::internal::ToString(downTime); 78 _aidl_os << ", readTime: " << ::android::internal::ToString(readTime); 79 _aidl_os << ", eventTime: " << ::android::internal::ToString(eventTime); 80 _aidl_os << ", source: " << ::android::internal::ToString(source); 81 _aidl_os << ", displayId: " << ::android::internal::ToString(displayId); 82 _aidl_os << ", policyFlags: " << ::android::internal::ToString(policyFlags); 83 _aidl_os << ", action: " << ::android::internal::ToString(action); 84 _aidl_os << ", flags: " << ::android::internal::ToString(flags); 85 _aidl_os << ", keyCode: " << ::android::internal::ToString(keyCode); 86 _aidl_os << ", scanCode: " << ::android::internal::ToString(scanCode); 87 _aidl_os << ", metaState: " << ::android::internal::ToString(metaState); 88 _aidl_os << "}"; 89 return _aidl_os.str(); 90 } 91 }; 92 } // namespace inputflinger 93 } // namespace server 94 } // namespace android 95 } // namespace com 96 } // namespace aidl 97