21165 Commits

Author SHA1 Message Date
Steve McKay
76be620a6f Grid view padding + explicit background.
Also move section break holder into the wrapper class.

Change-Id: I949e81af180f11514aff558615cfeda44cb96a3c
2016-01-12 11:41:26 -08:00
Steve McKay
da161f0b17 Merge "Fix bug where both list and grid buttons are visible." 2016-01-11 23:33:00 +00:00
Aga Wronska
d3b8e52009 Merge "Keep Search View visible after search completed Improve Search View behavior Add Search View background color" 2016-01-11 23:05:43 +00:00
Aga Wronska
97831485e7 Keep Search View visible after search completed
Improve Search View behavior
Add Search View background color

Bug:26143355
Change-Id: Ifdc4bfff56fc6244c571dfbeff4179e1515d53b7
2016-01-11 14:58:18 -08:00
Philip P. Moltmann
e978af63e6 Merge "Do not add far favorite printers more than once." 2016-01-11 20:22:40 +00:00
Philip P. Moltmann
fcb51b8270 Merge "ApprovedServices might be null, handle the case:" 2016-01-11 20:22:10 +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
Philip P. Moltmann
8d978ba1e7 Merge "In rare cases the printing client app might have been dieded before remotePrintDocument.start(). In this case the print spooler should not crash." 2016-01-11 19:41:55 +00:00
Philip P. Moltmann
f7b5018028 Merge "Display toast when print services are disabled." 2016-01-11 19:41:25 +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
d0b0fa16a3 Merge "Revert "Snap docked stack after screen rotation"" 2016-01-11 17:53:40 +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
Ben Kwa
22f5fce70b Merge "Move the "home" root below the divider." 2016-01-11 17:38:30 +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
840cb6d691 Merge "Import translations. DO NOT MERGE" 2016-01-11 14:03:05 +00:00
Geoff Mendal
e8a594bd79 Merge "Import translations. DO NOT MERGE" 2016-01-11 14:02:30 +00:00
Geoff Mendal
73ffe1a9d6 Import translations. DO NOT MERGE
Change-Id: I582f2e3659c92e18880ec1970a42dcb4d9e44cfe
Auto-generated-cl: translation import
2016-01-11 05:59:44 -08: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
Geoff Mendal
d7483de165 Import translations. DO NOT MERGE
Change-Id: I519c2c15b3ae10ec47a76de7afff6fea223ba1c9
Auto-generated-cl: translation import
2016-01-11 05:41:24 -08:00
Daichi Hirono
ab03cb1b46 Clean up TestUtil.
* Integrate two while loops waiting for valid device.
 * Try to open a device just after getting an device ownership so that
   other applicaitons do not steal device ownership before TestUtil
   opens a device.

Change-Id: Ia273cfb2a47fe630efd8c54b22d6ef5823a402b8
2016-01-11 16:32:57 +09:00
Ben Kwa
e95c321fd9 Move the "home" root below the divider.
BUG=26143357

Change-Id: Ia48aa141f265aa3b1b6a07ec966dc9da6d283de3
2016-01-08 17:24:59 -08:00
Ben Kwa
d20d01061c Merge "Increase the stability of sorting in the Model." 2016-01-09 01:05:06 +00:00
Ben Kwa
e2564f9f19 Increase the stability of sorting in the Model.
This is necessary to prevent UI thrash (items continually shuffling
around) when the underlying Provider doesn't return its contents in a
stable order from one load event to another (DownloadStorageProvider is
an example).

BUG=26417297

Change-Id: Ie99e56b610f5d01d5318be07c0379b506c828735
2016-01-08 16:59:20 -08:00
Philip P. Moltmann
0d1e622000 ApprovedServices might be null, handle the case:
Bug: 26454066
Change-Id: I909d84d08a1f6d29f486e8ea6097e782b054864e
2016-01-08 16:26:44 -08:00
Philip P. Moltmann
9b99d76a71 Do not add far favorite printers more than once.
The favorite printer list contains a printer multiple times as it might
have been used at different locations. Hence it can be that a printer is
in the favorite printer list multipe times but never considered close.

Hence we go into the second loop and add it multiple times as we never
add it to alreadyAddedPrinter.

Change-Id: I4ca8a6a5a05f43645a0b2c891a55df2ccce05ad4
2016-01-08 16:20:12 -08:00
Steve McKay
7c7e684b78 Fix bug where both list and grid buttons are visible.
Bug: 26456290
Change-Id: I41d97d7ce33a193b6a9591609deadf9690b00ba7
2016-01-08 14:59:56 -08:00
Ben Kwa
53aaec12bc Merge "Hide the divider in list mode." 2016-01-08 22:57:28 +00:00
Philip P. Moltmann
f6114c4f1e In rare cases the printing client app might have been dieded before remotePrintDocument.start(). In this case the print spooler should not crash.
Change-Id: Ica1b46fadf6bccbd28e8f9c928f5d504cccff792
2016-01-08 14:49:56 -08:00
Philip P. Moltmann
1f46779f5e Display toast when print services are disabled.
Change-Id: Id1ebcbbf39eb558bc15c7c69c03fe8124b9c79d7
2016-01-08 14:03:01 -08:00
Ben Kwa
90bf9f5f28 Hide the divider in list mode.
BUG=26399570

Change-Id: I5013bf9ae80c003419f3f22dcf2a7e6787c19711
2016-01-08 13:31:11 -08:00
Ben Kwa
433df5c865 Merge "Fix home key behaviour when there are no subdirs in cwd." 2016-01-08 20:58:24 +00:00
Ben Kwa
2ad8214916 Merge "Fix shift-selection." 2016-01-08 20:57:40 +00:00
Ben Kwa
2613802d4b Fix shift-selection.
The shift-selection code was failing to correctly anchor the selection
prior to shifting focus.  This meant that the first shift-navigation
event (i.e. starting from non-selection mode) would not select the right
set of stuff.

BUG=26459949

Change-Id: I62ed959fb549198c503cfd2131d2499f9a61f7e5
2016-01-08 12:56:10 -08:00
Mahaver Chopra
d68cc200ec Merge "Handle null pointer exception" 2016-01-08 20:20:02 +00:00
Ben Kwa
f5ce1035d4 Fix home key behaviour when there are no subdirs in cwd.
The divider is extraneous when a directory contains only subdirs, or
only files.  The "only dirs" case works (the divider is omitted) but in
the case where a directory contains only files, a divider gets inserted
at position 0, which messes up navigation.  This change adds code to
avoid adding a divider when a directory contains only files.

BUG=26406821

Change-Id: I7333911baf94e34bf428a3dd18b55694a73e3a62
2016-01-08 11:36:55 -08:00
Anna Galusza
69c952f833 Merge "Add remaining Accessibility Settings to backup list. Note additional settings that should not be restored if they are already set (on account of the new Setup Wizard, which allows critical Accessibility Settings to be set before restore)." 2016-01-08 19:25:01 +00:00
Mahaver Chopra
87648756e3 Handle null pointer exception
Handle null pointer exception, just in case calling entitity doesn't
check.

Change-Id: I1b4809476cc689ad3dfd426e123a64e9a0336c87
2016-01-08 19:23:57 +00: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
Mahaver Chopra
932f66428c Merge "Added Data roaming user restriction" 2016-01-08 18:39:15 +00:00
Victor Chan
48426d5943 Merge "Fix crash in car system ui." 2016-01-08 18:28:23 +00:00
Mahaver Chopra
dea471ef54 Added Data roaming user restriction
Added new user restriction DISALLOW_DATA_ROAMING, can only be set
by device owners.

Bug: 24890464
Change-Id: Ic4cb37dd5f9bbffa35f921751488ef7c7ff99452
2016-01-08 18:07:31 +00:00
Anna Galusza
fa7786cbe7 Add remaining Accessibility Settings to backup
list. Note additional settings that should not be
restored if they are already set (on account of
the new Setup Wizard, which allows critical
Accessibility Settings to be set before restore).

Change-Id: I95524abbef20ab12e529a2b1e6165adc7294c3db
2016-01-08 09:28:53 -08:00
Ben Kwa
2e8bafc38b Merge "Add checkmark icons for selection." 2016-01-08 17:06:29 +00:00