Search in sources :

Example 1 with JankTest

use of android.support.test.jank.JankTest in project android_frameworks_base by DirtyUnicorns.

the class FilesJankPerfTest method testFlingJankPerformance.

@JankTest(expectedFrames = 0, beforeLoop = "setupAndOpenInLoop", afterLoop = "tearDownInLoop")
@GfxMonitor(processName = DOCUMENTSUI_PACKAGE)
public void testFlingJankPerformance() throws Exception {
    new UiScrollable(mDirListBot.findDocumentsList().getSelector()).flingToEnd(MAX_FLINGS);
    getInstrumentation().waitForIdleSync();
}
Also used : UiScrollable(android.support.test.uiautomator.UiScrollable) JankTest(android.support.test.jank.JankTest) GfxMonitor(android.support.test.jank.GfxMonitor)

Example 2 with JankTest

use of android.support.test.jank.JankTest in project platform_frameworks_base by android.

the class FilesJankPerfTest method testFlingJankPerformance.

@JankTest(expectedFrames = 0, beforeLoop = "setupAndOpenInLoop", afterLoop = "tearDownInLoop")
@GfxMonitor(processName = DOCUMENTSUI_PACKAGE)
public void testFlingJankPerformance() throws Exception {
    new UiScrollable(mDirListBot.findDocumentsList().getSelector()).flingToEnd(MAX_FLINGS);
    getInstrumentation().waitForIdleSync();
}
Also used : UiScrollable(android.support.test.uiautomator.UiScrollable) JankTest(android.support.test.jank.JankTest) GfxMonitor(android.support.test.jank.GfxMonitor)

Example 3 with JankTest

use of android.support.test.jank.JankTest in project android_frameworks_base by AOSPA.

the class FilesJankPerfTest method testFlingJankPerformance.

@JankTest(expectedFrames = 0, beforeLoop = "setupAndOpenInLoop", afterLoop = "tearDownInLoop")
@GfxMonitor(processName = DOCUMENTSUI_PACKAGE)
public void testFlingJankPerformance() throws Exception {
    new UiScrollable(mDirListBot.findDocumentsList().getSelector()).flingToEnd(MAX_FLINGS);
    getInstrumentation().waitForIdleSync();
}
Also used : UiScrollable(android.support.test.uiautomator.UiScrollable) JankTest(android.support.test.jank.JankTest) GfxMonitor(android.support.test.jank.GfxMonitor)

Example 4 with JankTest

use of android.support.test.jank.JankTest in project android_frameworks_base by crdroidandroid.

the class FilesJankPerfTest method testFlingJankPerformance.

@JankTest(expectedFrames = 0, beforeLoop = "setupAndOpenInLoop", afterLoop = "tearDownInLoop")
@GfxMonitor(processName = DOCUMENTSUI_PACKAGE)
public void testFlingJankPerformance() throws Exception {
    new UiScrollable(mDirListBot.findDocumentsList().getSelector()).flingToEnd(MAX_FLINGS);
    getInstrumentation().waitForIdleSync();
}
Also used : UiScrollable(android.support.test.uiautomator.UiScrollable) JankTest(android.support.test.jank.JankTest) GfxMonitor(android.support.test.jank.GfxMonitor)

Example 5 with JankTest

use of android.support.test.jank.JankTest in project android_frameworks_base by ResurrectionRemix.

the class FilesJankPerfTest method testFlingJankPerformance.

@JankTest(expectedFrames = 0, beforeLoop = "setupAndOpenInLoop", afterLoop = "tearDownInLoop")
@GfxMonitor(processName = DOCUMENTSUI_PACKAGE)
public void testFlingJankPerformance() throws Exception {
    new UiScrollable(mDirListBot.findDocumentsList().getSelector()).flingToEnd(MAX_FLINGS);
    getInstrumentation().waitForIdleSync();
}
Also used : UiScrollable(android.support.test.uiautomator.UiScrollable) JankTest(android.support.test.jank.JankTest) GfxMonitor(android.support.test.jank.GfxMonitor)

Aggregations

GfxMonitor (android.support.test.jank.GfxMonitor)5 JankTest (android.support.test.jank.JankTest)5 UiScrollable (android.support.test.uiautomator.UiScrollable)5