Verify preview size parameters in emulated camera

The camera preview size cannot have a negative width or height. Return
an error code if the caller attempts to set a negative value.

BUG: 30700822

Test: ran camera CTS tests
Change-Id: I90a0afc8ee5dce006b93cbce002029f80c4042e0
(cherry picked from commit db6633937b79829da23a9f22d91cd1be98001f3d)
1 file changed