1 /*
2  * This file is auto-generated.  DO NOT MODIFY.
3  * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash a796f8e2fe447a0ddba069b6edd1aba2b1c9fc42 -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/input/common/aidl/android.hardware.input.common-V1-ndk-source/gen/staging/android/hardware/input/common/PointerProperties.cpp.d -h out/soong/.intermediates/hardware/interfaces/input/common/aidl/android.hardware.input.common-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/input/common/aidl/android.hardware.input.common-V1-ndk-source/gen/staging -Nhardware/interfaces/input/common/aidl/aidl_api/android.hardware.input.common/1 hardware/interfaces/input/common/aidl/aidl_api/android.hardware.input.common/1/android/hardware/input/common/PointerProperties.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/ToolType.h>
20 #ifdef BINDER_STABILITY_SUPPORT
21 #include <android/binder_stability.h>
22 #endif  // BINDER_STABILITY_SUPPORT
23 
24 namespace aidl {
25 namespace android {
26 namespace hardware {
27 namespace input {
28 namespace common {
29 class PointerProperties {
30 public:
31   typedef std::false_type fixed_size;
32   static const char* descriptor;
33 
34   int32_t id = 0;
35   ::aidl::android::hardware::input::common::ToolType toolType = ::aidl::android::hardware::input::common::ToolType(0);
36 
37   binder_status_t readFromParcel(const AParcel* parcel);
38   binder_status_t writeToParcel(AParcel* parcel) const;
39 
40   inline bool operator==(const PointerProperties& _rhs) const {
41     return std::tie(id, toolType) == std::tie(_rhs.id, _rhs.toolType);
42   }
43   inline bool operator<(const PointerProperties& _rhs) const {
44     return std::tie(id, toolType) < std::tie(_rhs.id, _rhs.toolType);
45   }
46   inline bool operator!=(const PointerProperties& _rhs) const {
47     return !(*this == _rhs);
48   }
49   inline bool operator>(const PointerProperties& _rhs) const {
50     return _rhs < *this;
51   }
52   inline bool operator>=(const PointerProperties& _rhs) const {
53     return !(*this < _rhs);
54   }
55   inline bool operator<=(const PointerProperties& _rhs) const {
56     return !(_rhs < *this);
57   }
58 
59   static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF;
toString()60   inline std::string toString() const {
61     std::ostringstream _aidl_os;
62     _aidl_os << "PointerProperties{";
63     _aidl_os << "id: " << ::android::internal::ToString(id);
64     _aidl_os << ", toolType: " << ::android::internal::ToString(toolType);
65     _aidl_os << "}";
66     return _aidl_os.str();
67   }
68 };
69 }  // namespace common
70 }  // namespace input
71 }  // namespace hardware
72 }  // namespace android
73 }  // namespace aidl
74