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 | 638 void HandleKeychord(const std::vector<int>& keycodes) { in HandleKeychord() argument 642 LOG(WARNING) << "Not starting service for keychord " << android::base::Join(keycodes, ' ') in HandleKeychord() 650 if (svc->keycodes() == keycodes) { in HandleKeychord() 653 << android::base::Join(keycodes, ' '); in HandleKeychord() 656 << android::base::Join(keycodes, ' ') << ": " << result.error(); in HandleKeychord() 661 LOG(ERROR) << "Service for keychord " << android::base::Join(keycodes, ' ') << " not found"; in HandleKeychord() 853 keychords.Register(svc->keycodes()); in SecondStageMain()
|
D | keychords_test.cpp | 208 for (const auto& keycodes : chords) keychords_.Register(keycodes); in TestFrame() local 209 keychords_.Start(&epoll_, [this](const std::vector<int>& keycodes) { in TestFrame() argument 210 this->keycodes_.emplace_back(keycodes); in TestFrame()
|
D | keychords.h | 39 void Register(const std::vector<int>& keycodes);
|
D | service.h | 117 const std::vector<int>& keycodes() const { return keycodes_; } in keycodes() function
|
D | README.md | 213 `keycodes <keycode> [ <keycode>\* ]` 214 > Sets the keycodes that will trigger this service. If all of the keys corresponding to the passed 215 keycodes are pressed at once, the service will start. This is typically used to start the 218 > This option may take a property instead of a list of keycodes. In this case, only one option is 221 this service does not respond to keycodes. 223 > For example, `keycodes ${some.property.name:-none}` where some.property.name expands 224 to "123,124,125". Since keycodes are handled very early in init,
|