WO2023231750A1 - Vehicle window display control method and apparatus, vehicle, and storage medium - Google Patents
Vehicle window display control method and apparatus, vehicle, and storage medium Download PDFInfo
- Publication number
- WO2023231750A1 WO2023231750A1 PCT/CN2023/094103 CN2023094103W WO2023231750A1 WO 2023231750 A1 WO2023231750 A1 WO 2023231750A1 CN 2023094103 W CN2023094103 W CN 2023094103W WO 2023231750 A1 WO2023231750 A1 WO 2023231750A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- window
- display
- target application
- vehicle
- attribute information
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Definitions
- the present application relates to vehicle control technology, for example, to a vehicle window display control method, device, vehicle and storage medium.
- the operating system of the automobile instrument provides the single-window application function of the application.
- the single-window application function means that the window of an application is displayed on the front end and interacts with the user.
- This application provides a vehicle window display control method, device, vehicle and storage medium.
- a method for controlling window display of a vehicle is provided. Multiple applications are installed on the vehicle. The method includes:
- a window management interface is called to display the window based on the display priority.
- a window display control device for a vehicle is provided. Multiple applications are installed on the vehicle.
- the device includes:
- a window display instruction receiving module configured to receive a window display instruction sent by a target application program among the plurality of application programs
- the display attribute information acquisition module is configured to obtain the display attribute information of the window corresponding to the target application
- a display priority determination module configured to determine the display priority of the window based on the display attribute information of the window
- a window display module is configured to call a window management interface to display the window based on the display priority.
- a vehicle comprising:
- the memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present application.
- the vehicle's window display control method is a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present application.
- a computer-readable storage medium stores computer instructions, and the computer instructions are used to implement any of the embodiments of the present application when executed by a processor.
- the vehicle's window displays the control method.
- Figure 1 is a schematic flow chart of a vehicle window display control method provided by an embodiment of the present application
- Figure 2 is a schematic diagram of a vehicle window display control method provided by an embodiment of the present application.
- Figure 3 is another schematic flowchart of a vehicle window display control method provided by an embodiment of the present application.
- Figure 4 is an interaction diagram between a target application program and a window control module among multiple application programs provided by the embodiment of the present application;
- Figure 5 is a schematic structural diagram of a vehicle window display control device provided by an embodiment of the present application.
- Figure 6 is a schematic structural diagram of a vehicle provided by an embodiment of the present application.
- Each application program directly calls the window management interface of the operating system to control the window for single-window display on the front end to realize the single-window application function.
- window management interface of the operating system calls the window management interface of the operating system to display windows, there will be many window display attributes corresponding to the windows that need to be displayed, which will cause the window management system to fail. Management is chaotic.
- embodiments of the present application provide a vehicle window display control method, device, vehicle, and storage medium.
- Figure 1 is a schematic flow chart of the vehicle window display control method provided by the embodiment of the present application.
- This method can be implemented by the vehicle window display control device provided by the embodiment of the present application.
- the device may be implemented in software and/or hardware.
- the device can be integrated in a vehicle. Multiple applications can be installed on the vehicle.
- the vehicle can also include an application interface, a window control module and a window management interface.
- the window control module can listen and receive messages through the application interface. For messages from multiple applications, the window control module can also call the window management interface to display the window.
- the following embodiments will take the device integrated in a vehicle as an example to illustrate. Referring to Figure 1, the method may include the following steps:
- Step 101 Receive a window display instruction sent by a target application program among multiple application programs.
- the target application can be understood as an application that needs to display a window among multiple applications; the window display instruction can be understood as a window display request sent by the target application.
- Figure 2 is a schematic diagram of a vehicle window display control method provided by an embodiment of the present application.
- a target application among multiple applications can send a window display instruction to the window control module through the application interface; window
- the control module can receive window display instructions sent by target applications in multiple application programs through the application interface.
- the application interface can be understood as the message transmission interface of multiple applications and window control modules.
- application C For example, suppose there are application A, application B and application C.
- Application C needs to display a window.
- application C is the target application; the target application C can send a window display instruction to the window control through the application interface.
- Module; the window control module can receive window display instructions sent by the target application C through the application interface.
- Step 102 Obtain the display attribute information of the window corresponding to the target application.
- the display attribute information can be understood as the default display setting information of the window, which can include display position information, size information, hidden information and display level information of the window corresponding to the target application.
- the window control module can obtain the window configuration file from the window configuration file.
- the display property information of the window stored in the file.
- the window configuration file can be understood as a collection of environment settings and files of the terminal device for the window to be loaded, and may include display attribute information of the window.
- the window control module may obtain the stored display attribute information of the window corresponding to the target application C from the configuration file.
- Step 103 Determine the display priority of the window based on the display attribute information of the window.
- the display priority can be understood as the display level of the window.
- the window control module can obtain the display level information of the window from the display attribute information, and then determine the display priority of the window based on the display level information of the window.
- the window control module can obtain the display level information of the window corresponding to target application C from the display attribute information, and then determine the display level information based on the display level information of the window.
- the display priority of the window (level 1).
- Step 104 Call the window management interface to display the window based on the display priority.
- the window management interface can be understood as an interface that provides window management services.
- the display priority of the window can be determined through the window control module, and the window control module can call the window management interface to display the window based on the display priority.
- the window control module can determine the display priority (level 1) of the window corresponding to target application C, and then the window control module can call the window management interface based on Display priority (level 1) displays the window corresponding to target application C.
- the management interface displays windows based on display priority. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface to display the window based on the display priority, which is equivalent to adding a window control module to centrally manage multiple applications.
- the window of the target application program avoids the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display, realizes centralized management of the windows of the target application program of multiple applications, and improves the vehicle
- the efficiency of the window display control can bring a better user experience to the user.
- the method before receiving the window display instruction sent by the target application among the multiple applications, the method further includes: receiving a window addition request sent by the target application, the window addition request including the window, and adding the window to the preset Window list.
- the window addition request can be understood as the window creation request sent by the target application;
- the default The window list can be understood as a preset window storage table.
- a window addition request can be sent to the window control module through the target application; the window control module can receive a window addition request sent by the target application; and the window can be added to the preset window list through the window control module.
- the target application C can send a creation request for window X to the window control module; the window control module can receive the creation request for window X sent by target application C. , then window X can be added to the default window list.
- the window can be added to the preset window list by receiving the window addition request sent by the target application.
- the window control module can be implemented to centrally process the window addition request, thereby reducing the time of vehicle window display control.
- a window hiding instruction sent by the target application may also be received; calling the window management interface sets the status of the window to a hidden state.
- the window hiding instruction can be understood as a request instruction sent by the target application to set the window to be invisible.
- the window control module can receive the window hiding instruction sent by the target application, and then call the window management interface to set the window status to the hidden state.
- the window hiding instruction can be processed centrally through the window control module, and the window status can be changed faster. Set to hidden state to save time on window display control.
- FIG. 3 is another schematic flowchart of a vehicle window display control method provided by an embodiment of the present application. As shown in Figure 3, the vehicle window display control method of this embodiment may include the following steps:
- Step 301 Receive a window display instruction sent by a target application program among multiple application programs.
- the window control module can register the control permission of the window with the window management module of the operating system through the window management interface, where the control permission can include monitoring and receiving Messages between the target application and the window management interface can also include processing window request messages sent by the target application; the window management module can monitor and receive target applications in multiple applications after registering the control permission to control the window. Send window display instructions, and process the received window display instructions.
- FIG. 4 is an interaction diagram between a target application and a window control module among multiple applications provided by the embodiment of the present application.
- the target application 41 may be a target application.
- the target application 41 can send the window display instruction of the window X that needs to be displayed to the window control module 42; the window control module 42 can receive the window display instruction of the window X sent by the target application 41.
- Step 302 Determine whether the window is included in the preset window list; if the window is not included in the preset window list, step 303 is executed; if the window is included in the preset window list, step 304 is executed.
- the window control module can be used to query whether the window name of the window exists in the preset window list, and determine whether the window is included in the preset window list.
- Step 303 Determine the window to be an unknown window, and set the visible state of the window to a hidden state.
- window control module 42 queries the preset window list for a window name that does not exist for window X, and determines that the preset window list does not include window , confirm that window X is an unknown window, and set the visible state of window X to the hidden state.
- the window control module 42 can also be used to set the window size to be minimized and the display priority of the window to be the lowest level.
- Step 304 Load the default attribute information of the window from the window configuration file to obtain the display attribute information of the window.
- the default attribute information can be understood as loading the attribute information of each window stored in the system according to the configuration of the window configuration file.
- the window configuration file can be read, the default attribute information of each window stored in the system is loaded according to the window name in the window configuration file, and the default attribute information of each window is stored in the window configuration file. ; After determining that the window is included in the preset window list, the window control module can load the default attribute information of each window stored in the window configuration file, and determine the loaded default attribute information of each window as the display attribute information of the window.
- window name of window X exists in the preset window list is queried and it is determined that the preset window list includes window X, then the default attribute information of window And determine the loaded default attribute information of window X as the display attribute information of window X.
- the display attribute information of the window can be obtained by determining whether the window is included in the preset window list; when the window is included in the preset window list, the default attribute information of the window is loaded from the window configuration file, so that the display attribute information of the window can be obtained.
- Unknown windows that do not exist in the preset window list are hidden, which avoids the security risk of unknown windows, saves the time of loading the default attribute information of the window, and improves the control speed of window display control.
- Step 305 Determine the display priority of the window based on the display attribute information of the window.
- the window control module 42 can obtain the display level information of the window The display level information determines the display priority (level 1) of window X.
- Step 306 Determine whether the display priority is the current highest priority; if the display priority is not the current highest priority, execute step 307; if the display priority is the current highest priority, execute step 308.
- the current highest priority can be understood as the highest display level of the display priorities of windows sent by multiple target applications at the current moment.
- the display priority of the window corresponding to the smallest level value can be the current highest priority.
- Step 307 Wait for the window with a higher display priority to be displayed.
- window X For example, if the display priority of window X is not the current highest priority, you need to wait for the window with a higher display priority than window X to be displayed.
- step 308 is executed.
- Step 308 Call the window management interface to set the status of the window to the visible state.
- the window management interface can be called through the window control module 42 to set the status of window X to the visible state.
- the window management interface can send a window display success message to the window control module 42; the window control module 42 can send a window display success message to the corresponding The target application 41; after receiving the window display success message, the target application 41 can modify the window size, window position, etc. in the display attribute information of the window.
- the target application 41 modifies the display attribute information of the window, the target application The program may send the window's property update information to the window control module 42 .
- the window management interface is called to set the status of the window to the visible state, which reduces the need for the window management interface to determine the window. Whether the display priority is the current highest level allows the window management interface to quickly set the status of the window based on the window's display priority.
- Step 309 Receive window property update information sent by the target application.
- the attribute update information can be understood as the attribute modification information of the window sent by the target application.
- the window control module can receive the attribute update information of the window sent by the target application.
- the target application 41 can send the attribute update information of the window X to the window control module 42 after modifying the attribute information of the window X; the window control module 42 can receive the window sent by the target application 41.
- X's attribute update information can be sent by the target application 41.
- Step 310 Determine whether the attribute update information is legal; if the attribute update information is illegal, step 311 is executed; if the attribute update information is legal, step 312 is executed.
- the window control module can be used to determine whether the modified attributes of windows corresponding to target applications in multiple applications are legal.
- Step 311 Update the display attribute information of the window to the default attribute information.
- window X1 For example, suppose that application A needs to display window X1, application B needs to display window X2, and application C needs to display window X3.
- application A, application B, and application C are all target applications, and window X1
- the display priorities corresponding to window X2 and window X3 are 4, 3, and 2 respectively.
- the display order of window X1, window X2, and window X3 is window X3, window Previously, target application A changed the display priority 3 of window X1 to 1, so the display order of window X1, window X2, and window X3 became window X1, window The corresponding window X1 is not displayed according to the correct display priority.
- the window control module 42 can determine that the attribute update information of window X1 is illegal by querying the window configuration file.
- the window control module 42 The display attribute information of window X1 can be updated to the default attribute information, and the window control module 42 can update the visible state of window X1 to a hidden state.
- Step 312 Update the display attribute information of the window based on the attribute update information.
- the window control module can update the display attribute information of the window based on the attribute update information.
- application A needs to display window X1
- application B needs to display window X2
- application C needs to display window X3.
- application A, application B, and application C are all target applications, and window
- the corresponding display priorities of X1, window X2, and window X3 are 3, 2, and 1 respectively, and the display order of window X1, window X2, and window X3 is window X3, window X2, and window
- the hidden state of X3 is changed to the visible state.
- the target application 41 changes the visible state of window X3 to the hidden state
- the target application B changes the hidden state of window X2 to the visible state.
- target application A changes the hidden state of window X1 to a visible state; that is, the display order of window X1, window X2, and window X3 and the corresponding display If the priorities match, the window control module 42 can determine that window X1 is modified and hidden. If the operation of the visible state is legal, the window control module 42 can update the hidden state in the display attribute information of the window X1 to the visible state based on the attribute update information (modifying the hidden state to the visible state).
- the target application it is possible to receive the attribute update information of the window sent by the target application; determine whether the attribute update information is legal; when the attribute update information is legal, update the display attribute information of the window based on the attribute update information, thus avoiding the need for the target application to
- the chaotic window management caused by illegal window attribute update operations reduces the time required for window display control, improves the control efficiency of vehicle window display control, and thus provides users with a better user experience.
- the message events in the window can also be obtained through the window management interface; the message events are fed back to the target application, so that the target application can determine the corresponding timely Whether the display attribute information of the window is updated successfully, avoiding the increase in window control time cost caused by the target application sending attribute update information again.
- the message event can be understood as a successful update event of the window's attribute information.
- the message events in the window can be obtained through the window control module, and the message events can be fed back to the target application through the application interface.
- the message event in the window can be obtained through the window control module, and the message event can be fed back to the target application A through the application interface.
- the window can be added to the preset window list by receiving a window addition request sent by the target application.
- the window addition request includes a window, and the window display instructions sent by the target application in multiple applications can be received. Determine whether the window is included in the preset window list; if the window is not included in the preset window list, ignore the window display instructions sent by the target application in multiple applications; if the window is included in the preset window list, retrieve the window from the window configuration file Load the default attribute information of the window, obtain the display attribute information of the window, and determine the display priority of the window based on the display attribute information of the window; determine whether the display priority is the current highest priority; if the display priority is not the current highest priority, wait for high After the display of the window with display priority is completed, if the display priority is the current highest priority, call the window management interface to set the status of the window to the visible state; receive the attribute update information of the window sent by the target application, and determine whether the attribute update information is legal.
- the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface based on the display
- the priority display window is equivalent to adding a window control module to centrally manage the windows of target applications of multiple applications, avoiding the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display. situation, realize centralized management of target application windows of multiple applications, improve the efficiency of vehicle window display control, and thus provide users with a better user experience.
- FIG. 5 is a schematic structural diagram of a vehicle window display control device provided by an embodiment of the present application.
- the device is suitable for executing the vehicle window display control method provided by an embodiment of the present application. As shown in Figure 5, the device includes:
- the window display instruction receiving module 501 is configured to receive the window display instruction sent by the target application program among the plurality of application programs;
- the display attribute information obtaining module 502 is configured to obtain the display attribute information of the window corresponding to the target application program
- the display priority determination module 503 is configured to determine the display priority of the window based on the display attribute information of the window;
- the window display module 504 is configured to call a window management interface to display the window based on the display priority.
- the window display module 504 is configured as:
- the window management interface In response to the display priority being the current highest priority, the window management interface is called to set the status of the window to a visible state.
- the device further includes a message event feedback module configured to:
- the device further includes a window hiding instruction receiving module configured to:
- the window management interface is called to set the status of the window to a hidden state.
- the device further includes a window adding module configured to:
- the display attribute information acquisition module 502 is set to:
- the default attribute information of the window is loaded from the window configuration file to obtain the display attribute information of the window.
- the device further includes a display attribute information update module configured to:
- the display attribute information of the window is updated based on the attribute update information.
- the device of the embodiment of the present application receives a window display instruction sent by a target application in multiple applications; obtains the display attribute information of the window corresponding to the target application; determines the display priority of the window based on the display attribute information of the window; calls The window management interface displays windows based on display priority. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface to display the window based on the display priority, which is equivalent to adding a window control module to centrally manage multiple applications.
- the window of the target application program avoids the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display, realizes centralized management of the windows of the target application program of multiple applications, and improves the vehicle
- the efficiency of the window display control can bring a better user experience to the user.
- An embodiment of the present application also provides a vehicle, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program that can be executed by the at least one processor, The computer program is executed by the at least one processor, so that the at least one processor can implement the vehicle window display control method provided in any of the above embodiments.
- Embodiments of the present application also provide a computer-readable storage medium on which computer instructions are stored.
- the computer instructions are executed by a processor, the vehicle window display control method provided by any of the above embodiments is implemented.
- the storage medium may be a non-transitory storage medium.
- Vehicles in embodiments of the present application may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (PAD), Mobile terminals such as portable multimedia players (PMP), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (TV), desktop computers, and the like.
- PDA Personal Digital Assistant
- PAD tablet computers
- PMP Portable multimedia players
- vehicle-mounted terminals such as vehicle-mounted navigation terminals
- TV digital televisions
- desktop computers and the like.
- the vehicle shown in FIG. 6 is only an example and should not impose any restrictions on the functions and scope of use of the embodiments of the present application.
- the vehicle 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601 , which may process data according to a program stored in a read-only memory (Read-Only Memory, ROM) 602 or from a storage device 608
- ROM read-only memory
- RAM random access memory
- the processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604.
- An input/output (I/O) interface 605 is also connected to bus 604.
- input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD) , an output device 607 such as a speaker, a vibrator, etc.; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609.
- Communication device 609 may allow vehicle 600 to communicate wirelessly or wiredly with other devices to exchange data.
- FIG. 6 illustrates vehicle 600 with various devices, it should be understood that implementation or availability of all illustrated devices is not required. More or fewer means may alternatively be implemented or provided.
- the process described above with reference to the flowchart may be implemented as a computer software program.
- embodiments of the present application include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
- the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602.
- the computer program is executed by the processing device 601
- the above functions defined in the method of the embodiment of the present application are performed.
- the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
- the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof.
- Examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), erasable programmable read only memory Memory (Erasable Programmable Read-Only Memory, EPROM) or flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic memory parts, or any suitable combination of the above.
- a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
- the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
- a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
- Program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
- each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
- the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
- each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.
- a processor includes a window display instruction receiving module, a display attribute information obtaining module, a display priority determining module and a window display module.
- a processor includes a window display instruction receiving module, a display attribute information obtaining module, a display priority determining module and a window display module.
- a processor includes a window display instruction receiving module, a display attribute information obtaining module, a display priority determining module and a window display module.
- the names of these modules do not constitute a limitation on the module itself under certain circumstances.
- this application also provides a computer-readable medium.
- the computer-readable medium may be included in the device described in the above embodiments; it may also exist separately without being assembled into the device.
- the above computer-readable medium carries one or more programs.
- the device includes: receiving a window display instruction sent by a target application program among multiple application programs; obtaining the target Display attribute information of the window corresponding to the application program; determine the display priority of the window based on the display attribute information of the window; call the window management interface to display the window based on the display priority.
- the embodiment of the present application by receiving window display instructions sent by the target application in multiple applications; obtaining the display attribute information of the window corresponding to the target application; determining the display priority of the window based on the display attribute information of the window; calling the window
- the management interface displays windows based on display priority. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface to display the window based on the display priority, which is equivalent to adding a window control module to centrally manage multiple applications.
- the window of the target application program avoids the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display, realizes centralized management of the windows of the target application program of multiple applications, and improves the vehicle The efficiency of the window display control can then bring a better user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
Description
本申请要求在2022年06月02日提交中国专利局、申请号为202210624380.0的中国专利申请的优先权,以上申请的全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application with application number 202210624380.0, which was submitted to the China Patent Office on June 2, 2022. The entire content of the above application is incorporated into this application by reference.
本申请涉及车辆控制技术,例如涉及一种车辆的窗口显示控制方法、装置、车辆和存储介质。The present application relates to vehicle control technology, for example, to a vehicle window display control method, device, vehicle and storage medium.
通常情况下,汽车仪表的操作系统提供应用程序的单窗口应用功能,单窗口应用功能指一个应用程序的窗口在前端显示并与用户进行交互。Usually, the operating system of the automobile instrument provides the single-window application function of the application. The single-window application function means that the window of an application is displayed on the front end and interacts with the user.
发明内容Contents of the invention
本申请提供了一种车辆的窗口显示控制方法、装置、车辆和存储介质。This application provides a vehicle window display control method, device, vehicle and storage medium.
根据本申请的一方面,提供了一种车辆的窗口显示控制方法,所述车辆上安装有多个应用程序,所述方法包括:According to one aspect of the present application, a method for controlling window display of a vehicle is provided. Multiple applications are installed on the vehicle. The method includes:
接收所述多个应用程序中的目标应用程序发送的窗口显示指令;Receive a window display instruction sent by a target application program among the plurality of application programs;
获取所述目标应用程序对应的窗口的显示属性信息;Obtain the display attribute information of the window corresponding to the target application;
基于所述窗口的显示属性信息确定所述窗口的显示优先级;Determine the display priority of the window based on the display attribute information of the window;
调用窗口管理接口基于所述显示优先级显示所述窗口。A window management interface is called to display the window based on the display priority.
根据本申请的另一方面,提供了一种车辆的窗口显示控制装置,所述车辆上安装有多个应用程序,所述装置包括:According to another aspect of the present application, a window display control device for a vehicle is provided. Multiple applications are installed on the vehicle. The device includes:
窗口显示指令接收模块,设置为接收所述多个应用程序中的目标应用程序发送的窗口显示指令;a window display instruction receiving module configured to receive a window display instruction sent by a target application program among the plurality of application programs;
显示属性信息获取模块,设置为获取所述目标应用程序对应的窗口的显示属性信息;The display attribute information acquisition module is configured to obtain the display attribute information of the window corresponding to the target application;
显示优先级确定模块,设置为基于所述窗口的显示属性信息确定所述窗口的显示优先级;A display priority determination module configured to determine the display priority of the window based on the display attribute information of the window;
窗口显示模块,设置为调用窗口管理接口基于所述显示优先级显示所述窗口。A window display module is configured to call a window management interface to display the window based on the display priority.
根据本申请的另一方面,提供了一种车辆,所述车辆包括:According to another aspect of the present application, a vehicle is provided, the vehicle comprising:
至少一个处理器;以及 at least one processor; and
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行本申请任一实施例所述的车辆的窗口显示控制方法。The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method described in any embodiment of the present application. The vehicle's window display control method.
根据本申请的另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使处理器执行时实现本申请任一实施例所述的车辆的窗口显示控制方法。According to another aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to implement any of the embodiments of the present application when executed by a processor. The vehicle's window displays the control method.
应当理解,本部分所描述的内容并非旨在标识本申请的实施例的关键或重要特征,也不用于限制本申请的范围。本申请的其它特征将通过以下的说明书而变得容易理解。It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the application, nor is it intended to limit the scope of the application. Other features of the present application will become readily understood from the following description.
下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。The drawings needed to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For this field, Ordinary technicians can also obtain other related drawings based on these drawings without exerting creative work.
图1是本申请实施例提供的车辆的窗口显示控制方法的一个流程示意图;Figure 1 is a schematic flow chart of a vehicle window display control method provided by an embodiment of the present application;
图2是本申请实施例提供的车辆的窗口显示控制方法的一个示意图;Figure 2 is a schematic diagram of a vehicle window display control method provided by an embodiment of the present application;
图3是本申请实施例提供的车辆的窗口显示控制方法的另一个流程示意图;Figure 3 is another schematic flowchart of a vehicle window display control method provided by an embodiment of the present application;
图4是本申请实施例提供的多个应用程序中的目标应用程序和窗口控制模块的一个交互示意图;Figure 4 is an interaction diagram between a target application program and a window control module among multiple application programs provided by the embodiment of the present application;
图5是本申请实施例提供的车辆的窗口显示控制装置的一个结构示意图;Figure 5 is a schematic structural diagram of a vehicle window display control device provided by an embodiment of the present application;
图6是本申请实施例提供的车辆的一个结构示意图。Figure 6 is a schematic structural diagram of a vehicle provided by an embodiment of the present application.
通过各个应用程序直接调用操作系统的窗口管理接口控制窗口在前端进行单窗口显示,实现单窗口应用功能。Each application program directly calls the window management interface of the operating system to control the window for single-window display on the front end to realize the single-window application function.
但是,仪表中的多个窗口都具有对应的窗口显示属性,如果多个应用程序调用操作系统的窗口管理接口进行窗口显示,由于需要显示的窗口对应的窗口显示属性较多会导致窗口管理系统的管理混乱。However, multiple windows in the instrument have corresponding window display attributes. If multiple applications call the window management interface of the operating system to display windows, there will be many window display attributes corresponding to the windows that need to be displayed, which will cause the window management system to fail. Management is chaotic.
考虑到上述情况,本申请实施例提供了一种车辆的窗口显示控制方法、装置、车辆和存储介质。 Considering the above situation, embodiments of the present application provide a vehicle window display control method, device, vehicle, and storage medium.
下面将结合本申请实施例中的附图,对本申请实施例进行清楚、完整地描述。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。The embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts should fall within the scope of protection of this application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "comprising" and "having" and any variations thereof in the description and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusion, for example, a series of steps or units. The processes, methods, systems, products or devices are not necessarily limited to those steps or units expressly listed, but may include other steps or units not expressly listed or inherent to the processes, methods, products or devices.
下面介绍本申请实施例提供的车辆的窗口显示控制方法,图1是本申请实施例提供的车辆的窗口显示控制方法的一个流程示意图,该方法可以由本申请实施例提供的车辆的窗口显示控制装置来执行,该装置可采用软件和/或硬件的方式实现。在一个实施例中,该装置可以集成在车辆中,车辆上可以安装有多个应用程序,车辆上还可以包括应用接口、窗口控制模块和窗口管理接口,窗口控制模块可以通过应用接口监听和接收多个应用程序的消息,窗口控制模块还可以调用窗口管理接口显示窗口。以下实施例将以该装置集成在车辆中为例进行说明,参考图1,该方法可以包括如下步骤:The following introduces the vehicle window display control method provided by the embodiment of the present application. Figure 1 is a schematic flow chart of the vehicle window display control method provided by the embodiment of the present application. This method can be implemented by the vehicle window display control device provided by the embodiment of the present application. To execute, the device may be implemented in software and/or hardware. In one embodiment, the device can be integrated in a vehicle. Multiple applications can be installed on the vehicle. The vehicle can also include an application interface, a window control module and a window management interface. The window control module can listen and receive messages through the application interface. For messages from multiple applications, the window control module can also call the window management interface to display the window. The following embodiments will take the device integrated in a vehicle as an example to illustrate. Referring to Figure 1, the method may include the following steps:
步骤101,接收多个应用程序中的目标应用程序发送的窗口显示指令。Step 101: Receive a window display instruction sent by a target application program among multiple application programs.
其中,目标应用程序可以理解为多个应用程序中需要进行窗口显示的应用程序;窗口显示指令可以理解为目标应用程序发送的窗口显示的请求。The target application can be understood as an application that needs to display a window among multiple applications; the window display instruction can be understood as a window display request sent by the target application.
例如,图2是本申请实施例提供的车辆的窗口显示控制方法的一个示意图,如图2所示,多个应用程序中的目标应用程序可以通过应用接口发送窗口显示指令至窗口控制模块;窗口控制模块可以通过应用接口接收多个应用程序中的目标应用程序发送的窗口显示指令。其中,应用接口可以理解为多个应用程序和窗口控制模块的消息传输接口。For example, Figure 2 is a schematic diagram of a vehicle window display control method provided by an embodiment of the present application. As shown in Figure 2, a target application among multiple applications can send a window display instruction to the window control module through the application interface; window The control module can receive window display instructions sent by target applications in multiple application programs through the application interface. Among them, the application interface can be understood as the message transmission interface of multiple applications and window control modules.
示例地,假设有应用程序A、应用程序B和应用程序C,应用程序C需要进行窗口显示,此时应用程序C为目标应用程序;目标应用程序C可以通过应用接口发送窗口显示指令至窗口控制模块;窗口控制模块可以通过应用接口接收目标应用程序C发送的窗口显示指令。For example, suppose there are application A, application B and application C. Application C needs to display a window. At this time, application C is the target application; the target application C can send a window display instruction to the window control through the application interface. Module; the window control module can receive window display instructions sent by the target application C through the application interface.
步骤102,获取目标应用程序对应的窗口的显示属性信息。Step 102: Obtain the display attribute information of the window corresponding to the target application.
其中,显示属性信息可以理解为窗口的默认显示设置信息,可以包括目标应用程序对应的窗口的显示位置信息、大小信息、隐藏信息和显示级别信息。The display attribute information can be understood as the default display setting information of the window, which can include display position information, size information, hidden information and display level information of the window corresponding to the target application.
例如,如图2所示,窗口控制模块可以从窗口配置文件中获取窗口配置文 件存储的窗口的显示属性信息。其中,窗口配置文件可以理解为终端设备为所要加载的窗口的环境设置和文件的集合,可以包括窗口的显示属性信息。For example, as shown in Figure 2, the window control module can obtain the window configuration file from the window configuration file. The display property information of the window stored in the file. The window configuration file can be understood as a collection of environment settings and files of the terminal device for the window to be loaded, and may include display attribute information of the window.
示例地,窗口控制模块可以从配置文件中获取存储的目标应用程序C对应的窗口的显示属性信息。For example, the window control module may obtain the stored display attribute information of the window corresponding to the target application C from the configuration file.
步骤103,基于窗口的显示属性信息确定窗口的显示优先级。Step 103: Determine the display priority of the window based on the display attribute information of the window.
其中,显示优先级可以理解为窗口的显示级别。Among them, the display priority can be understood as the display level of the window.
例如,窗口控制模块可以从显示属性信息中获取窗口的显示级别信息,进而可以根据窗口的显示级别信息确定窗口的显示优先级。For example, the window control module can obtain the display level information of the window from the display attribute information, and then determine the display priority of the window based on the display level information of the window.
示例地,假设目标应用程序C对应的窗口的显示级别信息为1级,窗口控制模块可以从显示属性信息中获取目标应用程序C对应的窗口的显示级别信息,进而可以根据窗口的显示级别信息确定窗口的显示优先级(1级)。For example, assuming that the display level information of the window corresponding to target application C is level 1, the window control module can obtain the display level information of the window corresponding to target application C from the display attribute information, and then determine the display level information based on the display level information of the window. The display priority of the window (level 1).
步骤104,调用窗口管理接口基于显示优先级显示窗口。Step 104: Call the window management interface to display the window based on the display priority.
其中,窗口管理接口可以理解为提供窗口管理服务的接口。Among them, the window management interface can be understood as an interface that provides window management services.
例如,如图2所示,可以通过窗口控制模块确定窗口的显示优先级,窗口控制模块可以调用窗口管理接口基于显示优先级显示窗口。For example, as shown in Figure 2, the display priority of the window can be determined through the window control module, and the window control module can call the window management interface to display the window based on the display priority.
示例地,假设目标应用程序C对应的窗口显示优先级为1级,可以通过窗口控制模块确定目标应用程序C对应的窗口的显示优先级(1级),然后窗口控制模块可以调用窗口管理接口基于显示优先级(1级)显示目标应用程序C对应的窗口。For example, assuming that the display priority of the window corresponding to target application C is level 1, the window control module can determine the display priority (level 1) of the window corresponding to target application C, and then the window control module can call the window management interface based on Display priority (level 1) displays the window corresponding to target application C.
本申请实施例中,通过接收多个应用程序中的目标应用程序发送的窗口显示指令;获取目标应用程序对应的窗口的显示属性信息;基于窗口的显示属性信息确定窗口的显示优先级;调用窗口管理接口基于显示优先级显示窗口。即本申请实施例可以根据接收到的目标应用程序的窗口显示指令确定对应窗口的显示优先级,进而调用窗口管理接口基于显示优先级显示窗口,相当于增加了窗口控制模块集中管理多个应用程序的目标应用程序的窗口,避免了多个应用程序调用操作系统的窗口管理接口进行窗口显示导致的窗口管理系统的管理混乱的情况,实现集中管理多个应用程序的目标应用程序的窗口,提高车辆的窗口显示控制的效率,进而可以给用户带来更好地使用体验。In the embodiment of the present application, by receiving window display instructions sent by the target application in multiple applications; obtaining the display attribute information of the window corresponding to the target application; determining the display priority of the window based on the display attribute information of the window; calling the window The management interface displays windows based on display priority. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface to display the window based on the display priority, which is equivalent to adding a window control module to centrally manage multiple applications. The window of the target application program avoids the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display, realizes centralized management of the windows of the target application program of multiple applications, and improves the vehicle The efficiency of the window display control can bring a better user experience to the user.
在一些实施例中,在接收多个应用程序中的目标应用程序发送的窗口显示指令之前,还包括:接收目标应用程序发送的窗口添加请求,窗口添加请求中包括窗口,将窗口添加至预设窗口列表。In some embodiments, before receiving the window display instruction sent by the target application among the multiple applications, the method further includes: receiving a window addition request sent by the target application, the window addition request including the window, and adding the window to the preset Window list.
其中,窗口添加请求可以理解为目标应用程序发送的窗口创建请求;预设 窗口列表可以理解为预设的窗口存储表格。Among them, the window addition request can be understood as the window creation request sent by the target application; the default The window list can be understood as a preset window storage table.
例如,可以通过目标应用程序发送窗口添加请求至窗口控制模块;窗口控制模块可以接收目标应用程序发送的窗口添加请求;可以通过窗口控制模块将窗口添加至预设窗口列表。For example, a window addition request can be sent to the window control module through the target application; the window control module can receive a window addition request sent by the target application; and the window can be added to the preset window list through the window control module.
示例地,继续上述举例,假设目标应用程序C需要创建窗口X,可以通过目标应用程序C发送窗口X的创建请求至窗口控制模块;窗口控制模块可以接收目标应用程序C发送的窗口X的创建请求,然后可以将窗口X添加至预设窗口列表。For example, continuing the above example, assuming that target application C needs to create window X, the target application C can send a creation request for window X to the window control module; the window control module can receive the creation request for window X sent by target application C. , then window X can be added to the default window list.
本申请实施例中,可以通过接收目标应用程序发送的窗口添加请求,将窗口添加至预设窗口列表,可以实现窗口控制模块集中处理窗口添加请求,减少了车辆的窗口显示控制的时间。In the embodiment of the present application, the window can be added to the preset window list by receiving the window addition request sent by the target application. The window control module can be implemented to centrally process the window addition request, thereby reducing the time of vehicle window display control.
在一些实施例中,在调用窗口管理接口基于显示优先级显示窗口之后,还可以接收目标应用程序发送的窗口隐藏指令;调用窗口管理接口将窗口的状态设置为隐藏状态。In some embodiments, after calling the window management interface to display the window based on the display priority, a window hiding instruction sent by the target application may also be received; calling the window management interface sets the status of the window to a hidden state.
其中,窗口隐藏指令可以理解为目标应用程序发送的将窗口设置为不可见的请求指令。Among them, the window hiding instruction can be understood as a request instruction sent by the target application to set the window to be invisible.
例如,窗口控制模块可以接收目标应用程序发送的窗口隐藏指令,然后调用窗口管理接口将窗口的状态设置为隐藏状态,这样可以通过窗口控制模块集中处理窗口隐藏指令,可以更快地将窗口的状态设置为隐藏状态,节约窗口显示控制的时间。For example, the window control module can receive the window hiding instruction sent by the target application, and then call the window management interface to set the window status to the hidden state. In this way, the window hiding instruction can be processed centrally through the window control module, and the window status can be changed faster. Set to hidden state to save time on window display control.
下面描述本申请实施例提供的车辆的窗口显示控制方法,图3是本申请实施例提供的车辆的窗口显示控制方法的另一个流程示意图。如图3所示,本实施例的车辆的窗口显示控制方法可以包括如下步骤:The following describes a vehicle window display control method provided by an embodiment of the present application. FIG. 3 is another schematic flowchart of a vehicle window display control method provided by an embodiment of the present application. As shown in Figure 3, the vehicle window display control method of this embodiment may include the following steps:
步骤301,接收多个应用程序中的目标应用程序发送的窗口显示指令。Step 301: Receive a window display instruction sent by a target application program among multiple application programs.
例如,在接收多个应用程序中的目标应用程序发送的窗口显示指令之前,窗口控制模块可以通过窗口管理接口向操作系统的窗口管理模块注册窗口的控制权限,其中,控制权限可以包括监听和接收目标应用程序与窗口管理接口之间的消息,还可以包括处理目标应用程序发送的窗口请求消息;窗口管理模块在注册控制窗口的控制权限后,可以监听并接收多个应用程序中的目标应用程序发送的窗口显示指令,以及对于接收到的窗口显示指令进行处理。For example, before receiving a window display instruction sent by a target application in multiple applications, the window control module can register the control permission of the window with the window management module of the operating system through the window management interface, where the control permission can include monitoring and receiving Messages between the target application and the window management interface can also include processing window request messages sent by the target application; the window management module can monitor and receive target applications in multiple applications after registering the control permission to control the window. Send window display instructions, and process the received window display instructions.
示例地,图4是本申请实施例提供的多个应用程序中的目标应用程序和窗口控制模块的一个交互示意图,如图4所示,目标应用程序41可以是目标应用 程序C,目标应用程序41可以将需要显示的窗口X的窗口显示指令发送至窗口控制模块42;窗口控制模块42可以接收目标应用程序41发送的窗口X的窗口显示指令。For example, FIG. 4 is an interaction diagram between a target application and a window control module among multiple applications provided by the embodiment of the present application. As shown in FIG. 4 , the target application 41 may be a target application. In program C, the target application 41 can send the window display instruction of the window X that needs to be displayed to the window control module 42; the window control module 42 can receive the window display instruction of the window X sent by the target application 41.
步骤302,确定预设窗口列表中是否包括窗口;若预设窗口列表中不包括窗口,执行步骤303,若预设窗口列表中包括窗口,执行步骤304。Step 302: Determine whether the window is included in the preset window list; if the window is not included in the preset window list, step 303 is executed; if the window is included in the preset window list, step 304 is executed.
示例地,如图4所示,可以通过窗口控制模块在预设窗口列表中查询是否存在窗口的窗口名称,确定预设窗口列表中是否包括窗口。For example, as shown in Figure 4, the window control module can be used to query whether the window name of the window exists in the preset window list, and determine whether the window is included in the preset window list.
步骤303,确定窗口为未知窗口,并将该窗口的可见状态设为隐藏状态。Step 303: Determine the window to be an unknown window, and set the visible state of the window to a hidden state.
示例地,假设通过窗口控制模块42在预设窗口列表中查询不存在窗口X的窗口名称,确定预设窗口列表中不包括窗口X,则可以忽略目标应用程序41发送的窗口X的窗口显示指令,确定窗口X为未知窗口,并将窗口X的可见状态设为隐藏状态。For example, assuming that the window control module 42 queries the preset window list for a window name that does not exist for window X, and determines that the preset window list does not include window , confirm that window X is an unknown window, and set the visible state of window X to the hidden state.
例如,在确定窗口为未知窗口时,还可以通过窗口控制模块42将窗口大小设为最小化、窗口的显示优先级设为最低级别。For example, when it is determined that the window is an unknown window, the window control module 42 can also be used to set the window size to be minimized and the display priority of the window to be the lowest level.
步骤304,从窗口配置文件中加载窗口的默认属性信息,得到窗口的显示属性信息。Step 304: Load the default attribute information of the window from the window configuration file to obtain the display attribute information of the window.
其中,默认属性信息可以理解为根据窗口配置文件的配置加载系统中存储的各个窗口的属性信息。Among them, the default attribute information can be understood as loading the attribute information of each window stored in the system according to the configuration of the window configuration file.
例如,可以在窗口控制模块初始化时,读取窗口配置文件,根据窗口配置文件中的窗口名字加载系统中存储的各个窗口的默认属性信息,并将各个窗口的默认属性信息存储在窗口配置文件中;在确定预设窗口列表中包括窗口后,窗口控制模块可以加载窗口配置文件中存储的各个窗口的默认属性信息,并将加载的各个窗口的默认属性信息确定为窗口的显示属性信息。For example, when the window control module is initialized, the window configuration file can be read, the default attribute information of each window stored in the system is loaded according to the window name in the window configuration file, and the default attribute information of each window is stored in the window configuration file. ; After determining that the window is included in the preset window list, the window control module can load the default attribute information of each window stored in the window configuration file, and determine the loaded default attribute information of each window as the display attribute information of the window.
示例地,如图4所示,假设通过在预设窗口列表中查询存在窗口X的窗口名称,确定预设窗口列表中包括窗口X,则可以从窗口配置文件中加载窗口X的默认属性信息,并将加载的窗口X的默认属性信息确定为窗口X的显示属性信息。For example, as shown in Figure 4, assuming that the window name of window X exists in the preset window list is queried and it is determined that the preset window list includes window X, then the default attribute information of window And determine the loaded default attribute information of window X as the display attribute information of window X.
本申请实施例中,可以通过确定预设窗口列表中是否包括窗口;在预设窗口列表中包括窗口时,从窗口配置文件中加载窗口的默认属性信息,得到窗口的显示属性信息,这样可以对预设窗口列表中不存在的未知窗口进行隐藏处理,避免了未知窗口的安全风险,节约了加载窗口的默认属性信息的时间,提高了窗口显示控制的控制速度。 In the embodiment of the present application, the display attribute information of the window can be obtained by determining whether the window is included in the preset window list; when the window is included in the preset window list, the default attribute information of the window is loaded from the window configuration file, so that the display attribute information of the window can be obtained. Unknown windows that do not exist in the preset window list are hidden, which avoids the security risk of unknown windows, saves the time of loading the default attribute information of the window, and improves the control speed of window display control.
步骤305,基于窗口的显示属性信息确定窗口的显示优先级。Step 305: Determine the display priority of the window based on the display attribute information of the window.
示例地,假设目标应用程序41对应的窗口X的显示级别信息为1级,窗口控制模块42可以从显示属性信息中获取目标应用程序41对应的窗口X的显示级别信息,进而可以根据窗口X的显示级别信息确定窗口X的显示优先级(1级)。For example, assuming that the display level information of window X corresponding to the target application 41 is level 1, the window control module 42 can obtain the display level information of the window The display level information determines the display priority (level 1) of window X.
步骤306,确定显示优先级是否为当前最高优先级;若显示优先级不是当前最高优先级,执行步骤307,若显示优先级是当前最高优先级,执行步骤308。Step 306: Determine whether the display priority is the current highest priority; if the display priority is not the current highest priority, execute step 307; if the display priority is the current highest priority, execute step 308.
其中,当前最高优先级可以理解为当前时刻的多个目标应用程序发送的窗口的显示优先级的最高显示级别。The current highest priority can be understood as the highest display level of the display priorities of windows sent by multiple target applications at the current moment.
例如,可以通过比较多个窗口的显示优先级对应的级别数值大小,最小的级别数值对应的窗口的显示优先级可以为当前最高优先级。For example, by comparing the level values corresponding to the display priorities of multiple windows, the display priority of the window corresponding to the smallest level value can be the current highest priority.
步骤307,等待高于显示优先级的窗口显示完成。Step 307: Wait for the window with a higher display priority to be displayed.
示例地,若窗口X的显示优先级不是当前最高优先级,则需要等待比窗口X的显示优先级高的窗口显示完成。For example, if the display priority of window X is not the current highest priority, you need to wait for the window with a higher display priority than window X to be displayed.
执行完步骤307之后,执行步骤308。After step 307 is executed, step 308 is executed.
步骤308,调用窗口管理接口将窗口的状态设置为可见状态。Step 308: Call the window management interface to set the status of the window to the visible state.
示例地,若窗口X的显示优先级是当前最高优先级,可以通过窗口控制模块42调用窗口管理接口将窗口X的状态设置为可见状态。For example, if the display priority of window X is the current highest priority, the window management interface can be called through the window control module 42 to set the status of window X to the visible state.
如图4所示,在调用窗口管理接口将窗口的状态设置为可见状态之后,窗口管理接口可以发送窗口显示成功消息发送给窗口控制模块42;窗口控制模块42可以将窗口显示成功消息发送至对应的目标应用程序41;目标应用程序41在接收到窗口显示成功消息之后,可以修改窗口的显示属性信息当中的窗口大小、窗口位置等,在目标应用程序41修改窗口的显示属性信息之后,目标应用程序可以发送窗口的属性更新信息至窗口控制模块42。As shown in Figure 4, after calling the window management interface to set the status of the window to a visible state, the window management interface can send a window display success message to the window control module 42; the window control module 42 can send a window display success message to the corresponding The target application 41; after receiving the window display success message, the target application 41 can modify the window size, window position, etc. in the display attribute information of the window. After the target application 41 modifies the display attribute information of the window, the target application The program may send the window's property update information to the window control module 42 .
本申请实施例中,可以通过确定显示优先级是否为当前最高优先级;在显示优先级为当前最高优先级时,调用窗口管理接口将窗口的状态设置为可见状态,减少了窗口管理接口确定窗口的显示优先级是否为当前最高级的时间,可以使得窗口管理接口更快地基于窗口的显示优先级设置窗口的状态。In the embodiment of the present application, it is possible to determine whether the display priority is the current highest priority; when the display priority is the current highest priority, the window management interface is called to set the status of the window to the visible state, which reduces the need for the window management interface to determine the window. Whether the display priority is the current highest level allows the window management interface to quickly set the status of the window based on the window's display priority.
步骤309,接收目标应用程序发送的窗口的属性更新信息。Step 309: Receive window property update information sent by the target application.
其中,属性更新信息可以理解为目标应用程序发送的窗口的属性修改信息。Among them, the attribute update information can be understood as the attribute modification information of the window sent by the target application.
例如,在目标应用程序发送窗口的属性更新信息至窗口控制模块之后;窗口控制模块可以接收目标应用程序发送的窗口的属性更新信息。 For example, after the target application sends the attribute update information of the window to the window control module; the window control module can receive the attribute update information of the window sent by the target application.
示例地,如图4所示,目标应用程序41可以在修改窗口X的属性信息后,将窗口X的属性更新信息发送至窗口控制模块42;窗口控制模块42可以接收目标应用程序41发送的窗口X的属性更新信息。For example, as shown in Figure 4, the target application 41 can send the attribute update information of the window X to the window control module 42 after modifying the attribute information of the window X; the window control module 42 can receive the window sent by the target application 41. X's attribute update information.
步骤310,确定属性更新信息是否合法;若属性更新信息不合法,执行步骤311,若属性更新信息合法,执行步骤312。Step 310: Determine whether the attribute update information is legal; if the attribute update information is illegal, step 311 is executed; if the attribute update information is legal, step 312 is executed.
例如,可以通过窗口控制模块确定多个应用程序中的目标应用程序对应的窗口的修改属性是否合法。For example, the window control module can be used to determine whether the modified attributes of windows corresponding to target applications in multiple applications are legal.
步骤311,更新窗口的显示属性信息为默认属性信息。Step 311: Update the display attribute information of the window to the default attribute information.
示例地,假设应用程序A需要显示窗口X1,应用程序B需要显示窗口X2,应用程序C需要显示窗口X3,此时,应用程序A、应用程序B和应用程序C都是目标应用程序,窗口X1、窗口X2、窗口X3对应的显示优先级分别4、3、2,窗口X1、窗口X2、窗口X3的显示顺序依次是窗口X3、窗口X2、窗口X1;而在各目标应用程序发送窗口显示指令之前,目标应用程序A将窗口X1的显示优先级3修改为了1,那么窗口X1、窗口X2、窗口X3的显示顺序依次变成了窗口X1、窗口X3、窗口X2,也就是说目标应用程序A对应的窗口X1没有按照正确的显示优先级进行显示,则窗口控制模块42在接收到窗口X1的属性更新信息之后,可以通过查询窗口配置文件确定窗口X1的属性更新信息不合法,窗口控制模块42可以将窗口X1的显示属性信息更新为默认属性信息,窗口控制模块42可以将窗口X1的可见状态更新为隐藏状态。For example, suppose that application A needs to display window X1, application B needs to display window X2, and application C needs to display window X3. At this time, application A, application B, and application C are all target applications, and window X1 , the display priorities corresponding to window X2 and window X3 are 4, 3, and 2 respectively. The display order of window X1, window X2, and window X3 is window X3, window Previously, target application A changed the display priority 3 of window X1 to 1, so the display order of window X1, window X2, and window X3 became window X1, window The corresponding window X1 is not displayed according to the correct display priority. After receiving the attribute update information of window X1, the window control module 42 can determine that the attribute update information of window X1 is illegal by querying the window configuration file. The window control module 42 The display attribute information of window X1 can be updated to the default attribute information, and the window control module 42 can update the visible state of window X1 to a hidden state.
步骤312,基于属性更新信息更新窗口的显示属性信息。Step 312: Update the display attribute information of the window based on the attribute update information.
例如,若通过窗口控制模块确定属性更新信息合法,窗口控制模块可以基于属性更新信息更新窗口的显示属性信息。For example, if the window control module determines that the attribute update information is legal, the window control module can update the display attribute information of the window based on the attribute update information.
示例地,假设应用程序A需要显示窗口X1,应用程序B需要显示窗口X2,应用程序C需要显示窗口X3,此时,应用程序A、应用程序B和应用程序C都是目标应用程序,而窗口X1、窗口X2、窗口X3对应的显示优先级分别为3、2、1,并且窗口X1、窗口X2、窗口X3的显示顺序依次为窗口X3、窗口X2、窗口X1,即目标应用程序41将窗口X3的隐藏状态修改为可见状态,待窗口X3显示完成并且目标应用程序41将窗口X3的可见状态修改为隐藏状态后,目标应用程序B将窗口X2的隐藏状态修改为可见状态,待窗口X2显示完成后并且目标应用程序B将窗口X2的可见状态修改为隐藏状态后,目标应用程序A将窗口X1的隐藏状态修改为可见状态;即窗口X1、窗口X2、窗口X3的显示顺序与对应的显示优先级相匹配,窗口控制模块42可以确定窗口X1修改隐藏 状态为可见状态的操作是合法的,则窗口控制模块42可以基于属性更新信息(修改隐藏状态为可见状态)更新窗口X1的显示属性信息中的隐藏状态为可见状态。For example, suppose that application A needs to display window X1, application B needs to display window X2, and application C needs to display window X3. At this time, application A, application B, and application C are all target applications, and window The corresponding display priorities of X1, window X2, and window X3 are 3, 2, and 1 respectively, and the display order of window X1, window X2, and window X3 is window X3, window X2, and window The hidden state of X3 is changed to the visible state. After the display of window X3 is completed and the target application 41 changes the visible state of window X3 to the hidden state, the target application B changes the hidden state of window X2 to the visible state. After the window X2 is displayed, After completion and target application B changes the visible state of window X2 to a hidden state, target application A changes the hidden state of window X1 to a visible state; that is, the display order of window X1, window X2, and window X3 and the corresponding display If the priorities match, the window control module 42 can determine that window X1 is modified and hidden. If the operation of the visible state is legal, the window control module 42 can update the hidden state in the display attribute information of the window X1 to the visible state based on the attribute update information (modifying the hidden state to the visible state).
本申请实施例中,可以通过接收目标应用程序发送的窗口的属性更新信息;确定属性更新信息是否合法;在属性更新信息合法时,基于属性更新信息更新窗口的显示属性信息,避免了目标应用程序不合法的窗口的属性更新操作导致的窗口管理混乱的情况,减少了窗口显示控制所需的时间,提高了车辆的窗口显示控制的控制效率,进而可以给用户带来更好地使用体验。In the embodiment of the present application, it is possible to receive the attribute update information of the window sent by the target application; determine whether the attribute update information is legal; when the attribute update information is legal, update the display attribute information of the window based on the attribute update information, thus avoiding the need for the target application to The chaotic window management caused by illegal window attribute update operations reduces the time required for window display control, improves the control efficiency of vehicle window display control, and thus provides users with a better user experience.
在一实施例中,在基于属性更新信息更新窗口的显示属性信息之后,还可以通过窗口管理接口获取窗口内的消息事件;将消息事件反馈给目标应用程序,这样可以使得目标应用程序及时确定对应的窗口的显示属性信息是否更新成功,避免了目标应用程序再次发送属性更新信息导致的窗口控制时间成本增加的情况。In one embodiment, after updating the display attribute information of the window based on the attribute update information, the message events in the window can also be obtained through the window management interface; the message events are fed back to the target application, so that the target application can determine the corresponding timely Whether the display attribute information of the window is updated successfully, avoiding the increase in window control time cost caused by the target application sending attribute update information again.
其中,消息事件可以理解为窗口的属性信息更新成功事件。Among them, the message event can be understood as a successful update event of the window's attribute information.
例如,可以通过窗口控制模块获取窗口内的消息事件,并将消息事件通过应用接口反馈给目标应用程序。For example, the message events in the window can be obtained through the window control module, and the message events can be fed back to the target application through the application interface.
示例地,假设消息事件为窗口X1的可见状态成功更新为隐藏状态,则可以通过窗口控制模块获取窗口内的消息事件,并将消息事件通过应用接口反馈给目标应用程序A。For example, assuming that the message event is that the visible state of window X1 is successfully updated to the hidden state, the message event in the window can be obtained through the window control module, and the message event can be fed back to the target application A through the application interface.
本申请实施例中,可以通过接收目标应用程序发送的窗口添加请求,窗口添加请求中包括窗口,将窗口添加至预设窗口列表,接收多个应用程序中的目标应用程序发送的窗口显示指令,确定预设窗口列表中是否包括窗口;若预设窗口列表中不包括窗口,忽略多个应用程序中的目标应用程序发送的窗口显示指令,若预设窗口列表中包括窗口,从窗口配置文件中加载窗口的默认属性信息,得到窗口的显示属性信息,基于窗口的显示属性信息确定窗口的显示优先级;确定显示优先级是否为当前最高优先级;若显示优先级不是当前最高优先级,等待高于显示优先级的窗口显示完成,若显示优先级是当前最高优先级,调用窗口管理接口将窗口的状态设置为可见状态;接收目标应用程序发送的窗口的属性更新信息,确定属性更新信息是否合法;若属性更新信息不合法,将窗口的属性信息修改为默认属性信息,若属性更新信息合法,基于属性更新信息更新窗口的显示属性信息。即本申请实施例可以根据接收到的目标应用程序的窗口显示指令确定对应窗口的显示优先级,进而调用窗口管理接口基于显示 优先级显示窗口,相当于增加了窗口控制模块集中管理多个应用程序的目标应用程序的窗口,避免了多个应用程序调用操作系统的窗口管理接口进行窗口显示导致的窗口管理系统的管理混乱的情况,实现集中管理多个应用程序的目标应用程序的窗口,提高车辆的窗口显示控制的效率,进而可以给用户带来更好地使用体验。In the embodiment of the present application, the window can be added to the preset window list by receiving a window addition request sent by the target application. The window addition request includes a window, and the window display instructions sent by the target application in multiple applications can be received. Determine whether the window is included in the preset window list; if the window is not included in the preset window list, ignore the window display instructions sent by the target application in multiple applications; if the window is included in the preset window list, retrieve the window from the window configuration file Load the default attribute information of the window, obtain the display attribute information of the window, and determine the display priority of the window based on the display attribute information of the window; determine whether the display priority is the current highest priority; if the display priority is not the current highest priority, wait for high After the display of the window with display priority is completed, if the display priority is the current highest priority, call the window management interface to set the status of the window to the visible state; receive the attribute update information of the window sent by the target application, and determine whether the attribute update information is legal. ; If the attribute update information is illegal, modify the window's attribute information to the default attribute information. If the attribute update information is legal, update the window's display attribute information based on the attribute update information. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface based on the display The priority display window is equivalent to adding a window control module to centrally manage the windows of target applications of multiple applications, avoiding the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display. situation, realize centralized management of target application windows of multiple applications, improve the efficiency of vehicle window display control, and thus provide users with a better user experience.
图5是本申请实施例提供的车辆的窗口显示控制装置的一个结构示意图,该装置适用于执行本申请实施例提供的车辆的窗口显示控制方法。如图5所示,该装置包括:FIG. 5 is a schematic structural diagram of a vehicle window display control device provided by an embodiment of the present application. The device is suitable for executing the vehicle window display control method provided by an embodiment of the present application. As shown in Figure 5, the device includes:
窗口显示指令接收模块501,设置为接收所述多个应用程序中的目标应用程序发送的窗口显示指令;The window display instruction receiving module 501 is configured to receive the window display instruction sent by the target application program among the plurality of application programs;
显示属性信息获取模块502,设置为获取所述目标应用程序对应的窗口的显示属性信息;The display attribute information obtaining module 502 is configured to obtain the display attribute information of the window corresponding to the target application program;
显示优先级确定模块503,设置为基于所述窗口的显示属性信息确定所述窗口的显示优先级;The display priority determination module 503 is configured to determine the display priority of the window based on the display attribute information of the window;
窗口显示模块504,设置为调用窗口管理接口基于所述显示优先级显示所述窗口。The window display module 504 is configured to call a window management interface to display the window based on the display priority.
在一实施例中,窗口显示模块504,设置为:In one embodiment, the window display module 504 is configured as:
确定所述显示优先级是否为当前最高优先级;Determine whether the display priority is the current highest priority;
响应于所述显示优先级为当前最高优先级,调用所述窗口管理接口将所述窗口的状态设置为可见状态。In response to the display priority being the current highest priority, the window management interface is called to set the status of the window to a visible state.
在一实施例中,该装置还包括,消息事件反馈模块,设置为:In one embodiment, the device further includes a message event feedback module configured to:
通过所述窗口管理接口获取所述窗口内的消息事件;Obtain message events in the window through the window management interface;
将所述消息事件反馈给所述目标应用程序。Feed back the message event to the target application.
在一实施例中,该装置还包括,窗口隐藏指令接收模块,设置为:In one embodiment, the device further includes a window hiding instruction receiving module configured to:
接收所述目标应用程序发送的窗口隐藏指令;Receive the window hiding instruction sent by the target application;
调用所述窗口管理接口将所述窗口的状态设置为隐藏状态。The window management interface is called to set the status of the window to a hidden state.
在一实施例中,该装置还包括,窗口添加模块,设置为:In one embodiment, the device further includes a window adding module configured to:
接收所述目标应用程序发送的窗口添加请求,所述窗口添加请求中包括所述窗口;Receive a window addition request sent by the target application, where the window addition request includes the window;
将所述窗口添加至预设窗口列表。Adds said window to the default window list.
在一实施例中,显示属性信息获取模块502,设置为:In one embodiment, the display attribute information acquisition module 502 is set to:
确定所述预设窗口列表中是否包括所述窗口; Determine whether the window is included in the preset window list;
响应于所述预设窗口列表中包括所述窗口,从窗口配置文件中加载所述窗口的默认属性信息,得到所述窗口的显示属性信息。In response to the window being included in the preset window list, the default attribute information of the window is loaded from the window configuration file to obtain the display attribute information of the window.
在一实施例中,该装置还包括,显示属性信息更新模块,设置为:In one embodiment, the device further includes a display attribute information update module configured to:
接收所述目标应用程序发送的所述窗口的属性更新信息;Receive attribute update information of the window sent by the target application;
确定所述属性更新信息是否合法;Determine whether the attribute update information is legal;
响应于所述属性更新信息合法,基于所述属性更新信息更新所述窗口的显示属性信息。In response to the attribute update information being legal, the display attribute information of the window is updated based on the attribute update information.
本领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述功能模块的工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In practical applications, the above function allocation can be completed by different functional modules according to needs, that is, The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the working process of the functional module described above, reference may be made to the corresponding process in the foregoing method embodiment, which will not be described again here.
本申请实施例的装置,通过接收多个应用程序中的目标应用程序发送的窗口显示指令;获取目标应用程序对应的窗口的显示属性信息;基于窗口的显示属性信息确定窗口的显示优先级;调用窗口管理接口基于显示优先级显示窗口。即本申请实施例可以根据接收到的目标应用程序的窗口显示指令确定对应窗口的显示优先级,进而调用窗口管理接口基于显示优先级显示窗口,相当于增加了窗口控制模块集中管理多个应用程序的目标应用程序的窗口,避免了多个应用程序调用操作系统的窗口管理接口进行窗口显示导致的窗口管理系统的管理混乱的情况,实现集中管理多个应用程序的目标应用程序的窗口,提高车辆的窗口显示控制的效率,进而可以给用户带来更好地使用体验。The device of the embodiment of the present application receives a window display instruction sent by a target application in multiple applications; obtains the display attribute information of the window corresponding to the target application; determines the display priority of the window based on the display attribute information of the window; calls The window management interface displays windows based on display priority. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface to display the window based on the display priority, which is equivalent to adding a window control module to centrally manage multiple applications. The window of the target application program avoids the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display, realizes centralized management of the windows of the target application program of multiple applications, and improves the vehicle The efficiency of the window display control can bring a better user experience to the user.
本申请实施例还提供了一种车辆,包括至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够实现上述任一实施例提供的车辆的窗口显示控制方法。An embodiment of the present application also provides a vehicle, including at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program that can be executed by the at least one processor, The computer program is executed by the at least one processor, so that the at least one processor can implement the vehicle window display control method provided in any of the above embodiments.
本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时实现上述任一实施例提供的车辆的窗口显示控制方法。Embodiments of the present application also provide a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the vehicle window display control method provided by any of the above embodiments is implemented.
存储介质可以是非暂态(non-transitory)存储介质。The storage medium may be a non-transitory storage medium.
下面参考图6,其示出了适于用来实现本申请实施例的车辆600的结构示意图。本申请实施例中的车辆可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(PAD)、 便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端。图6示出的车辆仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to FIG. 6 , a schematic structural diagram of a vehicle 600 suitable for implementing embodiments of the present application is shown. Vehicles in embodiments of the present application may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (PAD), Mobile terminals such as portable multimedia players (PMP), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (TV), desktop computers, and the like. The vehicle shown in FIG. 6 is only an example and should not impose any restrictions on the functions and scope of use of the embodiments of the present application.
如图6所示,车辆600可以包括处理装置(例如中央处理器、图形处理器等)601,其可以根据存储在只读存储器(Read-Only Memory,ROM)602中的程序或者从存储装置608加载到随机访问存储器(Random Access Memory,RAM)603中的程序而执行各种适当的动作和处理。在RAM 603中,还存储有车辆600操作所需的各种程序和数据。处理装置601、ROM 602以及RAM 603通过总线604彼此相连。输入/输出(Input/Output,I/O)接口605也连接至总线604。As shown in FIG. 6 , the vehicle 600 may include a processing device (such as a central processing unit, a graphics processor, etc.) 601 , which may process data according to a program stored in a read-only memory (Read-Only Memory, ROM) 602 or from a storage device 608 The program loaded into the random access memory (Random Access Memory, RAM) 603 performs various appropriate actions and processes. In the RAM 603, various programs and data required for the operation of the vehicle 600 are also stored. The processing device 601, ROM 602 and RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
通常,以下装置可以连接至I/O接口605:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置606;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置607;包括例如磁带、硬盘等的存储装置608;以及通信装置609。通信装置609可以允许车辆600与其他设备进行无线或有线通信以交换数据。虽然图6示出了具有各种装置的车辆600,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices can be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD) , an output device 607 such as a speaker, a vibrator, etc.; a storage device 608 including a magnetic tape, a hard disk, etc.; and a communication device 609. Communication device 609 may allow vehicle 600 to communicate wirelessly or wiredly with other devices to exchange data. Although FIG. 6 illustrates vehicle 600 with various devices, it should be understood that implementation or availability of all illustrated devices is not required. More or fewer means may alternatively be implemented or provided.
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在非暂态计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置609从网络上被下载和安装,或者从存储装置608被安装,或者从ROM 602被安装。在该计算机程序被处理装置601执行时,执行本申请实施例的方法中限定的上述功能。需要说明的是,本申请所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器 件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。In particular, according to embodiments of the present application, the process described above with reference to the flowchart may be implemented as a computer software program. For example, embodiments of the present application include a computer program product including a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart. In such embodiments, the computer program may be downloaded and installed from the network via communication device 609, or from storage device 608, or from ROM 602. When the computer program is executed by the processing device 601, the above functions defined in the method of the embodiment of the present application are performed. It should be noted that the computer-readable medium shown in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof. Examples of computer readable storage media may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), erasable programmable read only memory Memory (Erasable Programmable Read-Only Memory, EPROM) or flash memory, optical fiber, portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage device, magnetic memory parts, or any suitable combination of the above. As used herein, a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, in which computer-readable program code is carried. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device . Program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operations of possible implementations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved. It will also be noted that each block in the block diagram or flowchart illustration, and combinations of blocks in the block diagram or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or may be implemented by special purpose hardware-based systems that perform the specified functions or operations. Achieved by a combination of specialized hardware and computer instructions.
描述于本申请实施例中所涉及到的模块和/或单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的模块和/或单元也可以设置在处理器中,例如,可以描述为:一种处理器包括窗口显示指令接收模块、显示属性信息获取模块、显示优先级确定模块和窗口显示模块。其中,这些模块的名称在某种情况下并不构成对该模块本身的限定。The modules and/or units involved in the embodiments of this application can be implemented in software or hardware. The described modules and/or units can also be provided in a processor. For example, it can be described as follows: a processor includes a window display instruction receiving module, a display attribute information obtaining module, a display priority determining module and a window display module. Among them, the names of these modules do not constitute a limitation on the module itself under certain circumstances.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的设备中所包含的;也可以是单独存在,而未装配入该设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该设备执行时,使得该设备包括:接收多个应用程序中的目标应用程序发送的窗口显示指令;获取目标应用程序对应的窗口的显示属性信息;基于窗口的显示属性信息确定窗口的显示优先级;调用窗口管理接口基于显示优先级显示窗口。 As another aspect, this application also provides a computer-readable medium. The computer-readable medium may be included in the device described in the above embodiments; it may also exist separately without being assembled into the device. The above computer-readable medium carries one or more programs. When the above one or more programs are executed by a device, the device includes: receiving a window display instruction sent by a target application program among multiple application programs; obtaining the target Display attribute information of the window corresponding to the application program; determine the display priority of the window based on the display attribute information of the window; call the window management interface to display the window based on the display priority.
根据本申请实施例,通过接收多个应用程序中的目标应用程序发送的窗口显示指令;获取目标应用程序对应的窗口的显示属性信息;基于窗口的显示属性信息确定窗口的显示优先级;调用窗口管理接口基于显示优先级显示窗口。即本申请实施例可以根据接收到的目标应用程序的窗口显示指令确定对应窗口的显示优先级,进而调用窗口管理接口基于显示优先级显示窗口,相当于增加了窗口控制模块集中管理多个应用程序的目标应用程序的窗口,避免了多个应用程序调用操作系统的窗口管理接口进行窗口显示导致的窗口管理系统的管理混乱的情况,实现集中管理多个应用程序的目标应用程序的窗口,提高车辆的窗口显示控制的效率,进而可以给用户带来更好地使用体验。According to the embodiment of the present application, by receiving window display instructions sent by the target application in multiple applications; obtaining the display attribute information of the window corresponding to the target application; determining the display priority of the window based on the display attribute information of the window; calling the window The management interface displays windows based on display priority. That is, the embodiment of the present application can determine the display priority of the corresponding window according to the received window display instruction of the target application, and then call the window management interface to display the window based on the display priority, which is equivalent to adding a window control module to centrally manage multiple applications. The window of the target application program avoids the confusion in the management of the window management system caused by multiple applications calling the window management interface of the operating system for window display, realizes centralized management of the windows of the target application program of multiple applications, and improves the vehicle The efficiency of the window display control can then bring a better user experience.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本申请中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,本文在此不进行限制。It should be understood that various forms of the process shown above may be used, with steps reordered, added or deleted. For example, each step described in this application can be executed in parallel, sequentially, or in a different order, which is not limited herein.
上述具体实施方式,并不构成对本申请保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本申请的精神和原则之内所作的修改、等同替换和改进等,均应包含在本申请保护范围之内。 The above-mentioned specific embodiments do not constitute a limitation on the scope of protection of the present application. It will be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions are possible depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application shall be included in the protection scope of this application.
Claims (10)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210624380.0 | 2022-06-02 | ||
| CN202210624380.0A CN115033134A (en) | 2022-06-02 | 2022-06-02 | Window display control method and device for vehicle, vehicle and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023231750A1 true WO2023231750A1 (en) | 2023-12-07 |
Family
ID=83123458
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2023/094103 Ceased WO2023231750A1 (en) | 2022-06-02 | 2023-05-15 | Vehicle window display control method and apparatus, vehicle, and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN115033134A (en) |
| WO (1) | WO2023231750A1 (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115033134A (en) * | 2022-06-02 | 2022-09-09 | 中国第一汽车股份有限公司 | Window display control method and device for vehicle, vehicle and storage medium |
| CN116204093B (en) * | 2023-04-28 | 2023-10-20 | 荣耀终端有限公司 | A page display method and electronic device |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3163425A1 (en) * | 2015-11-02 | 2017-05-03 | Volkswagen Aktiengesellschaft | Method for operating a computer system |
| CN108021420A (en) * | 2016-12-23 | 2018-05-11 | 北京车和家信息技术有限责任公司 | The method, apparatus of message display, middle control display system and vehicle |
| CN110275748A (en) * | 2019-06-18 | 2019-09-24 | 广州小鹏汽车科技有限公司 | Pop-up display methods, device and the intelligent automobile of vehicular applications |
| CN113821142A (en) * | 2021-11-24 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Interface window management method and related device |
| CN115033134A (en) * | 2022-06-02 | 2022-09-09 | 中国第一汽车股份有限公司 | Window display control method and device for vehicle, vehicle and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104077016B (en) * | 2013-03-29 | 2018-07-24 | 中兴通讯股份有限公司 | A kind of windows display and switching method and device |
| US10264055B2 (en) * | 2013-12-24 | 2019-04-16 | International Business Machines Corporation | Displaying an application in a window in a graphical user interface environment on a computer system |
| CN112947830A (en) * | 2021-03-11 | 2021-06-11 | 北京高途云集教育科技有限公司 | Popup window display method and device, computer equipment and storage medium |
-
2022
- 2022-06-02 CN CN202210624380.0A patent/CN115033134A/en active Pending
-
2023
- 2023-05-15 WO PCT/CN2023/094103 patent/WO2023231750A1/en not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3163425A1 (en) * | 2015-11-02 | 2017-05-03 | Volkswagen Aktiengesellschaft | Method for operating a computer system |
| CN108021420A (en) * | 2016-12-23 | 2018-05-11 | 北京车和家信息技术有限责任公司 | The method, apparatus of message display, middle control display system and vehicle |
| CN110275748A (en) * | 2019-06-18 | 2019-09-24 | 广州小鹏汽车科技有限公司 | Pop-up display methods, device and the intelligent automobile of vehicular applications |
| CN113821142A (en) * | 2021-11-24 | 2021-12-21 | 腾讯科技(深圳)有限公司 | Interface window management method and related device |
| CN115033134A (en) * | 2022-06-02 | 2022-09-09 | 中国第一汽车股份有限公司 | Window display control method and device for vehicle, vehicle and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115033134A (en) | 2022-09-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9154218B2 (en) | Method and apparatus for BLUETOOTH connection in mobile terminal and computer-readable medium thereof | |
| JP2022505374A (en) | Online document sharing methods, devices, electronic devices and storage media | |
| WO2023231750A1 (en) | Vehicle window display control method and apparatus, vehicle, and storage medium | |
| US20090307679A1 (en) | Communication device and a host device, a method of processing signal in the communication device and the host device, and a system having the communication device and the host device | |
| CN110851863B (en) | Application program authority control method and device and electronic equipment | |
| WO2020135432A1 (en) | Session message sticking method and device | |
| WO2020135185A1 (en) | Method and device for notifying read receipt status of message, and electronic device | |
| US9875109B2 (en) | Method and apparatus for generating user adaptive application in mobile terminal | |
| WO2020248745A1 (en) | Method and device for displaying characters in user interface, electronic device, and storage medium | |
| JP7609357B2 (en) | Document creation method, apparatus, device and storage medium | |
| CN110139118A (en) | Application program function operating method, device, electronic device, and storage medium | |
| WO2021013242A1 (en) | Method for starting mini program, device and computer storage medium | |
| US20230385080A1 (en) | Method and apparatus for presenting information on lock screen interface, terminal, and storage medium | |
| AU2022203591B2 (en) | Method and apparatus for switching display interface, and electronic device | |
| WO2015176352A1 (en) | Android system-based method and device for information exchange between applications | |
| CN114338576A (en) | Method, device, electronic device and storage medium for adding task participants | |
| WO2024109786A1 (en) | Instant messaging session information processing method and apparatus, and electronic device | |
| CN112256172B (en) | Application display method, device, terminal and storage medium | |
| WO2023001281A1 (en) | Table data processing method and apparatus, terminal, and storage medium | |
| US9542912B2 (en) | Information processing device and program | |
| US20240244015A1 (en) | Method, apparatus and electronic device for information processing | |
| WO2025087210A1 (en) | Inter-process communication method, system and apparatus, electronic device, and medium | |
| WO2025044758A1 (en) | Information processing method and apparatus, and electronic device and storage medium | |
| CN109614089B (en) | Automatic generation method, device, equipment and storage medium of data access code | |
| US12417064B2 (en) | Method, apparatus, and electronic device for controlling display |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23814935 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 23814935 Country of ref document: EP Kind code of ref document: A1 |