migrate vibrator to silent mode settings (2/2)

Change profiles:
* remove deprecated vibrator settings
* add silent mode settings

Available modes:
* off
* vibrate
* silent

Patch Set 1:
Initial patch with plain ListPreference

Patch Set 2:
Use Checkbox + Dialog like ConnectionSettings

Patch Set 3:
Rebase

Change-Id: I227f8b00f8dc17f06c8de6716c0f34b2faf82e2c
Makes the add button for new APNs appear in the action bar.

The APN add button (a plus sign) now appears in the action bar if possible. The APN list interface is now more consistent with the WiFi list interface. Previously the user had to press the 'Menu' hardware button or the three dot button on the screen in order to reveal the actions.

Change-Id: Iae622054ec080ba4775c22223dd75a865c83fc27
Signed-off-by: Manuel R. Ciosici <manuelrciosici@gmail.com>
Merge "migrate vibrator to silent mode settings (2/2)" into mr1-staging
Settings: Forward port Slider shortcuts

Includes Change I683d9c22: Add the new lockscreen drawables to the
picker list by Bjorn Lunden (blunden)

Settings : Lockscreen targets alignment fix

Add separate layouts for different layouts to fix alignment issues.

Change-Id: I2453225e8a683244a1e11f0a8d3c18954ba5885f

Change-Id: I155824abc0578d98d3e2f1f5c2dcde3fa7b2ef84
Settings: Forward port CM Screen Security settings (Part 1 of 2)

includes:
- Menu Unlock, Quick Unlock, Home unlock and Slide lock delay settings
  Author: DvTonder

- Lockscreen cleanup: Rework the logic to separate cm lockscreen
  settings from stock lockscreen settings.
  Author: Danesh M
  Id: Ic3eebc30fbb55afa6254889b17bde6e3083d1847

- Fix unknown sources crash
  Modify logic to only make cmsecurity specify the extra,
  any other time, default to stock security
  Author: Danesh M
  Id: Ida4b8ccc2f41d79aa9013029b4245ae4d3cd4496

- Adjust available options based on screen lock picked
  Disable / enable the available screen security aditional options based
  on what screen lock was picked.
  Author: jfassad
  Id: I634b18b58d0e1a1c075f9808776fc4f685316221

- Add home button unlock option
  Author: invisiblek
  Id: I10b96b2f788ca26bc45f1758e612b9dfe7beff59

Change-Id: I0dda524830d8dce571910eb1fbd66d5b5af11bff
Cid Head : Cyanogenmod version preference

Binds the cyanogenmod version preference to launch CID head upon
multiple taps.

Change-Id: I8e06642944d24581c0932c9964f2d9615bfcb832
Lockscreen Shortcut : Delete entry if reset

Delete the entry when resetAll is selected so that original AOSP
behaviour is present, such as magneticTargets.

Thanks Eddy Witkamp for reporting

Change-Id: I04e03336d8f51fd9683f6d859a649a37e68655ba
Merge "Lockscreen Shortcut : Delete entry if reset" into mr1-staging
Merge "Cid Head : Cyanogenmod version preference" into mr1-staging
Settings: Forward port Hardware key custom rebinding (2/2)

Settings for rebinding the actions performed on the following key press events:
Home long-press, menu press, menu long-press, search press, search long-press,
app-switch press and app-switch long-press.

The available actions are: Nothing, open/close menu, recent apps switcher,
search assistant, voice search and in-app search.

Devices with a key configuration other than home, back, menu and search need to
set config_deviceHardwareKeys in an overlay to have the correct preferences
show up.

Change-Id: Id04a598aeb9829d7971dedbd171a61999ce2f919
LockScreen: allow long-press actions from hardware keys (2/2)

Allow following actions with button long-presses on lockscreen:
- toggle flashlight (if available)
- play/pause/next/previous track selection
- toggle silent mode

Allow customizing of back, menu, and home buttons. Search
button events are completely ignored on the lockscreen.

Auto-detect hardware keys, only show appropriate menu
options based on the actual hardware keys available on the
device (or completely hide if there are no hardware keys).

Based largely on Danny Baumann's work from gingerbread.

Ported from CM10

Change-Id: I36ea5eb7e93d68de872536dc6d7e93f99ba1621f
Settings: Forward port Change behavior when back pressed in PerformanceSettings

When back key pressed, finish this activity if user does NOT accept 'Ok'
in warning dialog rather than show it.
Id: Ied763db4f76a3a2a36f134bd93a0f18047c6cf5c

Change-Id: I07d41d43d00e4fb42ad526d27ee9188d830906ea
Merge "LockScreen: allow long-press actions from hardware keys (2/2)" into mr1-staging
Remove duplicate line enabling Mod Version twice

Change-Id: I0a144df643ec01e275500287efebdd8351887c2b
Profiles: Airplanmode Settings with Checkbox (2/2)

Change Airplanemode Settings to look like Connection/SilentMode etc.

Change-Id: Ida61c51a04e609c7f44d1e320a1cc3fe4208cd7b
Settings : Switch state fix

Since the switch views are shared, we need to recreate them
in order to prevent from being reused as they don't share state.

Change-Id: I4d7038f37883e1791c8c2b0009f0adb85ebb2b88
Merge remote-tracking branch 'remotes/github/cm-10.1' into hillbeast-jellybean