Commit Graph

1649 Commits

Author SHA1 Message Date
Daniel Sandler
59912d40ba am b8145002: am 9f2532bf: Merge "Reduce false swipe-closed gestures in status bar panels." into jb-mr1.1-dev
* commit 'b814500269324bc24de13f974f9564ff176a578f':
  Reduce false swipe-closed gestures in status bar panels.
2012-12-04 06:03:18 -08:00
Daniel Sandler
9f2532bf12 Merge "Reduce false swipe-closed gestures in status bar panels." into jb-mr1.1-dev 2012-12-04 05:33:16 -08:00
Daniel Sandler
f80e1711ea am 99931d97: am f8748809: Merge "Show alarm tile for the current user." into jb-mr1.1-dev
* commit '99931d97f7da8460e5d3696069bbb2cbda6b0d2a':
  Show alarm tile for the current user.
2012-12-03 10:26:18 -08:00
Daniel Sandler
f87488095e Merge "Show alarm tile for the current user." into jb-mr1.1-dev 2012-12-03 10:21:15 -08:00
Daniel Sandler
0f92a8083d Show alarm tile for the current user.
We were already refreshing the tile on user switch, but we
were only pulling the information (and observing changes)
for the owner.

Bug: 7596329
Change-Id: I33959af405bc79037b5b1321631d993bea65772f
2012-12-03 12:59:26 -05:00
Daniel Sandler
e83665284a am 5046ae56: Merge "framework: fix notification icons not animating till ticker is updated"
* commit '5046ae56675b5e81bd7160f12709d609d8b4c19c':
  framework: fix notification icons not animating till ticker is updated
2012-12-03 08:11:37 -08:00
Daniel Sandler
025b43cd51 Merge "Fix rounding error when drawing panel handles." into jb-mr1.1-dev 2012-12-03 07:00:59 -08:00
Daniel Bateman
258384aff2 framework: fix notification icons not animating till ticker is updated
Fixes Android issue #15657

Change-Id: If3bb8693d99e3415bcf0fa9adadee5c1bdbb990d
2012-11-30 16:28:54 -08:00
Daniel Sandler
076324ae19 Fix rounding error when drawing panel handles.
Bug: 7649037
Change-Id: If8d9fa5f3852729207c31c95cfd68ef54ff47d7d
2012-11-30 16:14:21 -05:00
Daniel Sandler
6f7654d665 Reduce false swipe-closed gestures in status bar panels.
VelocityTracker is a powerful tool---too powerful, in this
case, because many devices (I'm looking at you, Nexus 7)
have touchscreens that report total garbage on takeoff and
landing.

PanelView now uses its own incredibly crude velocity tracker
called FlingTracker, which implements a short sliding window
of the last 8 motion events (7 intervals) over which touch
velocity is averaged. There's also a little bias toward more
recent touch events so that the overall velocity of small
circular gestures will tend to favor the exit tangent.

The end result is a primitive low-pass filter on touch
velocity that should help us avoid situations where one (or
even two!) stray MotionEvents at the end of a gesture won't
invalidate the overall thrust.

Bug: 7422342
Change-Id: Idae38d1957727e400493324af4eee357ba5baa27
2012-11-30 15:28:38 -05:00
Daniel Sandler
0a6620e861 Merge "Suppress quick settings if setup has not been completed." into jb-mr1.1-dev 2012-11-30 10:05:01 -08:00
Daniel Sandler
386165a3ae Merge "Only show "charging" if the battery is really charging." into jb-mr1.1-dev 2012-11-30 07:27:36 -08:00
Daniel Sandler
a8ef3b044e Suppress quick settings if setup has not been completed.
The button was already hidden, but there are lots of other
ways to get into QS that should check for USER_SETUP.

Bug: 7638795
Change-Id: Ib6c48fc02e833670768e7dc76e25c38097b88c18
2012-11-29 16:22:37 -05:00
Daniel Sandler
fe0e1e445f Only show "charging" if the battery is really charging.
If there's a charge problem (battery health/temperature out
of spec, or low charging current), the lockscreen and status
bar should not indicate that charging is occurring.

(Previously we showed "Charging" and a lightning bolt any
time the device was plugged in.)

Bug: 7509976
Change-Id: I27ec0e2cec1307fbc6ef262dd5181a4db6d3bed0
2012-11-29 15:11:50 -05:00
Daniel Sandler
154e2d7d2c Merge "Flush the clock format when the locale changes." into jb-mr1.1-dev 2012-11-29 11:20:25 -08:00
Daniel Sandler
43b23c6c69 Flush the clock format when the locale changes.
Bug: 7569120
Change-Id: If85ff36c7fac8b07f10b7077afd23255a145db1c
2012-11-29 11:35:02 -05:00
Dianne Hackborn
68e0da7e39 Merge "Quiet down a lot of logging." into jb-mr1.1-dev 2012-11-28 15:03:39 -08:00
Dianne Hackborn
40e9f2922c Quiet down a lot of logging.
Also fix a little problem where the USER_STARTED broadcasts
were not being sent as ordered broadcasts(!).

Change-Id: I3aa3e0a9b3900967cdd2d115ee103371b0a50c41
2012-11-27 19:12:23 -08:00
Daniel Sandler
5bff551710 Merge "Refresh the status bar clock format on user switch." into jb-mr1.1-dev 2012-11-27 18:12:47 -08:00
Michael Jurka
09a526faf3 Merge "Fix bug: swiped apps in Recents come back on rotate" into jb-mr1.1-dev 2012-11-27 14:49:41 -08:00
Winson Chung
2b847c3933 Merge "Removing unecessary additional lock metadata from QuickSettings user tile." into jb-mr1.1-dev 2012-11-26 16:20:23 -08:00
Michael Jurka
ab972a6dce Merge "Fix bug where icon animation is sometimes skipped" into jb-mr1.1-dev 2012-11-26 16:15:20 -08:00
Michael Jurka
e57922cc7d Fix bug: swiped apps in Recents come back on rotate
Bug: 7409398
2012-11-26 16:05:27 -08:00
Winson Chung
f7614fc744 Removing unecessary additional lock metadata from QuickSettings user tile.
Change-Id: I89ec94385eb3cdd46ad6942bf8989fb04d5c0370
2012-11-26 14:44:03 -08:00
Daniel Sandler
53d9659978 Merge "Allow long-press on Wifi and Bluetooth tiles to toggle." into jb-mr1.1-dev 2012-11-26 11:33:06 -08:00
Michael Jurka
d894c8cdd1 Fix bug where icon animation is sometimes skipped
Bug: 7406230
Bug: 7406304

Change-Id: I9058acffa6587a5f8e757f1031750a8ba578c635
2012-11-21 11:55:23 -08:00
Daniel Sandler
ce4f5e5c70 Refresh the status bar clock format on user switch.
Bug: 7490931
Change-Id: Ifad46ec7cee40aa5a622ee2621fc425835366e32
2012-11-19 14:47:18 -05:00
Daniel Sandler
5052805cc0 Show mobile data RSSI for devices that support it.
The new test is more general, allowing mobile RSSI to be
shown on devices without voice telephony.

Bug: 7490266
Change-Id: Ib5b243c0d92e74fe4385989c3a6c16edd00a9ec9
2012-11-19 13:33:44 -05:00
Daniel Sandler
ab51002847 Allow long-press on Wifi and Bluetooth tiles to toggle.
Bug: 7395607
Change-Id: Ia929dc2cb12eef221fe6f0214ec44c3dc98b0597
2012-11-16 11:59:24 -05:00
Dianne Hackborn
a46a74fcd6 Merge "Remove extraneous logs." into jb-mr1-dev 2012-11-08 13:16:10 -08:00
Dianne Hackborn
7ff30113de Remove extraneous logs.
Change-Id: I4c47d36748de91bd6fddc419afbf59552bf63e9a
2012-11-08 13:13:48 -08:00
John Spurlock
7a73344bbe Minimal fix for stuck google now.
Bug:7500409
Change-Id: I1570d72e08fbe520ac07eed2ee40b6571fa1fe3c
2012-11-08 09:08:14 -05:00
Jim Miller
bac6d4bf3c Fix bug where SearchPanel wasn't launching assist intent when keyguard is gone.
Fixes bug 7499778

Change-Id: I450755b8839717f0f13241cb57f0015cf78569d9
2012-11-08 01:27:09 -08:00
Jim Miller
4eeb4f664a Add mechanism to kick keyguard to show the assistant
Fixes bug 7499778

Change-Id: Ic9ea514feb489feeee6716f40bdb9792842f9515
2012-11-08 00:39:04 -08:00
John Spurlock
506fd3b02e Merge "Low battery dialog should use UserHandle.CURRENT." into jb-mr1-dev 2012-11-07 11:31:30 -08:00
John Spurlock
f55769fefa Low battery dialog should use UserHandle.CURRENT.
Bug:7493313
Change-Id: Ie753633c550e4ce679fbb6f9e0c6adf56392ec87
2012-11-07 11:50:33 -05:00
Daniel Sandler
207d548ccf Show the assist ring on center-button longpress on lockscreen.
Bug: 7480028
Change-Id: I4c8013e984c2591faf3bc8fe2048abf69d545b6c
2012-11-06 16:23:43 -05:00
John Spurlock
a9b468248d Disable disable back if using an alternate back icon.
This enables the IME down chevron even if back would otherwise
be disabled.

Bug:7453424
Change-Id: Ia007df256124c617b86983bfe6958f790bd6a544
2012-11-02 10:42:39 -04:00
Amith Yamasani
7277d5d97f QS uses nickname for multiuser and profile name for singleuser.
Bug: 7400662
Change-Id: I3299ee70acaa7341ec11b4774426e22182ffd170
2012-10-30 17:53:14 -07:00
Daniel Sandler
50e1f9eb93 Merge "Final icon for (Day)dreams." into jb-mr1-dev 2012-10-26 12:29:13 -07:00
Daniel Sandler
b055aa8ec0 Final icon for (Day)dreams.
Bug: 7395321
Change-Id: I20ec252a1bf69664a6687016d281ad680d76a48f
2012-10-26 15:13:57 -04:00
Chet Haase
b3975088b6 am 9023cf91: Merge "Set wallpaper bitmap reference to null before reloading" into jb-mr1-dev
* commit '9023cf91018c75a179d04256fd4e306065528117':
  Set wallpaper bitmap reference to null before reloading
2012-10-25 12:23:20 -07:00
Chet Haase
9023cf9101 Merge "Set wallpaper bitmap reference to null before reloading" into jb-mr1-dev 2012-10-25 12:19:34 -07:00
Chet Haase
589a6af173 Set wallpaper bitmap reference to null before reloading
Give the GC a chance to collect the current bitmap if it needs to,
as it allocates memory for the next one. This helps avoid OOM situations
that can sometimes occur in extreme circumstances (huge bitmaps)

Also set the default_wallpaper to the right default size.

Issue #7352961 Wallpaper edge is cut-off while scrolling through home page

Change-Id: If76b55061d04b29af7f66a6162e307b8b53bf4ae
2012-10-25 11:57:09 -07:00
Daniel Sandler
c3fc322286 Fix Google Now on lockscreen.
We can't make the navbar slippery anymore if lockscreen is
going to intercept all the touches. :)

Bug: 7413021
Change-Id: I1658262e43c37d0b1a554cda434ac43c0a0a86c0
2012-10-25 13:28:33 -04:00
Daniel Sandler
be2cf3206e Be a little more lenient with panel-open gestures.
The code would not consider any drag that did not complete
the "peek" distance (the distance the panel opens when you
press and hold on the status bar; on tablets this is
statusbarheight + closehandleheight, and on phones it's
headerheight + closehandleheight) as a candidate for a
fling, and set that drag's effective velocity to 0.

This CL just removes that check. Now a fling must meet the
minimum linear velocity and minimum Y distance thresholds
(100dp/sec and 20dp, respectively) to change the position of
the panel (closed->open or open->closed).

Bug: 7390976
Change-Id: Ia0c2450f9fdf3f27b890aab240a155dad1ab052f
2012-10-24 15:23:42 -04:00
Daniel Sandler
50a531337e Missing copyright headers.
Change-Id: I0fac062ffa52fc21f32d25d3f0a38e263e701c46
2012-10-24 15:02:27 -04:00
Daniel Sandler
1a3bdd5097 Fix NPE.
Bug: 7401286
Change-Id: I45334c4b2263bb611952b7dd949f5df98556377d
2012-10-23 19:21:20 -04:00
Daniel Sandler
365ece1dd0 Merge "Dreams/Sleep Mode is now Daydreams." into jb-mr1-dev 2012-10-23 10:31:23 -07:00
Daniel Sandler
0058f4ed50 Merge "Reset ExpandHelper when the panel is collapsed." into jb-mr1-dev 2012-10-23 08:34:57 -07:00