Settings: don't remove navigation bar prefs when toggling

For devices which support the KeyDisabler class, toggling the nav bar
removes the navigation bar category, but does not add it back. If a
device can have the nav bar toggled, don't remove the category, but just
disable/enable it.

Change-Id: Ie527e3eb357e4a46097257d90c07c78e61f043a9
Signed-off-by: Roman Birg <roman@cyngn.com>
Settings: Only show clear button when search field has text.

Change-Id: I69bf6a31a933459be2c652434aec412105395dcc
Settings: added FastCharge QS tile

Change-Id: Iff94e5aee0694811015e631d13f8e99237160f86
Lockscreen: See through (2/2)

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

Signed-off-by: D4rKn3sSyS <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Indenting and fix of the LOCKSCREEN_SEE_THROUGH variable check.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS3:

* Add see through checkbox to security_settings_chooser.xml, reflects the security_settings_lockscreen.xml.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS4:

* Made the option available with every lock mode (PIN, Password etc.) cause it works with every mode now.
* Update description with better one.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS5:

* Make description more like aosp strings.

Change-Id: I8c8d70d214bc36504ff0cfbe8d40656eb56d62ff
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Advanced storage: vold swap storage paths

Advanced storage settings patch series:
[1/4] vold: allow swapped storage paths at vold init
      http://review.cyanogenmod.org/56515
[2/4] Advanced storage: vold swap storage paths
      http://review.cyanogenmod.org/56516
[3/4] storage: allow swapping primary storage for apps
      http://review.cyanogenmod.org/56950
[4/4] Advanced storage: swap primary storage for apps
      http://review.cyanogenmod.org/56951

This adds an "Advanced storage settings" menu item under Settings >
Storage with a new option "Swap vold primary storage". Enabling this
option remaps primary storage to secondary and vice versa when vold
initializes.

The implementation is a hybrid of David Hacker's "Add setting for Vold
Switchable Pair (2/2)" [http://review.cyanogenmod.org/48390] and Ricardo
Cerqueira's "Storage: Allow user to choose internal storage"
[http://review.cyanogenmod.org/12858].

Change-Id: I9461b65a8d3afb51c3dbe706687b81bd5f8c920c
Advanced storage: swap primary storage for apps

Advanced storage settings patch series:
[1/4] vold: allow swapped storage paths at vold init
      http://review.cyanogenmod.org/56515
[2/4] Advanced storage: vold swap storage paths
      http://review.cyanogenmod.org/56516
[3/4] storage: allow swapping primary storage for apps
      http://review.cyanogenmod.org/56950
[4/4] Advanced storage: swap primary storage for apps
      http://review.cyanogenmod.org/56951

This adds a new preference to Advanced storage settings to swap the
primary storage path used for applications storage. Only
one of the two primary storage swap methods can be active at a time.

This option is currently restricted to a secondary storage device
located at /storage/sdcard1 to prevent swapping with not-so-permanent
devices like usbdisk.

The effect of this option can be verified by going to Settings > Apps
and swiping over to "ON SD CARD". The bar at the bottom of the screen
should have used/free spaces corresponding to /storage/sdcard1.

Inspiration for this storage swap method comes from Martin Meloun.

Change-Id: I5eb31735baeb8e356f94cc1b87fa9618023db8ce