Respect max fps if specified in the request.

Sleep for appropriate amount of time before acquiring new image
from Surface in case acquiring image imediatelly would exceed max fps
specified by the request.

Bug: 338251124
Test: atest CtsVirtualDevicesCameraCtsTestCases:android.hardware.camera2.cts.CaptureRequestTest#testNoiseReductionModeControl[1]
Change-Id: I1ac504f05cef044b81a2531074e1bedd77412805
2 files changed