76717 Commits

Author SHA1 Message Date
Jeff Brown
ab624c2fd4 Use FLAG_LONG_PRESS for headset long press interactions.
Handle canceled key events correctly and don't synthesize
key events in that case.

Unfortunately, the state machine was confused by some sequences
of key events that it might receive from the input dispatcher
when new activities take focus during a long-press on the headset key.
The audio service may receive a cancel event intended for the old
window, followed by a repeated down and finally an up for the new window.
Simplified this down to just two booleans.

Bug: 6484717
Change-Id: I9587d0a5e282419ef4d7c17665940682aacea96a
2012-05-17 14:00:34 -07:00
Jesse Wilson
9cb376e792 Merge "Change NPN to forbid empty lists of protocols." into jb-dev 2012-05-17 11:18:33 -07:00
Jean-Michel Trivi
0a95ce9ffb Merge "Handle media button events during phone calls and when ringing" into jb-dev 2012-05-17 11:14:56 -07:00
Daniel Sandler
cb5ed06ada Merge "Hide the expanded status bar view when not in use." into jb-dev 2012-05-17 10:55:58 -07:00
Jesse Wilson
2108ead7f1 Change NPN to forbid empty lists of protocols.
Bug: http://b/6438423
Change-Id: Ie89220e5bc219396c15dbe1feaa2f74fa1b243eb
2012-05-17 13:46:17 -04:00
Jean-Michel Trivi
722b808662 Handle media button events during phone calls and when ringing
Add functionality in AudioManager/AudioService to register a
 media button receiver for telephony that, when registered, gets
 priority for media button key events during a phone call or
 when ringing.

Bug 6484717

Change-Id: I0835fc02cb24d06ca59af5a32c3ba0ae93e54442
2012-05-17 10:38:36 -07:00
Daniel Sandler
3ac558b6bf Hide the expanded status bar view when not in use.
Bug: 6511388
Change-Id: I8df11f80871cbd739712179034e04f49bb6b0d9d
2012-05-17 13:38:11 -04:00
Svetoslav Ganov
308904dcd0 Merge "Refactor WebView accessibility code into a separate class." into jb-dev 2012-05-17 10:32:27 -07:00
Daniel Sandler
a5d17288ff Merge "New null (disconnected) RSSI for wifi and mobile." into jb-dev 2012-05-17 10:20:40 -07:00
Daniel Sandler
d4b7e92744 New null (disconnected) RSSI for wifi and mobile.
On wifi-only devices we now show the null wifi RSSI if wifi
is enabled but not connected.

Bug: 6449811
Change-Id: Ib0cb11bcbef86d44ec633690806cff38796ffc3e
2012-05-17 13:02:50 -04:00
Amith Yamasani
e43e08bb24 Merge "Avoid launching dialogs twice from double-clicking a preference." into jb-dev 2012-05-17 09:57:38 -07:00
Marco Nelissen
d88404d0a1 Merge "Fix .pls playlist parsing" into jb-dev 2012-05-17 09:53:02 -07:00
John Reck
76c0c612cd Merge "Don't send an ontouchmove until slop is exceeded" into jb-dev 2012-05-17 09:22:06 -07:00
George Mount
3c8140723f Merge "Only clear the caret when in caret selection mode." into jb-dev 2012-05-17 09:05:37 -07:00
George Mount
84c4b08bd4 Merge changes Ia5729aaf,I91584b7d into jb-dev
* changes:
  Remove selection highlight when replacing/deleting.
  Don't do character add/delete when there is a selection.
2012-05-17 09:05:30 -07:00
Ben Murdoch
93e3bf1260 Merge "Fix up the WebCoreThreadWatchdog" into jb-dev 2012-05-17 09:00:26 -07:00
Chris Wren
468a2ac63a Merge "Don't assume digest lines are GONE, we may be recycling them." into jb-dev 2012-05-17 07:00:13 -07:00
Daniel Sandler
614349d74e Merge "Status Bar: Include wifi/mobile state in touch exploration" into jb-dev 2012-05-17 06:45:15 -07:00
Chris Wren
4ed80d581c Don't assume digest lines are GONE, we may be recycling them.
Bug: 6500945
Change-Id: I0f01ccdde25bebb8335f0d34408877b895d286ff
2012-05-17 09:35:34 -04:00
Brian Colonna
2b9eba553e Merge "Not calling startUi() if no longer bound" into jb-dev 2012-05-17 06:02:09 -07:00
Ben Murdoch
74d37b9653 Fix up the WebCoreThreadWatchdog
Make the WebCoreWatchdog aware of the WebViews it is monitoring
(rather than the Activity context which may become stale) and
ensure that the code for the prompt dialog is run on the UI
thread.

Bug: 6420310
Change-Id: Ied003938edb04858c85bcc2491c4b2c4c0ede6eb
2012-05-17 12:38:07 +01:00
Daniel Sandler
6a16098437 Merge changes I3b129e4b,I489718a8 into jb-dev
* changes:
  Black out the status bar when the shade comes down.
  Punch up the date contrast.
2012-05-16 22:00:51 -07:00
Daniel Sandler
8e18dc7757 Black out the status bar when the shade comes down.
Also move the shade up and forward to overlap the (now
empty) status bar.

As a side effect, DISABLE_SYSTEM_INFO now works for phones.

Bug: 6418617
Change-Id: I3b129e4bb26d3aba55403bf03baf8f4c8ad0ff46
2012-05-17 00:57:11 -04:00
Jeff Brown
40013655de Support long-press on media keys with screen off.
Bug: 3204066
Change-Id: I3ea4b6ceb853483b9e103de62b2ef0cf48b3dff1
2012-05-16 21:39:05 -07:00
Daniel Sandler
8bbbd3fc12 Punch up the date contrast.
Bug: 6499757
Change-Id: I489718a8d167d30465bc16cfc3167d8d073efd2c
2012-05-16 23:38:50 -04:00
John Reck
94c478e9e5 Don't send an ontouchmove until slop is exceeded
Bug: 6490959

Change-Id: I0f447f65c84f9ce208ce52caba05e7dcb2f76bc5
2012-05-16 20:34:48 -07:00
Romain Guy
1b283b4e7f Merge "Fix TextureView OpenGL sample" into jb-dev 2012-05-16 20:04:46 -07:00
alanv
525823a754 Refactor WebView accessibility code into a separate class.
Bug: 5932640
Change-Id: I52ab57f51c5904cbcf56307f17f406b2a30d6b91
2012-05-16 20:01:51 -07:00
Romain Guy
4c43f66d06 Fix TextureView OpenGL sample
The sample was doing something dumb: instead of binding the texture unit
to the shader's sampler, it was binding the texture name. Oops.

Change-Id: I13450dacbbd2dad362a2573aebb95e8eb87b25f0
2012-05-16 20:01:17 -07:00
Dianne Hackborn
20c0cdbbf7 Merge "Have the stable layout take into account the window's fullscreen flag." into jb-dev 2012-05-16 19:41:09 -07:00
Svetoslav Ganov
a4c1b0a7ca Merge "Fixing the build for real." into jb-dev 2012-05-16 19:25:59 -07:00
Svetoslav Ganov
1e7456ba74 Fixing the build for real.
Change-Id: I792d029c7fff4d96fbe238ff4b3f268cb8603b95
2012-05-16 19:15:34 -07:00
Brian Colonna
c266070aec Not calling startUi() if no longer bound
After the bind to the FUL service is complete, an
onServiceConnected() callback is received.  This callback is
asynchronous - bindService() does not block while we are waiting for
the service to finish binding.  Therefore, when rapidly turning the
screen on and off, it is possible to call bindService() and then call
unbindService() before the onServiceConnected() callback is received.
When onServiceConnected() is received, startUi() is called.  If the
service is no longer bound, a runtime restart occurs when calling
startUi().

Note that onServiceConnected() actually has its work done via a
handler.  The delay of calling the handler increases the possibility
of unbindService() being called before trying to call startUi().  But
since this problem still happens without using the handler,
eliminating using the handler would not solve the problem and would
just create the problems that come with performing operations on
different threads since onServiceConnected() is not called on the main
thread.

Also note that a new instance of FaceUnlock is created in
LockPatternKeyguardView with each iteration.  So, if we bind/stop/bind
before getting onServiceConnected(), the second bind happens in a new
instance of FaceUnlock and therefore does not lead to a problem when
onServiceConnected() returns as a result of the first bind.

This fixes some occurrences of bug 6409767.  However, this fixes the
problem when turned the device on and off rapidly.  It seems there
are some reports of bug 6409767 where this is not the case, so I
can't be sure this has any affect on those cases.

This change also cleans up some debugging and modifies other
debugging to try to get just the information that is useful for
tracking down the bug.

Change-Id: Ifa59107b9974acaa8a18b74b5d47e4cf3a794b8e
2012-05-16 22:11:30 -04:00
Kenny Root
11e123f768 Merge "Check system app before removal" into jb-dev 2012-05-16 18:59:04 -07:00
Svetoslav Ganov
e54c5f1365 Merge "Exposing some accessiblity actions only for enabled views." into jb-dev 2012-05-16 18:43:31 -07:00
Svetoslav Ganov
56ee04e120 Merge "Adding some missing files." into jb-dev 2012-05-16 18:31:36 -07:00
Svetoslav Ganov
e63049b838 Adding some missing files.
Change-Id: I991d8bf815a7e57dc1cbad384e15aa21bef0c7c7
2012-05-16 18:27:34 -07:00
Jim Miller
5de47b6ad9 Fix 6398209: Fix glitch in chevron animation in MultiWaveView
This fixes a glitch caused by clearing the array of chevrons before
stopping the associated animations. The old animations were allowed to
complete which caused chevrons to move around erratically because they
were being controlled by multiple animators.

Change-Id: Iec1450dd83077a721930eb3cac19a621e7356980
2012-05-16 17:56:59 -07:00
Svetoslav Ganov
824aa860cd Merge "Accessibility service needs to request permission to be bound to." into jb-dev 2012-05-16 17:52:59 -07:00
Svetoslav Ganov
fb1e80a247 Exposing some accessiblity actions only for enabled views.
1. Some accessibility actions should not be performed on disabled
   views. For example, scrolling should not be permitted while
   accessibility focus should be. Made a quick pass over the
   actions we expose now.

Change-Id: I36626dfbc0d2f480309a910f58f1de64e9e05675
2012-05-16 17:51:52 -07:00
Jim Miller
214fc5e61e Merge "Fix 6508369: Add new resources to fix chevron direction on 720dp device" into jb-dev 2012-05-16 17:50:03 -07:00
Jim Miller
ad67a96a9d Fix 6508369: Add new resources to fix chevron direction on 720dp device
Change-Id: Iecf11157327565f8ca6653cf4952198d2ddcc043
2012-05-16 17:48:00 -07:00
Adam Powell
648337b3a8 Merge "Fix a bug where late-invalidating views with animations would be held for too long by ViewRootImpl" into jb-dev 2012-05-16 17:46:10 -07:00
Carlos Valdivia
864019503c Merge "Streamline the logic to add account." into jb-dev 2012-05-16 17:44:34 -07:00
Adam Powell
7fde8e2ba2 Merge "Be more tolerant in TaskStackBuilder" into jb-dev 2012-05-16 17:44:25 -07:00
Carlos Valdivia
cf0a881f1c Streamline the logic to add account.
This cl ensures that we immediately route the user to the add account
activity if they don't have an account and their is only one relevant
account type. Also reordered the setContent logic to reduce flicker.

Note that as of this CL there is still some flicker remaining when
launching G+ without an account. But it appears to be fixed in other
apps.

Bug: 6455975
Change-Id: I91e33b4fb9618a31765b4a8651334b1c52640828
2012-05-16 17:43:17 -07:00
Jeff Brown
33ebe8c8c2 Merge "Add systrace method tags for measure and layout." into jb-dev 2012-05-16 17:40:03 -07:00
Jeff Brown
6dc23b8e70 Merge "Add a label for the new video trace tag." into jb-dev 2012-05-16 17:39:29 -07:00
John Reck
b27a4f9b0e Merge "Remove custom scrollbar logic" into jb-dev 2012-05-16 17:35:08 -07:00
Adam Powell
3e3c4ee047 Fix a bug where late-invalidating views with animations would be held
for too long by ViewRootImpl

Change-Id: I1e32bf2683b50f8834f215a753f881b5d4b8dbc9
2012-05-16 17:34:21 -07:00