Generate an error when exporting RS objects in structs/arrays.
BUG=6009244
Note that this error triggers when the following conditions are met:
1) We are running with a pre-JB target API.
2) We detect an RS object type inside another composite (struct/array) type.
3) The variable is going to be exported (i.e. non-static).
4) The variable must also be of a non-pointer type, since pointers only
reflect a bind() routine that does not use FieldPacker.
Change-Id: Id7ca47a4affed2a8774d1c9644e11d4ab02ff27f
6 files changed