summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
...
* | | am 7ab5d2d9: am a87ea46c: Fix bugs related to cheek event suppression.Jeff Brown2010-11-021-3/+3
|\ \ \ | |_|/ |/| | | | | | | | * commit '7ab5d2d951792c9b1a1e7cfb279280c2d076506f': Fix bugs related to cheek event suppression.
| * | am a87ea46c: Fix bugs related to cheek event suppression.Jeff Brown2010-11-011-3/+3
| |\ \ | | | | | | | | | | | | | | | | * commit 'a87ea46cb023763e0a9b0222da20b0a354f79d8d': Fix bugs related to cheek event suppression.
| | * | Fix bugs related to cheek event suppression.Jeff Brown2010-11-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Two issues: 1. First, due to an inverted conditional in the input dispatcher, we were reporting touches as long touches and vice-versa to the power manager. 2. Power manager user activity cheek event suppression also suppresses touch events (but not long touch or up events). As a result, if cheek event suppression was enabled, touches would not poke the user activity timer. However due to the above logic inversion, this actually affected long touches. Net result, if cheek suppression was enabled in the power manager and you held your thumb on the screen long enough, the phone would go to sleep! Cheek event suppression is commonly turned on when making a phone call. Interestingly, it does not seem to get turned off afterward... This change fixes the logic inversion and exempts touches from the cheek suppression. The reason we do the latter is because the old behavior was actually harmful in other ways too: a touch down would be suppressed but not a long touch or the touch up. This would cause bizarre behavior if you touched the screen while it was dimmed. Instead of brightening immediately, it would brighten either when you lifted your finger or 300ms later, whichever came first. Bug: 3154895 Change-Id: Ied9ccec6718fbe86506322ff47a4e3eb58f81834
* | | | Merge "Fix policy issues when screen is off."Jeff Brown2010-11-011-1/+15
|\ \ \ \
| * | | | Fix policy issues when screen is off.Jeff Brown2010-11-011-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rewrote interceptKeyBeforeQueueing to make the handling more systematic. Behavior should be identical except: - We never pass keys to applications when the screen is off and the keyguard is not showing (the proximity sensor turned off the screen). Previously we passed all non-wake keys through in this case which caused a bug on Crespo where the screen would come back on if a soft key was held at the time of power off because the resulting key up event would sneak in just before the keyguard was shown. It would then be passed through to the dispatcher which would poke user activity and wake up the screen. - We propagate the key flags when broadcasting media keys which ensures that recipients can tell when the key is canceled. - We ignore endcall or power if canceled (shouldn't happen anyways). Changed the input dispatcher to not poke user activity for canceled events since they are synthetic and should not wake the device. Changed the lock screen so that it does not poke the wake lock when the grab handle is released. This fixes a bug where the screen would come back on immediately if the power went off while the user was holding one of the grab handles because the sliding tab would receive an up event after screen turned off and release the grab handles. Fixed a couple of issues where media keys were being handled inconsistently or not at all, particularly in the case of the new PAUSE, PLAY and RECORD keys. Bug: 3144874 Change-Id: Ie630f5fb6f128cfdf94845f9428067045f42892c
* | | | | Add code to mark functions rather than whole files as threadable.Jason Sams2010-11-015-225/+219
|/ / / / | | | | | | | | | | | | Change-Id: Ie635fbbb96b8ade48501ec564fe135edc256537d
* | | | Remove excessive logging.Jason Sams2010-10-291-5/+0
| |_|/ |/| | | | | | | | Change-Id: I22497b1b169ca0f3edbc20649594f6f58f6144d0
* | | Merge "Add path to get different DPI drawables"Kenny Root2010-10-291-10/+34
|\ \ \
| * | | Add path to get different DPI drawablesKenny Root2010-10-291-10/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a caller to request a different density than their current display allows. This can mean a device displaying mdpi can get a resource that's in hdpi and have it pretend to be in mdpi resolution. If a drawable that's returned is not in the requested density, it will set it at the appropriate density to be scaled up later on. The API for this is hidden currently. Bug: 3134688 Change-Id: I6c3908cbdef4907b8d3f1576df9e3b0e7af1755a
* | | | Balls test app.Jason Sams2010-10-2912-3/+705
| | | | | | | | | | | | | | | | Change-Id: I842f43e37145f8112120e2bd49925f81c588c40c
* | | | Merge "Fix 3140348: Signature was wrong for atan2() in RS."Jim Miller2010-10-281-2/+2
|\ \ \ \ | |/ / / |/| | |
| * | | Fix 3140348: Signature was wrong for atan2() in RS.Jim Miller2010-10-281-2/+2
| | | | | | | | | | | | | | | | Change-Id: I6c5b79efc12e2dcef06f3f0bcbbdf8871947af26
* | | | Merge "Adding nvidia extension for limited npot support. Updating a3d ↵Alex Sakhartchouk2010-10-2810-179/+107
|\ \ \ \ | | | | | | | | | | | | | | | loading to be async."
| * | | | Adding nvidia extension for limited npot support.Alex Sakhartchouk2010-10-2710-179/+107
| |/ / / | | | | | | | | | | | | | | | | | | | | Updating a3d loading to be async. Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
* | | | resolved conflicts for merge of df3cccf3 to masterJeff Brown2010-10-271-1/+23
|\ \ \ \ | |/ / / |/| / / | |/ / Change-Id: I425496a9fc4e9cbc50ad6938e9dccb14827d9558
| * | am 120a4594: Drop all dispatcher state when dispatcher is disabled.Jeff Brown2010-10-271-1/+23
| |\ \ | | |/
| | * Drop all dispatcher state when dispatcher is disabled.Jeff Brown2010-10-271-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch makes the dispatcher drop all of its state when it is disabled (when the screen turns off). This ensures that the dispatcher does not get stuck thinking a pointer is still down if the screen turned off while the user was touching the display (such as a fat touch while hitting the power button). Bug: 3098344 Change-Id: If50ef5804870aa1acd3179fd4b40e3cda58dd39d
* | | Merge "convert one of the LOGE to LOG_WINDOW msg to reduce grief"Vasu Nori2010-10-261-1/+1
|\ \ \
| * | | convert one of the LOGE to LOG_WINDOW msg to reduce griefVasu Nori2010-10-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | grief from people who think this message is bad news. but in reality, this message is really just an informational message to aid in debugging Change-Id: I1a2ab1666a27adb7d3fd210528b2c5218640d53d
* | | | Merge "Remove unnecessary GL calls."Romain Guy2010-10-264-55/+82
|\ \ \ \
| * | | | Remove unnecessary GL calls.Romain Guy2010-10-264-55/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change batches calls to glScissor() and removes extra GL queries and glActiveTexture() calls. Change-Id: I1cd079d314f87cd9c088f95c8d4909c2f860f6aa
* | | | | Merge "Begin adding async allocation creation."Jason Sams2010-10-2611-194/+113
|\ \ \ \ \
| * | | | | Begin adding async allocation creation.Jason Sams2010-10-2611-194/+113
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8 Implement async bitmap upload and clean up types. Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
* | | | | Merge "Optimizing ColorFilter in display lists"Chet Haase2010-10-266-19/+78
|\ \ \ \ \
| * | | | | Optimizing ColorFilter in display listsChet Haase2010-10-266-19/+78
| | |/ / / | |/| | | | | | | | | | | | | Change-Id: Ie4d5e5b0bc45e0ce47bba144049303c270762e54
* | | | | am 85c5ca07: am 2f19f56a: Merge "Updade Surface (ANativeWindow) format based ↵Mathias Agopian2010-10-261-0/+11
|\ \ \ \ \ | |/ / / / |/| | / / | | |/ / | |/| | on its buffers format" into gingerbread
| * | | am 2f19f56a: Merge "Updade Surface (ANativeWindow) format based on its ↵Mathias Agopian2010-10-261-0/+11
| |\ \ \ | | | |/ | | |/| | | | | buffers format" into gingerbread
| | * | Updade Surface (ANativeWindow) format based on its buffers formatMathias Agopian2010-10-251-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is to allow applications to change the format of a surface's buffer, and have it reflected in EGL; which is needed for EGLConfig validation. Change-Id: Iee074c30ad765881e2409c1d37450b05e561c44d
* | | | Merge "DisplayList optimizations and fixes."Chet Haase2010-10-266-104/+80
|\ \ \ \
| * | | | DisplayList optimizations and fixes.Chet Haase2010-10-266-104/+80
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | We now use a copy of SkPaint objects to avoid having it changed from under us. We reuse copies that have not changed. We also copy the SkMatrix every time to avoid the same problem. Change-Id: If3fd80698f2d43ea16d23302063e0fd8d0549027
* | | | Merge "Tweak log messages a bit."Jeff Brown2010-10-251-2/+5
|\ \ \ \
| * | | | Tweak log messages a bit.Jeff Brown2010-10-251-2/+5
| |/ / / | | | | | | | | | | | | Change-Id: Ifadf78c1ab8db49106216c70086f98860795c65f
* | | | Small cleanup.Romain Guy2010-10-253-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes unnecessary forward class declaration, make Caches::currentBuffer private instead of public. Change-Id: Idba6325c8c602d89239e667cb8ec87e7943f8e75
* | | | Don't change texture unit when not needed.Romain Guy2010-10-251-2/+5
| | | | | | | | | | | | | | | | Change-Id: Ifa84426d234f2122402cb13533cb5964f1ce95ec
* | | | Don't change textures wrap modes on every draw.Romain Guy2010-10-255-24/+59
|/ / / | | | | | | | | | Change-Id: If6d3f313778cc7f3e803a063338539c8b3e165e3
* | | Add test stubs for newly added methods.Jeff Brown2010-10-241-0/+13
| | | | | | | | | | | | Change-Id: I44139adebbbed1358f613fbcbfcddac6617ef5bd
* | | am 2ef36763: am 860c2df4: Merge "Add unit tests for native input and fix ↵Jeff Brown2010-10-246-21/+3647
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | bugs identified." into gingerbread Merge commit '2ef36763700eff5679d6012e7f078c57f1a4c465' * commit '2ef36763700eff5679d6012e7f078c57f1a4c465': Add unit tests for native input and fix bugs identified.
| * | am 860c2df4: Merge "Add unit tests for native input and fix bugs ↵Jeff Brown2010-10-246-21/+3647
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | identified." into gingerbread Merge commit '860c2df4132a2a0be9bcb0e91bfb7e79588c000f' into gingerbread-plus-aosp * commit '860c2df4132a2a0be9bcb0e91bfb7e79588c000f': Add unit tests for native input and fix bugs identified.
| | * Add unit tests for native input and fix bugs identified.Jeff Brown2010-10-236-21/+3647
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed a bug where we would lose the first touch point when swiping out of the virtual key area. Fixed a bug where we would not send an ACTION_MOVE event in cases where individual pointers went down/up and the remaining pointers actually moved. This is important since many applications do not handle pointer movements during ACTION_POINTER_DOWN or ACTION_POINTER_UP. In the case of ACTION_POINTER_UP the movement was completely lost since all pointers were dispatched using their old location rather than the new location. Improved motion event validation to check for duplicate pointer ids. Added an input source constant that was missing from the NDK api but defined in the framework api. Added a timestamp when reporting added/removed devices in EventHub. Bug: 3070082 Change-Id: I3206a030f43b7616e2f48006e5a9d522c4d92e56
* | | Merge "Fix Caches singleton to avoid resource leaks"Chet Haase2010-10-243-45/+82
|\ \ \
| * | | Fix Caches singleton to avoid resource leaksChet Haase2010-10-243-45/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The declaration of Singleton objects must be in CPP files (not header files) to avoid creating separate instances of what is supposedly a single object. Change-Id: Ie903384824a458b5572f3ce5b6cfb359c18a9c44
* | | | Merge "Fix rendering issue with layers."Romain Guy2010-10-232-18/+24
|\ \ \ \
| * | | | Fix rendering issue with layers.Romain Guy2010-10-222-18/+24
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A change was made earlier in the renderer to not snap the current clip rect on every clip operation. The clip rect must not be snapped to pixel boundaries before being used for pixel precision operations. Some operations were doing this correctly, others were not. For instance, a layer was always created by rounding to the correct pixels, but composing a layer was done with a non rounded clip, thus resulting in slightly odd behaviors. Change-Id: I31c2cf0a343450470bcd449c3f13fe37648b9c7c
* | | | Enable optimized bitcode that is also jitted faster.Shih-wei Liao2010-10-233-4/+12
|/ / / | | | | | | | | | Change-Id: I08832cfaf4e8465c16b445eeb1b82f72d874d0ef
* | | Don't use two different variables to refer to mSnapshot.Romain Guy2010-10-221-1/+1
| | | | | | | | | | | | Change-Id: Ie4a0616d2fe0b040ac14b734a9ddf77bf1f35b0c
* | | Merge "Don't perform glCopyTextImage with coordinates outside the buffer."Romain Guy2010-10-221-0/+8
|\ \ \
| * | | Don't perform glCopyTextImage with coordinates outside the buffer.Romain Guy2010-10-221-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | Bug #3122179 Change-Id: I91ed397e9e553a8eeb69d82d0c5b1e49a3cdd5ff
* | | | am 7ba8c44e: am 8ad30b5b: Merge "Initialized check in ↵Kenny Root2010-10-221-1/+9
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | | | | | | | ZipFileRO::findEntryByName" into gingerbread Merge commit '7ba8c44ef7ba22d83a670e50314d69d0ddce1b9c' * commit '7ba8c44ef7ba22d83a670e50314d69d0ddce1b9c': Initialized check in ZipFileRO::findEntryByName
| * | am 8ad30b5b: Merge "Initialized check in ZipFileRO::findEntryByName" into ↵Kenny Root2010-10-221-1/+9
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | gingerbread Merge commit '8ad30b5b7e380428701a44458393cbc2381f205b' into gingerbread-plus-aosp * commit '8ad30b5b7e380428701a44458393cbc2381f205b': Initialized check in ZipFileRO::findEntryByName
| | * Merge "Initialized check in ZipFileRO::findEntryByName" into gingerbreadKenny Root2010-10-221-1/+9
| | |\