summaryrefslogtreecommitdiff
path: root/perf-tests
diff options
context:
space:
mode:
author Ben Lin <linben@google.com> 2016-07-20 18:24:29 -0700
committer Ben Lin <linben@google.com> 2016-07-21 17:00:29 -0700
commitfe5cd2e347263aa609db5691426a965a5bc39be8 (patch)
treefda75c25cf98242dc8121e6f8fd68a6011065e39 /perf-tests
parentca7c0880d7eea7ed32d78394b0d2179b39a8a2eb (diff)
Attempt at fixing broken tests and regressing performance.
1. testDeleteDocument_Cancel seems to pass far more often than testDeleteDocument, which always errors out due to not able to find the menu item. This is to combine the tests so we don't lose coverage, but also have less noise in APCT until we figure out what's going on. 2. We have regression currently on our jank tests. Per Guang's suggestion, we are going to try freezing device orientation to see if it helps. Bug: 30190207 Change-Id: Ibdfdb75471b3220faaa9e8abef03df489ff185c3
Diffstat (limited to 'perf-tests')
-rw-r--r--perf-tests/src/com/android/documentsui/FilesJankPerfTest.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/perf-tests/src/com/android/documentsui/FilesJankPerfTest.java b/perf-tests/src/com/android/documentsui/FilesJankPerfTest.java
index cb2d904c9..9925d5b0c 100644
--- a/perf-tests/src/com/android/documentsui/FilesJankPerfTest.java
+++ b/perf-tests/src/com/android/documentsui/FilesJankPerfTest.java
@@ -56,6 +56,10 @@ public class FilesJankPerfTest extends JankTestBase {
final Intent intent = new Intent(context, FilesActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
mActivity = getInstrumentation().startActivitySync(intent);
+ try {
+ device.setOrientationNatural();
+ } catch (RemoteException e) {
+ }
}
public void tearDownInLoop() {
@@ -63,6 +67,11 @@ public class FilesJankPerfTest extends JankTestBase {
mActivity.finish();
mActivity = null;
}
+ try {
+ final UiDevice device = UiDevice.getInstance(getInstrumentation());
+ device.unfreezeRotation();
+ } catch (RemoteException e) {
+ }
}
public void setupAndOpenInLoop() throws Exception {