This will exercise the basic inputflinger pipeline for handling touch events. The purpose is to mainly serve as a template for adding future benchmarks. Also, move existing input-related benchmarks into the InputPerfTests, so that they are all in one place. This allows us to specify custom build rules like treating kotlin warnings as errors, including specific libraries, etc. Example output: com.android.perftests.input (1 Test) [1/1] android.input.TouchPerfTest#testDownMoveUp: PASSED (9.488s) downMoveUp_mean (ns): 81734303 downMoveUp_median (ns): 81343021 downMoveUp_min (ns): 75008516 downMoveUp_standardDeviation: 5514345 Bug: 396219004 Test: atest InputPerfTests Flag: TEST_ONLY Change-Id: I686c0fa6d2d5745ca0d4d69f12308331e37b818f
38 lines
1.7 KiB
XML
38 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 2025 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
package="com.android.perftests.input">
|
|
|
|
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
|
|
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
|
|
|
<application>
|
|
<uses-library android:name="android.test.runner" />
|
|
<activity android:name="com.android.cts.input.CaptureEventActivity"
|
|
android:label="Capture events"
|
|
android:configChanges="touchscreen|uiMode|orientation|screenSize|screenLayout|keyboardHidden|uiMode|navigation|keyboard|density|fontScale|layoutDirection|locale|mcc|mnc|smallestScreenSize"
|
|
android:enableOnBackInvokedCallback="false"
|
|
android:turnScreenOn="true"
|
|
android:exported="true">
|
|
</activity>
|
|
</application>
|
|
|
|
<instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
|
|
android:targetPackage="com.android.perftests.input">
|
|
<meta-data android:name="listener" android:value="android.input.InputPerfRunPrecondition" />
|
|
</instrumentation>
|
|
</manifest>
|