1-keepclasseswithmembernames class * {
2    native <methods>;
3}
4
5# ensure we keep public sensor test methods, these are needed at runtime
6-keepclassmembers class * extends com.android.cts.verifier.sensors.base.BaseSensorTestActivity {
7    public <methods>;
8}
9-keepclassmembers class * extends android.hardware.cts.SensorTestCase {
10    public <methods>;
11}
12
13# ensure we keep public Gnss Measurement test methods, these are needed at runtime
14-keepclassmembers class * extends com.android.cts.verifier.location.BaseGnssTestActivity {
15    public <methods>;
16}
17-keepclassmembers class * extends android.location.cts.common.GnssTestCase {
18    public <methods>;
19}
20
21# ensure we keep public camera test methods, these are needed at runtime
22-keepclassmembers class android.hardware.camera2.cts.PerformanceTest {
23    public <methods>;
24}
25
26-keepclassmembers class android.hardware.cts.LegacyCameraPerformanceTest {
27    public <methods>;
28}
29
30-keepclassmembers class org.junit.runners.JUnit4 {
31    public <methods>;
32}
33
34-keepclasseswithmembers class * extends com.android.cts.verifier.location.LocationModeTestActivity
35
36-keepclasseswithmembers class * extends com.android.cts.verifier.audio.HifiUltrasoundSpeakerTestActivity
37-keepclasseswithmembers class * extends com.android.cts.verifier.audio.HifiUltrasoundTestActivity
38
39# keep mockito methods
40-keep class org.mockito.** { *; }
41-keep interface org.mockito.** { *; }
42-keep class com.google.dexmaker.** { *; }
43-keep class com.android.dx.mockito.** { *; }
44-keep interface com.google.dexmaker.** { *; }
45
46-dontwarn android.hardware.Sensor
47-dontwarn android.test.AndroidTestRunner
48-dontwarn java.util.concurrent.ConcurrentLinkedDeque
49-dontwarn com.android.compatibility.common.util.**
50-dontwarn junit.**
51
52# Jack seems less rigorous than proguard when it comes to warning about
53# transitive dependencies.
54-dontwarn com.android.okhttp.**
55-dontwarn org.opencv.**
56-dontwarn androidx.test.internal.runner.hidden.ExposedInstrumentationApi
57
58-dontwarn java.lang.management.**
59
60# keep androidplot methods
61-keep class com.androidplot.** { *; }
62