77815 Commits

Author SHA1 Message Date
Irfan Sheriff
f03d62007c Fix persisting wifi state on setWifiEnabled() call
When somebody makes a quick setWifiEnabled calls in back to back succession,
we were missing setting the last state because we were only doing that
when wifi was in a particular state from a state machine's perspective.

This was done to handle the interaction b/w airplane and wifi and was
done in the wrong way. That part is now moved to the code which detects
airplane mode changes.

In the longer term, I want to move the whole persisting code as part of
wifi state machine which is more aware of the exact states wifi is in.

Bug: 6504534
Change-Id: I452f3f4efdeb84458dcfd280269e09ffa3844f05
2012-05-17 14:05:56 -07:00
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
alanv
9768832da8 Fix paragraph iterator.
Bug: 6509239
Change-Id: I628d7fd07cda24c66a0fa3f456e0141786e768a5
2012-05-17 13:54:30 -07:00
John Reck
eb11f47353 Tweak show/hide of touch highlight
Bug: 6490959
 Fixes the issue where we will show the old tap highlight
 if webkit isn't quick enough to respond

Change-Id: Icd9864d276b6ad311e3f3dc4deaa7085e3769006
2012-05-17 13:47:39 -07:00
Craig Mautner
a978d9bfef am d51a68b3: Merge "Eliminate deferred surface destruction." into jb-dev
* commit 'd51a68b3d2d347be989b53af1777454f97ad9b46':
  Eliminate deferred surface destruction.
2012-05-17 13:13:56 -07:00
Craig Mautner
d51a68b3d2 Merge "Eliminate deferred surface destruction." into jb-dev 2012-05-17 13:11:50 -07:00
Owen Lin
3bbcbcd5f9 Release the constraint on the requested version.
Allowing to request a region that partially outsides the image.
bug: 5884845

Change-Id: I32344930ab9e2a7f22a706914babb165843e8de7
2012-05-17 12:48:11 -07:00
Owen Lin
f970c2e6de Nvidia's patch for reusing bitmap in image region decoding.
bug: 5884845
Change-Id: I43d4d86ee94591b0b53393dfba13c7cc5c4e428d
2012-05-17 12:48:02 -07:00
Jesse Wilson
0ddb5d3b5d am 9cb376e7: Merge "Change NPN to forbid empty lists of protocols." into jb-dev
* commit '9cb376e792567b5278e0eb418a3aeb848339a283':
  Change NPN to forbid empty lists of protocols.
2012-05-17 11:20:21 -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
1644f0d9ee am 0a95ce9f: Merge "Handle media button events during phone calls and when ringing" into jb-dev
* commit '0a95ce9ffbfa39def9186c736f6b135d251bc810':
  Handle media button events during phone calls and when ringing
2012-05-17 11:17:12 -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
94496d5741 am cb5ed06a: Merge "Hide the expanded status bar view when not in use." into jb-dev
* commit 'cb5ed06ada51f3421b236c4053b6742d5306ace2':
  Hide the expanded status bar view when not in use.
2012-05-17 11:00:52 -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
George Mount
cdd48a70df Update the IME with selection and composing region changes.
Bug 6507332
 The IME must be informed whenever the selection or composing
 region changes so that it can adjust its replacement regions
 and suggestions.

Change-Id: I484b112a2fede6528b0bc506711284b59bd886d1
2012-05-17 10:51:18 -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
91408aae7a am 308904dc: Merge "Refactor WebView accessibility code into a separate class." into jb-dev
* commit '308904dcd01c7bdadd183f262ead408856822a0e':
  Refactor WebView accessibility code into a separate class.
2012-05-17 10:34:19 -07: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
9fd6156829 am a5d17288: Merge "New null (disconnected) RSSI for wifi and mobile." into jb-dev
* commit 'a5d17288ffeba130fe6ee4673f0ad880b3b42fb7':
  New null (disconnected) RSSI for wifi and mobile.
2012-05-17 10:22:36 -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
Jeff Sharkey
70c70530bd Transition from DEV network stats to XT.
When XT stats are available, transition to prefer them over DEV,
since they aren't subject to hardware driver bugs.  Only switches at
the first atomic XT bucket, and adds a Settings.Secure flag to force
back to DEV if needed.  Includes tests to cover transition.

Fix tests where device overlay would change which network types
reflected data usage.  Test both history and summary APIs.  Fixed
collection timestamps to reflect full buckets.

Bug: 6504744
Change-Id: Idd7f3b2fdb064c36547c85c51c214fd938c59b7e
2012-05-17 10:10:39 -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
00e5d8bbc9 am e43e08bb: Merge "Avoid launching dialogs twice from double-clicking a preference." into jb-dev
* commit 'e43e08bb24f1ecb85c2f045ae66799f23588de43':
  Avoid launching dialogs twice from double-clicking a preference.
2012-05-17 10:00:24 -07: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
ec733f094b am d88404d0: Merge "Fix .pls playlist parsing" into jb-dev
* commit 'd88404d0a1991a13cce9d5e55e4314828839311d':
  Fix .pls playlist parsing
2012-05-17 09:55:16 -07:00
Marco Nelissen
d88404d0a1 Merge "Fix .pls playlist parsing" into jb-dev 2012-05-17 09:53:02 -07:00
The Android Automerger
1f71f6420b merge in jb-release history after reset to jb-dev 2012-05-17 09:25:49 -07:00
John Reck
5653f28030 am 76c0c612: Merge "Don\'t send an ontouchmove until slop is exceeded" into jb-dev
* commit '76c0c612cdd5eeef8ff2f7a4478f6320a713d7a3':
  Don't send an ontouchmove until slop is exceeded
2012-05-17 09:24:57 -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
2354206216 am 3c814072: Merge "Only clear the caret when in caret selection mode." into jb-dev
* commit '3c8140723f67b63163ed1a3d6b0569ecbe46068c':
  Only clear the caret when in caret selection mode.
2012-05-17 09:07:58 -07:00
George Mount
45240cb33a am 84c4b08b: Merge changes Ia5729aaf,I91584b7d into jb-dev
* commit '84c4b08bd424151f3fa84029b55573022562fd23':
  Remove selection highlight when replacing/deleting.
  Don't do character add/delete when there is a selection.
2012-05-17 09:07:57 -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
d36bde2494 am 93e3bf12: Merge "Fix up the WebCoreThreadWatchdog" into jb-dev
* commit '93e3bf1260557f2b167c7f7b1e671deb69edec3f':
  Fix up the WebCoreThreadWatchdog
2012-05-17 09:03:02 -07:00
Ben Murdoch
93e3bf1260 Merge "Fix up the WebCoreThreadWatchdog" into jb-dev 2012-05-17 09:00:26 -07:00
The Android Automerger
90f7ae76e2 merge in jb-release history after reset to jb-dev 2012-05-17 07:03:19 -07:00
Chris Wren
125a45ed82 am 468a2ac6: Merge "Don\'t assume digest lines are GONE, we may be recycling them." into jb-dev
* commit '468a2ac63a065680da30f5e796583d53f70f8e25':
  Don't assume digest lines are GONE, we may be recycling them.
2012-05-17 07:02:30 -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
d72953e87b am 614349d7: Merge "Status Bar: Include wifi/mobile state in touch exploration" into jb-dev
* commit '614349d74ee2141006fcd87fb8a16b92619c8d48':
  Status Bar: Include wifi/mobile state in touch exploration
2012-05-17 06:46:59 -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
29da39393e am 2b9eba55: Merge "Not calling startUi() if no longer bound" into jb-dev
* commit '2b9eba553e136c5bb955df281bdafed2b9a4ce92':
  Not calling startUi() if no longer bound
2012-05-17 06:04:33 -07: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
93eb512687 am 6a160984: Merge changes I3b129e4b,I489718a8 into jb-dev
* commit '6a16098437665c3aab3e9980359e140b8a47858b':
  Black out the status bar when the shade comes down.
  Punch up the date contrast.
2012-05-16 22:02:39 -07: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
c7e11cf36e am 40013655: Support long-press on media keys with screen off.
* commit '40013655dea9427d0b3bc0250658c9923443963c':
  Support long-press on media keys with screen off.
2012-05-16 21:44:01 -07:00