PackageManager: Add option for single threaded dexopt

* Execute all dexopt invocations on the main thread instead of using the
  ExecutorService when persist.sys.dalvik.multithread is set to false.

Change-Id: I3b8499d5af5091ad7abcddf006f8f2837943903b
Revert "HeadsUp: Filter out notifications from system uid packages."

This reverts commit 0cb38a809b8bf787529fa68f28b17d4d08fb8077.
Revert "HeadsUp: Clean up."

This reverts commit a2f3cd72e510edd4cfb00886777a7387ee932a90.
Revert "SystemUI: Expose heads up."

This reverts commit 9cb4eef8318bd79ed19d89bd5890e42f9b6dbd88.
HeadsUp [1/2]

Signed-off-by: Roman Birg <roman@cyngn.com>
Signed-off-by: Adnan Begovic <adnan@cyngn.com>
Change-Id: I276cb1c80d392b7dbac28e5f553207415b558481
HeadsUp: Launch in floating window

Add some part of NotificationHelper
Credits to AOSPA team

Taken from:
https://github.com/lion0738/android_frameworks_base/commit/9e4b4b3bf10ccaee3ff64bb7b74f929210b85d69

Change-Id: I7001cebd69790b46b8dcfe9150c7ef104e5427a2

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