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>
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>
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
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
Merge "Keep app when opening floating window from recents panel" into kitkat
Merge "Fix for positioning of glyphs within a bitmap" into kitkat
Merge "Correct stride for drawing to cached glyph bitmap" into kitkat
Merge "Set strings to  translatable="false"" into kitkat
Merge "PEEK: Beautify bridging layers code" into kitkat
Merge "IT: Automatic translations import" into kitkat
Use alpha channel instead of red in drawCachedGlyphBitmap

the correct value to copy in bitmap is alpha component from
the cachebuffer. currently it is offset to red channel if format is
RGBA which is wrong.

this is followup fix for https://android-review.googlesource.com/#/c/93943/

Change-Id: I96b5ba35df5ccaef44caf2542d35d6585ba1df80
Signed-off-by: Digish Pandya <digishp@codeaurora.org>
Signed-off-by: houst0nn <houstonn@gmail.com>
Merge branch 'kitkat' of github.com:AOSPA/android_frameworks_base into kitkat