Introduce hidl_bitfield.
am: a675212885

Change-Id: I128dc125a9dc3b09174b7ebb24cd032748aaf15d
diff --git a/base/include/hidl/HidlSupport.h b/base/include/hidl/HidlSupport.h
index 5cda20a..f09eb63 100644
--- a/base/include/hidl/HidlSupport.h
+++ b/base/include/hidl/HidlSupport.h
@@ -990,6 +990,12 @@
 template <typename>
 struct hidl_enum_iterator;
 
+/**
+ * Bitfields in HIDL are the underlying type of the enumeration.
+ */
+template <typename Enum>
+using hidl_bitfield = typename std::underlying_type<Enum>::type;
+
 }  // namespace hardware
 }  // namespace android