Update Dotcase to support 24-hour time

Displays 12- or 24-hour time per standard system setting

Change-Id: I387e12a299fb4eb52d69d402be18d70947c9a5aa
(cherry picked from commit 8c649cd3c9576a3aa493f94dbff3e517c9d5d547)
Dotcase: Fix brightness sticking

The UEventObserver sees the case open, so it turns on the screen and
kills the Dotcase activity. But, then the BroadcastReceiver sees the
screen turn on, so it tries to launch the Dotcase "stuff," including
setting the brightness to max. Sometimes, the order in which these
things happen causes the brightness to get set to max after the
activity is killed, and it gets stuck there until the case is closed
and opened again.

Make the switchState a class variable and, in the BroadcastReceiver,
check whether the case is open before starting any of the Dotcase
stuff.

Change-Id: I08b40bff766d8af6e467bf5be36f770566cee31f
(cherry picked from commit 0b967496f944f83808224c34c3c02887a38ae76e)
Dotcase: don't animate activity appearing

Change-Id: Id0696f93978c74078e6ab0f98bbbc2b0232fbff1
(cherry picked from commit 5a8a3c3a84956cf0ac558a6bf054f3a9e19f1c03)
Dotcase: Define static colors to prevent reuse glitches

Change-Id: I9e4eb3e51df537d32e06cfcbb9d538caefe51b06
(cherry picked from commit 5b66f63309efedc9d531edba4a7345c5ee895f6f)