appops: Fix an off-by-one error that causes the location icon to stay on

Commit bdfde4fc820fad768dbc596b17507e4cdc84b850 added Bluetooth AppOps
capabilities, but it contained a subtle bug where the string representation
was added in the wrong place, offseting every operation after it by 1. This
broke the toString functionality but didn't have any consequence since this
was used for logging purposes only.

Commit b01b08928a42a626f5f1c6c18a20d786fb873d75 changed AppOps so that
operations are persisted by name instead of by index, this caused the string
representation offset to affect functionality and, among other things, one
of the consequences was that coarse location requests were being interpreted
by AppOps as high-energy location requests.

Change-Id: I319f1ac1c5910098689b4cb8645eb92c0e3538cb
(cherry picked from commit 82bb89b95b2695af832e50f7988e7651615a331e)
telephony: SignalStrengh: Don't calculate a LTE snr if the srq is invalid

If the previous values are invalid and signal quality is -1, chances are there's
no LTE signal at all, so don't calculate the SNR and mark it invalid as well.

This fixes the strength indicator in GSM devices where it was being skewed
by the ghost LTE value

Change-Id: I070573401c141aa99941a332ee256246697abb90
(cherry picked from commit a41a50054e6ee6ada31e98467f050bd8a4b9beed)
ProfileManager: fix coding style

Change-Id: Ia0c3dac6b73e2f22bae818f7ab992a9cfcadfa57
(cherry picked from commit 582dcac354e198099b31cbd0ccc7c3c4d22aa582)
framework: fix screenshot and rotation animation for devices with abnormal hw rotation

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

Change-Id: I14b6e2403b9be345a1a591138f8a3a12ca8e4f89
(cherry picked from commit 44aed9fe62fd9a13ff4df5e76a7992c48517c15b)
Frameworks: add all slim shortcut image resources

Importing for now the old one from KitKat. Graphics group is currently
vectorizing and revamping all. When they are finished we overwrite them and
add xxxhdpi ones as well.

Doing this now due that it is stopping the progress on a bunch of features right now

And a small method renaming to be inline with the other methods

Change-Id: If07e2ae19a45712cd537389069d912cf425e9156

+

Add missing file

core/java/com/android/internal/util/crdroid/ActionHelper.java

(cherry picked from commit f4d740eabce056e3354a2697981d741f1306ffcd)
Frameworks: icon materialization

These are the first few. There are still 23 more shortcut image
        resources that need to be done, and these will come
        sometime next week probably.

Change-Id: Ie10d154914d2e4cfe2e7960791cff6240a1a2765
(cherry picked from commit a12cdecf19d510f21326eee262237b325f3a57e9)
Add missing slim actions & helper classes

(cherry picked from commit 2c509f8fbb8641e6b2f5b7d14f614016491220d1)
AppOpsManager: Add missing null eaten by null devil

(cherry picked from commit 756ced72f3c89ecf1283d6ad2f8627ae244ec4f9)
media: Scan FLV files, because why not?

Change-Id: Ia517d3057d843d7306f567cdbdddddd63c472a2b
(cherry picked from commit b31551b1912fb2b8d09e6f8586d5bbc17e30e44f)