7191 Commits

Author SHA1 Message Date
Jason Monk
1206321f38 Fix crash in BluetoothControllerImpl
Bug: 18717777
Change-Id: I396aa8b517054b1fd4c8fea7f0343f138cb261a7
2014-12-11 13:26:01 -05:00
Jason Monk
4630c89a76 BluetoothControllerImpl: track bluetooth better
Match settings behavior better:
 - Get connection info from profiles so it is for all devices
   (CONNECTION_STATE_CHANGED only updates one)
 - Disconnect from all known connections so that 'x' does something
 - When device is disconnected without CONNECTION_STATE_CHANGED
   then find a new 'last' device that is connected
 - Listen to a bunch more broadcasts to make sure info is always
   up to date.

Bug: 18210666
Bug: 18638010
Change-Id: Ie003b67bbdd0d452b7472c644d90bca929e5cd29
2014-12-10 10:32:43 -05:00
Jeff Davidson
699faa1d8c Merge "Show "Connected via Wi-Fi assistant" for ephemeral networks." into lmp-mr1-dev 2014-12-06 02:07:00 +00:00
Sanket Padawe
0c1a5bea2e Merge "Doing provisioning check for wifi tethering from SystemUI" into lmp-mr1-dev 2014-12-05 20:55:52 +00:00
Chris Wren
0c5ec0e0db Merge "Avoid race condition in heads up snooze code path." into lmp-mr1-dev 2014-12-05 20:22:11 +00:00
Dan Sandler
4ca9d738fa Merge "RTL support for Lollipop Land." into lmp-mr1-dev 2014-12-05 19:36:39 +00:00
Chris Wren
c11baeba20 Avoid race condition in heads up snooze code path.
The user can still snooze the heads up as its in the process of timing
out.  In this case, mHeadsUp is already null.  We save the package
name so that we can still snooze the package.

Bug: 18639224
Change-Id: I9bcce99a5c912e70a6856b277b61adab9cdcbc33
2014-12-05 13:53:23 -05:00
Dan Sandler
7792b714b6 Merge "Don't forget to listen for USER_ALL broadcasts." into lmp-mr1-dev 2014-12-05 14:27:27 +00:00
Justin Harrison
cff6d450dc Merge "Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current user." into lmp-mr1-dev 2014-12-05 07:42:59 +00:00
Dan Sandler
e63ba4b03d Don't forget to listen for USER_ALL broadcasts.
The ActivityManager.closeSystemDialogs() call (used by,
among other things, the home button) broadcasts
ACTION_CLOSE_SYSTEM_DIALOGS for UserHandle.USER_ALL, rather
than any one user.

Bug: 18629414
Change-Id: I89bfa3f556866e1b27987be2753ce83fd0313998
2014-12-05 00:26:24 -05:00
Sanket Padawe
a2bf987b74 Doing provisioning check for wifi tethering from SystemUI
+ Calling activity which calls provisioning app only if provisioning
is needed.
+ Hiding Hotspot tile from quick settings when screen is locked.

Bug: 18368949
Change-Id: I5b92a7f2d46c8b5d9b323d6a5d49315694c599f7
2014-12-04 13:41:17 -08:00
Jeff Davidson
7585c56fc8 Show "Connected via Wi-Fi assistant" for ephemeral networks.
Bug: 18525241
Change-Id: I0d2146ab47b82d32c50b2ef883f176a6b6066713
2014-12-04 13:17:10 -08:00
Dan Sandler
f5ba6bdafa RTL support for Lollipop Land.
Since the game randomly flips horizontally anyway, forcing
the game view to LTR fixes the coordinate math without
affecting gameplay. (The score view did need to move to
start instead of left, however.)

Bug: 18628150
Change-Id: I7cf8bd1e2b9a2316d30e17a9251173598c687c2b
2014-12-04 16:07:30 -05:00
Justin Harrison
70941f203c Merge "Revert "Revert "Improve fling physics for recents""" into lmp-mr1-dev 2014-12-04 20:05:41 +00:00
Justin Harrison
31d9837284 Revert "Revert "Improve fling physics for recents""
This is now BC-triaged, so reverting the revert.

This reverts commit 3f7dac5a1ccf5d464070c1a067d1d50741bdbd0e.

Change-Id: Iae9ffc74a44918a83d9cd4dfb7011810c770e135
2014-12-04 20:05:21 +00:00
Christoph Studer
391232da08 Merge "Log the state of the notification shade" into lmp-mr1-dev 2014-12-04 18:09:12 +00:00
Justin Harrison
21af21ca07 Merge "Revert "Improve fling physics for recents"" into lmp-mr1-dev 2014-12-04 17:37:55 +00:00
Justin Harrison
3f7dac5a1c Revert "Improve fling physics for recents"
This reverts commit 00d947bda0b9a2ea133dfd7b0e445245a0e2c23c.

Change-Id: I3d6696227a381d232baed8fdbcbe34d3c4976ebe
2014-12-04 17:37:24 +00:00
Jorim Jaggi
54daab1009 Merge "Improve fling physics for recents" into lmp-mr1-dev 2014-12-04 15:18:18 +00:00
Jorim Jaggi
47faf69cfd Merge "Fix rounded corners in bottom QS panel." into lmp-mr1-dev 2014-12-04 15:17:03 +00:00
Benjamin Franz
4b9f8ede4e Ensure that the USER_PRESENT_INTENT is sent to all profiles of the current user.
This intent is needed by Smart Lock agents to check whether a given user is
active on the device.

Bug: 18530771
Change-Id: I5d460cb0cfa8ec4f7952702a3d25d089db78a50f
2014-12-04 11:20:13 +00:00
Geoff Mendal
cc7c68b548 Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-12-04 05:32:21 +00:00
John Spurlock
32b61ab28f Merge "Doze: Don't block pickup pulses on a proximity check." into lmp-mr1-dev 2014-12-04 03:03:22 +00:00
Winson Chung
ba1307b2b4 Merge changes Ib255e49f,Ifc33cdf7 into lmp-mr1-dev
* changes:
  Ensuring that the alpha and translation animation durations are the same. (Bug 18609321)
  Fix crash when user is both scrolling and tabbing through Recents. (Bug 18552776)
2014-12-04 00:07:57 +00:00
Winson Chung
fc33cdf71d Fix crash when user is both scrolling and tabbing through Recents. (Bug 18552776) 2014-12-03 13:16:48 -08:00
John Spurlock
621afac810 Doze: Don't block pickup pulses on a proximity check.
Pulse immediately, assuming the pickup sensor will not fire
if prox=near.  Perform a non-blocking additional proximity check
in these cases purely to collect verification diagnostics.

Also tweak the interpolator for pickup pulses to ramp up more
quickly.

Bug: 18373928
Change-Id: I8607f4b37435722e293db741c273914183cec7be
2014-12-03 16:04:28 -05:00
John Spurlock
cdf7f98487 Merge "Doze: Fast path for pickup pulses." into lmp-mr1-dev 2014-12-03 19:49:26 +00:00
Geoff Mendal
c629d3e10e Import translations. DO NOT MERGE
Change-Id: I642b3b429f66a22dcbbdfc016211b08c77b230f1
Auto-generated-cl: translation import
2014-12-03 11:39:03 -08:00
John Spurlock
f5d250deec Doze: Fast path for pickup pulses.
Decrease the pulse duration when pulsing for pickup.
Add an option to skip the proximity check entirely, but don't
turn it on yet.

Bug: 18373928
Change-Id: I54f8dee004229193a18d488759bf797a16470cab
2014-12-03 13:48:28 -05:00
Winson Chung
de9848c641 Merge "Initial changes to add callback on task stack changes. (Bug 17672056, Bug 18291345)" into lmp-mr1-dev 2014-12-03 18:10:38 +00:00
Adrian Roos
f235edf215 Merge "Refresh user list a little more eagerly" into lmp-mr1-dev 2014-12-03 17:13:56 +00:00
Jason Monk
8d72046b9b Merge "Don't show no sim icon on wifi devices" into lmp-mr1-dev 2014-12-03 14:12:25 +00:00
Christoph Studer
c10416f0b9 Log the state of the notification shade
Bug: 18308441
Change-Id: Iade14a2bf0d486ce9438e41d6eb7830bfdbbb653
2014-12-03 13:50:19 +01:00
Daniel Sandler
195c438883 Fixing bugs in the LLand.
less garish hue on the bugdroid
       :
  +----:-----------+
  | |  : |    Θ.......... improved pop styles
  | |  : @    |    |
  | O  A      |....... occasionally there was no gap to fly
  |      0    O    |   through, creating an unintentional
  | @    |    |    |   commentary on the futility of it all
  +----------------+
     :      :
     :      : animation could continue
     :        after activity pause, sapping
     :        precious cycles
     :
   failure is now more visceral

Bug: 17931806
Change-Id: Iea9bd88e340beb3a0ca310db071ec9f6ec719a33
2014-12-03 11:53:29 +00:00
Lorenzo Colitti
dc99c50427 Merge "Make StatusBar display all default networks." into lmp-mr1-dev 2014-12-03 06:58:10 +00:00
Sanket Padawe
b13c12f58d Merge "Call entitlement on clicking tethering tile in quick settings." into lmp-mr1-dev 2014-12-03 01:33:43 +00:00
Baligh Uddin
91426aa292 Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-12-03 01:25:37 +00:00
Baligh Uddin
053b538ab2 Import translations. DO NOT MERGE
Change-Id: Id585c5bed5366430b476445a1806748894dd34ac
Auto-generated-cl: translation import
2014-12-02 16:45:14 -08:00
Dan Sandler
dfb39ce332 Merge "Turn off DEBUG_GESTURES" into lmp-mr1-dev 2014-12-03 00:22:19 +00:00
Winson Chung
740c3ac782 Initial changes to add callback on task stack changes. (Bug 17672056, Bug 18291345)
Add a listener to listen for changes in the Task stacks to preload thumbnails from the
system.  In addition, reduce the amount of synchronous work done in activity creation
and first measure/layout passes.

Change-Id: I8bd9155d7a05e89c190a20429acff69a17808208
2014-12-02 15:34:20 -08:00
Christoph Studer
934025e8d7 Turn off DEBUG_GESTURES
Stop spamming the logs.

Bug: 18584495
Change-Id: Icc7337005a0efc0590b502e93c459f05f0a9ace9
2014-12-02 22:12:50 +00:00
Jorim Jaggi
dad13577e5 Merge "Update dark mode on notifications when content is updated" into lmp-mr1-dev 2014-12-02 19:35:42 +00:00
Christoph Studer
27ef018846 Merge "NoMan/SysUI: Clear LEDs only when entering the shade" into lmp-mr1-dev 2014-12-02 18:49:51 +00:00
Jason Monk
21d05a08d8 Don't show no sim icon on wifi devices
Bug: 18222975
Change-Id: I82143ad23fa6c4dc5ed57d682186e1bb977a6fe1
2014-12-02 13:43:43 -05:00
Lorenzo Colitti
403aa2684e Make StatusBar display all default networks.
The basic principle is: if an app's traffic could possibly go
over a network without the app using the multinetwork APIs (hence
"by default"), then the status bar should show that network's
connectivity.

In the normal case, app traffic only goes over the system's default
network connection, so that's the only network returned.

With a VPN in force, some app traffic may go into the VPN, and thus over
whatever underlying networks the VPN specifies, while other app traffic
may go over the system default network (e.g.: a split-tunnel VPN, or an
app disallowed by the VPN), so the set of networks returned includes the
VPN's underlying networks and the system default.

Specifically:

1. Add a NETWORK_CAPABILITY_VALIDATED bit to NetworkCapabilities.
2. Add a hidden API to retrieve the NetworkCapabilities of
   all default networks for a given macro-user.
3. Modify the status bar code that used getActiveNetworkInfo to
   determine which network was active, and make it consider all
   validated networks instead.
4. Because the set of active networks depends on which VPN app
   the user is running, make the status bar re-evaluate the
   networking situation when the active user changes.

Bug: 17460017
Change-Id: Ie4965f35fb5936b088e6060ee06e362c22297ab2
2014-12-02 10:27:05 -08:00
Christoph Studer
1f32c65697 NoMan/SysUI: Clear LEDs only when entering the shade
Don't clear notification LEDs when seeing notifications on the
lockscreen.

Also fix a bug where the LED didn't continue flashing after
the screen turned off.

For devices with doze capability, ensure that the LED continuing
to flash after screen off doesn't cause an immediate pulses, but
delay the first pulse by 10s.

Bug: 15449039
Change-Id: Id34d51a2c91ceaf069e49add1ab690bb855f9638
2014-12-02 16:52:13 +01:00
Jason Monk
b574627ebc SysUI: Actual MSIM status bar support
Expand SignalClusterView and NetworkController to handle multiple
SIMs.  It does this by creating multiple MobileSignalControllers
for each of the active subscriptions on the device.

Also some minor changes for followup on the NetworkController
refactor that went in before this.

Bug: 18222975
Change-Id: Ic7a857cfc5cadb46d51bb9ded0df8187eea799f7
2014-12-02 10:35:09 -05:00
Adrian Roos
c3056190ae Prevent LIGHTS_OUT_TRANSPARENT in vertical nav bar
Bug: 18518939
Bug: 17691219
Change-Id: I90b9afbbb1a550b5328a581b4fb6aadfa3ff2559
2014-12-02 12:52:07 +00:00
Kenny Guy
8f52135f2c Merge "Allow apps from managed profles to close notification shade." into lmp-mr1-dev 2014-12-02 10:17:21 +00:00
Sanket Padawe
63224c3954 Call entitlement on clicking tethering tile in quick settings.
Call a new activity which would handle enabling of tethering on clicking
Tethering tile in Quick Settings.

Bug: 18368949
Change-Id: I4cc2ba01f6fa1ac005ba1dc27b223b5fc5359d35
2014-12-01 18:14:40 -08:00