[1/2] base: quicksettings: allow flip animation on clicking a tile

ported from https://github.com/BeerGang/android_frameworks_base/commit/ba144b2defd209c2c020366316c65b288bf68880

Modifications by namelessrom:
allow to flip left or right, default flip right
whitespace cleanup

Change-Id: I79e0e44738ad1b32b5f30f2f1223e20711c9b3e4
Signed-off-by: bart452 <bart4524@gmail.com>
QS: give animation love to network mode and wifi tiles

Change-Id: I59dcede96ce5895e3ce38c29f36c9f08b11e3599
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
Signed-off-by: bart452 <bart4524@gmail.com>
Reimplement expanded desktop on top of immersive mode.

Change-Id: I8ed08afebef0bb08a2694b1dbdd6dd1887b5b065
Signed-off-by: bart452 <bart4524@gmail.com>
immersive mode >> expanded desktop

todo: allow toggling the timeout in case some crack head
is feeling nostalgic for the old school expanded desktop.

infiltrate. destroy. rebuild.
          -Vanir

Change-Id: If07c46f853a4734644f79dd219407f8b9abdb8f3
Signed-off-by: bart452 <bart4524@gmail.com>