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
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
framework: External GPS Support (2/2)

- Ported feature from CM9

Patch Set 2:    - Removed random tabs

Patch Set 3:    - Renamed method names to match Android
                  Code Guidelines

Patch Set 4-5:  - General code cleanup

Change-Id: I324269dae1c621b38e2f624e0ce82bf600896ff6
Fix syntax error in latest patchset for External GPS Setting

Change-Id: Iba14aa0d3640dc0e0430407d033974a137b26cdc