InputFlinger.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  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. #ifndef ANDROID_INPUT_FLINGER_H
  17. #define ANDROID_INPUT_FLINGER_H
  18. #include <stdint.h>
  19. #include <sys/types.h>
  20. #include "InputHost.h"
  21. #include <cutils/compiler.h>
  22. #include <input/IInputFlinger.h>
  23. #include <utils/String8.h>
  24. #include <utils/String16.h>
  25. #include <utils/StrongPointer.h>
  26. namespace android {
  27. class InputFlinger : public BnInputFlinger {
  28. public:
  29. static char const* getServiceName() ANDROID_API {
  30. return "inputflinger";
  31. }
  32. InputFlinger() ANDROID_API;
  33. virtual status_t dump(int fd, const Vector<String16>& args);
  34. private:
  35. virtual ~InputFlinger();
  36. void dumpInternal(String8& result);
  37. sp<InputHostInterface> mHost;
  38. };
  39. } // namespace android
  40. #endif // ANDROID_INPUT_FLINGER_H