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.GnssTestCase { 18 public <methods>; 19} 20 21# ensure we keep public camera test methods, these are needed at runtime 22-keepclassmembers class * extends android.hardware.camera2.cts.testcases.Camera2AndroidTestCase { 23 public <methods>; 24} 25 26-keepclassmembers class * extends android.hardware.cts.CameraTestCase { 27 public <methods>; 28} 29 30-keepclasseswithmembers class * extends com.android.cts.verifier.location.LocationModeTestActivity 31 32-keepclasseswithmembers class * extends com.android.cts.verifier.audio.HifiUltrasoundSpeakerTestActivity 33-keepclasseswithmembers class * extends com.android.cts.verifier.audio.HifiUltrasoundTestActivity 34 35# keep mockito methods 36-keep class org.mockito.** { *; } 37-keep interface org.mockito.** { *; } 38-keep class com.google.dexmaker.** { *; } 39-keep class com.android.dx.mockito.** { *; } 40-keep interface com.google.dexmaker.** { *; } 41 42-dontwarn android.hardware.Sensor 43-dontwarn android.test.AndroidTestRunner 44-dontwarn java.util.concurrent.ConcurrentLinkedDeque 45-dontwarn com.android.compatibility.common.util.** 46-dontwarn junit.** 47 48# Jack seems less rigorous than proguard when it comes to warning about 49# transitive dependencies. 50-dontwarn com.android.okhttp.** 51-dontwarn org.opencv.** 52-dontwarn androidx.test.internal.runner.hidden.ExposedInstrumentationApi 53 54-dontwarn java.lang.management.** 55