From ddc43911707a005ddf533d3df8e4014a4ab4fcf2 Mon Sep 17 00:00:00 2001 From: Tim Van Patten Date: Tue, 18 Dec 2018 17:47:52 -0700 Subject: ANGLE In Use Dialog Box When ANGLE is enabled for an app, show a dialog box to the user to indicate that ANGLE is in use. This is useful because there are not (or at least shouldn't be) any visual indication that a different OpenGL driver is in use. Bug: 120489005 Test: atest CtsAngleIntegrationHostTestCases Test: Load an app with ANGLE enabled and verify dialog box is shown. Test: Load an app without ANGLE and verify dialog box is not shown. Change-Id: I5e87ec96582d43666cfcca2266b46ce98b859a32 --- core/java/android/app/Activity.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/java/android/app/Activity.java') diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 0eadd1dcd903..5f778da44a1c 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -65,6 +65,7 @@ import android.net.Uri; import android.os.BadParcelableException; import android.os.Build; import android.os.Bundle; +import android.os.GraphicsEnvironment; import android.os.Handler; import android.os.IBinder; import android.os.Looper; @@ -7708,6 +7709,8 @@ public class Activity extends ContextThemeWrapper } } + GraphicsEnvironment.getInstance().showAngleInUseDialogBox(this); + mActivityTransitionState.enterReady(this); dispatchActivityPostStarted(); } -- cgit v1.2.3