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
Mathias Agopian
5115665397
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.
2009-06-09 20:50:34 -07:00
Mathias Agopian
5b44567e00
Merge commit 'goog/master' into merge_master
2009-06-05 15:45:43 -07:00
Mathias Agopian
82f7c04155
suppress spurious debug log
2009-06-03 19:03:26 -07:00
Bill Napier
5afaa8accc
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.
2009-06-03 13:00:03 -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
Mathias Agopian
8aee7e58cf
Merge commit 'goog/master' into merge_master
2009-05-27 14:25:54 -07:00
Mike Lockwood
61caa2cf75
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.
2009-05-23 10:36:45 -07:00
Mike Lockwood
21b652f933
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>
2009-05-22 17:44:40 -04:00