DO NOT MERGE: Camera: Adjust pointers to ANW buffers to avoid infoleak

Subtract address of a random static object from pointers being routed
through app process.

Bug: 28466701
Change-Id: Idcbfe81e9507433769672f3dc6d67db5eeed4e04

static void getSupportedVideoSizes(
 const CameraParameters& params,
 bool *isSetVideoSizeSupported,
 Vector<Size>& sizes) {

 *isSetVideoSizeSupported = true;
    params.getSupportedVideoSizes(sizes);
 if (sizes.size() == 0) {
        ALOGD("Camera does not support setVideoSize()");
        params.getSupportedPreviewSizes(sizes);
 *isSetVideoSizeSupported = false;
 }
}

static void getSupportedVideoSizes(
 const CameraParameters& params,
 bool *isSetVideoSizeSupported,
 Vector<Size>& sizes) {

 *isSetVideoSizeSupported = true;
    params.getSupportedVideoSizes(sizes);
 if (sizes.size() == 0) {
        ALOGD("Camera does not support setVideoSize()");
        params.getSupportedPreviewSizes(sizes);
 *isSetVideoSizeSupported = false;
 }
}
