OSDN Git Service
Yi Sun [Mon, 7 Dec 2009 07:09:04 +0000 (23:09 -0800)]
fixed one deadlock in init_pmem_area
Also add a hack to make the gralloc to use ashmem.
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
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:46:07 +0000 (18:46 -0800)]
eclair snapshot
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 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 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 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
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
Jean-Baptiste Queru [Thu, 23 Apr 2009 01:33:17 +0000 (18:33 -0700)]
Merge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:58 +0000 (17:56 -0700)]
merge cupcake into donut
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:12:35 +0000 (17:12 -0700)]
Merge donut into master
Mathias Agopian [Wed, 15 Apr 2009 01:24:09 +0000 (18:24 -0700)]
don't automatically unmap buffers when they're freed
this is in preparation to an api change wrt gralloc map/unmap
Mathias Agopian [Fri, 10 Apr 2009 21:26:14 +0000 (14:26 -0700)]
Merge commit 'goog/master' into master_gl
Mathias Agopian [Fri, 10 Apr 2009 21:24:31 +0000 (14:24 -0700)]
Integrate from //sandbox/mathias/donut/...@145728
SurfaceFlinger rework for new EGL driver model support.
The Android Open Source Project [Sun, 29 Mar 2009 15:55:10 +0000 (08:55 -0700)]
Merge branch 'open_source_no_contributions' into google_internal
Mathias Agopian [Sat, 28 Mar 2009 00:59:33 +0000 (17:59 -0700)]
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
Mathias Agopian [Fri, 27 Mar 2009 22:40:03 +0000 (15:40 -0700)]
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
The Android Open Source Project [Fri, 27 Mar 2009 22:31:11 +0000 (15:31 -0700)]
Merge commit 'korg/cupcake'
Mathias Agopian [Thu, 26 Mar 2009 04:43:45 +0000 (21:43 -0700)]
Automated import from //branches/cupcake/...@142857,142857
The Android Open Source Project [Thu, 19 Mar 2009 00:39:47 +0000 (17:39 -0700)]
auto import from //branches/cupcake_rel/...@140373
Jean-Baptiste Queru [Tue, 17 Mar 2009 23:30:41 +0000 (16:30 -0700)]
Merge commit 'remotes/korg/cupcake' into merge
Conflicts:
include/hardware/overlay.h
The Android Open Source Project [Fri, 13 Mar 2009 20:04:23 +0000 (13:04 -0700)]
auto import from //branches/cupcake_rel/...@138607
The Android Open Source Project [Wed, 4 Mar 2009 03:32:14 +0000 (19:32 -0800)]
auto import from //depot/cupcake/@135843
The Android Open Source Project [Wed, 4 Mar 2009 02:28:48 +0000 (18:28 -0800)]
auto import from //depot/cupcake/@135843
The Android Open Source Project [Fri, 20 Feb 2009 15:38:32 +0000 (07:38 -0800)]
auto import from //branches/cupcake/...@132569
Rebecca Schultz Zavin [Sat, 14 Feb 2009 01:05:03 +0000 (17:05 -0800)]
Add getBufferCount to overlay HAL
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
The Android Open Source Project [Fri, 13 Feb 2009 20:57:52 +0000 (12:57 -0800)]
auto import from //branches/cupcake/...@131421
The Android Open Source Project [Tue, 10 Feb 2009 23:44:04 +0000 (15:44 -0800)]
auto import from //branches/cupcake/...@130745
The Android Open Source Project [Tue, 20 Jan 2009 22:05:36 +0000 (14:05 -0800)]
Merge branch 'cupcake'
The Android Open Source Project [Tue, 20 Jan 2009 22:03:59 +0000 (14:03 -0800)]
auto import from //branches/cupcake/...@127101
android-build SharedAccount [Fri, 16 Jan 2009 00:16:04 +0000 (16:16 -0800)]
Merge branch 'cupcake'
The Android Open Source Project [Fri, 16 Jan 2009 00:12:12 +0000 (16:12 -0800)]
auto import from //branches/cupcake/...@126645
The Android Open Source Project [Sat, 10 Jan 2009 02:04:22 +0000 (18:04 -0800)]
Merge branch 'cupcake'
The Android Open Source Project [Sat, 10 Jan 2009 01:51:24 +0000 (17:51 -0800)]
auto import from //branches/cupcake/...@125939