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 6 --hash notfrozen -t --stability vintf --min_sdk_version current -pout/soong/.intermediates/hardware/interfaces/common/fmq/aidl/android.hardware.common.fmq_interface/1/preprocessed.aidl -pout/soong/.intermediates/hardware/interfaces/common/aidl/android.hardware.common_interface/2/preprocessed.aidl --previous_api_dir=hardware/interfaces/power/aidl/aidl_api/android.hardware.power/5 --previous_hash d111735ed2b89b6c32443aac9b162b1afbbea3f2 --ninja -d out/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power-V6-ndk-source/gen/staging/android/hardware/power/WorkDurationFixedV1.cpp.d -h out/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power-V6-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/power/aidl/android.hardware.power-V6-ndk-source/gen/staging -Nhardware/interfaces/power/aidl hardware/interfaces/power/aidl/android/hardware/power/WorkDurationFixedV1.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 #ifdef BINDER_STABILITY_SUPPORT
20 #include <android/binder_stability.h>
21 #endif  // BINDER_STABILITY_SUPPORT
22 
23 namespace aidl {
24 namespace android {
25 namespace hardware {
26 namespace power {
27 class WorkDurationFixedV1 {
28 public:
29   typedef std::true_type fixed_size;
30   static const char* descriptor;
31 
32   int64_t durationNanos __attribute__((aligned (8))) = 0L;
33   int64_t workPeriodStartTimestampNanos __attribute__((aligned (8))) = 0L;
34   int64_t cpuDurationNanos __attribute__((aligned (8))) = 0L;
35   int64_t gpuDurationNanos __attribute__((aligned (8))) = 0L;
36 
37   binder_status_t readFromParcel(const AParcel* parcel);
38   binder_status_t writeToParcel(AParcel* parcel) const;
39 
40   inline bool operator==(const WorkDurationFixedV1& _rhs) const {
41     return std::tie(durationNanos, workPeriodStartTimestampNanos, cpuDurationNanos, gpuDurationNanos) == std::tie(_rhs.durationNanos, _rhs.workPeriodStartTimestampNanos, _rhs.cpuDurationNanos, _rhs.gpuDurationNanos);
42   }
43   inline bool operator<(const WorkDurationFixedV1& _rhs) const {
44     return std::tie(durationNanos, workPeriodStartTimestampNanos, cpuDurationNanos, gpuDurationNanos) < std::tie(_rhs.durationNanos, _rhs.workPeriodStartTimestampNanos, _rhs.cpuDurationNanos, _rhs.gpuDurationNanos);
45   }
46   inline bool operator!=(const WorkDurationFixedV1& _rhs) const {
47     return !(*this == _rhs);
48   }
49   inline bool operator>(const WorkDurationFixedV1& _rhs) const {
50     return _rhs < *this;
51   }
52   inline bool operator>=(const WorkDurationFixedV1& _rhs) const {
53     return !(*this < _rhs);
54   }
55   inline bool operator<=(const WorkDurationFixedV1& _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 << "WorkDurationFixedV1{";
63     _aidl_os << "durationNanos: " << ::android::internal::ToString(durationNanos);
64     _aidl_os << ", workPeriodStartTimestampNanos: " << ::android::internal::ToString(workPeriodStartTimestampNanos);
65     _aidl_os << ", cpuDurationNanos: " << ::android::internal::ToString(cpuDurationNanos);
66     _aidl_os << ", gpuDurationNanos: " << ::android::internal::ToString(gpuDurationNanos);
67     _aidl_os << "}";
68     return _aidl_os.str();
69   }
70 };
71 static_assert(offsetof(WorkDurationFixedV1, durationNanos) == 0);
72 static_assert(sizeof(int64_t) == 8);
73 static_assert(offsetof(WorkDurationFixedV1, workPeriodStartTimestampNanos) == 8);
74 static_assert(sizeof(int64_t) == 8);
75 static_assert(offsetof(WorkDurationFixedV1, cpuDurationNanos) == 16);
76 static_assert(sizeof(int64_t) == 8);
77 static_assert(offsetof(WorkDurationFixedV1, gpuDurationNanos) == 24);
78 static_assert(sizeof(int64_t) == 8);
79 static_assert(alignof(WorkDurationFixedV1) == 8);
80 static_assert(sizeof(WorkDurationFixedV1) == 32);
81 }  // namespace power
82 }  // namespace hardware
83 }  // namespace android
84 }  // namespace aidl
85