Loading core/java/android/app/Instrumentation.java +13 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.app; import android.annotation.IntDef; import android.content.ActivityNotFoundException; import android.content.ComponentName; import android.content.Context; Loading Loading @@ -49,6 +50,8 @@ import android.view.Window; import com.android.internal.content.ReferrerIntent; import java.io.File; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; import java.util.List; Loading Loading @@ -79,6 +82,14 @@ public class Instrumentation { private static final String TAG = "Instrumentation"; /** * @hide */ @Retention(RetentionPolicy.SOURCE) @IntDef({0, UiAutomation.FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES}) public @interface UiAutomationFlags {}; private final Object mSync = new Object(); private ActivityThread mThread = null; private MessageQueue mMessageQueue = null; Loading Loading @@ -1876,7 +1887,7 @@ public class Instrumentation { * * @see UiAutomation */ public UiAutomation getUiAutomation(int flags) { public UiAutomation getUiAutomation(@UiAutomationFlags int flags) { if (mUiAutomationConnection != null) { if ((mUiAutomation == null) || (mUiAutomation.isDestroyed())) { mUiAutomation = new UiAutomation(getTargetContext().getMainLooper(), Loading Loading
core/java/android/app/Instrumentation.java +13 −2 Original line number Diff line number Diff line Loading @@ -16,6 +16,7 @@ package android.app; import android.annotation.IntDef; import android.content.ActivityNotFoundException; import android.content.ComponentName; import android.content.Context; Loading Loading @@ -49,6 +50,8 @@ import android.view.Window; import com.android.internal.content.ReferrerIntent; import java.io.File; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.util.ArrayList; import java.util.List; Loading Loading @@ -79,6 +82,14 @@ public class Instrumentation { private static final String TAG = "Instrumentation"; /** * @hide */ @Retention(RetentionPolicy.SOURCE) @IntDef({0, UiAutomation.FLAG_DONT_SUPPRESS_ACCESSIBILITY_SERVICES}) public @interface UiAutomationFlags {}; private final Object mSync = new Object(); private ActivityThread mThread = null; private MessageQueue mMessageQueue = null; Loading Loading @@ -1876,7 +1887,7 @@ public class Instrumentation { * * @see UiAutomation */ public UiAutomation getUiAutomation(int flags) { public UiAutomation getUiAutomation(@UiAutomationFlags int flags) { if (mUiAutomationConnection != null) { if ((mUiAutomation == null) || (mUiAutomation.isDestroyed())) { mUiAutomation = new UiAutomation(getTargetContext().getMainLooper(), Loading