InputManagerInternal.java revision 38f96e5020b3e82b98fe97b0be363a5ad185860f
1/*
2 * Copyright (C) 2014 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17package android.hardware.input;
18
19import android.hardware.display.DisplayViewport;
20import android.view.InputEvent;
21
22/**
23 * Input manager local system service interface.
24 *
25 * @hide Only for use within the system server.
26 */
27public abstract class InputManagerInternal {
28    /**
29     * Sets information about the displays as needed by the input system.
30     * The input system should copy this information if required.
31     */
32    public abstract void setDisplayViewports(DisplayViewport defaultViewport,
33            DisplayViewport externalTouchViewport);
34
35    public abstract boolean injectInputEvent(InputEvent event, int displayId, int mode);
36}
37