Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/BaseBenchmarkTest.kt +6 −0 Original line number Diff line number Diff line Loading @@ -20,8 +20,10 @@ import android.app.Instrumentation import android.tools.flicker.junit.FlickerBuilderProvider import android.tools.flicker.legacy.FlickerBuilder import android.tools.flicker.legacy.LegacyFlickerTest import android.tools.flicker.rules.ClearAppCacheRule import androidx.test.platform.app.InstrumentationRegistry import com.android.launcher3.tapl.LauncherInstrumentation import org.junit.ClassRule abstract class BaseBenchmarkTest @JvmOverloads Loading @@ -44,4 +46,8 @@ constructor( transition() } } companion object { @ClassRule @JvmField val clearCache = ClearAppCacheRule() } } tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.platform.test.annotations.Presubmit import android.tools.flicker.junit.FlickerBuilderProvider import android.tools.flicker.legacy.FlickerBuilder import android.tools.flicker.legacy.LegacyFlickerTest import android.tools.flicker.rules.ClearAppCacheRule import android.tools.traces.executeShellCommand import android.util.Log import androidx.test.platform.app.InstrumentationRegistry Loading @@ -29,6 +30,7 @@ import com.android.launcher3.tapl.LauncherInstrumentation import com.android.wm.shell.Flags import org.junit.Assume import org.junit.AssumptionViolatedException import org.junit.ClassRule import org.junit.Test /** Loading Loading @@ -223,4 +225,8 @@ constructor( Log.e(logTag, "Assumption violation on CUJ complete", e) } } companion object { @ClassRule @JvmField val clearCache = ClearAppCacheRule() } } Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/BaseBenchmarkTest.kt +6 −0 Original line number Diff line number Diff line Loading @@ -20,8 +20,10 @@ import android.app.Instrumentation import android.tools.flicker.junit.FlickerBuilderProvider import android.tools.flicker.legacy.FlickerBuilder import android.tools.flicker.legacy.LegacyFlickerTest import android.tools.flicker.rules.ClearAppCacheRule import androidx.test.platform.app.InstrumentationRegistry import com.android.launcher3.tapl.LauncherInstrumentation import org.junit.ClassRule abstract class BaseBenchmarkTest @JvmOverloads Loading @@ -44,4 +46,8 @@ constructor( transition() } } companion object { @ClassRule @JvmField val clearCache = ClearAppCacheRule() } }
tests/FlickerTests/src/com/android/server/wm/flicker/BaseTest.kt +6 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.platform.test.annotations.Presubmit import android.tools.flicker.junit.FlickerBuilderProvider import android.tools.flicker.legacy.FlickerBuilder import android.tools.flicker.legacy.LegacyFlickerTest import android.tools.flicker.rules.ClearAppCacheRule import android.tools.traces.executeShellCommand import android.util.Log import androidx.test.platform.app.InstrumentationRegistry Loading @@ -29,6 +30,7 @@ import com.android.launcher3.tapl.LauncherInstrumentation import com.android.wm.shell.Flags import org.junit.Assume import org.junit.AssumptionViolatedException import org.junit.ClassRule import org.junit.Test /** Loading Loading @@ -223,4 +225,8 @@ constructor( Log.e(logTag, "Assumption violation on CUJ complete", e) } } companion object { @ClassRule @JvmField val clearCache = ClearAppCacheRule() } }