framework: fix screenshot and rotation animation

for devices with abnormal hw rotation (e.g. hwrotation=270 or 90)

port forward from:
https://github.com/CyanogenMod/android_frameworks_base/commit/ac555b9ca9a76d13a26fc9ea40980fe57258761b#diff-d6f7bba268a742c91252cc9e64e2381a

Change-Id: I8dd0568c9261466178c737975a418321c3c634d1
Merge "framework: fix screenshot and rotation animation" into android-4.4
Base: more fix Active Display (again)

maybe fix
http://jira.omnirom.org/browse/OMNI-313
http://jira.omnirom.org/browse/OMNI-421
http://jira.omnirom.org/browse/OMNI-401

Change-Id: Id947e18a9299200f1ccd41aa70e56534fdbb4b57
SystemUI: temporary workaround for garbeled screenshot preview

The problem shows some underlying issues View.LAYER_TYPE_HARDWARE
so this is NOT a fix. Just since this issue is so obvious visible
it would save us from a lot of bug reports and questions for now :)

Change-Id: If188aa668c1024e857d931ccef4ad3e99edce348
Force disable hardware keyboard

Change-Id: I12ffa641186144b075292d103def4da34b7bbc7b
Turn off carrier provisioning by default

Whether or not to use carrier provisioning is a setting hidden to the
end user that is currently not set. Unfortunately, on some carriers that
may result in it being set to yes, or effectively set to yes, without
other accompanying changes that must occur, such as setting a tethering
apn and possibly having a carrier provisioning app, resulting in hitting
a paywall when a tethering plan exists, or, worse having nothing happen
at all when you try to tether since the data doesn't have an apn set.

Change-Id: I3b5b3cc86e3325302411f46e3fd5f7a7c1b9f57e
SystemUI: Forward port Statusbar Clock and Date actions

Port of http://review.cyanogenmod.org/#/c/27795/4

PS2: Cleanup and address comments
PS3: Remove unused variables

Begin old commit message-----------

Patch set 1-2: Initial port
Patch set 3  : Fixes date click action
Patch set 4  : Remove unused import

Includes:
- Add onClick action to notification clock and date
  In expanded StatusBar
  - clicking clock opens alarms
  - clicking date opens calendar - today selected
  Id: I850732dcca0e65af59ce009aaf9f7ba18bcaf915

- Add onLongClick action to notication clock and date
  - As discussed with ciwrl on google+, LongClick opens DateTimeSettings
  - Moved on-touch color change to superior xml solution, as suggested by
    Andrew Boren <preludedrew@gmail.com> here: http://review.evervolv.com/#/c/3676/"
  Id: I1fae71e347ffcb786227ba0b2651a66f2df35e27

- Add SET_ALARM permission for SystemUI
  If one or more third-party alarm clock app is installed, clicking clock should
  open an app chooser for the alarm clock. However, permission for
  com.android.alarm.permission.SET_ALARM is required to make this behaviour
  work properly.

Change-Id: I8006e57a953fe0c4be480e0aa27a4c28c672f982
Suppress String resources build warnings

warnings suppressed are:
aapt: warning: **** string '%s' has no default or required localization for
aapt: warning: string '%s' has no default translation in

Patch Set 2: move ifdef and only suppress warnings for packages that
             define NO_DEFAULT_TRANSLATION_WARNINGS and/or
             NO_LOCALIZATION_WARNING

Patch Set 3: by default do not show warnings unless
             SHOW_DEFAULT_TRANSLATION_WARNINGS and/or
             SHOW_LOCALIZATION_WARNINGS

Change-Id: I50ef2a623959a1cc53053b446328df8e34cc99e8
Base: Cleanup translations to get rid of compiler warnings

Squashed of 4 commits by kufikugel:

commit 1612533cffda5b3c3d76c4daa1c3d9938391da2a
Author: Lars Greiss <kufikugel@googlemail.com>
Date:   Wed Dec 11 18:57:28 2013 +0100

    DocumentsUI: google please cleanup your translations....DocumentsUI cleanup

    it is really at the moment a nightmare to see compile errors when
    getting 100000 of warnings. Whatever we removed already on some
    packages the warnings....but still a lot are there

    Change-Id: I51682d5b74f76cb5e14d0a51d7694ee7235236be

commit 36b4bf5727947b3b1a93298e32c85d95c36b8080
Author: Lars Greiss <kufikugel@googlemail.com>
Date:   Wed Dec 11 18:48:34 2013 +0100

    Keyguard: google please cleanup your translations....Keyguard cleanup

    it is really at the moment a nightmare to see compile errors when
    getting 100000 of warnings. Whatever we removed already on some
    packages the warnings....

    this package is the best.......nearly every language has left
    overs where not one string is used at all and one string
    which is used does not exist in system language

    whatever remove and add it like it should

    we are now warning free

    Change-Id: I06a3a3d15560aa04abd8c6c4981ac12c6dbc0c90

commit 3cd5da20b444731251c84ad4bd8422d03d76f28c
Author: Lars Greiss <kufikugel@googlemail.com>
Date:   Wed Dec 11 17:54:47 2013 +0100

    fb: google please cleanup your translations....fb cleanup

    it is really at the moment a nightmare to see compile errors when
    getting 100000 of warnings. Whatever we removed already on some
    packages the warnings....but still a lot are there

    Change-Id: I1cc3abee5b4820d9c56b89056f1ea7e4d798947b

commit 2454e3718c7cb32fa700d1ac2b6afc2383dec1f4
Author: Lars Greiss <kufikugel@googlemail.com>
Date:   Wed Dec 11 00:30:54 2013 +0100

    fb: google please cleanup your translations.....systemUI cleanup

    it is really at the moment a nightmare to see compile errors when
    getting 100000 of warnings. Whatever we removed already on some
    packages the warnings....but still a lot are there

    This commit cleans up SystemUI

    Change-Id: I4e246e1cfc13bb18eb75624510e53731821ff553

Change-Id: I5f2bcd7f4a1acb7a28643c1c1203a886db10cc92
services: don't clear wallpaper when SystemUI
disconnects.

When we restart SystemUI (or the user), sometimes
the wallpaper would get cleared. This patch just
captures its originating component and
if that is our SystemUI component, ignore the event.

Change-Id: I3e159dc2c013e7d7e552e3c0cef55e3ab970ca87
Signed-off-by: Roman Birg <romanbirg@gmail.com>
Change Quick Pulldown from 70-85%

Change-Id: I9d6c291a5d16460fe5353fe60c5c78045bb26e96
Camera: add ISO mode support

Change-Id: Ied2075f950269990d836fc768b2c6c36088d494f
Camera: add additional ISO modes (2/2)

Change-Id: I3460c3de4cbef467430673146a9ddb2fdc8f5032
Fix Photosphere/Camera FCs

Photosphere is setting a few parameters "blindly"
while the API says it should check the device capabilities first.

On TF101 (and probably other devices) the camera HAL doesn't handle
FLASH_MODE & SCENE_MODE and so it sends the required RuntimeException
for these, which makes Photosphere FC the Camera app.

=> Fix: check device capabilities & ignore these 2 parameters if the device doesn't support them.

Fix based on following Team EOS patch: https://review.teameos.org/#/c/1598/

Change-Id: Idd80299802e9213a3c40414ace3d516d39f47783
camera: Add support for sending raw commands

 * Certain camera drivers need magic commands to select special modes
   such as ZSL or HDR. Add support for sending raw commands from
   applications.

Change-Id: I512a765c7a67ffd2877e465cf6493ffc2b3b54ac
Camera: Add support for QC camera features.

Added APIs and keys for all QC features. This
will enable application to get/set paramters.

Change-Id: I58a53c7b9133a3acddc34b268dac086c9562d533
Privacy Guard : Reimplement backed by AppOps

Re-implements privacy guard to use appops.

Change-Id: I2b52e8cf0d6e126fb156f83df885b5551503cd9d
PrivacyGuard: add missing @hides to method definitions

Causing DroidDoc compile errors, this fixes it by adding
a @hide to the respective function definitions.

Change-Id: I27675cd6a75fcc1535c812566e5b9098b11335e1
Frameworks: Statusbar clock and date customizations

Some things changed on kitkat + our old code needed in general a bit
rework. All done with this patchset.

This commit add support for:

- Clock and date enable/disable
- Clock and date position
- AM/PM styles multilang support
- color
- Date format
- Date style

Change-Id: I73d854ed5cfb57fa19e4b5554bb10cb2e1ce9b65
avoid crash if hardware accel fail

Change-Id: If259bdb16d6fc248cb2152d42e6dfc60948df7dc