SystemUI: NL translation

Change-Id: I3471bc2333cb9e9e8d5f2325dd91239c37dc4d5d
(cherry picked from commit a01776813188ed69e8bbb66302887da46f97f26b)
Base: Mirroring layout on RTL languages [1/2]

When Force RTL layout (in developer options) is sellected on RTL language (Arabic, Hebrew, etc) - mirror back to LTR.
There is another commit (same name but with [2/2]) which just changes the strings to match the new meaning for RTL languages.

Change-Id: Ib051b976db4e15dab9caddcd0d49276b5ada3f13
(cherry picked from commit bc9444e213d77b7ef8550ca08517e627e6d6ea3b)
Core/Keyguard/SystemUI: EL translations

Change-Id: I4669c85bcc5fa1b8c5a0d493e17d582f862a9c97
(cherry picked from commit a0a1b36f8f4c8b7dc529db726c5b0999ab7b640c)
framework: NL translation

ps1: app ops: New ops, features, and modes
     Relocate and cleanup new app ops features and PGify it
ps2: Telephony: Modify code to check PUK code length is always 8.
ps3: Telephony: STK CC feature implementation
ps4: rearrange and add some CAF strings
ps8: Few PIN/PUK fixes

Change-Id: Ibc81584e2e7660ee92115e2232f3f4f2bf6f7251
(cherry picked from commit 10018c2c0523b452f9326231aa25fd5b47a4fe43)
KeyGuard: NL translation

Change-Id: I3989f1ee6da8c67b0065c541cae1f52839e2ab09
(cherry picked from commit 8f4b0fe00fb5e190eec1fab14f991e5145052a3f)
Keyguard: AST translations

Change-Id: I43fdf1627c6e308cd853ffb3941ee283e69fbf36
(cherry picked from commit 70dd255f10e32bf31fb3e40be3bfe6bc42586f2e)
frameworks_base packages: UG translations

Change-Id: I78b86ac25d8c0dbea11eb397c30cc4004cb8f546
(cherry picked from commit 3e68fedbe86096b4d1ed3ad9a3e25450ef5e0afb)
core: UG translation

Change-Id: I3364fec6b2fb89b3055a75b3d76bf18401aa953d
(cherry picked from commit bec77b3e16486eeeaa36ab571c1e4a89e649e6bc)
frameworks/base: IT translations

Change-Id: Ib001f8743bf0610d5e796a552ac287a73bdcd14e
(cherry picked from commit 68b70159aa243830ab671853774f18e5e435213f)
Core: CA translations

More strings

Change-Id: I6265c25cad73c32cb980b7827653082e7286e63e
Signed-off-by: arnau <arnaullv@gmail.com>
(cherry picked from commit 505e13470726b485b25979a8d14a6e77125251c8)
FrameworkBase: CS translation

- fixed headers
- added missing, and again
- fixed CAF string

Change-Id: I35977cbcbfd456ec311f23ff4f1d91313772d0a7
(cherry picked from commit 6f35484c0630ddaeccc6389f1fad11e478f2a462)
Frameworks_base: Update DE translation

* Readd App_ops
* Add CAF strings

Change-Id: I037eb1147846e8728a51e494cee752c0017a666f
(cherry picked from commit c91d4669aa6643bae1d9536edfcb584b271dc8a8)
[base] long press back to kill configurable timeout (1/2)
1 - 2 seconds (default)
2 - 1,5 seconds
3 - 1 second
4 0,5 second

Change-Id: I04e12877d60b78fbcd29dcf9cb8a6159ef2debd4
(cherry picked from commit b8f45b5ad85138a5f3e29b183a89a8543f7fe297)
part 1 of LTE toggle support

Change-Id: I2e1cf08b4a6d49492eec63d4106c857b3905addd

Conflicts:
	telephony/java/com/android/internal/telephony/ITelephony.aidl

(cherry picked from commit b0dee96b59305dbb0807230bc223a7608e6b3730)
fb: actually fix LTE toggle (1/2)

I accidentally pushed the LTE toggle patch although it was not ready.
Whatever here the fix for it. This commit does:

- do not assume that on boot ITelephony service is already up. This
  results in a FC on boot up
- handle like before most things in LTETile itself and call only
  the toggle action to prevend above mentioned
- I thought about it to give as parameter current network state
  to the toggle method to prevend to fetch 2 times the actual mode
  (saves 4 lines of code). But based on the idea that we maybe later
  use other shortcuts as well we will not do it.
- cleanup & codestyle

Sorry again

cheers

kufi

Change-Id: I33a694358cc47973c4a75dccae15ccc7062fdc22
(cherry picked from commit db78fd1e0fe88543dced3b4df654a54d88bd48c8)
Fix LTE tile (1/2)

thanks CM for the final fix.

Change-Id: I229551f17f530dac900c2c5dd55263d96f36a277
(cherry picked from commit 37ab15327b76374a20f546591c36d54025e52665)
SystemUI: IT translations

Change-Id: Ia2f9363db8d49160661497967cc4903a6fc33ed5
(cherry picked from commit 2d696a99881da84b5904e69e74ff29a142807323)
frameworks/base: Fix the random UI corruption

On low memory device, when a view goes to background. Its HW layer cache
will be destroyed to release memory. There is a very rare case that the
hardware render is not valid when destroy the layer, so the layer is not
destroyed and reused when the view comes to foreground. But the GL
context has changed, so the view is not rendered correctly due to its
HW layer cache. To fix this issue, destroy the layer in a safelyRun. Make
sure the layer is destroyed correctly.

Change-Id: I1c714e1d53db7353d5169e874a7cd0f527c3f67b
CRs-Fixed: 623239
(cherry picked from commit fb5d952bb415b9a0f313c24c91125ab7189594ee)
Squashed commit of QuickBoot feature from Qualcomm

QuickBoot: don't log boot events when in QuickBoot mode.

Don't need log boot events when booting from QuickBoot mode.

Change-Id: Id381530418c09ac1d650f45e7a368dbd7945aff3

QuickBoot: don't wake up screen when usb connected

Don't wake up screen in QuickBoot mode when usb connected.

Change-Id: If65936a0edbbc3b36a0768294e5c3bd7d741018a

QuickBoot: filt out alarms that for non-system users

Don't allow alarms for non-system users when under QUickBoot
mode.

Change-Id: I322d08f7236b6895462c4cd3304326c66f67ddd2

QuickBoot: restrict app's auto start under Quickboot mode

Don't let broadcast trigger apps auto start when in Quickboot mode.

Change-Id: I5d156cbea4ef18397ce4569cb74f73a446a6e49b

QuickBoot: remove alarms for killed apps

Device may be woken up by WAKEUP alarms, which have been set
by those killed apps before. Here to get the killed apps list
and remove the alarms from AlarmManagerService.

Change-Id: Ib34f5fc234b834b2fe4528229c267c8693fc76cb

SyncManager: Fix SyncManager null pointer issue under QuickBoot

BOOT_COMPLETED broadcast will cause mBootQueue null pointer issue.
Then system_server will crash. Add protection here to avoid
system_server crash.

Change-Id: I78029dfa90709455e4c2220e06b95640383655f8

QuickBoot: add execption restore mechanism

There may be some exceptions like battery unplugged When device
is put into QuickBoot mode. Then device will be in airplane
mode after next boot. We don't want such kind of things happen.
So start restore task to check if need restore before main
screen shows.

Change-Id: I3d0967c2f446fd71eca87ff085617edca549c984

QuickBoot: switch normal power off to quickboot

Handle power off button when quickboot mode enabled.

Change-Id: I6a668cbe823018b5e508633a76202d0df0381694

QuickBoot: support QuickBoot power on

Support long press power key to power on when in QuickBoot mode.

Change-Id: Id493d352bce73683b9696a2685a6c902f1195799

QuickBoot: Don't handle SHUTDOWN broadcast from QuickBoot

Don't process the ACTION_SHUTDOWN broadcast sent by QuickBoot.
It is only for apps.
Change-Id: I73d1a7b8edda0a898dd052831033806e18b37c99

QuickBoot: rename some intents and broadcasts

Modify some improper names for intents or broadcasts of QuickBoot.

Change-Id: I92357b0110643bb425199452cb03bd75248a5d83

QuickBoot: Support poweroff alarm under QuickBoot mode

Add white list in QuickBoot mode to support poweroff alarm.
    1. Allow original deskclock app and quickboot app to be launched.
    2. Don't filter out deskclock's alarms.

Change-Id: Ie4254e3da45837d3185d3daba625a42c50fd7f52

QuickBoot: enable poweroff charging under QuickBoot mode

control native charger's enable/disable under QuickBoot
mode.

Change-Id: I4f80c74b042e03bddc9f7fe419f4ed1f8b1409d5

QuickBoot: Add wakeup check under QuickBoot mode

We only want QuickBoot application to wakeup screen in QuickBoot
mode. Add wakeup check to filter out other wakeup callers.

Change-Id: Id82a0938003d2a776efda0e39a57877f41fc1ee4

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	services/java/com/android/server/power/PowerManagerService.java

(cherry picked from commit 65d99218bb6d6a4e164baa2397359e331ad9881a)
Core/SystemUI: PT-BR Translations

Change-Id: I0af8bea5d9ffe1c9903fa99bce7ce904a6b50ddb
(cherry picked from commit b4206ccb8104adccc0d99589226b36fc5bed69de)