Home
last modified time | relevance | path

Searched refs:EventDev (Results 1 – 5 of 5) sorted by relevance

/system/teeui/libteeui/include/secure_input/
Devdev.h135 class EventDev {
141 EventDev();
142 EventDev(const std::string& path);
143 EventDev(const EventDev&) = delete;
144 EventDev(EventDev&& other);
145 EventDev& operator=(EventDev&& other);
146 ~EventDev() { ungrab(); } in ~EventDev()
154 std::function<void(short, const EventDev&)> handler);
Dsecure_input_device.h44 virtual void handleEvent(const EventDev& evdev) = 0;
/system/teeui/libteeui/src/
Devdev.cpp177 EventDev::EventDev() : fd_(-1), path_("") {} in EventDev() function in secure_input::EventDev
178 EventDev::EventDev(const std::string& path) : fd_(-1), path_(path) {} in EventDev() function in secure_input::EventDev
179 EventDev::EventDev(EventDev&& other) : fd_(other.fd_), path_(std::move(other.path_)) { in EventDev() function in secure_input::EventDev
182 EventDev& EventDev::operator=(EventDev&& other) { in operator =()
189 bool EventDev::grab() { in grab()
209 void EventDev::ungrab() { in ungrab()
221 std::tuple<bool, input_event> EventDev::readEvent() const { in readEvent()
229 int EventDev::fd() const { in fd()
234 std::function<void(short, const EventDev&)> handler) { in grabAllEvDevsAndRegisterCallbacks()
250 EventDev evDev(std::string("/dev/input/") + dirs[i]->d_name); in grabAllEvDevsAndRegisterCallbacks()
/system/core/trusty/confirmationui/
DNotSoSecureInput.cpp100 void handleEvent(const EventDev& evdev) override { in handleEvent()
DTrustyConfirmationUI.cpp308 grabAllEvDevsAndRegisterCallbacks(&eventloop, [&](short flags, const EventDev& evDev) { in promptUserConfirmation_()