API check: Only check calls and field accesses, not declarations

It appears Dalvik is very forgiving and doesn't try to preload classes
until actually needed, so there is no need to flag variable and field
declarations, and in fact, patterns used for supporting new and old
versions sometimes declares these methods and only conditionally end
up actually accessing methods and fields, so only check method and
field accesses.

Also fix lint such that it doesn't flag XML resource warnings for
tools URI namespace elements, such as ListView preview layout
selections.

Change-Id: I9018a64845b5b29744926e3d0be371801bbdd167
2 files changed