summaryrefslogtreecommitdiffstats
path: root/include/hardware/hardware.h
Commit message (Collapse)AuthorAgeFilesLines
* HAL test: statically test the size of HAL structsRom Lemarchand2013-11-211-0/+8
| | | | | | | | Ensure none of the HAL structs change size over time. Issues might arise when making changes without taking the different pointer sizes for specific architectures into account. Change-Id: I63f00004a23f09b2f46df01e7c69296766a5d03f
* Encode header version in api versionsJesse Hall2012-08-291-0/+8
| | | | Change-Id: I0216bef3ba0cfaed2fe908f735e546d0734c0b13
* hardware: add some guidance on providing version definesDima Zavin2012-03-261-0/+4
| | | | | Change-Id: I456cb209bc5d5eb739b6fd2e2f3e869caa363ff0 Signed-off-by: Dima Zavin <dima@android.com>
* hardware: add hardware_device_api_version() macroDima Zavin2012-03-211-1/+6
| | | | | Change-Id: I79c4d65f6bab227364d5f271df9bd7bc565857c2 Signed-off-by: Dima Zavin <dima@android.com>
* libhardware: add current HAL version and a module version macroDima Zavin2012-03-201-0/+23
| | | | | Change-Id: I30c67a6c5231f8b270b57f78bd6322c201b90859 Signed-off-by: Dima Zavin <dima@android.com>
* hardware: provide temp version defines for source compatibilityDima Zavin2012-03-201-0/+7
| | | | | | | | | | | | | This allows all the existing modules to have source level compatibility until they are fixed to use the new field names. Since the binary compatibility has not been altered, we do not need to force all the implementors to rev their version numbers. This change should be reverted when all the clients have been updated. Change-Id: Ie543d3a972d8abe03ca5123e3000966f048d1771 Signed-off-by: Dima Zavin <dima@android.com>
* hardware: rename version_major/minor to module/hal api versionDima Zavin2012-03-201-6/+50
| | | | | | | | | | | | | | | | | | The previous names and documentation were not clear as to how the version fields should be used. As a result, they were often either unused or used improperly. It became clear that there were two version fields necessary. One to version the implementing module and the other to version the hw_module_t interface itself. This change renames version_major and version_minor members of hw_module_t to module_api_version and hal_api_version. It also provides in-depth descriptions for all the fields and clarifies the purpose of the version field in hw_device_t structure. Change-Id: I3e33e5a922cdc17c5e3b1c30a00e211394f18e86 Signed-off-by: Dima Zavin <dima@android.com>
* libhardware: break pixel formats out of hardware.hIliyan Malchev2011-05-031-82/+1
| | | | | | | These definitions now live under system/core/include/android/graphics.h Change-Id: I65ca8226cb42387748c3aaa1432423153d1dad33 Signed-off-by: Iliyan Malchev <malchev@google.com>
* libhardware: add concept of module classesDima Zavin2011-04-181-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | Needed for things like audio and audio effects. Provides a new interface to loading modules named 'hw_get_module_by_class'. This takes two parameters: 'class_id' and 'instance' which are used to construct the filename for the module to be loaded. If instance is NULL, then this function acts identically to hw_get_module where 'class_id' == 'id' (and in fact the latter implemented exactly this way). For audio, this new mechanism allows us to load multiple audio interfaces by doing: hw_get_module_by_class("audio", "primary", &module); hw_get_module_by_class("audio", "a2dp", &module); hw_get_module_by_class("audio", "usb", &module); ... In the future we will likely want to add the ability to load a set of module instances based on a config file, which will have a standard syntax and the mechanism will be provided by libhardware. Change-Id: I9976cc6d59a85a414b18e7b398a36edfbce4abd8 Signed-off-by: Dima Zavin <dima@android.com>
* Update the docs for the private pixel formats.Jamie Gennis2010-11-221-4/+6
| | | | Change-Id: I337d9e7ba7f3a625294398790844c6d15ee75237
* improve hardware.h documentationMathias Agopian2010-10-251-4/+8
| | | | Change-Id: I637a1d8924af144a9c2cc4645659e9d23e9527d6
* Fix (again) description of our interchange YV12 formatMathias Agopian2010-09-101-5/+8
| | | | Change-Id: I8cd81654b51d50385cccec7b96f6e694fd372925
* revert pixelformat hackMathias Agopian2010-08-191-4/+0
| | | | Change-Id: Ia5e01b2b2f205f48ede1d29275094a64221df2d4
* temporary hack to allow compilation of adreno driverMathias Agopian2010-07-301-0/+3
| | | | Change-Id: Ib3c260df2c22e1c59c5380278ea470e34aedbd81
* Remove the YV16 format.Mathias Agopian2010-07-141-12/+14
| | | | Change-Id: I12f72cf91a66d78499983221925ac68ca646efc8
* remove h/w specific YUV formats from the HALMathias Agopian2010-07-011-25/+40
| | | | | | | we now only support 2 "standard" yuv format in the HAL. there is a new reserved range 0x100-0x1FF for OEMs. Change-Id: I171fb0f8d90ded64773ac9c1e5adcab1e1f25c7f
* remove unused YUV formatsMathias Agopian2010-06-211-9/+5
| | | | Change-Id: I328cac1ed8bb2acb105ee118d8a87bdb39a545e6
* Add some useful YUV formats. Add fourcc version of the definitions.Mathias Agopian2010-06-151-19/+36
| | | | | | also removed incorrect 4:2:0 interleaved formats Change-Id: Ib477de86504cc67861def16fc4dfdae0dd3eb59d
* fix typoMathias Agopian2010-02-171-3/+3
|
* renumber the YCbCr constants to keep binary compatiblity with previous releasesMathias Agopian2010-02-171-2/+2
|
* add missing yuv constantsMathias Agopian2010-02-161-0/+1
|
* hal: Add nv12_tiled/nv21 pixel format constantsDima Zavin2010-02-161-1/+4
| | | | | Change-Id: I6a906cf9fb1539c1876f3737b409ed0598075c8e Signed-off-by: Dima Zavin <dima@android.com>
* add typedefs to gralloc and hardware.h so it's more C friendlyMathias Agopian2009-08-191-6/+9
|
* add support for RGBX_8888Mathias Agopian2009-08-071-0/+2
|
* Color Format and Overlay FunctionsBenny Wong2009-07-171-1/+3
| | | | Add hardware overlay related function declarations and more color format enums
* Integrate from //sandbox/mathias/donut/...@145728Mathias Agopian2009-04-101-5/+13
| | | | SurfaceFlinger rework for new EGL driver model support.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+148
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-148/+0
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-0/+18
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+19
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+111