Support generic buffers in EmulatedFakeCamera3

When we're using a gralloc HAL other than the goldfish version (e.g.
gralloc.default, which gralloc.goldfish will fall back on), we
are not given cb_handle_t.  Check for this and fall back appropriately.

Bug: 26936651
Test: brilloemulator stops complaining about a format of 0.

Change-Id: I7a84c775ee6c49e23c82afb8f8b1f490505a55c5
1 file changed