1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=cpp -Weverything -Wno-missing-permission-annotation -t --min_sdk_version current --ninja -d out/soong/.intermediates/system/gsid/gsi_aidl_interface-cpp-source/gen/staging/android/gsi/GsiProgress.cpp.d -h out/soong/.intermediates/system/gsid/gsi_aidl_interface-cpp-source/gen/include/staging -o out/soong/.intermediates/system/gsid/gsi_aidl_interface-cpp-source/gen/staging -Nsystem/gsid/aidl system/gsid/aidl/android/gsi/GsiProgress.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 <android/binder_to_string.h> 12 #include <binder/Parcel.h> 13 #include <binder/Status.h> 14 #include <cstdint> 15 #include <string> 16 #include <tuple> 17 #include <utils/String16.h> 18 19 namespace android { 20 namespace gsi { 21 class LIBBINDER_EXPORTED GsiProgress : public ::android::Parcelable { 22 public: 23 ::std::string step; 24 int32_t status = 0; 25 int64_t bytes_processed = 0L; 26 int64_t total_bytes = 0L; 27 inline bool operator==(const GsiProgress& _rhs) const { 28 return std::tie(step, status, bytes_processed, total_bytes) == std::tie(_rhs.step, _rhs.status, _rhs.bytes_processed, _rhs.total_bytes); 29 } 30 inline bool operator<(const GsiProgress& _rhs) const { 31 return std::tie(step, status, bytes_processed, total_bytes) < std::tie(_rhs.step, _rhs.status, _rhs.bytes_processed, _rhs.total_bytes); 32 } 33 inline bool operator!=(const GsiProgress& _rhs) const { 34 return !(*this == _rhs); 35 } 36 inline bool operator>(const GsiProgress& _rhs) const { 37 return _rhs < *this; 38 } 39 inline bool operator>=(const GsiProgress& _rhs) const { 40 return !(*this < _rhs); 41 } 42 inline bool operator<=(const GsiProgress& _rhs) const { 43 return !(_rhs < *this); 44 } 45 46 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 47 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()48 static const ::android::String16& getParcelableDescriptor() { 49 static const ::android::StaticString16 DESCRIPTOR (u"android.gsi.GsiProgress"); 50 return DESCRIPTOR; 51 } toString()52 inline std::string toString() const { 53 std::ostringstream _aidl_os; 54 _aidl_os << "GsiProgress{"; 55 _aidl_os << "step: " << ::android::internal::ToString(step); 56 _aidl_os << ", status: " << ::android::internal::ToString(status); 57 _aidl_os << ", bytes_processed: " << ::android::internal::ToString(bytes_processed); 58 _aidl_os << ", total_bytes: " << ::android::internal::ToString(total_bytes); 59 _aidl_os << "}"; 60 return _aidl_os.str(); 61 } 62 }; // class GsiProgress 63 } // namespace gsi 64 } // namespace android 65