Display options: allow configuration of wake on plug behavior (2/2)

The PowerManager now checks Settings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED
to determine wake-on-plug behavior instead of using the configuration option
config_unplugTurnsOnScreen.

PS 2: Re-added config_unplugTurnsOnScreen, which is used as the default value
for the new setting.

PS 3: Fix white-space error

PS 4: Fix white-space error

Change-Id: I062794828831a2b6faf4293579103d2251f1bdd0
Settings: External GPS Support (2/2)

- Ported feature from CM9

Submitted on behalf of a third-party: Cuong Bui

PatchSet2:

- Removed random tabs

PatchSet3:

- Renamed method names to match Android Code Guidelines

Change-Id: I324269dae1c621b38e2f624e0ce82bf600896ff6
Fix RIL_UNSOL_CDMA_PRL_CHANGED constant typo (1/2)

Change-Id: I6eef9350fa62857cb5fd133a385cb09150cb6d1b
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