summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* Fix a leak in Parcel::writeBlob.Jeff Brown2011-11-041-9/+4
| | | | | | | | | | Was mistakenly assuming that Parcel::writeFileDescriptor took ownership of the fd that was passed in. It does not! Added some comments and a default parameter to allow the caller to specify whether it wishes the Parcel to take ownership. Bug: 5563374 Change-Id: I5a12f51d582bf246ce90133cce7690bb9bca93f6
* Fix potential segfault in RS watchdog.Stephen Hines2011-10-311-0/+1
| | | | | | | | | BUG=5544671 This initializes the watchdog structure properly. Without this fix, it is possible to call LOGE with a garbage string value. Change-Id: Ie05eb65f83eca938f18ac962794407d58c3f277f
* Improve the slow query instrumentation.Jeff Brown2011-10-281-1/+1
| | | | | | | | | | | | | | | | | | | On user-debug and eng builds, you can set the "db.log.slow_query_threshold" system property to queries that take longer than the specified number of milliseconds. Set it to 0 to log all queries. This property has been around for a while but it was implemented poorly. In particular, it *changed* the behavior of the query by calling getCount() while holding the Db connection. In normal operation, the query will not actually run until later. By putting the timing logic into fillWindow() instead, we ensure that we only measure queries that actually ran. We also capture cases where the cursor window gets filled multiple times. Bug: 5520301 Change-Id: I174f5e1ea15831a1d22a36e9a804d7755f230b38
* Fix bug where CPU could be stuck spinningJason Sams2011-10-261-0/+2
| | | | | | | | | | Required the wallpaper be animating and the system to have run slowly during the last frame when rendering stopped. bug 5180240 Change-Id: I38c2b6f07a1e36019dd05c77a58973e36d12728c
* SurfaceTexture: free buffers when disconnect failsJamie Gennis2011-10-181-1/+1
| | | | | | | | | This change makes SurfaceTextureClient free its references to all the buffers even when the disconnect binder call to the SurfaceTexture fails. Bug: 5384823 Change-Id: Iad787fbae5fda4769546fd52276e4e4030c62be6
* Merge "SensorManager reconnects to sensor service when the later dies" into ↵Mathias Agopian2011-10-171-30/+79
|\ | | | | | | ics-mr0
| * SensorManager reconnects to sensor service when the later diesMathias Agopian2011-10-161-30/+79
| | | | | | | | | | | | | | | | | | if system process ever restarted, processes using a SensorManager would loose the ability to use it, resulting to a crash. we now listen for sensor service death and reconnected if necessary. Bug: 5445240 Change-Id: Ia47f8b26cdcecb729fa22bf11d55e10fcaef8cfc
* | Merge "SurfaceTexture: report binder transaction failures" into ics-mr0Jamie Gennis2011-10-171-23/+56
|\ \ | |/ |/|
| * SurfaceTexture: report binder transaction failuresJamie Gennis2011-10-141-23/+56
| | | | | | | | | | | | | | | | This change fixes the ISurfaceTexture error reporting for the case where the binder transaction fails. Bug: 5082219 Change-Id: I6517532992e3a76dc9eb5e4a36af43a562391aaa
* | add logging and defensive code when initializing sensorsMathias Agopian2011-10-161-3/+17
| | | | | | | | | | Bug: 5445240 Change-Id: I9dc7d27d3e8b4f15989488859831526d8c7ded3b
* | Merge "Surface: fix a protected buffer test" into ics-mr0Jamie Gennis2011-10-141-25/+2
|\ \
| * | Surface: fix a protected buffer testJamie Gennis2011-10-121-25/+2
| |/ | | | | | | | | | | | | | | This change renames the ScreenshotsOfProtectedBuffersFail to ScreenshotsOfProtectedBuffersSucceed and changes the test to verify that the screenshot succeeds. Change-Id: I960bb8eed4211578cb4dc446b08392937da064b6
* | Fix error printing if no command string is set.Jason Sams2011-10-131-2/+6
|/ | | | Change-Id: I588c0d0a4e1b8f80c967ebfb6aff179a0cac4a36
* Merge "SurfaceFlinger: update orientation via transactions" into ics-mr0Jamie Gennis2011-10-122-65/+29
|\
| * SurfaceFlinger: update orientation via transactionsJamie Gennis2011-10-112-65/+29
| | | | | | | | | | | | | | | | | | | | | | This change merges the ISurfaceComposer::setOrientation functionality into ISurfaceComposer::setTransactionState. It enables the window manager to atomically update both the display orientation and the position and size of the windows in a single transaction with SurfaceFlinger. Bug: 5439574 Change-Id: I18a8ccc564d7d760ef8afb2d015ccdb7a7963900
* | Merge "Add video stabilization control to Camera parameters." into ics-mr0Eino-Ville Talvala2011-10-121-0/+2
|\ \
| * | Add video stabilization control to Camera parameters.Eino-Ville Talvala2011-10-121-0/+2
| |/ | | | | | | | | | | | | | | | | Hardware video stabilization reduces camera shake in preview and in recorded videos. It has no effect on still image capture. Convenience accessor methods hidden for now. Change-Id: Ie18450bff662b2ef98b85d19719beefc180975fc
* | Use ashmem for CursorWindows.Jeff Brown2011-10-112-263/+239
|/ | | | | | | | | | | | | | | | | | | | | 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-071-6/+7
|\ | | | | | | | | | | | | * 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.copyStingToBuffer.Jeff Brown2011-10-071-6/+7
| | | | | | | | | | | | Bug: 5332296 Change-Id: Iff9eed786f0a8293b6156f883a66a322ddad5e99
* | Stupid fixed point math.Romain Guy2011-10-071-7/+7
|/ | | | | | Bug #5423215 Change-Id: I39379e1f8fb4d59de4ede6e4fe7cf7a2c7cc625a
* Clean up CursorWindow code.Jeff Brown2011-10-061-38/+3
| | | | | | | | | Bug: 5332296 The code is functionally equivalent, but a little more efficient and much easier to maintain. Change-Id: I90670a13799df05831843a5137ab234929281b7c
* Merge "Wrapping new API with #defines to prevent old apps from using them."Jason Sams2011-10-055-1/+16
|\
| * Wrapping new API with #defines to prevent old apps from using them.Alex Sakhartchouk2011-09-285-1/+16
| | | | | | | | Change-Id: Ib3a2d19544ad72987ebec09d465bec8eeb6423c8
* | Merge "Canvas.getClipBounds() was broken and unreliable with OpenGL ES 2.0"Romain Guy2011-10-041-23/+9
|\ \
| * | Canvas.getClipBounds() was broken and unreliable with OpenGL ES 2.0Romain Guy2011-10-041-23/+9
| | | | | | | | | | | | | | | | | | | | | | | | This bug was affecting several third party applications. The bug was introduced by an optimization that prevented the local clip to be recomputed when needed. Change-Id: I7b5c464db21b5ff1a7274af75a3a64d0e9d84772
* | | Merge "Fix crash running old HC apps."Jason Sams2011-10-041-1/+4
|\ \ \
| * | | Fix crash running old HC apps.Jason Sams2011-10-041-1/+4
| | |/ | |/| | | | | | | Change-Id: If7206de334868cb40eb8e5dd04fbe8c70bc1d614
* | | Fix handling of "allow fds" state.Dianne Hackborn2011-10-031-2/+9
| | | | | | | | | | | | | | | | | | Didn't take into account nesting of bundles. Boo. Change-Id: Ic8cf21ad8d6f4938a3e105128624c9d162310d01
* | | Transfer large bitmaps using ashmem.Jeff Brown2011-10-031-0/+108
| | | | | | | | | | | | | | | | | | Bug: 5224703 Change-Id: If385a66adf4c6179a0bb49c0e6d09a9567e23808
* | | Add mechanism for Parcel to not allow FDs to be written to it.Dianne Hackborn2011-10-031-1/+18
| |/ |/| | | | | | | | | This is to help implement issue #5224703. Change-Id: I026a5890495537d15b57fe61227a640aac806d46
* | SurfaceTexture: parameterize the texture targetJamie Gennis2011-09-301-7/+8
| | | | | | | | | | | | | | This change adds a hack to allow Android Browser to use a SurfaceTexture to stream RGBA images to a GL_TEXTURE_2D texture object. Change-Id: Idb90064d5d4b920959ef3be7451362ac5012460e
* | TextureView works best when it draws stuff.Romain Guy2011-09-291-1/+1
| | | | | | | | | | | | Bug #5391188 Change-Id: I5e754881ccb08ff288ebd60de77282c9cbcf3f86
* | may fix the buildMathias Agopian2011-09-281-6/+2
|/ | | | Change-Id: I065b1e6652f0e800ba5674a6d9aa954c3ac6c790
* Merge changes Ib302d79e,Ib4ee085fJamie Gennis2011-09-271-60/+85
|\ | | | | | | | | | | * changes: SurfaceFlinger: set layer names on SurfaceTextures SurfaceTexture: add name support
| * SurfaceTexture: add name supportJamie Gennis2011-09-221-60/+85
| | | | | | | | | | | | | | This change adds support for setting a string that can be used to identify a SurfaceTexture object in log messages. Change-Id: Ib4ee085f36c8830dc964c05ef1654f5a55dfcd60
* | Region cannot handle malformed Rects. Abort the Region op in that case.Mathias Agopian2011-09-261-0/+1
| | | | | | | | | | Bug: 5331198, 5334829 Change-Id: Ib1fdbf6fb291e7f1191ccfe16b5ff29d73e7a474
* | Remove unused fields in ProgramRasterJason Sams2011-09-233-34/+5
|/ | | | Change-Id: I70c9d47674c956ec850c178c7aaa9a5e3dd9dffb
* Merge "Cleanup RS logs Reduce the startup/shutdown info and format the logs ↵Jason Sams2011-09-213-17/+12
|\ | | | | | | in a consistent manner."
| * Cleanup RS logsJason Sams2011-09-203-17/+12
| | | | | | | | | | | | | | Reduce the startup/shutdown info and format the logs in a consistent manner. Change-Id: I4592cd9fcf7e2920010d84c7137137262cdc73b9
* | Make sure Region handles invalid rectanglesMathias Agopian2011-09-191-0/+5
| | | | | | | | | | | | | | | | | | the boolean operation code assumes rects are valid and could go into an infinite loop if not. make sure we abort before that happens. Bug: 5331198, 5334829 Change-Id: Iee4e3b838ecf504ef21f7447fd2e34a56e7dc3f8
* | fix the float Rect in OpenGLRenderer to handle NANsMathias Agopian2011-09-191-36/+26
|/ | | | | | | | | | | | | | | - we want functions like isEmpty() to return true if NANs are involved in the Rect - also clean-up the intersect familly of calls - minor cleanup in the int32_t Rect as well These played a role in http://b/5331198. Bug: 5331198 Change-Id: I5369725ab482e4b83da9f1bd4cee5256e5de75b2
* am 79aa4030: Merge "Can\'t stop the fling! Bug: 5335420" into ics-factoryromJeff Brown2011-09-161-0/+2
|\ | | | | | | | | * commit '79aa40302b643ee6c6227ee354a1b1378e721568': Can't stop the fling! Bug: 5335420
| * Can't stop the fling!Jeff Brown2011-09-161-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5335420 Fixed a bug in VelocityTracker where the output velocity was not being set to zero when not available. Added a condition to ensure that the velocity is at least the minimum fling velocity before continuing. If not, then the user is trying to stop the fling and scroll more precisely. Change-Id: I36634b0c3f7a9a09cf20c33f71d41163a8e33eed
| * Merge "work around a problem where fp registers get corrupted (DO NOT ↵Mathias Agopian2011-09-161-1/+5
| |\ | | | | | | | | | MERGE)" into ics-factoryrom
| | * work around a problem where fp registers get corrupted (DO NOT MERGE)Mathias Agopian2011-09-161-1/+5
| | | | | | | | | | | | | | | Bug: 5331198 Change-Id: I1f9b4a79d34d63f8adb0555909998664ea2ea9ca
| * | Make LTE_FLOAT a strict weak order. (DO NOT MERGE)Jeff Brown2011-09-161-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5327776 Currently LTE_FLOAT isn't even a valid partial order, let alone a strict weak order as needed by binary search. Consequently, KeyedVectors with keys whose types have operator< using LTE_FLOAT sometimes find the wrong values! This problem affects several graphics caches including the TextLayoutCache. (This is still not a total order because NaNs are not comparable but hopefully we don't ever search for NaNs this way!) Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
* | Merge "Make LTE_FLOAT a strict weak order. Bug: 5327776"Jeff Brown2011-09-161-1/+1
|\ \
| * | Make LTE_FLOAT a strict weak order.Jeff Brown2011-09-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5327776 Currently LTE_FLOAT isn't even a valid partial order, let alone a strict weak order as needed by binary search. Consequently, KeyedVectors with keys whose types have operator< using LTE_FLOAT sometimes find the wrong values! This problem affects several graphics caches including the TextLayoutCache. (This is still not a total order because NaNs are not comparable but hopefully we don't ever search for NaNs this way!) Change-Id: Ic447a34c7d87f681ee81538f22a0937a039072dd
* | | Merge "cleanup: fix typos in logs"Mathias Agopian2011-09-161-1/+1
|\ \ \