We must wait for the ANRd process to be fully killed. If we simply click on "close" button on the dialog, this is not sufficient. The system would still be processing ANR and trying to kill the process. This killing action will therefore impact the next 'am start' command. The second activity will never be launched. In this CL, add a wait by polling the 'ApplicationExitInfo' lists before and after the 'close' button is clicked. Bug: 196111779 Test: atest InputTests:AnrTest Change-Id: I35e8f4ba302d0f1ed4a03be2257541a4e9a638f4
28 lines
736 B
Plaintext
28 lines
736 B
Plaintext
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "frameworks_base_license"
|
|
// to get the below license kinds:
|
|
// SPDX-license-identifier-Apache-2.0
|
|
default_applicable_licenses: ["frameworks_base_license"],
|
|
}
|
|
|
|
android_test {
|
|
name: "InputTests",
|
|
srcs: [
|
|
"src/**/*.java",
|
|
"src/**/*.kt",
|
|
],
|
|
platform_apis: true,
|
|
certificate: "platform",
|
|
static_libs: [
|
|
"androidx.test.ext.junit",
|
|
"androidx.test.rules",
|
|
"services.core.unboosted",
|
|
"testables",
|
|
"truth-prebuilt",
|
|
"ub-uiautomator",
|
|
],
|
|
test_suites: ["device-tests"],
|
|
}
|