[2/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.

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

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

[1/2] in platform_frameworks_base
[3/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 increasing ringtone option if Google dialer is used

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

* 添加对AOSP电话的检测, 从而
    在用户使用Google电话时禁用不支持的特性.
* 当检测到用户使用的Google电话时,
    禁用渐强音量的选项.

[1/3] in platform_packages_services_Telephony
[2/3] in platform_frameworks_base
Utility function to determine device type

Determine device type by screen type.
Differentiate devices into phone, hybrid and tablet.

添加定义设备类型的功能

通过获取屏幕参数来定义设备类型.
将设备分为手机, 跨界机以及平板.
[2/2] Navigation bar buttons customization

* Add option for user to customize navigation bar.
* Add device type checking using the previously added utility function.
* Fix buttons layout in mdpi & hdpi in landscape.
* Fix search_light pointing direction in landscape.
* Fix issues with RTL layouts.
* Fix orientation determination logic.
* Add alpha value applied to all layouts.
* Fix error with backAlpha values.
* Add null check all button usages.

[2/2] 个性化导航栏按键

* 添加导航栏自定义的选项.
* 添加用先前加入的功能对设备类型进行检测.
* 修复mdpi和hdpi在水平视图下的按键布局.
* 修复search_light在水平视图下的指向.
* 修复RTL布局下的一些问题.
* 修复旋转方向判定逻辑.
* 添加alpha值至全部布局.
* 修复backAlpha值错误, 采用findButton而不是findViewWithTag.
* 添加按键使用的空值检测, 用户可能隐藏他们.

Thanks to CyanogenMod for the original implementation.
感谢CyanogenMod原创实现此功能.

[1/2] in platform_frameworks_base
[2/2] User configurable double tap to sleep gesture

Add options to enable
  * glow pad double tap gesture to put device to sleep.
  * pattern double tap gesture to put device to sleep.
  * pin & password double tap gesture to put device to sleep.
  * status bar double tap gesture to put device to sleep.

[2/2] 用户可配置的双击锁屏手势

添加选项来启用
  * 双击光圈锁屏的手势
  * 双击图案盘的手势
  * 双击密码输入框锁屏的手势
  * 双击通知栏锁屏的手势

[1/2] in platform_frameworks_base

Thanks to CyanogenMod(@dalingrin and @travp624) for the original
implementation.
Thanks to @rascarlo for the user configurable concept.

感谢CyanogenMod(@dalingrin and @travp624)对此功能的原创实现.
感谢@rascarlo的用户可配置理念.

Reference commits:
参考commits:

CyanogenMod/android_frameworks_base@f258f4479bc5397ad2c4d1ffa07125a036360196 (or http://review.cyanogenmod.org/55645)
CyanogenMod/android_frameworks_base@c0fdfafc8c2d9620172dcfad81f9100e1883e1bb (or http://review.cyanogenmod.org/57257)
rascarlo/android_frameworks_base@59238e59cfecf4620eb59e93753eb2e8d16b3dbc
[2/2] Longpress back button to kill foreground app

Add a checkbox in developer options to kill
foreground app by longpressing back button.

[2/2] 长按返回键杀掉前台应用

添加一个开发者选项的勾选框, 允许长按返回键杀掉前台应用.

[1/2] in platform_frameworks_base

Thanks to CyanogenMod(@Danesh) for the original implementation.

感谢CyanogenMod(@Danesh)对此功能的原创实现.
[2/2] Navigation ring targets customization

Add navigation ring customization that allows up to three
targets on the navigation ring with custom shortcut actions.

[2/2] 个性化导航圈目标

添加个性化导航圈目标: 允许至多三个指向自定义快捷方式的导航圈目标.

[1/2] in platform_frameworks_base

Thanks to AOKP & CyanogenMod for the original implementation.
感谢AOKP & CyanogenMod原创实现此功能.
[2/2] Lockscreen targets customization

Add user configurable lockscreen targets / icons.

[2/2] 个性化锁屏目标

添加用户可配置的锁屏目标/图标.

[1/2] in platform_frameworks_base

Thanks to CyanogenMod(@Danesh) for the original implementation.
感谢CyanogenMod(@Danesh)原创实现此功能.
[2/2] LED customization

* Add LED customization.
* Add global and per-app settings.
* Set default LED color as white.
* Remove stock on/off checkbox and add an dedicated category.
* Comment out dead code from display settings.

[2/2] 个性化LED

* 添加LED个性化.
* 添加全局和各个应用的设置.
* 设置默认LED颜色为白色.
* 删除原生开/关勾选框, 并添加一个独立分类.
* 将显示设置中的无用代码加为评论.

[1/2] in platform_frameworks_base

Thanks to CyanogenMod for the original implementation.
感谢CyanogenMod原创实现此功能.
[2/2] User configurable safe headset volume
* Add an user configurable option to
    enable/disable safe headset volume.
* Add restore volumes after boot and when a headset is plugged.

[2/2] 用户可配置的安全耳机音量

* 添加一个用户可配置的选项
    来启用/禁用安全耳机音量.
* 添加耳机插入时, 设备启动后恢复音量.

[1/2] in platform_frameworks_base

Thanks to CyanogenMod for the original implementation.
感谢CyanogenMod原创实现此功能.