[2/2] Base: Active Display add shake event

use better sensor event listener
dont hide if AD show and user shaking < 3s also make clean code :)

Change-Id: Iabd42517a4e9df82e9cf653359104303667e43be

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/activedisplay/ActiveDisplayView.java
QuickSettings : Internal Memory Check Tile (1/2)
Revert "[2/2] frameworks/base: Add Captive Detection toggle"

This reverts commit 9e702ad3d5cbd3245cd07ee986fbafcd7b28be3e.
CleanUp