AutoHide Statusbar

Ported from https://github.com/SlimRoms/frameworks_base/commit/3982e50efb490f01a01c74bc6b190ecddf7c1480
and taken from https://github.com/BeerGang/android_frameworks_base/commit/b81079f2adcc816a976798ffbf78e91e26ef7e03

Change-Id: Icaace6c54d60cad82bd24bb40fba90969ab18b5f

Conflicts:

	core/java/android/app/Activity.java
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Frameworks: Specify notification types for Auto Hide statusbar (1/2)

Allows users to choose between "non-permanent only" and "all notifications" in the autohide
the statusbar when there are no notifications check.

- cleanup a bit
- reduce method and provider settings call

Change-Id: I1f793df1ab702e89cdfeee8faa915ff13a3cc782

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java