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 --structured --version 4 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/graphics/common/aidl/android.hardware.graphics.common_interface/6/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/drm/common/aidl/android.hardware.drm.common_interface/1/preprocessed.aidl --previous_api_dir=hardware/interfaces/graphics/composer/aidl/aidl_api/android.hardware.graphics.composer3/3 --previous_hash d24fcd9648b8b2e7287f9238eee9180244612c10 --ninja -d out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/staging/android/hardware/graphics/composer3/VrrConfig.cpp.d -h out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/graphics/composer/aidl/android.hardware.graphics.composer3-V4-ndk-source/gen/staging -Nhardware/interfaces/graphics/composer/aidl hardware/interfaces/graphics/composer/aidl/android/hardware/graphics/composer3/VrrConfig.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/graphics/composer3/VrrConfig.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 graphics { 28 namespace composer3 { 29 class VrrConfig { 30 public: 31 typedef std::false_type fixed_size; 32 static const char* descriptor; 33 34 class FrameIntervalPowerHint { 35 public: 36 typedef std::false_type fixed_size; 37 static const char* descriptor; 38 39 int32_t frameIntervalNs = 0; 40 int32_t averageRefreshPeriodNs = 0; 41 42 binder_status_t readFromParcel(const AParcel* parcel); 43 binder_status_t writeToParcel(AParcel* parcel) const; 44 45 inline bool operator==(const FrameIntervalPowerHint& _rhs) const { 46 return std::tie(frameIntervalNs, averageRefreshPeriodNs) == std::tie(_rhs.frameIntervalNs, _rhs.averageRefreshPeriodNs); 47 } 48 inline bool operator<(const FrameIntervalPowerHint& _rhs) const { 49 return std::tie(frameIntervalNs, averageRefreshPeriodNs) < std::tie(_rhs.frameIntervalNs, _rhs.averageRefreshPeriodNs); 50 } 51 inline bool operator!=(const FrameIntervalPowerHint& _rhs) const { 52 return !(*this == _rhs); 53 } 54 inline bool operator>(const FrameIntervalPowerHint& _rhs) const { 55 return _rhs < *this; 56 } 57 inline bool operator>=(const FrameIntervalPowerHint& _rhs) const { 58 return !(*this < _rhs); 59 } 60 inline bool operator<=(const FrameIntervalPowerHint& _rhs) const { 61 return !(_rhs < *this); 62 } 63 64 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()65 inline std::string toString() const { 66 std::ostringstream _aidl_os; 67 _aidl_os << "FrameIntervalPowerHint{"; 68 _aidl_os << "frameIntervalNs: " << ::android::internal::ToString(frameIntervalNs); 69 _aidl_os << ", averageRefreshPeriodNs: " << ::android::internal::ToString(averageRefreshPeriodNs); 70 _aidl_os << "}"; 71 return _aidl_os.str(); 72 } 73 }; 74 class NotifyExpectedPresentConfig { 75 public: 76 typedef std::false_type fixed_size; 77 static const char* descriptor; 78 79 int32_t headsUpNs = 0; 80 int32_t timeoutNs = 0; 81 82 binder_status_t readFromParcel(const AParcel* parcel); 83 binder_status_t writeToParcel(AParcel* parcel) const; 84 85 inline bool operator==(const NotifyExpectedPresentConfig& _rhs) const { 86 return std::tie(headsUpNs, timeoutNs) == std::tie(_rhs.headsUpNs, _rhs.timeoutNs); 87 } 88 inline bool operator<(const NotifyExpectedPresentConfig& _rhs) const { 89 return std::tie(headsUpNs, timeoutNs) < std::tie(_rhs.headsUpNs, _rhs.timeoutNs); 90 } 91 inline bool operator!=(const NotifyExpectedPresentConfig& _rhs) const { 92 return !(*this == _rhs); 93 } 94 inline bool operator>(const NotifyExpectedPresentConfig& _rhs) const { 95 return _rhs < *this; 96 } 97 inline bool operator>=(const NotifyExpectedPresentConfig& _rhs) const { 98 return !(*this < _rhs); 99 } 100 inline bool operator<=(const NotifyExpectedPresentConfig& _rhs) const { 101 return !(_rhs < *this); 102 } 103 104 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()105 inline std::string toString() const { 106 std::ostringstream _aidl_os; 107 _aidl_os << "NotifyExpectedPresentConfig{"; 108 _aidl_os << "headsUpNs: " << ::android::internal::ToString(headsUpNs); 109 _aidl_os << ", timeoutNs: " << ::android::internal::ToString(timeoutNs); 110 _aidl_os << "}"; 111 return _aidl_os.str(); 112 } 113 }; 114 int32_t minFrameIntervalNs = 0; 115 std::optional<std::vector<std::optional<::aidl::android::hardware::graphics::composer3::VrrConfig::FrameIntervalPowerHint>>> frameIntervalPowerHints; 116 std::optional<::aidl::android::hardware::graphics::composer3::VrrConfig::NotifyExpectedPresentConfig> notifyExpectedPresentConfig; 117 118 binder_status_t readFromParcel(const AParcel* parcel); 119 binder_status_t writeToParcel(AParcel* parcel) const; 120 121 inline bool operator==(const VrrConfig& _rhs) const { 122 return std::tie(minFrameIntervalNs, frameIntervalPowerHints, notifyExpectedPresentConfig) == std::tie(_rhs.minFrameIntervalNs, _rhs.frameIntervalPowerHints, _rhs.notifyExpectedPresentConfig); 123 } 124 inline bool operator<(const VrrConfig& _rhs) const { 125 return std::tie(minFrameIntervalNs, frameIntervalPowerHints, notifyExpectedPresentConfig) < std::tie(_rhs.minFrameIntervalNs, _rhs.frameIntervalPowerHints, _rhs.notifyExpectedPresentConfig); 126 } 127 inline bool operator!=(const VrrConfig& _rhs) const { 128 return !(*this == _rhs); 129 } 130 inline bool operator>(const VrrConfig& _rhs) const { 131 return _rhs < *this; 132 } 133 inline bool operator>=(const VrrConfig& _rhs) const { 134 return !(*this < _rhs); 135 } 136 inline bool operator<=(const VrrConfig& _rhs) const { 137 return !(_rhs < *this); 138 } 139 140 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; toString()141 inline std::string toString() const { 142 std::ostringstream _aidl_os; 143 _aidl_os << "VrrConfig{"; 144 _aidl_os << "minFrameIntervalNs: " << ::android::internal::ToString(minFrameIntervalNs); 145 _aidl_os << ", frameIntervalPowerHints: " << ::android::internal::ToString(frameIntervalPowerHints); 146 _aidl_os << ", notifyExpectedPresentConfig: " << ::android::internal::ToString(notifyExpectedPresentConfig); 147 _aidl_os << "}"; 148 return _aidl_os.str(); 149 } 150 }; 151 } // namespace composer3 152 } // namespace graphics 153 } // namespace hardware 154 } // namespace android 155 } // namespace aidl 156