dotcase: use a timer for redrawing

Change-Id: I51c882d33ddf7e0cdfcde431d650ab2f6e97f87b
dotcase: add timeout based on plugged status

Change-Id: I7cd2323489eea9ef815c510262ae0881636c2e18
dotcase: add a thread killer

Change-Id: I67f2f257a7d948c0333d44995021a7f170754eca