Add custom baseline for the custom Android Gradle Plugin.
Bug: 62349821
Test: build using latest AGP
Change-Id: I7622f94d8cd71a91511b7deb45c16f209a48b387
diff --git a/wear/lint-baseline-custom.xml b/wear/lint-baseline-custom.xml
new file mode 100644
index 0000000..3b59912
--- /dev/null
+++ b/wear/lint-baseline-custom.xml
@@ -0,0 +1,243 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="4" by="lint 3.0.0-dev">
+
+ <issue
+ id="DuplicateIds"
+ message="Duplicate id `@+id/off`, already defined earlier in this layout"
+ errorLine1=" android:id="@+id/off""
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="res/drawable-v21/ws_switch_thumb_material_anim.xml"
+ line="27"
+ column="9"/>
+ <location
+ file="res/drawable-v21/ws_switch_thumb_material_anim.xml"
+ line="19"
+ column="9"/>
+ </issue>
+
+ <issue
+ id="ResourceAsColor"
+ message="Should pass resolved color instead of resource id here: `getResources().getColor(android.R.color.darker_gray)`"
+ errorLine1=" mCircleColor = ColorStateList.valueOf(android.R.color.darker_gray);"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="src/android/support/wear/widget/CircledImageView.java"
+ line="148"
+ column="51"/>
+ </issue>
+
+ <issue
+ id="Range"
+ message="Value must be ≥ 0 (was -1)"
+ errorLine1=" childHeightSpec = MeasureSpec.makeMeasureSpec(maxLayoutHeight, MeasureSpec.AT_MOST);"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/SlidingPaneLayout.java"
+ line="536"
+ column="63"/>
+ </issue>
+
+ <issue
+ id="Range"
+ message="Value must be ≥ 0 (was -1)"
+ errorLine1=" childHeightSpec = MeasureSpec.makeMeasureSpec(maxLayoutHeight, MeasureSpec.EXACTLY);"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/SlidingPaneLayout.java"
+ line="538"
+ column="63"/>
+ </issue>
+
+ <issue
+ id="Range"
+ message="Value must be ≥ 0 (was -1)"
+ errorLine1=" childHeightSpec = MeasureSpec.makeMeasureSpec(maxLayoutHeight,"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/SlidingPaneLayout.java"
+ line="586"
+ column="79"/>
+ </issue>
+
+ <issue
+ id="Range"
+ message="Value must be ≥ 0 (was -1)"
+ errorLine1=" childHeightSpec = MeasureSpec.makeMeasureSpec(maxLayoutHeight,"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/SlidingPaneLayout.java"
+ line="589"
+ column="79"/>
+ </issue>
+
+ <issue
+ id="Range"
+ message="Value must be ≥ 0 (was -1)"
+ errorLine1=" childHeightSpec = MeasureSpec.makeMeasureSpec(maxLayoutHeight,"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/SlidingPaneLayout.java"
+ line="608"
+ column="75"/>
+ </issue>
+
+ <issue
+ id="Range"
+ message="Value must be ≥ 0 (was -1)"
+ errorLine1=" childHeightSpec = MeasureSpec.makeMeasureSpec(maxLayoutHeight,"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/SlidingPaneLayout.java"
+ line="611"
+ column="75"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "found saved state: " + mPendingSavedState);"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="783"
+ column="19"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "Deciding anchor info from fresh state");"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="828"
+ column="19"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "invalid saved state class");"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="1187"
+ column="19"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "saved state:\n" + state);"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="1236"
+ column="19"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "FILLING targetLine: " + targetLine + ",""
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="1559"
+ column="19"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "assigned " + currentSpan.mIndex + " for " + position);"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="1580"
+ column="27"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "using " + spanIndex + " for pos " + position);"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="1584"
+ column="27"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "asked " + dt + " scrolled" + totalScroll);"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="2153"
+ column="19"/>
+ </issue>
+
+ <issue
+ id="LongLogTag"
+ message="The logging tag can be at most 23 characters, was 26 (StaggeredGridLayoutManager)"
+ errorLine1=" Log.d(TAG, "Unknown focus request:" + focusDirection);"
+ errorLine2=" ~~~">
+ <location
+ file="src/android/support/v7/widget/StaggeredGridLayoutManager.java"
+ line="2385"
+ column="27"/>
+ </issue>
+
+ <issue
+ id="UniqueConstants"
+ message="Constants `FLAG_CVE_EQ_PVE` and `FLAG_CVE_EQ_PVE` specify the same exact value (8192); this is usually a cut & paste or merge error"
+ errorLine1=" FLAG_CVE_EQ_PVE, FLAG_CVE_EQ_PVE, FLAG_CVE_LT_PVE"
+ errorLine2=" ~~~~~~~~~~~~~~~">
+ <location
+ file="src/android/support/v7/widget/ViewBoundsCheck.java"
+ line="125"
+ column="30"/>
+ <location
+ file="src/android/support/v7/widget/ViewBoundsCheck.java"
+ line="125"
+ column="13"/>
+ </issue>
+
+ <issue
+ id="WrongConstant"
+ message="Must be one of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END"
+ errorLine1=" setDrawerLockMode(lockMode, gravity);"
+ errorLine2=" ~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/DrawerLayout.java"
+ line="680"
+ column="37"/>
+ </issue>
+
+ <issue
+ id="WrongConstant"
+ message="Must be one of: Gravity.LEFT, Gravity.RIGHT, GravityCompat.START, GravityCompat.END"
+ errorLine1=" return getDrawerLockMode(drawerGravity);"
+ errorLine2=" ~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/DrawerLayout.java"
+ line="753"
+ column="34"/>
+ </issue>
+
+ <issue
+ id="WrongConstant"
+ message="Flag not allowed here"
+ errorLine1=" getDrawerViewAbsoluteGravity(child) & Gravity.HORIZONTAL_GRAVITY_MASK;"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
+ <location
+ file="java/android/support/v4/widget/DrawerLayout.java"
+ line="1086"
+ column="25"/>
+ </issue>
+
+</issues>