IInputManager.aidl revision ac14351e16e1258f1cb54e2bf772b8be004eb2b8
1/*
2 * Copyright (C) 2012 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.view.InputDevice;
20import android.view.InputEvent;
21
22/** @hide */
23interface IInputManager {
24    // Gets input device information.
25    InputDevice getInputDevice(int deviceId);
26    int[] getInputDeviceIds();
27
28    // Reports whether the hardware supports the given keys; returns true if successful
29    boolean hasKeys(int deviceId, int sourceMask, in int[] keyCodes, out boolean[] keyExists);
30
31    // Temporarily changes the pointer speed.
32    void tryPointerSpeed(int speed);
33
34    // Injects an input event into the system.  To inject into windows owned by other
35    // applications, the caller must have the INJECT_EVENTS permission.
36    boolean injectInputEvent(in InputEvent ev, int mode);
37}
38