From 17f1e7268dd74f4629847433f983416344a6364d Mon Sep 17 00:00:00 2001 From: Cole Faust Date: Tue, 16 Aug 2022 15:30:26 -0700 Subject: [PATCH] Mark SystemUI-tests as test code for lint Lint warns on usages of @VisibleForTesting methods from non-test code. Since SystemUI-tests is just a regular android_library instead of an android_test, it was warning there. Mark it as a test module so lint knows not to warn. Fixes: 235339747 Test: Presubmits Change-Id: Ibf8e94c4f9582740e60e285cc918b2976c1fc19a --- packages/SystemUI/Android.bp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/SystemUI/Android.bp b/packages/SystemUI/Android.bp index f05c1e2e76f26..104998c53e09a 100644 --- a/packages/SystemUI/Android.bp +++ b/packages/SystemUI/Android.bp @@ -247,6 +247,9 @@ android_library { "com.android.systemui", ], plugins: ["dagger2-compiler"], + lint: { + test: true, + }, } // Opt-in config for optimizing the SystemUI target using R8.