Commit graph

71 commits

Author SHA1 Message Date
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
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
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