Commit 74177f31 by Cody Northrop Committed by Commit Bot

Tests: Run Android tests fullscreen

In order to hide the status bar and hopefully prevent any layers from rendering on top of our traces, make all Android tests run fullscreen. Test: angle_perftests Bug: angleproject:5937 Change-Id: I649104a7d95b7f056b411e180632524a85b7c4f2 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2880335Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarTim Van Patten <timvp@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com>
parent daeac238
......@@ -17,6 +17,7 @@ import android.os.Handler;
import android.os.Process;
import android.system.Os;
import android.util.Log;
import android.view.View;
import org.chromium.build.gtest_apk.NativeTestIntent;
......@@ -60,6 +61,15 @@ public class AngleNativeTest
mReporter.testRunStarted(Process.myPid());
Thread.setDefaultUncaughtExceptionHandler(new ReportingUncaughtExceptionHandler(
mReporter, Thread.getDefaultUncaughtExceptionHandler()));
// Enable fullscreen mode
// https://developer.android.com/training/system-ui/immersive#java
View decorView = activity.getWindow().getDecorView();
if (decorView != null)
{
decorView.setSystemUiVisibility(
View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_FULLSCREEN);
}
}
private void parseArgumentsFromIntent(Activity activity, Intent intent)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment