blob: c6089c8d2a703493d821c7ea56a10a2386f8efd7 [file] [log] [blame]
Prabir Pradhanaddf8e92023-04-06 00:28:48 +00001/*
2 * Copyright 2023 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#define LOG_TAG "InputDeviceMetricsCollector"
18#include "InputDeviceMetricsCollector.h"
19
20namespace android {
21
22InputDeviceMetricsCollector::InputDeviceMetricsCollector(InputListenerInterface& listener)
23 : mNextListener(listener){};
24
25void InputDeviceMetricsCollector::notifyInputDevicesChanged(
26 const NotifyInputDevicesChangedArgs& args) {
27 mNextListener.notify(args);
28}
29
30void InputDeviceMetricsCollector::notifyConfigurationChanged(
31 const NotifyConfigurationChangedArgs& args) {
32 mNextListener.notify(args);
33}
34
35void InputDeviceMetricsCollector::notifyKey(const NotifyKeyArgs& args) {
36 mNextListener.notify(args);
37}
38
39void InputDeviceMetricsCollector::notifyMotion(const NotifyMotionArgs& args) {
40 mNextListener.notify(args);
41}
42
43void InputDeviceMetricsCollector::notifySwitch(const NotifySwitchArgs& args) {
44 mNextListener.notify(args);
45}
46
47void InputDeviceMetricsCollector::notifySensor(const NotifySensorArgs& args) {
48 mNextListener.notify(args);
49}
50
51void InputDeviceMetricsCollector::notifyVibratorState(const NotifyVibratorStateArgs& args) {
52 mNextListener.notify(args);
53}
54
55void InputDeviceMetricsCollector::notifyDeviceReset(const NotifyDeviceResetArgs& args) {
56 mNextListener.notify(args);
57}
58
59void InputDeviceMetricsCollector::notifyPointerCaptureChanged(
60 const NotifyPointerCaptureChangedArgs& args) {
61 mNextListener.notify(args);
62}
63
64void InputDeviceMetricsCollector::dump(std::string& dump) {
65 dump += "InputDeviceMetricsCollector:\n";
66}
67
68} // namespace android