Merge pull request #13 from ValeraSh/cm-11.0

Update RU translation to v33
(cherry picked from commit 61dc7e4741ec7409e97702cf95a6c778649d91f0)
SystemUI: PL translations

Update translation

Change-Id: I8ce714ab50de382c1311e0b9b922129fdce69463
Signed-off-by: jereksel <jereksel@gmail.com>
(cherry picked from commit aaa132f77dd7eb55256b64653e22679512b55f58)
Frameworks: PT-BR Translations

Change-Id: I56687fb4aa28385eb57908a21c6ac29a48caee33
(cherry picked from commit 2d759b1003694ba692e5454dd94edc215c1f0281)
SystemUI: PT-BR Translations

Change-Id: I401fc15e68ec393be917183dbbb301e179a6daf6
(cherry picked from commit 7bed36dd36e33c570b58b1aaa4d4cb4638fc4fe4)
Lockscreen: See through (1/2)

Add the ability to see through lockscreen.
Adapted to kitkat from jellybean by @BigBrother1984

Signed-off-by: D4rKn3sSyS <jesdga95@gmail.com>
Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS2:

* Adding missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I9057a6e302a5a824799844f27e8f64ff677a520a

PS3:

* Replace and remove undefined mContext.
* Define the boolean enableScreenRotation inside new method.
* Whitespaces clean up.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS4:

* Restore mContext in setKeyguardParams().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS5:

* Fixes for setKeyguardParams() and maybeCreateKeyguardLocked() methods, kitkat changed some things.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS6:

* Missing sem-colon.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS7: Fix all the things.

* Effects doesn't vanish after first unlock.
* Created condition in updateShowWallpaper() method that just return if see through is activated, he was restoring the wallpaper at second lock.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS8: Cosmetic changes.

* Correct java style name to seeThrough() and place it above updateShowWallpaper().

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS9: Other cosmetic changes.

* Better name to the see through boolean.
* Removed a space nitpick.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

PS10:

* We had two booleans for the same thing, ditch the one defined in one class only and take the global.

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>

Change-Id: I06d952f85baf284961a24c8c9f90b29f4aef719a

Conflicts:

	core/java/android/provider/Settings.java

(cherry picked from commit e382bdefb88649f4282ee8cb6264933075dee6f1)
Lockscreen Blur (1/2)

Revert "Revert "Lockscreen Blur""

We want to keep this.
This reverts commit dc82b58247e4946acd8ae497a65fd79b0b61ebb9.

Change-Id: I125d911e9e868e2b568876882b252e3375d66e78

Revert "Revert: Lockscreen blur": fix derp

Change-Id: I1dde45b623d8ed13168e68c666d3e0c7fef293ce

Lockscreen Blur: fix old nav/status bar shining through on lockscreen

Fix lockscreen blur on xxhdpi devices (thanks @Curtis Mayers)

All credits to Curtis Mayers: https://gerrit.paranoidandroid.co/#/c/382/

Fix lockscreen blur not working on flo

Fix: Correct possible null pointer when enabling see through lockscreen

PS2: Remove unused variable

Change-Id: I28884cb18964b273539261b8c0f72cedf2e60666

Fix coverflow problem caused by lockscreen blur

KeyguardViewManager: use cached see through setting

When merging PA remote repo, please keep in mind not to use "isSeeThroughEnabled()" but "mSeeThrough".

Merge PA's lockscreen blur without loosing our configurability

Change-Id: Id400b797804bea0fd63bb4fe6135f0966e813a05

Conflicts:

	core/java/android/provider/Settings.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java
	policy/src/com/android/internal/policy/impl/keyguard/KeyguardServiceWrapper.java

(cherry picked from commit cb2452ed2c7b3b85f88340cd4af81b5bdda4d058)
Partly fix lockscreen blur rotation issue

This works very well when changing rotation from portrait to landscape and vice versa but doesn't work when changing rotation from landscape to landscape (90 to 270 deg) or portrait to portrait (0 to 180 deg) because we don't get notified of such changes.

Change-Id: Id4d9b4a6ce061fdb4767a8cb12dd7a8d33c99175
(cherry picked from commit 5014708df1eae1eb3e2d528db86a6ef7b06021c6)
Lockscreen Blur: fix for coverflows

Change-Id: I668ab36cd846b30cdda1b70e2fca2c512211f72c
(cherry picked from commit 4db982af288b3a3bc2ec1991b80b614be08e72e8)
Statusbar clock font style (1/2)

PS1: Initial
PS2: Int settings

Change-Id: Iafb811b9f819a100940fdeeaa2c657483c039950

Conflicts:

	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Clock.java

(cherry picked from commit 24096a0fa3b9a02e0eead450f76ecb49df215b4a)
Clock Font: Adding more styles

Change-Id: I7ff863fba0c33409f6cad28df5bf3003db2aae0f
(cherry picked from commit ff0ae5c8b16a4007f36e1828bcedeb10b5c7358b)
Lockscreen Notifications [1/2]

My try on making notifications easily accessable from lockscreen.
Credits to ChameleonOS, I got the notification listener permission and some small other stuff from their ActiveDisplay implementation.

Lockscreen Notifications allow you to manage all your notifications directly on the lockscreen.

Features:
- Pocket mode turn screen on when phone is pulled out of pocket and turn it off when phone gets back in pocket
- Hide low priority notifications
- Hide non-clearable notifications
- Allow dismissing even non-clearable notifications from lockscreen
- Just turn screen on when there's currently a notification pending
- Toggle between expanded and normal notification view by longpressing

This should still be considered as beta, even if it seems to work very well for me.

Change-Id: I98efd3cab0dd66126954b475c0d093c79ca3f766

Lockscreen Notifications: Make "wake on notifications" user configurable

and some other small changes that hopefully will improve battery live

Change-Id: I56209750fe36f564602c91dc70e28fb774c9dd40

Lockscreen notifications: make height user configurable [1/2]

Change-Id: Ia8ea8a5fa8338494037fc19edab0ab91b417d4a1

Lockscreen Notifications: fix possible NPE

Lockscreen Notifications: try on fixing notifications sometimes not responding

Lockscreen Notifications: always scroll to bottom so one sees the newest notification first

Lockscreen Notificaitons: Fix NPE while on setup wizard on clean flash

Lockscreen Notifications: several fixes

- fix notification not responding when removed and added in a short period of time (e.g. gravity screen start/stop)
- just unlock screen on notification click when there's an activity to start
- fix notification hide animation
- just wake screen on reposted notifications when it's not ongoing (wake on notification before made the device stay awake for ever when a download/countdown or something similiar was running)

Lockscreen Notifications: just scroll down in "showAllNotifications"

Lockscreen Notifications: Copyright

Lockscreen Notifications: make offset top user configurable & add privacy mode [1/2]

Lockscreen Notifications: Fix possible NPE

Lockscreen Notifications: make width dynamic (WRAP_CONTENT)

Change-Id: I98efd3cab0dd66126954b475c0d093c79ca3f766

Conflicts:

	core/java/android/provider/Settings.java
	services/java/com/android/server/NotificationManagerService.java

(cherry picked from commit 6e88ba9bce6cdb2f78d4b00565d8f236187ce7dd)

Conflicts:
	core/java/android/provider/Settings.java
Lockscreen Notifications: make animations a bit faster

Change-Id: Ib780ddfa728d70c559f22976a77090b1ddfb2562
(cherry picked from commit 99d126c3b05bc7e448e8ff6e0c5911d5210bf288)
Fix ongoing notifications reappearing when hidden

& some small animation tweaks again.

Change-Id: Ib866540e6af6cfc21bbb5db6e28aa3eced64e96d
(cherry picked from commit 77bfb06d731cc1ab98c871b0df83b8a4514731ed)
Lockscreen Notifications: fix notifications disappearing on orientation change

Change-Id: I3c2f7ca3ec446c48b471f9c01f7c72284893856e
(cherry picked from commit 5a68db215f196c511561e2c934bc39ed4490fd81)
Lockscreen Notifications: disable dynamic width for devices <= xhdpi

Change-Id: Id45a8d63411b488f9331dcab66bc76cbe5a4b313
(cherry picked from commit d92e176583e37847d4d91d00fab2dbcb8c49c188)
Lockscreen Notification: fix default settings derp

Change-Id: Ief7344359059d72b6498d9d9ce61dfd11b43f404
(cherry picked from commit 1eb85047edef15a00ede2b668cce2157a287f058)
Lockscreen Notifications: fix phone turning on in pocket

Change-Id: Ia0385280510f1d684c5dcf537dd2049c6916ddec
(cherry picked from commit 62a6d3e9f46fc138026c08d9a799f0143fea98f6)
[1/2] Base: Lockscreen notifications: Allow apps to be excluded from being displayed

&& respect quiet hours

Credits to 0xD34D / ChameleonOS for the original implementation for Active Display

Change-Id: Ie0df1faedb275b1cf131d75d69d9d9cafc828dd9
(cherry picked from commit de417661fe3d1b59abb6a6bdad69365c2b32efc8)
Use old see through when blur radius == 0

Change-Id: I02a2ea8356028d76599471345ff7bc6d44f6f9ac
(cherry picked from commit 1523e0fd603e1d848bccfe84028ac3b08cd696ba)
Revert "ExternalStorageProvider: use mount point in device list"

ActivityThread Start proc com.android.externalstorage for broadcast com.android.externalstorage/.MountReceiver: pid=3075 uid=10006 gids={50006, 1028, 1023, 1015}
AndroidRuntime Failed to find provider info for com.android.externalstorage.documents
AndroidRuntime Process com.android.externalstorage, PID:3075
AndroidRuntime java.lang.RuntimeException: Unable to start receiver com.android.externalstorage.MountReceiver: java.lang.NullPointerException at com.android.externalstorage.MountReceiver.onReceiv e(MountReceiver.java:30)

This reverts commit 98639167e2f6f6ddefc1358aff9f578ad87e5e17.

(cherry picked from commit 51bfd974a34e81cb2188a4d20123598003a818c8)