Commit graph

851 commits

Author SHA1 Message Date
Igor Murashkin
caf5614b44 am 5a6b76d2: (-s ours) am 2a5c0e2a: Camera2: Tests: Skip stream tests /w formats that are not available.: DO NOT MERGE
* commit '5a6b76d2ae1e6da5929a6f475fada31b280a2360':
  Camera2: Tests: Skip stream tests /w formats that are not available.: DO NOT MERGE
2013-01-11 10:54:08 -08:00
Igor Murashkin
0e397d3adb am be3b59c4: (-s ours) am ff4d762c: Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID: DO NOT MERGE
* commit 'be3b59c46e1fd6050bcc743202fcd6d109125701':
  Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID: DO NOT MERGE
2013-01-11 10:54:08 -08:00
Igor Murashkin
02b7d5ee72 am 3739a345: (-s ours) am afdd2b62: Camera2: Add a test for bursting 10 frames at a time /w manual exp controls: DO NOT MERGE
* commit '3739a345b688e89ae28145683c50590cc168b480':
  Camera2: Add a test for bursting 10 frames at a time /w manual exp controls: DO NOT MERGE
2013-01-11 10:54:07 -08:00
Igor Murashkin
cf19b88cab am 16e5a644: (-s ours) am 4ac84a42: Camera2: Tests: Future-alias select metadata symbols: DO NOT MERGE
* commit '16e5a6440f54b396219315bc27f49f103083393b':
  Camera2: Tests: Future-alias select metadata symbols: DO NOT MERGE
2013-01-11 10:54:06 -08:00
Igor Murashkin
6797445d55 am f6892043: (-s ours) am 919cf643: Camera2: Tests -- Fork each test before executing it: DO NOT MERGE
* commit 'f68920430b5dd669f89e9a0f74b095229fddf42c':
  Camera2: Tests -- Fork each test before executing it: DO NOT MERGE
2013-01-11 10:54:04 -08:00
Igor Murashkin
d18541862e am 4c4b2a91: (-s ours) am 7e38f5fa: Camera2: Automated tests for testing HAL2.0 interface: DO NOT MERGE
* commit '4c4b2a9120c59ed8172a0e94b4410e8f5c3143e3':
  Camera2: Automated tests for testing HAL2.0 interface: DO NOT MERGE
2013-01-11 10:54:03 -08:00
Igor Murashkin
5a6b76d2ae am 2a5c0e2a: Camera2: Tests: Skip stream tests /w formats that are not available.: DO NOT MERGE
* commit '2a5c0e2a466fe5252cd12c0199d4868efcc83264':
  Camera2: Tests: Skip stream tests /w formats that are not available.: DO NOT MERGE
2013-01-10 13:37:11 -08:00
Igor Murashkin
be3b59c46e am ff4d762c: Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID: DO NOT MERGE
* commit 'ff4d762c34e2f785a01f7d2253d746d0bcdc7aa4':
  Camera2: Tests: Add CLI arguments for disabling forking and changing camera ID: DO NOT MERGE
2013-01-10 13:37:11 -08:00
Igor Murashkin
3739a345b6 am afdd2b62: Camera2: Add a test for bursting 10 frames at a time /w manual exp controls: DO NOT MERGE
* commit 'afdd2b621140f90c2df1a161ed36e42caa2d26da':
  Camera2: Add a test for bursting 10 frames at a time /w manual exp controls: DO NOT MERGE
2013-01-10 13:37:10 -08:00
Igor Murashkin
16e5a6440f am 4ac84a42: Camera2: Tests: Future-alias select metadata symbols: DO NOT MERGE
* commit '4ac84a428d05ce7963f201df7ca308acb88fd8d8':
  Camera2: Tests: Future-alias select metadata symbols: DO NOT MERGE
2013-01-10 13:37:09 -08:00
Igor Murashkin
f68920430b am 919cf643: Camera2: Tests -- Fork each test before executing it: DO NOT MERGE
* commit '919cf643730fe7aacbbbaf014f2dfbf47521ecfa':
  Camera2: Tests -- Fork each test before executing it: DO NOT MERGE
2013-01-10 13:37:08 -08:00
Igor Murashkin
4c4b2a9120 am 7e38f5fa: Camera2: Automated tests for testing HAL2.0 interface: DO NOT MERGE
* commit '7e38f5faac9a8404bd13ea02cf136f1a69443715':
  Camera2: Automated tests for testing HAL2.0 interface: DO NOT MERGE
2013-01-10 13:37:07 -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