[1/2] base: Add Haptic Feedback to quicktiles

Change-Id: I792a00a2689a572110963db00362f8e9d77b316e

Conflicts:
	core/java/android/provider/Settings.java

Conflicts:
	core/java/android/provider/Settings.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
Quicktiles: support flipping at every tile

sorry but the previous implementation was a bit stupid.
DRY (Don't Repeat Yourself)

implement flipping in OnClick, so that every existing and comming tile
supports it.

Change-Id: Iaaf354ba00e4f5aa7dacab42524b1d01f047ab8a

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/AirplaneModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/GPSTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/PerformanceProfileTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuietHoursTile.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/ExpandedDesktopTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/ImmersiveModeTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/LteTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/NavBarTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/NetworkSpeedTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickRecordTile.java
SystemUI: QuickTiles: add support for gestures

allows to do actions on left and/or right swipe on a tile via
overriding onFlingLeft and onFlingRight.

for that we are implementing a gesture detector, which also handles
click and longpress events.

already make use of it at the preferences tile.
on swipe right we launch quicksettings tiles activity,
on swipe left we launch Customization settings.

Change-Id: I9580ba3a94d5d30859f3ac0a87d3564f971877be

Conflicts:
	packages/SystemUI/src/com/android/systemui/quicksettings/PreferencesTile.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuickSettingsTile.java
SystemUI: QuickTiles: Allow up to 4 flip animations

we now have left, right, up and down flip animations.
set flip down animation to default when pressing the tile.

Change-Id: Ida858d6235e681f380172b5de83c127eb9e4a0b3

Conflicts:
	packages/SystemUI/res/anim/flip_right.xml
Location Tile: add swipe actions to switch mode
Music Tile: add swipe gestures to skip tracks

right swipe = next track
left swipe  = previous track