Commit Graph

29952 Commits

Author SHA1 Message Date
Romain Guy
0c63d7c239 am 469cc57c: am 2f35d244: Merge "Avoid extraneous EGL surface allocations Bug #8667873" into jb-mr2-dev
* commit '469cc57ca77687420246dd679e94eb242fcec41d':
  Avoid extraneous EGL surface allocations Bug #8667873
2013-05-21 19:12:50 -07:00
Romain Guy
469cc57ca7 am 2f35d244: Merge "Avoid extraneous EGL surface allocations Bug #8667873" into jb-mr2-dev
* commit '2f35d2441e59b996a56653881fdc2f52d4eeb644':
  Avoid extraneous EGL surface allocations Bug #8667873
2013-05-21 19:11:16 -07:00
Romain Guy
2f35d2441e Merge "Avoid extraneous EGL surface allocations Bug #8667873" into jb-mr2-dev 2013-05-22 02:08:24 +00:00
Romain Guy
370ab062a0 Avoid extraneous EGL surface allocations
Bug #8667873

windowShouldResize means we need to layout the window, it doesn't mean
the dimensions of the surface have changed. We should only check the
width and the height. With this fix we can avoid a surface allocation
every time the window shade is opened or closed.

Change-Id: I8afe97b820a865723f2aab7a5aa4ddc8eaaec6e1
2013-05-21 12:15:07 -07:00
Romain Guy
49f2e4098d Merge "Destroy display lists when running complete memory trims Bug #8833153" 2013-05-21 18:25:14 +00:00
Przemyslaw Szczepaniak
40d51e7003 Make TtsEngines.getDefaultLocale() method public
TtsEngines is hidden class, it's not a public API.
It's required for tracking system language setting by TTS engines
(Change: Ic4bde97ef7406adb64cc03efbe660275360ba3af )

Bug: 8613986
Change-Id: Iafafcdb244e1520893bee65febd5a137e3556317
2013-05-21 12:29:28 +00:00
Dianne Hackborn
77f342c37c Merge "Add app ops for wake locks." 2013-05-21 00:54:07 +00:00
Adam Powell
2e46b60d84 Merge "Fix out-of-screen item can take focus issue" 2013-05-21 00:23:50 +00:00
Dianne Hackborn
713df150b9 Add app ops for wake locks.
Currently only supports auditing, not disabling.

Change-Id: Ie85f02c29b490d96e073f54d59e165d48c7c00c9
2013-05-20 16:49:46 -07:00
Romain Guy
779321fde1 Destroy display lists when running complete memory trims
Bug #8833153

Display lists ops might now keep references to GL resources so they
must be destroyed when the EGL context goes away.

Change-Id: I0feb18f5539b345234a58dafa6f0775d7d7460dc
2013-05-20 16:23:34 -07:00
Fabrice Di Meglio
ea0735ff12 am 5d19f506: am 28df6d3d: Merge "Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL." into jb-mr2-dev
* commit '5d19f506b43e9e7e4c27ca70da1d44a58da71d75':
  Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL.
2013-05-20 15:50:48 -07:00
Fabrice Di Meglio
5d19f506b4 am 28df6d3d: Merge "Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL." into jb-mr2-dev
* commit '28df6d3d4f719d4dbdf82751db46e10ff3d044bb':
  Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL.
2013-05-20 15:49:03 -07:00
Fabrice Di Meglio
28df6d3d4f Merge "Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL." into jb-mr2-dev 2013-05-20 22:47:43 +00:00
Svetoslav Ganov
f1cfdcee27 am 5315953b: am 78a4630e: Merge "Taking into account data change for AbsListView when prefetching node infos." into jb-mr2-dev
* commit '5315953b86ee7ca29756504535e124b053286623':
  Taking into account data change for AbsListView when prefetching node infos.
2013-05-20 15:46:18 -07:00
Svetoslav Ganov
5315953b86 am 78a4630e: Merge "Taking into account data change for AbsListView when prefetching node infos." into jb-mr2-dev
* commit '78a4630edaa11846b09bdad84bac18a0441c500a':
  Taking into account data change for AbsListView when prefetching node infos.
2013-05-20 15:43:36 -07:00
Svetoslav Ganov
78a4630eda Merge "Taking into account data change for AbsListView when prefetching node infos." into jb-mr2-dev 2013-05-20 22:41:28 +00:00
Chet Haase
4e239aeed3 am e8d6dc4c: am 865cffc7: Merge "Add null check in ViewOverlay" into jb-mr2-dev
* commit 'e8d6dc4cad65c8c29c365d71d2255eb637581fdb':
  Add null check in ViewOverlay
2013-05-20 13:44:59 -07:00
Chet Haase
e8d6dc4cad am 865cffc7: Merge "Add null check in ViewOverlay" into jb-mr2-dev
* commit '865cffc7cece8f10a9e6aab1e89a92c8794cb279':
  Add null check in ViewOverlay
2013-05-20 13:43:36 -07:00
Jaewan Kim
49fc4dcd4c Fix out-of-screen item can take focus issue
In case of a ListView has a item which takes more than 33% of its height
(result from getMaxScrollAmount), scroll does not move enough to show
all the item. In this case, consecutive arrow scroll moves selection
everytime while scroll may not move that much.

This fixes the issue by checking the visibility of current selection in
advance.

Bug: 8831751
Change-Id: Ic747bd5513c6734aaf1a1d08e497c1e3ef835004
2013-05-21 05:08:38 +09:00
Chet Haase
d8b0b23324 Add null check in ViewOverlay
View.getOverlay().clear() can failed with an NPE if there are
no drawables in the overlay. Fix: add a null check before dereferencing
the mDrawables field.

Issue #8895794 getOverlay.clear() crashes if drawables were not added previously

Change-Id: I9b2a63036450915681ba3a89a0911e2490063702
2013-05-20 07:57:02 -07:00
Svetoslav Ganov
50776863a2 Taking into account data change for AbsListView when prefetching node infos.
We are prefetching accessibility node infos to minimize the number of IPC
calls when an accessibility service introspects the screen. It is however,
possible that the view we are prefetching is a child of an AbsListView whose
adapter changed its data but the AbsListView still did not perform a layout
pass to sync its children with the new adapter state. This may lead to an
exeption when trying to query for the state of a child's position. If the
data of the adapter is changed and the layout pass still not performed,
we return null for the AbsLIstView's children. When the layout pass
completes we already notify the accessibliity layer so it will be able to
refetch the children of the AbsListView.

bug:8433433

Change-Id: I56313c721aef3848b15fad50027d068ba1d291f7
2013-05-17 18:36:57 -07:00
Santos Cordon
5c6370a405 am 8e3f01e9: am c1de2404: Merge "Update documentation of NEW_OUTGOING_CALL" into jb-mr2-dev
* commit '8e3f01e90ed51b055e0addb7d5114b732bd514b9':
  Update documentation of NEW_OUTGOING_CALL
2013-05-17 17:19:00 -07:00
Santos Cordon
8e3f01e90e am c1de2404: Merge "Update documentation of NEW_OUTGOING_CALL" into jb-mr2-dev
* commit 'c1de240457ad803c04c56fb3f63635966b862b43':
  Update documentation of NEW_OUTGOING_CALL
2013-05-17 17:16:45 -07:00
Santos Cordon
c1de240457 Merge "Update documentation of NEW_OUTGOING_CALL" into jb-mr2-dev 2013-05-18 00:14:14 +00:00
Romain Guy
aa29a97f6d Clear display lists when a View becomes GONE/INVISIBLE
We force an invalidate whenever a View becomes VISIBLE so there is
no need to keep the display list object while the view is either
GONE or INVISIBLE. In particular this clears the lists of references
kept by GLES20DisplayList, which helps the GC free large objects
such as Bitmaps.

Change-Id: Ifde0cb40baa1f35e5e6439d3bf8eab3c4c1270f0
2013-05-17 17:07:47 -07:00
Santos Cordon
ba70136713 Update documentation of NEW_OUTGOING_CALL
Adds call-handling as a use case for NEW_OUTGOING_CALL

bug: 8987211
Change-Id: Icd9c53a2dd1a5948a749e133600db21c2560fd1f
2013-05-17 15:58:12 -07:00
Robert Greenwalt
fb6dab36d5 am 06433861: am c12783a9: Add min delay between disable and enable of wifi
* commit '0643386128eba71178ee3913e7c76965bd344d73':
  Add min delay between disable and enable of wifi
2013-05-16 14:05:18 -07:00
Robert Greenwalt
0643386128 am c12783a9: Add min delay between disable and enable of wifi
* commit 'c12783a90e08bd2e20eb75f68192fbf7bad80357':
  Add min delay between disable and enable of wifi
2013-05-16 14:02:49 -07:00
Robert Greenwalt
c12783a90e Add min delay between disable and enable of wifi
We sometimes have issues if disable, enable seq happens to fast.
This should only slow down those fast cases.

bug:8715336
Change-Id: I4f7fe9708b7c3c2300c441511838e8a70eaad5d1
2013-05-16 20:57:52 +00:00
Fabrice Di Meglio
a423f5033a Fix bug #8913650 spinner dropdown(android.R.layout.simple_spinner_dropdown_item) random alignment on RTL.
- add missing assignment for text direction (mTextDir)
- when layout direction change, update text direction (mTextDir again)

Change-Id: Id600fb0c5897a0d2ee5f9fe18a63437dc3e528d9
2013-05-15 19:24:56 -07:00
Dianne Hackborn
c87c92e079 Add API to retrieve cursor notification URI.
Change-Id: I89f6c4d6ee6ef3675eff62ff6bca691b54c69f75
2013-05-15 15:39:47 -07:00
Chet Haase
f27796cbbe am 944a8725: am bee0495f: Merge "Dirty rect must expand, not contract." into jb-mr2-dev
* commit '944a8725e6e2ccb310c9515c9067f995c034b724':
  Dirty rect must expand, not contract.
2013-05-15 13:49:48 -07:00
Raph Levien
5d0db65e73 am 38272ad2: am 21403857: Merge "Fix for bug 8911390 RTL text alignment is changed ..." into jb-mr2-dev
* commit '38272ad2b1d3ab90c83fcd74139503fcd3148a19':
  Fix for bug 8911390 RTL text alignment is changed ...
2013-05-15 13:49:46 -07:00
Chet Haase
944a8725e6 am bee0495f: Merge "Dirty rect must expand, not contract." into jb-mr2-dev
* commit 'bee0495fa17b7e385d880f18e510e295c000cfa9':
  Dirty rect must expand, not contract.
2013-05-15 13:35:09 -07:00
Raph Levien
38272ad2b1 am 21403857: Merge "Fix for bug 8911390 RTL text alignment is changed ..." into jb-mr2-dev
* commit '214038571992a4ba65531297bf4a89af9a0b5fd4':
  Fix for bug 8911390 RTL text alignment is changed ...
2013-05-15 13:35:06 -07:00
Romain Guy
357eccdd52 Merge "Revert "Reduce the number of measurement passes in RelativeLayout"" 2013-05-15 18:03:32 +00:00
Romain Guy
398051b8ee Revert "Reduce the number of measurement passes in RelativeLayout"
This reverts commit 4cb81d6423.
2013-05-15 11:02:25 -07:00
Chet Haase
bee0495fa1 Merge "Dirty rect must expand, not contract." into jb-mr2-dev 2013-05-15 17:56:01 +00:00
Raph Levien
2140385719 Merge "Fix for bug 8911390 RTL text alignment is changed ..." into jb-mr2-dev 2013-05-15 17:44:16 +00:00
Robert Greenwalt
e67677f92c am 777e2e85: am a34b531b: Merge "EthernetDataTracker: Set network available on connected"
* commit '777e2e8545e37dfaf27f0f0ccd835f64fab7b746':
  EthernetDataTracker: Set network available on connected
2013-05-15 10:44:04 -07:00
Robert Greenwalt
777e2e8545 am a34b531b: Merge "EthernetDataTracker: Set network available on connected"
* commit 'a34b531bb6d2f2923f474b8c0a0c09149303e5d3':
  EthernetDataTracker: Set network available on connected
2013-05-15 10:41:54 -07:00
Robert Greenwalt
a34b531bb6 Merge "EthernetDataTracker: Set network available on connected" 2013-05-15 16:39:05 +00:00
Chet Haase
5495c72612 Dirty rect must expand, not contract.
Different devices have different precision, leading to different pixels
being touched during rendering operations. We need to ensure that the
dirty rect we draw with (and which gets erased on the following frame)
encompasses all possible pixels instead of some ideal rounded rectangle.

The bug from this code led to dropped-pixels artifacts on some devices,
where we'd scale a view, drawing it into some pixels, then invalidate
that same area on the next frame, but the invalidation rectangle didn't
cover the same pixels as the device drew into.

The fix is to floor() the left/top pixels and ceil() the right/bottom
pixels of the transformed invalidation rectangle.

Issue #8971348 dropped pixel artifacts during some scaling operations

Change-Id: Iedb1afd5621dff43bf7a3919bdbd8d2251647fd2
2013-05-14 21:19:48 -07:00
Zhentao Sun
da86196287 am 0412f5b1: am 5f8afdd8: Merge "Passed the correct gps geofence availability value to client." into jb-mr2-dev
* commit '0412f5b1165d7ff331162dcd1fc29d3ea0fc7223':
  Passed the correct gps geofence availability value to client.
2013-05-14 16:55:44 -07:00
Zhentao Sun
0412f5b116 am 5f8afdd8: Merge "Passed the correct gps geofence availability value to client." into jb-mr2-dev
* commit '5f8afdd8ec168a7e5e5ca8203419a40f069a9351':
  Passed the correct gps geofence availability value to client.
2013-05-14 16:53:42 -07:00
Zhentao Sun
b8061be81c Passed the correct gps geofence availability value to client.
Fixed b/8967427.

Change-Id: If205b963533f096c27985476a5d487a2d090ccf8
2013-05-14 15:34:15 -07:00
Raph Levien
01524651cb Fix for bug 8911390 RTL text alignment is changed ...
The predicate for detecting whether text was right aligned was missing
some cases - it was correctly sensing RIGHT or OPPOSITE aligned text
in the LTR case, but was missing NORMAL for rtl. This patch just adds
that case.

Change-Id: I06691e7122e1ca91d66299cf0d7ef1f8a476a44b
2013-05-14 14:00:07 -07:00
kmccormick
3b0929f2a4 am cca053a3: am 3722947f: Merge "Doc update: manual merge of changes from jb-mr1.1" into jb-mr2-dev
* commit 'cca053a389bf913f23796e1095db9e1ae74bf2f0':
  Doc update: manual merge of changes from jb-mr1.1
2013-05-14 11:30:47 -07:00
kmccormick
cca053a389 am 3722947f: Merge "Doc update: manual merge of changes from jb-mr1.1" into jb-mr2-dev
* commit '3722947f2f22b9b56a7479bd29af2680e608f674':
  Doc update: manual merge of changes from jb-mr1.1
2013-05-14 11:29:16 -07:00
kmccormick
3722947f2f Merge "Doc update: manual merge of changes from jb-mr1.1" into jb-mr2-dev 2013-05-14 18:26:38 +00:00