summaryrefslogtreecommitdiffstats
path: root/include/ui
Commit message (Collapse)AuthorAgeFilesLines
* Android side of the fix for [2121211] Sholes has stutter during animationsMathias Agopian2009-09-171-0/+1
| | | | 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
* 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
* fix [2068105] implement queueBuffer/lockBuffer/dequeueBuffer properlyMathias Agopian2009-09-073-21/+20
| | | | | | | | | | | | | | | 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
* 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.
* 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-131-15/+15
|
* 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
* 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).
* | Adding resizeInput and setAttributes for overlayBenny Wong2009-07-291-0/+6
|/
* 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
* | EventHub: Add support for excluding devices from being opened by as a keyboard.Mike Lockwood2009-07-161-4/+10
|/ | | | | | | This will be used to avoid unnecessarily listening to data from sensors that function as event devices. Signed-off-by: Mike Lockwood <lockwood@android.com>
* Implement virtual button support.Dianne Hackborn2009-07-141-1/+4
| | | | | | | | | | | | | | | | The kernel can now publish a property describing the layout of virtual hardware buttons on the touchscreen. These outside of the display area (outside of the absolute x and y controller range the driver reports), and when the user presses on them a key event will be generated rather than a touch event. This also includes a number of tweaks to the absolute controller processing to make things work better on the new screens. For example, we now reject down events outside of the display area. Still left to be done is the ability to cancel a key down event, so the user can slide up from the virtual keys to the touch screen without causing a virtual key to execute.
* resolved conflicts for merge of 04c7d0f8 to masterDave Sparks2009-07-083-2/+6
|\
| * Add timestamps to video frames to improve A/V sync.Dave Sparks2009-07-083-2/+6
| | | | | | | | Bug 1927069.
* | Merge commit 'goog/master' into merge_masterMathias Agopian2009-07-061-0/+6
|\ \
| * \ am c7396025: Merge change 6084 into donutAndroid (Google) Code Review2009-07-061-0/+6
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'c7396025e59524e7ef639fd86fc23123939ee91c' * commit 'c7396025e59524e7ef639fd86fc23123939ee91c': Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
| | * Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug ↵James Dong2009-07-021-0/+6
| | | | | | | | | | | | 1956726)
* | | get rid of references to MemoryDealer in SurfaceFlingerMathias Agopian2009-07-023-3/+3
| | |
* | | Merge commit 'goog/master' into merge_masterMathias Agopian2009-07-011-7/+3
|\ \ \ | |/ /
| * | am 17a80081: Merge change 5544 into donutAndroid (Google) Code Review2009-06-291-7/+3
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '17a80081a42410f541a220ab7e6afc64fc6cc399' * commit '17a80081a42410f541a220ab7e6afc64fc6cc399': Pipe all the camera callbacks to Java to facilitate the addition
| | * Pipe all the camera callbacks to Java to facilitate the additionDave Sparks2009-06-261-7/+3
| | | | | | | | | | | | | | | | | | of new features. This will make it easy to add things like zoom callbacks without modifying the entire camera stack. Bug 1837832.
* | | Region::makeBoundsSelf() efficiently turns a region to its boundsMathias Agopian2009-06-291-0/+3
| | |
* | | return bounds Rect by valueMathias Agopian2009-06-261-2/+2
| | |
* | | make use of new eglGetRenderBufferANDROID extension to clean-up a bit a few ↵Mathias Agopian2009-06-251-6/+0
| | | | | | | | | | | | hacks added recently
* | | hack copybit back in for video playback on msm7k. we have h/w accelerated ↵Mathias Agopian2009-06-241-1/+7
| | | | | | | | | | | | video again
* | | merge master in master_glMathias Agopian2009-06-241-25/+12
|\ \ \ | |/ /
| * | am a93466f5: Merge change 5220 into donutAndroid (Google) Code Review2009-06-241-5/+2
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'a93466f5ca41c2ba6c3524c8d1edc2138bf753e3' * commit 'a93466f5ca41c2ba6c3524c8d1edc2138bf753e3': Cleanup header file. Disallow copy of Camera object by making copy
| | * Cleanup header file. Disallow copy of Camera object by making copyDave Sparks2009-06-241-5/+2
| | | | | | | | | | | | constructor and operator= private.
| * | am eaa89f74: Merge change 5172 into donutAndroid (Google) Code Review2009-06-241-23/+0
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit 'eaa89f74c04c0f10d5f3f8190b457087537bff2e' * commit 'eaa89f74c04c0f10d5f3f8190b457087537bff2e': Remove deprecated callback function support.
| | * Remove deprecated callback function support.Dave Sparks2009-06-241-23/+0
| | | | | | | | | | | | | | | | | | | | | This is the last of a 3-part change to modify the camera to use a more streamlined callback interface. This change removes the old code. Bug 1884362
| * | am 3d7b8d1a: Merge change 5158 into donutAndroid (Google) Code Review2009-06-241-0/+13
| |\ \ | | |/ | | | | | | | | | | | | | | | Merge commit '3d7b8d1aa6a362292f56defbe8fb2d5653f79282' * commit '3d7b8d1aa6a362292f56defbe8fb2d5653f79282': Use a ref-counted callback interface for Camera.