Settings: disable expanded desktop on power menu disable

If expanded desktop is enabled while the option for expanded desktop
setting is disabled, expanded desktop will remain active and the user
will not be able to disable expanded desktop without reenabling the
setting.

Change-Id: Ia91e34e5ce9f8680f64b81e5f79c2df6f0639bb2
Expose system settings for all users.
Hide the following non multi-user compatible settings for secondary user:
- Status Bar
- Navigation Bar

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Settings: Add support for Lock clock

Change-Id: I13556ce58902e4c6151872c0f0aebe2152677de4

Conflicts:
	res/values/strings.xml
	src/com/android/settings/cyanogenmod/SystemSettings.java

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Settings: Make it clear that the Lock clock is also a Home widget

Also includes some whitespace cleanup

Change-Id: I446409f3ace482d8321803752d93bd90d9dc5f2c

Conflicts:
	src/com/android/settings/cyanogenmod/SystemSettings.java

Signed-off-by: Paul Beeler <sparksco@gmail.com>
reorganize SABERMODS
Signed-off-by: Paul Beeler <sparksco@gmail.com>
About phone: update memory description

When this change was introduced,
https://github.com/SaberMod/android_packages_apps_Settings/commit/185ec4f4a2a3bb3e46f4bb8d37bffa22db7a11c8
the previously used method of showing available free memory was removed
and now shows the memory total instead.  Users may get confused about
what is being displayed for their device memory, especially when upgrading
from a older version of android in ROMs or new devices.

Patch set 1:  https://github.com/SaberMod/android_packages_apps_Settings/commit/6318775a76d4949ab2a14dba273ca9b71159b603
Patch set 2:  Switch string to "Memory total". Update commit message.
Patch set 3:  Fix small typo in commit message.
Patch set 4:  Switch string to Data memory total since that's what is (total userdata memory)

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Merge Navigation Bar and Pie Controls button config (2/2)

Based on the commit series for pie controls, this commit makes the
Navigation Bar and Pie Controls share the same button layout.  This
commit applies the changes made in part 1 to the Settings app. For
the real commit see frameworks/base.

This commit introduces here:
* Some setting constants changes.
* Removal of the pie search key setting.
* Move pie controls to navigation bar settings

Change-Id: I5b4abd6d32a3fc835466ac4cb1f0b9c851641061

Conflicts:
	res/values/strings.xml
	res/xml/pie_control.xml
	res/xml/system_settings.xml
	src/com/android/settings/saber/PieControl.java

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Add more categories.
Signed-off-by: Paul Beeler <sparksco@gmail.com>
Remove power menu option for multiuser
Signed-off-by: Paul Beeler <sparksco@gmail.com>
Enable Ethernet tab in data usage

mStateSession is not initialized at the time hasEthernet is called to
set mShowEthernet, so Ethernet tab is not shown at the startup.
In this case, if the device doesn't support mobile network, user cannot
even select it from the context menu.

Bug: 8365419
Change-Id: I441971f18346c34a3adf3f18d9355075d9dce3f0
Signed-off-by: Jaewan Kim<jaewan@google.com>
Settings : Toggle expanded desktop for navbar

If entering the navbar screen with expanded desktop enabled, the navbar
is not shown hence hindering the ability to use the panel

This patchset addresses that by disabling expanded desktop upon entering,
and re-enabling upon exiting if it was previously enabled.

Patchset 2 : Fix state issues

Change-Id: I2776cf971f8899d30a25c0bf6b418793153555fc
Multi pane preference settings

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	res/values/arrays.xml
	res/values/strings.xml
	res/xml/system_settings.xml
	src/com/android/settings/saber/SystemSettings.java

derp
Signed-off-by: Paul Beeler <sparksco@gmail.com>
Improve dual pane preferences summary
Expose User interface only on selected devices

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Move quick lunch shortcuts
Show preference screen only on USER_OWNER

Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	res/xml/navigation_bar_settings.xml
	res/xml/system_settings.xml
	src/com/android/settings/saber/SystemSettings.java
About nexus
Signed-off-by: Paul Beeler <sparksco@gmail.com>
Update kill_app_longpress_back_summary
Settings: change Pie controls wording

As stated before, the name 'Pie controls' is well-known
and therefore is being used instead of a more descriptive name.

This change modifies the summary of \'Pie controls\', stating
that they are 'floating controls', as we also need to deal with
users who have not heard about this feature. The title stays the
same.

In other languages this will be reversed: the title will contain
a translated version of the 'descriptive name' and the summary
will contain the original English name, 'Pie controls'.

Change-Id: I80dbc615f787be68ad0e48c71777d99a1d19de8b
Signed-off-by: Paul Beeler <sparksco@gmail.com>

Conflicts:
	res/values/strings.xml
Fix Settings FC with multiuser
Signed-off-by: Paul Beeler <sparksco@gmail.com>
Settings: Battery bar (2/2)

* Patch inspired by MIUI and originally ported by David Morgan / @Spitemare
* as a extra feature for custom @CyanogenMod 7 ROMs.  Patch has been adapted
* to work better on @SaberMod.  Much of the work was done by Daniel Nilsson / @syaoran12
* Patch is nearly identical in nature to how Dan has writen it, with a few
* minor changes in removing the option to have centered bar, which doesn't
* seem to work very well on some devices like the Nexus 7 (grouper).  Also
* does not check for devices with no navigation bar as @SaberMod only supports
* nexus devices that all have navigation bars.

Signed-off-by: Paul Beeler <sparksco@gmail.com>
Simplify dual pane preferences summary again
Signed-off-by: Paul Beeler <sparksco@gmail.com>