Support APIs for arrays of interfaces am: 3b31ccac97 am: 56bdf28ac3

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1878148

Change-Id: I5b41fc66776b5563af7e0cc5e3a35dcd6540288d