Improve notification shade collapse code.

- Collapse after dismissing the last notification
- Avoid duplicate code paths for collapsing
- Improve variable naming according to AOSP review suggestions

Change-Id: Ic6f26a61f263c5beebbcc9725fe8914d3858576f
Make notification-shade-collapse-after-dismiss behaviour configurable.

Change-Id: I1be0be2753b479e6d2e4fc8e17d971d03ce01bb7
Show advanced reboot if using an insecure lock screen

Enables the advanced reboot menu when locked if the selected lock method
is insecure (= slide unlock).

Change-Id: I759b7b31c5411597e2537a85183d73ec02eb2461
Merge "Improve notification shade collapse code." into cm-10.1
Merge "Make notification-shade-collapse-after-dismiss behaviour configurable." into cm-10.1
Core: NL translation

ps2: move changes to cm_strings

ps3: trigger fixed cid

ps4/5: remove quotes

Change-Id: I3b4a0fa8dbc8eac84aee9d5f59a8fbd5caa3fd82
Merge "Show advanced reboot if using an insecure lock screen" into cm-10.1
Merge branch 'cm-10.1' of https://github.com/CyanogenMod/android_frameworks_base into linaro

Conflicts:
	core/java/android/provider/Settings.java

Change-Id: Ib42e2d5e98ad2c9b6338ffb3c946cd58314b7559