Loading tests/expression/1.0/IExpressionExt.hal +3 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,9 @@ interface IExpressionExt { ENUM_BEST = android.hardware.tests.expression@1.0::IExpression.Constants:CONST_BAR, }; typedef Color[((Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8) >> 1] SixteenColors; typedef Constants AlsoConstants; typedef Color[((Constants:MAX_ARRAY_SIZE << 1) - (AlsoConstants:CONST_FOO + 1)*8) >> 1] SixteenColors; struct ArrayOfColors { Color[(Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8] my32Colors; // 32 }; Loading tests/foo/1.0/types.hal +27 −0 Original line number Diff line number Diff line Loading @@ -38,3 +38,30 @@ struct Outer { struct Unrelated { Outer.Inner great; }; // structs to test enum iterators in hidl_test struct EnumIterators { enum Empty : uint32_t {}; enum Parent : uint32_t { A, }; enum EmptyChild : Parent {}; enum Grandchild : EmptyChild { B, }; enum SkipsValues : uint32_t { A = 7, B, C = 100, D, E }; enum MultipleValues : uint32_t { A = 7, B = 7, C = 8, D = 7, }; }; No newline at end of file Loading
tests/expression/1.0/IExpressionExt.hal +3 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,9 @@ interface IExpressionExt { ENUM_BEST = android.hardware.tests.expression@1.0::IExpression.Constants:CONST_BAR, }; typedef Color[((Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8) >> 1] SixteenColors; typedef Constants AlsoConstants; typedef Color[((Constants:MAX_ARRAY_SIZE << 1) - (AlsoConstants:CONST_FOO + 1)*8) >> 1] SixteenColors; struct ArrayOfColors { Color[(Constants:MAX_ARRAY_SIZE << 1) - (Constants:CONST_FOO + 1)*8] my32Colors; // 32 }; Loading
tests/foo/1.0/types.hal +27 −0 Original line number Diff line number Diff line Loading @@ -38,3 +38,30 @@ struct Outer { struct Unrelated { Outer.Inner great; }; // structs to test enum iterators in hidl_test struct EnumIterators { enum Empty : uint32_t {}; enum Parent : uint32_t { A, }; enum EmptyChild : Parent {}; enum Grandchild : EmptyChild { B, }; enum SkipsValues : uint32_t { A = 7, B, C = 100, D, E }; enum MultipleValues : uint32_t { A = 7, B = 7, C = 8, D = 7, }; }; No newline at end of file