summaryrefslogtreecommitdiffstats
path: root/modules
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Merge commit 'c9940a2bfe94dbe2ef3bfe5e8692bf4e3cea5ba0' into HEADThe Android Open Source Project2013-11-2215-32/+1345
| |\ \ \ | | | |/ | | |/|
* | | | Removed unneeded linux/input.h includes, to fix Mac SDK buildAaron Whyte2013-11-142-2/+0
| | | | | | | | | | | | | | | | Change-Id: I3bcfadb9c95a9239d8098989c60d5604bfdfb66f
* | | | deactivated multihal logspam, made warnings warnings, left critical startup infoAaron Whyte2013-11-141-49/+49
| | | | | | | | | | | | | | | | Change-Id: I6a53cef28ab87ca0d7f4668070e4d93ff726cf0d
* | | | Tests SensorEventQueue I/O when the queue is full.Aaron Whyte2013-11-144-21/+129
| | | | | | | | | | | | | | | | | | | | | | | | Reduced debug logging in multihal. Change-Id: I30e80630ce5d97776c53f26d6096ef59b9b2f35a
* | | | MultiHal multithreaded pollingAaron Whyte2013-11-144-157/+146
| | | | | | | | | | | | | | | | Change-Id: I3ebe380169eed1c8deeca2860d1788be6c14837e
* | | | Added a SensorEventQueue, a circular buffer meant for reading with one threadAaron Whyte2013-11-145-7/+389
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and polling a subhal with another. The writing thread gets access to pointers in the internal buffer. This design avoids a memcpy on write when the multihal fetches subhal events using poll(). Unit-tests include multithreaded reading and writing lots of events, in random-sized chunks. This is not used by the multihal yet. That will be a different CL. Change-Id: I58418d69eebebeb96befb08ba3aed080f0f08551
* | | | Move sensors multi HAL to libhardwareMike Lockwood2013-11-143-1/+545
| |_|/ |/| | | | | | | | Change-Id: I12ba76291990264a2db61069f9610c40e96a9695
* | | am 15f0d47d: am af822c43: Merge "gralloc: do not use GNU old-style field ↵Nick Kralevich2013-11-061-20/+20
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | designators" * commit '15f0d47dc6611150be34bc98a8f328df53c93397': gralloc: do not use GNU old-style field designators
| * \ \ am af822c43: Merge "gralloc: do not use GNU old-style field designators"Nick Kralevich2013-11-061-20/+20
| |\ \ \ | | |/ / | | | / | | |/ | |/| * commit 'af822c43cf144a991db49d8c25068d054265ae37': gralloc: do not use GNU old-style field designators
| | * gralloc: do not use GNU old-style field designatorssynergy dev2013-11-061-20/+20
| | | | | | | | | | | | | | | | | | Avoiding the use of gnu extensions improves code portability Change-Id: Icf8e3d4813bcddff40548bb5e65e615f8697b75c
* | | modules: camera: Metadata refactorAlex Ray2013-10-286-203/+197
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add* functions const to protect data being added. Initiailze metadata object from a camera_metadata_t. Remove template-specific constructor. Add convenience "add1" method to abvoid stack-allocated data. Construct templates manually (in ExampleCamera) from base. Change-Id: I3201f61e9d32841ea7a769d69242b40d8727c02e
* | | modules: camera: dump device and stream stateAlex Ray2013-10-213-7/+101
| | | | | | | | | | | | Change-Id: Iae3badba71f13784dfdd65d6e77b20283437935a
* | | modules: camera: add vendor tag functionalityAlex Ray2013-10-216-2/+310
| | | | | | | | | | | | | | | | | | Vendor Tag operations were added in module api v2.2 Change-Id: I352a50759d8bb9389d904bb774659e4be883794b
* | | modules: camera: Abstract device-specific cameraAlex Ray2013-10-176-188/+310
| | | | | | | | | | | | | | | | | | | | | ExampleCamera represents a specific (e.g. front or back) camera device, and contains all the device and logic for that device/sensor. Change-Id: Iecc1a1d905501a66edb6e3994ff93d8761b82f8b
* | | modules: camera: Add android.jpeg.maxSize metadataAlex Ray2013-10-141-0/+5
| | | | | | | | | | | | Change-Id: I0984b55df0adf8c60b07844003e97b5aac8ece3f
* | | modules: camera: Update trace headers to libutilsAlex Ray2013-10-145-62/+9
|/ / | | | | | | | | | | | | Now that libutils is outside of frameworks, use that for c++-style scoped tracing and remove the temporary shim header. Change-Id: I913767aed8ff70abb9299e7a7b318b24a25e23c1
* | consumer_ir: add array length to get carrier freqAlex Ray2013-09-111-3/+6
| | | | | | | | Change-Id: Iefb424db6f16ffefa40da56c765c9b7a24bea397
* | modules: add demo consumer IR HALAlex Ray2013-09-093-1/+140
| | | | | | | | Change-Id: Iaae40c06af0dc008429d5dee4f45dc0b156957a1
* | Merge "Fix file permissions" into klp-devGlenn Kasten2013-08-221-0/+0
|\ \
| * | Fix file permissionsGlenn Kasten2013-08-201-0/+0
| | | | | | | | | | | | Change-Id: Iffc2941d98ee16796cf3d44dec1cfa376d9362bb
* | | remote submix: fix test on sampling valid ratesEric Laurent2013-08-221-4/+4
|/ / | | | | | | Change-Id: I4e9e378940bb56202a6e6882f561b3293ad7225d
* | modules: camera: Separate locking for static characteristicsAlex Ray2013-07-262-34/+36
| | | | | | | | | | | | | | | | | | Static camera characteristics can be queried on any device at any time. Separate the locking for it from the rest of the device to eliminate any contention between operations on the device and static characteristic initialization. Change-Id: I8076378699f274e70c6318e537df4758972de9db
* | get rid of HAL pixelformats 5551 and 4444Mathias Agopian2013-07-261-2/+0
| | | | | | | | Change-Id: I196ee30ed57707ed4cc46fb3a9c5c07c5bac6fff
* | Merge "Code changes for offload support in hardware libhardware"Eric Laurent2013-07-251-1/+10
|\ \
| * | Code changes for offload support in hardware libhardwareRichard Fitzgerald2013-07-181-1/+10
| | | | | | | | | | | | Change-Id: Icfe9bf4b4768bbdcb11e6c77ac26163018f9c7c8
* | | modules: camera: Fix build break due to metadata changeZhijun He2013-07-181-5/+5
|/ / | | | | | | Change-Id: I085796569ea77336d32907ee2287ff7533b0c122
* | modules: camera: simplify metadata list traversalAlex Ray2013-07-091-3/+1
| | | | | | | | | | | | keep traveling pointer local to the walking loop Change-Id: I0038007d6e7a45e519b9b2162c674132477879cc
* | modules: camera: Shutter notify message supportAlex Ray2013-07-092-0/+28
| | | | | | | | | | | | | | | | | | The shutter callback timestamp should originate from the sensor itself, since it knows exactly when the first line of the frame started exposing. However, as a fallback (or in the CPU-painting case) query CLOCK_BOOTTIME instead. Change-Id: Id57c05525e9c575d009b9deb96a69557fccac16b
* | modules: camera: make Metadata a delete-able objectAlex Ray2013-07-031-0/+10
| | | | | | | | | | | | | | | | | | Metadata is currently only used for immutable persistent settings (static camera characteristics, and the capture templates), but will be used for dynamic metadata as well. Make it deleteable so we can create/destroy these at will. Change-Id: I7372b07b904d5a6b55453093712e0bb2675918b5
* | modules: camera: only wait on valid acquire fenceAlex Ray2013-07-031-8/+11
| | | | | | | | Change-Id: I4f51e509d86722c18308f4f1312ca3379cffd795
* | modules: camera: Write back stream parametersAlex Ray2013-07-033-3/+8
| | | | | | | | | | | | | | | | | | | | max_buffers and usage are read by the framework inside the struct used to pass the stream configuration parameters; scribble our new calculated values whever they are updated internally. Adds logging to stream creation method (reuse/new). Change-Id: I04e12880820571900f2ae80c27100f8aedcf9d02
* | modules: camera: Fix stream type characterizationAlex Ray2013-07-032-2/+6
| | | | | | | | | | | | Type is now enum, not mask. Change-Id: I264da26a457957a7659154e507970e0303c76e25
* | modules: camera: Dirty metadata objects on updateAlex Ray2013-07-032-14/+41
| | | | | | | | Change-Id: I4fbd4ad919b855168e3ff5424613271b1fa907af
* | modules: camera: default request templatesAlex Ray2013-07-024-2/+62
| | | | | | | | Change-Id: I0a4b389e1850c10e12a65b3c8a5670c78c6746f7
* | modules: camera: fix compiler warningsAlex Ray2013-06-282-3/+7
| | | | | | | | Change-Id: Id1aa624d377776a7e37b52978664d30c927595be
* | modules: camera: add get_camera_info supportAlex Ray2013-06-286-2/+430
| | | | | | | | | | | | | | Basic static metadata statically constructed from preprocessor passes over an array of camera metadata tags. Change-Id: I16ea9f4d68120d5a0bc010a4a67b0cbcd761329e
* | modules: camera: No-op result submission with requestAlex Ray2013-05-293-1/+58
| | | | | | | | Change-Id: If4e377ba0ac327cc02ac2b9765ce5d406b8960a8
* | modules: camera: Input buffer reprocessing scaffoldingAlex Ray2013-05-292-0/+37
| | | | | | | | Change-Id: I158ba833549aee47ca3be5673f6f5d33e455ef59
* | modules: camera: memoize request settings metadataAlex Ray2013-05-292-1/+35
| | | | | | | | Change-Id: I19c3a6a55a42e60f627702cd4a995664a0dfc4d2
* | modules: camera: Add buffer registration scaffoldAlex Ray2013-05-133-9/+71
| | | | | | | | Change-Id: Ic1d20dd7f93a0ca3cd2c3af3b33a7a9df47b5e89
* | modules: camera: Add StreamsAlex Ray2013-05-035-4/+364
| | | | | | | | | | | | | | | | Adds a Stream object, and configureStreams support in parsing the provided stream_array. Streams are naively setup for sync-less software painting. Change-Id: Ibbd90e3e2c7fa984dd5d2dcbd4da7bf4dad43aa1
* | modules: camera: Add scoped trace helperAlex Ray2013-04-292-9/+55
| | | | | | | | | | | | | | | | This c++ helper class is normally provided by frameworks/native's libutils, but cannot be used from the context of a hardware module. For now just add the required functionality locally in the hardware module. Change-Id: I5b399cbeb1c017a95baf19456dbf20569e677fbe
* | modules: camera: remove unused variableAlex Ray2013-04-291-1/+0
| | | | | | | | Change-Id: Ic21cd58a750411167ef4b060e8d3abc295edc83d
* | modules: camera: fix dump log messageAlex Ray2013-04-291-1/+1
|/ | | | Change-Id: I2511653b3d2d21d03785ea220c760e2b65f0b035
* Log when creating a second buffer mapping in a processJesse Hall2013-03-282-5/+47
| | | | | Bug: 8468756 Change-Id: Ia883f459ea9e2648ca4a0b5a6f09ded4f46f13b3
* Remove pid check in register/unregisterJesse Hall2013-03-282-21/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | The register/unregister gralloc calls were avoiding mmapping/munmapping the shared memory region if the buffer was created by the current process. This is left over from the pmem-based implementation, where trying to map the same region twice in the same process would fail, or would reuse a single mapping without refcounting. This causes problems if a buffer is - allocated in process A, - transferred from A to process B and registered there - unregistered/freed in A - transferred back from B to A and re-registered Process A then has a new handle to the buffer, but since it originally created the buffer it will not be mmapped, so trying to read or write the buffer will crash. With ashmem, mmaping a region twice in the same process creates two distinct mappings which can be used and munmapped independently. So we no longer need to avoid mmapping again in the allocating process. Bug: 8468756 Change-Id: I167bec5ca07e5534c5e2115630fe8386e481388e
* modules: camera: make Camera object id constAlex Ray2013-02-281-1/+1
| | | | Change-Id: Ic36fa7c6193086aa6415647ff8fe59cc358dd99f
* modules: camera: Camera v3 DevicesAlex Ray2013-02-274-52/+163
| | | | | | | Default camera HAL statically allocates camera devices. Update camera device to API v3. Change-Id: Ic53ffcf3b746b9b4011b932e26dbb0f533cba554
* modules: camera: Update to v2.1 camera module APIAlex Ray2013-02-262-34/+111
| | | | | | | Refactor the camera module into a single CameraHAL object. Adds set_callbacks, new in the v2.1 module API. Change-Id: I4da677c28d7425f545f68998844fcfa4caf0feb9
* modules: camera: Hide HAL symbols DO NOT MERGEAlex Ray2013-02-262-5/+4
| | | | | | | Explicitly hide all symbols from being exported from the camera HAL except the symbol required to load the module. Change-Id: I940b24b8d3895f46e63df3c28e43b8cb012bd637