• Home
  • Raw
  • Download

Lines Matching refs:std

39 using namespace std::literals::chrono_literals;
41 using InputCbFunc = std::function<void(const std::shared_ptr<InputDeviceNode>&, InputEvent&, nsecs_…
42 using DeviceCbFunc = std::function<void(const std::shared_ptr<InputDeviceNode>&)>;
44 static const InputCbFunc kNoopInputCb = [](const std::shared_ptr<InputDeviceNode>&, InputEvent&, ns… in __anon1e12701e0102()
45 static const DeviceCbFunc kNoopDeviceCb = [](const std::shared_ptr<InputDeviceNode>&){}; in __anon1e12701e0202()
57 virtual void onInputEvent(const std::shared_ptr<InputDeviceNode>& node, InputEvent& event, in onInputEvent()
61 virtual void onDeviceAdded(const std::shared_ptr<InputDeviceNode>& node) override { in onDeviceAdded()
64 virtual void onDeviceRemoved(const std::shared_ptr<InputDeviceNode>& node) override { in onDeviceRemoved()
77 mCallback = std::make_shared<TestInputCallback>(); in SetUp()
78 mInputHub = std::make_shared<InputHub>(mCallback); in SetUp()
81 std::shared_ptr<TestInputCallback> mCallback;
82 std::shared_ptr<InputHub> mInputHub;
97 auto tempDir = std::make_shared<TempDir>(); in TEST_F()
98 std::string pathname; in TEST_F()
101 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()
108 std::unique_ptr<TempFile> tempFile; in TEST_F()
109 std::mutex tempFileMutex; in TEST_F()
112 std::lock_guard<std::mutex> lock(tempFileMutex); in TEST_F()
122 std::lock_guard<std::mutex> lock(tempFileMutex); in TEST_F()
129 auto tempDir = std::make_unique<TempDir>(); in TEST_F()
130 auto deviceFile = std::unique_ptr<TempFile>(tempDir->newTempFile()); in TEST_F()
131 std::string tempFileName(deviceFile->getName()); in TEST_F()
133 std::shared_ptr<InputDeviceNode> tempNode; in TEST_F()
136 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()
140 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()
160 auto tempDir = std::make_unique<TempDir>(); in TEST_F()
161 auto deviceFile = std::unique_ptr<TempFile>(tempDir->newTempFile()); in TEST_F()
162 std::string tempFileName(deviceFile->getName()); in TEST_F()
182 [&](const std::shared_ptr<InputDeviceNode>& node, InputEvent& event, in TEST_F()
202 auto tempDir = std::make_unique<TempDir>(); in TEST_F()
203 auto deviceFile1 = std::unique_ptr<TempFile>(tempDir->newTempFile()); in TEST_F()
204 auto deviceFile2 = std::unique_ptr<TempFile>(tempDir->newTempFile()); in TEST_F()
205 std::string tempFileName(deviceFile2->getName()); in TEST_F()
212 [&](const std::shared_ptr<InputDeviceNode>&, InputEvent&, nsecs_t) { in TEST_F()
220 [&](const std::shared_ptr<InputDeviceNode>& node) { in TEST_F()