Pass Error Status to ScreenCapture

Changed the consumers in android_window_ScreenCapture and ScreenCapture
into ObjIntConsumer so the error status can be passed as
ScreenCaptureListener from the C++ side to the Java side.

Bug: 287081404
Test: atest layerScreenshot
Change-Id: Ic151160230f5310560fc33d4a9ba414a1f531138
3 files changed