21263 Commits

Author SHA1 Message Date
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
592356b63f Add event parameters to MtpEvent.
We can obtain detailed information of MtpEvent from devices. e.g. object
handle of changed object.  The CL adds the detailed information as
properties of MtpEvent class.

BUG=26480986

Change-Id: I79a305a6a9507236709ed69881a3835867e04cfe
2016-01-11 17:41:54 +09:00
Daichi Hirono
a12e7d1ba6 Remove unused lines in MtpDocumentsProvider.
Change-Id: I8de1b50441003648547829a3e8dd78153e6f8f31
2016-01-11 17:30:03 +09: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
Udam Saini
b7c2487c8b Makes captive portal server calculation in one place.
This also creates a hidden api for the captive portal server calculation
so that the Setup Wizard can use this as well.

bug:13246857
Change-Id: I4dfd0916df97cfce13252c7cc15f7bd05ed95f77
2016-01-08 14:38:31 -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
Jason Monk
306937132b Merge "Add suggestions parsing to SettingsLib" 2016-01-08 14:50:17 +00:00
Jason Monk
f509d7e65a Add suggestions parsing to SettingsLib
Add a parser that will parse an XML of the suggestion categories
and ordering and query those categories into Tiles.

Change-Id: I3154c94e176108358163bbe36feb48e889fe00d1
2016-01-08 09:47:35 -05: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
Daichi Hirono
1d4779c29a Add operationsSupported to device info.
Because not all MTP devices support getPartialObject, we need to check
supported operation of MTP devices. The CL adds operationsSupported
field to MtpDeviceInfo class.

BUG=26147375

Change-Id: Iaad968fb4497a5ad11bf6489097abea99c3cbac7
2016-01-08 16:58:24 +09:00
Daichi Hirono
359a8ae0af Merge "RealDeviceTest for MTP does not need to ask device permission." 2016-01-08 07:20:46 +00:00
Daichi Hirono
3360de1ea8 Merge "Fix document stack." 2016-01-08 05:34:59 +00:00
Daichi Hirono
7f34b20a70 Fix document stack.
We need to add document to stack by using 'push' method instead of 'add'
method.

BUG=26437613

Change-Id: I3e4ac6b0d03cacbe2d6cdd93443ce1c96c8c47d9
2016-01-08 14:33:11 +09:00
Ben Kwa
ddc3d21ef9 Add checkmark icons for selection.
- Add a new checkmark icon.
- Modify the grid and list items to include the check icon in the
  appropriate location.
- Add code to various DocumentHolder subclasses to cross-fade between
  icons when things are selected/deselected.
- Create new dimensions quantities to represent new icon sizes.
- Clean up xml files.

BUG=24326546

Change-Id: Ib3f04c8274d35ac3b95ed13730df340e8b7c36c6
2016-01-07 19:05:32 -08:00
Steve McKay
8c83d3304a Merge "CopyService generalization." 2016-01-08 02:40:34 +00:00