summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* am d3fcd0a1: Merge "minor clean-up. SurfaceFlinger doesn\'t need ↵Mathias Agopian2011-01-251-3/+3
|\ | | | | | | | | | | | | libpixelflinger.so. (DO NOT MERGE)" into gingerbread * commit 'd3fcd0a1c923498921107bb44fbc8b24582a170a': minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so. (DO NOT MERGE)
| * minor clean-up. SurfaceFlinger doesn't need libpixelflinger.so. (DO NOT MERGE)Mathias Agopian2011-01-251-3/+3
| | | | | | | | Change-Id: I1ddbbbec4fa5b2521ef3787bc28efe1bc90d0060
* | am 265cf2e7: Merge "Fix getSwitchState."Jeff Brown2011-01-222-2/+2
|\ \ | | | | | | | | | | | | * commit '265cf2e76bef9ee369a7d43d567a22a0c39355ef': Fix getSwitchState.
| * | Fix getSwitchState.Jeff Brown2011-01-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | InputReader::getSwitchState always returns AKEY_STATE_UNKNOWN because SwitchInputMapper::getSources() returns 0 which cannot match any source mask including AINPUT_SOURCE_ANY. As a result initial lid switch detection is broken. This change adds a new source constant AINPUT_SOURCE_SWITCH that indicates that the source has switches. Change-Id: I5321ecf0ce84f1c2b4535f6c163d3f4dcf9b7a9b
* | | am a0bafb47: Merge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into ↵Mathias Agopian2011-01-191-19/+4
|\ \ \ | | |/ | |/| | | | | | | | | | | | | gingerbread * commit 'a0bafb471385767f7c9c91efe7fd828b069b2e97': Use EGL_NATIVE_VISUAL_ID to select EGLConfig
| * | Merge "Use EGL_NATIVE_VISUAL_ID to select EGLConfig" into gingerbreadMathias Agopian2011-01-191-19/+4
| |\ \
| | * | Use EGL_NATIVE_VISUAL_ID to select EGLConfigMathias Agopian2011-01-161-19/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EGLUtils::selectConfigForPixelFormat() now uses EGL_NATIVE_VISUAL_ID to select a config with the proper format. this is more robust and future proof. Change-Id: Ib85e0974160945d838956b50a3cac4de78618957
* | | | am 41395459: Merge "Filter virtual keys after touches. (DO NOT MERGE)" into ↵Jeff Brown2011-01-182-1/+63
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | gingerbread * commit '41395459e676cf9ab4059e08446656f145662c2d': Filter virtual keys after touches. (DO NOT MERGE)
| * | | Merge "Filter virtual keys after touches. (DO NOT MERGE)" into gingerbreadJeff Brown2011-01-182-1/+63
| |\ \ \
| | * | | Filter virtual keys after touches. (DO NOT MERGE)Jeff Brown2011-01-112-1/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a new virtualKeyQuietTimeMillis configuration resource that sets the duration for which virtual keys will be dropped after recent touches on screen. The default value is 0; it is intended to be overridden per device using a resource overlay. This change is designed to help in two cases: 1. Swipes from touchscreen into virtual key area. 2. Accidental taps in virtual key area while using on-screen keyboard. Bug: 3089163 Change-Id: Id6733c83c2e2bc8d9553aa0e5c1fd74b741bec6e
* | | | | am 72abf01a: Merge "Fix the ISurfaceComposer onTransact switch." into ↵Mathias Agopian2011-01-181-2/+2
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | gingerbread * commit '72abf01a8b6958ac1f86d36302a8462c4f51fd9d': Fix the ISurfaceComposer onTransact switch.
| * | | | Fix the ISurfaceComposer onTransact switch.Jamie Gennis2011-01-161-2/+2
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Two of the cases in the ISurfaceComposer onTransact switch statement were missing 'break' statements at the end, and would fall through to the next case block. This change adds those break statements. Change-Id: I6dcc84263d3ea03d94612c667103283846b3dee1
* | | | am bec4abaa: Merge "Fix issue 3302649." into gingerbreadEric Laurent2011-01-121-0/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit 'bec4abaa12bf6759f354b54119c5524cf9339e7b': Fix issue 3302649.
| * | | Fix issue 3302649.Eric Laurent2011-01-041-0/+3
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | The cause of the problem is that AudioTrack::start() can fail if it is called from a newly created thread that has the same ID as the AudioTrack callback thread that has just been stopped and not yet exited. This is possible as the thread ID used by the Thread class is not the TID. The fix consists in clearing the thread ID before exiting the thread loop. Change-Id: I66e679665c384403cb3ba2c31746f5de72d5836d
* | | am bfb5f596: Merge "Fix for writing empty strings to Parcel::writeString8()"Jean-Baptiste Queru2010-12-281-1/+4
|\ \ \ | | |/ | |/| | | | | | | * commit 'bfb5f5966b36c4960b56f6de10ba261332208db9': Fix for writing empty strings to Parcel::writeString8()
| * | Fix for writing empty strings to Parcel::writeString8()Pravat Dalbehera2010-12-221-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If writeString8 is called with the following sequence: writeString8(String8("")); writeString8(String8("TempString")); Then in the readString8, the 2nd String i.e. "TempString" is not read, instead an empty string is read. The bug comes because of the write call for String8("") where there are no String bytes present. In the write Statement, an extra ‘\0’ is written. During the Marshalling, Following bytes are written: 1 2 3 4 5 ... 0x0 0x0 0xB ‘T’ ‘e’ ... The readString8 function has a check that, if String length is 0, don’t read anything. So the first byte is read as the length for the first string. The second byte i.e. ‘\0’ is read as the length for the second string and hence the second string becomes empty too. Change-Id: Id7acc0c80ae16e77be4331f1ddf69ea87e758420
* | | am c6f2b3b3: Merge "Fix policy issues when screen is off. (DO NOT MERGE)" ↵Jeff Brown2010-12-231-1/+15
|\ \ \ | | |/ | |/| | | | | | | | | | | | | into gingerbread * commit 'c6f2b3b302c06b8b7b81ec7e3a43a7df1813d0e0': Fix policy issues when screen is off. (DO NOT MERGE)
| * | Fix policy issues when screen is off. (DO NOT MERGE)Jeff Brown2010-12-221-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. Bug: 3144874 Change-Id: Iebb91e10592b4ef2de4b1dd3a2e1e4254aacb697
* | | am 0c8ad64d: Merge "fix [3127755] Launcher is missing anti-aliasing" into ↵Simon Wilson2010-12-203-1/+8
|\ \ \ | |/ / | | | | | | | | | | | | | | | gingerbread * commit '0c8ad64d64b23e2bdd62bc217e327c7e0583784b': fix [3127755] Launcher is missing anti-aliasing
| * | fix [3127755] Launcher is missing anti-aliasingMathias Agopian2010-12-153-1/+8
| | | | | | | | | | | | | | | | | | Enable limited forms of mipmaping when possible. Change-Id: I39ad90becaa4048844fdbbbcb187333e7d59fc6a
* | | am a2977c38: Merge changes Ie03796ae,Ide3e980a into gingerbreadMathias Agopian2010-12-071-6/+13
|\ \ \ | |/ / | | | | | | | | | | | | * commit 'a2977c383d363e1e88a5b36230b1fa4c312807d2': [3171580] SurfaceFlinger Bypass mode. (DO NOT MERGE) [3171580] Add transform field to native buffers. (DO NOT MERGE)
| * | Merge changes Ie03796ae,Ide3e980a into gingerbreadMathias Agopian2010-12-071-6/+13
| |\ \ | | | | | | | | | | | | | | | | | | | | * changes: [3171580] SurfaceFlinger Bypass mode. (DO NOT MERGE) [3171580] Add transform field to native buffers. (DO NOT MERGE)
| | * | [3171580] Add transform field to native buffers. (DO NOT MERGE)Mathias Agopian2010-12-031-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This field indicate how the content of the buffer needs to be transformed. Change-Id: Ide3e980a90599e931406135693231276626adbbb
* | | | am 4153bf3a: Merge "[3171580] don\'t automatically log GraphicBuffer ↵Mathias Agopian2010-12-072-4/+12
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | allocation failures" into gingerbread * commit '4153bf3a259624a2f2dc497b77b225a1fb517abc': [3171580] don't automatically log GraphicBuffer allocation failures
| * | | Merge "[3171580] don't automatically log GraphicBuffer allocation failures" ↵Mathias Agopian2010-12-072-4/+12
| |\ \ \ | | |/ / | | | | | | | | into gingerbread
| | * | [3171580] don't automatically log GraphicBuffer allocation failuresMathias Agopian2010-12-032-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | some of these failures are not fatal and even expected in some cases so they should not emit a dump in the log in those cases. Change-Id: Idcfa252e3bfa9d74e27fe4ad8f8623aa01aa9c5e
* | | | am d57fbe88: Fixed a race condition where some recording frames may not be ↵James Dong2010-12-061-0/+3
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | released * commit 'd57fbe887fabd027e644caeaa2139c863143a786': Fixed a race condition where some recording frames may not be released
| * | Fixed a race condition where some recording frames may not be releasedJames Dong2010-12-061-0/+3
| |/ | | | | | | | | | | bug - 3258924 Change-Id: I4f30d04a713676f5da40e6a7dd861510cc041f9b
* | am f0f6c54b: Merge "frameworks/base: Destroy the overlay even if there is an ↵Jean-Baptiste Queru2010-11-231-2/+7
|\ \ | | | | | | | | | | | | | | | | | | error" * commit 'f0f6c54b13831b11bd7a3bd7a01dc49b7505e56e': frameworks/base: Destroy the overlay even if there is an error
| * | frameworks/base: Destroy the overlay even if there is an errorNaomi Luis2010-11-221-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Allow the overlay object to be destroyed whenever the destroy is invoked. Currently the destroy call returns if there is an error encountered, which results in open data and control channels. Change-Id: I1f2ef4ebb5fb1dcabf05ab50b5bbf6e5e240a63a
* | | am b27b8c0c: Fix a key repeating bug. (DO NOT MERGE)Jeff Brown2010-11-181-40/+40
|\ \ \ | | |/ | |/| | | | | | | * commit 'b27b8c0caf8ff23d10eea655085769f314050427': Fix a key repeating bug. (DO NOT MERGE)
| * | Fix a key repeating bug. (DO NOT MERGE)Jeff Brown2010-11-171-40/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes a bug in the dispatcher where the window manager policy would incorrectly receive a key repeat count of 0 in the case where the key repeat was generated by the hardware or driver. Long-press on HOME was broken as a result. Repeating keys could also get stuck down. Bug: 3159581 Bug: 3208156 Change-Id: I1145487cfcc41a7850dba4cafc63c4a5951ace5b
* | | am bfc1cc2d: Fix stuck keys when released out of order. (DO NOT MERGE)Jeff Brown2010-11-181-2/+2
|\ \ \ | |/ / | | | | | | | | | * commit 'bfc1cc2d1ea85cc754e63b422eb8cef8ae6a3667': Fix stuck keys when released out of order. (DO NOT MERGE)
| * | Fix stuck keys when released out of order. (DO NOT MERGE)Jeff Brown2010-11-171-2/+2
| | | | | | | | | | | | | | | Bug: 3208156 Change-Id: I14e4d54f4912de5e2fabcd8638120623aa2d16e0
* | | am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in ↵Jean-Baptiste Queru2010-11-171-19/+26
|\ \ \ | | |/ | |/| | | | | | | | | | | | | the UI" * commit 'a15e4886de8f75f3cb137f51743d330414c910e8': Framebuffer: Support variable number of framebuffers in the UI
| * | Framebuffer: Support variable number of framebuffers in the UIRodrigo Obregon2010-11-031-19/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change defines a macro NUM_FRAME_BUFFERS to set the desired number of framebuffers to be used by the UI, instead of hard-coding 2 framebuffers. Aditional logic has been added to handle the initialization and destruction of NUM_FRAME_BUFFERS buffers. Change-Id: I3a4bfec3e0f453432f2ffebf084c00f574d3be46 Signed-off-by: Rodrigo Obregon <robregon@ti.com>
| * | Only monitor recognized uevent devices.Sean McNeil2010-08-231-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | system_server can potentially monitor uevent devices that are of no use to it. For instance, an accelerometer implementation as uevents. This would cause the process to be busy when unnecessary. If a device cannot be classified, don't monitor it. Change-Id: I489cc453bdce7cb376102cba67a9ea470e13292d
* | | am fe40e9e0: Merge "fix [3148312] Region can access data out of bounds" into ↵Mathias Agopian2010-11-081-1/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | gingerbread * commit 'fe40e9e0ce7b5536be9f9ff0596714a0eb921b1e': fix [3148312] Region can access data out of bounds
| * | Merge "fix [3148312] Region can access data out of bounds" into gingerbreadMathias Agopian2010-11-081-1/+1
| |\ \
| | * | fix [3148312] Region can access data out of boundsMathias Agopian2010-10-291-1/+1
| | | | | | | | | | | | | | | | Change-Id: Ic46f31d40943f405e37da21a50b55edd5a2c4124
* | | | 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
* | | 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
* | | 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
* | | 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
* | | 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
| |\ \