Return: Always show battery on Keyguard [1/2]

Based on the feature by burnsra in CM7

Authored by Blunden
Tweaked by DvTonder
Tweaked by kufikugel

PS 6 : Fix multi-user

Change-Id: I02cc3a0d996ca1fb3c96c6847865655be5518434
Hun Translations updated

Change-Id: I28536cf1370ca95a26acdde12b1b62992bfaeb41
fb: clean up our and AOSP code for wifi and carrier label animation

we introduced with this AOSP commit

https://github.com/SlimRoms/frameworks_base/commit/288e3ec70e866105ba61f9ebf259cad29786ad9c

the ability to keep wifi and carrier label up to date on every network
change which happens. The big advantage of this change is that all the
calls for updating the label which are present in PhoneStatusBar are not
needed anymore. We can reduce it to call only when we have animations in progress
or if notifications update and we must decide if the label is still visible or not.
This are way less animation calls then before and on clean AOSP

As well clean up some of our old code which workaround all this calls.

This commit fixes two present minor issues
- carrier label was visible behind notifications (AOSP behaviour but conflicts with our transparency settings)
- due of new updatehandling it happened sometimes that on switching to QS the label was a bit to long visible
- animations are now completly always in sync

PS:
- animate from qs to notification drawer a bit later

PS:
- simplify it more
- fix direct pulldown QS shows sometimes carrier label

Change-Id: I74b80b8b72817da460703635a027f57bb4858f32
fb: add bottom margin to stock default battery icon

We set the layout parameters programmatically so the fix from
google does not take effect. To solve set the bottom margin
programmatically based on the current display density

Change-Id: I9caa0e729afa19eb7cb852a1df6ad036a2839d1b
Frameworks: Fix 0% battery QS tile

when tile is recreated. Fetch the values from
BatteryController

Change-Id: Id0539016e1c479ac1f75535647d91a26f69a76b5
Keyguard: fix codestyle

Change-Id: I3f1fbab0ae5434b09766cd69c39a133f4a7039d0
fb: disable navigation bar camera button if widget carousel is enabled

Beside that the animation which starts when dragging the camera icon
to the left is broken if the user has enabled carousel animation like
tablets it does not feel natural even when we use the right animation for it.

So diable the camera button in this case and allow only swiping the camera widget on carousel mode

Change-Id: I6ba5eda7cd4603b1644ae088401b57861e4937a1
fb: Keyguard disable challenge drag down on slimpin/simpuk screen

On simpin, simpuck and as well account change screen it does not make
any sense to give the user the abillity to drag down the challenge to show
the widget maximized (neither if widgets are enabled or disabled)
Reason: simpin/simpuck widget is not shown due of security reasons
and on account change the next expected behaviour is that the user gets a new
setup. So it does not make in this case as well sense

Just check for current securityscreen selection to block this behaviour. As
well move the enable/disable code to a proper place

Change-Id: I0b16d1e590252b537d6c71c4aa9b133ed832be45
QuickSettings : Quick Collapse [1/2]

Credits: Danesh M

PS 3 : Implement override method for specific tiles
PS 4 : Create Dependency
PS 6 : Fix multi-user

Change-Id: I0257c7819cc1ccb5d0a092dc23fb9fa4ccec5c3b
Merge changes I3f1fbab0,Id0539016,I9caa0e72,I74b80b8b into kk4.4

* changes:
  Keyguard: fix codestyle
  Frameworks: Fix 0% battery QS tile
  fb: add bottom margin to stock default battery icon
  fb: clean up our and AOSP code for wifi and carrier label animation
Merge "fb: disable navigation bar camera button if widget carousel is enabled" into kk4.4
Merge "fb: Keyguard disable challenge drag down on slimpin/simpuk screen" into kk4.4
Merge "QuickSettings : Quick Collapse [1/2]" into kk4.4
Merge "Return: Always show battery on Keyguard [1/2]" into kk4.4
Frameworks: Favorite Contact Tile (1/2)

Based Heavily on the work by:
	Dirk Rettschlag (MarcLandis)

Change logic to our tiles
	and implement key logic
	from my custom tile.

PSX: Create Dependency

rebase

Change-Id: I3b963752a8757b64b9f7ffe58cc4c59064e4ff04
Return: Smart Pulldown [1/2]

Adds the ability to directly open the QS panel when there are
no notifications present in the notification panel.
This commit combines the enhancement by HardCorePawn for detectin
notification types for the same.

Credits: kufikugel, HardCorePawn

PS 2-4 : Cleanup

Change-Id: I3c9b048f2616d2b8950930cc5bfac27c2364e826
fb: force carrier label height on first boot

reported tester issue:
- boot up
- pull down QS before any network action was done
- carrier/wifi label is shown on qs

Expected behaviour: should not show up on QS in any cases

Fix: force hide on first statusbar construct

seems to be in rare cases this update is needed to avoid showing the carrier
label on QS on first boot up and no connection is there hence emergency label
is shown

Change-Id: I72d2ddc7767938dd2ea657bd2d976b945b1f6467
frameworks: translate - RU

I3b963752a8757b64b9f7ffe58cc4c59064e4ff04
I02cc3a0d996ca1fb3c96c6847865655be5518434

Fixed tab

Fixed double defined string

Change-Id: I16ff720b97f45bc01fcdd42ec584b8f387fca9d9
Merge "frameworks: translate - RU" into kk4.4
Add native java screen recorder [1/2]

This is based on the screenrecorder binary found in frameworks/av.
It has been converted to a native library with the necessary jni
hooks for interfacing withit via a ScreenRecorder java class.

Volume up + power chord is used to start and stop recording by
binding to the service found in the ScreenRecorder app:
https://github.com/ChameleonOS/android_packages_apps_ScreenRecorder

PS1:
Clean up white space.

PS2:
Fix naming convention for state field.

PS3:
Rebase

PS4:
Post mScreenRecordTimeout with 1000 millisecond delay instead
of 10000.

PS5:
Send record screen broadcast instead of using the service
directly.

PS6:
SCREEN_RECORDER_FRAMERATE should be SCREEN_RECORDER_BITRATE

Change-Id: I5b7af9b4b4f24a8c54ac0f9dcb36ace16672e2cf

Conflicts:
	core/res/res/values/vendor_strings.xml
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java