Start defining custom Error Prone.

As we move towards becoming a Mainline module, it's important that
we catch as many bugs as possible during initial code review, and
Error Prone is designed to do exactly that.

This change introduces several new custom Error Prone rules specific
to MediaProvider, such as ensuring that MIME types are always
compared using case-insensitive operations, and that all case folding
is done using Locale.ROOT.

Bug: 142561358
Test: ./build/soong/soong_ui.bash --make-mode MediaProviderLegacy com.google.android.mediaprovider MediaProviderTests RUN_ERROR_PRONE=true
Change-Id: I1e2bb0a4381c05d68ed59a4128badf68b286d1eb
diff --git a/Android.bp b/Android.bp
index 70523bd..ae2c386 100644
--- a/Android.bp
+++ b/Android.bp
@@ -35,6 +35,7 @@
 
     plugins: [
         "java_api_finder",
+        "error_prone_mediaprovider",
     ],
 
     sdk_version: "module_current",
@@ -49,6 +50,10 @@
             "-Xep:FallThrough:ERROR",
             "-Xep:GuardedBy:ERROR",
             "-Xep:StreamResourceLeak:ERROR",
+
+            // Local checkers specific to this module
+            "-Xep:MediaProviderLocaleRoot:ERROR",
+            "-Xep:MediaProviderMimeType:ERROR",
         ],
     },
 }