blob: 9d0be9597614c34ee20e5b8188a137c36cf45786 [file] [log] [blame]
Jeff Brown40c9e0a2013-07-15 13:27:05 -07001/*
2 * Copyright (C) 2013 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
17#ifndef ANDROID_INPUT_FLINGER_H
18#define ANDROID_INPUT_FLINGER_H
19
20#include <stdint.h>
21#include <sys/types.h>
22
Michael Wright6f783602015-02-13 17:35:16 -080023#include "InputHost.h"
24
Jeff Brown40c9e0a2013-07-15 13:27:05 -070025#include <cutils/compiler.h>
26#include <input/IInputFlinger.h>
27#include <utils/String8.h>
28#include <utils/String16.h>
Michael Wright6f783602015-02-13 17:35:16 -080029#include <utils/StrongPointer.h>
Jeff Brown40c9e0a2013-07-15 13:27:05 -070030
31namespace android {
32
33class InputFlinger : public BnInputFlinger {
34public:
35 static char const* getServiceName() ANDROID_API {
36 return "inputflinger";
37 }
38
39 InputFlinger() ANDROID_API;
40
Jeff Brown40c9e0a2013-07-15 13:27:05 -070041 virtual status_t dump(int fd, const Vector<String16>& args);
Robert Carr1cc78672018-07-31 14:25:57 -070042 void setInputWindows(const Vector<InputWindowInfo>&) {}
chaviwfbe5d9c2018-12-26 12:23:37 -080043 void transferTouchFocus(const sp<IBinder>&, const sp<IBinder>&) {}
Robert Carr1c4c5592018-09-24 13:18:43 -070044 void registerInputChannel(const sp<InputChannel>&) {}
45 void unregisterInputChannel(const sp<InputChannel>&) {}
Jeff Brown40c9e0a2013-07-15 13:27:05 -070046
Jeff Brown40c9e0a2013-07-15 13:27:05 -070047private:
48 virtual ~InputFlinger();
49
50 void dumpInternal(String8& result);
Michael Wright6f783602015-02-13 17:35:16 -080051
52 sp<InputHostInterface> mHost;
Jeff Brown40c9e0a2013-07-15 13:27:05 -070053};
54
55} // namespace android
56
57#endif // ANDROID_INPUT_FLINGER_H