Processing method of customized key based on android platform and processing device using the same
AssigneeRealtek Semiconductor Corp.
InventorZi-Liang Kuang
Life of this patent
Estimating the term…
Abstract
A processing method of a customized key based on an Android platform includes receiving a key value of an input key, mapping the key value to a key scan code, identifying a to-be-blocked key according to the key scan code, converting, when the input key is the to-be-blocked key, the key scan code into a specific key code by a key block module, and sending, by bypassing an Android framework layer by the key block module, the specific key code to an application program for processing.
Claims7
A processing method of a customized key based on an Android platform, comprising:
- receiving a key value of an input key;
- mapping the key value to a key scan code;
- identifying a to-be-blocked key according to the key scan code;
- converting, when the input key is the to-be-blocked key, the key scan code into a specific key code by a key block module;
- sending, by bypassing an Android framework layer by the key block module, the specific key code to an application program for processing;
- and
- sending, when the input key is not the to-be-blocked key, the key scan code to the Android framework layer;
- and
- converting, by the Android framework layer, the key scan code into an Android key code, and sending the Android key code to the application program for processing.
A processing device of a customized key based on an Android platform, comprising:
- a key driver module, configured to detect a to-be-blocked key, and notify a key scan code of the to-be-blocked key upstream when detecting the to-be-blocked key;
- an intermediate block module, configured to receive the key scan code of the to-be-blocked key notified by the key driver module upstream, convert the key scan code of the to-be-blocked key into a specific key code, and report the specific key code;
- and
- a block service block, configured to receive the specific key code reported by the intermediate block module and send, by bypassing an Android framework layer, the specific key code to an application program for processing,
- wherein the key driver module notifies, when receiving an input key other than the to-be-blocked key, a key scan code of the input key upstream to the Android framework layer for processing.
Dependencies are inferred from the claim text.