Home
last modified time | relevance | path

Searched refs:keycodes (Results 1 – 6 of 6) sorted by relevance

/system/core/init/
Dkeychords.cpp114 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()
Dinit.cpp576 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()
Dkeychords_test.cpp209 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()
Dkeychords.h39 void Register(const std::vector<int>& keycodes);
DREADME.md226 `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,
Dservice.h115 const std::vector<int>& keycodes() const { return keycodes_; } in keycodes() function