Adds hidl_array<T, SIZE1, SIZE...>::size() API

One-dimensional arrays "hidl_array<T, SIZE>" now have an accessor

    static size_t hidl_array<T, SIZE>::size();

that returns the size (number of elements) of the array,

multi-dimensional arrays "hidl_array<T, SIZE1, SIZE...> gain an accessor

    static tuple<size_t, ...> size()

that returns a tuple containing the sizes of each dimension.

Bug: 31805709
Test: hidl_test, hidl_test_java
Change-Id: I80e6cd4f8e506ed2dcffdbfba560983f6239a190
1 file changed