Loading tests/Input/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ android_test { "androidx.test.uiautomator_uiautomator", "compatibility-device-util-axt", "cts-input-lib", "cts-wm-util", "flag-junit", "frameworks-base-testutils", "hamcrest-library", Loading tests/Input/src/com/android/test/input/AnrTest.kt +4 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import android.os.IInputConstants.UNMULTIPLIED_DEFAULT_DISPATCHING_TIMEOUT_MILLI import android.os.SystemClock import android.provider.Settings import android.provider.Settings.Global.HIDE_ERROR_DIALOGS import android.server.wm.CtsWindowInfoUtils.waitForStableWindowGeometry import android.testing.PollingCheck import androidx.test.uiautomator.By Loading @@ -38,6 +39,8 @@ import androidx.test.uiautomator.Until import com.android.cts.input.UinputTouchScreen import java.util.concurrent.TimeUnit import org.junit.After import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue Loading Loading @@ -183,5 +186,6 @@ class AnrTest { val flags = " -W -n " val startCmd = "am start $flags $PACKAGE_NAME/.UnresponsiveGestureMonitorActivity" instrumentation.uiAutomation.executeShellCommand(startCmd) waitForStableWindowGeometry(5L, TimeUnit.SECONDS) } } Loading
tests/Input/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -32,6 +32,7 @@ android_test { "androidx.test.uiautomator_uiautomator", "compatibility-device-util-axt", "cts-input-lib", "cts-wm-util", "flag-junit", "frameworks-base-testutils", "hamcrest-library", Loading
tests/Input/src/com/android/test/input/AnrTest.kt +4 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ import android.os.IInputConstants.UNMULTIPLIED_DEFAULT_DISPATCHING_TIMEOUT_MILLI import android.os.SystemClock import android.provider.Settings import android.provider.Settings.Global.HIDE_ERROR_DIALOGS import android.server.wm.CtsWindowInfoUtils.waitForStableWindowGeometry import android.testing.PollingCheck import androidx.test.uiautomator.By Loading @@ -38,6 +39,8 @@ import androidx.test.uiautomator.Until import com.android.cts.input.UinputTouchScreen import java.util.concurrent.TimeUnit import org.junit.After import org.junit.Assert.assertEquals import org.junit.Assert.assertTrue Loading Loading @@ -183,5 +186,6 @@ class AnrTest { val flags = " -W -n " val startCmd = "am start $flags $PACKAGE_NAME/.UnresponsiveGestureMonitorActivity" instrumentation.uiAutomation.executeShellCommand(startCmd) waitForStableWindowGeometry(5L, TimeUnit.SECONDS) } }