blob: 8be94d0f7e8507f13ad3d5f3367025e7883f367b [file] [log] [blame]
Jeff Brown4ccb8232014-01-16 22:16:42 -08001/*
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;
Jeff Brownca9bc702014-02-11 14:32:56 -080020import android.view.InputEvent;
Jeff Brown4ccb8232014-01-16 22:16:42 -080021
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);
Jeff Brownca9bc702014-02-11 14:32:56 -080034
35 public abstract boolean injectInputEvent(InputEvent event, int displayId, int mode);
Jeff Brown4ccb8232014-01-16 22:16:42 -080036}