summaryrefslogtreecommitdiffstats
path: root/libs
Commit message (Collapse)AuthorAgeFilesLines
* USB: minor cleanup workMike Lockwood2011-03-113-1/+33
| | | | | | | Bug: 4067029 Change-Id: Icd8f912ab8732b5f770a217b9b3731092597ce02 Signed-off-by: Mike Lockwood <lockwood@android.com>
* Merge "SurfaceFlinger: Respect the PROTECTED gralloc bit." into honeycomb-mr1Jamie Gennis2011-03-101-6/+59
|\
| * SurfaceFlinger: Respect the PROTECTED gralloc bit.Jamie Gennis2011-03-101-6/+59
| | | | | | | | | | | | | | | | | | This change makes SurfaceFlinger treat layers for which the active buffer has the GRALLOC_USAGE_PROTECTED bit set as if they have the 'secure' flag set. Change-Id: Ic60b6513a63e4bb92ec6ce9fd12fd39b4ba5f674 Bug: 4081304
* | Merge "UsbAccessory: Add URI string, replace type string with description" ↵Mike Lockwood2011-03-103-16/+49
|\ \ | | | | | | | | | into honeycomb-mr1
| * | UsbAccessory: Add URI string, replace type string with descriptionMike Lockwood2011-03-093-16/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a first step toward adding USB accessory URI support BUG: 4073248 Modified USB accessory matching logic to look only at manufacturer, model and version (description and URI are not considered when matching apps to accessories) Also added test for USB accessory protocol version to accessorytest BUG: 4080288 Change-Id: I992a3433c74efa7a7db37bf030f02c1f0c92f9e2 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Input improvements and bug fixes.Jeff Brown2011-03-091-8/+15
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Associate each motion axis with the source from which it comes. It is possible for multiple sources of the same device to define the same axis. This fixes new API that was introduced in MR1. (Bug: 4066146) Fixed a bug that might cause a segfault when using a trackball. Only fade out the mouse pointer when touching the touch screen, ignore other touch pads. Changed the plural "sources" to "source" in several places in the InputReader where we intend to refer to a particular source rather than to a combination of sources. Improved the batching code to support batching events from different sources of the same device in parallel. (Bug: 3391564) Change-Id: I0189e18e464338f126f7bf94370b928e1b1695f2
* | Merge changes Ifd78cca3,Ieadb86fe,If5b44ebd into honeycomb-mr1Mike Lockwood2011-03-092-21/+122
|\ \ | |/ | | | | | | | | | | * changes: MTP: Convert date created and modified values from seconds to milliseconds Update USB accessory compatibility library to support new requestPermission API UsbService: Don't require permissions for UsbManager.getCurrentAccessory()
| * Update USB accessory compatibility library to support new requestPermission APIMike Lockwood2011-03-092-21/+122
| | | | | | | | | | | | | | BUG: 4069037 Change-Id: Ieadb86fed577eeb7697d524e8a684ea6ea632f39 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Merge "ANativeWindow: add queues-to-window-composer check." into honeycomb-mr1Jamie Gennis2011-03-097-1/+283
|\ \
| * | ANativeWindow: add queues-to-window-composer check.Jamie Gennis2011-03-087-1/+283
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new 'method' to the ANativeWindow interface to check whether buffers queued to the window will be sent directly to the system window compositor. Change-Id: I4d4b199e328c110b68b250029aea650f03c8724d Bug: 3495535
* | | Fix a race condition during Context init/teardown.Stephen Hines2011-03-081-6/+9
| |/ |/| | | | | | | | | | | | | | | | | | | This change makes Context initialization wait properly for all threads to be available before leaving initContext(). This prevents a case where ~Context() gets called before all created threads have started/finished their work. This was triggered/discovered by running some very short-lived tests in CTS. BUG=4064203 Change-Id: I1dd6f43fa7942c53881008e857df864e2395202e
* | Merge "Add support for partial invalidates in WebView Bug #3461349" into ↵Romain Guy2011-03-078-251/+46
|\ \ | | | | | | | | | honeycomb-mr1
| * | Add support for partial invalidates in WebViewRomain Guy2011-03-078-251/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #3461349 This change also fixes two bugs that prevented partial invalidates from working with other views. Both bugs were in our EGL implementation: they were preventing the caller from comparing the current context/surface with another context/surface. This was causing HardwareRenderer to always redraw the entire screen. Change-Id: I33e096b304d4a0b7e6c8f92930f71d2ece9bebf5
* | | Joystick tweaks. (DO NOT MERGE)Jeff Brown2011-03-041-12/+85
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that the joystick can always reach -1.0, 0.0 and 1.0 positions even when noise filtering is applied. (Bug: 3514510) Add support for a few more standard axes. Add additional mapping modes for axes. Some axes are inverted from standard interpretation or are actually intended to be split into two distict axes such as left/right trigger controls or accelerator/brake. Add key layout file for a G25 racing wheel and XBox 360 controller to tweak behavior. They work fine without them but the axis mappings are not ideal. Change-Id: I0fddd90309af4dc14d35f34fe99ed6e521c0b7c7
* | DO NOT MERGE: Almost all warnings are now errors in RS build.Stephen Hines2011-03-038-5/+12
|/ | | | Change-Id: Ie4952cdf5c75bf1b7a7899a32b3b1f8747686356
* Merge "Wake screen from external HID peripherals."Jeff Brown2011-03-021-0/+17
|\
| * Wake screen from external HID peripherals.Jeff Brown2011-03-021-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added some plumbing to enable the policy to intercept motion events when the screen is off to handle wakeup if needed. Added a basic concept of an external device to limit the scope of the wakeup policy to external devices only. The wakeup policy for internal devices should be based on explicit rules such as policy flags in key layout files. Moved isTouchEvent to native. Ensure the dispatcher sends the right event type to userActivity for non-touch pointer events like HOVER_MOVE and SCROLL. Bug: 3193114 Change-Id: I15dbd48a16810dfaf226ff7ad117d46908ca4f86
* | Merge "Fade out the mouse pointer after inactivity or other events."Jeff Brown2011-03-023-30/+471
|\ \ | |/
| * Fade out the mouse pointer after inactivity or other events.Jeff Brown2011-03-023-30/+471
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fades out the mouse pointer: - after 15 seconds of inactivity normally - after 3 seconds of inactivity in lights out mode - after a non-modifier key down - after a touch down Extended the native Looper to support enqueuing time delayed messages. This is used by the PointerController to control pointer fade timing. Change-Id: I87792fea7dbe2d9376c78cf354fe3189a484d9da
* | Merge "We need to go deeper. Bug #3431907"Romain Guy2011-03-021-0/+2
|\ \
| * | We need to go deeper.Romain Guy2011-03-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug #3431907 When drawing layers inside a layer, the wrong target FBO would be used. This would happen for instance with app widgets using a ViewFlipper in Launcher. The ViewFlipper uses a fade animation that triggers a call to saveLayerAlpha(), which in turns creates an FBO. If this happened during a scroll, the ViewFlipper's FBO would be composited back directly inside FBO 0, i.e. the screen. This properly initializes the snapshots of hardware layers to use the layer's FBO as the default compositing target instead of using 0. This problem did not happen when drawing hardware layers inside hardware layers because LayerRenderer already takes care of figuring out the FBO it needs to composite into. The bug would occur only with layers generated with saveLayer() and its saveLayerAlpha() variation. Layers inside hardware layers insider layers inside hardware layers now work properly. Change-Id: Ibe852301087f3d414ad8a18436eebc81f8ac66f5
* | | Merge "Properly initialize FBO textures for linear filtering."Romain Guy2011-03-021-0/+5
|\ \ \ | |/ / | | / | |/ |/|
| * Properly initialize FBO textures for linear filtering.Romain Guy2011-03-021-0/+5
| | | | | | | | Change-Id: I67fc4fd760483ef85809be8d6e608cf4f469650f
* | Merge "Combine the USB accessory support library with the platform feature"Mike Lockwood2011-03-026-10/+10
|\ \
| * | Combine the USB accessory support library with the platform featureMike Lockwood2011-03-026-10/+10
| |/ | | | | | | | | | | | | Also renamed the support library to com.android.future.usb.accessory.jar Change-Id: Id6226991ce73f75dfedc497adf1c25bffb670243 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | Merge "Fix problem with glyph cache and textScaleX property"Romain Guy2011-03-022-8/+13
|\ \ | |/ |/|
| * Fix problem with glyph cache and textScaleX propertyChet Haase2011-03-022-8/+13
| | | | | | | | | | | | | | | | | | | | Glyphs drawn with paints that had different textScaleX values were not being recognized as different, so the glyph cache was being used regardless of different scaleX values. This change adds the scaleX attribute to the native Font object to allow the cache to distinguish between this difference and cache accordingly. Change-Id: I5d8fc26d47460b27dc8e373a473d46b2f1b8dc30
* | Merge "Correctly mark layers dirty when drawing WebView."Romain Guy2011-03-011-0/+11
|\ \
| * | Correctly mark layers dirty when drawing WebView.Romain Guy2011-03-011-0/+11
| | | | | | | | | | | | Change-Id: I7ae0c3cfa0916d8fbeaf01e8da127c621a06a0f4
* | | Merge "Add the MIN_UNDEQUEUED_BUFFERS query to ANW."Jamie Gennis2011-03-013-2/+23
|\ \ \
| * | | Add the MIN_UNDEQUEUED_BUFFERS query to ANW.Jamie Gennis2011-02-283-2/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a new query to ANativeWindow for getting the minimum number of buffers that must be left un-dequeued during the steady-state operation of the ANativeWindow. Change-Id: Ie8c461fc26b02ecde02ddb4f95bf763662cf1551 Related-Bug: 3356050
* | | | Merge "Avoid UTF-8 conversions and string copies whenever possible."Romain Guy2011-03-012-12/+15
|\ \ \ \ | | |/ / | |/| |
| * | | Avoid UTF-8 conversions and string copies whenever possible.Romain Guy2011-03-012-12/+15
| | | | | | | | | | | | | | | | Change-Id: Ie4584417bbb7247e6c567fbfdb819529e548bb8f
* | | | Move USB framework support from android.hardware to android.hardware.usb packageMike Lockwood2011-03-013-10/+10
| |_|/ |/| | | | | | | | | | | Change-Id: I00fd4f0caaa4aebe48f71c576bb211b5f38bf88d Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Merge "USB accessory support library"Mike Lockwood2011-02-2811-0/+724
|\ \ \
| * | | USB accessory support libraryMike Lockwood2011-02-2811-0/+724
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This provides a mechanism for developing applications to work with USB accessories in versions of android prior to the introduction of the android.hardware.UsbManager APIs. Applications should link against the com.google.android.usb library to use this support. Change-Id: I48ff80467fd9a6667aa84a758eca754132f546b9 Signed-off-by: Mike Lockwood <lockwood@android.com>
* | | Merge "surfaceflinger_client: Don't dereference NULL ptrs."Mathias Agopian2011-02-281-1/+1
|\ \ \
| * | | surfaceflinger_client: Don't dereference NULL ptrs.Jamie Gennis2011-02-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds a null pointer check before dereferencing buffers in a Surface list of known GraphicBuffer objects. If not all the buffers have been dequeued before this list can legitimately contain NULL entries. Change-Id: I0e105b53a3f6f9a5404716b7bf150c793ff648a6
* | | | Merge "Fix sp<> conversion operator / constructor"Mathias Agopian2011-02-281-4/+30
|\ \ \ \ | |_|_|/ |/| | |
| * | | Fix sp<> conversion operator / constructorMathias Agopian2011-02-251-4/+30
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | some of the conversion operators were not using the proper pointer type when calling incStrong/decStrong, usually it has no bad consequences, but for some implementation of the ref-counted object it could lead to recording the wrong owner id. Change-Id: If574b9069b8a4cf6e0911a992c8f095aba799995
* | | Merge "These moved into developmnet samples"Alex Sakhartchouk2011-02-2866-3479/+0
|\ \ \ | |/ / |/| |
| * | These moved into developmnet samplesAlex Sakhartchouk2011-02-2366-3479/+0
| | | | | | | | | | | | Change-Id: Id7a502b9f2df2edcda0cf78e582ab6763eb55862
* | | Merge "Moving dependency includes out of librs headers."Alex Sakhartchouk2011-02-254-29/+39
|\ \ \
| * | | Moving dependency includes out of librs headers.Alex Sakhartchouk2011-02-254-29/+39
| | | | | | | | | | | | | | | | | | | | | | | | When we want to use it on the host, we shouldn't need to go hunting for every external dependency Change-Id: I885262acdcdf5ede4a9392235f35d5e2f7038e8b
* | | | Merge "Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0"David Li2011-02-251-1/+1
|\ \ \ \ | |_|_|/ |/| | |
| * | | Fix mTexCoordsSlot > 0 check to mTexCoordsSlot >= 0David Li2011-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 0 Is a valid attribute location. Change-Id: Ib24335f48efd6cc59e2ab877569d7d0c95f8490a Signed-off-by: David Li <davidxli@google.com>
* | | | Remove the right entries from the cache when a GC happens.Romain Guy2011-02-241-1/+3
| | | | | | | | | | | | | | | | Change-Id: I4649b18c4721a5511a404299e771e675c843407b
* | | | Correctly blend translucent GIF bitmaps.Romain Guy2011-02-243-8/+6
| | | | | | | | | | | | | | | | Change-Id: Ifeb2c1d97a4c6dfeb1a7b5b26f1a3153e9f8da7f
* | | | Merge "Fix some issues with RefBase debugging."Mathias Agopian2011-02-241-70/+101
|\ \ \ \
| * | | | Fix some issues with RefBase debugging.Mathias Agopian2011-02-231-70/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | First slipt sp<> out of RefBase into StrongPointer.h so it can be reused more easily and to make it clear that it doesn't require RefBase. Note: the rest of the change only affects the system when DEBUG_REFS is enabled. The main problem we fix here is that the owner id associated with each reference could get out of date when a sp<> or wp<> was moved, for instance when they're used in a Vector< >. We fix this issue by calling into RefBase::moveReferences from a template specialization for sp<TYPE> and wp<TYPE> of the type helpers. RefBase::moveReferences() has then a chance to update the owner ids. There is a little bit of trickery to implement this generically in RefBase, where we need to use a templatized functor that can turn a sp<TYPE>* casted to a void* into a RefBase*. Introduced a new debug option DEBUG_REFS_FATAL_SANITY_CHECKS currently set to 0 by default as there seem to be an issue with sp<ANativeWindow> which trips the sanity checks. Change-Id: I4825b21c8ec47d4a0ef35d760760ae0c9cdfbd7f