Add a lint check to flag usages of Thread.sleep
Bug: 266129370
Test: Added new tests and ran updateLintBaseline
Change-Id: Ic77a962a53519674e4b45a63dace8f496edd3522
Merged-In: Ic77a962a53519674e4b45a63dace8f496edd3522
diff --git a/buildSrc/lint.xml b/buildSrc/lint.xml
index 72bcf5b..62dda35 100644
--- a/buildSrc/lint.xml
+++ b/buildSrc/lint.xml
@@ -35,6 +35,7 @@
<ignore path="**/java/tests/**" />
</issue>
<!-- Re-enable high-priority checks for tests (and everything else). -->
+ <issue id="BanThreadSleep" severity="fatal" />
<issue id="NewApi" severity="fatal" />
<issue id="WrongThread" severity="fatal" />
<issue id="MissingTestSizeAnnotation" severity="fatal" />