Disable OnBackInvoked for InputCtsActivity
Disable the `OnBackInvokedCallback` for the `InputCtsActivity` so that
configurations that have a callback registered don't consume the
`KEYCODE_BACK` events that these tests generate.
Fixes: 314896983
Test: atest CtsHardwareTestCases
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:aa7e19ad350a3ba44ad3a834dbc215ec48e0567e)
Merged-In: I96358a11266581d33d39938886ca0a95915c2609
Change-Id: I96358a11266581d33d39938886ca0a95915c2609
---
diff --git a/tests/tests/hardware/AndroidManifest.xml b/tests/tests/hardware/AndroidManifest.xml
index 9660e87..dc734c4 100644
--- a/tests/tests/hardware/AndroidManifest.xml
+++ b/tests/tests/hardware/AndroidManifest.xml
@@ -77,11 +77,14 @@
android:process=":camera2ActivityProcess">
</activity>
+ <!-- Disable onBackInvokedCallback to allow us to make assertions about
+ the app receiving KEYCODE_BACK. -->
<activity android:name="android.hardware.input.cts.InputCtsActivity"
android:label="InputCtsActivity"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation
|screenLayout|fontScale|uiMode|orientation|density|screenSize
- |smallestScreenSize|layoutDirection">
+ |smallestScreenSize|layoutDirection"
+ android:enableOnBackInvokedCallback="false">
</activity>
<activity android:name="android.hardware.input.cts.InputAssistantActivity"