Change preview callback to one-shot version.

The preview callback might be called multiple times. Each time the callback is called, camera is
released. The callback might be called again since there is still frame available before the camera
is connected, the test crashes.

bug:5534460
Change-Id: If51a6cb6c6e4bf68207c3559ca5dbf54bea01ad8
1 file changed