[1/2] Frameworks: Add in-the-spot user preference dialog

This is a new way to setup your device, more intuitively, without diving into a sea of a hundred of menus
The basic idea is taken from TouchWiz roms (here: http://goo.gl/W40rF6)
Also create a helper class for implementing this easier all around the ROM and implement it for first time on Quick Pull down

Drawables by Arz Bhatia

PS2: Code style fixes

Change-Id: I95695a8cbbfea7740b6417ff9ba9ef84e0b7cdd7

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values-es/pa_strings.xml
	core/res/res/values/custom_symbols.xml
	core/res/res/values/pa_strings.xml
	packages/SystemUI/res/values-es/pa_strings.xml
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
Remove unnecessary return statements

Change-Id: I92501efcb180ac92b0675bdbf25a4f33b36bfb40
Long press recents to switch to last app

Change-Id: I8c52a7b40d4229d523bccc1c9246673b82f5b48b
Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/pa_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
Framework: Create "on-the-spot" preference dialog only if needed

Squashed:
https://github.com/AOSPA/android_frameworks_base/commit/a0f377fadd1fa6fcb2c3907b2ff73ccf5d77da27

Right now a new instance of the "on-the-spot" preference dialog gets created
each time when the user taps on the immersive tile or each time when the
user pulls the statusbar from the right side. It should only be created if
it's really needed.

PS2: RecentsActivity clear all
PS3: Made method static and check is in SettingConfirmationHelper
	(thanks to Yamil!) + rebase ("Long press recents to switch to last
	 app"
PS4: Removed unneeded variable

Change-Id: I464edebbfec9e3452d36876ed8ef69ab915fd872
Signed-off-by: Parthipan Ramesh <parthipan.ramesh@gmail.com>

Conflicts:
	core/java/android/view/VolumePanel.java
	packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
SettingConfirmationHelper: Create internal UiContext to load themed resources

As for Theme Engine introduction, we have to handle context changes. In this case,
a wrong context is passed from VolumePanel to SettingConfirmationHeHlper to be able
to write to system. We fixed it by sending a system context separately from VolumePanel
to let it write to system. Although, right now Safe Headset dialog isn't themed because it
doesn't receive the theme context.

Fix that by creating a new UiContext inside SettingConfirmationHelper, that we will use
just to load themed resources.

Continue this https://gerrit.paranoidandroid.co/#/c/4452/

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Conflicts:
	core/java/android/view/VolumePanel.java
SettingConfirmationHelper: Unbreak public api

Missing @hide for javadoc breaks public api.

Change-Id: I29c5e8b5b2ae5a998fdf84895808f79d1e7ae500
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
MultiUser: Bring support to our features

Implements long-overdue support for multiuser in key areas.

Points of interest:
 * UserHandle.USER_CURRENT can only be used in getting a setting
 * Status bar is recreated on user switch to load quick settings tiles
    * May change in the future for less performance impact

Signed-off-by: Evan Anderson <evan@thelinuxman.us>
Change-Id: I9659f7f761850fdbe1be500fe784c30aea82d03d

Conflicts:
	packages/SystemUI/src/com/android/systemui/BatteryCircleMeterView.java
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsContainerView.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsModel.java
	packages/SystemUI/src/com/android/systemui/statusbar/pie/PieController.java
	packages/SystemUI/src/com/android/systemui/statusbar/pie/PieMenu.java