Fix for positioning of glyphs within a bitmap

For positioning of glyphs within a bitmap, roundf(int + float) is used,
where the float is the glyph position and the int is the text position.
When the text position is varied, this may lead to the sum being rounded
in different directions, due to floating point rounding, caused by that
floating point numbers have different precision in different ranges.

This may therefore lead to slightly different positioning for glyphs and
therefore slightly different widths and heights for text strings,
depending on the position they are rendered at.

The solution in this patch is to use int + (int) roundf(float), which
has consistent rounding, and also enables us to use the full range of
ints.

Change-Id: Id1143cdfcbdfa9915ced878ae04df589a3e03cee
replace slim specific pie icons and use these generic ones for now

Change-Id: I758401488a21e0d333e56157cd43816333706a1f
Signed-off-by: scott <scott@ubuntu>
Frameworks: EdgeGestureService give abbility to reduce the left and right trigger height if IME shows up

This patch gives the abbility that features can set the IME_CONTROL flag in addition to the position flags
to enable reducing trigger heights on the left and right edge to avoid conflicts with swipe keyboard.

Although the inputfilter lets come presses to the application trough the normal user behaviour is to start keyboard swiping
before they really even pressed the char button which results in conflicts with whatever feature is using the left and right
edge as trigger.

Features who want to use it need to set IME_CONTROL flag. As well if notification drawer was pulled down or global menu is
shown on top of the IME keyboard the original size gets restored till they are dismissed/closed

This patch adds only the support for it.

PS
- Fix small logic derp in BaseStatusBar
PS
- follow Josues suggestion and make the trigger a bit bigger

Change-Id: I51804d6e0768cc7770a6e52fac454dbad0ab632b
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/inputmethodservice/InputMethodService.java
Frameworks: SlimPie give user ability to reduce trigger heights if IME keyboard shows (1/2)

Add a user option to reduce left and right trigger of SlimPie if keyboard shows up
(especially usefull for swipe keyboard which most keyboards are nowadays). Enabled
by default user can disable it in settings.

Change-Id: I5dce4f36f5b14320f806ac60ad75931fa7f2873b
Revert "Make sure to turn off led after pulse()"

  *Seems to break smdk4412 noitification led

This reverts commit bd20f251096a12f284502540871288ecc2ff2357.

Change-Id: I68e344fdd66ffbb496f1fd36602b62a45b0f4fe3
Signed-off-by: Josue Rivera <prbassplayer@gmail.com>
Base: fix icon overflowing with centre clock

Based on @maxwen commits
1 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
2 - https://github.com/maxwen/frameworks_base/commit/5b4d7714ea5fcc493712b569f456f655bf696076
3 - https://github.com/maxwen/frameworks_base/commit/b5f7820e50fd03522b5462777779a4520594c796

All credits goes to him.

Change-Id: I86dd9b133adc917d8590a7b3c28abd30ccea48f4
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Live Volume Steps [1/2]

-Created by me(@Meticulus) for the almighty BeanStalk ROM!

-Volume steps changes are instant, no need to reboot!

Change-Id: I1f50a68f5e361976f463b2497e2fea765144e5a1
Frameworks: Respect and handle shorcut custom icon resources (2/2)

If a activity shorcut has an extra icon resource or drawable we need to handle
it. Fix this for all out shortcut features. Most is centralized so a small change

fix as well to small sizes of custom icons on QS

Change-Id: I4f1b78e5979e23f5edd0c670510ab5d718710a93
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/CustomTile.java
lvs: transitioned volume steps volume normalization.

-This calculates an equivalent volume ratio for the new
volume steps.

-example: Volume steps are set at 60. Volume is set at 5. That is
very low volume. Then volume steps are switched to 5. Now you
are instantly in a state were your volume steps are 5 and your
volume is 5. That's full volume! This fixes that issue.

-So it basically keeps the volume from jumping around while your
changing volume steps. It may be a little lower but should be
very close.

Change-Id: I5151938997cde9932ee492615dc9bf68c80ca895
Revert "lvs: transitioned volume steps volume normalization."
This is causing some funky issues with system volume.. we need
to look into this for another solution.  Revert this for now.

This reverts commit dbdd32d94175ae772d1c60e71e446c529cd36116.
Add missing drawables for mdpi

this fixes FC's on enabling "contextual notification" in Settings

Change-Id: I678295725cf5c060c95841f96af450e44c87e598
[1/2] Base: Volume panel timeout

Settings: https://gerrit.omnirom.org/#/c/5517/

Change-Id: I15c4c589bde5794d7c961a02022a8e25a4e59500
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java
Merge "[1/2] base: Add ADB Paranoia mode" into android-4.4

Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: I1f9c9e42dcd8cbacd7e7c4bc24c6bdf55db04fc3
Frameworks: fix sdk build

ups....derp

Change-Id: I990ec0808b6aa264b4d92d6829484441e4c842e6
Signed-off-by: scott <scott@ubuntu>

Conflicts:
	core/java/android/view/WindowManager.java