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
Patrick Scott
baf99300f7
Remove call to dump_l.
...
This fail to compile without NDEBUG and the following log statement does
something similar.
2009-10-29 08:33:42 -04: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
David 'Digit' Turner
2b811adcbc
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.
2009-09-25 02:31:47 -07:00
Mathias Agopian
cab816fb6d
fix a bug I introduced recently where the "default" HAL module would not be loaded.
2009-09-24 15:11:04 -07:00
Mathias Agopian
3f03e98dbf
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.
2009-09-21 22:50:44 -07: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
Android (Google) Code Review
2a8477c899
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
2009-08-19 13:18:38 -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
fc05413281
split gralloc_priv.h and make sure it is C friendly
2009-08-18 17:35:44 -07:00
Mathias Agopian
876b4e8b84
integrate this change from the generic gralloc
2009-08-18 17:24:52 -07:00
Mathias Agopian
ed04f7871b
don't memset ashmem region, especially before they're mmapped
2009-08-08 17:01:18 -07:00
Mathias Agopian
7d512e3dc3
add support for RGBX_8888
2009-08-07 20:55:37 -07:00
Mathias Agopian
e83629abb9
make sure to clear surface's buffers when they are allocated
2009-08-07 18:13:47 -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
Jean-Baptiste Queru
24a9a66dba
reconcile korg/master into goog/master
2009-07-26 11:43:55 -07:00
Jean-Baptiste Queru
f0a3c389eb
Merge korg/donut into korg/master
2009-07-25 17:48:02 -07:00
Android (Google) Code Review
93614c25ae
Merge change 7784
...
* changes:
Remove redundant defines, these were only necessary while changes were being staged to another repo
2009-07-20 11:34:39 -07:00
Android (Google) Code Review
9e44c4f198
Merge change 5893
...
* changes:
Color Format and Overlay Functions
2009-07-17 23:37:19 -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
Marco Nelissen
15c9d3af0d
Fix the simulator build.
2009-07-17 11:15:18 -07:00
Mathias Agopian
3e1f89bcca
fix [1980202] Surfaceflinger crash with transparent rollo on firestone
...
we now automatically size the pmem region isntead of using hardcoded values
2009-07-16 18:06:19 -07:00
Mathias Agopian
6d125da5d2
generic gralloc HAL doesn't need to support partial updates using msm7k specific ioctl.
2009-07-15 15:12:13 -07:00
Mathias Agopian
05eacf533e
better logs
2009-07-13 18:32:37 -07:00
Mathias Agopian
82aee24379
automatically detect update-on-demand
2009-07-13 14:54:52 -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
bd80b38f29
more fixes for [1965730]. We now free (unmap) both ashmem and pmem regions.
2009-07-07 17:53:43 -07:00
Mathias Agopian
440d4e4741
for [1965730], give a better name to gralloc buffers
2009-07-07 16:36:31 -07:00
Mathias Agopian
85ce19a4d3
fix [1965730] Device always give force close screen and completely unusable in Éclair build ERC07,rebooted automatically
2009-07-07 16:30:42 -07:00
Mathias Agopian
bfc010a750
better fix for gralloc on sim
2009-07-07 12:43:35 -07:00
Android (Google) Code Review
d34fd72bfd
Merge change 6375
...
* changes:
Fix build on some linux distros.
2009-07-07 12:21:48 -07:00
Mathias Agopian
d28d7e87f8
fix [1965734] Screen flickers a lot [Sholes]
2009-07-07 12:20:31 -07:00
Andy McFadden
f84106910d
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.
2009-07-07 11:29:32 -07:00
Marco Nelissen
a4b587cb06
Simulator build fixes for the new GL stuff. The simulator still doesn't run, but at least it builds.
2009-07-07 09:29:00 -07:00
Mathias Agopian
cdb66fbc8a
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.
2009-07-06 20:56:13 -07:00
Mathias Agopian
3d6ddfe771
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.
2009-07-06 20:54:51 -07:00
Mathias Agopian
da1b975339
Merge commit 'goog/master_gl' into merge_master_gl
2009-07-06 15:01:04 -07:00
Mathias Agopian
14784235ab
make sure to UNSLAP pmem buffers when they're destroyed/freed, as the client could still have them mmapped
2009-07-02 17:32:15 -07:00
Mathias Agopian
8bf1f75268
add support for YUV formats
2009-06-25 17:38:50 -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
31802ca9c0
fallback to ashmem when pmem is not availlable
2009-06-19 16:14:09 -07:00
Mathias Agopian
ed93e8b392
suppress debug log
2009-06-16 18:26:17 -07:00
Mathias Agopian
8c4ab1fa14
pmem allocator in gralloc. enabled for all surfaces. currently it uses a lot more address space than needed.
2009-06-16 18:16:38 -07:00
Mathias Agopian
72c8508db9
add an offset field to gralloc handles so the framebuffer can work with copybit
2009-06-10 16:06:28 -07:00