Frameworks: Lockscreen Colors and Lock Image [1/2]

PS2: Separate all color elements
	into separate prefs.
	Also colorize bouncer frame
	for secure lockscreens.
PS3: Whitespace

PS?: Add Lock Icon Picker =]
PS?: Add "Colorize Custom Icon" option.

Change-Id: I542dfa01bb1d3d0e401bbf8a5f58b32f08cbfc62

Conflicts:

	core/java/android/provider/Settings.java
	core/java/com/android/internal/widget/multiwaveview/GlowPadView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
Merge branch 'kk-4.4' into kk-slim
fb: fix and pimp custom lockscreen handle (1/2)

problem on current implementation is that it is not
multiDpi compatible. As well it looks a bit weird if
the user set a square image always. This commit does

- introduce central circleimage method to get circle image crops
- before it was assumed that the height of the handle image is
  108px (mdpi base) which is correct but the original handle
  has a lot unused space around to fit better into the view.
  Whatever after messurment of the real height 68px is correct
  of course calculated against the current density
- both above combined results into a always nice looking
  custom circle icon on the lockscreen dpi and device undependent
- saved file in settings calculates the needed image size
  base on the current density.

Patchset:
- use for custom bitmap our colorize methods due that
  the result looks way nicer then the usual colorfilter

Patchset:
- use AntiAlias

Change-Id: Id0321e0e9176f8f765980f69b412658dbb929ef3

Conflicts:

	core/java/com/android/internal/util/mahdi/ImageHelper.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
Base: On-The-Go: Allow to toggle between front and back camera

Video Preview:
https://www.youtube.com/watch?v=MnPGn0zwpEw

In case you want to pick that feature, feel free to edit the
commit message to get rid of that ugly video ;)

Change-Id: Ia6422bf5bbd531240e62ee57de316a8e6f94546c
Conflicts:

	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/nameless/onthego/OnTheGoDialog.java
Base: On-The-Go: Several fixes

handle camera in surfacetexture
check if notification manager is null before canceling
restart timeout when changing the camera mode
convert settings observer to a local variable
remove redundant try-catch clauses

Change-Id: If637e30f69706dc8b3f1397fafacb24c7bbb5083
Base: On-The-Go: Overlay status- and navigation bar as well

Change-Id: I067981028340cdd53fe112cae9b7a4ddcb7532a8
Base: On-The-Go: Change the way of changing the camera mode

changing it on the fly is too buggy like i have done it.
sometimes things fail and we are getting stuck ;P

on mode change, save the value, create a notification and stop the service.
the notification allows to restart the service.

Change-Id: Ie02f01a4ab2f856cd58fe5fde8c49220bf7efd4b

Conflicts:

	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/nameless/onthego/OnTheGoService.java
Delete unneeded file

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Base: On-The-Go: Allow to restart service on the fly

add a toggle to the options dialog to allow the user to restart the service
on the fly, instead of stopping it and create a notification.

it maybe be buggy, depending on how quick their camera can release and
recreate the instance, thats why i went the stop the service way by default

if the user chooses to recreate it on the fly, it resets the views,
triggers a handler with a delay of 1/2 second and sets up the views again

also increate timeout of the dialog, as the transparent dialog may be
harder to read for users and its annoying if the dialog disappears while
you search for the setting you want.

Change-Id: I1233854c10ee524925834c73ea20fba44c0f2a46

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/res/values/custom_strings.xml
[1/2] Base: On-The-Go: Add quicktile

Also thanks to @Alex-Cruz for all these nice talks, which improved the
quality of the On-The-Go mode :)

PS 2:
On-The-Go drawables, made by Alex-Cruz, thanks!

Change-Id: I9413d4726428240aefd76ab06532b34dbfb04a2f

Conflicts:

	core/java/com/android/internal/util/mahdi/QSConstants.java
	packages/SystemUI/res/values/custom_strings.xml
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsController.java
Base: On-The-Go: Switch Licenses to GPLv3

Change-Id: I3906fd0684b91e6e0535c5b9c5623fcf535e1eb3
[1/2] Base: On-The-Go: Hide on devices without camera

Hide camera switching for devices without front camera as well
if we dont have a front camera, open the first camera we have.
also hide the options from the dialog.

Change-Id: Ic74579708dc4ff030cca97f1f5972dce105431d8

Conflicts:

	core/java/com/android/internal/util/nameless/NamelessUtils.java
Base: On-The-Go: Toggle flashlight when shaking

Change-Id: I42c75ef17640ea6485ee57240abee8582036d60d
Base: On-The-Go: Turn stop and start service if screen turns off and on

Change-Id: I46cbc6a59ab5489ab0fad2b6df355c60599f4cc0
base: cleanup duplicate alarm sounds

http://jira.omnirom.org/browse/OMNI-762

Alarm_Classic is the same as Cesium (updating meta-data)
Promethium had wrong title meta data

Change-Id: I8096a12d2690691ae5252e1ffc48184f0a2c9510
Clean up

Signed-off-by: Chintan Shah <cgintan1998@gmail.com>
Merge branch 'kk-4.4' into kk-slim
Add people lookup settings keys

Change-Id: I2ff9bb7684d04f4f9b640939c7db269873aa3308

Conflicts:

	core/java/android/provider/Settings.java
Frameworks: SlimRecents make it RTL/LTR aware + scaling + lefty mode (1/3)

This commit adds several features:

- Make it fully RTL/LTR aware. Means it shows up on the oposite side if an RTL
  language was choosen. As well icon, textposition, menu etc follows RTL direction.
  So like AOSP guidelines suggest it is fully compatible now for all locals

- Add scaling mode....user can scale the overall size down (especially for the
  user with stock dpi requested)

- Add lefty mode. Recent panel shows up on the left edge instead of the right edge

As well this commit unlinks the construct of the card with the update of the content. This
reduces one update call on construct and gives a tight faster loading.

Change-Id: I4c5105f86644a08da81861851da7e0e347c26244

Conflicts:

	core/java/android/app/NotificationGroup.aidl
	core/res/res/values/slim_symbols.xml
	packages/SystemUI/res/values/dimens.xml
	packages/SystemUI/res/values/mahdi_strings.xml
Frameworks: add favorite mode

Allow user to set favorite apps in recent task list. User can set them with
longpress on the app icon. This apps are always shown in the task list above
the first default one (on phone the first 2 which always show the last 2 active
tasks). Favorites are shown in order of last time they were called. Favorites
settings are saved permanently till the user removed it from favorites.

As well this commit fixes the wrong icon if an package has more then one
activity to call (eg Google+ and Google Photo).

Using for all now a unique identifier.

Change-Id: I3cd7dd6600389c73e678f382377b441612902833