blob: 4d3b76885fb9e46aed1fa17c8c3be1b31c65b894 [file] [log] [blame]
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -07001/*
Siarhei Vishniakou34d6fef2022-02-01 19:03:45 -08002 * Copyright (C) 2022 The Android Open Source Project
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -07003 *
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
Siarhei Vishniakou34d6fef2022-02-01 19:03:45 -080017#pragma once
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -070018
Siarhei Vishniakou34d6fef2022-02-01 19:03:45 -080019#include <aidl/android/hardware/input/common/Axis.h>
20#include <aidl/android/hardware/input/common/MotionEvent.h>
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -070021#include "InputListener.h"
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -070022
23namespace android {
24
25/**
Siarhei Vishniakou34d6fef2022-02-01 19:03:45 -080026 * Convert from framework's NotifyMotionArgs to hidl's common::MotionEvent
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -070027 */
Siarhei Vishniakou34d6fef2022-02-01 19:03:45 -080028::aidl::android::hardware::input::common::MotionEvent notifyMotionArgsToHalMotionEvent(
Siarhei Vishniakoua47a4d42019-05-06 17:14:11 -070029 const NotifyMotionArgs& args);
30
31} // namespace android