1 /*
2  * Copyright (C) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "accessibility_gesture_inject_path.h"
17 
18 #include <cinttypes>
19 
20 #include "hilog_wrapper.h"
21 
22 namespace OHOS {
23 namespace Accessibility {
GetDurationTime() const24 int64_t AccessibilityGestureInjectPath::GetDurationTime() const
25 {
26     HILOG_DEBUG("durationTime:%{public}" PRId64 "", durationTime_);
27     return durationTime_;
28 }
29 
GetPositions() const30 const std::vector<AccessibilityGesturePosition> &AccessibilityGestureInjectPath::GetPositions() const
31 {
32     HILOG_DEBUG();
33 
34     return positions_;
35 }
36 
SetDurationTime(int64_t durationTime)37 void AccessibilityGestureInjectPath::SetDurationTime(int64_t durationTime)
38 {
39     HILOG_DEBUG("durationTime:%{public}" PRId64 "", durationTime);
40     durationTime_ = durationTime;
41 }
42 
AddPosition(AccessibilityGesturePosition & position)43 void AccessibilityGestureInjectPath::AddPosition(AccessibilityGesturePosition &position)
44 {
45     HILOG_DEBUG();
46 
47     positions_.emplace_back(position);
48 }
49 } // namespace Accessibility
50 } // namespace OHOS
51