Test HARDWARE Bitmap access from NDK

Bug: 135133301
Test: This

Verify that the ANDROID_BITMAP_FLAGS_IS_HARDWARE is set properly for
HARDWARE and non-HARDWARE Bitmaps, even if recycled.

Verify that AndroidBitmap_getHardwareBuffer succeeds for a HARDWARE
Bitmap and fails for software, and fails if the Bitmap has been
recycled.

Expand testNullBitmap to test passing null for JNIEnv etc.

Use nValidateNdkAccessFails only for verifying failures in recycled
Bitmaps. Check that lockPixels fails for a HARDWARE Bitmap in nTestInfo.

Change-Id: I2c1e58c41e49c72fb4bdbc64989da103885d34bf
2 files changed