Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6316b231 authored by Siarhei Vishniakou's avatar Siarhei Vishniakou Committed by Android (Google) Code Review
Browse files

Merge "Demo app for multi-window multi-device mode" into main

parents e5b89a54 8b8e76db
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -26,5 +26,8 @@ package {
android_app {
    name: "MotionPrediction",
    srcs: ["**/*.kt"],
    kotlincflags: [
        "-Werror",
    ],
    sdk_version: "current",
}
+33 −0
Original line number Diff line number Diff line
//
// Copyright 2023 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 {
    // 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_app {
    name: "MultiDeviceInput",
    srcs: ["**/*.kt"],
    kotlincflags: [
        "-Werror",
    ],
    sdk_version: "current",
}
+34 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2023 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="test.multideviceinput">

    <application android:allowBackup="false"
         android:icon="@mipmap/ic_launcher"
         android:label="@string/app_name"
         android:supportsRtl="true"
         android:theme="@style/AppTheme">
        <activity android:name=".MainActivity"
             android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>

</manifest>
+1 −0
Original line number Diff line number Diff line
include platform/frameworks/base:/INPUT_OWNERS
+19 −0
Original line number Diff line number Diff line
# MultiDeviceInput test app #

This demo app is for manual testing of the multi-device input feature.
It creates two windows - one on the left and one on the right. You can use different input devices
in these windows.

## Installation ##
Install this using:
```
APP=MultiDeviceInput; m $APP && adb install $ANDROID_PRODUCT_OUT/system/app/$APP/$APP.apk
```

## Features ##

* Touch in one window, use stylus in another window, at the same time
* Visualize hovering stylus
* Pinch zoom in one window to affect the line thickness in another window
* Check whether stylus rejects touch in the same window
* (in the future) Check stylus and touch operation in the same window
Loading