summaryrefslogtreecommitdiffstats
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Implement issue #1780928: Need support hiding nav keys.Dianne Hackborn2009-09-151-1/+32
| | | | | | | | | | | | | This implements support for devices whose hardware can hide their navigation keys. It works much like the existing keyboardHidden configuration, and for compatibility uses the same configuration change bit. Also add FLAG_TURN_ON_SCREEN for windows, which has the system cause the screen to be turned on when the window is displayed. Great fun when used with FLAG_SHOW_WHEN_LOCKED! Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
* fix [2122448] android_native_window_t::setUsage() only reallocates the first ↵Mathias Agopian2009-09-151-2/+1
| | | | | | | | buffer Take 2. We needed to check that the usage flags are "good enough" as opposed to "the same". This reverts commit 8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.
* Revert "fix [2122448] android_native_window_t::setUsage() only reallocates ↵Mathias Agopian2009-09-151-1/+2
| | | | | | the first buffer" This reverts commit 486aa963b63e20b7910e1004cebb4f0afabbd80f.
* fix [2122448] android_native_window_t::setUsage() only reallocates the first ↵Mathias Agopian2009-09-151-2/+1
| | | | buffer
* Fix 2083478: Camera needs an auto-focus cancel APIChih-Chung Chang2009-09-153-0/+14
| | | | Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
* Merge change 24947 into eclairAndroid (Google) Code Review2009-09-141-0/+2
|\ | | | | | | | | * changes: make sure to update the tail pointer when undoing a dequeue
| * make sure to update the tail pointer when undoing a dequeueMathias Agopian2009-09-141-0/+2
| |
* | process: Switch to common cutils sched_policy apiSan Mehat2009-09-121-5/+0
|/ | | | Signed-off-by: San Mehat <san@google.com>
* Merge change 24643 into eclairAndroid (Google) Code Review2009-09-101-2/+3
|\ | | | | | | | | * changes: fix [2112575] stuck on DequeueCondition for a surface that doesn't exist anymore
| * fix [2112575] stuck on DequeueCondition for a surface that doesn't exist anymoreMathias Agopian2009-09-101-2/+3
| | | | | | | | this also fixes part of [2111536] Device is soft rebooted after ending the call through voice dialer
* | Merge change 24642 into eclairAndroid (Google) Code Review2009-09-101-4/+12
|\ \ | |/ | | | | | | * changes: make sure conditions will return when the status of a surface is not NO_ERROR
| * make sure conditions will return when the status of a surface is not NO_ERRORMathias Agopian2009-09-101-4/+12
| |
* | Process: Add support for using scheduler policies instead of cgroups.San Mehat2009-09-101-0/+5
|/ | | | | | Preference is given to cgroups if available. Signed-off-by: San Mehat <san@google.com>
* use broadcast() instead of signal() when signaling the condition-variable ↵Mathias Agopian2009-09-091-0/+3
| | | | | | | | Thread::RequestExitAndWait() is waiting for we could have several thread waiting on the condition and they all need to wake-up. also added a debug "mTid" field in the class, which contains the tid of the thread (as opposed to pthread_t), this is useful when debugging under gdb for instance.
* fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properlyMathias Agopian2009-09-078-178/+352
| | | | | | | | | | | | | | | Rewrote SurfaceFlinger's buffer management from the ground-up. The design now support an arbitrary number of buffers per surface, however the current implementation is limited to four. Currently only 2 buffers are used in practice. The main new feature is to be able to dequeue all buffers at once (very important when there are only two). A client can dequeue all buffers until there are none available, it can lock all buffers except the last one that is used for composition. The client will block then, until a new buffer is enqueued. The current implementation requires that buffers are locked in the same order they are dequeued and enqueued in the same order they are locked. Only one buffer can be locked at a time. eg. Allowed sequence: DQ, DQ, LOCK, Q, LOCK, Q eg. Forbidden sequence: DQ, DQ, LOCK, LOCK, Q, Q
* Calculate specular lighting correctlyMartin Storsjo2009-08-251-0/+1
| | | | | | Since the lighting calculations are done in object space, the vector from the object to the viewer also needs to be transformed to object space.
* Add offset handling in MemoryHeapBase classBenny Wong2009-08-201-2/+2
|
* fix a bug that caused the PixelFormat viewed by Surface to be wrong.Mathias Agopian2009-08-191-0/+3
| | | | | what happened is that the efective pixel format is calculated by SF but Surface nevew had access to it directly. in particular this caused query(FORMAT) to return the requested format instead of the effective format.
* Support for marshalling pointers / intptr_t in Parcel.Andreas Huber2009-08-172-0/+13
| | | | Some refactoring to eliminate code duplication in Parcel implementation.
* really be more friendly with CMathias Agopian2009-08-171-8/+8
|
* make sure to update a surface's usage bits when it changes, instead of only ↵Mathias Agopian2009-08-141-17/+35
| | | | | | the first time. also fixed a few locking issues in Surface and commented how each member is protected.
* be more friendly with CMathias Agopian2009-08-132-17/+17
|
* Surface::GPU and Surface::HARDWARE are now deprecated; they will be set ↵Mathias Agopian2009-08-131-2/+0
| | | | | | automatically if needed. this also ripples into the window manager API by making some constant there deprecated as well.
* ui: make native_window_set_usage be a static inlineDima Zavin2009-08-131-1/+1
| | | | Signed-off-by: Dima Zavin <dima@android.com>
* Modified the camera HAL interface to use the same generic callback ↵Benny Wong2009-08-132-74/+82
| | | | architecture as camera services
* am b8546001: Merge change 20878 into donutDianne Hackborn2009-08-121-0/+12
|\ | | | | | | | | | | | | Merge commit 'b8546001701405a76dad7e6235046e592296fac2' * commit 'b8546001701405a76dad7e6235046e592296fac2': Fix issue #2048263: More debugging information
| * Fix issue #2048263: More debugging informationDianne Hackborn2009-08-111-0/+12
| | | | | | | | | | We now hopefully do better about generating the anr reports, and include information about the malloc loaded assets in meminfo.
* | second take, hopefully this time it doesn't break one of the builds: ↵Mathias Agopian2009-08-114-4/+47
| | | | | | | | "SurfaceFlinger will now allocate buffers based on the usage specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything."
* | Revert "SurfaceFlinger will now allocate buffers based on the usage ↵Fred Quintana2009-08-114-47/+4
| | | | | | | | | | | | specified by the clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything." This reverts commit 8b76a0ac6fbf07254629ed1ea86af014d5abe050.
* | SurfaceFlinger will now allocate buffers based on the usage specified by the ↵Mathias Agopian2009-08-114-4/+47
| | | | | | | | | | | | | | clients. This allows to allocate the right kind of buffer automatically, without having the user to specify anything. This change makes SurfaceHolder.setType(GPU) obsolete (it's now ignored). Added an API to android_native_window_t to allow extending the functionality without ever breaking binary compatibility. This is used to implement the new set_usage() API. This API needs to be called by software renderers because the default is to use usage flags suitable for h/w.
* | Expose a variation of the createRenderer API that works on a plain Surface.Andreas Huber2009-08-101-2/+2
| |
* | added EGLUtils::strerrorMathias Agopian2009-08-071-0/+2
| |
* | Merge changes 20345,20346,20347Android (Google) Code Review2009-08-062-1/+53
|\ \ | | | | | | | | | | | | | | | | | | * changes: update most gl tests to use EGLUtils added two EGL helpers for selecting a config matching a certain pixelformat or native window type added NATIVE_WINDOW_FORMAT attribute to android_native_window_t
| * | added two EGL helpers for selecting a config matching a certain pixelformat ↵Mathias Agopian2009-08-061-0/+51
| | | | | | | | | | | | or native window type
| * | added NATIVE_WINDOW_FORMAT attribute to android_native_window_tMathias Agopian2009-08-061-1/+2
| | |
* | | EventHub: pass the name of each input device up to JavaIliyan Malchev2009-08-061-1/+1
|/ / | | | | | | Signed-off-by: Iliyan Malchev <malchev@google.com>
* | Finish implementation of multiple pointer support for MotionEvent.Dianne Hackborn2009-08-041-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The major things going on here: - The MotionEvent API is now extended to included "pointer ID" information, for applications to keep track of individual fingers as they move up and down. PointerLocation has been updated to take advantage of this. - The input system now has logic to generate MotionEvents with the new ID information, synthesizing an identifier as new points are down and trying to keep pointer ids consistent across events by looking at the distance between the last and next set of pointers. - We now support the new multitouch driver protocol, and will use that instead of the old one if it is available. We do NOT use any finger id information coming from the driver, but always synthesize pointer ids in user space. (This is simply because we don't yet have a driver reporting this information from which to base an implementation on.) - Increase maximum number of fingers to 10. This code has only been used with a driver that reports up to 2, so no idea how more will actually work. - Oh and the input system can now detect and report physical DPAD devices.
* | The IOMX interface now instantiates IOMXRenderers to hide the details of ↵Andreas Huber2009-07-311-0/+2
| | | | | | | | hardware accelerated blitting.
* | Merge change 9287Android (Google) Code Review2009-07-303-1/+21
|\ \ | | | | | | | | | | | | * changes: fixed some issues with the software renderer when surfaces are made current.
| * | fixed some issues with the software renderer when surfaces are made current.Mathias Agopian2009-07-303-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | there was several issues: - when a surface was made non-current, the last frame wasn't shown and the buffer could stay locked - when a surface was made current the 2nd time, it would not dequeue a new buffer now, queue/dequeue are done when the surface is made current. for this to work, a new query() hook had to be added on android_native_window_t, it allows to retrieve some attributes of a window (currently only width and height).
* | | am 25dff70f: Merge change 9039 into donutAndroid (Google) Code Review2009-07-301-2/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de' * commit '25dff70f153529b87f5ad4a92f4de21e8950b1de': Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
| * | Fix #2018814: System cannot correctly render assets with "wrap_content" ↵Dianne Hackborn2009-07-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | attribute in QVGA It turns out we were not returning the density for anything retrieved from a TypedArray... which basically means any bitmap references from a layout or style...!!! This is now fixed. Also fiddle with the density compatibility mode to turn on smoothing in certain situations, helping the look of things when they need to scale and we couldn't do the scaling at load time.
* | | Adding resizeInput and setAttributes for overlayBenny Wong2009-07-291-0/+6
| |/ |/|
* | Fix issue 1795088 Improve audio routing codeEric Laurent2009-07-231-2/+2
| | | | | | | | | | | | | | Initial commit for review. Integrated comments after patch set 1 review. Fixed lockup in AudioFlinger::ThreadBase::exit() Fixed lockup when playing tone with AudioPlocyService startTone()
* | Merge change 7529Android (Google) Code Review2009-07-221-2/+3
|\ \ | | | | | | | | | | | | * changes: Make MemoryDealer's destructor protected instead of public.
| * | Make MemoryDealer's destructor protected instead of public.Andreas Huber2009-07-161-2/+3
| | | | | | | | | | | | MemoryDealer, like all other subclasses of RefBase,MUST NOT BE stack-allocated, a protected destructor prohibits stack-allocation while allowing the baseclass to properly invoke the subclass' destructor once the refcount drops to 0.
* | | am 9fc20b0e: Merge change 8126 into donutAndroid (Google) Code Review2009-07-211-27/+57
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Merge commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf' * commit '9fc20b0e381b5fe00b7049ef357c839cd05a33bf': First pass at reworking screen density/size APIs.
| * | First pass at reworking screen density/size APIs.Dianne Hackborn2009-07-211-27/+57
| | | | | | | | | | | | | | | | | | | | | | | | This changes the names of the directories in aapt, to what you see in the list of DpiTest resources. Also adds a new "long" configuration for wide screens, which the platform sets appropriate, and introduces a new kind of resizeability for not large but significantly larger than normal screens which may have compatibility issues.
* | | Merge change 5892Android (Google) Code Review2009-07-201-0/+4
|\ \ \ | | | | | | | | | | | | | | | | * changes: Hardware overlay support
| * | | Hardware overlay supportBenny Wong2009-07-161-0/+4
| | |/ | |/| | | | | | | Enable hardware overlay support for camera and video playback use cases