Base: huge cleanup

*) catch unregistering receivers to prevent crashes
*) remove unused imports
*) remove unneeded semicolons
*) manual array copy
*) string comparisons with == instead of equals()
*) unneccessary boxing and unboxing
*) codestyle
*) update gradle version
*) much much more

Change-Id: I9eb301d2096dffdda6b403e1e16fcc00e56e1e55

Conflicts:
	build.gradle
	core/build.gradle
	core/java/android/widget/ViewFlipper.java
	core/java/com/android/internal/app/PlatLogoActivity.java
	core/java/com/android/internal/util/cm/NavigationRingHelpers.java
	core/java/com/android/internal/util/slim/DeviceUtils.java
	core/java/com/android/internal/widget/LockPatternUtils.java
	packages/Keyguard/src/com/android/keyguard/KeyguardHostView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardPINView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSelectorView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardSimPinView.java
	packages/Keyguard/src/com/android/keyguard/KeyguardViewStateManager.java
	packages/Keyguard/src/com/android/keyguard/msim/MSimCarrierText.java
	packages/SystemUI/build.gradle
	packages/SystemUI/src/com/android/systemui/BatteryMeterView.java
	packages/SystemUI/src/com/android/systemui/DockBatteryMeterView.java
	packages/SystemUI/src/com/android/systemui/SearchPanelView.java
	packages/SystemUI/src/com/android/systemui/quicksettings/QuietHoursTile.java
	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	packages/SystemUI/src/com/android/systemui/statusbar/policy/Traffic.java
	policy/build.gradle
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Framework changes for moving applications to external volume

* Add static functions for retrieving external apps volume information
* Determine external apps volume using the 'externalApps' attribute in
  storage_list.xml
* Allow moving applications to an external volume regardless if the
  internal storage is emulated or not
* Check if app moving is disabled

Thanks to Pierre-Hugues Husson for identifying an issue causing the
SD card state to be incorrect (ie. SD card appearing unmounted when a
USB drive is unplugged)

Change-Id: I5561c2cf3f558b729c89663852173a532994a47a
frameworks: Add class for changing app moving setting

Change-Id: Ic9f0eed496f014fdc110946759e2041ef808e5c4
perf: Send a boost hint when a key on the navbar is pressed

 * A lot of stuff happens, especially when invoking recents.
 * Get ahead of the storm by sending a boost hint before
   kicking off the animations.

Change-Id: I0cecd0c58f8bc8479ea44f63af796500d7b9d7d2

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java
Fix hiding ADB notification

When the notification is already shown (the device is connected in ADB mode)
and the user turns it off, it doesn't go away. Let's hide it properly.

Change-Id: Ie411a89d5549ae9662c59ee9ee5d18a9568e1ede
WeatherTile : Cleanup and fix NPE
Slim Recents: Option to show topmost task [1/2]

Change-Id: Ib39d9b87b0fd30b4d34d4292af39e891038f337a
Slim Recents: Always show topmost task collapsed

Change-Id: I64956410fb389d8e880979a84b51321d8b372217
Base: Volume Control to SlimActions Shortcut (1/2)

Change-Id: I2ee6067925edbca23d304b02bfaedc0135ba054b
Revert "framework: Add equalizer tile"

This reverts commit c4f6798ee7c271503d35db9a06c8be99ed206cdc.