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/apex/apexd/apex_aidl_interface-cpp-source/gen/staging/android/apex/ApexSessionInfo.cpp.d -h out/soong/.intermediates/system/apex/apexd/apex_aidl_interface-cpp-source/gen/include/staging -o out/soong/.intermediates/system/apex/apexd/apex_aidl_interface-cpp-source/gen/staging -Nsystem/apex/apexd/aidl system/apex/apexd/aidl/android/apex/ApexSessionInfo.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 apex { 21 class LIBBINDER_EXPORTED ApexSessionInfo : public ::android::Parcelable { 22 public: 23 int32_t sessionId = 0; 24 bool isUnknown = false; 25 bool isVerified = false; 26 bool isStaged = false; 27 bool isActivated = false; 28 bool isRevertInProgress = false; 29 bool isActivationFailed = false; 30 bool isSuccess = false; 31 bool isReverted = false; 32 bool isRevertFailed = false; 33 ::std::string crashingNativeProcess; 34 ::std::string errorMessage; 35 inline bool operator==(const ApexSessionInfo& _rhs) const { 36 return std::tie(sessionId, isUnknown, isVerified, isStaged, isActivated, isRevertInProgress, isActivationFailed, isSuccess, isReverted, isRevertFailed, crashingNativeProcess, errorMessage) == std::tie(_rhs.sessionId, _rhs.isUnknown, _rhs.isVerified, _rhs.isStaged, _rhs.isActivated, _rhs.isRevertInProgress, _rhs.isActivationFailed, _rhs.isSuccess, _rhs.isReverted, _rhs.isRevertFailed, _rhs.crashingNativeProcess, _rhs.errorMessage); 37 } 38 inline bool operator<(const ApexSessionInfo& _rhs) const { 39 return std::tie(sessionId, isUnknown, isVerified, isStaged, isActivated, isRevertInProgress, isActivationFailed, isSuccess, isReverted, isRevertFailed, crashingNativeProcess, errorMessage) < std::tie(_rhs.sessionId, _rhs.isUnknown, _rhs.isVerified, _rhs.isStaged, _rhs.isActivated, _rhs.isRevertInProgress, _rhs.isActivationFailed, _rhs.isSuccess, _rhs.isReverted, _rhs.isRevertFailed, _rhs.crashingNativeProcess, _rhs.errorMessage); 40 } 41 inline bool operator!=(const ApexSessionInfo& _rhs) const { 42 return !(*this == _rhs); 43 } 44 inline bool operator>(const ApexSessionInfo& _rhs) const { 45 return _rhs < *this; 46 } 47 inline bool operator>=(const ApexSessionInfo& _rhs) const { 48 return !(*this < _rhs); 49 } 50 inline bool operator<=(const ApexSessionInfo& _rhs) const { 51 return !(_rhs < *this); 52 } 53 54 ::android::status_t readFromParcel(const ::android::Parcel* _aidl_parcel) final; 55 ::android::status_t writeToParcel(::android::Parcel* _aidl_parcel) const final; getParcelableDescriptor()56 static const ::android::String16& getParcelableDescriptor() { 57 static const ::android::StaticString16 DESCRIPTOR (u"android.apex.ApexSessionInfo"); 58 return DESCRIPTOR; 59 } toString()60 inline std::string toString() const { 61 std::ostringstream _aidl_os; 62 _aidl_os << "ApexSessionInfo{"; 63 _aidl_os << "sessionId: " << ::android::internal::ToString(sessionId); 64 _aidl_os << ", isUnknown: " << ::android::internal::ToString(isUnknown); 65 _aidl_os << ", isVerified: " << ::android::internal::ToString(isVerified); 66 _aidl_os << ", isStaged: " << ::android::internal::ToString(isStaged); 67 _aidl_os << ", isActivated: " << ::android::internal::ToString(isActivated); 68 _aidl_os << ", isRevertInProgress: " << ::android::internal::ToString(isRevertInProgress); 69 _aidl_os << ", isActivationFailed: " << ::android::internal::ToString(isActivationFailed); 70 _aidl_os << ", isSuccess: " << ::android::internal::ToString(isSuccess); 71 _aidl_os << ", isReverted: " << ::android::internal::ToString(isReverted); 72 _aidl_os << ", isRevertFailed: " << ::android::internal::ToString(isRevertFailed); 73 _aidl_os << ", crashingNativeProcess: " << ::android::internal::ToString(crashingNativeProcess); 74 _aidl_os << ", errorMessage: " << ::android::internal::ToString(errorMessage); 75 _aidl_os << "}"; 76 return _aidl_os.str(); 77 } 78 }; // class ApexSessionInfo 79 } // namespace apex 80 } // namespace android 81