OSDN Git Service
Mathias Agopian [Wed, 11 Aug 2010 23:15:42 +0000 (16:15 -0700)]
Add a helper for dumping layers into the log
Change-Id: I0943d9114c33b4800fb797bac316041dec992f5e
Mathias Agopian [Tue, 10 Aug 2010 20:50:35 +0000 (13:50 -0700)]
Merge "first stab at hwcomposer HAL and default implementation." into gingerbread
Mathias Agopian [Thu, 5 Aug 2010 22:24:35 +0000 (15:24 -0700)]
first stab at hwcomposer HAL and default implementation.
Change-Id: I7ff47b94a6b34a8f61031bd94e936a088dcea6ab
Mathias Agopian [Sat, 7 Aug 2010 00:50:56 +0000 (17:50 -0700)]
fix typo in default overlay hal
Change-Id: I5313691acee74dfd69639946c01232256b22bc51
Mathias Agopian [Sat, 31 Jul 2010 00:57:02 +0000 (17:57 -0700)]
temporary hack to allow compilation of adreno driver
Change-Id: Ib3c260df2c22e1c59c5380278ea470e34aedbd81
Mathias Agopian [Thu, 29 Jul 2010 22:33:22 +0000 (15:33 -0700)]
improved comments and added a minDelay attribute to sensor_t
Change-Id: Ie00fe8260089614e15f1f8035b8392711dff048c
Mathias Agopian [Thu, 29 Jul 2010 22:22:30 +0000 (15:22 -0700)]
Added definition/documentation for pressure sensors
Change-Id: I68b1bb74ebf1aceee09b6e8cbb8e37b906dbdcd0
Mathias Agopian [Sat, 24 Jul 2010 00:23:43 +0000 (17:23 -0700)]
improve sensor HAL documentation
Change-Id: If443c1d2e48c697fa8774bd94af4e65866d1dedb
Mathias Agopian [Fri, 23 Jul 2010 00:11:50 +0000 (17:11 -0700)]
Be more explicit about the rate at which sensor events must be returned
Change-Id: I937e84c34c539b4e3ff34eddcf4fb24e2866ebfa
Mathias Agopian [Wed, 21 Jul 2010 01:01:19 +0000 (18:01 -0700)]
fix the nusensor test
it used the sensor handle instead of the sensor type
Change-Id: I8a1bc11826427bde9fb88d6fe88be58e3b8d2397
Mathias Agopian [Mon, 19 Jul 2010 22:32:24 +0000 (15:32 -0700)]
move the old sensorHAL interface into a separate header
sensors_deprecated.h is included from sensors.h, for
easier reading.
Change-Id: I97883e1db73beb6c612da2ec023ee6bb8d4858c3
Mathias Agopian [Fri, 16 Jul 2010 01:29:03 +0000 (18:29 -0700)]
new sensor_event_t structure for the new HAL that can handle bigger payloads
Change-Id: I8f21e457c308eea9cb1f73b49b1fed36627ec55e
Mathias Agopian [Thu, 8 Jul 2010 23:44:54 +0000 (16:44 -0700)]
New sensor HAL and test
Change-Id: I216e3dd0b2b45829fef7c682774d2cdd8271d4e7
Mathias Agopian [Wed, 7 Jul 2010 21:54:14 +0000 (14:54 -0700)]
Remove the YV16 format.
Change-Id: I12f72cf91a66d78499983221925ac68ca646efc8
Mathias Agopian [Fri, 2 Jul 2010 04:28:06 +0000 (21:28 -0700)]
Merge "remove h/w specific YUV formats from the HAL" into gingerbread
Mathias Agopian [Fri, 2 Jul 2010 03:36:08 +0000 (20:36 -0700)]
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
Jamie Gennis [Thu, 1 Jul 2010 23:49:52 +0000 (16:49 -0700)]
Add 4 private gralloc usage bits.
The private gralloc usage bits can be used to specify device-specific
allocation requirements.
Change-Id: Idc4fbdd3dd7b71767143cf3df5886dfaf43e50a4
Jamie Gennis [Thu, 1 Jul 2010 23:49:07 +0000 (16:49 -0700)]
Fix a typo in the GRALLOC_USAGE_HW_2D constant.
Change-Id: I3de500455715298765b2e27bc8c59e2ec6c7a34f
Mike Lockwood [Tue, 22 Jun 2010 13:43:50 +0000 (06:43 -0700)]
Merge "GPS: Add callback for creating threads that can call into the Java VM." into gingerbread
Mathias Agopian [Tue, 22 Jun 2010 00:46:10 +0000 (17:46 -0700)]
remove unused YUV formats
Change-Id: I328cac1ed8bb2acb105ee118d8a87bdb39a545e6
Mike Lockwood [Sun, 20 Jun 2010 21:23:10 +0000 (14:23 -0700)]
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>
Mathias Agopian [Tue, 15 Jun 2010 04:08:00 +0000 (21:08 -0700)]
Add some useful YUV formats. Add fourcc version of the definitions.
also removed incorrect 4:2:0 interleaved formats
Change-Id: Ib477de86504cc67861def16fc4dfdae0dd3eb59d
Mike Lockwood [Wed, 14 Apr 2010 19:36:34 +0000 (15:36 -0400)]
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>
Mike Lockwood [Wed, 7 Apr 2010 13:04:25 +0000 (09:04 -0400)]
Add wake lock utility functions for the GPS HAL.
Change-Id: Ia7e20dec1a658f5506004ed29632f6a720c77fab
Signed-off-by: Mike Lockwood <lockwood@android.com>
The Android Open Source Project [Mon, 12 Apr 2010 20:35:17 +0000 (13:35 -0700)]
am
804c3e10: merge from open-source master
Merge commit '
804c3e10774b1b05f958d9b860a814abbd4a6c9b' into kraken
* commit '
804c3e10774b1b05f958d9b860a814abbd4a6c9b':
New GPS HAL Interface
The Android Open Source Project [Mon, 12 Apr 2010 20:31:56 +0000 (13:31 -0700)]
merge from open-source master
Change-Id: Id5e821e29b8d7ad1c1e103c8f219934bb0214eb8
Mike Lockwood [Tue, 23 Feb 2010 23:42:37 +0000 (18:42 -0500)]
New GPS HAL Interface
This change converts the hardware_legacy API to a HAL API.
More cleanup work will likely follow.
Change-Id: I6bd23b94ae458b0de32827c704a481564772ee3b
Mike Lockwood [Tue, 6 Apr 2010 14:16:33 +0000 (07:16 -0700)]
am
da4947ea: New GPS HAL Interface
Merge commit '
da4947ea976b0174bf2938d8a375cb0da485ecf4' into kraken
* commit '
da4947ea976b0174bf2938d8a375cb0da485ecf4':
New GPS HAL Interface
Mike Lockwood [Tue, 23 Feb 2010 23:42:37 +0000 (18:42 -0500)]
New GPS HAL Interface
This change converts the hardware_legacy API to a HAL API.
More cleanup work will likely follow.
Change-Id: I6bd23b94ae458b0de32827c704a481564772ee3b
Mike Lockwood [Tue, 23 Feb 2010 23:42:37 +0000 (18:42 -0500)]
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>
Jean-Baptiste Queru [Tue, 9 Mar 2010 02:04:52 +0000 (18:04 -0800)]
Add an empty CleanSpec.mk
Change-Id: Icc1fdd9c695af86d1fa09c90f7e729391f343d67
Mathias Agopian [Fri, 26 Feb 2010 21:15:18 +0000 (13:15 -0800)]
[
2472946] Sensor.TYPE_ORIENTATION returns inverted roll values
update the documentation is sensors.h to reflect reality.
Mathias Agopian [Thu, 18 Feb 2010 05:27:20 +0000 (21:27 -0800)]
fix typo
Mathias Agopian [Thu, 18 Feb 2010 01:51:06 +0000 (17:51 -0800)]
renumber the YCbCr constants to keep binary compatiblity with previous releases
Mathias Agopian [Wed, 17 Feb 2010 03:43:19 +0000 (19:43 -0800)]
add missing yuv constants
Mathias Agopian [Wed, 17 Feb 2010 01:03:50 +0000 (17:03 -0800)]
don't use undefined constants
Dima Zavin [Wed, 17 Feb 2010 00:30:26 +0000 (16:30 -0800)]
Merge "hal: Add nv12_tiled/nv21 pixel format constants"
Mathias Agopian [Tue, 16 Feb 2010 22:04:00 +0000 (14:04 -0800)]
fix [
2444483] gralloc size for YUV formats
Dima Zavin [Tue, 16 Feb 2010 18:14:47 +0000 (10:14 -0800)]
hal: Add nv12_tiled/nv21 pixel format constants
Change-Id: I6a906cf9fb1539c1876f3737b409ed0598075c8e
Signed-off-by: Dima Zavin <dima@android.com>
The Android Open Source Project [Fri, 5 Feb 2010 22:09:58 +0000 (14:09 -0800)]
am
e879c389: am
be0a1d3b: reconcile main tree with open-source eclair
Merge commit '
e879c389cf9bbbba209a35dc9c9b152489482711'
* commit '
e879c389cf9bbbba209a35dc9c9b152489482711':
android-2.1_r1 snapshot
The Android Open Source Project [Fri, 5 Feb 2010 16:38:43 +0000 (08:38 -0800)]
am
be0a1d3b: reconcile main tree with open-source eclair
Merge commit '
be0a1d3b7677d08b928479cfa4fa16b734183ec9' into eclair-plus-aosp
* commit '
be0a1d3b7677d08b928479cfa4fa16b734183ec9':
android-2.1_r1 snapshot
The Android Open Source Project [Fri, 5 Feb 2010 16:09:38 +0000 (08:09 -0800)]
reconcile main tree with open-source eclair
The Android Open Source Project [Fri, 29 Jan 2010 22:09:18 +0000 (14:09 -0800)]
reconcile android-2.1_r1 snapshot
The Android Open Source Project [Tue, 12 Jan 2010 23:19:04 +0000 (15:19 -0800)]
android-2.1_r1 snapshot
Mathias Agopian [Wed, 16 Dec 2009 01:22:56 +0000 (17:22 -0800)]
remove unused code
Mathias Agopian [Tue, 15 Dec 2009 02:27:09 +0000 (18:27 -0800)]
remove all references to pmem and simplify the lock/unlock hooks
this gralloc module is only used on the emulator or without a h/w
renderer. therefore there is no synchronization to do in lock/unlock
and pmem buffers are not relevant.
hopefully this will remove some of the confusion about how gralloc
should be implemented and make it more obvious that this implementation
is not intended to be used by h/w renderers.
Jean-Baptiste Queru [Sun, 15 Nov 2009 22:55:21 +0000 (14:55 -0800)]
merge from open-source master
Jean-Baptiste Queru [Sun, 15 Nov 2009 22:06:33 +0000 (14:06 -0800)]
merge from open-source master
Merge commit 'goog/stage-korg-master' into HEAD
Jean-Baptiste Queru [Sun, 15 Nov 2009 20:06:40 +0000 (12:06 -0800)]
merge from eclair
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:46:07 +0000 (18:46 -0800)]
eclair snapshot
Mike Lockwood [Tue, 10 Nov 2009 19:59:57 +0000 (11:59 -0800)]
am
baf21439: Add brightnessMode field to light_state_t
Merge commit '
baf21439df7b4e641dfa990f12c287dc53c40f09' into eclair-mr2
* commit '
baf21439df7b4e641dfa990f12c287dc53c40f09':
Add brightnessMode field to light_state_t
Mike Lockwood [Tue, 10 Nov 2009 12:51:33 +0000 (07:51 -0500)]
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>
Eric Olsen [Thu, 5 Nov 2009 02:01:27 +0000 (18:01 -0800)]
am
a58556d7: Add support for colored jogball (adds hardware flash mode)
Merge commit '
a58556d7d8919ca193ec894b3f8553357bbbccc4' into eclair-mr2
* commit '
a58556d7d8919ca193ec894b3f8553357bbbccc4':
Add support for colored jogball (adds hardware flash mode)
Eric Olsen [Thu, 5 Nov 2009 01:51:56 +0000 (17:51 -0800)]
Add support for colored jogball (adds hardware flash mode)
Signed-off-by: Eric Olsen <eolsen@android.com>
Mike Lockwood [Tue, 3 Nov 2009 17:37:35 +0000 (09:37 -0800)]
am
c93ee254: Remove obsolete hardware auto-brightness support.
Merge commit '
c93ee2545a43bc7abdbcc57533e7e3114972d8ec' into eclair-mr2
* commit '
c93ee2545a43bc7abdbcc57533e7e3114972d8ec':
Remove obsolete hardware auto-brightness support.
Mike Lockwood [Tue, 3 Nov 2009 17:37:30 +0000 (09:37 -0800)]
am
a2414316: Add documentation for proximity and light sensors.
Merge commit '
a2414316075dde4ca5c1393c662f224b36dd3fdc' into eclair-mr2
* commit '
a2414316075dde4ca5c1393c662f224b36dd3fdc':
Add documentation for proximity and light sensors.
Mike Lockwood [Tue, 3 Nov 2009 16:39:04 +0000 (11:39 -0500)]
Remove obsolete hardware auto-brightness support.
Change-Id: Iab4bf538268c166a16b4b80f0a2c6361d63c2e2d
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Tue, 3 Nov 2009 15:29:50 +0000 (10:29 -0500)]
Add documentation for proximity and light sensors.
Change-Id: I5692e803e33aefbfd79c156fec7700d972140dc4
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mathias Agopian [Fri, 30 Oct 2009 21:59:05 +0000 (14:59 -0700)]
am
cd2433f3: fix[
2222341] Soft reset while going back from camcorder settings
Merge commit '
cd2433f3804a537aedc26f595b1c05f95a05244a' into eclair-mr2
* commit '
cd2433f3804a537aedc26f595b1c05f95a05244a':
fix[
2222341] Soft reset while going back from camcorder settings
Mathias Agopian [Fri, 30 Oct 2009 01:29:39 +0000 (18:29 -0700)]
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
Patrick Scott [Thu, 29 Oct 2009 12:33:42 +0000 (08:33 -0400)]
Remove call to dump_l.
This fail to compile without NDEBUG and the following log statement does
something similar.
Mike Lockwood [Sun, 25 Oct 2009 15:55:00 +0000 (11:55 -0400)]
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>
David 'Digit' Turner [Fri, 25 Sep 2009 09:31:47 +0000 (02:31 -0700)]
Fix a bug that prevents default hw modules to be loaded properly.
The problem was a simple typo, which prevented modules like
/system/lib/hw/lib<module>.default.so from being loaded even if they
were found on the system.
This is required to fix the generic build when run in the emulator.
Mathias Agopian [Thu, 24 Sep 2009 22:11:04 +0000 (15:11 -0700)]
fix a bug I introduced recently where the "default" HAL module would not be loaded.
Mathias Agopian [Tue, 22 Sep 2009 05:50:44 +0000 (22:50 -0700)]
don't loas inapropriate HAL for a device.
Once we have determined which HAL to load and checked that the library exists,
we should not try to load another (more generic) HAL if a failure occurs, because
this could result in different process using different HALs for the same component.
Instead we just return an error.
Mathias Agopian [Thu, 17 Sep 2009 23:15:36 +0000 (16:15 -0700)]
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.
Snigdha Sinha [Thu, 3 Sep 2009 14:53:45 +0000 (09:53 -0500)]
OVERLAY_FORMAT_DEFAULT for overlay
Originally from: https://partner.source.android.com/g/#change,922
Mike Lockwood [Fri, 4 Sep 2009 16:09:05 +0000 (12:09 -0400)]
sensors: whitespace clean up
Change-Id: I49da2d17dae2f9f958a0ccb205c41a83c123802c
Signed-off-by: Mike Lockwood <lockwood@android.com>
Mike Lockwood [Sat, 29 Aug 2009 15:55:27 +0000 (11:55 -0400)]
sensors: Add optional close_data_source call
Change-Id: I591afea509ee055211a4beeaa83b12692e251f67
Signed-off-by: Mike Lockwood <lockwood@android.com>
Iliyan Malchev [Thu, 20 Aug 2009 23:47:17 +0000 (16:47 -0700)]
libhardware: add a field for reporting light levels
Signed-off-by: Iliyan Malchev <malchev@google.com>
Android (Google) Code Review [Wed, 19 Aug 2009 20:18:38 +0000 (13:18 -0700)]
Merge changes 21851,21852 into eclair
* changes:
split gralloc_priv.h and make sure it is C friendly
integrate this change from the generic gralloc
Mathias Agopian [Wed, 19 Aug 2009 18:20:55 +0000 (11:20 -0700)]
add typedefs to gralloc and hardware.h so it's more C friendly
Mathias Agopian [Wed, 19 Aug 2009 00:35:44 +0000 (17:35 -0700)]
split gralloc_priv.h and make sure it is C friendly
Mathias Agopian [Wed, 19 Aug 2009 00:22:51 +0000 (17:22 -0700)]
integrate this change from the generic gralloc
Mathias Agopian [Sun, 9 Aug 2009 00:01:18 +0000 (17:01 -0700)]
don't memset ashmem region, especially before they're mmapped
Mathias Agopian [Sat, 8 Aug 2009 03:55:37 +0000 (20:55 -0700)]
add support for RGBX_8888
Mathias Agopian [Sat, 8 Aug 2009 01:13:47 +0000 (18:13 -0700)]
make sure to clear surface's buffers when they are allocated
Benny Wong [Sat, 25 Jul 2009 00:28:26 +0000 (19:28 -0500)]
Added resizeInput and setAttributes function declarations to overlay hal
Dan Murphy [Tue, 21 Jul 2009 13:56:12 +0000 (08:56 -0500)]
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>
Jean-Baptiste Queru [Sun, 26 Jul 2009 18:43:55 +0000 (11:43 -0700)]
reconcile korg/master into goog/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:02 +0000 (17:48 -0700)]
Merge korg/donut into korg/master
Android (Google) Code Review [Mon, 20 Jul 2009 18:34:39 +0000 (11:34 -0700)]
Merge change 7784
* changes:
Remove redundant defines, these were only necessary while changes were being staged to another repo
Android (Google) Code Review [Sat, 18 Jul 2009 06:37:19 +0000 (23:37 -0700)]
Merge change 5893
* changes:
Color Format and Overlay Functions
Rebecca Schultz Zavin [Fri, 17 Jul 2009 23:28:02 +0000 (16:28 -0700)]
Remove redundant defines, these were only necessary while changes were
being staged to another repo
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Benny Wong [Tue, 7 Jul 2009 16:43:52 +0000 (11:43 -0500)]
Color Format and Overlay Functions
Add hardware overlay related function declarations and more color format enums
Marco Nelissen [Fri, 17 Jul 2009 18:14:53 +0000 (11:14 -0700)]
Fix the simulator build.
Mathias Agopian [Fri, 17 Jul 2009 01:04:54 +0000 (18:04 -0700)]
fix [
1980202] Surfaceflinger crash with transparent rollo on firestone
we now automatically size the pmem region isntead of using hardcoded values
Mathias Agopian [Wed, 15 Jul 2009 22:01:10 +0000 (15:01 -0700)]
generic gralloc HAL doesn't need to support partial updates using msm7k specific ioctl.
Mathias Agopian [Tue, 14 Jul 2009 01:32:37 +0000 (18:32 -0700)]
better logs
Mathias Agopian [Mon, 13 Jul 2009 21:30:48 +0000 (14:30 -0700)]
automatically detect update-on-demand
Iliyan Malchev [Wed, 8 Jul 2009 20:54:17 +0000 (13:54 -0700)]
libhardware: add data field for proximity sensors
Signed-off-by: Iliyan Malchev <malchev@google.com>
Mathias Agopian [Wed, 8 Jul 2009 00:53:43 +0000 (17:53 -0700)]
more fixes for [
1965730]. We now free (unmap) both ashmem and pmem regions.
Mathias Agopian [Tue, 7 Jul 2009 23:36:31 +0000 (16:36 -0700)]
for [
1965730], give a better name to gralloc buffers
Mathias Agopian [Tue, 7 Jul 2009 23:30:42 +0000 (16:30 -0700)]
fix [
1965730] Device always give force close screen and completely unusable in Éclair build ERC07,rebooted automatically
Mathias Agopian [Tue, 7 Jul 2009 19:43:35 +0000 (12:43 -0700)]
better fix for gralloc on sim
Android (Google) Code Review [Tue, 7 Jul 2009 19:21:48 +0000 (12:21 -0700)]
Merge change 6375
* changes:
Fix build on some linux distros.
Mathias Agopian [Tue, 7 Jul 2009 19:20:31 +0000 (12:20 -0700)]
fix [
1965734] Screen flickers a lot [Sholes]
Andy McFadden [Tue, 7 Jul 2009 18:29:32 +0000 (11:29 -0700)]
Fix build on some linux distros.
The place where the PAGE_SIZE value is defined varies, mostly because
you're not supposed to be using it directly. sysconf(_SC_PAGE_SIZE)
is the approved method, and in fact some Linux distros actually #define
PAGE_SIZE to the library call.
Marco Nelissen [Tue, 7 Jul 2009 16:29:00 +0000 (09:29 -0700)]
Simulator build fixes for the new GL stuff. The simulator still doesn't run, but at least it builds.
Mathias Agopian [Tue, 7 Jul 2009 03:49:05 +0000 (20:49 -0700)]
workaroud [
1964234] emulator renders funny with new gralloc.
we detect we're running on the emu (using a very bad heuristic, see
1964251) and switch UPDATE_ON_DEMAND off.