summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* am 61220e88: am bbbab26e: am 2c180499: Merge "Revert velocity damping. Bug: ↵Jeff Brown2011-06-071-9/+0
|\ | | | | | | | | | | | | 4364920" into honeycomb-mr2 * commit '61220e880ac4d9d76b7fd50744439e68e929c697': Revert velocity damping. Bug: 4364920
| * am bbbab26e: am 2c180499: Merge "Revert velocity damping. Bug: 4364920" into ↵Jeff Brown2011-06-061-9/+0
| |\ | | | | | | | | | | | | | | | | | | honeycomb-mr2 * commit 'bbbab26ebe9bc789ba9abac757895a6c31de7cc5': Revert velocity damping. Bug: 4364920
| | * Merge "Revert velocity damping. Bug: 4364920" into honeycomb-mr2Jeff Brown2011-06-061-9/+0
| | |\
| | | * Revert velocity damping.Jeff Brown2011-06-061-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4364920 Velocity damping proved to be a bad idea because it would cause a significant ramp in velocity at the beginning of a gesture, instead of the desired smooth behavior. Oh well. Change-Id: Ie631946f47ef2492bd71fbed1ab44bbb39a875a8
| | * | merge various SF fixes from gingerbread to honeycomb-mr2 (DO NOT MERGE)Mathias Agopian2011-06-061-3/+9
| | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix a race that could cause GL commands to be executed from the wrong thread. RefBase subclasses can now decide how they want to be destroyed. Fix a race in SurfaceFlinger that could cause layers to be leaked forever. Fix a race-condtion in SurfaceFlinger that could lead to a crash. initial cherry-pick: resolved conflicts for merge of b9783b49 to honeycomb-plus-aosp Change-Id: I2a335e03fff219e35c18a7b0089b3a11d636576f
| * | resolved conflicts for merge of b9783b49 to honeycomb-plus-aospMarco Nelissen2011-06-061-3/+9
| |\ \ | | | | | | | | | | | | Change-Id: I1d86ea56b3d1d1b69f6671e5b0df0ca3f0c79643
| | * \ am c9cd2387: Merge changes I37f0f315,I8cbf6044,Ibb598931,I5262bf11 into ↵Simon Wilson2011-05-241-3/+9
| | |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread * commit 'c9cd2387b6938a6fbefc731d2177902266f2a130': Fix a race that could cause GL commands to be executed from the wrong thread. RefBase subclasses can now decide how they want to be destroyed. Fix a race in SurfaceFlinger that could cause layers to be leaked forever. Fix a race-condtion in SurfaceFlinger that could lead to a crash.
| | | * | RefBase subclasses can now decide how they want to be destroyed.Mathias Agopian2011-05-231-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a destroy() virtual on RefBase which sublasses can implement. destroy() is called in lieu of the destructor whenthe last strong ref goes away. Bug: 4483050 Change-Id: I8cbf6044a6fd3f01043a45592b5a60fa1e5fade2
* | | | | Fix embedded spaces in tar stream EVEN HARDERChristopher Tate2011-06-071-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I97ac586ff3541a05d73e1e53f680517c15e6c662
* | | | | Implement shared-storage full backup/restoreChristopher Tate2011-06-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every available shared-storage volume is backed up, tagged with its ordinal in the set of mounted shared volumes. This is an approximation of "internal + the external card". This lets us restore things to the same volume [or "equivalent" volume, in the case of a cross-model restore] as they originated on. Also fixed a bug in the handling of files/dirs with spaces in their names. Change-Id: I380019da8d0bb5b3699bd7c11eeff621a88e78c3
* | | | | CameraParameters: add PIXEL_FORMAT_RGBA8888Iliyan Malchev2011-06-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2780e936f5b4628d506ac4e6947b78ef831fbde8 Signed-off-by: Iliyan Malchev <malchev@google.com>
* | | | | Merge "Measure text with the appropriate text encoding. Bug #4546327"Romain Guy2011-06-031-6/+11
|\ \ \ \ \
| * | | | | Measure text with the appropriate text encoding.Romain Guy2011-06-031-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #4546327 Change-Id: I8eb593b03a81145e08be92579706ddd775feb0a2
* | | | | | am 56503b8d: am 8186a5f0: am 10c3f367: Merge "Implement pointer ↵Jeff Brown2011-06-031-0/+89
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / | | | | | | | | | | | | | | | acceleration." into honeycomb-mr2 * commit '56503b8ddfe5c82407da32e18061e725f668432d': Implement pointer acceleration.
| * | | | am 8186a5f0: am 10c3f367: Merge "Implement pointer acceleration." into ↵Jeff Brown2011-06-021-0/+89
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | honeycomb-mr2 * commit '8186a5f065fac2b82c90cd18d79cd234bc221402': Implement pointer acceleration.
| | * | | Implement pointer acceleration.Jeff Brown2011-06-021-0/+89
| | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4124987 Change-Id: I1f31a28f1594c55302ccabe13fe3ca6d2ff71d50
| * | | | am 6c2db6fb: am 95f397ad: Merge "Revert "DO NOT MERGE Correctly implement ↵James Dong2011-05-271-2/+2
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | the CLEAR xfermode."" into honeycomb-mr2 * commit '6c2db6fb1925f291cc9748cf3bf0897b9001c972': Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."
| | * | | Revert "DO NOT MERGE Correctly implement the CLEAR xfermode."James Dong2011-05-271-2/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit e324197ecd14591d7db0572f50c0d21bbd269bb4.
| * | | | am a33bb164: am 4686fb8a: Merge "DO NOT MERGE Correctly implement the CLEAR ↵Romain Guy2011-05-261-2/+2
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | xfermode." into honeycomb-mr2 * commit 'a33bb164b2ac792d5bba76ba198fb052197fd520': DO NOT MERGE Correctly implement the CLEAR xfermode.
| | * | | Merge "DO NOT MERGE Correctly implement the CLEAR xfermode." into honeycomb-mr2Romain Guy2011-05-261-2/+2
| | |\ \ \
| | | * | | DO NOT MERGE Correctly implement the CLEAR xfermode.Romain Guy2011-05-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug is a regression from the software pipeline and prevents applications from implementing an "eraser" type tool (for instance a drawing/painting apps.) This issue affects external applications when they turn on hardware acceleration. The previous implementation was using glBlendFunc with the parameters GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha sources (anti-aliasing.) The correct implementation is GL_ZERO/ GL_ONE_MINUS_SRC_ALPHA. Change-Id: I1446e83480e46174b880120069d76fcad14ba300
| * | | | | am 8148cc3e: am 86ea1f5f: Initial checkin of spot presentation for touchpad ↵Jeff Brown2011-05-252-1/+11
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | gestures. (DO NOT MERGE) * commit '8148cc3e47e50c916066e2fed562618b5827188f': Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)
| | * | | | Initial checkin of spot presentation for touchpad gestures. (DO NOT MERGE)Jeff Brown2011-05-252-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a new PointerIcon API (hidden for now) for loading pointer icons. Fixed a starvation problem in the native Looper's sendMessage implementation which caused new messages to be posted ahead of old messages sent with sendMessageDelayed. Redesigned the touch pad gestures to be defined in terms of more fluid finger / spot movements. The objective is to reinforce the natural mapping between fingers and spots which means there must not be any discontinuities in spot motion relative to the fingers. Removed the SpotController stub and folded its responsibilities into PointerController. Change-Id: Ib647dbd7a57a7f30dd9c6e2c260df51d7bbdd18e
| * | | | | am d5358874: am 5ced76a1: Coalesce input events that arrive faster than ↵Jeff Brown2011-05-251-1/+7
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 333Hz. (DO NOT MERGE) * commit 'd5358874e2cc90be3d7d3370ef7342c96c212451': Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)
| | * | | | Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)Jeff Brown2011-05-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some drivers report individual finger updates one at a time instead of all at once. When 10 fingers are down, this can cause the framework to have to handle 10 times as many events each with 10 times as much data. Applications like PointerLocation would get significantly bogged down by all of the redundant samples. This change coalesces samples that are closely spaced in time, before they are dispatched, as part of the motion event batching protocol. Increased the size of the InputChannel shared memory buffer so that applications can catch up faster if they accumulate a backlog of samples. Change-Id: Ibc6abf8af027d9003011ac75caa12941080caba3
| * | | | | am af685f3b: am 85a7f99c: Merge "Refactor how timeouts are calculated. (DO ↵Jeff Brown2011-05-252-12/+25
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOT MERGE)" into honeycomb-mr2 * commit 'af685f3bb566f297deee1615d55d4f33d5580ba3': Refactor how timeouts are calculated. (DO NOT MERGE)
| | * | | | Refactor how timeouts are calculated. (DO NOT MERGE)Jeff Brown2011-05-232-12/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added a timeout mechanism to EventHub and InputReader so that InputMappers can request timeouts to perform delayed processing of input when needed. Change-Id: I89c1171c9326c6e413042e3ee13aa9f7f1fc0454
| * | | | | am 16330e24: am 94e838f6: Merge "Improve VelocityTracker numerical ↵Jeff Brown2011-05-251-32/+115
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stability. (DO NOT MERGE)" into honeycomb-mr2 * commit '16330e249663fed890df0e95fce4016c2971120a': Improve VelocityTracker numerical stability. (DO NOT MERGE)
| | * | | | Improve VelocityTracker numerical stability. (DO NOT MERGE)Jeff Brown2011-05-231-32/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced VelocityTracker with a faster and more accurate native implementation. This avoids the duplicate maintenance overhead of having two implementations. The new algorithm requires that the sample duration be at least 10ms in order to contribute to the velocity calculation. This ensures that the velocity is not severely overestimated when samples arrive in bursts. The new algorithm computes the exponentially weighted moving average using weights based on the relative duration of successive sample periods. The new algorithm is also more careful about how it handles individual pointers going down or up and their effects on the collected movement traces. The intent is to preserve the last known velocity of pointers as they go up while also ensuring that other motion samples do not count twice in that case. Bug: 4086785 Change-Id: I95054102397c4b6a9076dc6a0fc841b4beec7920
| * | | | | am 4bd89fb0: am 82e4373e: Merge "Use touch pad gestures to manipulate the ↵Jeff Brown2011-05-252-2/+156
| |\ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pointer. (DO NOT MERGE)" into honeycomb-mr2 * commit '4bd89fb00f319c5d6d4f17b39fd4c0b3dc827ad1': Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)
| | * | | | Use touch pad gestures to manipulate the pointer. (DO NOT MERGE)Jeff Brown2011-05-232-2/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Single finger tap performs a click. 2. Single finger movement moves the pointer (hovers). 3. Button press plus movement performs click or drag. While dragging, the pointer follows the finger that is moving fastest. This is important if there are additional fingers down on the touch pad for the purpose of applying force to an integrated button underneath. 4. Two fingers near each other moving in the same direction are coalesced as a swipe gesture under the pointer. 5. Two or more fingers moving in arbitrary directions are transformed into touches in the vicinity of the pointer. This makes scale/zoom and rotate gestures possible. Added a native VelocityTracker implementation to enable intelligent switching of the active pointer during drags. Change-Id: I7b7ddacc724fb1306e1590dbaebb740d3130d7cd
* | | | | | Merge "Restore from a previous full backup's tarfile"Christopher Tate2011-06-011-0/+10
|\ \ \ \ \ \
| * | | | | | Restore from a previous full backup's tarfileChristopher Tate2011-06-011-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage: adb restore [tarfilename] Restores app data [and installs the apps if necessary from the backup file] captured in a previous invocation of 'adb backup'. The user must explicitly acknowledge the action on-device before it is allowed to proceed; this prevents any "invisible" pushes of content from the host to the device. Known issues: * The settings databases and wallpaper are saved/restored, but lots of other system state is not yet captured in the full backup. This means that for practical purposes this is usable for 3rd party apps at present but not for full-system cloning/imaging. Change-Id: I0c748b645845e7c9178e30bf142857861a64efd3
* | | | | | | Merge "Add support to OpenGLRendere to draw BiDi text. Bug #4350336"Romain Guy2011-06-017-49/+84
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Add support to OpenGLRendere to draw BiDi text.Romain Guy2011-06-017-49/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #4350336 Change-Id: I1cf31693f7ca9653fa3a41b5b91c27ef288d680f
* | | | | | | 9-axis sensor fusion with Kalman filterMathias Agopian2011-05-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add support for 9-axis gravity and linear-acceleration sensors virtual orientation sensor using 9-axis fusion Change-Id: I6717539373fce781c10e97b6fa59f68a831a592f
* | | | | | | Merge "Fix issue with drawColor(color, Mode.Clear)"Romain Guy2011-05-272-0/+15
|\ \ \ \ \ \ \ | |/ / / / / /
| * | | | | | Fix issue with drawColor(color, Mode.Clear)Romain Guy2011-05-272-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I486b24a5b609c6f8adb0276037ddb24af2b888b2
* | | | | | | Merge "Cleaup of rsComponent to remove GL types."Jason Sams2011-05-275-58/+51
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Cleaup of rsComponent to remove GL types.Jason Sams2011-05-265-58/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I9f82bafe42f5fb30335b15f38eb251dc1ec62e80
* | | | | | | Merge "Prettify memory dump."Romain Guy2011-05-271-1/+1
|\ \ \ \ \ \ \
| * | | | | | | Prettify memory dump.Romain Guy2011-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I071c6a04a144a96955d85f56dffc6162288ee33e
* | | | | | | | Merge "Fix texture coordinates for sub-bitmap rendering."Romain Guy2011-05-261-4/+4
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Fix texture coordinates for sub-bitmap rendering.Romain Guy2011-05-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I05a31775e03f5b223a55a5144d420351abac89be
* | | | | | | | Merge "Correctly implement the CLEAR xfermode."Romain Guy2011-05-264-6/+38
|\ \ \ \ \ \ \ \ | |/ / / / / / /
| * | | | | | | Correctly implement the CLEAR xfermode.Romain Guy2011-05-264-6/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous implementation was using glBlendFunc with the parameters GL_ZERO/GL_ZERO which doesn't work for text, paths and other alpha sources (anti-aliasing.) The correct implementation is GL_ZERO/ GL_ONE_MINUS_SRC_ALPHA. Change-Id: I4cca65e57b6a37bbf5a41d382cb0648ee8e11e79
* | | | | | | | Merge "Start splitting allocation into hal and core."Jason Sams2011-05-2618-520/+679
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| / / / / / / | |/ / / / / /
| * | | | | | Start splitting allocation into hal and core.Jason Sams2011-05-2618-520/+679
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ic506abb0469238cb0471eb1401cfcb7b2fbbe4bb
* | | | | | | SurfaceTexture: disable a failing test.Jamie Gennis2011-05-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The SurfaceTextureSyncModeWaitRetire test was disabled. It is failing because of the synchronization hacks that were added to SurfaceTexture to work around bugs in vendor device drivers. Change-Id: I09a74538bfe14a04833acb6847471e00826cc7fc
* | | | | | | SurfaceTexture: fix an error check in dequeueBuffer.Jamie Gennis2011-05-252-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes the MIN_UNDEQUEUED_BUFFERS error check in dequeueBuffer. The check should only be performed if a buffer has been queued since the last time the buffer count was changed by the client. The check must be applied conditionally because video decoders require all the bufferes to be dequeued and registered before beginning the decode. Change-Id: I08d96b380544e395c2fcf0f3983a199bfd695b09