CN110708535A - Physical key detection method and device and computer readable storage medium - Google Patents

Physical key detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN110708535A
CN110708535A CN201910890956.6A CN201910890956A CN110708535A CN 110708535 A CN110708535 A CN 110708535A CN 201910890956 A CN201910890956 A CN 201910890956A CN 110708535 A CN110708535 A CN 110708535A
Authority
CN
China
Prior art keywords
key
detection
interface
application program
response result
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910890956.6A
Other languages
Chinese (zh)
Inventor
党欣
涂志雄
张洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Shenzhen Chuangwei RGB Electronics Co Ltd
Original Assignee
Shenzhen Chuangwei RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chuangwei RGB Electronics Co Ltd filed Critical Shenzhen Chuangwei RGB Electronics Co Ltd
Priority to CN201910890956.6A priority Critical patent/CN110708535A/en
Publication of CN110708535A publication Critical patent/CN110708535A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Abstract

The invention discloses a method for detecting a physical key, which comprises the following steps: registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key; and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface. The invention also discloses a detection device of the physical key and a computer readable storage medium. The invention enables the user to directly check the key detection result from the user interface and simultaneously supports the simultaneous detection of a plurality of physical keys, thereby improving the detection efficiency of the physical keys.

Description

Physical key detection method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of smart televisions, in particular to a method and a device for detecting physical keys and a computer readable storage medium.
Background
At present, most of televisions are provided with physical keys which are usually distributed at the positions of a right frame, a lower frame or a back plate, the televisions are required to be subjected to online detection before leaving factories, and whether the television jumps to a state corresponding to the key is observed by pressing the corresponding physical key during online detection, for example, pressing a channel to add or subtract, and observing whether the channel changes; pressing down the volume plus-minus to observe whether the volume changes; pressing a signal source key to observe whether a signal source interface is displayed; pressing the standby key to observe whether the television is in standby or not. Each key can judge whether the key is normal after the television state is switched, and next key detection can be carried out after one key is detected, so that the physical key detection in the prior art can not carry out multiple key detections simultaneously, the waiting time for each key detection is longer, if the television directly enters a standby state after the standby key is pressed, the television can be detected and function tests can be carried out only by restarting, and therefore the detection efficiency is not high.
Therefore, it is an urgent need to solve the above technical problems to realize a method for rapidly detecting a physical key.
Disclosure of Invention
The invention mainly aims to provide a method and a device for detecting a physical key and a computer readable storage medium, and aims to solve the technical problems that the physical keys cannot be detected simultaneously and long waiting time is needed to cause low detection efficiency in the prior art.
In order to achieve the above object, the present invention provides a method for detecting a physical key, where the method for detecting a physical key includes:
registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key;
and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface.
Preferably, before the step of registering an interface with a corresponding service component through a preset detection application, the method includes:
starting the detection application program, and initializing a user interface through the detection application program;
establishing connection between the detection application program and the service component through cross-process communication;
judging whether the detection application program is successfully connected with the service component or not;
if yes, executing the following steps: and registering an interface with the corresponding service component through a preset detection application program.
Preferably, the step of registering an interface with a corresponding service component through a preset detection application includes:
and assigning the object reference for realizing the interface to the service component so that the service component can call the method name in the interface through the object reference.
Preferably, before the step of calling back the event response result to the detection application program through the interface, the method further comprises:
when a key event triggered by a user is received, acquiring an ADC (analog to digital converter) value through a key board at the bottom layer of a system and calculating an event response result corresponding to the key event, wherein the event response result comprises a physical key name and a key value;
sending the event response result to a system framework layer, and sending the broadcast of the key event through the system framework layer;
and receiving the broadcast of the key event through a broadcast receiver preset in the service component, and acquiring an event response result of the key event.
Preferably, the step of analyzing the event response result through the detection application program, obtaining a key detection result corresponding to the event response result, and displaying the key detection result on a user interface includes:
calling back an event response result in the service component to the detection application program through an interface call-back mechanism;
analyzing the event response result through the detection application program to obtain a key detection result corresponding to the event response result;
and displaying the key detection result on a user interface.
In addition, in order to achieve the above object, the present invention further provides a physical key detection device, including: the detection program of the physical key is executed by the processor to realize any step of the detection method of the physical key.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium having a physical key detection program stored thereon, wherein the physical key detection program, when executed by a processor, implements any one of the steps of the physical key detection method as described above.
Registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key; and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface. Through the implementation mode, the interface is registered to the service assembly through the preset detection application program, the event response result monitored by the service assembly is called back to the detection application program through the interface, and finally the event response result is displayed on the user interface, so that a user can directly check the key detection result from the user interface, and the purposes of simultaneously detecting a plurality of keys and improving the key detection efficiency are achieved.
Drawings
FIG. 1 is a schematic diagram of an apparatus in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for detecting a physical key according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for detecting a physical key according to a second embodiment of the present invention;
FIG. 4 is a diagram illustrating an initialized user interface according to an embodiment of the invention;
FIG. 5 is a flowchart illustrating a method for detecting a physical key according to a third embodiment of the present invention;
FIG. 6 is a diagram illustrating a user interface integrated with test results of keys according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
The device of the embodiment of the invention can be an intelligent television, and can also be a device with a display function, such as an intelligent mobile phone, a tablet computer, an electronic book reader, an MP3(Moving Picture Experts Group Audio Layer III, dynamic video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, dynamic video Experts compression standard Audio Layer 4) player, a portable computer and the like.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the device shown in fig. 1 is not intended to be limiting of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a detection program of physical keys.
In the apparatus shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client and performing data communication with the client; and the processor 1001 may be configured to call the detection program of the physical key stored in the memory 1005 and perform the following operations:
registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key;
and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface.
Further, the processor 1001 may call the detection program of the physical key stored in the memory 1005, and also perform the following operations:
starting the detection application program, and initializing a user interface through the detection application program;
establishing connection between the detection application program and the service component through cross-process communication;
judging whether the detection application program is successfully connected with the service component or not;
if yes, executing the following steps: and registering an interface with the corresponding service component through a preset detection application program.
Further, the processor 1001 may call the detection program of the physical key stored in the memory 1005, and also perform the following operations:
and assigning the object reference for realizing the interface to the service component so that the service component can call the method name in the interface through the object reference.
Further, the processor 1001 may call the detection program of the physical key stored in the memory 1005, and also perform the following operations:
when a key event triggered by a user is received, acquiring an ADC (analog to digital converter) value through a key board at the bottom layer of a system and calculating an event response result corresponding to the key event, wherein the event response result comprises a physical key name and a key value;
sending the event response result to a system framework layer, and sending the broadcast of the key event through the system framework layer;
and receiving the broadcast of the key event through a broadcast receiver preset in the service component, and acquiring an event response result of the key event.
Further, the processor 1001 may call the detection program of the physical key stored in the memory 1005, and also perform the following operations:
calling back an event response result in the service component to the detection application program through an interface call-back mechanism;
analyzing the event response result through the detection application program to obtain a key detection result corresponding to the event response result;
and displaying the key detection result on a user interface.
The specific embodiment of the detection apparatus for physical keys of the present invention is substantially the same as the following embodiments of the detection method for physical keys, and will not be described herein again.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a method for detecting a physical key according to the present invention, where the method for detecting a physical key includes:
and step S10, registering an interface to the corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface defines a method name for calling back the event response result corresponding to each physical key.
The device provided by the embodiment of the invention can be a device for operating an android system, such as a smart television, a smart phone and a tablet personal computer. Since all the devices need to be subjected to various detections in a production line before being delivered from a factory, and the devices can be delivered from the factory after all the detections are qualified, the embodiment of the invention adopts a smart television, a smart phone, a tablet computer and the like in a factory mode as implementation devices. For convenience of explanation, the following embodiments all use the smart tv (i.e. the tv to be detected) in the factory mode as an example. Before the television to be detected is detected, a detection application program or an Android package (Android package, abbreviated as APK) developed for the key test needs to be installed in advance. The detection application program is used for integrating physical keys on the body of the television to be detected in a software mode, and keys such as 'volume +', 'volume-', 'channel +', 'channel-', 'input', 'menu', 'power supply' and the like are all integrated in the detection application program. Meanwhile, the detection application program is integrated in the television system, and when the television system is burned in a factory, the integrated detection application program and system software of the television are burned into a memory of the television to be detected.
After the television to be detected is powered on and started, the television software system has installed the detection application program by default. After the detection application program is started, the detection application program establishes connection with the service component through cross-process communication (IPC), and registers an interface with the service component. The service component in this embodiment is a factory service (factory service) defined by a developer. The detection application program adopts an interface mode to register an interface, and assigns the object reference for realizing the interface to the service component so that the service component can call the method name in the interface through the object reference. It should be noted that the interface defines a method name for calling back an event response result corresponding to each physical key, for example, the method name is public coolean onkey (View v, int keyode, keyevent); the key represents different physical keys, and the event represents relevant parameters of the key event, such as a key value and the like. After the interface registration is completed, the event response result heard by the service component from the system bottom layer can be called back to the detection application program through the interface. The event response result includes a key name, a key value, other parameters, and the like.
And step S20, analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface.
The detection application program analyzes the obtained event response result, obtains the key name, the key value and the like in the event response result, judges whether the physical key corresponding to the key name is successfully detected according to the key value and displays the detection result on a user interface.
The step S20 specifically includes the following steps:
step S201, the event response result in the service assembly is called back to the detection application program through an interface call-back mechanism.
The reference of the object for realizing the interface is given to the interface variable of the interface statement through an interface callback mechanism, so that the interface variable can call the interface method realized by the class, and actually, when the interface variable calls the method in the interface realized by the class, the corresponding object is informed to call the method of the interface, so that the event response result in the service component can be called back to the detection application program.
Step S202, analyzing the event response result through the detection application program, and acquiring a key detection result corresponding to the event response result.
Step S203, displaying the key detection result on a user interface.
And after receiving the event response result, the detection application program acquires a key detection result corresponding to the event response result and displays the key detection result on a user interface. It should be noted that the detection result of the user interface is dynamically changed, and may be dynamically updated based on the received event response result, or may be automatically updated at preset time intervals. If the event response result is dynamically updated based on the received event response result, the detection application program analyzes the event response result once when monitoring one event response result, and updates the key detection result of the user interface. If the key detection result is automatically updated at the preset time interval, the key detection result is refreshed at the preset time interval no matter whether the event response result is monitored or not. Those skilled in the art will understand that the preset time may be 1 second, 2 seconds, etc., and may be set according to actual situations, and the embodiment of the present invention is not limited in particular.
In the embodiment, the preset detection application program is used for monitoring the event response result from the service component registration interface, the monitored event response result is called back to the preset detection application program through the interface, and finally the call-back result is displayed on the user interface, so that a user can directly check the key detection result from the user interface, and meanwhile, the simultaneous detection of a plurality of keys is supported, and the key detection efficiency is improved.
Further, referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the method for detecting a physical key according to the present invention, and based on the embodiment illustrated in fig. 2, before the step S10 registers an interface with a corresponding service component through a preset detection application, the method includes:
step S101, starting the detection application program, and initializing a user interface through the detection application program.
Since the detection application program is installed in the television software system, after the television to be detected is powered on and started, the detection application program can be automatically started after the completion of the system starting is detected or triggered and started by a user. If the detection application program is triggered to be started by the user, the user can select the detection application program and then double-click the mouse to open the detection application program, or click the touch screen to open the detection application program. After the detection application is started, the user interface is initialized, and the initialized user interface is shown in fig. 4.
Step S102, the detection application program is connected with the service assembly through cross-process communication.
The service assembly is automatically started after the television software system is started, and the detection application program and the service assembly are connected through cross-process communication. Preferably, the embodiment realizes the detection of cross-process communication between the application program and the service component by a Binder communication mode. The working principle of the Binder communication mode is as follows: when a new process is started, a Binder _ open is called to open a Binder driver, and a mmap () function is called to map a Binder driver memory into a process memory. The Binder driver generates a record related to the process, and the record uses the Binder _ proc structure defined in the 'drivers/android/binder.c', and with the record, the Binder driver can find each process. When the process B is started, calling a mmap () function to map the binder driving memory into the process B memory, wherein a virtual address returned by the mmap function points to a certain position of the physical memory after logic address conversion; for the binder driver, it also has a pointer (binder _ proc- > alloc. buff) to a virtual memory address, and after logical address translation, it points to the same location in physical memory as process B. Likewise, process a is the same. The process A communicates with the process B through the Binder, firstly, the Binder driver finds a record (Binder _ proc) corresponding to the process B, then calls the copy _ from _ user to copy the data in the process A to a memory pointed by the Binder _ proc- > alloc. It should be noted that, in addition to using the cross-process communication mode of the Binder, communication modes such as Services (Binder-based), entries, ContentProviders, and the like may also be used, and the present invention is not limited.
Step S103, judging whether the detection application program is successfully connected with the service assembly.
Judging whether the connection between the detection application program and the service component is successful, if so, executing the step S10: and registering an interface with the service component through a preset detection application program. If the detection application is not successfully connected with the service component, the method continues to wait until the detection application is successfully connected with the service component.
In this embodiment, by starting the detection application and the service component and establishing a connection between the detection application and the service component, the monitoring of the event response result can be realized by registering an interface with the service component by the detection application.
Further, referring to fig. 5, fig. 5 is a flowchart illustrating a third embodiment of the method for detecting a physical key according to the present invention, and based on the embodiment illustrated in fig. 2, before the step S10 calls back the event response result to the detection application program through the interface, the method includes:
and step S104, when a key event triggered by a user is received, acquiring an ADC (analog to digital converter) value through a key board at the bottom layer of the system and calculating an event response result corresponding to the key event, wherein the event response result comprises a physical key name and a key value.
When a user triggers a physical key on the body of the television to be detected, the television to be detected receives a key event triggered by the user, acquires an ADC value through a key control board at the bottom layer of the system after receiving the key event, and calculates an event response result corresponding to the physical key according to the ADC value. The event response result includes the physical key name and the key value, and may also include other parameters, which is not limited in the present invention.
The physical key-press key-control board comprises a switch circuit and an Analog-to-digital converter (ADC), the switch circuit is provided with switches of all physical keys, the keys are pressed to be conducted, and the keys are loosened to be disconnected, and the principle is that the voltage division of an external circuit is used, so that different key actions generate different Analog levels to the ADC. The ADC can obtain different digital outputs at different analog inputs within its operating range.
And step S105, sending the event response result to a system framework layer, and sending the broadcast of the key event through the system framework layer.
And after an event response result is obtained at the bottom layer of the system, the event response result is injected into an Android input subsystem, and after a PhoneWindowManager at a system frame layer receives the event response result, the broadcast of the key event is generated.
Step S106, receiving the broadcast of the key event through a broadcast receiver preset in the service assembly, and obtaining an event response result of the key event.
The service assembly is pre-registered with a broadcast receiver for receiving the key event, and after receiving the broadcast of the key event, the service assembly sends an event response result to the service assembly according to data transmitted by the broadcast. After the service component receives the event response result, the detection application program may listen and call back the event response result to the detection application program through the previously registered interface, and finally, the event response result may be displayed on the user interface through the detection application program, where the user interface integrated with the test result of each key is shown in fig. 6.
In the embodiment, the key event of the user is acquired through the system bottom layer, and the event response result is uploaded to the service assembly, so that the detection application program can acquire the event response result from the service assembly, and the online detection of the key is realized.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where a program for detecting a physical key is stored on the computer-readable storage medium, and when executed by a processor, the program for detecting a physical key implements the following operations:
registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key;
and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface.
Further, the detection program of the physical key is further implemented to perform the following operations when executed by the processor:
starting the detection application program, and initializing a user interface through the detection application program;
establishing connection between the detection application program and the service component through cross-process communication;
judging whether the detection application program is successfully connected with the service component or not;
if yes, executing the following steps: and registering an interface with the corresponding service component through a preset detection application program.
Further, the detection program of the physical key is further implemented to perform the following operations when executed by the processor:
and assigning the object reference for realizing the interface to the service component so that the service component can call the method name in the interface through the object reference.
Further, the detection program of the physical key is further implemented to perform the following operations when executed by the processor:
when a key event triggered by a user is received, acquiring an ADC (analog to digital converter) value through a key board at the bottom layer of a system and calculating an event response result corresponding to the key event, wherein the event response result comprises a physical key name and a key value;
sending the event response result to a system framework layer, and sending the broadcast of the key event through the system framework layer;
and receiving the broadcast of the key event through a broadcast receiver preset in the service component, and acquiring an event response result of the key event.
Further, the detection program of the physical key is further implemented to perform the following operations when executed by the processor:
calling back an event response result in the service component to the detection application program through an interface call-back mechanism;
analyzing the event response result through the detection application program to obtain a key detection result corresponding to the event response result;
and displaying the key detection result on a user interface.
The specific embodiment of the computer-readable storage medium of the present invention is basically the same as the embodiments of the physical key detection method of the application software security vulnerability detection method, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A method for detecting a physical key is characterized in that the method for detecting the physical key comprises the following steps:
registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key;
and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface.
2. The method for detecting a physical key of claim 1, wherein before the step of registering an interface with a corresponding service component through a preset detection application, the method comprises:
starting the detection application program, and initializing a user interface through the detection application program;
establishing connection between the detection application program and the service component through cross-process communication;
judging whether the detection application program is successfully connected with the service component or not;
if yes, executing the following steps: and registering an interface with the corresponding service component through a preset detection application program.
3. The method for detecting a physical key of claim 1, wherein the step of registering an interface with a corresponding service component through a predetermined detection application comprises:
and assigning the object reference for realizing the interface to the service component so that the service component can call the method name in the interface through the object reference.
4. The method for detecting a physical key of claim 1, wherein before the step of calling back an event response result to the detection application through the interface, the method comprises:
when a key event triggered by a user is received, acquiring an ADC (analog to digital converter) value through a key board at the bottom layer of a system and calculating an event response result corresponding to the key event, wherein the event response result comprises a physical key name and a key value;
sending the event response result to a system framework layer, and sending the broadcast of the key event through the system framework layer;
and receiving the broadcast of the key event through a broadcast receiver preset in the service component, and acquiring an event response result of the key event.
5. The method for detecting physical keys according to claim 1, wherein the step of analyzing the event response result by the detection application program, obtaining a key detection result corresponding to the event response result, and displaying the key detection result on a user interface includes:
calling back an event response result in the service component to the detection application program through an interface call-back mechanism;
analyzing the event response result through the detection application program to obtain a key detection result corresponding to the event response result;
and displaying the key detection result on a user interface.
6. A physical key detection device, comprising: the detection program of the physical key realizes the following steps when being executed by the processor:
registering an interface to a corresponding service component through a preset detection application program, and calling back an event response result to the detection application program through the interface, wherein the interface is defined with a method name for calling back the event response result corresponding to each physical key;
and analyzing the event response result through the detection application program, acquiring a key detection result corresponding to the event response result, and displaying the key detection result on a user interface.
7. The physical key detection apparatus of claim 6, wherein the physical key detection program, when executed by the processor, further implements the steps of:
starting the detection application program, and initializing a user interface through the detection application program;
establishing connection between the detection application program and the service component through cross-process communication;
judging whether the detection application program is successfully connected with the service component or not;
if yes, executing the following steps: and registering an interface with the corresponding service component through a preset detection application program.
8. The physical key detection apparatus of claim 6, wherein the physical key detection program, when executed by the processor, further implements the steps of:
and assigning the object reference for realizing the interface to the service component so that the service component can call the method name in the interface through the object reference.
9. The physical key detection apparatus of claim 6, wherein the physical key detection program, when executed by the processor, further implements the steps of:
when a key event triggered by a user is received, acquiring an ADC (analog to digital converter) value through a key board at the bottom layer of a system and calculating an event response result corresponding to the key event, wherein the event response result comprises a physical key name and a key value;
sending the event response result to a system framework layer, and sending the broadcast of the key event through the system framework layer;
and receiving the broadcast of the key event through a broadcast receiver preset in the service component, and acquiring an event response result of the key event.
10. A computer-readable storage medium, on which a detection program of a physical key is stored, wherein the detection program of the physical key, when executed by a processor, implements the steps of the detection method of the physical key according to any one of claims 1 to 5.
CN201910890956.6A 2019-09-19 2019-09-19 Physical key detection method and device and computer readable storage medium Pending CN110708535A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910890956.6A CN110708535A (en) 2019-09-19 2019-09-19 Physical key detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910890956.6A CN110708535A (en) 2019-09-19 2019-09-19 Physical key detection method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110708535A true CN110708535A (en) 2020-01-17

Family

ID=69195449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910890956.6A Pending CN110708535A (en) 2019-09-19 2019-09-19 Physical key detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110708535A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667488A (en) * 2020-12-29 2021-04-16 深圳市慧为智能科技股份有限公司 Key processing method, device, equipment and computer readable storage medium
CN112685112A (en) * 2020-12-25 2021-04-20 惠州Tcl移动通信有限公司 Interface control method, intelligent terminal and computer readable storage medium
CN113010543A (en) * 2021-01-13 2021-06-22 腾讯科技(深圳)有限公司 Factory equipment detection method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041934A1 (en) * 2004-08-17 2006-02-23 Microsoft Corporation Physical encryption key system
CN102467409A (en) * 2010-11-08 2012-05-23 研祥智能科技股份有限公司 Method for invoking application program by one key
CN102665093A (en) * 2012-03-13 2012-09-12 深圳市九洲电器有限公司 Test method for set top box and test system thereof
CN103024439A (en) * 2012-12-27 2013-04-03 青岛海信电器股份有限公司 Detection method and system for smart televisions
CN103823715A (en) * 2014-02-11 2014-05-28 亿赞普(北京)科技有限公司 Mobile terminal, method and device for one-key calling of application programs on mobile terminal
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
CN105163115A (en) * 2015-09-15 2015-12-16 青岛歌尔声学科技有限公司 Television movement board detection device and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060041934A1 (en) * 2004-08-17 2006-02-23 Microsoft Corporation Physical encryption key system
CN102467409A (en) * 2010-11-08 2012-05-23 研祥智能科技股份有限公司 Method for invoking application program by one key
CN102665093A (en) * 2012-03-13 2012-09-12 深圳市九洲电器有限公司 Test method for set top box and test system thereof
CN103024439A (en) * 2012-12-27 2013-04-03 青岛海信电器股份有限公司 Detection method and system for smart televisions
CN103823715A (en) * 2014-02-11 2014-05-28 亿赞普(北京)科技有限公司 Mobile terminal, method and device for one-key calling of application programs on mobile terminal
CN103997641A (en) * 2014-05-23 2014-08-20 深圳创维数字技术股份有限公司 Interface detection device and method
CN105163115A (en) * 2015-09-15 2015-12-16 青岛歌尔声学科技有限公司 Television movement board detection device and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112685112A (en) * 2020-12-25 2021-04-20 惠州Tcl移动通信有限公司 Interface control method, intelligent terminal and computer readable storage medium
CN112667488A (en) * 2020-12-29 2021-04-16 深圳市慧为智能科技股份有限公司 Key processing method, device, equipment and computer readable storage medium
CN113010543A (en) * 2021-01-13 2021-06-22 腾讯科技(深圳)有限公司 Factory equipment detection method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106791892B (en) Method, device and system for live broadcasting of wheelhouses
CN110708535A (en) Physical key detection method and device and computer readable storage medium
AU2017219385A1 (en) Electronic device and method of application data display therefor
CN109857403B (en) Page updating method and device, page processing method and device
CN110020293B (en) Multimedia data display method, device and storage medium
CN104182196A (en) Multi-screen display method and mobile terminal
CN113986167A (en) Screen projection control method and device, storage medium and display equipment
CN109885323B (en) Application program upgrading method, mobile terminal and readable storage medium
CN111818499B (en) Quick pairing method, device, equipment and computer readable storage medium
CN104809055B (en) Application program testing method and device based on cloud platform
CN112749074B (en) Test case recommending method and device
US20140282058A1 (en) Electronic device with a funiction of applying applications of different operating systems, system and method thereof
CN114741292A (en) Test script management method and device, electronic equipment and storage medium
CN113867585A (en) Interface display method and device, electronic equipment and storage medium
CN108235101B (en) Smart television initialization method, smart television and computer readable storage medium
CN112235412B (en) Message processing method and device
CN105631059B (en) Data processing method, data processing device and data processing system
CN106354509B (en) Screen locking interface setting method and mobile terminal
US20180046347A1 (en) Fingerprint event processing method, apparatus, and terminal
CN107589987B (en) Software control method, device and computer readable storage medium
US20200097098A1 (en) Virtual keyboard implementation method, storage device, and mobile terminal
US20150234546A1 (en) Method for Quickly Displaying a Skype Contacts List and Computer Program Thereof and Portable Electronic Device for Using the Same
CN114547436A (en) Page display method and device, electronic equipment and storage medium
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN110933772A (en) Connection method of wireless device, mobile terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200117