blob: 8d9c3e72cee16d6eb81e364b146c7e26145c7ee6 [file] [log] [blame]
/*
* Copyright (C) 2013 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
* or implied. See the License for the specific language governing permissions and limitations under
* the License.
*/
package com.android.pts.jank.opengl;
import com.android.pts.jank.PtsHostJankTest;
import java.io.File;
public class PtsHostJankOpenGl extends PtsHostJankTest {
private static final String APK_PACKAGE = "com.android.pts";
private static final String APK = "PtsDeviceOpenGl.apk";
private static final String PACKAGE = "com.android.pts.jank.opengl";
private static final String HOST_CLASS = PtsHostJankOpenGl.class.getName();
private static final String DEVICE_CLASS = PACKAGE + ".PtsDeviceJankOpenGl";
private static final String JAR_NAME = "PtsDeviceJank.jar";
public PtsHostJankOpenGl() {
super(JAR_NAME, DEVICE_CLASS, HOST_CLASS);
}
@Override
protected void setUp() throws Exception {
super.setUp();
// Install the app.
mDevice.uninstallPackage(APK_PACKAGE);
File app = mBuild.getTestApp(APK);
mDevice.installPackage(app, false);
}
@Override
protected void tearDown() throws Exception {
// Uninstall the app.
mDevice.uninstallPackage(APK_PACKAGE);
super.tearDown();
}
public void testFullPipeline() throws Exception {
runUiAutomatorTest("testFullPipeline");
}
public void testPixelOutput() throws Exception {
runUiAutomatorTest("testPixelOutput");
}
public void testShaderPerf() throws Exception {
runUiAutomatorTest("testShaderPerf");
}
public void testContextSwitch() throws Exception {
runUiAutomatorTest("testContextSwitch");
}
}