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 96c86c2378a4db337e09b67af473b03c95896658)
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 5bb32fc8f992d6119fea7583879cbedde6ebf1ad)
ProfileManager: fix coding style

Change-Id: Ia0c3dac6b73e2f22bae818f7ab992a9cfcadfa57

(cherry picked from commit 5af2fbe6f3fefc8161e700d42e956e5c2acd5808)
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 485ea5bd90d4403aa756edaa99019c10ed5ef5a6)
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)