Commit graph

944 commits

Author SHA1 Message Date
Igor Murashkin
2dc781d20e Camera2: Tests: ModuleTests should not return OK for bad indices: DO NOT MERGE
Change-Id: Ie2a0558104c13fe881d90ababf66a54f810f12aa
2013-01-10 11:46:23 -08:00
Igor Murashkin
2d3c3e1455 Camera2: Tests: Fix Camera2Test to be correct: DO NOT MERGE
- Requests were missing control type (capture vs reprocess)
- Not waiting for streams to be drained before disconnecting (sporadic fails)

Change-Id: Icaf88287344e98138b22afcd14b9f1878cdffa47
2013-01-10 11:46:20 -08:00
Igor Murashkin
f32c9ea6df Camera2: Tests: Ignore V1 device initialization failures.: DO NOT MERGE
This allows CameraModuleTests.LoadModule and GetCameraInfo to pass.

Change-Id: I0489ef996b5caf3e97bb71ef8c2502b0ee4d7ec3
2013-01-10 11:46:16 -08:00
Igor Murashkin
1f51808ad1 Camera2: Tests: Fix CameraFrameTests to pass instead of failing and hanging.: DO NOT MERGE
Producer would wait for buffers to be released so it could dequeue into them.
Since the test never acquired/released buffers, it would run out, and then
the HAL would deadlock when trying to shutdown since the producing thread
would never finish.

Change-Id: I123f36d87a2e72a2c42d942c975c02b8bd3f9f1a
2013-01-10 11:46:11 -08:00
Igor Murashkin
d887503095 Camera2: Tests: Release streams after HAL is unloaded: DO NOT MERGE
This fixes a segfault in the HAL where it was trying to write to a locked buffer
that disappeared from underneath it.

Any users of CameraModuleFixture should now call SetUp/TearDown explicitly.
Other classes remain unchanged until we need a custom TearDown order for them.

Change-Id: Ia2dc3ac3e2497d9ede9b580f6e10cf9ec646bdab
2013-01-10 11:46:06 -08:00
Igor Murashkin
2a5c0e2a46 Camera2: Tests: Skip stream tests /w formats that are not available.: DO NOT MERGE
Change-Id: I0c0d6c639ee3b0fe625d0888cca4486da9e2bb98
2013-01-10 11:45:56 -08:00
Igor Murashkin
ff4d762c34 Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID: DO NOT MERGE
Change-Id: I3c9133f74ef88dfdf10eb2c28760fc4acba8eb2f
2013-01-10 11:45:53 -08:00
Igor Murashkin
afdd2b6211 Camera2: Add a test for bursting 10 frames at a time /w manual exp controls: DO NOT MERGE
Change-Id: Ib7c706a0d1f2d917d01397efe55b7e45035cb252
2013-01-10 11:45:51 -08:00
Igor Murashkin
4ac84a428d Camera2: Tests: Future-alias select metadata symbols: DO NOT MERGE
Change-Id: I4010311d32a9c57790653b6c4ef0f51bfe24f853
2013-01-10 11:45:47 -08:00
Igor Murashkin
919cf64373 Camera2: Tests -- Fork each test before executing it: DO NOT MERGE
Use CAMERA2_TEST_FORKING_DISABLED=1 environment variable to override this
behavior (e.g. when wanting to attach gdb to the test app).

Change-Id: I3696243825901e5c7a7e4d0515831e76ae47ef4f
2013-01-10 11:45:43 -08:00
Igor Murashkin
7e38f5faac Camera2: Automated tests for testing HAL2.0 interface: DO NOT MERGE
Change-Id: If5c922a0c0139b90c4781f022d80f7b9a0932e9e
2013-01-10 11:45:38 -08:00
Alex Ray
ed6b8a7710 modules: camera: Add tracing
Change-Id: I00ee447e6b57bc57fd09b6e7d8c62cb07cb37cf0
2013-01-03 21:06:27 -08:00
Alex Ray
a48dd3fb34 modules: camera: Defer documenting API
Avoid duplicating the api docs in the example HAL, instead point to
canonical source for them.

Change-Id: If3f5acb7a73260248bd00ce01cb1c80f230f7188
2013-01-03 21:06:17 -08:00
Jean-Michel Trivi
2fb1aab256 Merge "Use strong pointers and scope" 2012-12-26 09:12:18 -08:00
Jean-Michel Trivi
eafbfa4058 Use strong pointers and scope
Rely on strong pointers and scope rather than the more error prone
 incStrong / decStrong approach which can cause object leaks.
No change in functionality.

Change-Id: I1bfc7f0cdeeac022e4120482cd3521e52ffea94e
2012-12-21 12:24:58 -08:00
Igor Murashkin
e9b0eaaec6 Camera2: Tests: ModuleTests should not return OK for bad indices
Change-Id: Ia7a199d091edb4054dcd2d7164e57b3b653c5a64
2012-12-20 17:11:56 -08:00
Igor Murashkin
599b76fec7 Camera2: Tests: Fix Camera2Test to be correct.
- Requests were missing control type (capture vs reprocess)
- Not waiting for streams to be drained before disconnecting (sporadic fails)

Change-Id: Iab218b89a663db6dc26d791a390d0e11667f6889
2012-12-20 16:39:44 -08:00
Igor Murashkin
0a7a430a81 Camera2: Tests: Ignore V1 device initialization failures.
This allows CameraModuleTests.LoadModule and GetCameraInfo to pass.

Change-Id: Id6e38afc6d9c5d45933d3117c7895775a30ee679
2012-12-20 16:39:38 -08:00
Igor Murashkin
981c903c31 Camera2: Tests: Fix CameraFrameTests to pass instead of failing and hanging.
Producer would wait for buffers to be released so it could dequeue into them.
Since the test never acquired/released buffers, it would run out, and then
the HAL would deadlock when trying to shutdown since the producing thread
would never finish.

Change-Id: I4222feeec7a3ffab4c243e12b7d9bd56364ad983
2012-12-20 16:35:47 -08:00
Igor Murashkin
7acb21a65c Camera2: Tests: Release streams after HAL is unloaded
This fixes a segfault in the HAL where it was trying to write to a locked buffer
that disappeared from underneath it.

Any users of CameraModuleFixture should now call SetUp/TearDown explicitly.
Other classes remain unchanged until we need a custom TearDown order for them.

Change-Id: I9aa8c2d86492a76f2c01c1ad4cbe0cf91e5c7916
2012-12-20 16:35:47 -08:00
Andy McFadden
1da4d3e377 Merge "Rename ISurfaceTexture and SurfaceTexture" 2012-12-18 15:21:32 -08:00
Igor Murashkin
ea52a919e8 Merge "Camera2: Tests: Skip stream tests /w formats that are not available." 2012-12-18 14:49:49 -08:00
Igor Murashkin
98f324aeca Merge "Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID" 2012-12-18 14:49:31 -08:00
Igor Murashkin
02f3ac0189 Camera2: Tests: Skip stream tests /w formats that are not available.
Change-Id: I187ca983010483d1cb3ac951da2aa8b886828ef7
2012-12-18 11:30:09 -08:00
Igor Murashkin
00b597f428 Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID
Change-Id: I0adfda42e861d7e5a85801f7e0c3f0b3950b6e0e
2012-12-18 11:30:04 -08:00
Andy McFadden
eda79df3c7 Rename ISurfaceTexture and SurfaceTexture
The C++ class names don't match what the classes do, so rename
ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to
GLConsumer.

Bug 7736700

Change-Id: I7fc8474c1d0d95658609b69cdb0af412d69a42c4
2012-12-18 09:50:24 -08:00
Igor Murashkin
459afa7fb5 Merge "Camera2: Add a test for bursting 10 frames at a time /w manual exp controls" 2012-12-12 12:48:27 -08:00
Andrew Hsieh
1082c0b54c Fix build
Change-Id: Iaf3bba12e3f34d351890320b25aa340e75c1972c
2012-12-11 20:51:41 -08:00
Mathias Agopian
a455772cb3 sensor HAL major revision
mainly update the documentation, add new sensor types
and add a batch mode.

- TYPE_PEDOMETER, defines a pedometer sensor
- TYPE_SIGNIFICANT_MOTION, defines a sensor that triggers an
  event when the device is moving "enough". This sensor must allow
  the SoC to go into suspend, while it is enabled.
- TYPE_STEP_COUNTER, defines a pedometer but returns a step count
  (and looses precise timestamps, per step).

Change-Id: I3e20ff165851b7cb318f3c6637a6580de156b8fe
2012-12-10 18:45:08 -08:00
Igor Murashkin
f1b9ae7033 Camera2: Add a test for bursting 10 frames at a time /w manual exp controls
Change-Id: Idc1a3ebb26d0e189a543435f7f9be5f6376963d6
2012-12-10 15:01:59 -08:00
Greg Hackmann
d6f7aad8de Fix GRALLOC_USAGE_SW_WRITE flag documentation
Change-Id: Ie553c521290358bf37c6954f65f790162aa43730
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2012-12-07 10:39:11 -08:00
Kenny Root
39e03be075 am 1769442f: am e847651d: Merge "All tests should fail immediate to avoid SEGV"
* commit '1769442facb751a00a80959d492bc7f4797da4f2':
  All tests should fail immediate to avoid SEGV
2012-12-05 08:25:36 -08:00
Igor Murashkin
bb39e1769e Merge "Camera2: Fix metadata symbols" 2012-12-04 16:54:52 -08:00
Kenny Root
1769442fac am e847651d: Merge "All tests should fail immediate to avoid SEGV"
* commit 'e847651d45a1dd76004145d35346806acc6ef403':
  All tests should fail immediate to avoid SEGV
2012-12-04 15:35:52 -08:00
Kenny Root
e847651d45 Merge "All tests should fail immediate to avoid SEGV" 2012-12-04 14:42:04 -08:00
Kenny Root
139d44f26d All tests should fail immediate to avoid SEGV
Change-Id: I7ec2861c079357b708cb6242f0171672afd55e02
2012-12-04 14:36:50 -08:00
Igor Murashkin
09ad0a3edb Camera2: Fix metadata symbols
Change-Id: I5d7c8416b8ed8effca699aa9e51068f5678927ea
2012-12-03 13:33:08 -08:00
Igor Murashkin
9c78f43b7a Merge "Camera2: Tests -- Fork each test before executing it" 2012-11-29 09:54:17 -08:00
Alex Ray
7ee0b7aac2 Reference Camera v2 HAL Implementation
This is meant to be an example and a reference for device manufacturers
on how to build a new Camera v2 HAL.  This first patch has basic
configuration and entry/exit.

Change-Id: Ib4166e2eadb813228af38ec31a1215940c070bbf
2012-11-28 12:35:29 -08:00
Igor Murashkin
eab33fc589 Camera2: Tests -- Fork each test before executing it
Use CAMERA2_TEST_FORKING_DISABLED=1 environment variable to override this
behavior (e.g. when wanting to attach gdb to the test app).

Change-Id: Ib639885bdb827fc2415c878cbcb1b2d84dff687b
2012-11-27 11:38:06 -08:00
Mathias Agopian
2a4caa5856 am 65b35c04: am 48697f6d: Fix HWC documentation.
* commit '65b35c047433a413617a877d9785d36c9da4b612':
  Fix HWC documentation.
2012-11-20 15:41:25 -08:00
Mathias Agopian
65b35c0474 am 48697f6d: Fix HWC documentation.
* commit '48697f6dc249d1238243677de77d3a0eb6a17b3f':
  Fix HWC documentation.
2012-11-20 15:39:48 -08:00
Mathias Agopian
48697f6dc2 Fix HWC documentation.
Specify more clearly the behavior of compositionType
and hints.

Change-Id: I9abdccedd904b2fba783381bf9e2f8975ede8d67
2012-11-20 15:23:25 -08:00
Mathias Agopian
56f66ccfb4 Add support for new sensor types
- add support for SENSOR_TYPE_MAGNETIC_FIELD_UNCALIBRATED
- add support for SENSOR_TYPE_GAME_ROTATION_VECTOR
- add support for SENSOR_TYPE_GYROSCOPE_UNCALIBRATED

Change-Id: I83048eb239d2123b5ec1f411b99f1883080a646f
2012-11-12 17:17:32 -08:00
Igor Murashkin
192e51c92a Merge "Camera2: Automated tests for testing HAL2.0 interface" 2012-11-06 13:30:26 -08:00
The Android Open Source Project
4c43900ec4 am 3a49cd8b: (-s ours) am bdcf8251: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit '3a49cd8b15a854ef18aae96a8f32dcd403aa81a8':
2012-11-06 12:27:28 -08:00
The Android Open Source Project
3a49cd8b15 am bdcf8251: Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
* commit 'bdcf82513c64690ee0de6a791fdf07b005ebd43d':
2012-11-06 12:24:27 -08:00
The Android Open Source Project
bdcf82513c Reconcile with jb-mr1-factory-release jb-mr1-release - do not merge
Change-Id: Ibadcd642e060d8b828b13f7c748f0dfddf751906
2012-11-06 12:17:39 -08:00
Igor Murashkin
e302ee3dd3 Camera2: Automated tests for testing HAL2.0 interface
Change-Id: I1f1afd5afc346d5493d5019af35c3026efcf19b5
2012-11-06 11:31:01 -08:00
Glenn Kasten
430ac66690 Fix build
Change-Id: I17094052b67f2069d80ea140442e5a969bd4e96f
2012-11-02 11:16:13 -07:00