use of android.test.RepetitiveTest in project Launcher3 by chislon.
the class LauncherRotationStressTest method testLauncherRotationStress.
@RepetitiveTest(numIterations = NUM_ITERATIONS)
public void testLauncherRotationStress() throws Exception {
Launcher launcher = getActivity();
getInstrumentation().waitForIdleSync();
SystemClock.sleep(WAIT_TIME_MS);
launcher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
getInstrumentation().waitForIdleSync();
SystemClock.sleep(WAIT_TIME_MS);
launcher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
use of android.test.RepetitiveTest in project Fairphone by Kwamecorp.
the class LauncherRotationStressTest method testLauncherRotationStress.
@RepetitiveTest(numIterations = NUM_ITERATIONS)
public void testLauncherRotationStress() throws Exception {
Launcher launcher = getActivity();
getInstrumentation().waitForIdleSync();
SystemClock.sleep(WAIT_TIME_MS);
launcher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
getInstrumentation().waitForIdleSync();
SystemClock.sleep(WAIT_TIME_MS);
launcher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
use of android.test.RepetitiveTest in project android_packages_apps_Launcher2 by CyanogenMod.
the class LauncherRotationStressTest method testLauncherRotationStress.
@RepetitiveTest(numIterations = NUM_ITERATIONS)
public void testLauncherRotationStress() throws Exception {
Launcher launcher = getActivity();
getInstrumentation().waitForIdleSync();
SystemClock.sleep(WAIT_TIME_MS);
launcher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
getInstrumentation().waitForIdleSync();
SystemClock.sleep(WAIT_TIME_MS);
launcher.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
Aggregations