Loading tests/Input/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,9 @@ android_test { "src/**/*.java", "src/**/*.kt", ], kotlincflags: [ "-Werror", ], platform_apis: true, certificate: "platform", static_libs: [ Loading tests/Input/src/com/android/test/input/AnrTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class AnrTest { val contentResolver = instrumentation.targetContext.contentResolver hideErrorDialogs = Settings.Global.getInt(contentResolver, HIDE_ERROR_DIALOGS, 0) Settings.Global.putInt(contentResolver, HIDE_ERROR_DIALOGS, 0) PACKAGE_NAME = UnresponsiveGestureMonitorActivity::class.java.getPackage().getName() PACKAGE_NAME = UnresponsiveGestureMonitorActivity::class.java.getPackage()!!.getName() } @After Loading tests/Input/src/com/android/test/input/UnresponsiveGestureMonitorActivity.kt +2 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,8 @@ class UnresponsiveGestureMonitorActivity : Activity() { private lateinit var mInputMonitor: InputMonitor override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) mInputMonitor = InputManager.getInstance().monitorGestureInput(MONITOR_NAME, displayId) val inputManager = getSystemService(InputManager::class.java) mInputMonitor = inputManager.monitorGestureInput(MONITOR_NAME, displayId) mInputEventReceiver = UnresponsiveReceiver( mInputMonitor.getInputChannel(), Looper.myLooper()) } Loading Loading
tests/Input/Android.bp +3 −0 Original line number Diff line number Diff line Loading @@ -13,6 +13,9 @@ android_test { "src/**/*.java", "src/**/*.kt", ], kotlincflags: [ "-Werror", ], platform_apis: true, certificate: "platform", static_libs: [ Loading
tests/Input/src/com/android/test/input/AnrTest.kt +1 −1 Original line number Diff line number Diff line Loading @@ -73,7 +73,7 @@ class AnrTest { val contentResolver = instrumentation.targetContext.contentResolver hideErrorDialogs = Settings.Global.getInt(contentResolver, HIDE_ERROR_DIALOGS, 0) Settings.Global.putInt(contentResolver, HIDE_ERROR_DIALOGS, 0) PACKAGE_NAME = UnresponsiveGestureMonitorActivity::class.java.getPackage().getName() PACKAGE_NAME = UnresponsiveGestureMonitorActivity::class.java.getPackage()!!.getName() } @After Loading
tests/Input/src/com/android/test/input/UnresponsiveGestureMonitorActivity.kt +2 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,8 @@ class UnresponsiveGestureMonitorActivity : Activity() { private lateinit var mInputMonitor: InputMonitor override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) mInputMonitor = InputManager.getInstance().monitorGestureInput(MONITOR_NAME, displayId) val inputManager = getSystemService(InputManager::class.java) mInputMonitor = inputManager.monitorGestureInput(MONITOR_NAME, displayId) mInputEventReceiver = UnresponsiveReceiver( mInputMonitor.getInputChannel(), Looper.myLooper()) } Loading