summaryrefslogtreecommitdiffstats
path: root/core/jni
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix compilation issue when DEBUG_GLYPHS define is activated"Fabrice Di Meglio2011-10-201-1/+1
|\
| * Fix compilation issue when DEBUG_GLYPHS define is activatedFabrice Di Meglio2011-10-191-1/+1
| | | | | | | | Change-Id: I61693952ffdc02f77058311fc982fbbf8df24c6c
* | Notify a Bitmap is has changed when calling copyPixelFromBufferRomain Guy2011-10-181-0/+1
|/ | | | Change-Id: Ibff1a162edfe11473c5c167e764405bf83ec5822
* Deprecate local-only CursorWindows.Jeff Brown2011-10-121-4/+3
| | | | | | | | | | | | | | | | There is no difference and has never really been a difference between local-only and remotable CursorWindows. By removing the distinction officially in the API, we will make it easier to implement CrossProcessCursor correctly. CrossProcessCursor is problematic currently because it's not clear whether a call to getWindow() will return a local-only window or a remotable window. As a result, the bulk cursor adaptor has special case handling for AbstractWindowedCursors vs. ordinary CrossProcessCursors so that it can set a remotable window before the cursor fills it. All these problems go away if we just forget about local-only windows being special in any way. Change-Id: Ie59f517968e33d0ecb239c3c4f60206495e8f376
* Use ashmem for CursorWindows.Jeff Brown2011-10-112-230/+160
| | | | | | | | | | | | | | | | | | | | | Bug: 5332296 The memory dealer introduces additional delays for reclaiming the memory owned by CursorWindows because the Binder object must be finalized. Using ashmem instead gives CursorWindow more direct control over the lifetime of the shared memory region. The provider now allocates the CursorWindows and returns them to clients with a read-only protection bit set on the ashmem region. Improved the encapsulation of CursorWindow. Callers shouldn't need to care about details like how string fields are allocated. Removed the compile-time configuration of string and numeric storage modes to remove some dead weight. Change-Id: I07c2bc2a9c573d7e435dcaecd269d25ea9807acd
* Merge changes Idbfeb3cc,I03e8e2e7,Iff9eed78Jeff Brown2011-10-072-232/+108
|\ | | | | | | | | | | | | * changes: Fix regression in CursorWindow.getString() Bug: 5332296 Clean up CursorWindow lifetime. Bug: 5332296 Fix regression in CursorWindow.copyStingToBuffer. Bug: 5332296
| * Fix regression in CursorWindow.getString()Jeff Brown2011-10-071-2/+8
| | | | | | | | | | | | | | | | | | | | Bug: 5332296 NewStringUTF expects modified UTF-8, so it barfs on UTF-8 strings that contain high codepoints. Even though it results in an extra copy being performed, first convert to UTF-16, then call NewString. Change-Id: Idbfeb3cc2c4b731834e4482848dcac2fa33ec2d0
| * Clean up CursorWindow lifetime.Jeff Brown2011-10-071-229/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5332296 Removed dead code in SQLiteCursor related to the use of a background query thread. This code could result in CursorWindows being modified concurrently or used after free. This code is broken, unused and is just in the way. Added comments to explain how CursorWindow ownership is supposed to work for AbstractWindowedCursors. (There are still cases where cursor windows get dropped on the floor without being closed. Those will be taken care of in a subsequent patch.) Cleaned up SQLiteQuery.fillWindow to eliminate duplicate code and remove bits that were only needed for background loading, like returning -1. Change-Id: I03e8e2e73ff0c11df76d63f57df4c5ada06ae1cb
| * Fix regression in CursorWindow.copyStingToBuffer.Jeff Brown2011-10-071-1/+1
| | | | | | | | | | | | Bug: 5332296 Change-Id: Iff9eed786f0a8293b6156f883a66a322ddad5e99
* | Merge "Restore broken CursorWindow.getType behavior. Bug: 5430009"Jeff Brown2011-10-071-2/+4
|\ \ | |/
| * Restore broken CursorWindow.getType behavior.Jeff Brown2011-10-071-2/+4
| | | | | | | | | | | | | | | | | | | | | | Bug: 5430009 Some CTS tests try to call getType on fields in empty cursor windows or with out of bound column indices (-1). Restoring the previous behavior of returning FIELD_TYPE_NULL instead of throwing. Fix this later. Change-Id: I782bd02012474e7dabc5bb7ea2dc45e8b0c7ef25
* | Merge "Fix bug #5371117 Regression : The Hebrew / Arabic text behavior in ↵Fabrice Di Meglio2011-10-076-247/+187
|\ \ | |/ |/| | | ICS latest build is wrong"
| * Fix bug #5371117 Regression : The Hebrew / Arabic text behavior in ICS ↵Fabrice Di Meglio2011-10-076-247/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | latest build is wrong - welcome back start / count - goodbye log clusters - clean Paint code - make private some functions as they should be - improve memory allocation (create only one Shaper and reuse it for for shaping the runs in the same input text) Change-Id: I89a320c7f041319851308c8c9a919fbeafa82cdd
* | Clean up CursorWindow code.Jeff Brown2011-10-062-436/+353
|/ | | | | | | | | Bug: 5332296 The code is functionally equivalent, but a little more efficient and much easier to maintain. Change-Id: I90670a13799df05831843a5137ab234929281b7c
* Fix handling of "allow fds" state.Dianne Hackborn2011-10-031-3/+12
| | | | | | Didn't take into account nesting of bundles. Boo. Change-Id: Ic8cf21ad8d6f4938a3e105128624c9d162310d01
* Transfer large bitmaps using ashmem.Jeff Brown2011-10-031-6/+23
| | | | | | Bug: 5224703 Change-Id: If385a66adf4c6179a0bb49c0e6d09a9567e23808
* Add mechanism for Parcel to not allow FDs to be written to it.Dianne Hackborn2011-10-031-12/+31
| | | | | | This is to help implement issue #5224703. Change-Id: I026a5890495537d15b57fe61227a640aac806d46
* Merge "Fix potential issue with the TextLayoutCache with glyphs"Fabrice Di Meglio2011-10-031-1/+3
|\
| * Fix potential issue with the TextLayoutCache with glyphsFabrice Di Meglio2011-09-301-1/+3
| | | | | | | | | | | | - there may be a mapping of one char to many glyphs Change-Id: I48846d176d61dc8d8e513ca144fdf8ad805e63b7
* | Improve TextLayoutCache performances a bitFabrice Di Meglio2011-09-302-25/+38
|/ | | | | | | - the gain is about 5% and the timing is more stable - use compare_type() and strictly_order_type() Change-Id: Iab81869a8ba461ce786a468b6c59b8f34e8db838
* Merge "Fix bug # 5376028 Arabic text is kinda broken - disappearing glyphs"Fabrice Di Meglio2011-09-271-15/+4
|\
| * Fix bug # 5376028 Arabic text is kinda broken - disappearing glyphsFabrice Di Meglio2011-09-261-15/+4
| | | | | | | | | | | | - make the log clusters happy Change-Id: I73ca9512f0ca02549dad5270d6ec198ae9b00a4e
* | Merge "Switch to cfg based signal_poll command"Irfan Sheriff2011-09-261-28/+0
|\ \
| * | Switch to cfg based signal_poll commandIrfan Sheriff2011-09-261-28/+0
| | | | | | | | | | | | | | | Bug: 5352916 Change-Id: Id2ba7091a5e4cc4c1e14aa2c49e5b943519019bf
* | | Revert "Transfer large bitmaps using ashmem. Bug: 5224703"Bart Sears2011-09-251-23/+6
| | | | | | | | | | | | | | | This reverts commit 56c58f66b97d22fe7e7de1f7d9548bcbe1973029 This CL was causing the browser to crash when adding bookmarks, visiting the bookmarks page, and sharing pages (see bug http://b/issue?id=5369231
* | | Transfer large bitmaps using ashmem.Jeff Brown2011-09-231-6/+23
| |/ |/| | | | | | | | | Bug: 5224703 Change-Id: Ic7481dd9f173986f085a8bbdcc59bbe9830d7a44
* | Merge "Fix bug #5332081 TextLayoutCache needs to be able to have more cache ↵Fabrice Di Meglio2011-09-237-150/+186
|\ \ | | | | | | | | | hits"
| * | Fix bug #5332081 TextLayoutCache needs to be able to have more cache hitsFabrice Di Meglio2011-09-217-150/+186
| |/ | | | | | | | | | | | | | | | | - makes TextLayoutCache not carring about start/count. Basically he will cache the result for the full string and gives back the "chunk" corresponding to start/count - changed the TextLayoutCacheValue API to take start/count parameters - add Harfbuzz LogClusters in TextLayoutCacheValue as it is needed for extracting the start/count "chunk" Change-Id: I4b38a4442428606de9a093303bbbe98181e1f89c
* | am b20d378c: Merge "Don\'t crash during full backup when CheckJNI is ↵Christopher Tate2011-09-231-4/+4
|\ \ | | | | | | | | | | | | | | | | | | enabled" into ics-factoryrom * commit 'b20d378cec09da18301eb9c33bc88251beb81042': Don't crash during full backup when CheckJNI is enabled
| * | Don't crash during full backup when CheckJNI is enabledChristopher Tate2011-09-231-4/+4
| | | | | | | | | | | | | | | | | | | | | It's not okay to pass null to JNI methods and trust that it will just back off and return a null result cleanly. Fixes bug 5361822 . Change-Id: Id8a17b958fd183d55cb6475f394e158c13aae2ea
* | | am 5f0ef5fb: Fix jpeg callback is lost if setPreviewCallbackWithBuffer has ↵Wu-cheng Li2011-09-211-25/+14
|\ \ \ | |/ / | | / | |/ |/| | | | | been called. * commit '5f0ef5fb0c2e65ca3d0aa4fcd2b300d4cd0a2b4b': Fix jpeg callback is lost if setPreviewCallbackWithBuffer has been called.
| * Fix jpeg callback is lost if setPreviewCallbackWithBuffer has been called.Wu-cheng Li2011-09-211-25/+14
| | | | | | | | | | | | | | | | | | mManualBufferMode is only for CAMERA_MSG_PREVIEW_FRAME. If it is CAMERA_MSG_COMPRESSED_IMAGE, a new byte array should be allocated. bug:5340480 Change-Id: I4f33bd6297bfd30505e0e15ae46012ea44e85962
* | TextLayoutCacheKey needs to store start and count.Jeff Brown2011-09-191-0/+2
| | | | | | | | | | | | Bad merge. Change-Id: Id6507b3a7e35808a6d34501a45d79fcb7470657d
* | TextLayoutCache code refactoringFabrice Di Meglio2011-09-194-133/+47
| | | | | | | | | | | | | | - use vector (instead of array) for advances and glyphs - reverse glyphs directly in computeRunValuesWithHarfbuzz() (instead of reversing them after) Change-Id: I716a8f914fd043818d7cb80cca76ee5fb0effb96
* | Merge "Fix potential leak in TextLayouCache"Fabrice Di Meglio2011-09-192-3/+25
|\ \
| * | Fix potential leak in TextLayouCacheFabrice Di Meglio2011-09-182-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | - need a copy constructor for the key as the GenerationCache we are using is actually a KeyedVector<K, sp<Entry<K, V> > > - use the getText() API to access the text in the cache key Change-Id: I5b60ebc062b62308ed7ac1284cfe2a9f28e2b8b1
* | | Make TextLayoutCache no more dependent on ICUFabrice Di Meglio2011-09-183-82/+75
|/ / | | | | | | | | | | - move ICU call to TextLayout Change-Id: Id5a21e7b69e484536cfb5b86fbb0c112fb661dfa
* | Revert "Fix bug #5332081 TextLayoutCache needs to be able to have more cache ↵Fabrice Di Meglio2011-09-187-306/+240
| | | | | | | | | | hits" This reverts commit d686d76814f18061e06995df0d5de9feb9f70a7e
* | Fix bug #5332081 TextLayoutCache needs to be able to have more cache hitsFabrice Di Meglio2011-09-167-240/+306
| | | | | | | | | | | | | | | | | | | | - makes TextLayoutCache not carring about start/count. Basically he will cache the result for the full string and gives back the "chunk" corresponding to start/count - changed the TextLayoutCacheValue API to take start/count parameters - added the Harfbuzz LogClusters in TextLayoutCacheValue as it is needed for extracting the start/count "chunk" - fix potential issue of cache key leaking Change-Id: I9276f9bec744e8de36349acfba8429f7c6f83394
* | NetworkManagement SocketTagger: Migrate QTagUid support to JNI.JP Abgrall2011-09-153-0/+100
|/ | | | | | | | | | | * Instead of javaland trying to write commands to /proc/net/xt_qtaguid/ctrl use the libcutils/qtaguid.c support via JNI. * Get rid of tagToKernel() handled by qtaguid library. Requires libcutils changes from c/132538/ Change-Id: I9de5b3fa4a596c56835024c6d376769a0eea7db1
* Merge "Velocity Tracker II: The Revenge of Velocity Tracker Bug: 5265529"Jeff Brown2011-09-141-0/+62
|\
| * Velocity Tracker II: The Revenge of Velocity TrackerJeff Brown2011-09-141-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5265529 Rewrote the velocity tracker to fit a polynomial curve to pointer movements using least squares linear regression. The velocity is simply the first derivative of this polynomial. Clients can also obtain an Estimator that describes the complete terms of the estimating polynomial including the coefficient of determination which provides a measure of the quality of the fit (confidence). Enhanced PointerLocation to display the movement curve predicted by the estimator in addition to the velocity vector. By default, the algorithm computes a 2nd degree (quadratic) polynomial based on a 100ms recent history horizon. Change-Id: Id377bef44117fce68fee2c41f90134ce3224d3a1
* | Fix issue #5155678: Portrait > Landscape full-screen transition...Dianne Hackborn2011-09-141-6/+6
| | | | | | | | | | | | | | | | | | ...mode cuts off screen rendering The code for limiting application window sizes to not include the navigation bar was dead. Now it is back. Change-Id: Ic0bde56e3300fd0d9d225e19d8de2766d07e8780
* | Merge "Fix some TextLayoutCache issues"Fabrice Di Meglio2011-09-142-20/+16
|\ \ | |/ |/|
| * Fix some TextLayoutCache issuesFabrice Di Meglio2011-09-132-20/+16
| | | | | | | | | | | | | | - wrong ContextCount was passed - better logs Change-Id: Ie78ba70f98f3cf017c168ab8848cc080fc175f31
* | Fix a compile error when debug is turned onMatthew Xie2011-09-121-1/+1
|/ | | | | | logv uses a variable that is declared after its use Change-Id: Id5c09698e4a0a91befa3ce2f60ce02ec28733889
* Add error codes for channel disconnection / connection.Jaikumar Ganesh2011-09-083-46/+82
| | | | | | | | Channel connection / disconnection was handled as boolean, doesn't capture all the values. Also make it asynchronous instead of the dbus call being synchronous. Change-Id: If30177b9f93b7c83f162fbbc1233edf3e46dbfea
* Make Bluetooth Health APIs public.Jaikumar Ganesh2011-09-081-1/+2
| | | | | | | | Fix a few bugs: a) Pass a integer token to identify the channel. b) Close fds in case of errors. Change-Id: I2046787be5008769435f2f72a5bd67c19b749da0
* Fix bug #5274332 TextLayoutCache is having multiple instancesFabrice Di Meglio2011-09-076-32/+26
| | | | | | - also fix the missing LOG_TAG define Change-Id: I25e96d1ba372e84768604f18702e0724fdecefb0
* Merge "Fix JNI leak in copyStringToBuffer Bug: 5244396"Jeff Brown2011-08-311-2/+0
|\