framework: fix screenshot and rotation animation for devices with abnormal hw rotation

Change-Id: I42694931cb1a754aa6c7652c0a96304ef1f88492

Conflicts:
	services/java/com/android/server/wm/ScreenRotationAnimation.java
	services/java/com/android/server/wm/WindowManagerService.java
Frameworks: reenable all keyboard features for 3rd party keyboards

use like quickpeek statusbarservice for it.
Gives us as well for other future features more
flexibility

Change-Id: I1e9e2497212d27eacbbb63f64961361aaed9aee7

Conflicts:
	core/java/android/inputmethodservice/InputMethodService.java
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/CommandQueue.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java