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.

https://android-review.googlesource.com/79742

Change-Id: Id1143cdfcbdfa9915ced878ae04df589a3e03cee
Signed-off-by: houst0nn <houstonn@gmail.com>
Correct stride for drawing to cached glyph bitmap

fixes the glyph cachebuffer index to account for pixelbuffer
format size.

issue: in launcher home screen create icon group and rename the
group to some text string with emo-icons (smilies). without this
change the drop shadows for emo-icons will look bad.

https://android-review.googlesource.com/93943

Change-Id: I525a9219d35f4541363fd64e7fc5fd1053269725
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
Signed-off-by: houst0nn <houstonn@gmail.com>
Notification Shortcuuts: Set item pressed color to grey instead of dark blue
Keep app when opening floating window from recents panel

Start activity asynchronously by appending it to system's
message queue to let RecentsPanelView cleanly execute
dismissAndGoBack before the floating window gets started.

Change-Id: Ie9c74b9f0b39f3aee81c62246cdcae15de83ee0d
Dismiss IME when floating window is dismissed

Previously the IME would be stuck on screen if the
floating window was dismissed while it was showing.

Change-Id: I8ca61b07ed89bae85eabd8db23f87b6f1f0b179f
Signed-off-by: Evan Anderson <evan@thelinuxman.us>
SystemUI: Smart Pull-Down - Any Notification (1/2)

Change-Id: I8656b75550ea0d30d4c620160221ca22ffe1af92

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
PEEK: Beautify bridging layers code

* Save new instances for Peek and PowerManager:
    Create it only in BaseStatusBar when start() method is called. That one
    will be passed throught the sub layers such like new helper class so another
    feature can check Peek state invocking from NotificationHelper class.
* Move phone listener to new helper class.
* Do not show Peek on sim pin lock screen.
* Process new incoming notifications only if screen is off, keep updating notification array separately.
* General cleanup.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Change-Id: I9efde073df35b92e42b9faa9930d2fc39b3a43b9
Fix force navbar feature due to missing codes on PhoneStatusBar
Keep app when opening floating window from recents panel

Start activity asynchronously by appending it to system's
message queue to let RecentsPanelView cleanly execute
dismissAndGoBack before the floating window gets started.

Change-Id: Ie9c74b9f0b39f3aee81c62246cdcae15de83ee0d
Revert "SystemUI: Fix missing top task in recent panel."

This reverts commit b86eeef3ffa4cbbaeca54f479b101a3adbe3b04e.
Revert "fb: unbreak recents animations on thumbnail click or dismiss recents screen"

This reverts commit bc1f5f18b635a41061941d1c98c33c6abdafb229.
IT: Automatic translations import

Thanks to crowdin system and contributors:
https://crowdin.net/project/aospa-framework

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
Set strings to  translatable="false"

prep for crowdin automation so users will not attempt to translate these

Signed-off: Andre Saddler <dresadd09691@gmail.com>
Change-Id: If7d7f2d169ee30d44ec154c64105495e5a384f55
Add CPU boosting hooks

 * Send boost hint during scrolling
 * Still relevant on even high-end hardware

Change-Id: I72f2c2851b01fbceabddead03a4c3a7a0526ca61
settings: Enable the status bar double-tap to sleep gesture

Change-Id: Ibe4f1d0c864f261211d7ded418abfe45633e1392

Conflicts:
	packages/SettingsProvider/res/values/defaults.xml
[1/3]frameworks/base: add "Accept all files" option for incoming files via Bluetooth

This patch defines a key to store the option value in Settings Provider db

Change-Id: I993d7ec77b49f608a5a17e5a8516e52fc5d82946
Merge remote-tracking branch 'PA/kitkat' into legacy-staging
MSimNetworkController: disable log spew

Some logging statements are not properly guarded leading to logcat
flood every few seconds.

Change-Id: I2a34b21d23891a3506f7024c464eb2ddf273e715
Merge "Keep app when opening floating window from recents panel" into kitkat
Merge "Fix for positioning of glyphs within a bitmap" into kitkat