CN115657879B - Input control method, device, equipment and medium based on heterogeneous operating system - Google Patents

Input control method, device, equipment and medium based on heterogeneous operating system Download PDF

Info

Publication number
CN115657879B
CN115657879B CN202211578309.XA CN202211578309A CN115657879B CN 115657879 B CN115657879 B CN 115657879B CN 202211578309 A CN202211578309 A CN 202211578309A CN 115657879 B CN115657879 B CN 115657879B
Authority
CN
China
Prior art keywords
operating system
input
display state
input event
request
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.)
Active
Application number
CN202211578309.XA
Other languages
Chinese (zh)
Other versions
CN115657879A (en
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211578309.XA priority Critical patent/CN115657879B/en
Publication of CN115657879A publication Critical patent/CN115657879A/en
Application granted granted Critical
Publication of CN115657879B publication Critical patent/CN115657879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure provides an input control method, apparatus, device and medium based on heterogeneous operating systems, which are executed by a first operating system, and the method includes: receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event; determining a display state of the second operating system, wherein the display state indicates whether the second operating system currently displays the application service; and performing response control on at least one input request according to the display state. By the method and the device, the input control effect of the input requests sent by different operating systems can be effectively improved under the heterogeneous operating system architecture.

Description

Input control method, device, equipment and medium based on heterogeneous operating system
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to an input control method, apparatus, device, and medium based on a heterogeneous operating system.
Background
Multiple operating systems can be compatible in the same electronic device, and different operating systems are heterogeneous, such as different factory-supported protocols, different used processor architectures, and so on. In an electronic device supporting multiple heterogeneous operating systems, there are services of application programs on multiple operating systems, which may be referred to as application services (such as location services, input event services, bluetooth services, etc.) for short, and an Input component on an electronic device generally provides an Input reporting event for only one application service.
In this way, on the electronic device supporting multiple heterogeneous operating systems, because there is a third-party application service on multiple operating systems, the input event is detected and an input request is generated through services provided by software stacks of different runtime environments and heterogeneous programs, so that the input control effect on input requests sent by different operating systems is poor under the heterogeneous operating system architecture.
Disclosure of Invention
The present disclosure is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, an object of the present disclosure is to provide an input control method, an input control apparatus, an electronic device, a storage medium, and a computer program product based on heterogeneous operating systems, which can effectively improve the input control effect on input requests sent by different operating systems under the heterogeneous operating system architecture.
The input control method based on the heterogeneous operating system provided by the embodiment of the first aspect of the present disclosure is executed by the first operating system, and includes: receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event; determining a display state of the second operating system, wherein the display state indicates whether the second operating system is currently displaying application services; and performing response control on at least one input request according to the display state.
In some embodiments of the present disclosure, the performing response control on at least one of the input requests according to the display state includes:
performing first response control on an input request of a second operating system corresponding to a first display state, wherein the first display state indicates that the second operating system currently displays application services; and/or
And performing second response control on an input request of a second operating system corresponding to a second display state, wherein the second display state indicates that the second operating system does not display the application service currently, and the execution sequence of the first response control is before the execution sequence of the second response control.
In some embodiments of the present disclosure, the performing of the first response control on the input request of the second operating system corresponding to the first display state includes:
generating a first response message of an input request of a second operating system corresponding to the first display state, wherein the first response message is used for responding to an input event of the second operating system corresponding to the first display state;
and sending the first response message to the corresponding second operating system.
In some embodiments of the present disclosure, performing the second response control on the input request of the second operating system corresponding to the second display state includes:
not responding to the input event of the second operating system corresponding to the second display state;
if the second display state of the corresponding second operating system is determined to be updated to the first display state, acquiring a reference duration, wherein the reference duration represents the duration from a time point of not responding to the input event to a time point of updating the second display state;
if the reference duration is determined to be less than or equal to a set duration threshold, generating a second response message corresponding to the input request of the corresponding second operating system, wherein the second response message is used for responding to the input event of the corresponding second operating system;
and sending the second response message to the corresponding second operating system.
In some embodiments of the present disclosure, before the receiving of the input request sent by the at least one second operating system, the method further comprises:
receiving a registration request sent by the at least one second operating system, wherein the registration request is used for registering an input event service in the first operating system for the application service in the second operating system, and the input event service responds to an input event in the second operating system when being called;
and registering the input event service for the application service in the corresponding second operating system according to the registration request.
The heterogeneous operating system-based input control method provided by the embodiment of the second aspect of the present disclosure is executed by a second operating system, and includes: generating an input request based on the input event; and sending the input request to a first operating system, wherein the input request is used for response control of the first operating system based on a display state of the second operating system, and the display state indicates whether the second operating system currently displays the application service or not.
In some embodiments of the present disclosure, the method further comprises:
receiving a first response message sent by the first operating system, wherein the display state of the second operating system is a first display state, and the first response message is generated by the first operating system based on the input request under the condition that the second operating system is determined to be in the first display state;
responding to the input event based on the first response message.
In some embodiments of the present disclosure, the method further comprises:
receiving a second response message sent by the first operating system, wherein when the display state of the second operating system is a second display state, the first operating system does not respond to the input event, and the second response message is generated when the second display state of the second operating system is determined to be updated to the first display state, and a reference duration from a time point of not responding to the input event to a time point of updating the second display state is less than or equal to a set duration threshold;
responding to the input event based on the second response message.
In some embodiments of the present disclosure, the method further comprises:
sending a registration request to the first operating system, wherein the registration request is used for registering an input event service in the first operating system for the application service in the second operating system, and the input event service responds to an input event in the second operating system when being called.
The input control device based on heterogeneous operating systems provided in the embodiments of the third aspect of the present disclosure is applied to a first operating system, and includes: the receiving module is used for receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event; a determining module, configured to determine a display status of the second operating system, where the display status indicates whether the second operating system currently displays an application service; and the control module is used for responding and controlling at least one input request according to the display state.
The input control device based on heterogeneous operating systems according to an embodiment of a fourth aspect of the present disclosure is applied to a second operating system, and includes: a generation module for generating an input request based on an input event; a sending module, configured to send the input request to a first operating system, where the input request is used for response control of the first operating system based on a display state of the second operating system, and the display state indicates whether the second operating system currently displays an application service.
An embodiment of a fifth aspect of the present disclosure provides an electronic device, including: a first operating system, and/or a plurality of second operating systems; the first operating system is used for executing the heterogeneous operating system-based input control method provided by the embodiment of the first aspect of the disclosure; the second operating system is used for executing the input control method based on the heterogeneous operating system provided by the embodiment of the second aspect of the present disclosure.
An embodiment of a sixth aspect of the present disclosure provides an electronic device, including: the input control method based on the heterogeneous operating system comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the input control method based on the heterogeneous operating system according to the embodiment of the first aspect or the second aspect of the disclosure.
An embodiment of a seventh aspect of the present disclosure provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements an input control method based on heterogeneous operating systems as set forth in an embodiment of the first aspect or the second aspect of the present disclosure.
An eighth aspect of the present disclosure provides a computer program product, wherein when instructions in the computer program product are executed by a processor, the method for heterogeneous operating system-based input control as set forth in the first or second aspect of the present disclosure is performed.
According to the input control method, device, electronic equipment, storage medium and computer program product based on the heterogeneous operating systems, a first operating system receives an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event, and the display state of the second operating system is determined, wherein the display state indicates whether the second operating system currently displays application services or not, and response control is performed on the at least one input request according to the display state, so that the input control effect on the input requests sent by different operating systems is effectively improved under the framework of the heterogeneous operating systems.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of an input control method based on a heterogeneous operating system according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an input control method based on a heterogeneous operating system according to another embodiment of the present disclosure;
fig. 3 is a flowchart illustrating an input control method based on a heterogeneous operating system according to another embodiment of the present disclosure;
fig. 4 is a flowchart illustrating an input control method based on a heterogeneous operating system according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an input control device based on heterogeneous operating systems according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an input control device based on a heterogeneous operating system according to another embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
FIG. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure.
Detailed Description
Reference will now be made in detail to the embodiments of the present disclosure, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of illustrating the present disclosure and should not be construed as limiting the same. On the contrary, the embodiments of the disclosure include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
In the present disclosure, the first operating system refers to an operating system that is a master in the heterogeneous operating systems, and the second operating system refers to an operating system that is a slave in the heterogeneous operating systems.
In this disclosure, the input request refers to that the second operating system dynamically monitors an input event, and if the input event is monitored and it is determined that the input event needs to invoke the underlying hardware capability of the electronic device, the second operating system sends a request for invoking the underlying hardware capability of the electronic device to the first operating system.
In the present disclosure, the display state refers to a state of whether an application service (service of an application program) is currently displayed in the second operating system, such as the application service is currently displayed, or the application service is not currently displayed.
In the present disclosure, the input event service refers to a service deployed in the first operating system to support the first operating system to use the underlying hardware capability related to the electronic device.
In the present disclosure, an input event, such as a text input event, a voice input event, a touch input event, and the like.
Fig. 1 is a schematic flowchart of an input control method based on a heterogeneous operating system according to an embodiment of the present disclosure.
It should be noted that the execution subject of the input control method based on the heterogeneous operating system in this embodiment is an input control device based on the heterogeneous operating system, the device may be implemented by software and/or hardware, and the device may be configured in an electronic device, which is not limited to this.
The electronic device is a device that transmits data to or receives data from another device via a communication facility, that is, the electronic device may be, for example, a terminal device, a computer device, or the like that can perform network communication connection, which is not limited thereto.
The electronic device in the embodiment of the present disclosure includes a heterogeneous operating system, for example, a first operating system that is used as a master operating system, and at least one second operating system that is used as a slave operating system is run in the first operating system, for example, a virtual machine may be configured in the first operating system, a second operating system is run in the virtual machine, the first operating system and the second operating system are heterogeneous operating systems with each other, the number of the second operating systems may be one or more, some applications are run in each second operating system, and services (application services) of the applications may cooperate with the first operating system to reuse underlying hardware capabilities of the electronic device.
The input control method based on the heterogeneous operating systems in this embodiment may be executed by the first operating system.
As shown in fig. 1, the method for controlling input based on heterogeneous operating systems includes:
s101: and receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on the input event.
The first operating system is an operating system that is used as a master in the heterogeneous operating systems, and the second operating system is an operating system that is used as a slave in the heterogeneous operating systems.
The input request means that the second operating system dynamically monitors an input event, and if the input event is monitored and it is determined that the input event needs to call the bottom-layer hardware capability of the electronic device, the second operating system sends a request for calling the bottom-layer hardware capability of the electronic device to the first operating system.
In some application scenarios, each second operating system may detect some input events, such as a text input event, a voice input event, a touch input event, and the like, where the input event may be triggered by a user to use an application service in the second operating system based on the input event, and when the second operating system monitors the input event, if the input event is to invoke an underlying hardware capability in the electronic device, the second operating system may send an input request to the first operating system to trigger the first operating system to invoke the underlying hardware capability based on the input request, and the underlying hardware capability corresponding to the input event may be a speech recognition capability, a text conversion capability, an input semantic parsing capability, and the like, which is not limited thereto.
Under the heterogeneous operating system architecture, one or more second operating systems may send input requests at the same time, if a first operating system receives an input request sent by one second operating system, the input request of the one second operating system may be directly responded and controlled, and if a first operating system receives input requests sent by multiple second operating systems, input requests sent by different second operating systems may be cooperatively responded and controlled by means of some policies.
S102: and determining a display state of the second operating system, wherein the display state indicates whether the second operating system currently displays the application service.
The display state refers to a state of whether an application service (service of an application program) is currently displayed in the second operating system, such as the currently displayed application service or the currently undisplayed application service.
In this embodiment of the disclosure, the first operating system may determine, when receiving an input request sent by at least one second operating system, a display state of each second operating system, where the display state may indicate whether the current second operating system currently displays an application service (service of an application program), and the display state may include a first display state and a second display state, where the first display state indicates that the second operating system currently displays the application service, and the second display state indicates that the second operating system does not currently display the application service, which is not limited in this respect.
In this embodiment of the disclosure, the first operating system may monitor the display service provided by the electronic device and detect the display service to determine the display state of the second operating system, or the first operating system may monitor the running condition of the virtual machine running thereon and determine the display state of the second operating system installed in the virtual machine based on the running condition, or receive indication information of the display state sent by the second operating system and determine the display state of the second operating system based on the indication information, which is not limited.
S103: and performing response control on at least one input request according to the display state.
In the embodiment of the present disclosure, after receiving the input request sent by the at least one second operating system and determining the display state of the second operating system, the response control may be performed on the at least one input request in combination with the display state, for example, an appropriate response control policy may be determined in combination with a situation that whether the second operating system currently displays the application service, so as to perform cooperative control on the input requests of the multiple heterogeneous operating systems.
For example, time-sharing response control may be performed on at least one input request according to the display state, so that application services in different operating systems may use underlying hardware capabilities of the electronic device in a time-sharing manner, or it may be determined to respond to the input request or not to respond to the input request according to the display state, or it may be determined to delay responding to the input request according to the display state, which is not limited to this.
Therefore, due to the fact that the appropriate response control strategy is flexibly determined based on the condition that whether the second operating system displays the application service currently, under the heterogeneous operating system architecture, if the plurality of second operating systems send the input requests at the same time, effective cooperative control over the input requests of different operating systems is achieved, and the input control effect of the input requests sent by different operating systems is effectively improved under the heterogeneous operating system architecture.
In this embodiment, by receiving an input request sent by at least one second operating system, where the input request is generated by the second operating system based on an input event, and determining a display state of the second operating system, where the display state indicates whether the second operating system currently displays an application service, and performing response control on the at least one input request according to the display state, under a heterogeneous operating system architecture, an input control effect on input requests sent by different operating systems is effectively improved.
Fig. 2 is a flowchart illustrating an input control method based on a heterogeneous operating system according to another embodiment of the present disclosure.
The heterogeneous operating system-based input control method in this embodiment may be executed by the first operating system.
As shown in fig. 2, the method for controlling input based on heterogeneous operating systems includes:
s201: and receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on the input event.
S202: determining a display state of the second operating system, wherein the display state comprises: the display device comprises a first display state and a second display state, wherein the first display state indicates that the second operating system currently displays the application service, and the second display state indicates that the second operating system does not currently display the application service.
For the description of S201 to S202, reference may be made to the above embodiments specifically, and details are not repeated here.
S203: and performing first response control on the input request of the second operating system corresponding to the first display state.
In the embodiment of the present disclosure, a first response control may be performed on an input request sent by a second operating system currently displaying an application service, where the first response control represents a response control policy for the input request sent by the second operating system currently displaying the application service, for example, a priority response control may be set for the input request sent by the second operating system currently displaying the application service, so as to ensure response timeliness for the input request sent by the second operating system currently displaying the application service, and meet a usage performance of the application service, which triggers sending of the input request, in the second operating system.
In some embodiments of the present disclosure, when performing the first response control on the input request of the second operating system corresponding to the first display state, the first response message may be generated corresponding to the input request of the second operating system corresponding to the first display state, where the first response message is used to respond to an input event of the second operating system corresponding to the first display state, and send the first response message to the corresponding second operating system, so as to ensure that an application service triggered to send the input request in the second operating system can effectively provide a service function.
For example, if it is determined that the second operating system sending the input request currently displays the application service, the underlying hardware capability of the electronic device may be called in real time to process some content in the input request and form a processing result obtained by processing the input request, and then the processing result is encapsulated in the response message, and the response message is provided to the second operating system as the first response message, so as to support the application service in the second operating system to effectively provide the service function.
S204: and performing second response control on the input request of the second operating system corresponding to the second display state, wherein the execution sequence of the first response control is before the execution sequence of the second response control.
In the embodiment of the present disclosure, a second response control may be performed on an input request sent by a second operating system that does not currently display an application service, where the second response control represents a response control policy for the input request sent by the second operating system that does not currently display the application service, for example, a delay response control may be set to be performed on the input request sent by the second operating system that does not currently display the application service, so as to prevent the input request sent by the second operating system that does not currently display the application service from occupying the underlying hardware capability of the electronic device, and ensure that the input request sent by the second operating system that does currently display the application service can acquire the underlying hardware capability of the electronic device in time.
In some embodiments of the present disclosure, the second response control is performed on the input request of the second operating system corresponding to the second display state, which may be not to respond to the input event of the second operating system corresponding to the second display state, and this is not limited.
In other embodiments of the present disclosure, the second response control on the input request of the second operating system corresponding to the second display state may be to delay the response of the input event of the second operating system corresponding to the second display state, which is not limited to this.
In other embodiments of the present disclosure, the second response control is performed on the input request of the second operating system corresponding to the second display state, or the input event of the second operating system corresponding to the second display state is not responded, and then a redundant time range is set, for example, in the redundant time range, if it is determined by detection that the second operating system is switched from the non-display application service to the display application service, the response control may be performed again, so that the rationality of the response control and the response control effect can be improved.
In the embodiment of the disclosure, the input event of the second operating system corresponding to the second display state may not be responded to first, and then, if it is determined that the second display state of the corresponding second operating system is updated to the first display state (that is, it is determined that the second operating system is switched from the non-display application service to the display application service), a reference duration is obtained, where the reference duration represents a duration from a time point of not responding to the input event to a time point of updating the second display state, and if it is determined that the reference duration is less than or equal to a set duration threshold (for example, 1 second), a second response message corresponding to the input request of the corresponding second operating system is generated, where the second response message is used to respond to the input event of the corresponding second operating system, and a second response message is sent to the corresponding second operating system.
In this embodiment, effective cooperative control over input requests of different operating systems is realized, so that the input control effect on input requests sent by different operating systems is effectively improved under the heterogeneous operating system architecture. The priority response control can be set for the input request sent by the second operating system currently displaying the application service, so as to ensure the response timeliness of the input request sent by the second operating system currently displaying the application service, meet the use performance of the application service triggering and sending the input request in the second operating system, and ensure that the application service triggering and sending the input request in the second operating system can effectively provide the service function. The second response control can be performed on the input request sent by the second operating system which does not currently display the application service, and the execution sequence of the first response control is before the execution sequence of the second response control, so that the input request sent by the second operating system which does not currently display the application service is prevented from occupying the bottom hardware capability of the electronic device, and the input request sent by the second operating system which currently displays the application service can be ensured to be timely acquired to the bottom hardware capability of the electronic device.
Fig. 3 is a flowchart illustrating an input control method based on a heterogeneous operating system according to another embodiment of the present disclosure.
The heterogeneous operating system-based input control method in this embodiment may be executed by the first operating system.
As shown in fig. 3, the method for controlling input based on heterogeneous operating systems includes:
s301: and receiving a registration request sent by at least one second operating system, wherein the registration request is used for registering an input event service in the first operating system for the application service in the second operating system, and the input event service responds to an input event in the second operating system when being called.
That is to say, in the embodiment of the present disclosure, it is further supported to register an input event service in the first operating system for an application service in the second operating system in advance, where the input event service is a service deployed in the first operating system to support the first operating system to use the underlying hardware capability related to the electronic device.
For example, an input integration system may be developed in the electronic device, a compatible layer is provided on a service side of a hardware abstraction layer of the developed input system, a registration mechanism is provided for application services in each second operating system in the compatible layer, the application services are distinguished based on an Identity (Identity) of the second operating system, and the compatible layer is adapted, so that the application services in the second operating system can have a right to use the underlying hardware capability of the electronic device after registration.
S302: and registering the input event service for the application service in the corresponding second operating system according to the registration request.
After receiving the registration request sent by the at least one second operating system, the input event service can be registered for the application service in the corresponding second operating system according to the registration request, that is, the application service in the second operating system is given the right to use the underlying hardware capability of the electronic device after being registered, and the on-demand registration can be supported, so that the input control effect on the input requests sent by different operating systems is more flexible under the heterogeneous operating system architecture, and the personalized application scene under the heterogeneous operating system architecture is effectively adapted.
S303: and receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on the input event.
S304: and determining a display state of the second operating system, wherein the display state indicates whether the second operating system currently displays the application service.
S305: and performing response control on at least one input request according to the display state.
For the description of S305, reference may be made to the foregoing embodiments, which are not described herein again.
In this embodiment, after receiving a registration request sent by at least one second operating system, the input event service may be registered for the application service in the corresponding second operating system according to the registration request, that is, the application service in the second operating system is given the right to use the underlying hardware capability of the electronic device after registration, and registration on demand may be supported, so that under the heterogeneous operating system architecture, the input control effect on the input requests sent by different operating systems is more flexible, and the personalized application scenario under the heterogeneous operating system architecture is effectively adapted. By receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event, and determining a display state of the second operating system, wherein the display state indicates whether the second operating system currently displays an application service, and performing response control on the at least one input request according to the display state, under the heterogeneous operating system architecture, the input control effect on the input requests sent by different operating systems is effectively improved.
It should be noted that, in the following embodiments, the same or corresponding terms and method steps as those in the above embodiments may be also referred to in the above embodiments, and are not described herein again.
Fig. 4 is a flowchart illustrating an input control method based on a heterogeneous operating system according to another embodiment of the present disclosure.
The input control method based on the heterogeneous operating systems in this embodiment may be executed by the second operating system.
As shown in fig. 4, the method for controlling input based on heterogeneous operating systems includes:
s401: an input request is generated based on the input event.
S402: and sending an input request to the first operating system, wherein the input request is used for response control of the first operating system based on the display state of the second operating system, and the display state indicates whether the second operating system currently displays the application service.
In this embodiment, the second operating system generates an input request based on the input event, and sends the input request to the first operating system, where the input request is used for response control of the first operating system based on a display state of the second operating system, and the display state indicates whether the second operating system currently displays the application service, and under a heterogeneous operating system architecture, an input control effect on input requests sent by different operating systems is effectively improved.
In some embodiments of the disclosure, the method further comprises:
the second operating system receives a first response message sent by the first operating system, wherein the display state of the second operating system is a first display state, the first response message is generated based on the input request when the first operating system determines that the second operating system is in the first display state, and the second operating system can respond to the input event based on the first response message, so that the application service which triggers sending of the input request in the second operating system can be effectively ensured to be capable of effectively providing the service function.
In some embodiments of the disclosure, the method further comprises:
the second operating system receives a second response message sent by the first operating system, wherein when the display state of the second operating system is the second display state, the first operating system does not respond to the input event, and generates the second response message when the second display state of the second operating system is determined to be updated to the first display state, and the reference duration from the time point of not responding to the input event to the time point of updating the second display state is less than or equal to the set duration threshold.
In some embodiments of the disclosure, the method further comprises:
the method comprises the steps that a second operating system sends a registration request to a first operating system, wherein the registration request is used for registering input event service in the first operating system for application service in the second operating system, the input event service responds to input events in the second operating system when being called, the application service in the second operating system is given permission to use bottom hardware capability of electronic equipment after being registered, and on-demand registration can be supported, so that the input control effect on the input requests sent by different operating systems is more flexible under the framework of the heterogeneous operating system, and personalized application scenes under the framework of the heterogeneous operating system are effectively adapted.
Fig. 5 is a schematic structural diagram of an input control device based on a heterogeneous operating system according to an embodiment of the present disclosure.
As shown in fig. 5, the heterogeneous operating system based input control apparatus 50, applied to a first operating system, includes:
a receiving module 501, configured to receive an input request sent by at least one second operating system, where the input request is generated by the second operating system based on an input event.
A determining module 502, configured to determine a display status of the second operating system, where the display status indicates whether the second operating system currently displays the application service.
And a control module 503, configured to perform response control on at least one input request according to the display status.
It should be noted that the foregoing explanation of the heterogeneous operating system-based input control method is also applicable to the heterogeneous operating system-based input control apparatus of this embodiment, and is not repeated herein.
In this embodiment, by receiving an input request sent by at least one second operating system, where the input request is generated by the second operating system based on an input event, and determining a display state of the second operating system, where the display state indicates whether the second operating system currently displays an application service, and performing response control on the at least one input request according to the display state, under a heterogeneous operating system architecture, an input control effect on input requests sent by different operating systems is effectively improved.
Fig. 6 is a schematic structural diagram of an input control device based on a heterogeneous operating system according to another embodiment of the present disclosure.
As shown in fig. 6, the heterogeneous operating system based input control apparatus 60, applied to a second operating system, includes:
the generating module 601 is configured to generate an input request based on the input event.
A sending module 602, configured to send an input request to the first operating system, where the input request is used for response control by the first operating system based on a display state of the second operating system, and the display state indicates whether the second operating system currently displays the application service.
It should be noted that the foregoing explanation of the heterogeneous operating system-based input control method is also applicable to the heterogeneous operating system-based input control apparatus of this embodiment, and is not repeated herein.
In this embodiment, the second operating system generates an input request based on the input event, and sends the input request to the first operating system, where the input request is used for response control of the first operating system based on a display state of the second operating system, and the display state indicates whether the second operating system currently displays the application service, and under a heterogeneous operating system architecture, an input control effect on input requests sent by different operating systems is effectively improved.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 7, the electronic device 70 includes:
a first operating system 701, and/or a plurality of second operating systems 702; wherein the content of the first and second substances,
the first operating system 701 is configured to execute the heterogeneous operating system-based input control method in the embodiments shown in fig. 1 to 3;
the second operating system 702 is configured to execute the heterogeneous operating system-based input control method in the embodiment illustrated in fig. 4.
It should be noted that the foregoing explanation of the input control method based on the heterogeneous operating system is also applicable to the electronic device of this embodiment, and is not repeated here.
In this embodiment, by receiving an input request sent by at least one second operating system, where the input request is generated by the second operating system based on an input event, and determining a display state of the second operating system, where the display state indicates whether the second operating system currently displays an application service, and performing response control on the at least one input request according to the display state, under a heterogeneous operating system architecture, an input control effect on input requests sent by different operating systems is effectively improved.
FIG. 8 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present disclosure. The electronic device 12 shown in fig. 8 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 8, electronic device 12 is in the form of a general purpose computing device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro Channel Architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 8, and commonly referred to as a "hard drive").
Although not shown in FIG. 8, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described in this disclosure.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a person to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public Network such as the Internet via the Network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, implementing the heterogeneous operating system based input control method mentioned in the foregoing embodiments.
In order to implement the above embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the heterogeneous operating system based input control method as proposed by the foregoing embodiments of the present disclosure.
In order to implement the foregoing embodiments, the present disclosure further provides a computer program product, which when executed by an instruction processor in the computer program product, executes the input control method based on heterogeneous operating systems as set forth in the foregoing embodiments of the present disclosure.
It should be noted that, in the description of the present disclosure, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present disclosure, the meaning of "a plurality" is two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present disclosure includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present disclosure.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present disclosure have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present disclosure, and that changes, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present disclosure.

Claims (12)

1. An input control method based on heterogeneous operating systems, which is executed by a first operating system, the method comprising:
receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event, and the input event is dynamically monitored by the second operating system;
determining a display state of the second operating system, wherein the display state indicates whether the second operating system currently displays an application service; and
according to the display state, performing response control on at least one input request;
before the receiving of the input request sent by the at least one second operating system, the method further comprises:
receiving a registration request sent by the at least one second operating system, wherein the registration request is used for registering an input event service in the first operating system for the application service in the second operating system, and the input event service responds to an input event in the second operating system when being called;
and registering the input event service for the application service in the corresponding second operating system according to the registration request, and giving the application service in the second operating system the authority of using the bottom hardware capability of the electronic equipment after registration.
2. The method of claim 1, wherein said responsively controlling at least one of said input requests according to said display state comprises:
performing first response control on an input request of a second operating system corresponding to a first display state, wherein the first display state indicates that the second operating system currently displays application services; and/or
And performing second response control on an input request of a second operating system corresponding to a second display state, wherein the second display state indicates that the second operating system does not display the application service currently, and the execution sequence of the first response control is before the execution sequence of the second response control.
3. The method of claim 2, wherein performing the first response control on the input request of the second operating system corresponding to the first display state comprises:
generating a first response message of an input request of a second operating system corresponding to the first display state, wherein the first response message is used for responding to an input event of the second operating system corresponding to the first display state;
and sending the first response message to the corresponding second operating system.
4. The method of claim 2, wherein performing the second responsive control on the input request of the second operating system corresponding to the second display state comprises:
not responding to the input event of the second operating system corresponding to the second display state;
if the second display state of the corresponding second operating system is determined to be updated to the first display state, acquiring a reference duration, wherein the reference duration represents the duration from a time point of not responding to the input event to a time point of updating the second display state;
if the reference duration is determined to be less than or equal to the set duration threshold, generating a second response message corresponding to the input request of the corresponding second operating system, wherein the second response message is used for responding to the input event of the corresponding second operating system;
and sending the second response message to the corresponding second operating system.
5. An input control method based on a heterogeneous operating system, which is executed by a second operating system, the method comprising:
dynamically monitoring an input event;
generating an input request based on the input event;
sending the input request to a first operating system, wherein the input request is used for response control of the first operating system based on a display state of the second operating system, and the display state indicates whether the second operating system currently displays application services;
the method further comprises the following steps:
sending a registration request to the first operating system, wherein the registration request is used for registering the input event service in the first operating system for the application service in the second operating system, and the input event service responds to the input event in the second operating system when being called, and endows the application service in the second operating system with the permission of using the bottom-layer hardware capability of the electronic equipment after registration.
6. The method of claim 5, wherein the method further comprises:
receiving a first response message sent by the first operating system, wherein the display state of the second operating system is a first display state, and the first response message is generated by the first operating system based on the input request under the condition that the second operating system is determined to be in the first display state;
responding to the input event based on the first response message.
7. The method of claim 5, wherein the method further comprises:
receiving a second response message sent by the first operating system, wherein when the display state of the second operating system is a second display state, the first operating system does not respond to the input event, and the second response message is generated when the second display state of the second operating system is determined to be updated to the first display state, and the reference duration from the time point of not responding to the input event to the time point of updating the second display state is less than or equal to a set duration threshold;
responding to the input event based on the second response message.
8. An input control device based on heterogeneous operating systems, which is applied to a first operating system, the device comprising:
the receiving module is used for receiving an input request sent by at least one second operating system, wherein the input request is generated by the second operating system based on an input event, and the input event is dynamically monitored by the second operating system;
a determining module, configured to determine a display status of the second operating system, where the display status indicates whether the second operating system currently displays an application service; and
a control module for performing response control on at least one input request according to the display state,
a registration module: receiving a registration request sent by the at least one second operating system, wherein the registration request is used for registering an input event service in the first operating system for the application service in the second operating system, and the input event service responds to an input event in the second operating system when being called;
and registering the input event service for the application service in the corresponding second operating system according to the registration request, and giving the application service in the second operating system the authority of using the bottom hardware capability of the electronic equipment after registration.
9. An input control device based on heterogeneous operating systems, applied to a second operating system, the device comprising:
the generation module is used for dynamically monitoring an input event and generating an input request based on the input event;
the sending module is used for sending the input request to a first operating system, wherein the input request is used for response control of the first operating system based on a display state of a second operating system, and the display state indicates whether the second operating system displays an application service currently;
the registration module is used for sending a registration request to the first operating system, wherein the registration request is used for registering an input event service in the first operating system for the application service in the second operating system, and the input event service responds to the input event in the second operating system when being called and endows the application service in the second operating system with the authority of using the bottom hardware capability of the electronic equipment after registration.
10. An electronic device, comprising: a first operating system, and/or a plurality of second operating systems; wherein the content of the first and second substances,
the first operating system is configured to perform the method of any of the preceding claims 1-4;
the second operating system is configured to perform the method of any of the preceding claims 5-7.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN202211578309.XA 2022-12-09 2022-12-09 Input control method, device, equipment and medium based on heterogeneous operating system Active CN115657879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211578309.XA CN115657879B (en) 2022-12-09 2022-12-09 Input control method, device, equipment and medium based on heterogeneous operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211578309.XA CN115657879B (en) 2022-12-09 2022-12-09 Input control method, device, equipment and medium based on heterogeneous operating system

Publications (2)

Publication Number Publication Date
CN115657879A CN115657879A (en) 2023-01-31
CN115657879B true CN115657879B (en) 2023-04-07

Family

ID=85017625

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211578309.XA Active CN115657879B (en) 2022-12-09 2022-12-09 Input control method, device, equipment and medium based on heterogeneous operating system

Country Status (1)

Country Link
CN (1) CN115657879B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162272A1 (en) * 2008-12-23 2010-06-24 International Business Machines Corporation Management of Application to I/O Device Communication Requests Between Data Processing Systems
CN103959203A (en) * 2011-11-04 2014-07-30 国际商业机器公司 Mobile device with multiple security domains
CN107408045A (en) * 2015-02-27 2017-11-28 三星电子株式会社 Control is provided with the method and the equipment of the equipment of multiple operating systems
CN108235759A (en) * 2017-12-20 2018-06-29 深圳前海达闼云端智能科技有限公司 Input processing method, device and electronic equipment based on multiple operating system
CN108401453A (en) * 2017-12-27 2018-08-14 深圳前海达闼云端智能科技有限公司 A kind of method, apparatus and intelligent terminal of control display screen
CN114327930A (en) * 2021-11-23 2022-04-12 北京智芯微电子科技有限公司 System architecture for communication between heterogeneous multi-core and operation method of system architecture
CN114880072A (en) * 2022-05-10 2022-08-09 统信软件技术有限公司 Application window display method of virtual machine, computing equipment and storage medium
CN115033290A (en) * 2022-05-16 2022-09-09 四川省自主可控电子信息产业有限责任公司 Instruction set-based micro-service splitting method and device and terminal equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100162272A1 (en) * 2008-12-23 2010-06-24 International Business Machines Corporation Management of Application to I/O Device Communication Requests Between Data Processing Systems
CN103959203A (en) * 2011-11-04 2014-07-30 国际商业机器公司 Mobile device with multiple security domains
CN107408045A (en) * 2015-02-27 2017-11-28 三星电子株式会社 Control is provided with the method and the equipment of the equipment of multiple operating systems
CN108235759A (en) * 2017-12-20 2018-06-29 深圳前海达闼云端智能科技有限公司 Input processing method, device and electronic equipment based on multiple operating system
CN108401453A (en) * 2017-12-27 2018-08-14 深圳前海达闼云端智能科技有限公司 A kind of method, apparatus and intelligent terminal of control display screen
CN114327930A (en) * 2021-11-23 2022-04-12 北京智芯微电子科技有限公司 System architecture for communication between heterogeneous multi-core and operation method of system architecture
CN114880072A (en) * 2022-05-10 2022-08-09 统信软件技术有限公司 Application window display method of virtual machine, computing equipment and storage medium
CN115033290A (en) * 2022-05-16 2022-09-09 四川省自主可控电子信息产业有限责任公司 Instruction set-based micro-service splitting method and device and terminal equipment

Also Published As

Publication number Publication date
CN115657879A (en) 2023-01-31

Similar Documents

Publication Publication Date Title
US9098609B2 (en) Health monitoring of applications in a guest partition
US20100131944A1 (en) Graphics Hardware Resource Usage In A Fully Virtualized Computing Environment
CN104142858A (en) Blocked task scheduling method and device
CN107769932B (en) Charging method, device and system
JP2012234336A (en) Method and system for executing monitoring-target process
EP4220377A1 (en) Cloud desktop display method and system
CN111737022A (en) Interface calling method, system, equipment and medium based on micro-service
CN109101371B (en) Disaster recovery switching method and device
CN112764563A (en) Multi-screen control method, device and system, electronic equipment and storage medium
CN108415765B (en) Task scheduling method and device and intelligent terminal
CN115657879B (en) Input control method, device, equipment and medium based on heterogeneous operating system
JP2009176139A (en) Apparatus and program for changing os priority
CN112363980A (en) Data processing method and device for distributed system
KR20160021202A (en) Application control of embedded web content execution
CN115562765B (en) Control method and device of positioning assembly, electronic equipment and storage medium
CN110489309A (en) A kind of monitoring and early warning method, apparatus, equipment and the storage medium of interface
CN110502345A (en) A kind of overload protection method, device, computer equipment and storage medium
CN115576737A (en) Abnormality detection method, abnormality detection device, electronic apparatus, and storage medium
CN109710415B (en) Processing method and device for calling popup control and electronic equipment
CN113467656B (en) Screen touch event notification method and vehicle machine
CN115640100A (en) Virtual machine information synchronization method and computer readable medium
CN114253681A (en) Interrupt registration and sharing management method and electronic equipment
JP2013152627A (en) On-vehicle terminal, and application execution environment program
CN115576679B (en) Sensor control method and device, electronic equipment and storage medium
CN111176870B (en) Reason positioning method, device, terminal and 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
GR01 Patent grant
GR01 Patent grant