Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The dual-screen interaction is a development trend of android operating systems in recent years, more and more intelligent vehicles start to support dual-screen interaction, a main driving member and a secondary driving member can control respective screens, respective applications are respectively opened, and experience is good.
At present, to realize the interaction of the two screens of the vehicle-computer system, a physical screen needs to be added, namely, the view of the android system is simultaneously mapped to two screens, which is similar to the display of the two screens at the computer end, and the display of the two screens of the view is realized through the expansion of the view.
In a specific implementation process, the application program needs to be respectively drawn on the views corresponding to the two physical screens through SurfaceFlinger. And the android Framework needs to be modified to provide an interface to allow the application to freely choose which view to expose on. In addition, the Framwork framework is modified to have the additional physical screen also support the input system to receive user interaction.
In the above implementation, an additional physical screen is required to be configured, which increases the complexity of the circuit structure and makes it cumbersome to exchange and transfer applications between two physical screens. And the input system needs to be adapted so that each screen can realize interactive operation, and the adaptation process is complicated.
In order to solve the technical problems, the present disclosure provides a method and an apparatus for displaying a vehicle-mounted device.
In one embodiment of the present disclosure, a method for displaying a dual screen of a vehicle-mounted system is provided, including:
Responding to a double-screen display instruction of a vehicle-mounted system, and creating a secondary driving view, wherein the secondary driving view covers a secondary driving area of a full-screen view generated by default; the main driving area of the full screen view is preloaded with a main driving page of the desktop starter;
and loading a pre-created secondary driving page of the desktop starter to the secondary driving view.
In the embodiment of the disclosure, in response to a double-screen display instruction of a vehicle-mounted system, a secondary driving view is created, and the secondary driving view covers a secondary driving area of a full-screen view. The desktop starter is designed to be the combination of a main driving page and a secondary driving page, and the main driving page of the desktop starter is loaded in a main driving area of a full screen view; and loading the secondary driving page of the desktop starter by the secondary driving view.
Therefore, the whole car machine screen is divided into a main driving screen and a secondary driving screen from the software level, and the main driving screen and the secondary driving screen can independently display respective contents. Because the view of the main driving screen and the view of the auxiliary driving screen are loaded with the respective desktop starter, the main driving screen and the auxiliary driving screen can receive interaction instructions, and respective applications are opened without adapting an input system.
Therefore, one screen is added from the software level, one physical screen is not required to be additionally configured, double-screen opening application can be conveniently and rapidly realized, and different personal independent spaces are created for a main driver member and a secondary driver member.
The following describes in detail the method and the device for displaying the double screens of the vehicle-mounted system provided by the embodiment of the disclosure.
Referring to fig. 1, fig. 1 is a schematic flow chart of a dual-screen display method of a vehicle-mounted system according to an embodiment of the disclosure, and as shown in fig. 1, the method may include the following steps:
S101: responding to a double-screen display instruction of the vehicle-mounted system, creating a secondary driving view, wherein the secondary driving view covers a secondary driving area of a full-screen view generated by default; and the main driving area of the full screen view is preloaded with a main driving page of the desktop starter.
The vehicle-mounted system double-screen display method provided by the embodiment of the disclosure can be applied to a vehicle-mounted system.
In the embodiment of the disclosure, the double-screen display instruction of the car machine system can be triggered by touching a specific icon of the screen of the car machine.
In addition, in order to provide better experience for users, split-screen display is realized when the automobile is started, so that the automobile system double-screen display instruction can be an automobile system starting instruction.
And when a double-screen display instruction of the vehicle-mounted system is received, creating a secondary driving view. Specifically, a view SurfaceFlinger is created first, then a view (display) is created, and when the view is created, the position of the view is defined so that the view covers the secondary driving area of the full-screen view generated by default, so that the view is denoted as secondary driving view (secondary driving display). The secondary driving view can be used as a virtual screen of the secondary driving.
And the full-screen view is a view corresponding to the whole physical screen, and the full-screen view is generated by default after the vehicle-mounted system is started.
In the embodiment of the disclosure, the full-screen view is divided into a main driving area and a secondary driving area, and the secondary driving view created in the step covers the secondary driving area of the full-screen view.
Referring to fig. 2, fig. 2 is a schematic diagram of a full screen view and a secondary driving view provided in an embodiment of the disclosure. As shown in fig. 2, the full-screen view is a view corresponding to the whole vehicle machine screen, and is divided into a primary driving area and a secondary driving area, where the secondary driving view is an additionally created view in the embodiment of the present disclosure, and is covered on the secondary driving area of the full-screen view.
In the embodiment of the disclosure, the desktop starter is designed as a combination of a main driving page and a secondary driving page, that is, the desktop starter is additionally designed for the secondary driving view and is used as the secondary driving page of the desktop starter. The main driving page and the auxiliary driving page of the desktop starter both comprise application program interfaces, such as icons of application programs, which can be clicked by a user to realize interaction.
In order to better fit the use habit of the user, the application program contained in the main driving page of the desktop starter can be mainly used for navigation, and the application program contained in the auxiliary driving page of the desktop starter can be mainly used for entertainment.
After the vehicle system is started, generating a full-screen view by default, and loading a main driving page of the desktop starter in a main driving area of the full-screen view.
S102: and loading the pre-created secondary driving page of the desktop starter to the secondary driving view.
In the embodiment of the disclosure, the secondary driving page of the desktop starter is loaded to the secondary driving view, that is, the secondary driving page of the desktop starter is designated to the secondary driving view display, or the secondary driving page of the desktop starter is started to the secondary driving view.
Thus, from the aspect of display effect, the whole car machine screen is divided into a main driving screen and a secondary driving screen, and the main driving screen and the secondary driving screen are respectively displayed with respective desktop starter pages, wherein the desktop starter pages contain respective application program icons.
Referring to fig. 3, fig. 3 is an effect schematic diagram of a dual-screen display of a vehicle-mounted system according to an embodiment of the present disclosure, where, as shown in fig. 3, a physical screen is divided into a primary driving screen and a secondary driving screen on a software layer, an application icon of a primary driving Launcher page is displayed in the primary driving screen, and an application icon of a secondary driving Launcher page is displayed in the secondary driving screen, which can both receive an interaction instruction and open respective applications.
It can be seen that, in the embodiment of the disclosure, in response to a dual-screen display instruction of the vehicle-to-machine system, a secondary driving view is created, and the secondary driving view covers a secondary driving area of the full-screen view. The desktop starter is designed to be the combination of a main driving page and a secondary driving page, and the main driving page of the desktop starter is loaded in a main driving area of a full screen view; and loading the secondary driving page of the desktop starter by the secondary driving view.
Therefore, the whole car machine screen is divided into a main driving screen and a secondary driving screen from the software level, and the main driving screen and the secondary driving screen can independently display respective contents. Because the view of the main driving screen and the view of the auxiliary driving screen are loaded with the respective desktop starter, the main driving screen and the auxiliary driving screen can receive interaction instructions and open respective applications.
Therefore, one screen is added from the software level, one physical screen is not required to be additionally configured, double-screen opening application can be conveniently and rapidly realized, and different personal independent spaces are created for a main driver member and a secondary driver member.
In one embodiment of the present disclosure, a first view ID (Identity document, identification number) and a second view ID are assigned to the full-screen view and the secondary view, respectively. And based on an android multi-window mechanism, the application program is started in a designated view.
In one embodiment of the present disclosure, an instruction trigger area of a start instruction is determined in response to the start instruction of a target application; the instruction trigger area includes: the method comprises the steps of a main driving page of the desktop starter and a secondary driving page of the desktop starter.
Determining a target view ID of the target application according to the instruction triggering area;
if the target view ID is the first view ID, starting the target application in a main driving area of the full-screen view;
and if the target view ID is the second view ID, starting the target application in the auxiliary driving view.
As one example, DISPLAYID =0 for a full screen view; DISPLAYID =3 for the secondary driving view. If the main driving member clicks the icon of the target application in the main driving screen of the car machine screen, determining an instruction triggering area of the starting instruction as a main driving page of the desktop starter.
Under the android multi-window mechanism, an application program is allowed to be started under the display of a specific ID, so that if the instruction triggering area is the main driving page of the desktop starter, the target view ID of the target application is determined to be the first view ID, namely DISPLAYID =0 is transferred, and the target application is started in the main driving area of the full screen view.
Correspondingly, if the assistant driver clicks the icon of the target application in the assistant driving screen of the car machine screen, determining that the instruction triggering area of the starting instruction is the assistant driving page of the desktop starter, determining that the target view ID of the target application is the second view ID, namely, transmitting DISPLAYID =3, and starting the target application in the assistant driving view.
It can be seen that, in the embodiment of the present disclosure, the target view ID is determined according to the instruction trigger area, and the application program is allowed to specify display presentation at the specific ID under the android window mechanism, so that the target application is started at the specific view based on the android window mechanism.
Thus, the main driver member clicks an icon of the target application in the main driving screen, and the target application is started on the main driving screen; the assistant driver clicks an icon of a target application in the assistant driver screen, and the target application is started on the assistant driver screen.
In one embodiment of the present disclosure, after determining the target view ID of the target application according to the instruction trigger area, it may further include:
Judging whether the target application is started in a main driving area or a secondary driving view of the full-screen view;
correspondingly, if the target view ID is the first view ID and the target application is started in the secondary driving view, the starting page of the target application is transferred to the primary driving area of the full-screen view.
And if the target view ID is the second view ID and the target application is started in the main driving area of the full-screen view, transferring the starting page of the target application to the auxiliary driving view.
Specifically, under the android multi-window mechanism, running applications are allowed to transition across different windows.
As one example, if the target application is navigation software, it is already started and operated in the main driving area of the full-screen view, and at this time, the assistant driver clicks the target application icon displayed in the assistant driving screen, and the vehicle system shifts the starting page of the target application to the assistant driving view. The starting page is a running page after the target application is started.
Therefore, in the embodiment of the disclosure, the secondary driving area of the full-screen view generated by default is covered by the secondary driving view, the vehicle screen is divided into the main driving screen and the secondary driving screen from the software level, and the view IDs are respectively allocated to the full-screen view and the secondary driving view.
In one embodiment of the disclosure, the vehicle system further supports a voice instruction or a gesture instruction, so that an application program is started on a main driving screen or a secondary driving screen.
Specifically, a starting area of the first application is determined in response to a voice starting instruction or a gesture starting instruction for the first application; the start-up area includes: a main driving area of the vehicle machine screen and a secondary driving area of the vehicle machine screen; the first application is a currently un-started application. And starting the first application in a main driving area or a secondary driving view of the full-screen view based on the starting area of the first application.
The voice start instruction and the gesture start instruction may support user definition, for example, the voice start instruction may include "start application xx on main driving screen" and so on; different applications may correspond to different gestures, which may include a two-finger up-down swipe, a two-finger left-right swipe, a three-finger up-down swipe, a three-finger left-right swipe, and so on.
The vehicle-mounted system recognizes the voice starting instruction and the gesture starting instruction, determines a starting area of the first application, and starts the first application in the corresponding view.
In one embodiment of the disclosure, the vehicle system further supports voice commands or gesture commands to transfer the application program between the primary driving screen and the secondary driving screen.
Specifically, a transfer target area of the second application is determined in response to a voice transfer instruction or a gesture transfer instruction for the second application; the transfer target area includes: a main driving area of the vehicle machine screen and a secondary driving area of the vehicle machine screen; the second application is a currently started application; and based on the transfer target area of the second application, transferring the starting page of the second application to a main driving area or a secondary driving view of the full-screen view.
The voice transfer instruction and the gesture transfer instruction may support user customization, for example, the voice transfer instruction may include "transfer application xx of the primary driving screen to secondary driving" and the like.
The vehicle-mounted system identifies a voice transfer instruction and a gesture transfer instruction, determines a transfer target area of the second application, transfers an operation page after the second application is started to a main driving area or a secondary driving area, and continues to operate.
In addition, in one embodiment of the present disclosure, concealment of the secondary drive screen may be supported. Specifically, in response to the hiding instruction, the secondary driving view can be hidden, so that the dual-screen interactive display is exited.
In order to facilitate understanding, the following further describes a vehicle-machine system dual-screen display method provided by the embodiment of the disclosure with reference to fig. 4.
Fig. 4 is a schematic diagram of a dual-screen display method of a vehicle-mounted system according to an embodiment of the present disclosure, where, as shown in fig. 4, the vehicle-mounted system starts or receives a dual-screen display instruction of the vehicle-mounted system, and creates a secondary driving view, and the secondary driving view covers a secondary driving area of the full-screen view as a virtual secondary driving screen. And starting a main driving Launcher page in a main driving area of the full-screen view, and starting a sub driving Launcher page in a sub driving view. And responding to screen touch, voice or gesture input, determining whether the application program is started on a main driving screen or a secondary driving screen, and judging whether the application program is started or not. If the application program is not started currently, starting the application program in a designated starting screen; and if the application program is started, transferring the running page to another screen after starting.
The method includes the steps that a secondary driving view is created, the secondary driving view covers a secondary driving area of a full-screen view, a desktop starter is designed to be a combination of a main driving page and the secondary driving page, and the main driving area of the full-screen view loads the main driving page of the desktop starter; and loading the secondary driving page of the desktop starter by the secondary driving view.
Therefore, the whole car machine screen is divided into a main driving screen and a secondary driving screen from the software level, and the main driving screen and the secondary driving screen can independently display respective contents. Because the view of the main driving screen and the view of the auxiliary driving screen are loaded with the respective desktop starter, the main driving screen and the auxiliary driving screen can receive interaction instructions and open respective applications.
The method has the advantages that one screen is added from the software level, one physical screen is not required to be additionally configured, double-screen opening application can be conveniently and rapidly realized, and different personal independent spaces are created for a main driving member and a secondary driving member.
And based on an android multi-window mechanism, the target application is started in a designated view, and the started target application is allowed to move from a main driving screen to a secondary driving screen or from the secondary driving screen to the main driving screen, so that the double-screen interaction of the vehicle-computer system is realized on the basis of not additionally adding a physical screen.
Referring to fig. 5, fig. 5 is a block diagram of an apparatus for implementing a dual-screen display method of an automobile and machine system according to an embodiment of the present disclosure, as shown in fig. 5, the apparatus may include:
the creating module 501 is configured to create a secondary driving view in response to a dual-screen display instruction of the vehicle-mounted system, where the secondary driving view covers a secondary driving area of a full-screen view generated by default; the main driving area of the full screen view is preloaded with a main driving page of the desktop starter;
And the loading module 502 is configured to load a pre-created secondary driving page of the desktop starter into the secondary driving view.
In one embodiment of the present disclosure, further comprising:
the allocation module is used for allocating a first view ID and a second view ID for the full-screen view and the auxiliary driving view respectively;
The first determining module is used for responding to a starting instruction of the target application and determining an instruction triggering area of the starting instruction; the instruction trigger area includes: the main driving page of the desktop starter and the auxiliary driving page of the desktop starter;
The second determining module is used for determining a target view ID of the target application according to the instruction triggering area;
The first starting module is used for starting the target application in the main driving area of the full-screen view if the target view ID is the first view ID;
and the second starting module is used for starting the target application in the auxiliary driving view if the target view ID is the second view ID.
In one embodiment of the present disclosure, further comprising:
The judging module is used for judging whether the target application is started in a main driving area of the full-screen view or the auxiliary driving view after determining the target view ID of the target application according to the instruction triggering area;
the first starting module is specifically configured to:
if the target view ID is the first view ID and the target application is started in the secondary driving view, transferring a starting page of the target application to a main driving area of the full-screen view;
the second starting module is specifically configured to:
And if the target view ID is the second view ID and the target application is started in the main driving area of the full-screen view, transferring a starting page of the target application to the auxiliary driving view.
In one embodiment of the present disclosure, further comprising:
A third determining module, configured to determine a start area of a first application in response to a voice start instruction or a gesture start instruction for the first application; the activation region includes: a main driving area of the vehicle machine screen and a secondary driving area of the vehicle machine screen; the first application is a currently un-started application;
and the third starting module is used for starting the first application in the main driving area of the full-screen view or the auxiliary driving view based on the starting area of the first application.
In one embodiment of the present disclosure, further comprising: a fourth determining module, configured to determine a transfer target area of a second application in response to a voice transfer instruction or a gesture transfer instruction for the second application; the transfer target area includes: a main driving area of the vehicle machine screen and a secondary driving area of the vehicle machine screen; the second application is a currently started application;
And a fourth determining module, configured to transfer, based on a transfer target area of the second application, a start page of the second application to a primary driving area of the full-screen view or the secondary driving view.
It can be seen that, in the embodiment of the disclosure, in response to a dual-screen display instruction of the vehicle-to-machine system, a secondary driving view is created, and the secondary driving view covers a secondary driving area of the full-screen view. The desktop starter is designed to be the combination of a main driving page and a secondary driving page, and the main driving page of the desktop starter is loaded in a main driving area of a full screen view; and loading the secondary driving page of the desktop starter by the secondary driving view.
Therefore, the whole car machine screen is divided into a main driving screen and a secondary driving screen from the software level, and the main driving screen and the secondary driving screen can independently display respective contents. Because the view of the main driving screen and the view of the auxiliary driving screen are loaded with the respective desktop starter, the main driving screen and the auxiliary driving screen can receive interaction instructions, and respective applications are opened without adapting an input system.
The method has the advantages that one screen is added from the software level, one physical screen is not required to be additionally configured, double-screen opening application can be conveniently and rapidly realized, and different personal independent spaces are created for a main driving member and a secondary driving member.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
The present disclosure provides an electronic device, comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores instructions executable by the at least one processor to enable the at least one processor to perform a vehicle-to-machine system dual screen display method.
The present disclosure provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a vehicle-to-machine system dual screen display method.
The present disclosure provides a computer program product comprising a computer program which, when executed by a processor, implements a vehicle-to-machine system dual screen display method.
Fig. 6 illustrates a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including: an input unit 606 such as a keyboard, mouse, etc.; an output unit 607 such as various types of displays, speakers, and the like; a storage unit 608, such as a magnetic disk, optical disk, or the like; and a communication unit 609 such as a network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as the in-vehicle system two-screen display method. For example, in some embodiments, the in-vehicle system dual screen display method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM 603 and executed by computing unit 601, one or more steps of the vehicle-to-machine system two-screen display method described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the in-vehicle system two-screen display method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), complex Programmable Logic Devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed aspects are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.