Settings: Advanced low battery indicator options (2/2)

Based on a Slim Roms implementation with a special thanks to @kufikugel
This commit introduces following new modes to indicate low battery.
Accessible through action bar and following PA way of features implementation (clean, simple, functional and beautiful)
     * 0 = show dialog + play sound (default)
     * 1 = fire notification + play sound
     * 2 = show dialog only
     * 3 = fire notification only
     * 4 = play sound only
     * 5 = none

PS2 - Swap battery and warning icons on action bar
PS3 - Update commit message

Change-Id: I2d5358962c3bbf7b60c8af19aad9db3a4a8071de
Settings: Remove leftover reference to AppOps tabs

PS1: After removing AppOps tabs there were still references to a text array
in res/values/arrays.xml and AppOpsSummary.java

Change-Id: Icee1cad1f7ff91f9d0c5c962f52ea424afa64f4e
Settings: Replace low battery warning icon with Google warning icon

PS1: replace string in PowerUsageSummary to point to new icon
and replace drawables with Google drawables

Change-Id: Ie123feabb7a74feb61f4cd732ae9b1326099a1e7
Settings: Translation Import Spanish

Change-Id: I41614635c6ebc569c46ecf4cf89ccc9e50d396a1
Settings: Translation Import German

Change-Id: Id3c385e08dd6d80f00a2c74706fb2441a415874f
Display BTH connected status correctly

This patch removes incorrect condition.
(to not use LocalBluetoothProfile#isPreferred())
This condition uses the priority that already disconnected profile,
so this codition always returns false.

To verify this issue:
1. Turn on Bluetooth.
2. Pair and connect to BTH(A2DP/HFP)
3. The display now says "Connected"
3. Disconnect HFP profile
4. The display still says "Connected" but it should say "Connected (no phone)"

Change-Id: I9e2bfa6d23bf1be7587c9556b4b05459d02c4817
Signed-off-by: houst0nn <houstonn@gmail.com>
HTML injection fix for bluetooth pairing, issue 65946

During bluetooth pairing, HTML injection is possible via the device name displayed to the user. This escapes the device name, before creating HTML from it, so it will preserve things like < and > but will not affect rendering of HTML

Bug: 12976386
Change-Id: I8a02d3be8c1a779dc9ed1c9ef8083a1159ab3f2b
Signed-off-by: houst0nn <houstonn@gmail.com>
Bluetooth: GAP: Cancel the pairing notification on bond state change

Cancel the pairing notification on bond state change happens from
BOND_BONDING to BOND_NONE.  Otherwise it will present in the
notification area until it gets cancelled by opening it and press
cancel on pairing dialog.

Change-Id: I96f673e29e612cd748165a1323a5b4a4276a843c
Signed-off-by: houst0nn <houstonn@gmail.com>
Settings: Translation Import Polish

Change-Id: I9e31da7cf5b9f68bdd8c2008a940e4eb22d3a724
Merge "Bluetooth: GAP: Cancel the pairing notification on bond state change" into kitkat
Merge "HTML injection fix for bluetooth pairing, issue 65946" into kitkat
Settings: Translation Import Indonesian

Change-Id: I6aa688ba921b0a4ebc080c04dc140b26069b7450
Settings: Translation Import Portuguese, Brazilian

Change-Id: I6af2c20ada1d15c5c7cbca847c99af71c5451c5f
Settings: Translation Import Italian

Change-Id: Id10ca04cd798fac30ecc730c6e8b5c48229fbda5
Settings: Translation Import Dutch

Change-Id: I3720b22f22da2dae0f7718939f3aa361e83d28e9
Settings: Translation Import Chinese (Simplified)

Change-Id: Ia47d5086051c975ef82535b267d8b1a74a848e39
Settings: Translation Import Catalan

Change-Id: If1f4c64a53a262ff469c204be2a88d741f991841
Merge "Settings: Translation Import Chinese (Simplified)" into kitkat
Merge "Settings: Translation Import Dutch" into kitkat
Merge "Settings: Translation Import Italian" into kitkat