derp frm previous qs commit
QS: Add flippable tiles

This commit adds support for tiles that can be flipped to reveal
more information, as well as a two flippable tiles:
 - A Wi-Fi back tile displaying the current IP address in case
   you're connected to a Wi-Fi network. Tapping the back of the
   tile opens the tethering settings, if supported.
 - A Bluetooth back tile displaying the number of paired devices,
   and tapping it toggles discoverability.

This commit also moves the loading spinner to the BasicTile, as
it is only supported in basic_tile layout.

Change-Id: Ic08b08a97c3dd999b1915c7bb108c850a2cbcd9b

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsBasicTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettingsTileView.java

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java
Navigation Bar: Toggle last app on recents button long press

Change-Id: I1e6d6255494991b440f3cf5854a7edad7fee2c1b

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
Allow creating custom dialogs in DialogPreference.

This allows creating non-AlertDialogs while still using the click and
state handling of DialogPreference.

Change-Id: I54fd7d6d6b9f6a49fef1ae95e0178838b3edfa56
Fix toggleLastAppImpl
getRunningTasks causes an NPE. Switch to same behavior as RecentApplicationsDialog by using getRecentTasks and relaunching the last activity if it died.

Change-Id: I18b2b6711bc11f261ca2687a471a3e8bf984c705
QuickSettings: Harmonize the behavior of the Location tile

Inverts the long-click and click actions to be cohesive with
the other tiles.

Change-Id: I26d11bbdeca9ff31ef3c35127ed72ff3d6c09cbd

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java