Introduce hidl_bitfield. am: a675212885
am: 16bc252940

Change-Id: If77c76f54e6435061cd696c2f257064e08b703c8
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