hidl: thermal: Migrate to `tidy_checks_as_errors`

Change-Id: If59ddc2d3b6c08308422b4a8a9ce1003541bd0ec
diff --git a/hidl/thermal/Android.bp b/hidl/thermal/Android.bp
index f5e0646..5d6045b 100644
--- a/hidl/thermal/Android.bp
+++ b/hidl/thermal/Android.bp
@@ -35,14 +35,11 @@
     "-Wunused",
   ],
   tidy: true,
-  tidy_checks: [
+  tidy_checks_as_errors: [
     "android-*",
     "cert-*",
     "clang-analyzer-security*",
   ],
-  tidy_flags: [
-    "-warnings-as-errors=android-*,clang-analyzer-security*,cert-*"
-  ],
 }
 
 sh_binary {