SystemUI: PT-BR Translations

Change-Id: I401fc15e68ec393be917183dbbb301e179a6daf6
KeyGuard: PT-BR Translations

Change-Id: I0349a0b2500dfa743f0a6c8b1d027655868d6ce7
p2p: Display P2P peer MAC address if device name is empty.

Display MAC address of a P2P peer in an invitation prompt
message on receiving invitation request from the P2P peer
with empty device name.

Change-Id: Icabeb91d666437746eb5a733ec582849eb7295a5
CRs-Fixed: 506109
SystemUI: code cleanup
LockScreen: allow long-press actions from hardware keys (1/2)

Allow following actions with button long-presses on lockscreen:
- toggle flashlight (if available)
- play/pause/next/previous track selection
- toggle silent mode

Allow customizing of back, menu, and home buttons. Search
button events are completely ignored on the lockscreen.

Auto-detect hardware keys, only show appropriate menu
options based on the actual hardware keys available on the
device (or completely hide if there are no hardware keys).

Based largely on Danny Baumann's work from gingerbread.

Ported from CM10
Change-Id: Iff32736d00ca5d4122f64a6a861bbb0a1de9cca9

Fix home/menu unlock with long press hardware key
- Forward port of commit 2a572ee
Change-Id: Ic2eb85542f8052fe1662244fe5e72ba12a98608b

Keyguard: Fix for home wake/unlock
sometimes device is waking and unlocking during the same keypress.
Change-Id: I72ea7611d39aac0cd03dfd5aa7036aeef7600140

Use sticky broadcast to convey torch state (1/2).
It doesn't really make sense to store the (non-persistent) state of the
torch in a (persistent) setting. As the torch is sending a broadcast
anyway, make that broadcast sticky and use it to convey the state.

Also unify the torch constants (actions, extras, activity names) at a
common place.
Change-Id: If845bef27cc79990794aa748dce18cfea3bac1f5

Fix Home/Menu/Back keys' unlock
Change-Id: Ibd3842b6ad8e037a2a9f8eb581e7c55900017b0f

LockScreen: allow hardware key longpress to put device to sleep
Change-Id: I54260e21c462bcabd9b6383e22f44d644630b4d3
Camera button support (1/2)

Add new bitmask for Camera button and "hasCamera" boolean.
For those devices that have dedicated Camera key
(like Sony ZL/ZR/Z1/...)
Change-Id: I1a6681664f9f3fd3f30221ba10b082cb5f8cafca

Camera button support: make it actually work
Previous commits were merged so fast that I didn't even
added the code that actually DOES launch the camera.
Let me fix that.
Change-Id: I4fcb3c46e5fd50e273dcf19fd3eb35a3f9d979e0

Camera button support: useful features & bugfixes (1/2)
Screw the remapping, let's make something more useful!
Replaced the code to actually launch Camera app, not just fire the shutter.
I won't remove it: it's cool to have an option to double-click Home for Camera.
Added:
  * Camera wake (with button half-press) and unlock options
  * "Peek": releasing the half-pressed Camera button will
    turn the screen back off
  * Camera playback control

Change-Id: Id49e09e20d81cd80d9800ab8ab0f200d44485a09
Remove 'Allow custom buttons' checkbox (1/2)

Let hardware buttons be rebound by default.

Change-Id: Ib4fcae7d93dc63d53490442d7ff44678583b0d9c
Framework: Add option to always show battery status on lockscreen (1/2)

Based on the feature by burnsra in CM7
Authored by Blunden
Tweaked by DvTonder
Change-Id: I642da4dcd82a776a74d77031d37acc76f97b25af

lockscreen battery status: add off option (2/2)
Change-Id: Ie10015865f161e783dc394d467e456d51dc9fbbc
Show confirmation for deleted screenshot.

Change-Id: I4a36cf06bf252e5e15fe08fbd054dc64a0a507ae
Core/SystemUI: PL translations

Port from cm-10.2 + add missing translations

PS2: Fix whitespace

PS3: Ciche godziny -> Godziny ciszy

PS4(Core): Redesign and clean (it looks like default one now), translate missing strings

PS5: Fixing (thanks Piotr)

PS6: Buttons name will be in uppercase like in cm-10.2: https://github.com/CyanogenMod/android_frameworks_base/blob/cm-10.2/packages/SystemUI/res/values-pl/cm_strings.xml#L55

Change-Id: Idcebd37553014fa619daf6c50e46ad770864402c
Signed-off-by: jereksel <jereksel@gmail.com>
FW_SystemUi: HU translation

Change-Id: Icb9aa20a8f06b7ac229ed1c977a802482bdfdfbb
FW_Core: HU translation

PS2: Correccting

Change-Id: I66c3de7cab88d6899189bf7781de2f61bc6f1940
Core, SystemUI & InputDevices: AF Translations

    Change-Id: Ie88d5f5a08cf4ddab068d1066e0fa3dd0ba5a2fd

Change-Id: I77ec84cc7f6b23e30414e71e0b9c3f2fe79db2d0
Revert "Remove the navigation camera icon in keyguard if disabled by DPM"

This reverts commit 6eef309ae2e85e96f276b18a4f989f2086e2cf9c. The camera
widget itself not showing is a bug with the lock screen. The navigation
icon should be displayed.

Change-Id: If6edf7e70f48a1b272d336e9a9245095af10b38f
Fix visibility of camera widget on insecure lock screens with DPM

The camera widget should be visible on an insecure lockscreen even
with the KEYGUARD_DISABLE_SECURE_CAMERA policy flag set.

Change-Id: I37ff905c6325be9120b16984d3401f334ad00e4c
FW_InputDevices: HU translation

Change-Id: If36e8300ef68285e2b66d8a1f27aa3ecb6d7261f
frameworks/base: TRDS 3.0 and new theme engine preparation (1/3)

For the one who do not know this feature see as reference
the first two versions here:

SlimRoms/frameworks_base@b330fde

SlimRoms/frameworks_base@3194015

we got now over a year now a lot experience how to handle the qualifier
fallback
as well how to theme it and how to handle other apps. Based on this
knowledge we
redid some parts of TRDS engine with following new features/additions
and fixes
to have now a final perfect working TRDS

- compared to the old versions where it was needed on some apps to
restart them
in background this is not needed any more. All is handled about the
internal
AOSP resource handling and on qualifier change the caches are cleared
and the apps get an onconfigurationchanged to restart the activity
like it is doing on orientation change eg
- inverted folder is now depreciated and the new folders are holodark
and hololight which allows on the one hand a dark theme (at least
how TRDS started) and a light based theme hololight
- This name change is mainly because of the new theme engine which
will come which uses this as base to add 2 external themes at the same
time and give the user the ability to switch between them. But this is
still in early stages and this commit is just the preparation for it
- Two new automodes are now integrated. User can enable the twilight
modus
which enables/disables holodark/hololight depending on the
daytime...means
on the evening it switches to holodark on normal day it is hololight.
The other automode is based on light conditions....means that if it is
dark outside it switches to holodark....if we have bright light
conditions
it switches immediatelly to hololight. Due of the resource cache
handling now
this happens immediatelly for the user and feels completly system
integrated
and happens without delay. A bit comparable to some navigation tool for
cars
which can switch automatically from dark to light and back
- currently the auto modes as well the manual mode switches between
holodark
and hololight. Due that we do not have currently anything hololight
themed
in the source hololight = stock theme. We will give the user the ability
later when done to choose between which modes the user want to switch
(stock/holodark/hololight). But this does not make sense at the moment.
As soon as we have done the light theme or theme engine (lets see what
comes first) we will open the ability to choose it. This is only a small
code change
- a lot small tweaks and fixes went as well into the new version

Whatever this commit as usual adds the support for it. The themeing is
done in the
other commits by kroz which is as well way more extended then on the
older versions

cheers

PatchSets:
- minor code cleanup

PatchSet5:
- use one value for auto modes

PatchSet6:
- kill resource caches on configuration change

PatchSet7:
- register settings observer lol

PatchSet8:
- fix not assigment of config mode change (typo lol)

PatchsSet 9 -11:
- playing around aosp qualifier is not that flexible then I thought
whatever back in most parts to original implementation handling

PatchSet 12:
- now no restarts of any application needed any more like it was on
4.3...yeaaah
- fix wrong shifting in native adapter
- fix wrong call of twilightmode
- disable debug
- cleanup

PatchSet 13:
- fix lightsensor

Patchset 14:
- no need currently to recreate the navbar we can do if a theme needs it

Patchset 16:
- synchronize on sending config change
- only send if system is ready
- fire first update when system is ready

-rebase
Align code
res/drawable: update drawable
Fix miss code