OSDN Git Service
Svetoslav Ganov [Mon, 18 Jun 2012 18:27:44 +0000 (11:27 -0700)]
Merge "API for finding accessibility focus in virtual tree not needed." into jb-dev
Daniel Sandler [Mon, 18 Jun 2012 18:20:54 +0000 (11:20 -0700)]
Merge "Turn off debug logs." into jb-dev
Svetoslav Ganov [Mon, 18 Jun 2012 17:20:42 +0000 (10:20 -0700)]
Merge "Ensure WebViewClassic calls super.onHoverEvent()" into jb-dev
Daniel Sandler [Mon, 18 Jun 2012 15:26:43 +0000 (11:26 -0400)]
Turn off debug logs.
Also switch to Slog, which is more appropriate for framework
logging.
Bug:
6684167
Change-Id: I829de86702a9952ce42ec9967c8d493529253426
Justin Ho [Mon, 18 Jun 2012 14:29:02 +0000 (07:29 -0700)]
Merge "Increasing brightness for notification icons and navigation bar icons Bug:
6612414" into jb-dev
Adam Powell [Mon, 18 Jun 2012 02:32:22 +0000 (19:32 -0700)]
Merge "Volume control in MediaRouter dialogs" into jb-dev
Adam Powell [Mon, 18 Jun 2012 02:32:07 +0000 (19:32 -0700)]
Merge "Make MediaRouter UI more robust around route count changes" into jb-dev
Jeff Brown [Sun, 17 Jun 2012 21:17:52 +0000 (14:17 -0700)]
Capture window manager's last ANR state in bug report.
Currently just grabbing the window state but we could grab
other things as part of the last ANR report.
Bug:
6680398
Change-Id: I23aa70907b1bdcb21c8acc556fde196ca790ef6a
Jeff Brown [Sun, 17 Jun 2012 19:01:06 +0000 (12:01 -0700)]
Capture input dispatcher's last ANR state in bug report.
Some ANR bugs are very difficult to localize because by the time
the bug report has been captured, the relevant information is
gone. Work around this by capturing a log of the input dispatcher's
state at the exact time of the ANR before anything has changed
and include this information in the bug report.
Also fixed a nit related to some format strings that had
improper field widths specified.
Bug:
6680398
Change-Id: I5323bf18ec5e47a767cd053209753cc46852bf4c
Svetoslav Ganov [Sun, 17 Jun 2012 22:07:29 +0000 (15:07 -0700)]
API for finding accessibility focus in virtual tree not needed.
1. The function for finding where the accessibility focus in a virtual
node tree presented by an AccessibilityNodeProvider is not needed
API since the framework already keeps track of the accessibility
focused virtual node in order to draw the focus rectangle. This API
adds unnecessary complexity to developers of AccessibilityNodeProviders.
bug:
6675330
Change-Id: I84774686b06a995073a39e45b8ef22f2cd04b773
Adam Powell [Sat, 16 Jun 2012 21:58:39 +0000 (14:58 -0700)]
Volume control in MediaRouter dialogs
MediaRouter dialogs now intercept the volume keys for altering the
current volume. The status icon indicates if the slider/buttons are
currently controlling the local device volume or a remote device's
volume.
Group volume for user routes is handled by using the
RemoteControlClient supplied by the first route in the group.
Change-Id: I40a0d054847ed5acce7a4c3b669487841b4dca15
Adam Powell [Sat, 16 Jun 2012 21:25:38 +0000 (14:25 -0700)]
Make MediaRouter UI more robust around route count changes
Improve the API around ActionProvider visibility overriding. Allow the
application to notify whatever is hosting the ActionProvider that
visibility has changed in a way that is friendly to alternate support
library-style reimplementations of MenuItem.
Allow MediaRouter.Callback implementations to add or remove themselves
or other Callbacks during dispatch of callback events.
Make MediaRouteActionProvider track the visibility of corresponding
menu items more accurately.
Change-Id: Ic7ddb6a87c3637904750d2661e4a9fa323b09ea0
Makoto Onuki [Sat, 16 Jun 2012 19:34:56 +0000 (12:34 -0700)]
Merge "Allow restricting the scope of a phone-filter search" into jb-dev
Daniel Lehmann [Sat, 16 Jun 2012 03:32:33 +0000 (20:32 -0700)]
Allow restricting the scope of a phone-filter search
This also includes a previous change to current.txt that hasn't been
copied to 16.txt yet
Bug:
6662259
Change-Id: Iaab5c38ad56882a1270b5276ba7a399bbb8a49f3
Adam Powell [Sat, 16 Jun 2012 02:21:34 +0000 (19:21 -0700)]
ActionProvider API update
* Add ActionProvider#overridesItemVisibility and isVisible.
These methods allow an ActionProvider to override the
visibility of a MenuItem that it is bound to. If a MenuItem
has been explicitly hidden by the application, it will not
be visible.
* Change MediaRouteActionProvider to not require a MediaRouter
callback, to avoid extra lifecycle management headaches.
Change-Id: I606fa98b3a6a3e60a953dd024274f9bf9c67acdd
Christian Robertson [Sat, 16 Jun 2012 02:36:30 +0000 (19:36 -0700)]
Increasing brightness for notification icons and navigation bar icons
Bug:
6612414
Change-Id: I5ab60f60f5bf502b3b15c30207047285db611ae3
alanv [Sat, 16 Jun 2012 01:59:11 +0000 (18:59 -0700)]
Ensure WebViewClassic calls super.onHoverEvent()
Bug:
6679763
Change-Id: I9b182f25fa1c4050ea3a046c896e82ffbb4651ad
Dianne Hackborn [Sat, 16 Jun 2012 00:48:54 +0000 (17:48 -0700)]
Merge "Fix issue #
6664140: Time to lock should work even Stay awake..." into jb-dev
Dianne Hackborn [Sat, 16 Jun 2012 00:05:25 +0000 (17:05 -0700)]
Fix issue #
6664140: Time to lock should work even Stay awake...
...in Developer options is on
Don't respect stay awake while on as long as a time to lock limit
is being enforced. When we start enforcing one, make sure the
setting is off (since we won't be respecting it anyway).
Bug:
6664140
Change-Id: Id07cb528afa0c64c7766341841c51771f507121d
Adam Powell [Fri, 15 Jun 2012 22:32:14 +0000 (15:32 -0700)]
Merge "Remove workaround for bug that was fixed a while ago." into jb-dev
Jeff Brown [Fri, 15 Jun 2012 22:30:40 +0000 (15:30 -0700)]
Merge "Revert "Synthesize fake vsyncs when the screen is off."" into jb-dev
Jim Miller [Fri, 15 Jun 2012 22:19:16 +0000 (15:19 -0700)]
Merge "Fix
6507787: fix MMI PUK unlock procedure" into jb-dev
Adam Powell [Fri, 15 Jun 2012 22:10:58 +0000 (15:10 -0700)]
Remove workaround for bug that was fixed a while ago.
Change-Id: I368dd8fea6b33af6908b6fe3b7691104166a707a
Svetoslav Ganov [Fri, 15 Jun 2012 22:00:43 +0000 (15:00 -0700)]
Merge "Accessibility focus search and setting it from hover are performed by the client." into jb-dev
Ying Wang [Fri, 15 Jun 2012 21:19:08 +0000 (14:19 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev
Ying Wang [Fri, 15 Jun 2012 21:18:13 +0000 (14:18 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev
Dianne Hackborn [Fri, 15 Jun 2012 21:10:42 +0000 (14:10 -0700)]
Merge "Add new callback for MediaRouter to found out about device changes." into jb-dev
Eric Laurent [Fri, 15 Jun 2012 21:01:49 +0000 (14:01 -0700)]
Merge "AudioManager: back to old setBluetoothA2dpOn()" into jb-dev
Teng-Hui Zhu [Fri, 15 Jun 2012 20:57:28 +0000 (13:57 -0700)]
Merge "Notify Java side to start when transition into full screen mode without a reload." into jb-dev
Dianne Hackborn [Fri, 15 Jun 2012 02:34:10 +0000 (19:34 -0700)]
Add new callback for MediaRouter to found out about device changes.
The AudioService now has an API to call to get the currently
connected devices, and later reports of changes in connection
state. The information includes the name of the bluetooth
device if one is connected for display to the user, and states
for all of the pluggable devices. No longer requires a Bluetooth
permission to keep the routes updated.
Change-Id: I81ca421c60592fbc1592477d59bf1c9d1b64954a
Ying Wang [Fri, 15 Jun 2012 20:06:55 +0000 (13:06 -0700)]
Import translations. DO NOT MERGE
Change-Id: I3634d090275ecbd789e89266910ede4e4e1d8566
Dianne Hackborn [Fri, 15 Jun 2012 20:05:26 +0000 (13:05 -0700)]
Merge "Fix issue #
6636731: Mariner animation ring gets stuck" into jb-dev
Ying Wang [Fri, 15 Jun 2012 19:44:39 +0000 (12:44 -0700)]
Import translations. DO NOT MERGE
Change-Id: I6ab3489fe984c442dceaef41e76ee5e6783e65ef
Kenny Root [Fri, 15 Jun 2012 19:37:39 +0000 (12:37 -0700)]
Merge "Make lib dir before changing ownership of app dir" into jb-dev
Dianne Hackborn [Fri, 15 Jun 2012 19:05:27 +0000 (12:05 -0700)]
Fix issue #
6636731: Mariner animation ring gets stuck
Weren't cleaning out any ActivityOptions that are still attached
to a finishing activity.
Bug:
6636731
Change-Id: If0520bbcbf1d4ce19d46ff769918893cefda9c87
Adam Powell [Fri, 15 Jun 2012 18:52:10 +0000 (11:52 -0700)]
Merge "Update MediaRouteChooserDialog grouping UI" into jb-dev
Eric Laurent [Fri, 15 Jun 2012 18:48:50 +0000 (11:48 -0700)]
AudioManager: back to old setBluetoothA2dpOn()
Come back to old versions of setBluetoothA2dpOn() and isBluetoothA2dpOn().
MediaRouter will call methods on IAudioService directly.
Change-Id: I18f0a3106bad78715ed11a6b7b4ec1d656cdae41
Daniel Sandler [Fri, 15 Jun 2012 18:46:35 +0000 (11:46 -0700)]
Merge "Hide "no internet connection" when connected some other way." into jb-dev
Teng-Hui Zhu [Fri, 15 Jun 2012 18:22:23 +0000 (11:22 -0700)]
Notify Java side to start when transition into full screen mode without a reload.
When video start in inline mode, and then transition into full screen mode, the
video is still playing, so we need to notify the player, such that the controller
can get the state correctly.
bug:
6675847
Change-Id: Ib5f712ca91fe1c374dcc20de996dac6ff7b9e983
Svetoslav Ganov [Fri, 15 Jun 2012 17:31:31 +0000 (10:31 -0700)]
Accessibility focus search and setting it from hover are performed by the client.
1. Currently we are providing accessibility focus search algorithm in the
framework and we are also setting accessibility focus from hover. It
appears that implementing a focus search strategy that works for all
accessibility services is non trivial task if feasible. Based on
feedback from the developers of two such services at Google - TalkBack
and BarilleBack - the built in focus search does not quite match what
they need and they would like to implement a custom strategy.
Hence, having APIs for accessibility focus search in the framework does
not make. Therefore, we are hiding this APIs and later will take out the focus
search logic and allow the accessibility service to implement search.
Also putting accessibility focus from hover is tightly integrated with
the focus search since the set of views that get accessibility focus
from hover should be the same as the set of views returned by the
focus search routine. Therefore, we are letting the accessibility service
decide where to put accessibility focus when it gets an accessibility
hover event.
bug:
6675330
Change-Id: Ie152230990a6602f3fd1d82de2177d0b1444d654
Daniel Sandler [Fri, 15 Jun 2012 17:17:39 +0000 (13:17 -0400)]
Hide "no internet connection" when connected some other way.
We now track whether the device is connected at all, and use
this to suppress the disconnected message in the mobile
status string (we previously just looked at wifi
connectivity).
So, if a device is attached via ethernet:
- On wifi-only devices, the combined label is shown in the
notification panel, so you'll see "ETHERNET" (this comes
straight from EthernetDataTracker; at some point we need
localized strings and icons).
- On mobile-data devices (phones), the notification panel
only shows the mobile data label, which will be
suppressed, so you'll see nothing at all.
Bug:
6648292
Change-Id: I9841eaeffe50a4f046afbdc09d80c5bd4d78a839
Justin Ho [Fri, 15 Jun 2012 16:23:25 +0000 (09:23 -0700)]
Merge "Jelly Bean ringtone Bug:
6619980" into jb-dev
Daniel Sandler [Fri, 15 Jun 2012 16:17:03 +0000 (09:17 -0700)]
Merge "Concatenate SPN and PLMN with a pipe." into jb-dev
Justin Ho [Fri, 15 Jun 2012 15:48:49 +0000 (08:48 -0700)]
Jelly Bean ringtone
Bug:
6619980
Change-Id: I717c66274d3efaafb0caa60204d311732c182268
Adam Powell [Fri, 15 Jun 2012 06:06:24 +0000 (23:06 -0700)]
Update MediaRouteChooserDialog grouping UI
Move UserRouteInfo tag support to RouteInfo
Change-Id: Ia753924f8613462d5f74736be93a8d748689eef1
Jeff Brown [Fri, 15 Jun 2012 06:48:40 +0000 (23:48 -0700)]
Revert "Synthesize fake vsyncs when the screen is off."
This reverts commit
858491ba13ab5d45a5ec462d002b5856703b1b2b
It turns out that Surface Flinger is supposed to generate fake vsyncs while the screen is off, but sometimes it wasn't working due to a bug. That bug has now been fixed by the following change: I7c6abc23bb021d1dfc94f101bd3ce18e3a81a73e
Jim Miller [Fri, 15 Jun 2012 05:22:50 +0000 (22:22 -0700)]
Fix
6507787: fix MMI PUK unlock procedure
This fixes a bug where the user uses the MMI sequence (**05*PUK*PIN1*PIN1#)
from the EmergencyDialer to unlock their phone instead of the provided interface.
The code now recognizes when UnlockMode becomes invalid because it was previously
locked because of SIM state. It then dismisses the PUK unlock screen and advances
to the home screen.
Change-Id: I8902350e6f640cd2fa0af3460c3ea1a39d926c8a
Dianne Hackborn [Fri, 15 Jun 2012 04:33:48 +0000 (21:33 -0700)]
Merge "Help out issue #
6654729: CAB + screen off during playback" into jb-dev
Jeff Brown [Fri, 15 Jun 2012 04:30:49 +0000 (21:30 -0700)]
Merge "Synthesize fake vsyncs when the screen is off." into jb-dev
Daniel Sandler [Fri, 15 Jun 2012 03:54:55 +0000 (23:54 -0400)]
Concatenate SPN and PLMN with a pipe.
Prior change 199020 fixes it for instances of CarrierLabel;
this fixes it for customers of NetworkController.
Bug:
6639047
Change-Id: I69dada2298f4a3caf453f43d847cdb32fe7eaa9f
Jeff Brown [Fri, 15 Jun 2012 02:03:44 +0000 (19:03 -0700)]
Synthesize fake vsyncs when the screen is off.
When the screen is off, we might not receive real vsync pulses from
the hardware which would cause posted Choreographer callbacks to not run.
This is bad because messages in the Looper might be blocked behind a barrier
that is scheduled to be removed by one of those Choreographer callback
(see ViewRootImpl.doTraversals). Until the barrier is removed, those messages
will not run. To prevent starvation of the Looper, we synthesize fake vsync
pulses at a reduced rate whenever the display hardware stops generating them.
This change should fix a variety of rare non-deterministic bugs where
the system might appear to be unresponsive while the screen is off,
and spurious ANRs reported shortly after the screen is turned back on.
Bug:
6574842
Bug:
6636995
Bug:
6643559
Change-Id: I263f2fdf979afd79e5ac47a0cc5d34a93b860c21
Matthew Xie [Fri, 15 Jun 2012 03:28:46 +0000 (20:28 -0700)]
Merge "Handle ENITR failure for Headset control channel." into jb-dev
Matthew Xie [Fri, 15 Jun 2012 03:08:40 +0000 (20:08 -0700)]
Handle ENITR failure for Headset control channel.
Wrap poll and read with TEMP_FAILURE_RETRY
bug
6503000,
6623444
Change-Id: I2e302dc04df6b5bd5982c3d189881a687a95fb2d
Dianne Hackborn [Fri, 15 Jun 2012 02:38:20 +0000 (19:38 -0700)]
Help out issue #
6654729: CAB + screen off during playback
People generally expect, if they are using FLAG_KEEP_SCREEN_ON,
that the screen won't immediately dim after it is cleared, even
if it has been passed the user activity timeout since the last
user interaction. So include the flag to reset the user activity
timeout when releasing its wake lock.
Change-Id: If7a8fea8faef3edbf13dff10a2f248adc9e3ff0b
Christopher Tate [Fri, 15 Jun 2012 02:35:58 +0000 (19:35 -0700)]
Merge "Don't finish noHistory="true" activities behind the lock screen" into jb-dev
Adam Powell [Fri, 15 Jun 2012 00:51:25 +0000 (17:51 -0700)]
Merge "API updates for MediaRouter" into jb-dev
Christopher Tate [Fri, 15 Jun 2012 00:34:28 +0000 (17:34 -0700)]
Merge "Run the screen on/off broadcasts at foreground priority" into jb-dev
Svetoslav Ganov [Fri, 15 Jun 2012 00:19:54 +0000 (17:19 -0700)]
Merge "Add support for NEXT_HTML_ELEMENT to WebViewClassic." into jb-dev
Christopher Tate [Fri, 15 Jun 2012 00:00:48 +0000 (17:00 -0700)]
Run the screen on/off broadcasts at foreground priority
Bug
6643559
Change-Id: I392f11dabea518238d0f4336c3663bf5c7d46146
Christopher Tate [Thu, 14 Jun 2012 21:16:54 +0000 (14:16 -0700)]
Don't finish noHistory="true" activities behind the lock screen
The foreground activity is stopped when the device goes to sleep,
and started again when the device is unlocked. We now distinguish
this case from a "normal" stop, and do not finish() a foreground
noHistory="true" activity inappropriately when the device sleeps.
We also detect the case where an activity is started while the
device is still asleep, in which case the foreground noHistory
activity is cleaned up as part of bringing the new activity to
the foreground.
Bug
6657549
Change-Id: I9c6a0830aed0e47e4207b62803b90067c8486112
Adam Powell [Thu, 14 Jun 2012 23:04:12 +0000 (16:04 -0700)]
API updates for MediaRouter
* Accept a Context when fetching the names of routes and
categories. This lets string resources resolve at time of access
with the correct configuration. The older versions remain available
that will use the static resources from the application. (There are
enough cases where applications will populate this from external
data that requiring it each time even when it was not initialized
from a resource doesn't seem reasonable.)
* Remove the ability for apps to programmatically select non-user
routes.
* Make MediaRouter.Callback an abstract class instead of an interface.
This will make further extensions easier to keep compatible in the
future.
Change-Id: If981c511dfbdfaf41ef0d1cfe4a377fc14bb5600
George Mount [Thu, 14 Jun 2012 23:14:16 +0000 (16:14 -0700)]
Merge "DO NOT MERGE Respect the "Make password visible" setting." into jb-dev
Daniel Sandler [Thu, 14 Jun 2012 23:07:45 +0000 (16:07 -0700)]
Merge "Show even fewer notifications in Setup." into jb-dev
Kenny Root [Thu, 14 Jun 2012 20:05:18 +0000 (13:05 -0700)]
Make lib dir before changing ownership of app dir
Bug:
6668897
Change-Id: I8998a50359892277b15e80b5b5590ff94b125467
alanv [Thu, 14 Jun 2012 22:24:19 +0000 (15:24 -0700)]
Add support for NEXT_HTML_ELEMENT to WebViewClassic.
Bug:
6663344
Change-Id: Ieb48998e3af12916fe499a12d5bf7a767df8d05b
Svetoslav Ganov [Thu, 14 Jun 2012 22:14:14 +0000 (15:14 -0700)]
Merge "AccessibilityInjector should return false on a failed action." into jb-dev
George Mount [Thu, 14 Jun 2012 21:08:56 +0000 (14:08 -0700)]
DO NOT MERGE Respect the "Make password visible" setting.
Bug
6667146
Webkit Change: I95ffcfa6fa47baad60b1af55f84bee35dfcc7972
Change-Id: I7fc107b02f73f4c54e8fe66484038ea9d7b69d61
Craig Mautner [Thu, 14 Jun 2012 21:55:19 +0000 (14:55 -0700)]
Merge "Expose apps when keyguard animating." into jb-dev
Michael Jurka [Thu, 14 Jun 2012 21:33:55 +0000 (14:33 -0700)]
Merge "Tweak recents launch app animation" into jb-dev
Romain Guy [Thu, 14 Jun 2012 21:32:07 +0000 (14:32 -0700)]
Merge "Don't create a giant layer for all notifications Bug #
6642475" into jb-dev
Romain Guy [Thu, 14 Jun 2012 19:52:53 +0000 (12:52 -0700)]
Don't create a giant layer for all notifications
Bug #
6642475
When expanding the status bar, create one layer per notification instead of
a single giant layer for the pile of notifications. This prevents layer
creation failure when the total height of the notifications is larger
than the maximum allowed texture size in OpenGL ES 2.0.
This change only enables layers on notifications that will be visible
once the notification area is fully expanded.
Change-Id: I3c791a66cf5ac0973f3a65cfcd84b95209d580f3
Craig Mautner [Thu, 14 Jun 2012 21:11:27 +0000 (14:11 -0700)]
Expose apps when keyguard animating.
Continuing in the trend of not hiding apps while the keyguard is
animating.
Fixes bug
6653600.
Change-Id: I151315084a13dcec061d2d6edccd31e1133610f4
Eino-Ville Talvala [Thu, 14 Jun 2012 21:02:46 +0000 (14:02 -0700)]
Merge "Remove Disco video from builds." into jb-dev
Daniel Sandler [Thu, 14 Jun 2012 20:10:13 +0000 (16:10 -0400)]
Show even fewer notifications in Setup.
Restricting to pkg="android" didn't filter out things like
open wifi networks, etc. So now we have a whitelist:
notifications must be sent the "android" pseudo-package,
*and* they must have one of these "kind" tags:
- android.system.imeswitcher (IME switcher, needed by SUW)
- android.system.update (OTAs)
Note that OTAs currently use a fullScreenIntent, so they
bypass this logic anyway, but for consistency's sake we now
allow OTA icons in the status bar explicitly.
Bug:
6645469
Change-Id: Ib2e2f22d7a0817a1acaf8137ed4f3c7d3ddf8af5
Eric Fischer [Thu, 14 Jun 2012 19:20:40 +0000 (12:20 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Thu, 14 Jun 2012 19:10:43 +0000 (12:10 -0700)]
Import translations. DO NOT MERGE
Change-Id: I561c60ea1ff93ae79414331242232bccfc820679
Michael Jurka [Thu, 14 Jun 2012 18:57:50 +0000 (11:57 -0700)]
Tweak recents launch app animation
- Sometimes the black background would flash; changing
animation durations to make this much less likely
- Fixing issue in Recents where we sometimes forgot
to disable drawing caches on views after enabling them
Michael Jurka [Thu, 14 Jun 2012 18:39:21 +0000 (11:39 -0700)]
Merge "Change snap behavior for lock screen" into jb-dev
Jeff Brown [Thu, 14 Jun 2012 18:28:52 +0000 (11:28 -0700)]
Merge "Add new ASSIST key and map it to the global assist intent." into jb-dev
Adam Powell [Thu, 14 Jun 2012 18:25:20 +0000 (11:25 -0700)]
Merge "Support route grouping in the MediaRouter dialog UI." into jb-dev
Michael Jurka [Thu, 14 Jun 2012 00:38:14 +0000 (17:38 -0700)]
Change snap behavior for lock screen
Use angle and distance from center, rather than
distance from target.
Change-Id: Ic970bc4b05d341dbb6aab334e3f630794f2a211c
Fabrice Di Meglio [Thu, 14 Jun 2012 17:50:36 +0000 (10:50 -0700)]
Merge "Fix bug #
6661824 Hebrew Text can be clipped" into jb-dev
Svetoslav Ganov [Thu, 14 Jun 2012 17:48:09 +0000 (10:48 -0700)]
Merge "Active window not updated window not updated properly." into jb-dev
Svetoslav Ganov [Thu, 14 Jun 2012 17:30:00 +0000 (10:30 -0700)]
Active window not updated window not updated properly.
1. Accessibility allows querying only of the active window.
The active window is the one that has input focus or the
one the user is touching. Hence, if the user is touching
a window that does not have input focus this window is
the active one and as soon as the user stops touching
it the active window becomes the one that has input
focus. Currently the active window is not updated properly
when the user lifts his finger. This leads to a scenario
of traversal actions sent to the wrong window and the user
being stuck.
The reason is that the last touch explored event that is
used to determine where to click is cleared when accessibility
focus moves but this event is also used to determine when to
send the hover exit and touch exploration gesture end events.
The problem is that the last hover event is cleared before
it is used for sending the right exit events, thus the event
stream is inconsistent and the accessibility manager service
relies on this stream to update the active window. Now we
are keeping separate copies of the last touch event - one
for clicking and one for determining the which events to
inject to ensure consistent stream.
bug:
6666041
Change-Id: Ie9961e562a42ef8a9463afacfff2246adcb66303
Svetoslav Ganov [Thu, 14 Jun 2012 17:03:59 +0000 (10:03 -0700)]
Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev
John Spurlock [Thu, 14 Jun 2012 15:53:12 +0000 (08:53 -0700)]
Merge "NavBar: Slippery on the unsecured lock screen." into jb-dev
Nick Pelly [Thu, 14 Jun 2012 15:34:12 +0000 (08:34 -0700)]
Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev
Daniel Sandler [Thu, 14 Jun 2012 14:15:29 +0000 (07:15 -0700)]
Merge "Remove an unnecessary animation." into jb-dev
John Spurlock [Wed, 13 Jun 2012 15:19:51 +0000 (11:19 -0400)]
NavBar: Slippery on the unsecured lock screen.
The NavBar is always non-slippery, except when:
- the notification shade is showing
- the 3 buttons (back,home,recents) are disabled
Also fix unrelated bug that ignored the "show panel delay"
before the first config change.
Bug:
6614842
Change-Id: Ib40adaef122b563809398fdebbd8a88d8f0c7ffd
Chris Wren [Thu, 14 Jun 2012 12:47:08 +0000 (05:47 -0700)]
Merge "enable touch feedback on notification title." into jb-dev
Chris Wren [Thu, 14 Jun 2012 12:46:49 +0000 (05:46 -0700)]
Merge "Invert the sense of the two-figner direction on tablets." into jb-dev
Jeff Brown [Thu, 14 Jun 2012 01:28:57 +0000 (18:28 -0700)]
Add new ASSIST key and map it to the global assist intent.
Moved some duplicate code from SearchPanelView and LockScreen
over to SearchManager to avoid creating yet another copy of it
in PhoneWindowManager.
Bug:
6594275
Change-Id: Ib4ebcd6817639d17548952ab2ce7cb876c05777c
Jeff Brown [Thu, 14 Jun 2012 09:45:35 +0000 (02:45 -0700)]
Merge "When SIM absent, keyguard should be considered non-secure." into jb-dev
Ruei-sung Lin [Thu, 14 Jun 2012 06:41:38 +0000 (23:41 -0700)]
Merge "Add property to override backdropper effect threshold." into jb-dev
Adam Powell [Thu, 14 Jun 2012 06:15:49 +0000 (23:15 -0700)]
Support route grouping in the MediaRouter dialog UI.
Change-Id: Idcae12cedfb7ca13950e7fa45441fba2029a9f68
Svetoslav Ganov [Thu, 14 Jun 2012 04:01:51 +0000 (21:01 -0700)]
If a gesture cannot be detected the device should transition to touch exploration state.
1. We are deciding whether the user is performing a gesture or an exploration based
on the gesture velocity. If we are detecting gesture we do the recognition at the
gesture end which is when the finger goes up. This is better than having a mode
toggle gesture for exploring and gestures detection. However, it is possible that
the user really wanted to perform an exploration but was moving too fast and
unless he lifts his finger the device is in gesture detection mode. This is
frustrating since the user has no feedback and assumes exploration does not
work.
We want to perform gesture detection only for a maximal time frame and if the
user did not lift his finger we transition into touch exploration state.
bug:
6663173
Change-Id: I954ff937cca902e31b51325d1e1dfce84d239624
Uriel Rodriguez [Thu, 14 Jun 2012 04:11:12 +0000 (21:11 -0700)]
Merge "BUG
5457035: lowering max FUL failed attempts to 3" into jb-dev
Svetoslav Ganov [Thu, 14 Jun 2012 03:21:47 +0000 (20:21 -0700)]
AccessibilityInjector should return false on a failed action.
1. AccessibilityInjector was returning true even if the underlying
JavaScript was not loaded/failed. This may lead to TalkBack getting
stuck in a web view. To avoid this TalkBack requires gran1ularity
change when getting into web view. This is neither advertised nor
shown in the tutorial and which is worse it is inconsistent with
the traversal of the app.
Now if the action fails, false is returned and also the timeout for
handling the action request is increased to 5s. Upon the completion
of this timeout TalkBack may decide to show a wait dialog or just
skip the web content. We are treating this as an ANR.
bug:
6663344
Change-Id: Idf3d08fe928c495bb974a127f853de6f938e2f77
Jeff Brown [Thu, 14 Jun 2012 03:00:49 +0000 (20:00 -0700)]
When SIM absent, keyguard should be considered non-secure.
Previously, it was observed that while a SIM is being initialized
by the hardware the SIM may briefly be reported as being in an
ABSENT state before eventually transitioning into a READY,
PIN_REQUIRED, PUK_REQUIRED, PERM_DISABLE state.
While booting up, the phone might observe that the SIM is ABSENT and
therefore bypass the keyguard going straight to the home screen.
Later when the SIM was fully initialized, the phone would revert back
to the lock screen in order to ask for the PIN. The user might
turn on the phone, slide out the keyboard (bypassing the keyguard),
then a few moments later the keyguard would pop up prompting for a PIN.
The user experience could be somewhat jarring, so the keyguard was
changed to handle the transient case differently. While the SIM
was ABSENT, the keyguard would not be automatically bypassed
by opening the keyboard slider. Thus the user would be forced to
manually swipe away the keyguard before interacting with the
device. This would help to cover the time it would take before
the SIM was fully initialized and the keyguard could determine
whether the user would need to be prompted for a SIM PIN or PUK.
To prevent the keyguard from being bypassed automatically, we
hacked up the keyguard so that it would be considered to be in a
secure state while the SIM was ABSENT. It's worth noting that
considering the keyguard to be secure did not confer any
additional security properties to the system whatsoever.
If the user did not have a pattern lock, PIN or password set then
all it would take to access the phone is to swipe away the keyguard.
This old hack was all about devices with slide-out keyboards,
but it had some side-effects. Namely, it assumed that the SIM
ABSENT state was transient. But what about phones that are
being used without a SIM at all?
Considering the keyguard to be secure when the SIM is ABSENT
breaks stuff. In fact, it turns out that making the keyguard
secure isn't really what we want at all. What we want is a way
to prevent the keyguard from being automatically bypassed on
boot when the user opens up a sliding keyboard. But we don't
have those anymore... and in the worst case it was just a little
janky... and what's more, nowadays the keyguard provides useful
features so maybe we shouldn't bypass it anyhow... oh and actually,
I deleted the code that used to bypass the keyguard when the
keyboard slider was opened... so this does nothing useful at all.
Right...
This change removes the old hack thereby ensuring that non-secure
keyguard features like launching the Camera or Assistant or
application features like hands-free voice search will work
correctly on phones without a SIM.
Bug:
6022658
Change-Id: I019d1d8c65c55cbf4d10d4928e1d2b2b242162a6
Daniel Sandler [Thu, 14 Jun 2012 01:00:56 +0000 (18:00 -0700)]
Merge "Remove line3 in big notification unless there's text to show." into jb-dev