12961 Commits

Author SHA1 Message Date
Jason Monk
07473cea3a Cleanup the status bar flow.
- Don't round trip to the status bar manager to know the state
 - Manage the state of icons closer to where they are displayed
 - Move StatusBarIconList into SysUI because it isn't used elsewhere now

Change-Id: I99c4c290c18fc776914a43b1cde157f92bb36ac2
2016-01-08 08:54:13 -05:00
Victor Chan
ecdb8b0e15 Fix crash in car system ui.
Override repositionNavigationBar() in CarStatusBar
and setNavigationIconHints() in CarNavigationBarView
since they are not used  for vehicles.

Bug: 26301185
Change-Id: I1995a514301305bfd2eed64d5f43bc92a6658e15
2016-01-07 18:39:32 -08:00
Winson
fd1dd726dc Fixing regression in tuner pref due to changed key name.
Change-Id: If785f511d1d8bd587706afdada8edc3fd93bb943
2016-01-08 01:38:24 +00:00
Winson
9317f86984 Fix crash when trying to use uninitialized layout.
Bug: 26453007
Change-Id: I006cf2f622b267163230eae4a07ef676c805f5c3
2016-01-08 01:03:35 +00:00
Winson
7db704a3b8 Preventing crash when attempting to move un-resizeable task to FF stack.
Bug: 26405612
Change-Id: I44e3472e45f8201ee0186d07bad6212916405a08
2016-01-08 00:06:57 +00:00
Winson
dc8de84820 Cleaning up imports and dead code.
Change-Id: Ie59fa7fc7c69eb375792c9227295d75c4672e802
2016-01-07 23:06:07 +00:00
Winson Chung
b4f4dc4e4d Merge "Refactoring and unifying TaskView animations." 2016-01-07 23:05:34 +00:00
Winson Chung
3b8e5a1c95 Merge "Moving more callbacks to animated events." 2016-01-07 23:05:24 +00:00
Xiaohui Chen
9f96711e1a sysui: refactor out PanelHolder
PanelHolder seems obsolete for a long time.  Now PanelBar contains only
one PanelView.  This simplifies the code a bit.

Change-Id: Ic4da5d4ee72ffe4e36fa084371a8cd6fd102a9bd
2016-01-07 14:14:06 -08:00
Sriram Viswanathan
9ebbe6afe7 Changes to support navigation bar system UI in car mode.
The change has all the platform changes required to support
modifications in the navbar dimensions and custom icons in car mode.
The UX is not frozen yet, but have placeholder resources provided
by android auto UX engineers.
The change assumes that the car mode configuration is known to the
WindowManagerService and uses its current ui mode to request the
latest from the policy (PhoneWindowManager.java). The change is
modeled on the way rotation is handled, where the Policy knows the
different view attributes for uiMode and just returns back the
window sizes based on the current uiMode requested. The policy does
know the current uiMode, but the order of when that changes is not
deterministic [from logs it does happen before any request to update
UI occurs, but guess that could change].

Bug: 25996809
Change-Id: Ia46cbe5096382d26c9eb8ec74cf59a059b767edb
2016-01-07 12:47:23 -08:00
Julia Reynolds
08c5ad4336 Merge "Save importance on 'done'" 2016-01-07 18:54:57 +00:00
Julia Reynolds
0714f62c29 Save importance on 'done'
Bug: 26402940
Change-Id: I500b1e5c98cd849b2d24ea15b12ef667349a2119
2016-01-07 13:24:09 -05:00
Daniel Sandler
f61708617c Merge "DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm." into mnc-dr1.5-dev
am: c2ec3f1bbe

* commit 'c2ec3f1bbe7271be2126b48fc94acc42a37f43f2':
  DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
2016-01-07 18:13:07 +00:00
Jeremy Klein
d42209db96 Add a TETHER_PRIVILEGED permission and use it where needed.
BUG: 26247383
Change-Id: I73f7227d77926faa9081e83eccb83c8ddee33e08
2016-01-07 10:11:24 -08:00
Dan Sandler
8d9aea8a18 DO NOT MERGE: Use GregorianCalendar.add() when searching for next alarm.
Never attribute to malice that which is adequately explained
by a bug, particularly one involving date math.

Bug: 26326394
Change-Id: I3483ac102c678a8852565c8ea94c06e19b3f26d8
2016-01-07 18:09:11 +00:00
Rakesh Iyer
b96b0b6eac Merge "System UI for auto." 2016-01-07 18:07:04 +00:00
Xiaohui Chen
7ef70d159b Merge "sysui: remove some dead code" 2016-01-07 17:35:56 +00:00
Xiaohui Chen
ddcd201b39 sysui: remove some dead code
Change-Id: I77f16798971e1984fc4be058f626a1730b8c0c89
2016-01-07 09:31:40 -08:00
Adrian Roos
8565906956 Merge "Show back button while RemoteInput is active on keyguard" 2016-01-07 16:10:53 +00:00
Andrei Stingaceanu
2f30011120 Merge "Keyboard shortcuts: minor naming refactor" 2016-01-07 15:30:15 +00:00
Winson
55e20d502f Removing workaround causing full view inflation.
Bug: 26420766

Change-Id: I0bb0eeada5002460de47fe4b3e23bc8a8d6e751d
2016-01-07 13:50:24 +00:00
Andrei Stingaceanu
c22ab7911a Keyboard shortcuts: minor naming refactor
Replace all occurrences of showKeyboardShortcuts* with
toggleKeyboardShortcuts* in order to be inline with
the current/desired behavior.

Change-Id: Ia076952ec40963b2727fd1f855b64859b94b1643
2016-01-07 12:42:46 +00:00
Andrei Stingaceanu
9d9294cc68 Keyboard shortcuts: initial view.
Initial view and functionality for showing/hiding it.

Change-Id: I0e365ecc3ba19110b87b020ff53a6318a7304ce8
2016-01-07 10:53:57 +00:00
Winson
f24f21695f Refactoring and unifying TaskView animations.
- Adding notion of a TaskViewAnimation to animate a TaskView to a
  specific TaskViewTransform
- Refactoring task view enter/exit/launch/delete animations into
  a separate class so that we can improve them easier
- Removing individual TaskView view property animations in favor
  of using the existing TaskStackView stack animation. This ensures that
  we don't have to add separate logic when animating TaskViews.  It is
  all handled by the TaskStackView now.
- Breaking down the TaskStackView synchronize method into binding
  TaskViews and updating them to transforms.  This allows us to
  synchronously update in many cases and is cleaner than the many
  request* calls.

Change-Id: Ib26793568a14e837e6782358155f21158a133992
2016-01-06 14:55:20 -08:00
Jeff Sharkey
51f3908c6a Merge "Consistent naming for PackageManager methods." 2016-01-06 22:26:16 +00:00
Jeff Sharkey
e06b4d1d9f Consistent naming for PackageManager methods.
When hidden PackageManager methods take a userId argument, they
should be named explicitly with the "AsUser" suffix.  This fixes
several lagging examples so that we can pave the way to safely
start passing flags to new methods without scary overloading.

Also fix spacing issues in various logging statements.

Change-Id: I1e42f7f66427410275df713bea04f6e0445fba28
2016-01-06 15:21:06 -07:00
Jason Monk
51c444be14 QS Customize panel cleanup
- Use better service management to ensure onTileAdded and onTileRemoved
   are sent.
 - Fix not always registered as tunable bug.

Bug: 26423350
Change-Id: I56156de8e0edf903509dac594b471700068ebe3e
2016-01-06 16:32:29 -05:00
Rakesh Iyer
1186faa905 System UI for auto.
This change adds in the beginnings of System UI for
the automotive use case. We extend the Phone status
and navigation bar and override the parts which are
customized for auto.

The navigation bar itself is built from a resource
array specified in car_arrays.xml to allow of ease
of customization of the shortcuts that are in the
navigation bar.

Bug: 26301185
Change-Id: I780a2ef9dd5ae2a4be9355b5874d08f521a86fa7
2016-01-06 12:05:35 -08:00
Jason Monk
6a40ac6cc6 Merge "Some Cleanup" 2016-01-06 15:25:50 +00:00
Jason Monk
2b37190fc5 Some Cleanup
Bug: 26395083
Bug: 26348883
Change-Id: I1e9b92fda1c83420ad72764ce2f02d7f40b34dae
2016-01-06 10:19:04 -05:00
Adrian Roos
d28ccd7cab Show back button while RemoteInput is active on keyguard
Bug: 22452379
Change-Id: Iea1cdb885698c717b98904453bf14e2bdd7d7562
2016-01-06 15:23:14 +01:00
Jason Monk
5a34cb8a73 Merge "More QS Tile modes in the API" 2016-01-06 14:18:57 +00:00
Geoff Mendal
9e6fe0cf38 Merge "Import translations. DO NOT MERGE" 2016-01-06 14:04:33 +00:00
Jorim Jaggi
d8fb3ac4b8 Start moving divider only after passing touch slop
So there is a clear distinction between grabbing it and
start moving it.

Change-Id: I51b50220bd35d8040d0c11f131918d9741cd8403
2016-01-06 13:53:28 +00:00
Geoff Mendal
ee03b99a47 Import translations. DO NOT MERGE
Change-Id: I069886b4230a02864c84c5e12d29ac2149f88878
Auto-generated-cl: translation import
2016-01-06 05:53:27 -08:00
Jorim Jaggi
0035e383e4 Make sure to use right thread to change icon
Not sure why this ever worked.

Change-Id: Ib044236856522fb9d9e737c885d5e9223e5f3fe3
2016-01-06 13:52:01 +00:00
Winson
ef06413afc Moving more callbacks to animated events.
- In preparation for the animation refactoring, this CL just moves the
  enter/exit callbacks that route though RecentsView into events that
  the task stack can handle directly.

Change-Id: I90f602c5486e1781129225a73dbf97af29477479
2016-01-05 18:18:05 -08:00
Julia Reynolds
1a3d9ba7cc Merge "Show 'end now' in expanded volume panel." 2016-01-05 20:47:20 +00:00
Julia Reynolds
ed150013e3 Merge "DND visual interruptions: prevent screen on." 2016-01-05 20:45:45 +00:00
Winson
d8b1d63f96 Fixing issue with exit animation due to incorrect visibility state.
- This CL ensures that only Recents updates the SysUI visibility state
  for itself, ensuring that the visibility state reflects the state in
  Recents, and allows us to skip unnecessary work to close system
  dialogs when it is not required.

Bug: 26390248
Change-Id: Ib6301a8300cc3da6da75fcbbceceb0e1da3beab4
2016-01-05 11:19:56 -08:00
Julia Reynolds
a45869a0b6 Show 'end now' in expanded volume panel.
Bug: 26165288
Change-Id: I1e75a33f7745a7aa0b4740010cc554b4f1d924c6
2016-01-05 13:42:43 -05:00
Julia Reynolds
617215874d DND visual interruptions: prevent screen on.
Bug: 25423508
Change-Id: Ie935a2051e1ae774fbeaf624f3599b2b1bb8666d
2016-01-05 12:49:09 -05:00
Jason Monk
fe8f6826ce More QS Tile modes in the API
Allow tiles to request when they are bound instead of doing it
automatically for them when in the listening state.  Only one
of these modes is allowed for a given tile, meaning it can either
push updates when it thinks they matter, or it can be told when
to update.

Change-Id: I165b39dddb836df90d253aeb5ebea48e62ea0dae
2016-01-05 11:08:05 -05:00
Jorim Jaggi
514b2cf0f8 Add nice animation when touching the docked divider handle
To make the interaction more dynamic.

Change-Id: I8fc3e6240c229753dc26122ae0994d59c4f6486e
2016-01-05 13:50:56 +01:00
Jorim Jaggi
e435e982fa Implement parallax when dismissing docked/fullscreen stack
When moving the docked or the fullscreen task close to the side,
we add a nice parallax to indicate that this task will be dismissed.

Change-Id: Ide195876942c1614c186fd5f3ff3e86f6fdfec61
2016-01-05 13:50:45 +01:00
Jorim Jaggi
5098159ae3 Dim stack while dismissing
When dismissing the docked or fullscreen stack, a dim layer is
introduced for a nicer visual effect.

Change-Id: I9f12e331e978208aa9fd9e9883b3c8a36d4da3a0
2016-01-05 13:50:32 +01:00
Jorim Jaggi
81fe2d1f0a Refine snap position behavior
- Use the stable insets to communicate the system insets to the
docked divider view.
- When calculating the sizes for the snap positions, exclude the
system insets.
- Add 3 snap position modes: 16:9 in one window, 1:1, 16:9 in the
other (phone portrait). Only 1:1 (phone landscape). Fixed relation,
1:1, 1 - fixed relation (tablet portrait/landscape).

Change-Id: If2166c5fb99f12535eeab5de18e9f5aaf433d77c
2016-01-05 13:50:20 +01:00
Jorim Jaggi
6f2efd3d8c Add developer option for freeform window support (1/2)
Also disable default force-resizable on non-user builds.

Bug: 25276672
Bug: 24815256
Bug: 26294625
Bug: 26294534
Change-Id: I5b31e494c993d2d9dad175b94b4f30637e8f3718
2016-01-05 13:49:59 +01:00
Jorim Jaggi
a6c934e2a3 Use different asset when docked stack exists
- Add the ability to add a listener when the existence of the
docked stack changes.
- Register SystemUI as such a listener and switch the recents
button asset when docked stack exists.

Change-Id: I05350878c5adc7ad9f0399f0c42d8d1615d44d02
2016-01-05 13:49:41 +01:00
Jorim Jaggi
dc249c4ae7 Change behavior when resizing docked stack
- Add an API resizeDockedStack to resize the docked stack
and supply temporary task bounds, which can be different from
the stack bounds.
- Use that API in SystemUI to only switch task bounds when
crossing thresholds, so we have less flickering and more
predictable resizing.

Bug: 25015474
Bug: 26311778
Change-Id: Id5c9277dd908ccc28f95dab023efc914757a50d0
2016-01-05 13:44:24 +01:00