blob: 731ab17e83cd86f6a88c7ca3a5e97e9733ae0bea [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
23#include <cutils/compiler.h>
24#include <input/IInputFlinger.h>
25#include <utils/String8.h>
26#include <utils/String16.h>
27
28namespace android {
29
30class InputFlinger : public BnInputFlinger {
31public:
32 static char const* getServiceName() ANDROID_API {
33 return "inputflinger";
34 }
35
36 InputFlinger() ANDROID_API;
37
38 // IBinder interface
39 virtual status_t onTransact(uint32_t code,
40 const Parcel& data, Parcel* reply, uint32_t flags);
41 virtual status_t dump(int fd, const Vector<String16>& args);
42
43 // IInputFlinger interface
44 virtual status_t doSomething();
45
46private:
47 virtual ~InputFlinger();
48
49 void dumpInternal(String8& result);
50};
51
52} // namespace android
53
54#endif // ANDROID_INPUT_FLINGER_H