| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2019 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 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 17 | #include "../InputProcessor.h" |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 18 | #include <gtest/gtest.h> |
| 19 | |
| 20 | #include "TestInputListener.h" |
| 21 | |
| Siarhei Vishniakou | 34d6fef | 2022-02-01 19:03:45 -0800 | [diff] [blame] | 22 | #include <aidl/android/hardware/input/processor/BnInputProcessor.h> |
| 23 | #include <aidl/android/hardware/input/processor/IInputProcessor.h> |
| 24 | #include <android/binder_manager.h> |
| 25 | #include <android/binder_process.h> |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 26 | |
| Siarhei Vishniakou | 34d6fef | 2022-02-01 19:03:45 -0800 | [diff] [blame] | 27 | using namespace aidl::android::hardware::input; |
| 28 | using aidl::android::hardware::input::common::Classification; |
| 29 | using aidl::android::hardware::input::processor::IInputProcessor; |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 30 | |
| 31 | namespace android { |
| 32 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 33 | // --- InputProcessorTest --- |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 34 | |
| 35 | static NotifyMotionArgs generateBasicMotionArgs() { |
| 36 | // Create a basic motion event for testing |
| Siarhei Vishniakou | fd3718c | 2019-02-28 08:16:26 -0800 | [diff] [blame] | 37 | PointerProperties properties; |
| 38 | properties.id = 0; |
| Siarhei Vishniakou | 09a8fe4 | 2022-07-21 17:27:03 -0700 | [diff] [blame] | 39 | properties.toolType = ToolType::FINGER; |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 40 | |
| Siarhei Vishniakou | fd3718c | 2019-02-28 08:16:26 -0800 | [diff] [blame] | 41 | PointerCoords coords; |
| 42 | coords.clear(); |
| 43 | coords.setAxisValue(AMOTION_EVENT_AXIS_X, 1); |
| 44 | coords.setAxisValue(AMOTION_EVENT_AXIS_Y, 1); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 45 | static constexpr nsecs_t downTime = 2; |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 46 | NotifyMotionArgs motionArgs(/*sequenceNum=*/1, /*eventTime=*/downTime, /*readTime=*/2, |
| Linnan Li | 13bf76a | 2024-05-05 19:18:02 +0800 | [diff] [blame] | 47 | /*deviceId=*/3, AINPUT_SOURCE_ANY, ui::ADISPLAY_ID_DEFAULT, |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 48 | /*policyFlags=*/4, AMOTION_EVENT_ACTION_DOWN, /*actionButton=*/0, |
| 49 | /*flags=*/0, AMETA_NONE, /*buttonState=*/0, |
| Siarhei Vishniakou | 58ba3d1 | 2021-02-11 01:31:07 +0000 | [diff] [blame] | 50 | MotionClassification::NONE, AMOTION_EVENT_EDGE_FLAG_NONE, |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 51 | /*pointerCount=*/1, &properties, &coords, /*xPrecision=*/0, |
| 52 | /*yPrecision=*/0, AMOTION_EVENT_INVALID_CURSOR_POSITION, |
| Garfield Tan | 00f511d | 2019-06-12 16:55:40 -0700 | [diff] [blame] | 53 | AMOTION_EVENT_INVALID_CURSOR_POSITION, downTime, |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 54 | /*videoFrames=*/{}); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 55 | return motionArgs; |
| 56 | } |
| 57 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 58 | class InputProcessorTest : public testing::Test { |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 59 | protected: |
| Siarhei Vishniakou | 1805009 | 2021-09-01 13:32:49 -0700 | [diff] [blame] | 60 | TestInputListener mTestListener; |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 61 | std::unique_ptr<InputProcessorInterface> mProcessor; |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 62 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 63 | void SetUp() override { mProcessor = std::make_unique<InputProcessor>(mTestListener); } |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 64 | }; |
| 65 | |
| 66 | /** |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 67 | * Create a basic configuration change and send it to input processor. |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 68 | * Expect that the event is received by the next input stage, unmodified. |
| 69 | */ |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 70 | TEST_F(InputProcessorTest, SendToNextStage_NotifyConfigurationChangedArgs) { |
| 71 | // Create a basic configuration change and send to processor |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 72 | NotifyConfigurationChangedArgs args(/*sequenceNum=*/1, /*eventTime=*/2); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 73 | |
| Prabir Pradhan | c392d8f | 2023-04-13 19:32:51 +0000 | [diff] [blame] | 74 | mProcessor->notifyConfigurationChanged(args); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 75 | NotifyConfigurationChangedArgs outArgs; |
| Siarhei Vishniakou | 1805009 | 2021-09-01 13:32:49 -0700 | [diff] [blame] | 76 | ASSERT_NO_FATAL_FAILURE(mTestListener.assertNotifyConfigurationChangedWasCalled(&outArgs)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 77 | ASSERT_EQ(args, outArgs); |
| 78 | } |
| 79 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 80 | TEST_F(InputProcessorTest, SendToNextStage_NotifyKeyArgs) { |
| 81 | // Create a basic key event and send to processor |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 82 | NotifyKeyArgs args(/*sequenceNum=*/1, /*eventTime=*/2, /*readTime=*/21, /*deviceId=*/3, |
| Linnan Li | 13bf76a | 2024-05-05 19:18:02 +0800 | [diff] [blame] | 83 | AINPUT_SOURCE_KEYBOARD, ui::ADISPLAY_ID_DEFAULT, /*policyFlags=*/0, |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 84 | AKEY_EVENT_ACTION_DOWN, /*flags=*/4, AKEYCODE_HOME, /*scanCode=*/5, |
| 85 | AMETA_NONE, /*downTime=*/6); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 86 | |
| Prabir Pradhan | c392d8f | 2023-04-13 19:32:51 +0000 | [diff] [blame] | 87 | mProcessor->notifyKey(args); |
| 88 | ASSERT_NO_FATAL_FAILURE(mTestListener.assertNotifyKeyWasCalled(testing::Eq(args))); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 89 | } |
| 90 | |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 91 | /** |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 92 | * Create a basic motion event and send it to input processor. |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 93 | * Expect that the event is received by the next input stage, unmodified. |
| 94 | */ |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 95 | TEST_F(InputProcessorTest, SendToNextStage_NotifyMotionArgs) { |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 96 | NotifyMotionArgs motionArgs = generateBasicMotionArgs(); |
| Prabir Pradhan | c392d8f | 2023-04-13 19:32:51 +0000 | [diff] [blame] | 97 | mProcessor->notifyMotion(motionArgs); |
| 98 | ASSERT_NO_FATAL_FAILURE(mTestListener.assertNotifyMotionWasCalled(testing::Eq(motionArgs))); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 99 | } |
| 100 | |
| 101 | /** |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 102 | * Create a basic switch event and send it to input processor. |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 103 | * Expect that the event is received by the next input stage, unmodified. |
| 104 | */ |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 105 | TEST_F(InputProcessorTest, SendToNextStage_NotifySwitchArgs) { |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 106 | NotifySwitchArgs args(/*sequenceNum=*/1, /*eventTime=*/2, /*policyFlags=*/3, |
| 107 | /*switchValues=*/4, /*switchMask=*/5); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 108 | |
| Prabir Pradhan | c392d8f | 2023-04-13 19:32:51 +0000 | [diff] [blame] | 109 | mProcessor->notifySwitch(args); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 110 | NotifySwitchArgs outArgs; |
| Siarhei Vishniakou | 1805009 | 2021-09-01 13:32:49 -0700 | [diff] [blame] | 111 | ASSERT_NO_FATAL_FAILURE(mTestListener.assertNotifySwitchWasCalled(&outArgs)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 112 | ASSERT_EQ(args, outArgs); |
| 113 | } |
| 114 | |
| 115 | /** |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 116 | * Create a basic device reset event and send it to input processor. |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 117 | * Expect that the event is received by the next input stage, unmodified. |
| 118 | */ |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 119 | TEST_F(InputProcessorTest, SendToNextStage_NotifyDeviceResetArgs) { |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 120 | NotifyDeviceResetArgs args(/*sequenceNum=*/1, /*eventTime=*/2, /*deviceId=*/3); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 121 | |
| Prabir Pradhan | c392d8f | 2023-04-13 19:32:51 +0000 | [diff] [blame] | 122 | mProcessor->notifyDeviceReset(args); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 123 | NotifyDeviceResetArgs outArgs; |
| Siarhei Vishniakou | 1805009 | 2021-09-01 13:32:49 -0700 | [diff] [blame] | 124 | ASSERT_NO_FATAL_FAILURE(mTestListener.assertNotifyDeviceResetWasCalled(&outArgs)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 125 | ASSERT_EQ(args, outArgs); |
| 126 | } |
| 127 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 128 | TEST_F(InputProcessorTest, SetMotionClassifier_Enabled) { |
| 129 | mProcessor->setMotionClassifierEnabled(true); |
| Siarhei Vishniakou | c9ac19e | 2020-03-19 11:55:01 -0700 | [diff] [blame] | 130 | } |
| 131 | |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 132 | TEST_F(InputProcessorTest, SetMotionClassifier_Disabled) { |
| 133 | mProcessor->setMotionClassifierEnabled(false); |
| Siarhei Vishniakou | c9ac19e | 2020-03-19 11:55:01 -0700 | [diff] [blame] | 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Try to break it by calling setMotionClassifierEnabled multiple times. |
| 138 | */ |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 139 | TEST_F(InputProcessorTest, SetMotionClassifier_Multiple) { |
| 140 | mProcessor->setMotionClassifierEnabled(true); |
| 141 | mProcessor->setMotionClassifierEnabled(true); |
| 142 | mProcessor->setMotionClassifierEnabled(true); |
| 143 | mProcessor->setMotionClassifierEnabled(false); |
| 144 | mProcessor->setMotionClassifierEnabled(false); |
| 145 | mProcessor->setMotionClassifierEnabled(true); |
| 146 | mProcessor->setMotionClassifierEnabled(true); |
| 147 | mProcessor->setMotionClassifierEnabled(true); |
| Siarhei Vishniakou | c9ac19e | 2020-03-19 11:55:01 -0700 | [diff] [blame] | 148 | } |
| 149 | |
| Siarhei Vishniakou | 1652397 | 2020-03-04 17:48:39 -0800 | [diff] [blame] | 150 | /** |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 151 | * A minimal implementation of IInputProcessor. |
| Siarhei Vishniakou | 1652397 | 2020-03-04 17:48:39 -0800 | [diff] [blame] | 152 | */ |
| Siarhei Vishniakou | 34d6fef | 2022-02-01 19:03:45 -0800 | [diff] [blame] | 153 | class TestHal : public aidl::android::hardware::input::processor::BnInputProcessor { |
| 154 | ::ndk::ScopedAStatus classify( |
| 155 | const ::aidl::android::hardware::input::common::MotionEvent& in_event, |
| 156 | ::aidl::android::hardware::input::common::Classification* _aidl_return) override { |
| 157 | *_aidl_return = Classification::NONE; |
| 158 | return ndk::ScopedAStatus::ok(); |
| 159 | } |
| 160 | ::ndk::ScopedAStatus reset() override { return ndk::ScopedAStatus::ok(); } |
| 161 | ::ndk::ScopedAStatus resetDevice(int32_t in_deviceId) override { |
| 162 | return ndk::ScopedAStatus::ok(); |
| 163 | } |
| Siarhei Vishniakou | 1652397 | 2020-03-04 17:48:39 -0800 | [diff] [blame] | 164 | }; |
| 165 | |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 166 | // --- MotionClassifierTest --- |
| 167 | |
| 168 | class MotionClassifierTest : public testing::Test { |
| 169 | protected: |
| 170 | std::unique_ptr<MotionClassifierInterface> mMotionClassifier; |
| 171 | |
| Siarhei Vishniakou | 34d6fef | 2022-02-01 19:03:45 -0800 | [diff] [blame] | 172 | void SetUp() override { |
| 173 | std::shared_ptr<IInputProcessor> service = ndk::SharedRefBase::make<TestHal>(); |
| 174 | mMotionClassifier = MotionClassifier::create(std::move(service)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 175 | } |
| 176 | }; |
| 177 | |
| 178 | /** |
| 179 | * Since MotionClassifier creates a new thread to communicate with HAL, |
| 180 | * it's not really expected to ever exit. However, for testing purposes, |
| 181 | * we need to ensure that it is able to exit cleanly. |
| 182 | * If the thread is not properly cleaned up, it will generate SIGABRT. |
| 183 | * The logic for exiting the thread and cleaning up the resources is inside |
| 184 | * the destructor. Here, we just make sure the destructor does not crash. |
| 185 | */ |
| 186 | TEST_F(MotionClassifierTest, Destructor_DoesNotCrash) { |
| 187 | mMotionClassifier = nullptr; |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Make sure MotionClassifier can handle events that don't have any |
| 192 | * video frames. |
| 193 | */ |
| 194 | TEST_F(MotionClassifierTest, Classify_NoVideoFrames) { |
| 195 | NotifyMotionArgs motionArgs = generateBasicMotionArgs(); |
| 196 | |
| 197 | // We are not checking the return value, because we can't be making assumptions |
| 198 | // about the HAL operation, since it will be highly hardware-dependent |
| Siarhei Vishniakou | 4bdbb6a | 2019-04-11 09:42:09 -0700 | [diff] [blame] | 199 | ASSERT_NO_FATAL_FAILURE(mMotionClassifier->classify(motionArgs)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 200 | } |
| 201 | |
| 202 | /** |
| 203 | * Make sure nothing crashes when a videoFrame is sent. |
| 204 | */ |
| 205 | TEST_F(MotionClassifierTest, Classify_OneVideoFrame) { |
| 206 | NotifyMotionArgs motionArgs = generateBasicMotionArgs(); |
| 207 | |
| 208 | std::vector<int16_t> videoData = {1, 2, 3, 4}; |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 209 | timeval timestamp = {1, 1}; |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 210 | TouchVideoFrame frame(2, 2, std::move(videoData), timestamp); |
| 211 | motionArgs.videoFrames = {frame}; |
| 212 | |
| 213 | // We are not checking the return value, because we can't be making assumptions |
| 214 | // about the HAL operation, since it will be highly hardware-dependent |
| Siarhei Vishniakou | 4bdbb6a | 2019-04-11 09:42:09 -0700 | [diff] [blame] | 215 | ASSERT_NO_FATAL_FAILURE(mMotionClassifier->classify(motionArgs)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Make sure nothing crashes when 2 videoFrames are sent. |
| 220 | */ |
| 221 | TEST_F(MotionClassifierTest, Classify_TwoVideoFrames) { |
| 222 | NotifyMotionArgs motionArgs = generateBasicMotionArgs(); |
| 223 | |
| 224 | std::vector<int16_t> videoData1 = {1, 2, 3, 4}; |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 225 | timeval timestamp1 = {1, 1}; |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 226 | TouchVideoFrame frame1(2, 2, std::move(videoData1), timestamp1); |
| 227 | |
| 228 | std::vector<int16_t> videoData2 = {6, 6, 6, 6}; |
| Siarhei Vishniakou | 9899603 | 2022-08-03 11:54:47 -0700 | [diff] [blame] | 229 | timeval timestamp2 = {1, 2}; |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 230 | TouchVideoFrame frame2(2, 2, std::move(videoData2), timestamp2); |
| 231 | |
| 232 | motionArgs.videoFrames = {frame1, frame2}; |
| 233 | |
| 234 | // We are not checking the return value, because we can't be making assumptions |
| 235 | // about the HAL operation, since it will be highly hardware-dependent |
| Siarhei Vishniakou | 4bdbb6a | 2019-04-11 09:42:09 -0700 | [diff] [blame] | 236 | ASSERT_NO_FATAL_FAILURE(mMotionClassifier->classify(motionArgs)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 237 | } |
| 238 | |
| 239 | /** |
| 240 | * Make sure MotionClassifier does not crash when it is reset. |
| 241 | */ |
| 242 | TEST_F(MotionClassifierTest, Reset_DoesNotCrash) { |
| Siarhei Vishniakou | 4bdbb6a | 2019-04-11 09:42:09 -0700 | [diff] [blame] | 243 | ASSERT_NO_FATAL_FAILURE(mMotionClassifier->reset()); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 244 | } |
| 245 | |
| 246 | /** |
| 247 | * Make sure MotionClassifier does not crash when a device is reset. |
| 248 | */ |
| 249 | TEST_F(MotionClassifierTest, DeviceReset_DoesNotCrash) { |
| Harry Cutts | 3347623 | 2023-01-30 19:57:29 +0000 | [diff] [blame] | 250 | NotifyDeviceResetArgs args(/*sequenceNum=*/1, /*eventTime=*/2, /*deviceId=*/3); |
| Siarhei Vishniakou | 4bdbb6a | 2019-04-11 09:42:09 -0700 | [diff] [blame] | 251 | ASSERT_NO_FATAL_FAILURE(mMotionClassifier->reset(args)); |
| Siarhei Vishniakou | 473174e | 2017-12-27 16:44:42 -0800 | [diff] [blame] | 252 | } |
| 253 | |
| 254 | } // namespace android |