Commit Graph

26323 Commits

Author SHA1 Message Date
Mangesh Ghiware
f8e99204c9 am b215726a: Merge "Remove transient and unnecessary update density message." into jb-dev
* commit 'b215726a0e46400c8dbc4a585c2f4200c7a619b6':
  Remove transient and unnecessary update density message.
2012-06-06 08:35:52 -07:00
Mangesh Ghiware
b215726a0e Merge "Remove transient and unnecessary update density message." into jb-dev 2012-06-06 08:32:36 -07:00
Svetoslav Ganov
462a7284b5 Removing leftover code to sync accessibility and input focus.
1. We have decided to let the accessibility services take care
   for syncing accessibility and input focus. Some apps may
   move input focus when a given view takes input focus which
   dragging accessibility focus can lead to a loop in the
   focus traversal. This change removes some leftover sync
   code.

bug:6616861

Change-Id: I57cb44e315a386d13596794d3767b559e9ee3d99
2012-06-05 21:10:04 -07:00
Adam Powell
b85afc25d5 resolved conflicts for merge of 1178569b to master
Change-Id: If2bb6ccaee99bcf199cd93f24eba217fe6ff485e
2012-06-05 20:08:41 -07:00
Adam Powell
1178569b26 am f6452d0c: Merge "More fun with MediaRouter" into jb-dev
* commit 'f6452d0cac64b72005af330411b5a895f0038312':
  More fun with MediaRouter
2012-06-05 19:29:57 -07:00
Adam Powell
f6452d0cac Merge "More fun with MediaRouter" into jb-dev 2012-06-05 19:27:49 -07:00
Jeff Brown
1b60e72877 am eef4bc08: am 615fd3df: Merge "Implement new rotation policy." into jb-dev
* commit 'eef4bc08137f2324e2974c282992ff546df99e54':
  Implement new rotation policy.
2012-06-05 19:20:08 -07:00
Adam Powell
690ffb4e1f More fun with MediaRouter
Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171
2012-06-05 19:15:57 -07:00
Jeff Brown
eef4bc0813 am 615fd3df: Merge "Implement new rotation policy." into jb-dev
* commit '615fd3dff2e369d8b786abcfe41b6da988e41001':
  Implement new rotation policy.
2012-06-05 19:14:17 -07:00
Jeff Brown
615fd3dff2 Merge "Implement new rotation policy." into jb-dev 2012-06-05 19:11:13 -07:00
Fabrice Di Meglio
8dbf3b006d Remove dead code in Switch
Change-Id: I91b47866be6f370feef67b1aa4df3aa0d09cc6fb
2012-06-05 19:01:01 -07:00
Mangesh Ghiware
c7ad10201b Remove transient and unnecessary update density message.
On a page load, the (viewport) metadata settings for the main frame are
reset. Reloading a page with viewport meta tag specifying target density
dpi will result in 2 back to back update zoom density messages to be
sent from WebViewCore to UI thread.

In setupViewport(), remove update density messages in flight. If the new
density is indeed different from WebView's default scale, queue another
message.

Bug: 6509512
Change-Id: I195e40277bf1bcccb0e61d84ed84db1e34556243
2012-06-05 18:46:10 -07:00
Jeff Brown
207673cdbb Implement new rotation policy.
Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a
2012-06-05 17:59:46 -07:00
Fabrice Di Meglio
6fc225a02f Merge "Make CheckBox / RadioButton / ToggleButton / Star widgets aware of layout direction" 2012-06-05 17:16:31 -07:00
John Reck
1f1f21aaa8 am f671e430: am 804e822c: Merge "Fix logspam" into jb-dev
* commit 'f671e430159425ea1ce323f5eb0f59452b1a6fe1':
  Fix logspam
2012-06-05 16:56:38 -07:00
John Reck
f671e43015 am 804e822c: Merge "Fix logspam" into jb-dev
* commit '804e822c56473ce71d1f912c617ff05b474a7af6':
  Fix logspam
2012-06-05 16:52:41 -07:00
John Reck
804e822c56 Merge "Fix logspam" into jb-dev 2012-06-05 16:50:10 -07:00
Fabrice Di Meglio
2842679d34 Make CheckBox / RadioButton / ToggleButton / Star widgets aware of layout direction
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I8badb57d095c6a0a1d0c82bedf30b02502013ae0
2012-06-05 16:41:18 -07:00
Svetoslav Ganov
7510230583 am f1abc425: am cab5b8a9: Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev
* commit 'f1abc4253111907ffb8e5ba19dffa8d00d92fc45':
  Nodes with contentDescription should always be important for accessibility.
2012-06-05 16:02:17 -07:00
Svetoslav Ganov
f1abc42531 am cab5b8a9: Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev
* commit 'cab5b8a91d6fbcbb694284038f5529ff02f10f78':
  Nodes with contentDescription should always be important for accessibility.
2012-06-05 15:57:25 -07:00
Svetoslav Ganov
cab5b8a91d Merge "Nodes with contentDescription should always be important for accessibility." into jb-dev 2012-06-05 15:55:42 -07:00
Svetoslav Ganov
e47957a0bb Nodes with contentDescription should always be important for accessibility.
1. Now after setting the content description on a view we mark is as
   important for accessibility of the current important for accessibility
   mode of that view is auto.

2. Minor tweak to a touch explorer coefficient to make performing double
   tapping easier.

bug:6615353

Change-Id: I3b477f533a3ebde85d425caf32ace5e851240f88
2012-06-05 14:48:58 -07:00
John Reck
eba5e7ddfb Fix logspam
Bug: 6508832

Change-Id: I3061917ae7eba31723c006b1d30d20b7134890b8
2012-06-05 13:22:40 -07:00
George Mount
9ab695be76 Fix caret handle offset
Bug 6614416

Change-Id: I610b0ac564a2e936731d36c7f7b0ee1bb9be6a99
2012-06-05 12:37:49 -07:00
Chris Craik
3683fe8328 am 34e5f5a5: am 3676b137: Merge "Add more temporary logging for investigating detachFunctor" into jb-dev
* commit '34e5f5a534d915f253ae51cbcfe15c12e25a78a4':
  Add more temporary logging for investigating detachFunctor
2012-06-05 12:35:24 -07:00
Chris Craik
34e5f5a534 am 3676b137: Merge "Add more temporary logging for investigating detachFunctor" into jb-dev
* commit '3676b137ecf2f24e88e8a3567c11234e7d4416d2':
  Add more temporary logging for investigating detachFunctor
2012-06-05 12:31:31 -07:00
Chris Craik
3676b137ec Merge "Add more temporary logging for investigating detachFunctor" into jb-dev 2012-06-05 12:28:49 -07:00
Dianne Hackborn
33644b9ba7 am 4a683a34: am 1ad66b2f: Merge "Fix issue #6584942 IllegalStateException: Failure saving state..." into jb-dev
* commit '4a683a343083ec2b8aed1ee63669dbade6c0379f':
  Fix issue #6584942 IllegalStateException: Failure saving state...
2012-06-05 12:26:10 -07:00
Chet Haase
0fc37e46b4 am 7c54ef9a: am 14f73a02: Merge "Restore opaque alpha value when AlphaAnimation finishes" into jb-dev
* commit '7c54ef9a0e27b5146a51ebeb267a0a6a1fd9174f':
  Restore opaque alpha value when AlphaAnimation finishes
2012-06-05 12:25:43 -07:00
Dianne Hackborn
4a683a3430 am 1ad66b2f: Merge "Fix issue #6584942 IllegalStateException: Failure saving state..." into jb-dev
* commit '1ad66b2f873496bcbe72e91d1978cf1b2633b3a4':
  Fix issue #6584942 IllegalStateException: Failure saving state...
2012-06-05 11:48:14 -07:00
Dianne Hackborn
1ad66b2f87 Merge "Fix issue #6584942 IllegalStateException: Failure saving state..." into jb-dev 2012-06-05 11:45:13 -07:00
Chris Craik
8857b2f76a Add more temporary logging for investigating detachFunctor
bug:6596807
Change-Id: Ic9e34e323b12a887f2e8df0773a6155627b6a64f
2012-06-05 11:24:46 -07:00
Dianne Hackborn
ee76efb74b Fix issue #6584942 IllegalStateException: Failure saving state...
...active SuggestFragment{419494f0} has cleared index: -1

There were issues when the same fragment was removed and then
added again before completely finishing the remove (such as due
to a running animation).

Two fixes:

- Now when you call FragmentTransaction.replace() and are replacing
  a fragment with the same fragment, this becomes a no-op, to avoid
  visual artifacts in the transition and bad states.
- When we are moving the fragment state up and it is currently
  animating away to the INITIALIZED state, we could end up making
  the fragment inactive as part of the cleanup.  In this case it
  shouldn't be made inactive; we just need to initialize it but
  keep it active since we are going to continue to use it.

Bug: 6584942
Change-Id: I8bfd73f2d8ef8f67b541b3e2525dfa5db6c3bfa5
2012-06-05 10:52:38 -07:00
Chet Haase
7c54ef9a0e am 14f73a02: Merge "Restore opaque alpha value when AlphaAnimation finishes" into jb-dev
* commit '14f73a02a42b5e4c700fe70e8c2d38dc518480b4':
  Restore opaque alpha value when AlphaAnimation finishes
2012-06-05 10:26:22 -07:00
Svetoslav Ganov
bce6f97202 am b25605cd: am 72d6835c: Merge "Accessibility focus should not clear selection when taken away." into jb-dev
* commit 'b25605cd7111bcab41ec10547f015bd2d6215c91':
  Accessibility focus should not clear selection when taken away.
2012-06-05 09:54:54 -07:00
Svetoslav Ganov
4b9320bd95 am 62ac5e0b: am 1f348443: Merge "NullPointerException in AbsListView.focusSearch()." into jb-dev
* commit '62ac5e0bb9ee61507b3d2a182aa78dc71869e9bb':
  NullPointerException in AbsListView.focusSearch().
2012-06-05 09:54:50 -07:00
Satoshi Kataoka
75bc758c43 am d44a4411: am 69609ed4: Merge "Do not run the spell checker in SearchView" into jb-dev
* commit 'd44a4411751921188f3484e0638363c9c88f7f06':
  Do not run the spell checker in SearchView
2012-06-05 09:22:23 -07:00
Chet Haase
2143337d50 Restore opaque alpha value when AlphaAnimation finishes
Alpha values were being set correctly on native Display Lists during an
AlphaAnimation, but not when the animation finished. Only non-1 values
were being propagated to the Display List properties.

The fix is to track when we've set a non-1 alpha value from an AlphaAnimation
and to notice that flag when the value is 1 (because the animation ended), so that
we propagate that value correctly. Using the flag avoids sending a value of 1
(by far the most common case) unless we really need to restore it after animating
it with non-1 values.

Issue #6600592 Sometimes album art blends with list asset on queue

Change-Id: I51047d756a4ac42a2d907a4d77963cc23dfb1db3
2012-06-05 08:59:32 -07:00
Tobias Dubois
defdb1e491 Add the possibility to modify the View focus rect
This change makes it possible for a view to supply a different rectangle than
the drawing rect to be used by the FocusFinder when finding a new view to give
focus to. This is useful if e.g. the total view area is larger than the
interactive area of the view.

The default implementation of getFocusRect() will return  getDrawingRect().
The existing behaviour is only changed if getFocusRect() is overridden by a
subclass of android.view.View

Change-Id: I52dd95c6fa296b744e354217051dcec1bb3c8e92
2012-06-05 13:55:53 +02:00
Svetoslav Ganov
b25605cd71 am 72d6835c: Merge "Accessibility focus should not clear selection when taken away." into jb-dev
* commit '72d6835c7cea35d0faf5f1584bf2c475fcbf93c8':
  Accessibility focus should not clear selection when taken away.
2012-06-04 23:13:35 -07:00
Svetoslav Ganov
62ac5e0bb9 am 1f348443: Merge "NullPointerException in AbsListView.focusSearch()." into jb-dev
* commit '1f3484430e71a4dc21aba9145d20e32ca4a8f72e':
  NullPointerException in AbsListView.focusSearch().
2012-06-04 23:09:43 -07:00
Svetoslav Ganov
72d6835c7c Merge "Accessibility focus should not clear selection when taken away." into jb-dev 2012-06-04 23:08:29 -07:00
Svetoslav Ganov
1f3484430e Merge "NullPointerException in AbsListView.focusSearch()." into jb-dev 2012-06-04 23:07:26 -07:00
Satoshi Kataoka
d44a441175 am 69609ed4: Merge "Do not run the spell checker in SearchView" into jb-dev
* commit '69609ed40260b67d5ee6baace9d60cf9b677f4c9':
  Do not run the spell checker in SearchView
2012-06-04 22:44:58 -07:00
Satoshi Kataoka
69609ed402 Merge "Do not run the spell checker in SearchView" into jb-dev 2012-06-04 22:42:00 -07:00
Satoshi Kataoka
9ce1116ee8 Do not run the spell checker in SearchView
Bug: 6603925
Change-Id: I75972185fb4d802f2a90649002e722ca4b676c42
2012-06-05 12:22:38 +09:00
Svetoslav Ganov
3016c1ae6a NullPointerException in AbsListView.focusSearch().
1. One of the loops was using the last visible position
   as its end boundary as opposed to the child count
   minus one.

bug:6610451

Change-Id: I600545ca3f64d1e982f909f893e5d34570ec5c8b
2012-06-04 19:47:46 -07:00
Svetoslav Ganov
0a047bdcdd Accessibility focus should not clear selection when taken away.
1. Currently accessibility focus removal was clearing the selection
   in the view - in particular the accessibility cursor position
   which in the TextView case is the selection. This leads to a
   scenario where the selection may be cleared when the app does
   not explect. Further, the selection should not be cleared
   since the user can be say several pages in the content and
   removing and putting back accessibility focus would cause a
   tedious traversal to get to the previous position.

bug:6469840

Change-Id: Iba3c01600fa2c9c39f99085a5fbc4328aa539ea8
2012-06-04 19:32:45 -07:00
Fabrice Di Meglio
0cd655ad2d Merge "Revert "Revert "Clean up layout direction APIs for Drawable""" 2012-06-04 16:29:05 -07:00
Chris Craik
fe952ba031 am 9238e5b9: am ca5a1489: Merge "Add temporary functor detach logging" into jb-dev
* commit '9238e5b9dbfaedd9dbaac9aff1f96bb190220c45':
  Add temporary functor detach logging
2012-06-04 15:59:10 -07:00