summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | am c851ea56: am 69cb8757: Add new "-swNNNdp" resource qualifier.Dianne Hackborn2011-05-191-3/+10
|\ \ \ | |/ / | | | | | | | | | * commit 'c851ea5672f6e042c2e89b2a2ce4a2467e1fcd2a': Add new "-swNNNdp" resource qualifier.
| * | Add new "-swNNNdp" resource qualifier.Dianne Hackborn2011-05-191-3/+10
| |/ | | | | | | Change-Id: I0101e88ca9d8d44138bdcaf571f24b0352f4f6ce
* | am 46a282f3: am 0ed2e845: Merge "DO NOT MERGE. Integrate add new screen ↵Dianne Hackborn2011-05-131-7/+24
|\ \ | |/ | | | | | | | | | | width/height in "dp" configs." into honeycomb-mr2 * commit '46a282f323bc05606e4fe1eba795bd9ac7c99819': DO NOT MERGE. Integrate add new screen width/height in "dp" configs.
| * DO NOT MERGE. Integrate add new screen width/height in "dp" configs.Dianne Hackborn2011-05-121-7/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You can now specify resource configuration variants "wNNNdp" and "hNNNdp". These are the minimum screen width/height in "dp" units. This allows you to do things like have your app adjust its layout based only on the about of horizontal space available. This introduces a new configuration change flag for screen size. Note that this configuration change happens each time the orientation changes. Applications often say they handle the orientation change to avoid being restarted at a screen rotation, and this will now cause them to be restarted. To address this, we assume the app can handle this new config change if its target SDK version is < ICS. Change-Id: I4acb73d82677b74092c1da9e4046a4951921f9f4
* | am 87d86044: am bcd029b6: Merge "Add missing clean-up of idmap file ↵Conley Owens2011-05-101-0/+3
|\ \ | | | | | | | | | | | | | | | | | | descriptors." * commit '87d86044c0f15ae2ffc0350271c76ff874fb413b': Add missing clean-up of idmap file descriptors.
| * | Add missing clean-up of idmap file descriptors.Mårten Kongstad2011-05-051-0/+3
| | | | | | | | | | | | Change-Id: I9bdc9a4b7962f1a8dce77f4b213c8b9dc26e4b0f
| * | Merge "Implement support for ALT and SHIFT modifiers"Conley Owens2011-04-291-0/+22
| |\ \
| | * | Implement support for ALT and SHIFT modifiersJohan Redestig2011-03-081-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The spec for keymaps and keboard input at http://source.android.com/porting/keymaps_keyboard_input.html mentions the stand alone ALT and SHIFT modifiers: SHIFT: While pressed, the shift key modifier is set ALT: While pressed, the alt key modifier is set This commit implements support for these. Change-Id: I5854ef3df541740cc3443b474a9c41183eb7561c Ex: key 305 BACK ALT
| * | | Merge "modify the device to enable to get the state as slide-open/slide-close."Conley Owens2011-04-291-6/+6
| |\ \ \
| | * | | modify the device to enable to get the state as slide-open/slide-close.nao2011-03-311-6/+6
| | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modify is for the devices which have a slidable H/W keyboard with backlight. For example of current issues: - Backlight of H/W keyboard doesn't turn on when the device starts up with slide-open. - Home screen doesn't display with proper orientation when the device starts up with slide-open. Change-Id: I6a6a18d0b09d0ba484ca992c9fb34f24de9bf21b
* | | | am 4907d1d5: am 0c6cbf41: Merge "Better compat mode part one: start scaling ↵Dianne Hackborn2011-05-091-24/+23
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | windows." into honeycomb-mr2 * commit '4907d1d5e2c7d244b07579b8c52153df69754e85': Better compat mode part one: start scaling windows.
| * | | Better compat mode part one: start scaling windows.Dianne Hackborn2011-05-091-24/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First step of improving app screen size compatibility mode. When running in compat mode, an application's windows are scaled up on the screen rather than being small with 1:1 pixels. Currently we scale the application to fill the entire screen, so don't use an even pixel scaling. Though this may have some negative impact on the appearance (it looks okay to me), it has a big benefit of allowing us to now treat these apps as normal full-screens apps and do the normal transition animations as you move in and out and around in them. This introduces fun stuff in the input system to take care of modifying pointer coordinates to account for the app window surface scaling. The input dispatcher is told about the scale that is being applied to each window and, when there is one, adjusts pointer events appropriately as they are being sent to the transport. Also modified is CompatibilityInfo, which has been greatly simplified to not be so insane and incomprehendible. It is now simple -- when constructed it determines if the given app is compatible with the current screen size and density, and that is that. There are new APIs on ActivityManagerService to put applications that we would traditionally consider compatible with larger screens in compatibility mode. This is the start of a facility to have a UI affordance for a user to switch apps in and out of compatibility. To test switching of modes, there is a new variation of the "am" command to do this: am screen-compat [on|off] [package] This mode switching has the fundamentals of restarting activities when it is changed, though the state still needs to be persisted and the overall mode switch cleaned up. For the few small apps I have tested, things mostly seem to be working well. I know of one problem with the text selection handles being drawn at the wrong position because at some point the window offset is being scaled incorrectly. There are probably other similar issues around the interaction between two windows because the different window coordinate spaces are done in a hacky way instead of being formally integrated into the window manager layout process. Change-Id: Ie038e3746b448135117bd860859d74e360938557
* | | | am 697f8b33: am 00df8e23: Merge "Check setName() for null string + fix ↵Stephen Hines2011-04-271-2/+4
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | rsRand()." into honeycomb-mr1 * commit '697f8b331bb339e4db716efbb96e2182aac40255': Check setName() for null string + fix rsRand().
| * | | Check setName() for null string + fix rsRand().Alex Sakhartchouk2011-04-271-2/+4
| | | | | | | | | | | | | | | | Change-Id: I5e0042930209861e2eb9acc91380e9473dac0997
* | | | am bb93dad9: am bb10986c: am 13ce221e: Merge "libutils: Fix an improper ↵Kenny Root2011-04-261-1/+1
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | const-cast in RefBase" * commit 'bb93dad9250c0ee8330ab37bbdcd2eb8bfc0f930': libutils: Fix an improper const-cast in RefBase
| * | | am 13ce221e: Merge "libutils: Fix an improper const-cast in RefBase"Kenny Root2011-04-261-1/+1
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '13ce221e4316f7956ba072e774a7b97646e5d99b': libutils: Fix an improper const-cast in RefBase
| | * | | libutils: Fix an improper const-cast in RefBaseJosh Stone2011-04-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Fedora 15 Beta, gcc 4.6.0 warns: frameworks/base/libs/utils/RefBase.cpp: In member function ‘void android::RefBase::weakref_type::trackMe(bool, bool)’: frameworks/base/libs/utils/RefBase.cpp:483:67: error: passing ‘const android::RefBase::weakref_impl’ as ‘this’ argument of ‘void android::RefBase::weakref_impl::trackMe(bool, bool)’ discards qualifiers [-fpermissive] trackMe is not a const function, so don't use const in the static_cast to a weakref_impl pointer. Change-Id: I3c9ba73eb127985f5f54197ffecf2939c50f632c
* | | | | resolved conflicts for merge of 87b3c0dc to honeycomb-plus-aospKenny Root2011-04-123-56/+860
|\ \ \ \ \ | |/ / / / | | | | | | | | | | Change-Id: Ia1a0024aabf531438203eb9fea3a10dd15eabe53
| * | | | am 08d9d9a4: Merge "Runtime resource overlay, iteration 1."Kenny Root2011-04-113-56/+860
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | * commit '08d9d9a46250c4fad66e9b637e8898a3524c4286': Runtime resource overlay, iteration 1.
| | * | | Runtime resource overlay, iteration 1.Mårten Kongstad2011-04-013-56/+860
| | | |/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Runtime resource overlay allows unmodified applications to appear as if they had been compiled with additional resources defined. See libs/utils/README for more information. This commit is the first iteration of runtime resource overlay. It provides the actual overlay modifications and loading of trusted overlay packages (ie residing in /vendor) targeting framework-res.apk. This commit loads exactly one overlay package. The overlay, if present, must target framework-res.apk and be located at /vendor/overlay/framework/framework-res.apk. Change-Id: If26ee7754813004a96c043dba37fbe99fa3919db
* | | | am 9645081c: am 43707a83: UsbManager: minor Javadoc tweakMike Lockwood2011-04-111-2/+2
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | * commit '9645081cc7f31e1151fedbcd5932a100719e91e4': UsbManager: minor Javadoc tweak
| * | am 43707a83: UsbManager: minor Javadoc tweakMike Lockwood2011-04-041-2/+2
| |\ \ | | | | | | | | | | | | | | | | * commit '43707a83ec12957fb84a406276a38fbaf4e23fd3': UsbManager: minor Javadoc tweak
| | * | UsbManager: minor Javadoc tweakMike Lockwood2011-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I44efc54cd2a0991465aabe0ecea1b8a3291014c2 Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | | am b0976320: Merge "DO NOT MERGE: Backport more USB accessory changes from ↵Mike Lockwood2011-03-156-12/+45
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | honeycomb" into gingerbread * commit 'b09763209980ff9210cc353f2410598220ec0480': DO NOT MERGE: Backport more USB accessory changes from honeycomb
| | * | DO NOT MERGE: Backport more USB accessory changes from honeycombMike Lockwood2011-03-156-12/+45
| | | | | | | | | | | | | | | | | | | | Change-Id: I8459c5ab9fbf0b3cad752041484a5de44ca9badd Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | | am 78b8e1be: Merge "DO NOT MERGE: backport recent USB accessory changes from ↵Mike Lockwood2011-03-144-33/+167
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | honeycomb" into gingerbread * commit '78b8e1be97c61f7e0b28b145fadd0c646fd1c46b': DO NOT MERGE: backport recent USB accessory changes from honeycomb
| | * | DO NOT MERGE: backport recent USB accessory changes from honeycombMike Lockwood2011-03-114-33/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 4082651 Change-Id: Ie7c2fc796dd3c64f803acbd14210e5949683f4ed Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | | am 33029221: Merge "revert the surface purgatory list and dependent ↵Mathias Agopian2011-03-091-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | changes." into gingerbread * commit '33029221619f14577bd0d0e7c2f815abc8f1b8ea': revert the surface purgatory list and dependent changes.
| | * | revert the surface purgatory list and dependent changes.Mathias Agopian2011-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6d0f6cb Revert "Fix [3513017] in lockscreen but showing empty launcher (live wallpaper) only" 6154412 Revert "partially fix [3306150] HTML5 video with H/W acceleration blackout (DO NOT MERGE)" 37c2a37 fix [3408713] Dialog window invisible sometimes It looks like there is a surface leak, it's unclear where it is. Without those reverts, this would cause a leak of the associated buffers which is far more problematic. this change might hide the surface leak. Bug: 4078032 Change-Id: Iedcda3ffcdd2f69d41047b5c3134c1e867ff90d7
| * | | am e23c235c: Merge "Only set KeyEvent long press flag when repeat count ↵Jeff Brown2011-03-031-4/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | equals 1." into gingerbread * commit 'e23c235c662c3028cfb080c6ed60d7defcdd0b69': Only set KeyEvent long press flag when repeat count equals 1.
| | * | Only set KeyEvent long press flag when repeat count equals 1.Jeff Brown2011-03-021-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a Gingerbread regression. Bug: 3507021 Change-Id: Ia6030665b6a406332adc0ee0d8ee3cb735338c8e
| * | | am 1110748b: DO NOT MERGE: USB accessory support libraryMike Lockwood2011-03-0213-2/+1315
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '1110748b2df664f9c5066819c1f0616eae3394a7': DO NOT MERGE: USB accessory support library
| | * | DO NOT MERGE: USB accessory support libraryMike Lockwood2011-03-0213-2/+1315
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides a mechanism for developing applications to work with USB accessories in versions of android prior to the introduction of the android.hardware.UsbManager APIs. Applications should link against the com.android.future.usb.accessory library to use this support. Change-Id: I0b61e20b63eec42c506f0895a0c9a439bdfdf7f5 Signed-off-by: Mike Lockwood <lockwood@android.com>
| * | | am 40bbf929: DO NOT MERGE: Backport USB accessory support to gingerbreadMike Lockwood2011-03-022-0/+223
| |\ \ \ | | |/ / | | | / | | |/ | |/| * commit '40bbf9295d5245d3917629ce15f7b37670aef1ac': DO NOT MERGE: Backport USB accessory support to gingerbread
| | * DO NOT MERGE: Backport USB accessory support to gingerbreadMike Lockwood2011-03-012-0/+223
| | | | | | | | | | | | Signed-off-by: Mike Lockwood <lockwood@android.com>