81568 Commits

Author SHA1 Message Date
Craig Mautner
322e403156 Further isolate layout side from animation side.
- Use local AppWindowAnimators in WindowAnimator rather than
    using shared WindowManagerService objects.
- Use local WindowStateAnimators in AppWindowAnimator rather
    than use AppToken's WindowState objects.
- Remove redundant WindowManagerService parameter passed to
    AppWindowAnimator ctor.
- Keep from copying parameters from performLayout if the
    parameters haven't changed since the last copy.
- Link WindowStateAnimator to AppWindowAnimator to keep
    from going through WindowStateAnimator.mWin,
    WindowState.mAppToken and AppWindowToken.mAppAnimator.
- Converted attached WindowState in WindowStateAnimator to
    WindowStateAnimator to eliminate multiple conversions.

Change-Id: I5e35af88d8fdc1a7454984eaea91a1bc4f926978
2012-07-13 13:35:20 -07:00
Craig Mautner
fbf885b652 Merge "Notify client side of window movement." 2012-07-10 14:48:06 -07:00
Katie McCormick
db30781663 am 585228d3: am 2a17520f: Merge "Doc update: GCM doc cleanup." into jb-dev
* commit '585228d33b60b8d04fdc34995a26fefddce5e9bb':
  Doc update: GCM doc cleanup.
2012-07-10 14:32:37 -07:00
Katie McCormick
585228d33b am 2a17520f: Merge "Doc update: GCM doc cleanup." into jb-dev
* commit '2a17520fbaf2ca38c04702bacfe443d7a24b4b91':
  Doc update: GCM doc cleanup.
2012-07-10 14:30:15 -07:00
Katie McCormick
2a17520fba Merge "Doc update: GCM doc cleanup." into jb-dev 2012-07-10 14:27:42 -07:00
Craig Mautner
ce99e79244 Merge "Handle keyguard visibility states separately." 2012-07-10 14:15:53 -07:00
Craig Mautner
4bf18a7c97 Handle keyguard visibility states separately.
Previous to this change the forceHiding variable was a boolean. This
change recognizes the different configurations of the keyguard by
defining separate states for forceHiding and testing for window
visibility differently in each state.

Fixes bug 6786114.

Change-Id: I078e0df7865ddafe498ee46e02110c3a017386d0
2012-07-10 14:08:16 -07:00
Katie McCormick
7cd6dcd2f8 Doc update: GCM doc cleanup.
Change-Id: Ie84a6ebdd12a05c8dbe1fff97539aea90c93554c
2012-07-10 14:07:08 -07:00
Romain Guy
717b81ff3e am 6d2999a0: am 90752485: Properly resize paletted bitmaps when adjusting for density
* commit '6d2999a048332c6192e66ec67835a71d59282384':
  Properly resize paletted bitmaps when adjusting for density
2012-07-10 13:29:20 -07:00
Romain Guy
6d2999a048 am 90752485: Properly resize paletted bitmaps when adjusting for density
* commit '907524851af0d656ba049311f7535a4ba5d2b1d2':
  Properly resize paletted bitmaps when adjusting for density
2012-07-10 13:26:49 -07:00
Romain Guy
907524851a 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.

This issue affects third party applications, here is the external bug
report:

http://code.google.com/p/android/issues/detail?id=34619

DO NOT MERGE

Change-Id: I7f99b28ad6e6c28bdbcb29bbbadcb215268ff710
2012-07-10 13:16:46 -07:00
Xavier Ducrohet
70d0c1532f Merge "Replace LruCache implementation for layoutlib." 2012-07-10 12:39:17 -07:00
Ying Wang
34d62d1b97 am b8c5df85: (-s ours) am 40a4ab13: Import translations. DO NOT MERGE
* commit 'b8c5df85622155196d5d961f7674547947f5fc08':
  Import translations. DO NOT MERGE
2012-07-10 12:38:46 -07:00
Ying Wang
b8c5df8562 am 40a4ab13: Import translations. DO NOT MERGE
* commit '40a4ab130a3e3c99afb1a57e9aa30de03a89b51e':
  Import translations. DO NOT MERGE
2012-07-10 12:36:11 -07:00
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