Commit graph

993 commits

Author SHA1 Message Date
Dima Zavin
aa21172bcd audio: move audio.h to system/core/include/system/audio.h
Change-Id: I523dfb361b1b3862cf8bc41c1691c607b2c815b0
Signed-off-by: Dima Zavin <dima@android.com>
2011-05-12 14:10:06 -07:00
Jean-Baptiste Queru
e3193479ae am 47050dc6: Merge "Extra audio headers for better build-time compatibility"
* commit '47050dc62e02fe9129217495281f8201de7fcb91':
  Extra audio headers for better build-time compatibility
2011-05-12 09:28:31 -07:00
Derek Sollenberger
54aa0e1520 Extra audio headers for better build-time compatibility
Change-Id: I58724c04b73403391b157bcc14792ad080e5912f
2011-05-12 09:14:32 -07:00
Iliyan Malchev
33c0fe022e libhardware: move buffer_handle_t to system/core
Change-Id: I2ed9ff7360086bc3458b2211437c102fee615481
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 15:49:54 -07:00
Iliyan Malchev
41693fa555 libhardware: introduce camera HAL header
camera.h

-- a HAL module for the camera, camera_module_t, which can be queried for the
   number and orientation of the available camera sensors.  A camera sensor is
   also opened through this module, and is represented by:

-- a HAL device for each camera sensor, camera_device_t, which encapsulates all
   the functionality of the base class CameraHardwareInterface;

Change-Id: I79a9524ceeafc4275581c009d7b9c0fa05eed764
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 15:49:54 -07:00
Iliyan Malchev
c12d0e9240 libhardware: break pixel formats out of hardware.h
These definitions now live under system/core/include/android/graphics.h

Change-Id: I65ca8226cb42387748c3aaa1432423153d1dad33
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 15:49:54 -07:00
Iliyan Malchev
ef1ab51f16 libhardware: minor cleanup in gralloc.h
Change-Id: I2180725805e47d313e29ed80b4c9c05e06b77831
Signed-off-by: Iliyan Malchev <malchev@google.com>
2011-05-03 15:49:54 -07:00
Mathias Agopian
bbc13bc837 Merge "Improve ROTATION_VECTOR sensor documentation" 2011-05-03 15:36:17 -07:00
Mathias Agopian
d93ff971bd Improve ROTATION_VECTOR sensor documentation
Change-Id: Iebc978beadf365d63c60c04d54ce7331605348b3
2011-05-02 19:10:31 -07:00
David 'Digit' Turner
1ca194d2d4 am 05a9b62f: am d1be1d02: Merge "<hardware/qemu_pipe.h>: Allow inclusion from C++"
* commit '05a9b62f315c933e9f92e2fb8ee64f6f8f261d3f':
  <hardware/qemu_pipe.h>: Allow inclusion from C++
2011-04-29 15:09:45 -07:00
David 'Digit' Turner
1714a2a53f am 61d6a702: am 67e71a87: am ee5636cf: Merge "Add <hardware/qemu_pipe.h> header."
* commit '61d6a702dc318247273169e0eafb74f4bd7e7c59':
  Add <hardware/qemu_pipe.h> header.
2011-04-29 15:09:43 -07:00
David 'Digit' Turner
05a9b62f31 am d1be1d02: Merge "<hardware/qemu_pipe.h>: Allow inclusion from C++"
* commit 'd1be1d02135917497866526ce12ef4c2548e63cb':
  <hardware/qemu_pipe.h>: Allow inclusion from C++
2011-04-29 14:57:56 -07:00
David 'Digit' Turner
61d6a702dc am 67e71a87: am ee5636cf: Merge "Add <hardware/qemu_pipe.h> header."
* commit '67e71a870d882be851def98fb3e87c3a67a4b93e':
  Add <hardware/qemu_pipe.h> header.
2011-04-29 14:53:39 -07:00
David 'Digit' Turner
ca196ed978 <hardware/qemu_pipe.h>: Allow inclusion from C++
Change-Id: Ic33b5daf7a01e8fe638ea1ccc54ed76561745abe
2011-04-29 16:38:51 +02:00
Mathias Agopian
03dd9c671d remove deprecated/unused HAL headers
copybit, overlay, sensors_deprecated are no longer supported.

Change-Id: Ie5da20bd4ff95f7565a162d628bf572a76327b7b
2011-04-28 20:09:45 -07:00
Mathias Agopian
53b8af5e9c get rid of GRALLOC_MODULE_PERFORM_CREATE_HANDLE_FROM_BUFFER
Change-Id: I916812dcfa2e1188e7e249303b80b7b221de71fd
2011-04-28 19:05:05 -07:00
David 'Digit' Turner
e2762c449d Add <hardware/qemu_pipe.h> header.
This header is used to implement qemu pipes, a very fast way to exchange
messages between the guest and the emulator program. See implementation and
tests under development/tools/emulator/system/libqemu/

Change-Id: I8272435cb9bf6e2a96ac62b9a56cbc5930052682
2011-04-28 11:35:57 +02:00
Dima Zavin
f1504dbca3 libhardware: add audio defines and HAL headers
Change-Id: Iae523059834c252f0d39f7efc6e15832e6273101
Signed-off-by: Dima Zavin <dima@android.com>
2011-04-27 14:08:57 -07:00
Mathias Agopian
fa9c285fed Merge "add a method to blank/unblank the screen" 2011-04-21 17:13:45 -07:00
Mathias Agopian
97c7c40b73 add a method to blank/unblank the screen
Change-Id: I3874654248826c29e57bb62bb5217184bdfb4263
2011-04-18 19:05:29 -07:00
Dima Zavin
54921de415 libhardware: add concept of module classes
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>
2011-04-18 15:59:13 -07:00
Urs Fleisch
d2ed15a6b8 support humidity sensor type
Change-Id: I7600d64ea28d2eefc20104cbf81270ddad9d57c0
2011-04-12 17:25:57 -07:00
Mathias Agopian
54f9dd032d fix [4056232] Deprecate Sensor.TYPE_TEMPERATURE and add Sensor.TYPE_AMBIENT_TEMPERATURE
Bug: 4056232
Change-Id: I4555823abacc8aa127429bda78033ef6007aa04b
2011-03-22 18:44:02 -07:00
Glenn Kasten
7cb277a5c2 Protected surface API
Change-Id: I63a16e77228b4a440ad08b9f21d8fbbacef3698e
2011-01-27 17:54:12 -08:00
Erik Gilling
158549c894 gralloc: add dump hooks to gralloc/hwcomposer
Change-Id: I27bf46103b4d1d547c42a6de4f3270a6dfd7b7ec
2010-12-08 15:31:40 -08:00
Erik Gilling
e99520400f gralloc: add padding to alloc_device_t and hwc_composer_device_t
also adds version #defines

Change-Id: I89f19fc7811ea9c9efb579a9f6abb4c3d9011bbf
2010-12-08 15:16:52 -08:00
Louis Huemiller
45e2371cb9 const native_handle_t* -> buffer_handle_t
Change-Id: If4ac1bcfba7192ac1339039cac75f76a5c09f4c6
2010-12-01 12:25:00 -08:00
Mathias Agopian
1b514ad358 am 778ab436: am 3cceacee: Merge "update rotation-vector documentation." into gingerbread
* commit '778ab436dee2918ae2fa083f4afa4ba68dc39235':
  update rotation-vector documentation.
2010-12-01 03:37:43 -08:00
Mathias Agopian
3cceaceeca Merge "update rotation-vector documentation." into gingerbread 2010-11-30 14:05:02 -08:00
Jamie Gennis
2c1001e10a am 2d17786b: am 2ec21933: Update the docs for the private pixel formats.
* commit '2d17786be760f473b2a05f5ab48f82cc463c860b':
  Update the docs for the private pixel formats.
2010-11-24 16:27:25 -08:00
Louis Huemiller
38476faf8f Hardware Composer add const for handle pointer
Change-Id: Icf53be12ed43bce19b152fa7f1dee104d713b8da
2010-11-22 16:34:10 -08:00
Mathias Agopian
42b743c855 update rotation-vector documentation.
the rotation-vector sensor must transmit the W component of the
unit quaternion in data[4].
This change doesn't cause a compatibility issue because nothing in the
system relies on the W component being present.

Change-Id: If4f699ac8d41d8b957925b375e355a138a82dcf8
2010-11-22 15:55:32 -08:00
Jamie Gennis
2ec2193365 Update the docs for the private pixel formats.
Change-Id: I337d9e7ba7f3a625294398790844c6d15ee75237
2010-11-22 15:28:58 -08:00
Jamie Gennis
7edeaf91a8 Add a gralloc usage flag for external displays.
This change adds a gralloc usage flag to indicate that a buffer should
be displayed full-screen on an external display if one is present.

Change-Id: I3230a8dd2c49c89c81bf0ee9e646a448028bda2e
2010-11-17 18:51:17 -08:00
Mathias Agopian
2ec5715af2 am caf9528e: am 2d1e978e: improve hardware.h documentation 2010-10-26 12:21:50 -07:00
Mathias Agopian
2d1e978e32 improve hardware.h documentation
Change-Id: I637a1d8924af144a9c2cc4645659e9d23e9527d6
2010-10-25 17:55:55 -07:00
Louis Huemiller
871815b5f1 hwcomposer.h - Add comment that buffer handles in a list must be unique
Change-Id: Iaa4984258572b46d6ded4c74b616b842003031c8
2010-10-25 17:00:52 -07:00
Mathias Agopian
abcf2c6a17 am ccacbce3: am 937af9b7: fix part of [Issue 3114236] [Crespo] The order of FLIP_H and ROT_90 is different from other devices
Merge commit 'ccacbce375af6422fa24f81bdc771a5460f60fed'

* commit 'ccacbce375af6422fa24f81bdc771a5460f60fed':
  fix part of [Issue 3114236] [Crespo] The order of FLIP_H and ROT_90 is different from other devices
2010-10-21 13:49:17 -07:00
Mathias Agopian
937af9b713 fix part of [Issue 3114236] [Crespo] The order of FLIP_H and ROT_90 is different from other devices
there are a typo in hardware.h where FLIP_V and FLIP_H were inverted.
this change will probably break all the overlay HALs which
implement FLIP_V/H, which thanksfully are not many.

Change-Id: Ie824d9a924354d637e44eb6476cb4e5e945c3594
2010-10-21 00:07:32 -07:00
Mike Lockwood
e202e28662 am 7b96b46c: am 455e83b7: GPS: Add update_network_state call to AGpsRilInterface
Merge commit '7b96b46c5bc0bb7149c5323c9537660558e65bad'

* commit '7b96b46c5bc0bb7149c5323c9537660558e65bad':
  GPS: Add update_network_state call to AGpsRilInterface
2010-10-12 11:49:55 -07:00
Mike Lockwood
455e83b705 GPS: Add update_network_state call to AGpsRilInterface
Change-Id: I3ecc24965ef7fbd943738dee7d0e440bfdeae753
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-11 14:30:13 -04:00
Miguel Torroja
41f4cb352c am b15cd546: am 5f404f58: gps: Adding AgpsRilInterface extension
Merge commit 'b15cd546e2043b7530c8eabf235820906e42eaa3'

* commit 'b15cd546e2043b7530c8eabf235820906e42eaa3':
  gps: Adding AgpsRilInterface extension
2010-10-07 09:28:09 -07:00
Miguel Torroja
5f404f58df gps: Adding AgpsRilInterface extension
Change-Id: Iddc10906ca4bd59fef25d51068e0c69998aae13f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-10-05 08:05:08 -04:00
Mathias Agopian
8cd4162a14 resolved conflicts for merge of 72c113ee to master
Change-Id: Icef7703423fdb153477bfd3dc49980e979bbd8e7
2010-09-15 12:08:05 -07:00
Mathias Agopian
c04e5f6890 Added a data field for gyroscopes and improved documentation.
Change-Id: Iddc9710d8b724af9285df0396949479dccc3de7a
2010-09-14 10:53:55 -07:00
Mathias Agopian
355e330fae am 20d7bafc: am a2df7ab5: Fix (again) description of our interchange YV12 format
Merge commit '20d7bafcf02a629d4d02401445a5d4804f86336b'

* commit '20d7bafcf02a629d4d02401445a5d4804f86336b':
  Fix (again) description of our interchange YV12 format
2010-09-10 17:24:19 -07:00
Mathias Agopian
a2df7ab5fe Fix (again) description of our interchange YV12 format
Change-Id: I8cd81654b51d50385cccec7b96f6e694fd372925
2010-09-10 14:33:16 -07:00
Kenny Root
e8b8c39057 resolved conflicts for merge of 5e610d6a to master
Change-Id: Ibeaa176ff4b25f81559d14dd8c73283ee4f2eacf
2010-08-24 10:22:45 -07:00
Mathias Agopian
bfbf26c2c8 am 3691181b: am 76022c6f: Merge "revert pixelformat hack" into gingerbread
Merge commit '3691181b21454bcd56c9521e8b61d96ed6e01f84'

* commit '3691181b21454bcd56c9521e8b61d96ed6e01f84':
  revert pixelformat hack
2010-08-21 09:43:27 -07:00
Kevin Powell
4ec14c1e23 add new sensor types for handling gyro data and device orientation more efficiently.
Change-Id: I89faf5b3d57a3e726d1c347ce01d931b100188cd
2010-08-20 19:25:04 -07:00
Jean-Baptiste Queru
5e610d6ad6 resolved conflicts for merge of b01a043d to gingerbread-plus-aosp
Change-Id: I60466613c7ea0335a78d553a10876367d65557d9
2010-08-20 17:30:45 -07:00
Mathias Agopian
2250f45ff0 revert pixelformat hack
Change-Id: Ia5e01b2b2f205f48ede1d29275094a64221df2d4
2010-08-19 13:14:46 -07:00
Mathias Agopian
2698f0cd99 Revert hwcomposer HAL. DO NOT MERGE.
This reverts commit cdd44a0db3.
This reverts commit e6b5c05aa0.
This reverts commit 5d3de309f4.
2010-08-17 20:29:08 -07:00
Mathias Agopian
db23b533af am ee1b98f8: am cdd44a0d: added a new hint to tell SF it should clear the FB for some layers
Merge commit 'ee1b98f8b3016173b3aadcb652cc53c5ca09c093'

* commit 'ee1b98f8b3016173b3aadcb652cc53c5ca09c093':
  added a new hint to tell SF it should clear the FB for some layers
2010-08-12 15:11:19 -07:00
Mathias Agopian
cdd44a0db3 added a new hint to tell SF it should clear the FB for some layers
Change-Id: I784e7c5be2eab84c321773dc53b4cb657ca9a457
2010-08-12 15:04:58 -07:00
Makarand Karvekar
3120b58768 hw: sensors: Add gyro field
Change-Id: I113f0a067fccbc8d69d1949b6af3ed9e119d0355
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
2010-08-11 15:12:52 -07:00
Mathias Agopian
b3ae979489 am 754c7a01: am 60d641e5: Merge "first stab at hwcomposer HAL and default implementation." into gingerbread
Merge commit '754c7a01d76493a2c3afafe21c3d52abbada3ef0'

* commit '754c7a01d76493a2c3afafe21c3d52abbada3ef0':
  first stab at hwcomposer HAL and default implementation.
2010-08-10 13:55:30 -07:00
Mathias Agopian
5d3de309f4 first stab at hwcomposer HAL and default implementation.
Change-Id: I7ff47b94a6b34a8f61031bd94e936a088dcea6ab
2010-08-09 17:15:16 -07:00
Kevin Powell
b01a043df4 add new sensor types for handling gyro data and device orientation more efficiently.
Change-Id: I453b7a2e84b885ca207d9d938b923e1624554644
2010-08-05 09:51:37 -07:00
Mathias Agopian
d521dcac2e am ae3b05e8: am 67d82220: temporary hack to allow compilation of adreno driver
Merge commit 'ae3b05e8f38e588df1a500ccea9f7961c93686ba'

* commit 'ae3b05e8f38e588df1a500ccea9f7961c93686ba':
  temporary hack to allow compilation of adreno driver
2010-07-31 12:19:29 -07:00
Mathias Agopian
67d8222063 temporary hack to allow compilation of adreno driver
Change-Id: Ib3c260df2c22e1c59c5380278ea470e34aedbd81
2010-07-30 17:57:02 -07:00
Mathias Agopian
5c0b977701 am bb2c87ea: am 1511e20f: improved comments and added a minDelay attribute to sensor_t
Merge commit 'bb2c87ea03c6bff09ea05dc6ba69796efe31ebdb'

* commit 'bb2c87ea03c6bff09ea05dc6ba69796efe31ebdb':
  improved comments and added a minDelay attribute to sensor_t
2010-07-29 18:20:40 -07:00
Mathias Agopian
1a4ca39725 am 0bcdefe8: am 1832f557: Added definition/documentation for pressure sensors
Merge commit '0bcdefe8180c8d44e1d2ad6ec8e332263bd94377'

* commit '0bcdefe8180c8d44e1d2ad6ec8e332263bd94377':
  Added definition/documentation for pressure sensors
2010-07-29 18:20:38 -07:00
Mathias Agopian
1511e20fbb improved comments and added a minDelay attribute to sensor_t
Change-Id: Ie00fe8260089614e15f1f8035b8392711dff048c
2010-07-29 15:33:22 -07:00
Mathias Agopian
1832f55760 Added definition/documentation for pressure sensors
Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0
2010-07-29 15:22:30 -07:00
Mathias Agopian
0f1aaf80c7 am c0611f0f: am 478994a7: improve sensor HAL documentation
Merge commit 'c0611f0f19b138bba04027d3fb530ab1d85fb9ce'

* commit 'c0611f0f19b138bba04027d3fb530ab1d85fb9ce':
  improve sensor HAL documentation
2010-07-26 12:27:45 -07:00
Mathias Agopian
478994a758 improve sensor HAL documentation
Change-Id: If443c1d2e48c697fa8774bd94af4e65866d1dedb
2010-07-23 17:23:43 -07:00
Mathias Agopian
2ba551b90b am f0e4ec1a: am 66a4095c: Be more explicit about the rate at which sensor events must be returned
Merge commit 'f0e4ec1a04701c40e38a09a97e6f1c417163e0c2'

* commit 'f0e4ec1a04701c40e38a09a97e6f1c417163e0c2':
  Be more explicit about the rate at which sensor events must be returned
2010-07-22 17:17:45 -07:00
Mathias Agopian
66a4095ca0 Be more explicit about the rate at which sensor events must be returned
Change-Id: I937e84c34c539b4e3ff34eddcf4fb24e2866ebfa
2010-07-22 17:11:50 -07:00
Mathias Agopian
6c84d7a579 resolved conflicts for merge of e153b430 to master
Change-Id: I72e67a7e6b23219f0c1b6fa7d114da2c1e22fdc1
2010-07-21 18:00:36 -07:00
Mathias Agopian
87bd257849 am 97ba26bb: am cdefccdb: new sensor_event_t structure for the new HAL that can handle bigger payloads
Merge commit '97ba26bb6de7dd7317c36ac0a3406919dd09bdaf'

* commit '97ba26bb6de7dd7317c36ac0a3406919dd09bdaf':
  new sensor_event_t structure for the new HAL that can handle bigger payloads
2010-07-21 17:49:27 -07:00
Mathias Agopian
9de11a9c1c am 39cd81ce: am b1e212e7: New sensor HAL and test
Merge commit '39cd81ce725b28db98a4cb7b47f35c59e3a289e7'

* commit '39cd81ce725b28db98a4cb7b47f35c59e3a289e7':
  New sensor HAL and test
2010-07-21 17:49:24 -07:00
Mathias Agopian
98c5309047 move the old sensorHAL interface into a separate header
sensors_deprecated.h is included from sensors.h, for
easier reading.

Change-Id: I97883e1db73beb6c612da2ec023ee6bb8d4858c3
2010-07-19 15:32:24 -07:00
Mathias Agopian
cdefccdba5 new sensor_event_t structure for the new HAL that can handle bigger payloads
Change-Id: I8f21e457c308eea9cb1f73b49b1fed36627ec55e
2010-07-19 14:14:04 -07:00
Mathias Agopian
b1e212e7b6 New sensor HAL and test
Change-Id: I216e3dd0b2b45829fef7c682774d2cdd8271d4e7
2010-07-14 20:39:46 -07:00
Mathias Agopian
9eed234b60 am 0e0f617b: am 80107f8e: Remove the YV16 format.
Merge commit '0e0f617befa6987c10f938e44112965b289378e6'

* commit '0e0f617befa6987c10f938e44112965b289378e6':
  Remove the YV16 format.
2010-07-14 16:37:19 -07:00
Mathias Agopian
80107f8e92 Remove the YV16 format.
Change-Id: I12f72cf91a66d78499983221925ac68ca646efc8
2010-07-14 15:16:12 -07:00
Mathias Agopian
8b4935ad84 am c166ba31: am 1daacdc8: Merge "remove h/w specific YUV formats from the HAL" into gingerbread
Merge commit 'c166ba3173b0a0c26debb62640e2eb0f5e50086b'

* commit 'c166ba3173b0a0c26debb62640e2eb0f5e50086b':
  remove h/w specific YUV formats from the HAL
2010-07-01 21:32:10 -07:00
Mathias Agopian
1daacdc8d2 Merge "remove h/w specific YUV formats from the HAL" into gingerbread 2010-07-01 21:28:06 -07:00
Mathias Agopian
6915eb345b remove h/w specific YUV formats from the HAL
we now only support 2 "standard" yuv format in the HAL.
there is a new reserved range 0x100-0x1FF for OEMs.

Change-Id: I171fb0f8d90ded64773ac9c1e5adcab1e1f25c7f
2010-07-01 21:18:32 -07:00
Jamie Gennis
56e36cb544 am 74ca93ca: am 95d78bef: Add 4 private gralloc usage bits.
Merge commit '74ca93ca120205a6d2893f62d474c2fb6995c3c3'

* commit '74ca93ca120205a6d2893f62d474c2fb6995c3c3':
  Add 4 private gralloc usage bits.
2010-07-01 17:01:41 -07:00
Jamie Gennis
920f9dae76 am bab54e08: am aabb7029: Fix a typo in the GRALLOC_USAGE_HW_2D constant.
Merge commit 'bab54e08ff09cce218a9491466d792c1f938b520'

* commit 'bab54e08ff09cce218a9491466d792c1f938b520':
  Fix a typo in the GRALLOC_USAGE_HW_2D constant.
2010-07-01 16:59:52 -07:00
Jamie Gennis
95d78bef32 Add 4 private gralloc usage bits.
The private gralloc usage bits can be used to specify device-specific
allocation requirements.

Change-Id: Idc4fbdd3dd7b71767143cf3df5886dfaf43e50a4
2010-07-01 16:49:52 -07:00
Jamie Gennis
aabb702923 Fix a typo in the GRALLOC_USAGE_HW_2D constant.
Change-Id: I3de500455715298765b2e27bc8c59e2ec6c7a34f
2010-07-01 16:49:07 -07:00
Mike Lockwood
ffc682e857 am 2dccee88: am 00758793: Merge "GPS: Add callback for creating threads that can call into the Java VM." into gingerbread
Merge commit '2dccee88188e46811f0d7713b8d5e24a40a95df3'

* commit '2dccee88188e46811f0d7713b8d5e24a40a95df3':
  GPS: Add callback for creating threads that can call into the Java VM.
2010-06-23 10:30:52 -07:00
Mathias Agopian
421a0c3169 am 79f188b0: am 28147965: remove unused YUV formats
Merge commit '79f188b0b72683b169f7397b4caa2d2183c3bdc3'

* commit '79f188b0b72683b169f7397b4caa2d2183c3bdc3':
  remove unused YUV formats
2010-06-23 10:30:19 -07:00
Mathias Agopian
4d4d4eeb4a am e65f0e37: am 373a9c6e: Add some useful YUV formats. Add fourcc version of the definitions.
Merge commit 'e65f0e37255acb272cb4b25c1724f46b66ffb825'

* commit 'e65f0e37255acb272cb4b25c1724f46b66ffb825':
  Add some useful YUV formats. Add fourcc version of the definitions.
2010-06-23 10:17:33 -07:00
Mike Lockwood
00758793ab Merge "GPS: Add callback for creating threads that can call into the Java VM." into gingerbread 2010-06-22 06:43:50 -07:00
Mathias Agopian
28147965b4 remove unused YUV formats
Change-Id: I328cac1ed8bb2acb105ee118d8a87bdb39a545e6
2010-06-21 18:22:36 -07:00
Mike Lockwood
4453b5bfc9 GPS: Add callback for creating threads that can call into the Java VM.
To eliminate an unnecessary thread in the framework GPS code, we now
require the GPS HAL to call callbacks from a thread created using the
create_thread_cb.  Such threads are able to call directly into Java,
eliminating a polling thread in the GpsLocationProvider code.

Change-Id: I91eeea73b8908f10f10a93ae71034c63f806e8a1
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-06-20 14:23:10 -07:00
Mathias Agopian
373a9c6efe Add some useful YUV formats. Add fourcc version of the definitions.
also removed incorrect 4:2:0 interleaved formats

Change-Id: Ib477de86504cc67861def16fc4dfdae0dd3eb59d
2010-06-15 17:32:16 -07:00
Dan Murphy
2b9fcc36e2 hardware/include: Add the pressure to the sensor data structure
Add the pressure variable to the sensor.h file for barometer.

Change-Id: Ie05b65f9215639cee6dc3ae926a0cc07e673e5b6
Signed-off-by: Dan Murphy <wldm10@motorola.com>
2010-06-10 12:21:00 -07:00
Mike Lockwood
b15879a589 GPS API enhancements:
Add set_capabilities callback to inform the framework of the engine's capabilities.
Add more parameters to set_position_mode

Change-Id: I75572979c031ffc0d915bb9e8aebce09d4982336
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-14 15:38:22 -04:00
Mike Lockwood
d20bbae343 Add wake lock utility functions for the GPS HAL.
Change-Id: Ia7e20dec1a658f5506004ed29632f6a720c77fab
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-14 14:45:49 -04:00
Mike Lockwood
da4947ea97 New GPS HAL Interface
This change converts the hardware_legacy API to a HAL API.
More cleanup work will likely follow.

Change-Id: I6bd23b94ae458b0de32827c704a481564772ee3b
2010-04-05 15:45:13 -07:00
Mike Lockwood
9b0b1c34ec New GPS HAL Interface
This change converts the hardware_legacy API to a HAL API.
More cleanup work will likely follow.

Change-Id: Ia4f9f8a9b12d84c239d367db3ad1dfdc830e0aba
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-04-05 14:21:44 -04:00
Mathias Agopian
19ea59f865 [2472946] Sensor.TYPE_ORIENTATION returns inverted roll values
update the documentation is sensors.h to reflect reality.
2010-02-26 13:30:21 -08:00
Mathias Agopian
9e149fc6e1 fix typo 2010-02-17 21:27:20 -08:00
Mathias Agopian
ad8322bfe4 renumber the YCbCr constants to keep binary compatiblity with previous releases 2010-02-17 17:51:06 -08:00
Mathias Agopian
662b534530 add missing yuv constants 2010-02-16 19:43:19 -08:00
Dima Zavin
38a0138caf hal: Add nv12_tiled/nv21 pixel format constants
Change-Id: I6a906cf9fb1539c1876f3737b409ed0598075c8e
Signed-off-by: Dima Zavin <dima@android.com>
2010-02-16 10:14:47 -08:00
Mike Lockwood
baf21439df Add brightnessMode field to light_state_t
This is to allow the framework to inform the lights HAL of the current
lighting mode for the LCD backlight.

Change-Id: I665653c4b9097c4dd92bf0aaa5d83953e134a886
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-10 07:51:33 -05:00
Eric Olsen
a58556d7d8 Add support for colored jogball (adds hardware flash mode)
Signed-off-by: Eric Olsen <eolsen@android.com>
2009-11-04 17:51:56 -08:00
Mike Lockwood
c93ee2545a Remove obsolete hardware auto-brightness support.
Change-Id: Iab4bf538268c166a16b4b80f0a2c6361d63c2e2d
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-03 11:39:04 -05:00
Mike Lockwood
a241431607 Add documentation for proximity and light sensors.
Change-Id: I5692e803e33aefbfd79c156fec7700d972140dc4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-11-03 10:29:50 -05:00
Mathias Agopian
cd2433f380 fix[2222341] Soft reset while going back from camcorder settings
add a way to convert a mapped "pushbuffer" buffer to a gralloc handle
which then can be safely used by surfaceflinger
2009-10-30 14:38:22 -07:00
Mike Lockwood
4016d6bc35 Add comment warning to not use hardware based autobrightness support.
This is deprecated and will be removed in the next release.

Change-Id: I5a5e93b99ae722dfcd0e9cf6415c8af6a71e6eab
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-25 11:55:00 -04:00
Mathias Agopian
8255d9d3b6 Android side of the fix for [2121211] Sholes has stutter during animations
a new method, compostionComplete() is added to the framebuffer hal, it is used by surfaceflinger to signal the driver that the composition is complete, BEFORE it releases its client. This gives a chance to the driver to perfrom the proper synchronization.
2009-09-17 16:15:36 -07:00
Snigdha Sinha
adc7f1ba08 OVERLAY_FORMAT_DEFAULT for overlay
Originally from: https://partner.source.android.com/g/#change,922
2009-09-08 22:39:56 -07:00
Mike Lockwood
2bedac69dc sensors: whitespace clean up
Change-Id: I49da2d17dae2f9f958a0ccb205c41a83c123802c
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-04 12:09:05 -04:00
Mike Lockwood
fbbb347f17 sensors: Add optional close_data_source call
Change-Id: I591afea509ee055211a4beeaa83b12692e251f67
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-29 11:55:27 -04:00
Iliyan Malchev
61fee89f2d libhardware: add a field for reporting light levels
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-08-20 16:47:17 -07:00
Mathias Agopian
9d82c1a447 add typedefs to gralloc and hardware.h so it's more C friendly 2009-08-19 11:20:55 -07:00
Mathias Agopian
7d512e3dc3 add support for RGBX_8888 2009-08-07 20:55:37 -07:00
Benny Wong
75cdfbb45d Added resizeInput and setAttributes function declarations to overlay hal 2009-07-29 17:48:04 -07:00
Dan Murphy
e00013c495 lights: Header file updates for ALS support codes
These changes adds ALS support to the lighting system

Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-07-28 08:48:37 -07:00
Rebecca Schultz Zavin
dbb872157b Remove redundant defines, these were only necessary while changes were
being staged to another repo

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
2009-07-17 16:28:02 -07:00
Benny Wong
49b02f75eb Color Format and Overlay Functions
Add hardware overlay related function declarations and more color format enums
2009-07-17 16:26:25 -07:00
Iliyan Malchev
f5a22bcfa6 libhardware: add data field for proximity sensors
Signed-off-by: Iliyan Malchev <malchev@google.com>
2009-07-08 13:54:17 -07:00
Mathias Agopian
689fa73c06 copybit now uses a native_handle_t* instead of a fd/offset 2009-06-24 20:36:52 -07:00
Mathias Agopian
5b44567e00 Merge commit 'goog/master' into merge_master 2009-06-05 15:45:43 -07:00
Bill Napier
8d567480b4 Update open_data_source documentation to accurately reflect the correct return value on error. 2009-06-02 17:46:10 -07:00
Mathias Agopian
8aee7e58cf Merge commit 'goog/master' into merge_master 2009-05-27 14:25:54 -07:00
Mike Lockwood
21b652f933 Sensors: Use a native_handle for the data channel instead of a single file descriptor.
This eliminates the requirement that all sensors share a single file descriptor.
This, along with concurrent changes in other projects, fixes bugs b/1614524 and b/1614481

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-05-22 17:44:40 -04:00
Mathias Agopian
da1cfb76c5 Merge commit 'goog/master' into merge_master 2009-05-22 00:59:36 -07:00
Mathias Agopian
465cf474be fix [1847499] sensors.h : "roll" documentation is wrong 2009-05-18 14:09:59 -07:00
Mathias Agopian
f5cf8f842a better documentation for (*setUpdateRect)() 2009-05-07 17:39:31 -07:00
Mathias Agopian
485e69809a better documentation and implementation for lock/unlock 2009-05-05 20:49:49 -07:00
Mathias Agopian
295190f426 get rid of unused/needed flags 2009-05-05 18:30:52 -07:00
Mathias Agopian
988b8bd553 lock will now return the vaddr of the buffer. map/umap are gone.
- make sure to return an error if a buffer is locked twice or unlocked while not locked.
- added registerBuffer() and unregisterBuffer() to the gralloc module so that we can do some cleanup when a buffer is no longer needed. this became necessary after we removed map/unmap so we have a place to unmap buffers without the need of a kernel module.
- change the constants for GRALLOC_USAGE_SW_{READ|WRITE}_NEVER to 0, so that NOT specifying them means "NEVER".
2009-05-04 14:26:56 -07:00
Mathias Agopian
a8a75166a2 Integrate from //sandbox/mathias/donut/...@145728
SurfaceFlinger rework for new EGL driver model support.
2009-04-10 14:24:31 -07:00
Mathias Agopian
cfce2add7e AI 143310: am: CL 143161 am: CL 142857 Add some bluring to the animation. This requires a new kernel which will be checked-in later, at which point the blur effect will automatically be enabled.
Original author: mathias
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143310
2009-03-27 17:59:33 -07:00
Mathias Agopian
86db8a1f72 AI 143161: am: CL 142857 Add some bluring to the animation. This requires a new kernel which will be checked-in later, at which point the blur effect will automatically be enabled.
Original author: mathias
  Merged from: //branches/cupcake/...

Automated import of CL 143161
2009-03-27 15:40:03 -07:00
The Android Open Source Project
65f2d3aeee auto import from //branches/cupcake_rel/...@140373 2009-03-18 17:39:47 -07:00
The Android Open Source Project
f53ebec387 auto import from //depot/cupcake/@135843 2009-03-03 19:32:14 -08:00
The Android Open Source Project
d51f49a11d auto import from //depot/cupcake/@135843 2009-03-03 18:28:48 -08:00
The Android Open Source Project
a5d999ff17 auto import from //branches/cupcake/...@131421 2009-02-13 12:57:52 -08:00
The Android Open Source Project
b376203efb auto import from //branches/cupcake/...@130745 2009-02-10 15:44:04 -08:00
The Android Open Source Project
f87393cb24 auto import from //branches/cupcake/...@127101 2009-01-20 14:03:59 -08:00
The Android Open Source Project
0100d517b1 auto import from //branches/cupcake/...@126645 2009-01-15 16:12:12 -08:00
The Android Open Source Project
699d24ab11 auto import from //branches/cupcake/...@125939 2009-01-09 17:51:24 -08:00
The Android Open Source Project
51704bed79 Code drop from //branches/cupcake/...@124589 2008-12-17 18:05:50 -08:00
The Android Open Source Project
d6054a3647 Initial Contribution 2008-10-21 07:00:00 -07:00