1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl --lang=ndk --structured --version 1 --hash cb628c69682659911bca5c1d04042adba7f0de4b -t --stability vintf --min_sdk_version current --ninja -d out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/staging/android/hardware/usb/gadget/GadgetFunction.cpp.d -h out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/include/staging -o out/soong/.intermediates/hardware/interfaces/usb/gadget/aidl/android.hardware.usb.gadget-V1-ndk-source/gen/staging -Nhardware/interfaces/usb/gadget/aidl/aidl_api/android.hardware.usb.gadget/1 hardware/interfaces/usb/gadget/aidl/aidl_api/android.hardware.usb.gadget/1/android/hardware/usb/gadget/GadgetFunction.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 usb { 27 namespace gadget { 28 class GadgetFunction { 29 public: 30 typedef std::false_type fixed_size; 31 static const char* descriptor; 32 33 34 binder_status_t readFromParcel(const AParcel* parcel); 35 binder_status_t writeToParcel(AParcel* parcel) const; 36 37 inline bool operator==(const GadgetFunction&) const { 38 return std::tie() == std::tie(); 39 } 40 inline bool operator<(const GadgetFunction&) const { 41 return std::tie() < std::tie(); 42 } 43 inline bool operator!=(const GadgetFunction& _rhs) const { 44 return !(*this == _rhs); 45 } 46 inline bool operator>(const GadgetFunction& _rhs) const { 47 return _rhs < *this; 48 } 49 inline bool operator>=(const GadgetFunction& _rhs) const { 50 return !(*this < _rhs); 51 } 52 inline bool operator<=(const GadgetFunction& _rhs) const { 53 return !(_rhs < *this); 54 } 55 56 static const ::ndk::parcelable_stability_t _aidl_stability = ::ndk::STABILITY_VINTF; 57 enum : int64_t { NONE = 0L }; 58 enum : int64_t { ADB = 1L }; 59 enum : int64_t { ACCESSORY = 2L }; 60 enum : int64_t { MTP = 4L }; 61 enum : int64_t { MIDI = 8L }; 62 enum : int64_t { PTP = 16L }; 63 enum : int64_t { RNDIS = 32L }; 64 enum : int64_t { AUDIO_SOURCE = 64L }; 65 enum : int64_t { UVC = 128L }; 66 enum : int64_t { NCM = 1024L }; toString()67 inline std::string toString() const { 68 std::ostringstream _aidl_os; 69 _aidl_os << "GadgetFunction{"; 70 _aidl_os << "}"; 71 return _aidl_os.str(); 72 } 73 }; 74 } // namespace gadget 75 } // namespace usb 76 } // namespace hardware 77 } // namespace android 78 } // namespace aidl 79