SystemUI: Fix RemoteDisplayTile crash on clean boot

Previously a patch was put up to fix adding/removing tiles due to a race
condition and not checking with the executor was still active at the
time of onPrepare(), but we did not add the check to unPrepare(). This
bug only seems to surface on a clean boot.

Add the same check to unPrepare() to avoid crashing.

Change-Id: I7485ebed41aac94987305b436777bec45beac762
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit c4aeced8de70d2f47a8859517de0b2ce50598a40)
frameworks: fix setting default ringtone for multi sim

The defualt value for the ringtone expects a "_" between the setting and
the requested sim subscription. This was not being respected in the
mediascanner when it set the default ringtones, resulting in the setting
value being "ringtone2" instead of "ringtone_2".

Change-Id: I4a9147d579183229cc3300e71194e6f5ab74fbc6
Signed-off-by: Roman Birg <roman@cyngn.com>
(cherry picked from commit 8fa3db7c99ec25d329ed32bc17cdd2d52f0a3c89)
Automatic translation import

Change-Id: I7d0558e52d0fe54b2dc5df11201b7bb128407a6a
(cherry picked from commit 650b579ea6b373ece42df9d8e3392b710f4fc41c)
Framework: StatusBar Ticker (1/2)

Change-Id: I6135297792c7b42172e08e14acd37b252cb00102

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

(cherry picked from commit 5fe439fc21ea0c6556c463a1e613a2f4bef1fe1d)
Improve screen timeout QS tile

 * Use com.android.internal.R.plurals.duration_* for text
 * Use white icon as suggested here https://jira.cyanogenmod.org/browse/CYAN-3769

Change-Id: Idfedbc1e7a857dbfa05736810e09528852c8bfa3
(cherry picked from commit 507df14635f0cb840d8ed629529e03e074f88538)

Conflicts:
	packages/SystemUI/res/values/cm_strings.xml
Use actual storage type for format message strings

Change-Id: I214120303bf6c12c297332fa314ce80bc686da46
(cherry picked from commit b1f0dfd063a31eb410234602828479179ff08f22)