summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Clean TextLayout code and remove RTL_USE_HARFBUZZFabrice Di Meglio2011-12-087-367/+86
| | | | | | | | | - remove dependencies on ICU - use TextLayouCache - remove RTL_USE_HARFBUZZ define (we *are* using Harfbuzz now) - also fix compilation warning Change-Id: I022e11703438d07032e49e42724184f6bf16653e
* Improve the VSYNC api a bit.Mathias Agopian2011-12-061-0/+6
| | | | | | | | | | | - add the ability to set the vsync delivery rate, when the rate is set to N>1 (ie: receive every N vsync), SF process' is woken up for all of vsync, but clients only see the every N events. - add the concept of one-shot vsync events, with a call-back to request the next one. currently the call-back is a binder IPC. Change-Id: I09f71df0b0ba0d88ed997645e2e2497d553c9a1b
* Discard framebuffer rendering queues when discarding layersRomain Guy2011-12-061-0/+5
| | | | | | Bug #5581817 Change-Id: Ie30700a29059d2ea60eb7bd3f8bd20ac48a149ab
* Merge "Add a new class to receive vsync events."Jeff Brown2011-12-054-1/+266
|\
| * Add a new class to receive vsync events.Jeff Brown2011-12-054-1/+266
| | | | | | | | Change-Id: I4e384336d2813752a6d65fda6a77e86113a4510c
* | Harfbuzz assumes the length of the item is at least 1.Jeff Brown2011-12-051-3/+11
| | | | | | | | | | | | | | | | | | | | | | If the length is zero, then it will clobber memory at index -1 into the log_clusters array. Explicitly handle the cases where the entire string or a single run might have a length of 0. Bug: 5705479 Change-Id: Ibbd3a4edcb7e1cad09c34091b42bb315776ea558
* | Ensure log_clusters array is big enough.Jeff Brown2011-12-052-28/+10
|/ | | | | Bug: 5714171 Change-Id: I886f1af8af177827f052e6406a192f2fad5c2cec
* am 803caff1: am 003c15d7: Merge "Fix issue #5614559: Registering surface ↵Dianne Hackborn2011-12-051-0/+20
|\ | | | | | | | | | | | | error in..." into ics-mr1 * commit '803caff1dc307a8895e9f3560112f969fa3f6f39': Fix issue #5614559: Registering surface error in...
| * Fix issue #5614559: Registering surface error in...Dianne Hackborn2011-12-031-0/+20
| | | | | | | | | | | | | | | | | | | | ...Background Replacement on Stingray This is how I should have done it in the first place. We get the new surface from the window manager, and then just copy it in to the constant Surface object we have for the holder. Change-Id: I537a9e413829a18f689dfb46687014676b27156e
* | am 54cf27d7: am 6d90c1c6: Merge "Disable GLES20Canvas on emu w/o native GL" ↵Jesse Hall2011-12-021-1/+10
|\ \ | |/ | | | | | | | | | | into ics-mr1 * commit '54cf27d7bbe27b1096f5e060c540f07dac07f1d0': Disable GLES20Canvas on emu w/o native GL
| * Disable GLES20Canvas on emu w/o native GLJesse Hall2011-12-021-1/+10
| | | | | | | | | | | | | | | | | | | | When the emulator is run without '-gpu on', GLES20 isn't supported, so claiming GLES20Canvas is available will lead to catastrophic failure. This change makes GLES20Canvas available when compiled in and either not running on the emulator, or running on the emulator with native GL acceleration enabled. Change-Id: I89c944f9e3c9585224f5aa0877335ea48ea4a468
* | Merge "TextLayoutCache Fix compilation issue"Fabrice Di Meglio2011-12-021-2/+5
|\ \
| * | TextLayoutCache Fix compilation issueFabrice Di Meglio2011-12-021-2/+5
| | | | | | | | | | | | | | | | | | - fix compilation after refactoring and when setting DEBUG_ADVANCES to 1 Change-Id: I8eef7e3c4550c505325459948d3c8eebbdd5215a
* | | Refactor InputQueue as InputEventReceiver.Jeff Brown2011-12-014-525/+310
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change simplifies the code associated with receiving input events from input channels and makes it more robust. It also does a better job of ensuring that input events are properly recycled (sometimes we dropped them on the floor). This change also adds a sequence number to all events, which is handy for determining whether we are looking at the same event or a new one, particularly when events are recycled. Change-Id: I4ebd88f73b5f77f3e150778cd550e7f91956aac2
* | | Ensure input events are processed in-order in the application.Jeff Brown2011-12-011-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As it turns out, it used to be possible for there to be multiple input events simultaneously in flight in an application. Although it worked, it made it hard to reason about what was going on. The problem was somewhat exacerbated by the introduction of a queue of "InputEventMessage" objects as part of an earlier latency optimization. This change restores order from chaos and greatly simplifies the invariants related to input event dispatch within the application. Change-Id: I6de5fe61c1fe2ac3dd33edf770d949044df8a019
* | | TextLayoutCache Code cleaningFabrice Di Meglio2011-11-301-5/+1
|/ / | | | | | | | | | | | | - remove commented code - fix log Change-Id: I8495b923c9426e33e645fe85ea04005520716f4e
* | Merge "Improve TextLayoutCache logging"Fabrice Di Meglio2011-11-302-62/+80
|\ \
| * | Improve TextLayoutCache loggingFabrice Di Meglio2011-11-302-62/+80
| | | | | | | | | | | | | | | | | | | | | - make logs more consistent and readable - add more logs information Change-Id: Idfe5bb53e9163c4c07a9b4267b66b0d0e164a498
* | | Fix compile error in android_hardware_Camera.cpp.Wu-cheng Li2011-11-301-1/+1
| | | | | | | | | | | | Change-Id: I06b187deaacb98e01813dbfb8d92a332bfc08fc4
* | | Merge "Add camera focus move callback."Wu-cheng Li2011-11-291-0/+14
|\ \ \
| * | | Add camera focus move callback.Wu-cheng Li2011-11-291-0/+14
| | | | | | | | | | | | | | | | | | | | bug:5534973 Change-Id: Iaadcb2738ad040f94849be30ee531326f6199431
* | | | Merge "Redesign p2p around provision discovery"Irfan Sheriff2011-11-291-0/+4
|\ \ \ \
| * | | | Redesign p2p around provision discoveryIrfan Sheriff2011-11-281-0/+4
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | = Provision Discovery:Is an optional discovery technique for figuring out if a peer supports the specific WPS option. For compatibility reasons, we will now always use it during connection but at the same time support devices that request to support connection without it = State machine and UI redesign around the new interaction = Specify config methods explicitly for compatibility Bug: 5599949 Change-Id: Ib79435dda472c43cc0746f56bf79ea896b2e33a4
* | | | BitTube::read now handles EAGAINMathias Agopian2011-11-291-1/+1
|/ / / | | | | | | | | | Change-Id: Iacda2386342ba0727bbf278f6c597488d5467bb8
* | | Merge "Improve TextLayoutCache performances"Fabrice Di Meglio2011-11-225-315/+341
|\ \ \ | |/ / |/| |
| * | Improve TextLayoutCache performancesFabrice Di Meglio2011-11-225-315/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | - introduce TextLayoutEngine - reduce calls to HB_NewFace as they are opening the font files under the cover - refactor code for removing FontData structure - fix logging Change-Id: Id9658fcd454b74c34ecf4e9dfd1bd2201e04b988
* | | Merge "Fix TextLayoutCache Skia Typeface caching"Fabrice Di Meglio2011-11-182-9/+12
|\ \ \ | |/ /
| * | Fix TextLayoutCache Skia Typeface cachingFabrice Di Meglio2011-11-182-9/+12
| | | | | | | | | | | | | | | | | | - fix reference passing for globals Change-Id: I806dd4406d455b98c6be733847419b06b6774ccc
* | | am 4c0e0dd2: am 3e7497b4: Merge "Eliminate hw.keyboards system properties." ↵Jeff Brown2011-11-151-7/+14
|\ \ \ | |/ / |/| / | |/ | | | | | | into ics-mr1 * commit '4c0e0dd29dcce33e7521b11d01d21d9431f3b264': Eliminate hw.keyboards system properties.
| * Eliminate hw.keyboards system properties.Jeff Brown2011-11-151-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | Stop using system properties to publish information about the key character map path. Instead, we can retrieve it on demand by asking the window manager. It was possible to exhaust the supply of system properties when repeatedly adding and removing input devices. Bug: 5532806 Change-Id: Idd361a24ad7db2edc185c8546db7fb05f9c28669
* | Merge "Clean up GenerationCache."Jeff Brown2011-11-141-1/+1
|\ \
| * | Clean up GenerationCache.Jeff Brown2011-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use const references to keys and values where appropriate to avoid copying them unnecessarily. Deleted some dead code. Simplified a few pieces that were doing unnecessary redundant work. Change-Id: Ib2145b7094a40db2d679e05dafe050fe1e87b846
* | | am 2cfb873c: am 9d66da8a: Merge "Revert "Discard framebuffer rendering ↵Dave Burke2011-11-141-5/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | queues when discarding layers"" into ics-mr1 * commit '2cfb873c9f0b56f2c7d694a21c968511223933af': Revert "Discard framebuffer rendering queues when discarding layers"
| * | Merge "Revert "Discard framebuffer rendering queues when discarding layers"" ↵Dave Burke2011-11-141-5/+0
| |\ \ | | | | | | | | | | | | into ics-mr1
| | * | Revert "Discard framebuffer rendering queues when discarding layers"Dave Burke2011-11-141-5/+0
| | | | | | | | | | | | | | | | This reverts commit da96f8ac2c1c35a54f3f36e6d776cb386a251d03.
* | | | am 738d8cae: am c93a151f: Merge "Define, document, and test the behavior of ↵Mathias Agopian2011-11-141-3/+3
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | very large SurfaceTextures" into ics-mr1 * commit '738d8cae2239d194429676f2889cfae3c8f7ba08': Define, document, and test the behavior of very large SurfaceTextures
| * | | Merge "Define, document, and test the behavior of very large ↵Mathias Agopian2011-11-141-3/+3
| |\ \ \ | | |/ / | |/| | | | | | SurfaceTextures" into ics-mr1
| | * | Define, document, and test the behavior of very large SurfaceTexturesMathias Agopian2011-11-111-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | updateTexImage() now throws a runtime exception when its native counterpart fails Bug: 5506633 Change-Id: I151a6f685d465966e7df4df624412ab2da62e95f
* | | | am a16ee939: am 28587497: Merge "Discard framebuffer rendering queues when ↵Mathias Agopian2011-11-141-0/+5
|\ \ \ \ | |/ / / | | | / | |_|/ |/| | | | | | | | discarding layers Bug #5581817" into ics-mr1 * commit 'a16ee9390e1fcea8ff7cbefd253659c37f2999a3': Discard framebuffer rendering queues when discarding layers Bug #5581817
| * | Merge "Discard framebuffer rendering queues when discarding layers Bug ↵Mathias Agopian2011-11-141-0/+5
| |\ \ | | | | | | | | | | | | #5581817" into ics-mr1
| | * | Discard framebuffer rendering queues when discarding layersRomain Guy2011-11-101-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Bug #5581817 Change-Id: If612846ec5f7793710fc4df152791fb32c506551
| * | | am f1f0c873: Fix bug in TextLayoutCacheKey handling embedded nulls.Jeff Brown2011-11-111-1/+1
| |\ \ \ | | |_|/ | |/| | | | | | | | | | * commit 'f1f0c873b1d119a19342cb67ca77b59607951659': Fix bug in TextLayoutCacheKey handling embedded nulls.
* | | | am 0e4669c8: am f1f0c873: Fix bug in TextLayoutCacheKey handling embedded nulls.Jeff Brown2011-11-111-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * commit '0e4669c81009cea51d9d7b42b7ff665f44e78aa6': Fix bug in TextLayoutCacheKey handling embedded nulls.
| * \ \ \ am f1f0c873: Fix bug in TextLayoutCacheKey handling embedded nulls.Jeff Brown2011-11-111-1/+1
| |\ \ \ \ | | |/ / / | |/| / / | | |/ / | | | | * commit 'f1f0c873b1d119a19342cb67ca77b59607951659': Fix bug in TextLayoutCacheKey handling embedded nulls.
| | * | Fix bug in TextLayoutCacheKey handling embedded nulls.Jeff Brown2011-11-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were not passing the length of the UTF-16 string to String16::setTo. As a result, it was copying the contents of the text up to the first null it found. First problem, these strings are not typically null terminated! Second problem, if the string contained a null character, then we might truncate it. However, we only truncated the string when the copy constructor was invoked (say, when we called get() on the cache) but not in internalTextCopy() (before adding the key to the cache). As a result of the second problem, we would first search the cache for a key that matched a partially copied truncated string (potentially reading uninitialized memory that followed it). Finding none, we would add the entry to the cache using the correct key. If the cache already had a value associated with the correct key, then the put would fail, returning false. Charging ever onwards, we would add the size of the entry to the cache size. Proceeding in this manner, it was possible for the cache to believe it had less remaining space than it really did. At that point, it was possible for the cache to evict all entries and yet still not think it had room to add a new one, so it would continue trying to make space indefinitely. Bug: 5576812 Change-Id: I05251594f6b2da0a5dc09f7200f04fe9100ec766
* | | | Merge "Improve the logging in TextLayoutCache."Fabrice Di Meglio2011-11-112-75/+56
|\ \ \ \
| * | | | Improve the logging in TextLayoutCache.Jeff Brown2011-11-112-75/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also deleted some dead code. Change-Id: I1feb5744177ae751ff1417f49f3c45139a35246b
* | | | | am cb0db030: Merge branch \'ics-mr1-plus-aosp\' of ↵Akwasi Boateng2011-11-113-1/+29
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ssh://android-git:29418/platform/frameworks/base into ics-mr1-plus-aosp * commit 'cb0db0306b5849a35d3d99eea1b34ce019c6f0d8': Make the overridden ImageView#setVisibility remotable Clamp non-monotonic stats instead of dropping. DO NOT MERGE. Fix leak in LayoutTransition Fix lastVisible/global rects Fix Wimax-less build. Fix leak in LayoutTransition Deferring wallpaper update to improve workspace scrolling (issue 5506959) Terminate EGL when an app goes in the background boot animation is dithered and scaled Fix NdefRecord byte-stream constructor. PopupWindow dismiss() can get into a recursive loop. Fold WiMAX state into the mobile RSSI. Remove dedicated wimax icon to fix RSSI layout.
| * | | Merge "Fix NdefRecord byte-stream constructor." into ics-mr1Martijn Coenen2011-11-101-1/+1
| |\ \ \ | | |_|/ | |/| |
| | * | Fix NdefRecord byte-stream constructor.Martijn Coenen2011-11-101-1/+1
| | | | | | | | | | | | | | | | | | | | Bug: 5601404 Change-Id: I30fada97487829a8b2ccc1a1e7a32837c29ddd70