AOSPA QuickSettings initial implementation

* Swap OnClick/OnLongClick behavior of wifi tile.
* Swap OnClick/OnLongClick behavior of bluetooth tile.
* Swap OnClick/OnLongClick behavior of location tile.
* Add edit mode (longpress user tile).
    Add drag&drop handler and its animation.
* Add immersive mode tile (KitKat version of expanded desktop).
    Credits to CyanogenMod for initial implementation.
    http://review.cyanogenmod.org/#/c/53468/
* Add rotation tile and fix disabling issue (as follows).
    The tile would be disabled if user uncheck the auto-rotate screen
    option directly from within the accessibilty settings.
* Add collapse panel action on click immersive mode tile.
    And fix collapse panel animation.
* Fix immersive mode tile state after reboot.
    Ensure tile state (on/off) persists.
* Add tile actions to data tile and alarm tile.
* Add sleep tile: onClick > sleep; onLongClick > display settings.
* Add refreshed edit mode icon drawables.
    Uses the correct transparency that matches the other icons.
* Add USB tether tile (only appears when connected to USB).

(基础版?)AOSPA快捷设置面板

* 交换wifi磁贴OnClick/OnLongClick的行为.
* 交换蓝牙磁贴OnClick/OnLongClick的行为.
* 交换位置磁贴OnClick/OnLongClick的行为.
* 添加编辑模式 (长按用户磁贴).
    添加拖放处理程序及其动画.
* 添加沉浸模式磁贴 (KitKat版的扩展桌面).
    CyanogenMod为实现此功能的先驱.
    http://review.cyanogenmod.org/#/c/53468/
* 添加锁定屏幕方向磁贴并修复禁用的问题 (如下所述).
    如用户在辅助功能中取消选中"自动旋转屏幕", 此磁贴会被禁用.
* 添加点击沉浸模式磁贴后收起面板的动作.
    并修复收起面板的动画.
* 修复重启后沉浸模式磁贴的状态.
    确保磁贴的开关状态在重启后不改变.
* 添加蜂窝数据磁贴和闹钟磁贴的动作.
* 添加锁屏磁贴: onClick > 锁屏; onLongClick > 显示设置.
* 添加修正版编辑模式图标.
    使用和其他图标相吻合的透明度.
* 添加USB共享网络磁贴 (仅在设备连接至USB接口时显示).

Based on these commits:
涉及到的commits:
AOSPA/android_frameworks_base@1405aca50a1854a4b547fa699efe514a852e5c3c
AOSPA/android_frameworks_base@0608f22728ca14c5979c5df430ef3fbd12922562
AOSPA/android_frameworks_base@3a90f78df5e276e2da5d0ffb83bba4d513efb947
AOSPA/android_frameworks_base@78f8ad47bce35d8d4f657aa0fde830b0fdd6444b
AOSPA/android_frameworks_base@faa30bb7ef664bd92f9efcecbc6dd4a5ee811ca3
AOSPA/android_frameworks_base@eb1100511db66a288d2282fdd62bc9e5c6db38b6
AOSPA/android_frameworks_base@e043e681534cade633cd7610d4f2817402cd7b66
AOSPA/android_frameworks_base@7ee7ec06a2dfeab13f5e7544d7b0ceec4bae65a5
AOSPA/android_frameworks_base@07945d5e27eea7cfcb780891db34fc69b7f0cdd8
AOSPA/android_frameworks_base@0bfd3400c7f424ddbc3f522501a98fcaa42f1f94
AOSPA/android_frameworks_base@272b0262c96a83f55a2162e22722f8235b293254
Refresh tethering notification icons[Part I]

Replaces the stock tethering notification icons
with the ones from @blunden that look way better.

换血网络共享的通知栏图标[第一部分]

用来自 @blunden 的全新图标替换原生网络共享的通知栏图标.

Before(使用前): https://d3hzxuizpdmi2q.cloudfront.net/gFhEzsBkeMYo.png
After(使用后): https://d3hzxuizpdmi2q.cloudfront.net/wXpq_V7TkSDm.png
Refresh tethering notification icons[Part II]

Replaces the stock tethering notification icons
with the ones from @blunden that look way better.

Add xxhdpi versions.

换血网络共享的通知栏图标[第二部分]

用来自 @blunden 的全新图标替换原生网络共享的通知栏图标.

添加了xxhdpi版本.

Before(使用前): https://d3hzxuizpdmi2q.cloudfront.net/gFhEzsBkeMYo.png
After(使用后): https://d3hzxuizpdmi2q.cloudfront.net/wXpq_V7TkSDm.png
[1/2] Status bar brightness control

Add option to control brightness by sliding across status bar.
Thanks to CyanogenMod for the original implementation.

[1/2] 通知栏亮度控制

添加在通知栏上划动以调整亮度的选项.
感谢CyanogenMod, 此功能是由他们原创实现的.

[2/2] in platform_packages_apps_Settings
[1/2] Various status bar battery style options

* Add native battery bar with percentage option.
* Add circle battery (with percentage) option (Credits @Sven-Dawitz).
* Add icon style reflected by QS battery tile (Credits @kufikugel).

[1/2] 多种电池图标样式选项
* 添加原生电池百分比选项.
* 添加圆圈电池(+百分比)选项 (感谢 @Sven-Dawitz).
* 添加快捷设置电池磁贴映射通知栏电池样式 (感谢 @kufikugel).

Referenced commits:
参考的commits:
SlimRoms/frameworks_base@09052553399741defd000b8886e39bc8beb9afd7
CyanogenMod/android_frameworks_base@bc5b61deccfe5f1093b986a6c4466635420e569a
AOSPA/android_frameworks_base@231b07a98ddb4def26e4adf81ec05161e4e1b6ef

[2/2] in platform_packages_apps_Settings
Fix application transitions in immersive mode.

This commit fixes recent animation in immersive mode.

修复了沉浸模式下的应用切换.

这条commit修复了沉浸模式下"最近打开的应用"的切换动画.
Fix navbar behavior in immersive mode.

修复了沉浸模式下导航栏的行为.
Time and date onClick actions

* Add separate onClick actions to time and date
    in both status bar notification pulldown
    and in status bar quicksettings pulldown.
* Click on time will open Alarm, click on date will open Calendar.

时间和日期的onClick动作.

* 添加通知面板下拉和快捷设置面板下拉中
    时间和日期的独立onClick动作.
* 点击时间会打开时钟, 点击日期会打开日历.

Original implementation:
基于:
omnirom/android_frameworks_base@dd045bb093809196ab2df6954eda1c27cb28facf
[1/3] Add network and Lightbulb tiles

* Add an LTE tile and a 2G/3G mobile network tile.
* The LTE tile requires that at least one of the following configs
    be present in the device's build.prop in order to show:
        telephony.lteOnCdmaDevice=1
        telephony.lteOnGsmDevice=1
* The 2G/3G tile toggles between 3G Only, 2G Only and 2G/3G.
    If LTE on, 2G/3G tile will be disabled (shows unknown).
    The reverse is also true.

[1/3] 添加蜂窝数据和Lightbulb快捷设置面板磁贴
* 添加LTE磁贴和2G/3G磁贴.
* LTE磁贴要求build.prop中至少有以下两个参数中的一个才会显示:
        telephony.lteOnCdmaDevice=1
        telephony.lteOnGsmDevice=1
* 2G/3G磁贴可在"仅3G", "仅2G"和"2G或3G"中调整.
    如果LTE开启, 2G/3G磁贴会禁用 (显示未知).
    反之亦然.

[2/3] in platform_frameworks_opt_telephony
[3/3] in platform_packages_services_Telephony
[1/2] User configurable clear all recents button

* Add a button on recent panel to clear all recent apps,
    and an option to alter its position(or switch off).
* Add new drawables for clear all recents button,
    instead of using ic_notify_clear from notification area.
    Thanks @arzbhatia

[1/2] 用户可调整的清除全部最近应用按钮

* 在"最近打开的应用"面板中添加一个"清除全部最近应用"按钮,
    以及一个选项来调整它的位置(或禁用它).
* 添加"清除全部最近应用按钮"专用的drawables,
    而不是沿用通知面板下拉里的ic_notify_clear.
    感谢 @arzbhatia

[2/2] in platform_packages_apps_Settings
[1/2] Combine LTE & 2G/3G tiles

This combines these two network tiles into one tile.

[1/2] 合并LTE及2G/3G磁贴

将这两个蜂窝数据快捷设置面板磁贴合并为一个.

[2/2] in platform_packages_services_Telephony
[2/3] Increasing Ringtone

Add option to set the incoming call ringtone volume
to increase in user-defined increments.

[2/3] 渐强铃声

添加允许用户自定间隔的渐强铃声选项.

[1/3] in platform_packages_apps_Settings
[3/3] in platform_packages_services_Telephony
[1/2] Volume adjust sound & KitKat style drawables

* Add volume adjust sound, the sound made when
    you adjust volume with volume rocker.
* Add an option for user to enable/diable the sound.
* Refresh related drawables with KitKat style ones.

[1/2] 音量调整音 & KitKat风drawables

* 添加音量调整音, 即当你用音量键调整声音时发出的声音.
* 添加用户可设置的选项来启用/禁用音量调整音.
* 换血相关的drawables为KitKat风.

[2/2] in platform_packages_apps_Settings
[1/2] Unlinked volumes & expandable volume overlay

* Add option to unlink volumes.
* Add user configurable options for volume overlay.
    Choose from single, expandable, expanded and hidden.

[1/2] 分离音量 & 可展开音量调节面板

* 添加允许独立调整各项音量的选项.
* 添加用户可配置的音量调节弹出框.
    可在"单行", "可展开", "已展开", "隐藏"中选择.

[2/2] in platform_packages_apps_Settings
[1/2] More functional volume rocker

* Add option to wake screen with volume rocker.
* Add option to seek music track with volume rocker longpress.
* Add user configurable option to
    control cursor in text field with volume rocker.

[1/2] 功能更丰富的音量键

* 添加可用音量键唤醒屏幕的选项.
* 添加可用音量键调整播放曲目的选项.
* 添加用户可配置的输入框中音量键调整光标的选项.

[2/2] in platform_packages_apps_Settings
[2/3] Add AOSP Dialer check

* Adds a check for the AOSP dialer so features depend on it
    will be disabled in Google dialer is used.
* Disable QuickSettings network tile if Google dialer is used.

[2/3] 添加AOSP电话的检测

* 添加对AOSP电话的检测, 从而
    在用户使用Google电话时禁用不支持的特性.
* 当检测到用户使用的Google电话时,
    禁用快捷设置面板里的数据磁贴.

[1/3] in platform_packages_services_Telephony
[3/3] in platform_packages_apps_Settings
Fix for screenshot animation glitch in portrait

edits by Stefano Semeraro aka Suxsem.

修复纵向显示时屏幕截图动画的问题

代码经Stefano Semeraro(即Suxsem)修改.
Fix immersive mode recents animation

Inspired on CyanogenMod/android_frameworks_base@be9c31709e2b90bc85ef1814b22df1785515d23d

修复沉浸模式下"最近打开的应用"的动画

启发于 CyanogenMod/android_frameworks_base@be9c31709e2b90bc85ef1814b22df1785515d23d
Longpress user tile opens account sync dialog

In QuickSettings, userTile onLongClick opens ACTION_SYNC_SETTINGS.

长按用户磁贴打开账号同步悬浮窗

在快捷设置中, 为userTile添加onLongClick打开ACTION_SYNC_SETTINGS的行为.
Parse UUID string with Long.parseLong

Integer.parseInt throws an NPE for values greater than 0x7fffffff.

采用Long.parseLong来解析UUID

Integer.parseInt在数值大于0x7fffffff会出现NPE.