Search in sources :

Example 1 with RepetitiveTest

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);
}
Also used : Launcher(com.android.launcher3.Launcher) RepetitiveTest(android.test.RepetitiveTest)

Example 2 with RepetitiveTest

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);
}
Also used : Launcher(com.android.launcher2.Launcher) RepetitiveTest(android.test.RepetitiveTest)

Example 3 with RepetitiveTest

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);
}
Also used : Launcher(com.android.launcher2.Launcher) RepetitiveTest(android.test.RepetitiveTest)

Aggregations

RepetitiveTest (android.test.RepetitiveTest)3 Launcher (com.android.launcher2.Launcher)2 Launcher (com.android.launcher3.Launcher)1