HIDL vectors are now exposed as ArrayLists rather than Vectors in Java.

Bug: 31749239
Test: hidl_test, hidl_test_java
Change-Id: I4dd705ac7962195e3107a67bd62e0c9154339e5b
diff --git a/VectorType.cpp b/VectorType.cpp
index 04a6ac3..adf7967 100644
--- a/VectorType.cpp
+++ b/VectorType.cpp
@@ -248,12 +248,12 @@
 
     const std::string wrapperType = mElementType->getJavaWrapperType();
 
-    out << "final Vector<"
+    out << "final ArrayList<"
         << wrapperType
         << extra
         << "> "
         << fieldName
-        << " = new Vector<"
+        << " = new ArrayList<"
         << wrapperType
         << extra
         << ">();\n";
@@ -405,7 +405,7 @@
             depth + 1,
             parcelName,
             "childBlob",
-            fieldName + ".elementAt(" + iteratorName + ")",
+            fieldName + ".get(" + iteratorName + ")",
             iteratorName + " * " + std::to_string(elementSize),
             false /* isReader */);