summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* | am ee37c3a8: am 63b64337: Add larger RSA key sizesBrian Carlstrom2013-05-141-1/+1
|\ \ | |/ | | | | | | * commit 'ee37c3a845ea1de5508ad3059457117170a8e5d5': Add larger RSA key sizes
| * Add larger RSA key sizesBrian Carlstrom2013-05-141-1/+1
| | | | | | | | | | Bug: 8734191 Change-Id: I82413505b32d5cdd2c4330c63d5f66e6b7e34634
* | am 03fa29db: am eca8b3cd: keymaster_test: simulate binder pagesKenny Root2013-04-301-30/+160
|\ \ | |/ | | | | | | * commit '03fa29dbc6a0048c98de22444f5d686b1bb9eb06': keymaster_test: simulate binder pages
| * keymaster_test: simulate binder pagesKenny Root2013-04-271-30/+160
| | | | | | | | | | | | | | | | Make sure pages we use in the unit tests are read-only maps from /dev/zero Bug: 8736730 Change-Id: I15d816a8fd3dd7313277c9f5c44c4a102a899d03
* | am a3f1b92b: am 29156e43: Merge "Make raw tests optional, add sanity checks ↵Igor Murashkin2013-04-192-1/+85
|\ \ | |/ | | | | | | | | | | for format/resolutions static info." into jb-mr2-dev * commit 'a3f1b92b774c07bcbd9437142718d8faa99ba4c2': Make raw tests optional, add sanity checks for format/resolutions static info.
| * Make raw tests optional, add sanity checks for format/resolutions static info.Igor Murashkin2013-04-182-1/+85
| | | | | | | | | | Bug: 8654456 Change-Id: Iadd0d3c326d595dce2822a9bd3ff33ce8e8f6a36
* | am 3589c0ef: am 827e137b: Merge "Update the test output path." into jb-mr2-devYu Shan Emily Lau2013-04-141-1/+1
|\ \ | |/ | | | | | | * commit '3589c0ef736e3e5f0ee07f756cd83a5f7c281236': Update the test output path.
| * Merge "Update the test output path." into jb-mr2-devYu Shan Emily Lau2013-04-151-1/+1
| |\
| | * Update the test output path.Yu Shan Emily Lau2013-04-121-1/+1
| | | | | | | | | | | | | | | | | | | | | In order for the automated test to pick up the test. The output must be in /data/nativetest. Change-Id: I453805a1d186fec014e34b3d37a1e8bc62b2a5ac
* | | am 27067356: am 9003b113: Add liblogYing Wang2013-04-091-0/+1
|\ \ \ | |/ / | | | | | | | | | * commit '27067356afbe1842d1472b195fbe6f56d15af514': Add liblog
| * | Add liblogYing Wang2013-04-091-0/+1
| |/ | | | | | | | | Bug: 8580410 Change-Id: I24645233148f70c57d2f2b3a46952cb2a1aea9ba
* | am 72757ade: am fb40d5de: camera2_test: Allow for HAL2 version >= 2.0 (i.e. ↵Igor Murashkin2013-03-272-3/+3
|\ \ | |/ | | | | | | | | | | 2.1, 3.0, etc) * commit '72757adef93fc5f353e163dba882c88ba3f40ef7': camera2_test: Allow for HAL2 version >= 2.0 (i.e. 2.1, 3.0, etc)
| * camera2_test: Allow for HAL2 version >= 2.0 (i.e. 2.1, 3.0, etc)Igor Murashkin2013-03-262-3/+3
| | | | | | | | Change-Id: If9004d2a6d5fc581b8f63814f2f115bcd7fa5a34
* | hwcomposer commandline test(s)Brian Swetland2013-03-065-0/+1030
|/ | | | | | | Add cnativewindow which provides a minimal bridge between EGL and hwcomposer or fbhal. Add test-arrows, a trivial GLES2 test program to exercise this. Change-Id: I60ece4378def6b6eda55437c215fc46a180ad7a3
* Tests: Camera: Refactor CameraMetadata into frameworks/avIgor Murashkin2013-02-212-1/+3
| | | | Change-Id: Ibc2917a18163f07b5e37eb83abb3d1ef919a5766
* Tests: Camera2: Add Y8/Y16 to Stream create/delete testsIgor Murashkin2013-02-212-2/+26
| | | | Change-Id: I7e066569edcab84c0d61fe7a4ae5c3e2683f63eb
* fix build: SurfaceTextureClient to Surface renameMathias Agopian2013-02-151-1/+1
| | | | Change-Id: I8b4bbccc570ddfaaad6f7eeaa72edde05a720b35
* Refactoring: Rename SurfaceTextureClient to SurfaceMathias Agopian2013-02-155-6/+6
| | | | Change-Id: Iff197c557c06673a1ad85a9bbd36caa38efb88b7
* Camera2: Tests: ModuleTests should not return OK for bad indicesIgor Murashkin2012-12-201-8/+9
| | | | Change-Id: Ia7a199d091edb4054dcd2d7164e57b3b653c5a64
* Camera2: Tests: Fix Camera2Test to be correct.Igor Murashkin2012-12-201-0/+34
| | | | | | | - Requests were missing control type (capture vs reprocess) - Not waiting for streams to be drained before disconnecting (sporadic fails) Change-Id: Iab218b89a663db6dc26d791a390d0e11667f6889
* Camera2: Tests: Ignore V1 device initialization failures.Igor Murashkin2012-12-201-2/+25
| | | | | | This allows CameraModuleTests.LoadModule and GetCameraInfo to pass. Change-Id: Id6e38afc6d9c5d45933d3117c7895775a30ee679
* Camera2: Tests: Fix CameraFrameTests to pass instead of failing and hanging.Igor Murashkin2012-12-201-0/+10
| | | | | | | | | 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
* Camera2: Tests: Release streams after HAL is unloadedIgor Murashkin2012-12-203-6/+20
| | | | | | | | | | 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
* Merge "Rename ISurfaceTexture and SurfaceTexture"Andy McFadden2012-12-183-4/+4
|\
| * Rename ISurfaceTexture and SurfaceTextureAndy McFadden2012-12-183-4/+4
| | | | | | | | | | | | | | | | | | | | 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
* | Camera2: Tests: Skip stream tests /w formats that are not available.Igor Murashkin2012-12-183-10/+38
| | | | | | | | Change-Id: I187ca983010483d1cb3ac951da2aa8b886828ef7
* | Camera2: Tests: Add CLI arguments for disabling forking and changing camera IDIgor Murashkin2012-12-1812-38/+235
|/ | | | Change-Id: I0adfda42e861d7e5a85801f7e0c3f0b3950b6e0e
* Camera2: Add a test for bursting 10 frames at a time /w manual exp controlsIgor Murashkin2012-12-104-5/+317
| | | | Change-Id: Idc1a3ebb26d0e189a543435f7f9be5f6376963d6
* am 1769442f: am e847651d: Merge "All tests should fail immediate to avoid SEGV"Kenny Root2012-12-051-31/+31
|\ | | | | | | | | * commit '1769442facb751a00a80959d492bc7f4797da4f2': All tests should fail immediate to avoid SEGV
| * All tests should fail immediate to avoid SEGVKenny Root2012-12-041-31/+31
| | | | | | | | Change-Id: I7ec2861c079357b708cb6242f0171672afd55e02
* | Merge "Camera2: Fix metadata symbols"Igor Murashkin2012-12-041-3/+3
|\ \
| * | Camera2: Fix metadata symbolsIgor Murashkin2012-12-031-3/+3
| | | | | | | | | | | | Change-Id: I5d7c8416b8ed8effca699aa9e51068f5678927ea
* | | Camera2: Tests -- Fork each test before executing itIgor Murashkin2012-11-2714-74/+437
|/ / | | | | | | | | | | | | 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
* | Camera2: Automated tests for testing HAL2.0 interfaceIgor Murashkin2012-11-0611-6/+827
|/ | | | Change-Id: I1f1afd5afc346d5493d5019af35c3026efcf19b5
* Camera2: Use HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINEDEino-Ville Talvala2012-08-283-8/+5
| | | | | | | | | | | | | | | | | | Align camera2's management of platform-opaque formats with rest of framework. Instead of using CAMERA2_PIXEL_FORMAT_OPAQUE, use HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED as the format for both the camera HAL and for gralloc, and depend on the gralloc usage flags to let the gralloc module select the appropriate real format for specific stream endpoints. Add a new gralloc usage for ZSL mode, where the camera service will hold a streaming circular buffer of opaque full-resolution images during camera preview. Since this is an opaque format that needs to be optimized for 30fps operation, need gralloc to be aware of this use case. Bug: 6243944 Change-Id: If7f2516649381ce9bcffe4e319b63cbc068f643f
* Camera2: Make static_camera_characteristics const.Eino-Ville Talvala2012-08-271-11/+11
| | | | | | | | | | Disallow modification to static characteristics structure, and clarify ownership and lifetime of the structure. Also update test code accordingly. Bug: 6243944 Change-Id: I6921d6889937212867efb99aa3881ab3ffc4f6f9
* Revert "Camera2: Make static_camera_characteristics const."Eino-Ville Talvala2012-08-261-11/+11
| | | | | | | | Needs a third change that's not yet done with review. This reverts commit c9ec8a656b59912f496880d3a63c0decd490f09d Change-Id: Ic3e465e1308cbf107a250ec17b73a59a35e52f9f
* Camera2: Make static_camera_characteristics const.Eino-Ville Talvala2012-08-241-11/+11
| | | | | | | | | | Disallow modification to static characteristics structure, and clarify ownership and lifetime of the structure. Also update test code accordingly. Bug: 6243944 Change-Id: Ib8de5e9d6580187b21a5ae9a28a3d24f1d083f7b
* Enhance keymaster testsKenny Root2012-08-092-37/+97
| | | | | | | | | | | | | | Check the key values of successful attempts. For imported keys, the key values should match the input values when they're returned. For generated keys, the modulus size should be correct and the public exponent should be correct. Bug: 6736252 Bug: http://code.google.com/p/android/issues/detail?id=34212 Change-Id: I37ed97d36ebfbe4301b43426129928bcb53c39f8
* Camera2: Test logging changesEino-Ville Talvala2012-07-311-8/+8
| | | | Change-Id: Idcde83d46da438726c5186cbcf8109a22aef997f
* Update ANativeWindow clients for syncJamie Gennis2012-06-182-18/+6
| | | | | | | This change updates uses of ANativeWindow to use the new ANW functions that accept and return Sync HAL fence file descriptors. Change-Id: I8ea699ba0a9b5c4b4316f9428cbd565976899991
* Camera2: Add JPEG capture test.Eino-Ville Talvala2012-06-132-6/+128
| | | | | Bug: 6243944 Change-Id: Ifdf16f34b13df1e5bfe501eb7e6083862c71240a
* Camera2: Update test code for metadata changesEino-Ville Talvala2012-05-201-29/+27
| | | | | | | | - New resolution handling - Don't do long exposures in tests Bug: 6243944 Change-Id: Ia8362a50c8c4a2230d892e571b31e513c67ab84d
* I am a HAL of constant structure.Eino-Ville Talvala2012-05-172-37/+52
| | | | | Bug: 6243944 Change-Id: I126313f75f5f7165d3ca96f52054866c4fb6bee0
* Camera2: Add test for construct_default_request.Eino-Ville Talvala2012-05-141-0/+30
| | | | | Bug: 6243944 Change-Id: I59b03d7ebece2a4b7672b265bd9f960b3faea621
* Camera2: Match updated camera_metadata methods.Eino-Ville Talvala2012-05-141-36/+31
| | | | | | Bug: 6243944 Change-Id: Ib691ef513b4811ca1290f0a9a4e3c1ce1e3f0945
* Substantial cleanup of camera2 HAL, and some initial unit testsEino-Ville Talvala2012-05-084-31/+1308
| | | | | | | | | | | | | | | | | | | | | | - Clean up const/struct usage in HAL - Add user pointer to notify callback - Revamp allocate_stream, now it picks its own ID. - Much simpler stream interface - Merged request/reprocess input queues - Frame queue interface no longer a mirror of request queue - Added triggers/notifications - Added default request creation - Lots of comments Unit tests added: - Lots of utility code to speed up test writing - Basic open/close - Capturing 1 raw buffer (request input, frame output, buffer output) - Capturing a burst of 10 raw buffers Bug: 6243944 Change-Id: I490bd5df81079a44c43d87b02c9a7f7ca251f531
* Revise camera HAL 2, and add unit test skeleton.Eino-Ville Talvala2012-04-112-0/+150
| | | | | | | | | | | | | | | | | | | - Add missing method in stream_ops (set_buffers_geometry) - Remove extra method in stream_ops (set_swap_interval) - Document metadata queue protocol - Change metadata queue methods to be set/get through function calls only, instead of a struct member in the HAL device ops. - Change vendor extension tag query methods to be retrieved by a get call, instead of a struct member in the HAL device ops. - Add basic gtest unit test skeleton, which currently just returns static info from all camera devices. Change-Id: I94117097b0243023ad60638070cc7f0cefec18e6
* Add delete_all to keymaster APIKenny Root2012-03-261-0/+39
| | | | | | | | In order to aid keymasters erase their memory efficiently, introduce new delete_all API to tell keymasters to forget everything. This will be triggered when keystore itself is told to reset. Change-Id: I730375f1f32cd1ea0bf1fa38d5b1bec2f81ba492
* Use frameworks/native copy of UniquePtr.hKenny Root2012-03-222-2/+1
| | | | Change-Id: Idfe46c057699b5f019f84e588bb8a9697e48236c