12925 Commits

Author SHA1 Message Date
Jorim Jaggi
737af724eb Snap docked stack after screen rotation
- Move DividerSnapAlgorithm to com.android.internal, also move
some utility stuff into DividerUtils which is used from both
SystemUI and window manager
- When the screen rotation changes, rotate the stacks like before
but then also snap the docked stack to a valid snap position.

Change-Id: I9e1aa13f42f398a25c9016e6f20395ee212e405b
2016-01-11 23:05:56 +00:00
Winson
94a0e89adb Simplifying the task header highlight drawing.
- Removed unused ripple logic in the task header background, simplifying
  the background and highlight drawing
- Calculating the header highlight from the actual task color now
- Preventing some extra work from happening when the task view size
  changes

Change-Id: I775651f4b9ce8c1cdfa6fb3d77fd6912fd99a93b
2016-01-11 20:18:25 +00:00
Winson
ad66efa813 Removing HW layers for task view transitions.
Change-Id: I00377e12d779519bd0fc102480d37382b3ac4ea6
2016-01-11 20:17:16 +00:00
Winson
b94443d876 Fixing regression in initial task bounds animating into Overview.
Change-Id: I09e76c97515dd7e38f8696ac6c48016c9d0a5263
2016-01-11 20:14:03 +00:00
Winson
e6309aa57e Prevent docking via nav bar until user is set up.
- Also prevents docking if screen pinning is currently active.
- Fixes issue where you could go into recents when setting up a 
  secondary user.

Bug: 26438797
Bug: 26316912
Change-Id: I30576b52842b76184ef0b2252bc572f74a5d6db8
2016-01-11 20:13:14 +00:00
Winson
778f495f04 Removing code to animate thumbnail scale now that we animate bounds.
- This CL reverts the code to the previous state where we can just 
  calculate the thumbnail scale from the view bounds.

Change-Id: I156ae915af76055b5177a6bdf0f929bdf6acea01
2016-01-11 20:11:51 +00:00
Jason Monk
c06fbb1298 Move battery saver notification to QS
Remove the battery saver notification and instead create a detail
panel within QS that allows it to be turned on and off.

Change-Id: I54654d26183586fa171fda04877a840701f8ef33
2016-01-11 14:29:23 -05:00
Jeremy Klein
502658dd90 Merge "Add a TETHER_PRIVILEGED permission and use it where needed." 2016-01-11 19:10:22 +00:00
Xiaohui Chen
37a106a31d Merge "sysui: refactor out PanelHolder" 2016-01-11 18:58:14 +00:00
Victor Chan
95b28d8a38 Merge "Null check mRecentsComponent and mDivider." 2016-01-11 18:55:22 +00:00
Winson Chung
3dc52ed179 Revert "Snap docked stack after screen rotation"
This reverts commit e65d6bb2072471e63b93aa14a288bc59ed86208f.

Change-Id: I245aa9be3ea98ff742e02b02f6f1d344bc2e8182
2016-01-11 17:53:17 +00:00
Jorim Jaggi
e65d6bb207 Snap docked stack after screen rotation
- Move DividerSnapAlgorithm to com.android.internal, also move
some utility stuff into DividerUtils which is used from both
SystemUI and window manager
- When the screen rotation changes, rotate the stacks like before
but then also snap the docked stack to a valid snap position.

Change-Id: Ifb0c65dfbdfca2343a76b12de982c0701fe0c3ab
2016-01-11 16:58:54 +00:00
Geoff Mendal
b2260b3a31 Import translations. DO NOT MERGE
Change-Id: I0a479b16ae9a28bf6f798f4db4525b7360c40812
Auto-generated-cl: translation import
2016-01-11 05:56:07 -08:00
Victor Chan
9b8018ce9d Null check mRecentsComponent and mDivider.
NavigationBarGestureHelper has a setter for mRecentsComponent and
mDivider. There needs to be a null check before accessing these
fields in code, since there is no guarantee setComponents() is
called.

Change-Id: I58f2c02fbf1a2d486c4c8d8db28669884d22e61a
2016-01-08 10:55:29 -08:00
Victor Chan
48426d5943 Merge "Fix crash in car system ui." 2016-01-08 18:28:23 +00:00
Jason Monk
66c89c15a0 Add API for System QS tiles to set status icons
Allow system apps that have a Quick Settings tile to show a
status bar icon.  If the quick settings tile is removed, the
status bar icon will no longer be shown.

Change-Id: I875b962bbdf4ff863012de688a3dd29a8d7e11ab
2016-01-08 08:54:13 -05:00
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
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
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