Fix imports and enable Checkstyle for UI packates in cts.

- Removes unused imports, orders them
- Enables Checkstyle repo upload checks for UI packages

Test: None
Change-Id: I4cf563ca9261f22e15a433717e9df31ac20af4a1
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 77f70e7..9defdf3 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -1,5 +1,10 @@
 [Hook Scripts]
-checkstyle_hook = ../development/tools/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
+checkstyle_hook = ${REPO_ROOT}/development/tools/checkstyle/checkstyle.py --sha ${PREUPLOAD_COMMIT}
                   -fw apps/CtsVerifier/src/com/android/cts/verifier/usb/
                       apps/CtsVerifierUSBCompanion/
+                      tests/tests/animation/
                       tests/tests/print/
+                      tests/tests/text/
+                      tests/tests/transition/
+                      tests/tests/view/
+                      tests/tests/widget/