Loading apct-tests/perftests/input/Android.bp 0 → 100644 +44 −0 Original line number Diff line number Diff line // 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. package { default_team: "trendy_team_input_framework", // 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: "InputPerfTests", srcs: ["src/**/*.kt"], kotlincflags: [ "-Werror", ], static_libs: [ "androidx.annotation_annotation", "androidx.test.rules", "apct-perftests-utils", "collector-device-lib", "compatibility-device-util-axt", "cts-input-lib", "platform-test-annotations", ], test_suites: ["device-tests"], data: [":perfetto_artifacts"], platform_apis: true, certificate: "platform", } apct-tests/perftests/input/AndroidManifest.xml 0 → 100644 +37 −0 Original line number Diff line number Diff line <?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> apct-tests/perftests/core/src/android/input/OWNERS→apct-tests/perftests/input/OWNERS +2 −0 Original line number Diff line number Diff line include platform/frameworks/base:/INPUT_OWNERS # Bug component: 136048 include /core/java/android/hardware/input/OWNERS apct-tests/perftests/input/src/android/input/InputPerfRunPrecondition.kt 0 → 100644 +22 −0 Original line number Diff line number Diff line /* * 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. */ package android.input import android.perftests.utils.WindowPerfRunPreconditionBase /** Prepare the preconditions before running performance test. */ class InputPerfRunPrecondition : WindowPerfRunPreconditionBase() apct-tests/perftests/core/src/android/input/MotionPredictorBenchmark.kt→apct-tests/perftests/input/src/android/input/MotionPredictorBenchmark.kt +0 −0 File moved. View file Loading
apct-tests/perftests/input/Android.bp 0 → 100644 +44 −0 Original line number Diff line number Diff line // 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. package { default_team: "trendy_team_input_framework", // 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: "InputPerfTests", srcs: ["src/**/*.kt"], kotlincflags: [ "-Werror", ], static_libs: [ "androidx.annotation_annotation", "androidx.test.rules", "apct-perftests-utils", "collector-device-lib", "compatibility-device-util-axt", "cts-input-lib", "platform-test-annotations", ], test_suites: ["device-tests"], data: [":perfetto_artifacts"], platform_apis: true, certificate: "platform", }
apct-tests/perftests/input/AndroidManifest.xml 0 → 100644 +37 −0 Original line number Diff line number Diff line <?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>
apct-tests/perftests/core/src/android/input/OWNERS→apct-tests/perftests/input/OWNERS +2 −0 Original line number Diff line number Diff line include platform/frameworks/base:/INPUT_OWNERS # Bug component: 136048 include /core/java/android/hardware/input/OWNERS
apct-tests/perftests/input/src/android/input/InputPerfRunPrecondition.kt 0 → 100644 +22 −0 Original line number Diff line number Diff line /* * 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. */ package android.input import android.perftests.utils.WindowPerfRunPreconditionBase /** Prepare the preconditions before running performance test. */ class InputPerfRunPrecondition : WindowPerfRunPreconditionBase()
apct-tests/perftests/core/src/android/input/MotionPredictorBenchmark.kt→apct-tests/perftests/input/src/android/input/MotionPredictorBenchmark.kt +0 −0 File moved. View file