11716 Commits

Author SHA1 Message Date
Winson Chung
e494c382c0 Bug 18784289: Fix issue with transition animation callback.
This is a regression where we changed the source view for the transition
to dummy view, but since it was not yet attached, it could not get the
handler implicitly to post the onAnimationCompleted callback.  This CL
modifies these ActivityOption transitions to also take an explicit
handler to process the callback on.

Bug: 18784289

Change-Id: I73f745c33b9f8aed91f8d9cd975f37cf7e4128f1
2014-12-18 11:27:18 -08:00
Winson Chung
e405e59e5b Merge "Fixing major regressions in Recents with multi-user. (Bug 18574950)" into lmp-mr1-dev 2014-12-10 23:54:40 +00:00
Winson Chung
2002cf5b46 Fixing major regressions in Recents with multi-user. (Bug 18574950)
In the process of front-loading a lot of the loading work, we moved logic
into AlternateRecentsComponent, which is not multi-user friendly.  This CL 
proxies all the necessary events for non-primary users to their own SystemUI 
process to ensure that they handle them correctly, and proxies visibility
changes back to the primary user (since that is the only process with the
right callbacks).

Change-Id: I9fed92214ac4d4e2309ad6ffc35d09b5726c2880
2014-12-10 15:16:55 -08:00
Jorim Jaggi
c79343ce65 Merge "Fix SysUI when an app started from the affordances crashes" into lmp-mr1-dev 2014-12-10 16:32:20 +00:00
Jorim Jaggi
826730aeb9 Fix SysUI when an app started from the affordances crashes
- Fix infinite recursion in this case.
- If the app crashes, we are waiting for either setOccluded or
  hideKeyguard to be called. However, neither of these gets called
  in this case, so we recover from it by adding a timeout of 5
  seconds.

Bug: 18652789
Change-Id: Ib9a043f5692a8578703df1db08e1a6b9dcfbc742
2014-12-10 17:22:58 +01:00
Dan Sandler
3585062760 Merge "BluetoothControllerImpl: track bluetooth better" into lmp-mr1-dev 2014-12-10 15:43:43 +00: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
Geoff Mendal
fa3f43145a Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-12-10 14:54:48 +00:00
Geoff Mendal
a65ea3dfdc Import translations. DO NOT MERGE
Change-Id: Icfd467c7b204b82119ee78b0bfa34d385786d251
Auto-generated-cl: translation import
2014-12-10 06:52:52 -08:00
Geoff Mendal
b7180c450e Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-12-10 14:30:40 +00:00
Geoff Mendal
aa72294174 Import translations. DO NOT MERGE
Change-Id: I63ccbdea01d869627116121f95c9d35cd64da04e
Auto-generated-cl: translation import
2014-12-10 06:26:53 -08:00
Jason Monk
28fffd58a1 Merge "CarrierText clear itself when no mob. data support" into lmp-mr1-dev 2014-12-10 14:25:39 +00:00
Jason Monk
6f6bc554fa Merge "Push inet condition to new MobileSignalControllers" into lmp-mr1-dev 2014-12-09 20:13:39 +00:00
Selim Cinek
242323969d Merge "Fixed accessibility for the pin input view on keyguard." into lmp-mr1-dev 2014-12-09 18:48:52 +00:00
Wink Saville
15b29ac7fa Merge "Add subId as parameter for get/setDataEnabled." into lmp-mr1-dev 2014-12-09 17:52:27 +00:00
Jason Monk
25d8a48e73 Push inet condition to new MobileSignalControllers
When new MobileSignalControllers were created after we already
received the inet condition broadcast, they would never receive
the current state of inet condition.  This pushes it to all
controllers whenever they are created.

Bug: 18666876
Change-Id: Ie9997f94f3fbe206ed222a62e2a902fd43f4d67c
2014-12-09 12:51:35 -05:00
Selim Cinek
c199ef3759 Fixed accessibility for the pin input view on keyguard.
Passwords are not spoken out loud anymore if the user
did not select that option.

Bug: 18528774
Change-Id: I3dd05fa1714da36795f448718fd70f1cdbfe2584
2014-12-09 18:49:42 +01:00
Jorim Jaggi
9ba89ad8eb Merge "Make hint text centerred if multiline" into lmp-mr1-dev 2014-12-09 15:11:48 +00:00
Jorim Jaggi
99117c9b11 Merge "Reinspect notification for dark mode when updated" into lmp-mr1-dev 2014-12-09 15:11:23 +00:00
Jorim Jaggi
0d0bd44d64 Merge "Update dark mode when notification is updated" into lmp-mr1-dev 2014-12-09 15:10:52 +00:00
Dan Sandler
c846632762 Squelch chatty log messages.
Bug: 18666850
Change-Id: I0f9fe4fd0143b5668f66bd0a9c407a5018876b44
2014-12-09 14:37:29 +00:00
Dan Sandler
e912c9cc39 Repair wifi/cellular kerning.
The wifi spacer should only be shown if the first mobile
network has a data type indicator.

Bug: 18665813
Change-Id: Ifcd3a61ebc8cdb76d134baa23b22f1291edadd28
2014-12-09 14:36:46 +00:00
Jorim Jaggi
cf579e9be1 Make hint text centerred if multiline
Bug: 18642776
Change-Id: I407670a7eb13c2d8ff9a7f3119b736b172aed377
2014-12-08 19:56:20 +01:00
Winson Chung
16158852e2 Merge "Ensure that loading and unloading of tasks happen symmetrically with lifecycle events. (Bug 18574950)" into lmp-mr1-dev 2014-12-08 18:30:41 +00:00
Jorim Jaggi
dacc924a65 Reinspect notification for dark mode when updated
Also protect against a crash that might happen when the notification
is updated during an animation.

Bug: 18572620
Change-Id: Ifd6279df395974f7afd0c708a6c87c64de935c62
2014-12-08 19:24:35 +01:00
Jorim Jaggi
10ad761aa9 Update dark mode when notification is updated
When the template of a notification changes during a notification
update, we reinflate all the views but didn't update the dark mode.

Bug: 18537470
Change-Id: Iab9278adcbe3bdf39f86019e61b252db0dda7390
2014-12-08 18:41:11 +01:00
John Spurlock
530052a2fe Zen: New behavior for built-in downtime + nextalarm conditions.
- Downtime: Allow user to enter downtime early, offer as an end
   condition four hours before downtime starts.  Available in
   either none or priority, regardless of settings configuration.
 - Downtime: Always exit before next alarm if zen=none.
 - Downtime: Make more like any other condition provider, remove
   special status (mostly).
 - Downtime: New auto-triggering rules, allow triggering after a
   manual condition ends, once.
 - Decouple NextAlarm + Downtime providers, allow them to offer
   their conditions at the same time.
 - Downtime/NextAlarm: Update conditions if they change while being
   requested, even if unsubscribed.
 - Make all three built-in condition providers optional, via config.
 - New internal helper for runtime config.
 - Don't follow changes to next alarm, consider the condition false.
 - Isolate downtime calendar logic into separate class (for testing).
 - Allow a:bb -> a:bb as a valid downtime range (all day).
 - Volume dialog: configuration establishes maximum number of visible
   conditions, including built-ins.
 - Zen mode panel: avoid widget updates during layout transition.
 - Zen mode panel: move controller callers to background thread.
 - Zen mode panel: hide/show/rebind rows instead of adding/removing.
 - ZenLog: Add downtime autotrigger results.
 - Volume panel: Smarter refresh on ringer/zen changes.

Bug: 16373455

Change-Id: I4f801018ddb0beb6eb9fa03a81c79f7949888a3f
2014-12-08 11:00:57 -05:00
Geoff Mendal
b9f245d464 Merge "Import translations. DO NOT MERGE" into lmp-mr1-dev 2014-12-08 15:02:17 +00:00
Geoff Mendal
6c5836eca4 Import translations. DO NOT MERGE
Change-Id: Ib0681b2f224456a803391c95f1283f41a06e58a7
Auto-generated-cl: translation import
2014-12-08 06:53:32 -08:00
Jason Monk
32eb928c29 Merge "QS Wifi panel show icon on secure networks" into lmp-mr1-dev 2014-12-08 14:32:12 +00:00
Jason Monk
b27ec6d37d QS Wifi panel show icon on secure networks
Bug: 18365695
Change-Id: Ib63822643a5b033d8b73591e9b379b3539b8865e
2014-12-08 09:31:00 -05:00
Geoff Mendal
8510d0142c Import translations. DO NOT MERGE
Change-Id: I50002c9d6b9e684be9f69dab0c8318226cbda6b9
Auto-generated-cl: translation import
2014-12-08 06:28:24 -08: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
Jinsong Mu
b3898fbe07 Merge "Talk-back doesn't notify user to enter unlock PIN when device is locked with PIN lock. b/18568003" into lmp-mr1-dev 2014-12-05 23:50:02 +00:00
Jason Monk
83bc2aafd7 CarrierText clear itself when no mob. data support
Bug: 18552426
Change-Id: I48e7d1434861dc99284bb0b58c023c1d749e513a
2014-12-05 18:09:36 -05: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
Wink Saville
36ffb0494d Add subId as parameter for get/setDataEnabled.
Bug: 18279333
Change-Id: I2496a2fd92b154e5e6981cbf6b5b5939cda59122
2014-12-05 11:10:30 -08: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
Jinsong Mu
dc6efdc1c6 Talk-back doesn't notify user to enter unlock PIN when device is locked with PIN lock.
b/18568003

Change-Id: I622ca7c49a8aa712490c8f74fcd7a1ab6d2ead5f
2014-12-05 09:36:19 -08: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
Jason Monk
d601c6c5c3 Merge "Make CarrierText handle multi-sim" into lmp-mr1-dev 2014-12-04 22:31:58 +00:00
Jason Monk
9ff69bd8f1 Make CarrierText handle multi-sim
To do this need to handle the subscription id that comes with all
spn broadcasts and concatenate properly as needed.

Bug: 18223317
Change-Id: I2a1cde0a4bf2f50082288cc5cdeb968fa9aa7dd0
2014-12-04 17:29:12 -05:00
Winson Chung
860e2d86d8 Ensure that loading and unloading of tasks happen symmetrically with lifecycle events. (Bug 18574950)
Since we were unloading tasks when the activity was stopped, but only reloading
tasks on the next onCreate()/onNewIntent(), there were cases where the system 
would create the activity but then immediately stop and start it (ie. when the
screen is turned off while the activity has resumeWhilePausing=True set in its 
manifest).  This CL ensures that we reload the tasks with the same state used
the last time the Recents activity was started.

The CL also cleans up some visibility state that was confusing and is no longer
necessary, fixes a small issue with the dismiss button flashing when toggling
Recents quickly, and fixes some cases where the initial stack scroll is set
incorrectly.
2014-12-04 13:49:46 -08: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