Searched refs:keycodes (Results 1 – 6 of 6) sorted by relevance
/system/core/init/ |
D | keychords.cpp | 114 for (auto& [keycodes, entry] : entries_) { in LambdaCheck() 116 for (auto& code : keycodes) { in LambdaCheck() 126 handler_(keycodes); in LambdaCheck() 160 for (auto& [keycodes, entry] : entries_) { in GeteventEnable() 161 for (auto& code : keycodes) { in GeteventEnable() 281 void Keychords::Register(const std::vector<int>& keycodes) { in Register() argument 282 if (keycodes.empty()) return; in Register() 283 entries_.try_emplace(keycodes, Entry()); in Register()
|
D | init.cpp | 576 void HandleKeychord(const std::vector<int>& keycodes) { in HandleKeychord() argument 580 LOG(WARNING) << "Not starting service for keychord " << android::base::Join(keycodes, ' ') in HandleKeychord() 588 if (svc->keycodes() == keycodes) { in HandleKeychord() 591 << android::base::Join(keycodes, ' '); in HandleKeychord() 594 << android::base::Join(keycodes, ' ') << ": " << result.error(); in HandleKeychord() 599 LOG(ERROR) << "Service for keychord " << android::base::Join(keycodes, ' ') << " not found"; in HandleKeychord() 733 keychords.Register(svc->keycodes()); in SecondStageMain()
|
D | keychords_test.cpp | 209 for (const auto& keycodes : chords) keychords_.Register(keycodes); in TestFrame() local 210 keychords_.Start(&epoll_, [this](const std::vector<int>& keycodes) { in TestFrame() argument 211 this->keycodes_.emplace_back(keycodes); in TestFrame()
|
D | keychords.h | 39 void Register(const std::vector<int>& keycodes);
|
D | README.md | 226 `keycodes <keycode> [ <keycode>\* ]` 227 > Sets the keycodes that will trigger this service. If all of the keys corresponding to the passed 228 keycodes are pressed at once, the service will start. This is typically used to start the 231 > This option may take a property instead of a list of keycodes. In this case, only one option is 234 this service does not respond to keycodes. 236 > For example, `keycodes ${some.property.name:-none}` where some.property.name expands 237 to "123,124,125". Since keycodes are handled very early in init,
|
D | service.h | 115 const std::vector<int>& keycodes() const { return keycodes_; } in keycodes() function
|