Lines Matching refs:Keychords
40 Keychords::Keychords() : epoll_(nullptr), inotify_fd_(-1) {} in Keychords() function in android::init::Keychords
42 Keychords::~Keychords() noexcept { in ~Keychords()
50 Keychords::Mask::Mask(size_t bit) : bits_((bit + sizeof(mask_t) - 1) / sizeof(mask_t), 0) {} in Mask()
52 void Keychords::Mask::SetBit(size_t bit, bool value) { in SetBit()
62 bool Keychords::Mask::GetBit(size_t bit) const { in GetBit()
67 size_t Keychords::Mask::bytesize() const { in bytesize()
71 void* Keychords::Mask::data() { in data()
75 size_t Keychords::Mask::size() const { in size()
79 void Keychords::Mask::resize(size_t bit) { in resize()
86 Keychords::Mask::operator bool() const { in operator bool()
93 Keychords::Mask Keychords::Mask::operator&(const Keychords::Mask& rval) const { in operator &()
95 Keychords::Mask ret; in operator &()
103 void Keychords::Mask::operator|=(const Keychords::Mask& rval) { in operator |=()
111 Keychords::Entry::Entry() : notified(false) {} in Entry()
113 void Keychords::LambdaCheck() { in LambdaCheck()
130 void Keychords::LambdaHandler(int fd) { in LambdaHandler()
138 bool Keychords::GeteventEnable(int fd) { in GeteventEnable()
146 Keychords::Mask mask(EV_KEY); in GeteventEnable()
159 Keychords::Mask mask; in GeteventEnable()
168 Keychords::Mask available(mask.size()); in GeteventEnable()
183 Keychords::Mask set(mask.size()); in GeteventEnable()
197 void Keychords::GeteventOpenDevice(const std::string& device) { in GeteventOpenDevice()
211 void Keychords::GeteventCloseDevice(const std::string& device) { in GeteventCloseDevice()
220 void Keychords::InotifyHandler() { in InotifyHandler()
249 void Keychords::GeteventOpenDevice() { in GeteventOpenDevice()
281 void Keychords::Register(const std::vector<int>& keycodes) { in Register()
286 void Keychords::Start(Epoll* epoll, std::function<void(const std::vector<int>&)> handler) { in Start()