OSDN Git Service
Chia-I Wu [Wed, 20 Apr 2011 09:28:43 +0000 (17:28 +0800)]
gralloc: add enter/leave vt
Change-Id: Ic49608824b11016d0b76a624fe058864e3f40a31
Chih-Wei Huang [Thu, 2 Dec 2010 03:54:46 +0000 (11:54 +0800)]
gralloc: fallback to use fewer buffer on mapping error
Change-Id: I6be89437fd10bdc3f5e05d56944d3d547bffbf3c
Chih-Wei Huang [Thu, 2 Dec 2010 03:27:10 +0000 (11:27 +0800)]
gralloc: auto select pixel format according to color depth
Change-Id: I1e6db2bbe03260d156644ca0700eb2e3e02956dc
Chih-Wei Huang [Thu, 2 Dec 2010 02:43:31 +0000 (10:43 +0800)]
gralloc: fix a crashing issue due to info.pixclock = 0
Some (buggy?) framebuffer drivers (e.g., i915 and nouveau) report
info.pixclock = 0, which results in a divide-by-zero problem.
Change-Id: I9758b9b2370ceba89af60801be55a40f2987b307
Chia-I Wu [Mon, 11 Oct 2010 05:17:10 +0000 (13:17 +0800)]
gralloc: Add DRM actions.
Change-Id: I1eaefcea4da6ed01b769717d69ef08cce7ce7ef4
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.
Mathias Agopian [Tue, 7 Jul 2009 03:19:16 +0000 (20:19 -0700)]
fix [
1964228] emulator crash with the new GL
gralloc didn't keep the error state properly, so after the first pmem allocation failure, it would systematically fail without reverting to ashmem.
Mathias Agopian [Mon, 6 Jul 2009 22:01:04 +0000 (15:01 -0700)]
Merge commit 'goog/master_gl' into merge_master_gl
Mathias Agopian [Fri, 3 Jul 2009 00:32:15 +0000 (17:32 -0700)]
make sure to UNSLAP pmem buffers when they're destroyed/freed, as the client could still have them mmapped
Mathias Agopian [Fri, 26 Jun 2009 00:38:50 +0000 (17:38 -0700)]
add support for YUV formats
Mathias Agopian [Wed, 24 Jun 2009 23:54:44 +0000 (16:54 -0700)]
copybit now uses a native_handle_t* instead of a fd/offset
Mathias Agopian [Fri, 19 Jun 2009 23:14:09 +0000 (16:14 -0700)]
fallback to ashmem when pmem is not availlable
Mathias Agopian [Wed, 17 Jun 2009 01:22:45 +0000 (18:22 -0700)]
suppress debug log
Mathias Agopian [Thu, 11 Jun 2009 23:32:05 +0000 (16:32 -0700)]
pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot more address space than needed.
Mathias Agopian [Wed, 10 Jun 2009 23:06:28 +0000 (16:06 -0700)]
add an offset field to gralloc handles so the framebuffer can work with copybit
Mathias Agopian [Wed, 10 Jun 2009 01:55:49 +0000 (18:55 -0700)]
with the new lock/unlock API we don't really mean reference counting on mmap/munmap because we're guaranteed to map the buffers only once within a process.
no need to track all handles anymore, which simplifies the code a lot.
Mathias Agopian [Fri, 5 Jun 2009 22:45:43 +0000 (15:45 -0700)]
Merge commit 'goog/master' into merge_master
Mathias Agopian [Thu, 4 Jun 2009 02:03:26 +0000 (19:03 -0700)]
suppress spurious debug log
Bill Napier [Wed, 3 Jun 2009 20:00:03 +0000 (13:00 -0700)]
am
8d567480: Update open_data_source documentation to accurately reflect the correct return value on error.
Merge commit '
8d567480b45a801a1955e4743c5eeae431d58f56'
* commit '
8d567480b45a801a1955e4743c5eeae431d58f56':
Update open_data_source documentation to accurately reflect the correct return value on error.
Bill Napier [Wed, 3 Jun 2009 00:45:08 +0000 (17:45 -0700)]
Update open_data_source documentation to accurately reflect the correct return value on error.
Mathias Agopian [Wed, 27 May 2009 21:25:54 +0000 (14:25 -0700)]
Merge commit 'goog/master' into merge_master
Mike Lockwood [Sat, 23 May 2009 17:36:45 +0000 (10:36 -0700)]
am
21b652f9: Sensors: Use a native_handle for the data channel instead of a single file descriptor.
Merge commit '
21b652f933b21aa37bd73364b486347fcc333d5c'
* commit '
21b652f933b21aa37bd73364b486347fcc333d5c':
Sensors: Use a native_handle for the data channel instead of a single file descriptor.
Mike Lockwood [Fri, 22 May 2009 14:05:48 +0000 (10:05 -0400)]
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>
Mathias Agopian [Fri, 22 May 2009 07:59:36 +0000 (00:59 -0700)]
Merge commit 'goog/master' into merge_master
Mathias Agopian [Tue, 19 May 2009 06:56:10 +0000 (23:56 -0700)]
am
465cf474: fix [
1847499] sensors.h : "roll" documentation is wrong
Merge commit '
465cf474beaf67c3d8b7fe6889ad74c1cfc572e1'
* commit '
465cf474beaf67c3d8b7fe6889ad74c1cfc572e1':
fix [
1847499] sensors.h : "roll" documentation is wrong
Mathias Agopian [Mon, 18 May 2009 21:09:59 +0000 (14:09 -0700)]
fix [
1847499] sensors.h : "roll" documentation is wrong
Mathias Agopian [Fri, 8 May 2009 00:39:31 +0000 (17:39 -0700)]
better documentation for (*setUpdateRect)()
Mathias Agopian [Wed, 6 May 2009 03:21:57 +0000 (20:21 -0700)]
better documentation and implementation for lock/unlock
Mathias Agopian [Wed, 6 May 2009 01:30:52 +0000 (18:30 -0700)]
get rid of unused/needed flags
Mathias Agopian [Mon, 4 May 2009 21:26:56 +0000 (14:26 -0700)]
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".
Mathias Agopian [Tue, 28 Apr 2009 22:24:01 +0000 (15:24 -0700)]
Merge commit 'goog/master' into merge_master