Animations fix black space with enter only and translucent reverse exit

Change-Id: I7e516805639307a8d9e0b2e66aac2c05fdb69c5f
Signed-off-by: Steve Spear <steve.spear@openpeak.com>
Make Navring available to devices with no navbar

Swipe up from bottom of screen to access navring

Change-Id: Ib29b37f26187a65faef17571328cef57f6896b29
toggles: longpress Torch to get into WhiteScreen

Change-Id: Ia76baf843c77153e703e73bc9ca80c245415a70f
Signed-off-by: Arnav Gupta <championswimmer@aokp.co>
DocumentsUI: Add a standalone File Manager

This commit adds a standalone mode to the DocumentsUI, to let
it act as a file manager/explorer.
You can browse your storage contents, open files, and delete them,
as well as do everything that the DocumentsUI can do (ie. sort
by name/size/type, list and grid view, recents, search, ...).

This gives us a consistent file browsing UX accross all apps
that uses the new documents API.

Change-Id: If73a3c100f010bdb766c843976d4fd3573ea805c
Volume adjust sound preference 1/2

Change-Id: Ib74004a1416d0f6a444cc664e8addeeadb3dca91
Signed-off-by: Dirk Rettschlag <dirk.rettschlag@gmail.com>
Merge "toggles: longpress Torch to get into WhiteScreen" into kitkat
Merge "DocumentsUI: Add a standalone File Manager" into kitkat
frameworks/Documents: ES translations

Change-Id: I289b56f1b9ecdfe1d37633eb64b24eea5c927d9f
Fix Icon size in DocumentsUI

For XXHDPI devices if you go into Settings/Display and Notification light and select a custom value (application) you will see a GIANT icon.

Before - http://i.imgur.com/DRkua3T.png

After - http://i.imgur.com/f7xW4tY.png

Change-Id: Ia355bddc515906134c8b3b4e67d381aaacceec78
DocumentsUI: add translations from OmniROM

Signed-off-by: Arnav Gupta <championswimmer@aokp.co>
Merge "Animations fix black space with enter only and translucent reverse exit" into kitkat
FW: move kill-all to bottom right in landscape

The Rambar covers up the Kill-All button since its re-implimentation.
Move the kill-all to the bottom right so they don't overlap.

Change-Id: I07cd071a429605aef6cb61b11d772ae81f798e2b
Signed-off-by: Andrew Warfield <hiasant@gmail.com>
Make sure to turn off led after pulse()

setLightLocked() will update mColor. This will cause the led to not be
turned off after the pulse.
When notificationManager starts a attention pulse the led will be kept
on. Since attention is of highest prio nothing can turn it off.
This is fixed by resetting mColor back to 0 after the call.

Change-Id: Id60ef96e5c21b47c23002f0bcf2fae7fb3f2ca10
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
Czech translation for DocumentsUI

Change-Id: I281704fb1230340332671bc81399e93bd4397284
Signed-off-by: kecinzer <kecinzer@gmail.com>
Merge "Fix for positioning of glyphs within a bitmap" into kitkat
Merge "Czech translation for DocumentsUI" into kitkat
Fix resource leak: When call MediaMetadataRetriever.setDataSource or getFrameAtTime should ensure call release in finally to avoid resource leak
                   Patch set 2: Remove unnecessary white spaces

Change-Id: I49a7f2fb99dc8b9560e7c17421125356e45a87ac
[ActivityManager]: Fix the activity visibility state not sync between ActivityManager and WindowManager

Symptom:
When press Home key to home screen, user is able to see the activity's window shown on top of wallpaper and below launcher(widgets).

Root Cause:
The ensureActivitiesVisibleLocked() is called pretty often (for example when a new process bound).
If the top activity "B" was finishing, then the previous activity "A" should be visible.
Therefore, the activity "A" window will be set to visible and then launched activity "A", but it does not updates the visible state in ActivityRecord for "A".
There has a timing issue that if a new activity "C" is started, "C" becomes the new top activity and be resumed.
In that case, Activity "A" window will remain visible even if it is behind a full screen activity "C" because the ActivityRecord.visble of "A" is still false, so the window visibility won't be update.
So when user press home key and back to launcher, the surface of activity "A" will be composed on top of wallpaper.

Solution:
Updates ActivityRecord.visible to true for "A". After "C" is started, the "A" will be called WindowManagerService.setAppVisibility() to set invisible, then called onStop() when execute ensureActivitiesVisibleLocked() again.

Change-Id: I536ba04b95d8d274fea6d679a6493e620bc981e2
Fixed cancel() not working correctly

The method handleMessage(Message msg) from mHandler variable was
not checking if the timer was cancelled, so
sendMessageDelayed(obtainMessage(MSG), delay) was keeping the
timer alive. The patch simply adds a boolean and checks if the
CountDownTimer was cancelled before calling
sendMessageDelayed(obtainMessage(MSG), delay)

bug: https://code.google.com/p/android/issues/detail?id=58668

Change-Id: Ic6bbb9d33a3616f8503db222513cc14ad2270cb8
Signed-off-by: jl1990 <jlcarrasco1990@gmail.com>