From 92a8b22e7410e74e1cba1b856333116652af8a5c Mon Sep 17 00:00:00 2001 From: Siva Velusamy Date: Fri, 9 Mar 2012 16:24:04 -0800 Subject: ActivityManager: add option to allow OpenGL trace. This patch adds an option to enable tracing of OpenGL functions. OpenGL tracing can be enabled by passing "--opengl-trace" option to am start. This option requires either a device in debug mode, or that the application itself has debug permission set. Change-Id: I77788bfe97c9108943b1f947ce81afe8293d78a0 --- core/java/android/app/Activity.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (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 f8954315630b..4ff99d01d57b 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -3388,17 +3388,16 @@ public class Activity extends ContextThemeWrapper intent.setAllowFds(false); result = ActivityManagerNative.getDefault() .startActivity(mMainThread.getApplicationThread(), - intent, intent.resolveTypeIfNeeded( - getContentResolver()), + intent, intent.resolveTypeIfNeeded(getContentResolver()), null, 0, - mToken, mEmbeddedID, requestCode, true, false, - null, null, false); + mToken, mEmbeddedID, requestCode, true /* onlyIfNeeded */, + false, false, null, null, false); } catch (RemoteException e) { // Empty } - + Instrumentation.checkStartActivityResult(result, intent); - + if (requestCode >= 0) { // If this start is requesting a result, we can avoid making // the activity visible until the result is received. Setting -- cgit v1.2.3