26220 Commits

Author SHA1 Message Date
Craig Mautner
fbf885b652 Merge "Notify client side of window movement." 2012-07-10 14:48:06 -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
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
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
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
Adam Powell
1ab2edbcff Merge "Fix bug in parsing attributes for MediaRouteButton" into jb-dev 2012-07-09 14:13:54 -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
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
Chet Haase
9c469ca0ff Merge "Force invalidates on non-visible views to traverse the hierarchy" 2012-07-09 10:25:44 -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
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
6491e84545 am 480785da: am fd516987: docs: misc bugs from external tracker
* commit '480785dabb4f9ecc0cb7d68741b4a502d670916d':
  docs: misc bugs from external tracker
2012-07-03 18:18:46 -07:00
Scott Main
480785dabb am fd516987: docs: misc bugs from external tracker
* commit 'fd516987de29a48425da5ee5aace5be40adcc674':
  docs: misc bugs from external tracker
2012-07-03 18:15:19 -07:00
Scott Main
fd516987de docs: misc bugs from external tracker
Change-Id: I02d0d82c220401ac3a1ca180e8331a0f6dcd9e50
2012-07-03 18:08:19 -07:00
Romain Guy
86ca5d3513 Deprecate unsupported widgets.
Change-Id: I154236f07745b25200e77a473b810f45de07d0ef
2012-07-03 17:23:30 -07:00
Scott Main
54d1bf89b7 am 7034ed83: am 5a883824: Merge "docs: fix document issue 27549" into jb-dev
* commit '7034ed833fcfc90abb5d3ad7dffed38fee60c797':
  docs: fix document issue 27549
2012-07-03 11:56:58 -07:00
Scott Main
7034ed833f am 5a883824: Merge "docs: fix document issue 27549" into jb-dev
* commit '5a883824a2e97e0ccb08b4fe30accde6542f3f39':
  docs: fix document issue 27549
2012-07-03 11:54:11 -07:00
Scott Main
5a883824a2 Merge "docs: fix document issue 27549" into jb-dev 2012-07-03 11:51:30 -07:00
Svetoslav Ganov
a0fd78897c Merge "Remove the accessibility focus search code." 2012-07-03 11:29:54 -07:00
Svetoslav Ganov
f44fb4de5d Merge "AnnounceForAccessibility is broken for any view that has a ContentDescription." 2012-07-03 11:29:28 -07:00
Scott Main
c8d5f7d607 am 35cb0650: am 399df567: docs: various link fixes and other typos from external tracker
* commit '35cb0650c07f0f3df017784bd3cf724c743f7399':
  docs: various link fixes and other typos from external tracker
2012-07-02 22:04:14 -07:00
Scott Main
35cb0650c0 am 399df567: docs: various link fixes and other typos from external tracker
* commit '399df5677bd116a016664a10a0da432da29e829d':
  docs: various link fixes and other typos from external tracker
2012-07-02 22:00:50 -07:00
Scott Main
15279cfc56 docs: fix document issue 27549
Change-Id: I17995fd70978657a46ccfc77fa2ae84c56a05255
2012-07-02 21:58:46 -07:00
Scott Main
399df5677b docs: various link fixes and other typos from external tracker
Change-Id: I2a107f7e16429c0fe80c5e4cb67ecfaf267db301
2012-07-02 21:47:20 -07:00
Svetoslav Ganov
7a82b2be06 AnnounceForAccessibility is broken for any view that has a ContentDescription.
1. The purpose of the View#announceForAccessibility method is to
   give a message to the user that is not related to a predefined
   view state change. The current implementation is grabbing the
   source view's content description which in general overrides
   the event text which defeats the purpose of the announcement.

bug:6721440

Change-Id: I8814914bea38c5f4c04f57391a64cf2bb06cb975
2012-07-02 18:42:53 -07:00
Svetoslav Ganov
27e2da7c17 Remove the accessibility focus search code.
1. In JellyBean we have added some APIs to search for next accessibility
   focus in various directions and set accessibility focus from hover.
   However, we have decided that there is not clean answer for how this
   should behave and the APIs were hidden. Now the accessibility service
  is responsible for that. The unused code is now taken out.

2. This patch also takes out the hidden attribute accessibiligyFocusable
   since we moved the responsibility for implementing focus search strategy
   to accessibility services and we did not need that for Jellybean which
   is a good sign that this is not needed. I general this is one less thing
   for an app developer to worry about. We can add this if needed later.

bug:6773816

Change-Id: I0c858d72c93a2b7ff1f8f35a08d33ec4b9eb85fd
2012-07-02 18:21:31 -07:00
Jonathan Dixon
a64c779cdb Merge "Make WebHistoryItem constructor public and hidden" 2012-07-02 15:53:28 -07:00
Gilles Debunne
884eb4b884 Merge "Better handling of spaces at ends of lines in StaticLayout." 2012-07-02 14:41:57 -07:00
Gilles Debunne
58cf576243 Merge "UI changes in suggestion menu" 2012-07-02 14:40:50 -07:00
Wink Saville
2686b058cd When we disconnect shutdown the StateMachine. DO NOT MERGE
Need to stop the StateMachine threads and release
all resources when we disconnect.

bug: 6342470
Change-Id: Ibf7a2ebf4f7ecd667c5d95579e66ecd5086103ea
2012-07-02 10:57:16 -07:00
Wink Saville
095c58b73a Enhance StateMachine Quitting and logging support. DO NOT MERGE
Make StateMachine#quit non-conditional and remove the need to
process the SM_QUIT_CMD it is now private.

Rename halting to onHalting.

Add onQuitting

Change the message specific logging to be more generic and change
the xxxProcessedMessagesYyy methods to xxxLogRecXyy names. Also add
addLogRec(String) and addLogRec(String, State) as the generic logging
methods.

bug: 5678189
Change-Id: I22f66d11828bfd70498db625fe1be728b90478b7

Conflicts:

	services/java/com/android/server/NsdService.java
2012-07-02 10:57:11 -07:00
Craig Mautner
5702d4dfb5 Notify client side of window movement.
Add a one way method to notify Views that the window has moved
on the screen. Fixes issues arising from the IME popping up and
translating the window that uses it. Accessibility was left unaware
of these movements and was drawing the box around the wrong widgets.
Similarly PopupWindow used getLocationOnScreen to determine how
much screen real estate was above and below the anchor point to
determine where to put an anchored window.

Fixes bug 6623031.

Change-Id: I4731a94d5424c1ec77bf1729fba8fc9ea34cae46
2012-06-30 14:10:16 -07:00
Jim Miller
a592d22473 Minor cleanup of left overs from GlowPadView integration.
- remove unused "chevron" assets
- reduce memory footprint in SystemUI by not loading unused handle drawable.

Change-Id: Iad1799d1a8a764c6abb4201520aa47ba84d33c38
2012-06-29 18:29:08 -07:00