Merge "Camera: Fix tests per camera service interface change"

This commit is contained in:
Yin-Chia Yeh 2015-03-19 17:27:27 +00:00 committed by Android (Google) Code Review
commit 147814cd4c
3 changed files with 5 additions and 2 deletions

View file

@ -1540,7 +1540,9 @@ typedef struct camera3_stream {
* with stream width and height. For example, if the rotation is 90 degree
* and the stream width and height is 720 and 1280 respectively, camera service
* will supply buffers of size 720x1280, and HAL should capture a 1280x720 image
* and rotate the image by 90 degree counterclockwise.
* and rotate the image by 90 degree counterclockwise. The rotation field is
* no-op when the stream type is input. Camera HAL must ignore the rotation
* field for an input stream.
*
* <= CAMERA_DEVICE_API_VERSION_3_2:
*

View file

@ -209,7 +209,7 @@ public:
ASSERT_EQ(OK,
mDevice->createStream(mNativeWindow,
mWidth, mHeight, mFormat, HAL_DATASPACE_UNKNOWN,
&mStreamId));
CAMERA3_STREAM_ROTATION_0, &mStreamId));
ASSERT_NE(-1, mStreamId);
}

View file

@ -258,6 +258,7 @@ protected:
device->createStream(mNativeWindow,
mWidth, mHeight, format,
HAL_DATASPACE_UNKNOWN,
CAMERA3_STREAM_ROTATION_0,
&mStreamId));
ASSERT_NE(-1, mStreamId);