81606 Commits

Author SHA1 Message Date
Ying Wang
016c75dd5e Merge "Import translations. DO NOT MERGE" 2012-07-10 12:34:48 -07:00
Ying Wang
acc79d9c6b Merge "Import translations. DO NOT MERGE" 2012-07-10 12:34:42 -07:00
Ying Wang
b1ac6afe7f Import translations. DO NOT MERGE
Change-Id: I64327f26c87a11b1395acd7dfa217c3fd386b133
Auto-generated-cl: translation import
2012-07-10 12:27:03 -07:00
Ying Wang
c49c9158f2 Import translations. DO NOT MERGE
Change-Id: I324a365991605a90f45bc5e6b2c32893713eebaf
Auto-generated-cl: translation import
2012-07-10 12:23:21 -07:00
Ying Wang
40a4ab130a Import translations. DO NOT MERGE
Change-Id: I8e0e293c98a3659ef6e9a07c3a62e0056f5ea4cb
Auto-generated-cl: translation import
2012-07-10 12:15:26 -07:00
Romain Guy
2ff5ff24a7 Merge "Properly resize paletted bitmaps when adjusting for density" 2012-07-10 12:04:57 -07:00
Romain Guy
053a82cc18 Properly resize paletted bitmaps when adjusting for density
If an app used a GIF file in the wrong density bucket, the auto-scaling
code would not properly resize the bitmap.

Change-Id: I28f6506a94b20d11b3ba53ac442abec2b92e093e
2012-07-10 12:02:33 -07:00
Xavier Ducrohet
01b6c755db Replace LruCache implementation for layoutlib.
The android version depends on a custom version of LinkedHashMap
which is not present on desktop VMs. This new implementation is done
in a way that minimizes the difference between the two.

Also some minor fixes.

Change-Id: Ib27b0419f9d0e6ba4d4abb26b2ccd968af59eba8
2012-07-10 11:48:10 -07:00
Selim Gurun
f27ac09501 Update documentation to clarify AppCache usage
Bug: 5869022
Change-Id: I5830583b6c68128cbfda0e61cd6f031702faebf5
2012-07-10 11:19:58 -07:00
Fabrice Di Meglio
67f64d0d0d Merge "Fix dividers position for LinearLayout" 2012-07-10 11:17:06 -07:00
Fabrice Di Meglio
905bd36951 Merge "Make ScrollBar widget aware of layout direction" 2012-07-10 11:16:24 -07:00
Fabrice Di Meglio
e551aa49dd Merge "Make ListView's FastScroller aware of layout direction" 2012-07-10 11:16:07 -07:00
Fabrice Di Meglio
55aeca913f Merge "Improve resolution of inherited layout direction" 2012-07-10 11:15:35 -07:00
Fabrice Di Meglio
15d03bf2a6 Merge "Fix MarginLayoutParams resolution" 2012-07-10 11:15:15 -07:00
Selim Gurun
3b2fb7b2d1 Merge "Fix onReachedMaxAppCacheSize callback" 2012-07-10 10:49:16 -07:00
Selim Gurun
b632adfaf4 Update documentation to clarify AppCache usage
Bug: 5869022
Change-Id: I46abecfb0e8975cc924458f444f95cdabaa3f712
2012-07-10 10:36:12 -07:00
Eric Laurent
28b7809e30 Merge "AudioService: fix a2dp force use delay" 2012-07-10 09:46:54 -07:00
Raph Levien
792344bc24 Merge "Fix for bug 6716343. Use correct offset for mPos reset." 2012-07-10 09:35:20 -07:00
Svetoslav Ganov
6970c31b69 Merge "AccessibilityNodeInfo bounds in screen incorrect if application scale not one V2.0." 2012-07-09 18:20:54 -07:00
Svetoslav Ganov
fd8d9c4c0a AccessibilityNodeInfo bounds in screen incorrect if application scale not one V2.0.
1. If the application does not accommodate different screen density the
   system applies an application scale equal to the device density over
   the a default density. The AccessibilityNodeInfo coordinates were not
   reported after applying the compatibility scale, therefore the bounds
   in parent and screen were not as perceived by the user.

bug:6764586

Change-Id: Id9de3de885210d0725d1f3fde38e769b0cfd12a7
2012-07-09 18:19:46 -07:00
Jim Miller
99d8fae5a0 Merge "Minor cleanup of left overs from GlowPadView integration." 2012-07-09 17:55:18 -07:00
Fabrice Di Meglio
69bd55844b Fix MarginLayoutParams resolution
- need to keep initial left/right values for correct resolution

Change-Id: Ia8d0fec7d3c427086b7b5898e544e369b2de4229
2012-07-09 17:34:30 -07:00
Raph Levien
1341ab6f38 Fix for bug 6716343. Use correct offset for mPos reset.
The mPos field in the MeasuredText object is relative to the start of
the text (mTextStart), but the pos passed in by the caller of the
setPos() method is relative to the character sequence. When spans
overlap break boundaries and the paragraph doesn't start at 0, the
result is an out of bounds error. This fix uses the correct offset.

Change-Id: I12c7a2311a9bdbbea7ab21554a922b7f665a17bf
2012-07-09 16:57:35 -07:00
Winson Chung
4461f6028d Merge "Fixing index-out-of-bounds in AppWidgetService. (Bug 6717459)" 2012-07-09 16:43:04 -07:00
Fabrice Di Meglio
4ab6968bb7 Fix dividers position for LinearLayout
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I81a294966ec3989785c0b55d2e4d418ddc89fadd
2012-07-09 16:03:44 -07:00
Craig Mautner
42eae21fb9 Merge "Isolate layout and animation wallpaper objects." 2012-07-09 14:19:34 -07:00
Adam Powell
6bbce19fd0 am b0f35657: am 1ab2edbc: Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev
* commit 'b0f356579eb0348fac7157a6348f1e568556a4db':
  Fix bug in parsing attributes for MediaRouteButton
2012-07-09 14:18:16 -07:00
Adam Powell
b0f356579e am 1ab2edbc: Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev
* commit '1ab2edbcff94d53856a87010e35ffa50ce4c0502':
  Fix bug in parsing attributes for MediaRouteButton
2012-07-09 14:15:56 -07:00
Craig Mautner
918b53bc53 Isolate layout and animation wallpaper objects.
Provide separate copies of mWallpaperTarget, mWallpaperTokens, and
mLower/UpperWallpaperTarget in the layout and animation sides of
Window Manager.

Simplify constructors of WindowAnimator and WindowStateAnimator.

Change-Id: I7e35794a432c25c4194c046e9e27150d1c905403
2012-07-09 14:15:54 -07:00
Adam Powell
1ab2edbcff Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev 2012-07-09 14:13:54 -07:00
Romain Guy
773e4186ed Merge "Add Bitmap.isPremultiplied()" 2012-07-09 13:54:59 -07:00
Romain Guy
3849f93b3c Add Bitmap.isPremultiplied()
This change also adds extra information in the documentation about
premultiplied values.

Change-Id: I51aacb8696340d23354ebf6d7284605d1a790b69
2012-07-09 13:52:40 -07:00
Romain Guy
69b9e00b03 am 13a3a87f: am dc99555d: Merge "Pass SearchView suggestion cursor exception to Log."
* commit '13a3a87fa7264df29a1f698ce80ada2de3561962':
  Pass SearchView suggestion cursor exception to Log.
2012-07-09 12:31:16 -07:00
Ying Wang
c09008f018 Merge "Import translations. DO NOT MERGE" 2012-07-09 12:26:04 -07:00
Ying Wang
3090b54da4 Merge "Import translations. DO NOT MERGE" 2012-07-09 12:25:30 -07:00
Ying Wang
7893217fc0 Import translations. DO NOT MERGE
Change-Id: I2890a480cd440ac12b72399d5c0337b861427d9b
Auto-generated-cl: translation import
2012-07-09 12:13:43 -07:00
Ying Wang
bcccd77107 Import translations. DO NOT MERGE
Change-Id: I3a6b05441aa0aae2765548b91990c780ffb490a7
Auto-generated-cl: translation import
2012-07-09 12:03:27 -07:00
Selim Gurun
c86bec9727 Fix onReachedMaxAppCacheSize callback
Bug: 5869022

When appcache reached max size, a callback is triggered. The
second parameter of this callback was returning the used Web SQL
quota, which is a rather different concept then AppCache. Fix this
to return max database size.

Change-Id: Iee11f40aa9635eaa22e237d4ddfb98792c977497
2012-07-09 11:30:54 -07:00
Eric Laurent
c390bed06b AudioService: fix a2dp force use delay
Fixed setBluetoothA2dpOnInt() so that AudioSystem.setForceUse()
is called synchronously and not via a message.

This is because the order in which setForceUse() and setDeviceConnectionState()
are executed is important to avoid audio glitches when called from
onSetWiredDeviceConnectionState().

Bug 6720482.

Change-Id: I09c975d1108fd38f31b047c082acdf944ab790a7
2012-07-09 10:50:37 -07:00
Chet Haase
9c469ca0ff Merge "Force invalidates on non-visible views to traverse the hierarchy" 2012-07-09 10:25:44 -07:00
Craig Mautner
1857f0fdb8 Merge "Fix hang on rotation." 2012-07-09 09:45:08 -07:00
Craig Mautner
2639da500e Fix hang on rotation.
A recent optimization to only send updates to WindowManagerService
when there is something to report backfired. One bit indicating
change had negative polarity so the update should also have been
sent when this bit was cleared. This change alters the bit to
positive polarity.

Fixes bug 6780496.

Change-Id: I3336812a60534ebffc9e94b2fb1d0df4d6969bca
2012-07-09 09:39:06 -07:00
Steve Block
0f7ae19fc9 Public JavaDoc for ParseException should not mention WebAddress, as this is not public
Change-Id: Iab1e5ff64b6caaecfbd6beac0be02b3b660ff51e
2012-07-09 16:57:32 +01:00
Chet Haase
05e91ed5a7 Force invalidates on non-visible views to traverse the hierarchy
An optimization prunes invalidates on views which are not inside their
parent's bounds. This works in most cases, but it is possible to run
a situation where a view has been invalidated (and is thus waiting to
be redrawn), but the pruning logic ensures that that draw call
will not happen. Further, when/if the view comes into the bounds
of its parent again, it may still not be redrawn, because now future
invalidates on the view are noop'd because it is already in an invalidated
state (and thus will not propagate invalidates up the hierarchy).

The fix is to remove the optitmization. This will cause some overhead
sending the invalidation request up to the view root, but this
overhead is minimal (and only extra for cases of out-of-bounds views),
and the more expensive part of rendering these views will still not be done
since the view root will avoid re-drawing the hierarchy when the dirty
rectangle is empty.

Issue #6773607 Layered views animating from offscreen sometimes remain invisible

Change-Id: Ia2c1a2b9d3e7f267253cb325ccceff1e7fdbe8bd
2012-07-09 08:34:01 -07:00
Romain Guy
13a3a87fa7 am dc99555d: Merge "Pass SearchView suggestion cursor exception to Log."
* commit 'dc99555d61d50820b398096bb774ee56b2500476':
  Pass SearchView suggestion cursor exception to Log.
2012-07-06 23:52:55 -07:00
Romain Guy
dc99555d61 Merge "Pass SearchView suggestion cursor exception to Log." 2012-07-06 23:18:19 -07:00
Jake Wharton
73af451694 Pass SearchView suggestion cursor exception to Log.
When an error in fetching a column occurs in your suggestions cursor
adapter this will ensure the stacktrace is logged to provide more
context about what failed.

Change-Id: Iafe4918caebb9b0fb712b758b2d3ace329fd2512
2012-07-06 23:15:49 -07:00
Svetoslav Ganov
9dc2cc53ac Merge "AccessibilityNodeInfo bounds in screen incorrect if application scale not one." 2012-07-03 21:11:35 -07:00
Svetoslav Ganov
983119ab22 AccessibilityNodeInfo bounds in screen incorrect if application scale not one.
1. If the application does not accommodate different screen density the
   system applies an application scale equal to the device density over
   the a default density. The AccessibilityNodeInfo coordinates were not
   reported after applying the compatibility scale, therefore the bounds
   in parent and screen were not as perceived by the user.

bug:6764586

Change-Id: Iae2d6ea81049364194c7cb09df2240b5eda3d939
2012-07-03 21:04:14 -07:00
Scott Main
bcda64bfac am d5f7d9b5: am 15796e52: Merge "docs: add largeHeap attribute to app manifest doc external issue 33967" into jb-dev
* commit 'd5f7d9b59d920dfa88e1753f6723c016b1815d7c':
  docs: add largeHeap attribute to app manifest doc external issue 33967
2012-07-03 19:45:24 -07:00