Focus control method and device, in-vehicle infotainment system, medium, product and vehicle
By monitoring and controlling the focus switching of the virtual screen, the focus state of the vehicle system is switched synchronously, which solves the problem of the launcher and the virtual screen focus state being out of sync and improves the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-03
- Publication Date
- 2026-03-13
AI Technical Summary
In the vehicle's infotainment system, the Launcher's main screen and the embedded virtual screen each maintain their own focus state, resulting in asynchronous focus states, affecting operational consistency and coordination, and reducing user experience.
By monitoring the focus switching events of the desktop launcher, the target application in the active virtual screen can be controlled to synchronously lose focus, thereby achieving synchronous switching of the focus state of the target application in the virtual screen and the focus state of the desktop launcher, including adjusting the input receiving attributes and refreshing the focus state.
This reduces the probability of inconsistencies in the operation of the vehicle's infotainment system, improves the user experience, and avoids problems with input methods and audio/video input.
Smart Images

Figure CN121658129A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of vehicle control technology, and in particular relates to a focus control method, device, vehicle system, medium, product and vehicle. Background Technology
[0002] With the rapid development of smart cockpit technology, the functionality of cockpit desktop displays is becoming increasingly diverse. The launcher interface of the vehicle's infotainment system consists of numerous small functional widgets, some of which require independent operation interfaces (such as input and switching). Virtual screens (such as surface views, task views, and activity views) are embedded in the launcher as widgets, giving them more ways to operate, rather than just simple click-related logic.
[0003] In related technologies, the Launcher's main screen and the embedded virtual screen each maintain their own focus state, resulting in a lack of synchronization between the focus states of the main screen and the virtual screen. This affects the consistency and coordination of the vehicle's infotainment system operation, thereby reducing the user experience. Summary of the Invention
[0004] This application provides a focus control method, device, vehicle system, medium, product, and vehicle, which can realize the synchronous switching of the focus state of the target application in the virtual screen and the focus state of the desktop launcher, reducing the probability of inconsistency in the operation of the vehicle system and improving the user experience.
[0005] In a first aspect, embodiments of this application provide a focus control method for a vehicle infotainment system, the vehicle infotainment system including a desktop launcher and at least one virtual screen embedded in the desktop launcher, the method comprising: Monitor focus switching events on the desktop launcher's display interface; If a focus switching event is detected as the display interface changing from having focus to losing focus, and the desktop launcher is still active, the target application in the active virtual screen is controlled to lose focus synchronously; the target application includes the application that has focus in the active virtual screen.
[0006] According to any of the foregoing embodiments of the first aspect of this application, controlling a target application in an active virtual screen to synchronously lose focus includes: Adjust the target application's input receiving attributes to the first preset value; Refresh the focus state of the target application, remove the focus of the target application, and cause the target application to lose focus.
[0007] According to any of the foregoing embodiments of the first aspect of this application, adjusting the received input attribute of the target application to a first preset value includes: By using the root window container's update-focus-locking method on the framework server, the focus state of the application in the active virtual screen is refreshed, and the application holding focus is identified as the target application. The identification information of the active virtual screen and the name of the target application are verified, and if the verification passes, the input attribute of the target application is adjusted to the first preset value. Refresh the focus state of the target application, and remove the focus of the target application, including: By updating the focused window and locking it through the display content update method on the framework server, the focus state of the target application is refreshed and the focus of the target application is cleared.
[0008] According to any of the foregoing embodiments of the first aspect of this application, after controlling the target application in the active virtual screen to synchronously lose focus, the method further includes at least one of the following: Hide the input method keyboard associated with the target application; When the target application is playing a multimedia file, control the target application to stop playing the multimedia file.
[0009] According to any of the foregoing embodiments of the first aspect of this application, before hiding the input method keyboard associated with the target application, the method further includes: Get the focus property of the target application; If the focus attribute is set to the second preset value, determine if the target application has lost focus.
[0010] According to any of the foregoing embodiments of the first aspect of this application, the event of the display interface changing from having focus to losing focus includes: The target window will pop up on the desktop launcher's display interface.
[0011] According to any of the foregoing embodiments of the first aspect of this application, after controlling the target application in the active virtual screen to synchronously lose focus, the method further includes: Continuously monitor focus switching events on the desktop launcher's display interface; When a focus switching event is detected, in which the display interface changes from losing focus to having focus, the target application is controlled to simultaneously gain focus.
[0012] According to any of the foregoing embodiments of the first aspect of this application, controlling the target application to simultaneously hold focus includes: Adjust the target application's input receiving attributes to the third preset value; Refresh the focus state of the target application, so that the target application retains focus.
[0013] Secondly, embodiments of this application also provide a focus control device for a vehicle infotainment system. The vehicle infotainment system includes a desktop launcher and at least one virtual screen embedded in the desktop launcher. The device includes: The monitoring module is used to monitor focus switching events on the desktop launcher's display interface; The control module is used to control the target application in the active virtual screen to synchronously lose focus when the focus switching event is detected as the display interface changing from holding focus to losing focus, and the lifecycle of the desktop launcher is still active. The target application includes the application holding focus in the active virtual screen.
[0014] Thirdly, embodiments of this application also provide a vehicle infotainment system, including: a processor and a memory storing computer program instructions; When the processor executes computer program instructions, it implements any of the above-mentioned focus control methods for the vehicle infotainment system.
[0015] Fourthly, embodiments of this application also provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement any of the above-described vehicle infotainment system focus control methods.
[0016] Fifthly, embodiments of this application also provide a computer program product, wherein when the instructions in the computer program product are executed by the processor of the vehicle system, the vehicle system executes any of the above-described vehicle system focus control methods.
[0017] Sixthly, embodiments of this application also provide a vehicle, which includes the aforementioned vehicle infotainment system.
[0018] The focus control method, device, vehicle system, medium, product, and vehicle provided in this application embodiment, when detecting that the display interface of the desktop launcher changes from having focus to losing focus, and the life cycle of the desktop launcher is still in an active state, the display interface of the desktop launcher loses the permission to receive user operations. By controlling the target application in the active virtual screen to simultaneously lose focus, the focus state of the target application in the virtual screen and the focus state of the desktop launcher are switched synchronously, reducing the probability of inconsistency in the operation of the vehicle system and improving the user experience. Attached Figure Description
[0019] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1This is a flowchart illustrating a focus control method for a vehicle infotainment system provided in an embodiment of this application. Figure 2 yes Figure 1 The following is a detailed flowchart of the focus control method of the vehicle system shown, which involves "synchronously losing focus on the target application in the active virtual screen"; Figure 3 yes Figure 1 The following is a detailed flowchart of the focus control method of the vehicle system shown, which states that "the target application in the active virtual screen will synchronously lose focus". Figure 4 This is a flowchart illustrating another focus control method for a vehicle infotainment system provided in an embodiment of this application. Figure 5 This is a flowchart illustrating another focus control method for a vehicle infotainment system provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a focus control device for a vehicle infotainment system provided in an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a vehicle infotainment system provided in an embodiment of this application. Detailed Implementation
[0021] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.
[0022] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0023] The launcher is the core entry point for user interaction with the vehicle, undertaking multiple responsibilities including application management, scenario matching, and safe driving. It is not only a collection of functions but also the first interface for the smart cockpit experience, and its design and implementation must be deeply adapted to the specific characteristics of the in-vehicle environment. The launcher's display interface is the first screen the user sees after starting the vehicle's infotainment system. This interface centrally displays and manages all installed applications (such as navigation, music, settings, or video applications), which users launch by clicking their icons.
[0024] Focus: This refers to the currently movable and interactive element on the interface. It is the core interaction mechanism when users operate the vehicle's infotainment system using contactless methods such as physical buttons, knobs, and voice commands. At any given time, only one element on the vehicle's interface is in focus, and user actions only affect that element.
[0025] In related technologies, the Launcher's main screen and the embedded virtual screen each maintain their own focus state, which are independent and isolated from each other. In some scenarios, the focus states of the main screen and the virtual screen may be inconsistent, which does not meet the "unique focus" management mechanism of the vehicle's infotainment system, disrupts the consistency and coordination of the system's operation, and reduces user satisfaction.
[0026] For example, in scenarios using a virtual screen with an embedded launcher, when an input box within the virtual screen gains focus, it requests to activate the input method. Simultaneously, the main screen might mistakenly believe that one of its elements requires input and also respond. Without an arbitrator, the system cannot determine which window the input method should exclusively serve, resulting in both windows connecting to the input method service and overlapping interfaces. Furthermore, in scenarios where a virtual screen is used to play video, if a newly popped-up window also plays audio and video, and the virtual screen's focus does not change in time, it will continue playing audio and video, causing two different sounds to appear simultaneously, resulting in chaotic and noisy audio that prevents the user from clearly obtaining useful audio information.
[0027] To address the aforementioned technical issues, this application provides a focus control method, device, vehicle infotainment system, medium, product, and vehicle. When the display interface of the desktop launcher changes from having focus to losing focus, and the desktop launcher's lifecycle remains active, the desktop launcher's display interface loses its permission to receive user operations. By controlling the target application in the active virtual screen to simultaneously lose focus, the focus state of the target application in the virtual screen and the focus state of the desktop launcher are switched synchronously, reducing the probability of inconsistencies in vehicle infotainment system operations and improving user experience.
[0028] The focus control method of the vehicle system provided in the embodiments of this application will be introduced first.
[0029] Figure 1 This is a flowchart illustrating a focus control method for a vehicle infotainment system provided in an embodiment of this application. The vehicle infotainment system includes a desktop launcher and at least one virtual screen embedded in the desktop launcher.
[0030] Reference Figure 1 The focus control method of the vehicle infotainment system may include the following steps: S110~S120.
[0031] S110, Monitor the focus switching events of the desktop launcher's display interface.
[0032] Among them, the focus switching events of the display interface include the event of the display interface changing from having focus to losing focus, and the event of the display interface changing from losing focus to having focus.
[0033] In one embodiment, an event in which the display interface changes from having focus to losing focus includes: popping up the target window interface on the desktop launcher's display interface.
[0034] The target window interface includes a focusable interface that covers at least the display interface of the desktop monitor. The target window interface may include window interfaces known to those skilled in the art, such as camping mode interfaces, pet mode interfaces, screen cleaning mode interfaces, alarm interfaces, WiFi interfaces, Bluetooth interfaces, or account switching interfaces, and is not limited thereto.
[0035] The target window can be either transparent or opaque. When the target window is opaque, it overlays the launcher's display, making the launcher invisible. When the target window is transparent, it also overlays the launcher's display, but the application icons on the launcher are still visible. For example, if the camping mode interface is a transparent window, when it pops up on the launcher, the application icons on the launcher are still visible.
[0036] In this embodiment, when the target window interface pops up on the desktop launcher's display interface, according to the focus management mechanism preset in the vehicle system, the desktop launcher's display interface loses focus, and the newly popped-up target window interface gains focus and can receive user operations.
[0037] As an example, when it is detected that the desktop launcher's display interface is covered by the target window interface, the focus state of all screens (including physical and virtual screens) in the vehicle system is refreshed through the update focus window locking method of the root window container on the framework server, thus confirming that the desktop launcher's display interface has switched. Through the update focus window locking method of the screen content container, the focus of all windows on the screen where the desktop launcher is located (e.g., the central control screen, display 0) is refreshed, the input receiving attribute of the window state corresponding to the desktop launcher is set to false, and the focus is forcibly set to null. Through the on-demand focus window search method, all interfaces of the current screen are obtained and the focus is refreshed. The newly popped-up target window interface is given focus and becomes the focus window interface, while the desktop launcher's display interface loses focus.
[0038] S120. If the focus switching event is detected as the display interface changing from having focus to losing focus, and the lifecycle of the desktop launcher is still active, control the target application in the active virtual screen to simultaneously lose focus.
[0039] The lifecycle of a desktop launcher can include creation, startup, pause, resumption, and destruction phases. During the creation, startup, pause, and resumption phases, the desktop launcher is active and its lifecycle has not yet ended. During the destruction phase, the desktop launcher is inactive and its lifecycle has ended.
[0040] An active virtual screen refers to a virtual screen that can receive user input; hereinafter referred to as an "active virtual screen." The target application in an active virtual screen holds focus, can receive user input, and interact with the user.
[0041] The target application includes the application that holds focus in the active virtual screen. The focus of a virtual screen is essentially the application the user is currently interacting with. When an application gains focus, it can receive and process user input events (such as key presses, clicks, etc.). In a virtual screen scenario, focus transfer is closely related to virtual screen switching: when the user switches to a virtual screen, the system automatically assigns focus to the application currently displayed in that virtual screen.
[0042] In this step, when the desktop launcher's display interface changes from having focus to losing focus, the desktop launcher's display interface loses the permission to receive user operations. However, the desktop launcher's lifecycle remains active, meaning its lifecycle has not ended. The target application embedded in the active virtual screen of the desktop launcher still has focus. At this time, the focus state of the desktop launcher and the focus state of the virtual screen are inconsistent, which can lead to the technical problems involved in related technologies. This application embodiment controls the target application in the active virtual screen to synchronously lose focus, making the focus state of the target application in the virtual screen consistent with the focus state of the desktop launcher, thus achieving synchronous switching of the focus state of the target application in the virtual screen and the focus state of the desktop launcher.
[0043] It should be noted that the lifecycle of the desktop launcher affects the focus state of the target application in the virtual screen. When the desktop launcher enters the destruction phase, that is, its lifecycle ends, the focus state of all virtual screens embedded in the desktop launcher is cleared, and the memory resources occupied by the focus chain are released.
[0044] The focus control method for the vehicle system provided in this application, when it detects that the display interface of the desktop launcher changes from having focus to losing focus, and the life cycle of the desktop launcher is still in an active state, the display interface of the desktop launcher loses the permission to receive user operations. By controlling the target application in the active virtual screen to lose focus synchronously, the focus state of the target application in the virtual screen and the focus state of the desktop launcher are switched synchronously, which reduces the probability of inconsistency in the operation of the vehicle system and helps to improve the user experience.
[0045] In one embodiment, such as Figure 2 As shown, the "controlling the target application in the active virtual screen to synchronously lose focus" in S120 may include the following steps: S121~S122.
[0046] S121. Adjust the target application's input receiving attributes to the first preset value.
[0047] The "Receive Input Attribute" refers to the attribute indicating whether the target application can receive user actions. The assignment of the Receive Input Attribute includes a first preset value and a third preset value. When the Receive Input Attribute is set to the first preset value (e.g., false), the target application cannot receive user actions; when the Receive Input Attribute is set to the third preset value (e.g., true), the target application can receive user actions.
[0048] S122. Refresh the focus state of the target application, clear the focus of the target application, and make the target application lose focus.
[0049] In this step, after adjusting the input receiving attributes, the focus state of the application in the virtual screen is refreshed. During the refresh process, the focus of the target application is set to null, causing the target application to lose focus. This achieves synchronous switching between the focus state of the target application in the virtual screen and the focus state of the desktop launcher, reducing the probability of inconsistencies in the operation of the vehicle system and improving the user experience.
[0050] In one embodiment, such as Figure 3 As shown, "adjusting the received input attribute of the target application to the first preset value" (S121) may include the following steps: S1211~S1212.
[0051] S1211. By using the update focus window locking method of the root window container of the framework server, refresh the focus state of the application in the active virtual screen and identify the application holding the focus as the target application.
[0052] In this step, after determining that the desktop launcher's display interface has lost focus, the focus of the specified active virtual screen is refreshed by actively using the root window container's update focus window locking method, and the application held in the active virtual screen is identified as the target application.
[0053] S1212. Verify the identification information of the active virtual screen and the name of the target application, and if the verification is successful, adjust the input attribute of the target application to the first preset value.
[0054] In the vehicle infotainment system, each screen (including physical and virtual screens) is assigned a unique identifier, represented by a display ID. For example, the system includes a main control screen, a passenger-side screen, and a rear entertainment screen. The main control screen embeds a virtual screen. The main control screen (the display interface of the desktop launcher) is identified by display 0, the passenger-side screen by display 1, the rear entertainment screen by display 2, and the virtual screen by display 3. When multiple active virtual screens exist, their identifiers are stored as a set.
[0055] In this step, the identification information of the active virtual screen and the name of the target application are verified against the corresponding content in the virtual screen object. If the verification results are consistent (i.e., the verification passes), the input receiving attribute of the Window state corresponding to the target application in the virtual screen interface is adjusted to false.
[0056] "Refresh the focus state of the target application and set the focus of the target application to empty", that is, S122 may include the following steps: S1221.
[0057] S1221. By updating the focus window locking method of the display content on the framework server, refresh the focus state of the target application and set the focus of the target application to empty.
[0058] In this step, the focus of the virtual screen interface (i.e., the target application currently displayed on the virtual screen) is refreshed by using the screen content container's update focus window locking method. During the refresh process, the focus of the target application is set to null, causing the target application to also lose focus. The focus state of the target application is consistent with the focus state of the desktop launcher.
[0059] In one embodiment, after controlling the target application in the active virtual screen to synchronously lose focus, the method may further include the following steps: When the target application is playing a multimedia file, control the target application to stop playing the multimedia file.
[0060] The target application is an audio / video player, and the multimedia files can include audio files and video files.
[0061] In this embodiment, after determining that the target application has synchronously lost focus, controlling the target application to stop playing multimedia files can avoid mixing with the audio played in the newly popped-up target window interface, or avoid abnormal playback after the content is covered, which is beneficial to improving the user experience.
[0062] In one embodiment, after controlling the target application in the active virtual screen to synchronously lose focus, the method may further include the following steps: Hide the input method keyboard associated with the target application.
[0063] In this embodiment, when the target application has an associated input method keyboard, the input method keyboard associated with the target application is hidden after the target application loses focus, thus avoiding the appearance of multiple input method keyboards and providing the user with a better visual experience.
[0064] In one embodiment, the method may further include the following steps before hiding the input method keyboard associated with the target application: Get the focus property of the target application; If the focus attribute is set to the second preset value, determine if the target application has lost focus.
[0065] The focus attribute indicates whether the current window interface has focus, and its values include a second preset value and a fourth preset value. When the target application's focus attribute is the second preset value, it means that the target application has lost focus. When the target application's focus attribute is the fourth preset value, it means that the target application has focus.
[0066] In this embodiment, before hiding the input method keyboard associated with the target application, the focus state of the target application is checked to confirm that the target application has lost focus.
[0067] As an example, by using the view root's window focus change handling method, the focus property of the target application is obtained. When the focus property is false, it indicates that the target application has lost focus. Then, the method to hide the soft keyboard from the window is called to hide the input method keyboard associated with the target application.
[0068] In one embodiment, such as Figure 4 As shown, after “controlling the target application in the active virtual screen to synchronously lose focus”, the method may further include the following steps: S130~S140.
[0069] S130: Continuously monitors focus switching events of the desktop launcher's display interface.
[0070] In this step, after switching the focus state of the target application to lose focus, the focus switching events of the launcher's display interface continue to be monitored.
[0071] In one embodiment, the event in which the display interface changes from losing focus to having focus includes: closing the target window interface.
[0072] In this embodiment, after the target window interface is closed, the desktop launcher's display interface regains focus, and the focus state changes from losing focus to having focus.
[0073] As an example, after detecting that the target window interface covering the desktop launcher has exited the display, the focus state of all screens is refreshed through the update focus window lock method of the root window container on the framework server, confirming that the display interface of the desktop launcher has changed; the focus of all window interfaces on the screen where the desktop launcher is located is refreshed through the update focus window lock method of the screen content container, and the input receiving property of the window state corresponding to the desktop launcher is set to true; through the on-demand focus window search method, all interfaces of the current screen are obtained and the focus is refreshed, and the display interface of the desktop launcher regains focus and becomes the focus window interface.
[0074] S140. When a focus switching event is detected, in which the display interface changes from losing focus to having focus, the target application is controlled to simultaneously have focus.
[0075] In this step, once the desktop launcher's display interface detects that it has regained focus, the focus state of the target application is synchronized with the focus state of the display interface. This means the target application in the virtual screen gains focus and can receive user input. As an example, if the target application is an audio / video player, it can resume playing previously paused audio / video after regaining focus.
[0076] The focus control method for the vehicle system provided in this application embodiment controls the target application in the virtual screen to also synchronously acquire focus after detecting that the display interface of the desktop launcher has regained focus, thereby realizing the synchronous switching of the focus state of the target application (i.e., the virtual screen interface) and the focus state of the desktop launcher (i.e., the display interface).
[0077] In one embodiment, "controlling the target application to simultaneously hold focus" may include the following steps: Adjust the target application's input receiving attributes to the third preset value; Refresh the focus state of the target application, so that the target application retains focus.
[0078] In this embodiment, after determining that the desktop launcher's display interface regains focus, the target application's input receiving attribute is adjusted to a third preset value (e.g., true). After adjusting the input receiving attribute, the focus state of the application in the virtual screen is refreshed. During the refresh process, the target application retains focus, thus achieving synchronous switching between the focus state of the target application in the virtual screen and the focus state of the desktop launcher. This reduces the probability of inconsistencies in the operation of the vehicle system and helps improve the user experience.
[0079] As an example, controlling the target application to synchronously hold focus may include the following steps: by updating the focus window lock method of the root window container on the framework server, the focus state of the specified virtual screen interface is refreshed, that is, the focus state of the application in the virtual screen is refreshed, so that the target application holds focus.
[0080] For example, such as Figure 5 As shown, the focus control method of the vehicle system may include the following steps: S201~S210.
[0081] S201, The interface changes on the desktop launcher's display screen.
[0082] In this step, the virtual screen interface (i.e. the target application currently displayed on the virtual screen) in the desktop launcher is in focus state. The desktop launcher's interface changes are monitored. If a new window interface appears on the desktop launcher's display interface, S202 is executed.
[0083] S202. Should the focus of the desktop launcher be switched?
[0084] The essence of this step is to determine whether a focus switching event has occurred. Specifically: if the newly popped-up window is a camping mode interface or a WiFi interface, such window interfaces have the attribute of being able to obtain focus, and such window interfaces hold focus while the desktop launcher's display interface loses focus, that is, a focus switching event has occurred. If the determination result of this step is "yes", then S203 is executed; if the newly popped-up window is a small pop-up that does not obtain focus, such as a time format adjustment pop-up or a system user interface (System UI) panel, such pop-ups do not obtain focus, that is, no focus switching event has occurred. If the determination result of this step is "no", then S210 is executed.
[0085] S203. Has the lifecycle of the desktop launcher changed?
[0086] In this step, if the lifecycle of the desktop launcher has not changed and it is still in an active state, i.e., the judgment structure of this step is "No", then S205 is executed; if the pop-up new window interface is an active interface, causing the lifecycle of the desktop launcher to enter the destruction stage, the lifecycle of the desktop launcher ends, i.e., the lifecycle of the desktop launcher has changed, then S204 is executed.
[0087] S204. The virtual screen focus changes automatically as the desktop launcher's lifecycle changes.
[0088] In this step, as the desktop launcher's lifecycle ends, the virtual screen's focus state changes to losing focus, and then S210 is executed.
[0089] S205: The frame refreshes the focus state of the virtual screen in the desktop launcher, so that the focus of the virtual screen changes synchronously with the focus of the desktop launcher.
[0090] In this step, the focus state of the virtual screen interface (i.e., the target application currently displayed on the virtual screen) in the desktop launcher is refreshed through the corresponding method module in the framework server, so that the virtual screen loses focus synchronously, thereby realizing the synchronous switching of the focus state of the virtual screen and the focus state of the desktop launcher.
[0091] S206. Does the virtual screen have an input method?
[0092] In this step, it is determined whether the target application occupying the virtual screen has an associated input method. If an associated input method exists, i.e., the determination result is "yes", then S207 is executed; if no associated input method exists, i.e., the determination result is "no", then S210 is executed.
[0093] S207, Frame Hides Input Method.
[0094] In this step, the input method associated with the target application is hidden through the corresponding method module of the framework server, that is, the input method soft keyboard is hidden, and then S210 is executed.
[0095] S208, Is the virtual screen playing a video?
[0096] In this step, it is determined whether the target application occupying the virtual screen is playing a video. If the target application is playing a video, the determination result is "yes", and S209 is executed; if the target application is not playing a video, the determination result is "no", and S210 is executed.
[0097] S209, The video stops playing automatically.
[0098] In this step, controlling the video to automatically stop playing prevents the audio from the video playing in the virtual screen from interfering with the audio of the newly popped-up window, thus improving the user experience.
[0099] S210, normal pop-up interface display.
[0100] In this step, the focus state of the desktop launcher and the virtual screen switch synchronously. With their focus states consistent, the pop-up interface can be displayed normally, avoiding the simultaneous appearance of the input method in the pop-up interface and the input method in the virtual screen, or the audio and video sound of the virtual screen interfering with the sound playback in the pop-up interface, which helps to improve the user experience.
[0101] Based on the focus control method for the vehicle infotainment system provided in the above embodiments, this application also provides a specific implementation of a focus control device for the vehicle infotainment system. Please refer to the following embodiments.
[0102] First see Figure 6 The vehicle infotainment system focus control device provided in this application embodiment includes the following modules: monitoring module 301 and control module 302.
[0103] The monitoring module 301 is used to monitor focus switching events of the desktop launcher's display interface.
[0104] The control module 302 is used to control the target application in the active virtual screen to synchronously lose focus when the focus switching event is detected as the display interface changing from holding focus to losing focus, and the life cycle of the desktop launcher is still active; the target application includes the application holding focus in the active virtual screen.
[0105] In one embodiment, the control module is used to control a target application in an active virtual screen to synchronously lose focus, including: adjusting the input receiving attribute of the target application to a first preset value; refreshing the focus state of the target application; setting the focus of the target application to empty; and causing the target application to lose focus.
[0106] In one embodiment, the control module is used to adjust the received input attributes of the target application to a first preset value, including: refreshing the focus state of the application in the active virtual screen through the update focus window locking method of the root window container of the framework server, and identifying the application holding the focus as the target application; verifying the identification information of the active virtual screen and the name of the target application, and if the verification is passed, adjusting the received input attributes of the target application to the first preset value.
[0107] The control module is used to refresh the focus state of the target application and set the focus of the target application to empty, including: refreshing the focus state of the target application and setting the focus of the target application to empty by updating the focus window through the display content update and locking method of the framework server.
[0108] In one embodiment, after the target application in the active virtual screen synchronously loses focus, the control module is further configured to: hide the input method keyboard associated with the target application; and control the target application to stop playing multimedia files when the target application is playing multimedia files.
[0109] In one embodiment, before hiding the input method keyboard associated with the target application, the monitoring module is also used to obtain the focus attribute of the target application; if the focus attribute is a second preset value, it is determined that the target application has lost focus.
[0110] In one embodiment, an event in which the display interface changes from having focus to losing focus includes: popping up a target window interface on the display interface of the desktop launcher.
[0111] In one embodiment, after the target application in the active virtual screen synchronously loses focus, the monitoring module is further configured to: continuously monitor the focus switching event of the desktop launcher's display interface; the control module is further configured to: control the target application to synchronously gain focus when the focus switching event is detected as the display interface changing from losing focus to gaining focus.
[0112] In one embodiment, the control module is used to control the target application to synchronously hold focus, including: adjusting the target application's input receiving attribute to a third preset value; and refreshing the target application's focus state so that the target application holds focus.
[0113] Figure 7 A schematic diagram of the vehicle infotainment system provided in an embodiment of this application is shown.
[0114] The vehicle infotainment system may include a processor 401 and a memory 402 storing computer program instructions.
[0115] Specifically, the processor 401 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0116] Memory 402 may include a large-capacity memory for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where suitable, memory 402 may include removable or non-removable (or fixed) media. Where suitable, memory 402 may be internal or external to the vehicle infotainment system. In a particular embodiment, memory 402 is a non-volatile solid-state memory.
[0117] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.
[0118] The processor 401 reads and executes computer program instructions stored in the memory 402 to implement any of the focus control methods of the vehicle system in the above embodiments.
[0119] In one example, the vehicle infotainment system may also include a communication interface 403 and a bus 404. For example, Figure 7 As shown, the processor 401, memory 402, and communication interface 403 are connected through bus 404 and complete communication with each other.
[0120] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0121] Bus 404 includes hardware, software, or both, that couples components of an online data flow metering device together. For example, and not limited to, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertext Transfer (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VESA Local Bus, VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 404 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.
[0122] Furthermore, in conjunction with the focus control method of the vehicle system in the above embodiments, this application embodiment can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the focus control methods of the vehicle system in the above embodiments.
[0123] This application also provides a computer program product, including a computer program, which, when executed, implements any of the focus control methods of the vehicle system described in the above embodiments.
[0124] Based on the above embodiments, this application also provides a vehicle, which includes the above-mentioned vehicle infotainment system and has corresponding beneficial effects. To avoid repetition, these will not be repeated here.
[0125] The vehicles may include pure electric vehicles, hybrid electric vehicles, and hybrid electric vehicles, without limitation.
[0126] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.
[0127] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0128] The foregoing flowcharts and / or block diagrams of methods, apparatus (systems) according to embodiments of the present disclosure have described various aspects of the present disclosure. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to create a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowcharts and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block of the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.
[0129] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.
Claims
1. A focus control method for a vehicle infotainment system, characterized in that, The vehicle infotainment system includes a desktop launcher and at least one virtual screen embedded in the desktop launcher, and the method includes: Monitor the focus switching events of the desktop launcher's display interface; If a focus switching event is detected as the display interface changing from having focus to losing focus, and the desktop launcher is still in an active state, the target application in the active virtual screen is controlled to synchronously lose focus; the target application includes the application that has focus in the active virtual screen.
2. The method according to claim 1, characterized in that, The control of the target application in the active virtual screen synchronously losing focus includes: Adjust the received input attribute of the target application to a first preset value; Refresh the focus state of the target application, remove the focus of the target application, and cause the target application to lose focus.
3. The method according to claim 2, characterized in that, The step of adjusting the received input attribute of the target application to a first preset value includes: By using the root window container update focus window locking method of the framework server, the focus state of the application in the active virtual screen is refreshed, and the application holding the focus is identified as the target application. The identification information of the active virtual screen and the name of the target application are verified, and if the verification is successful, the input attribute of the target application is adjusted to the first preset value. Refreshing the focus state of the target application and setting the focus of the target application to empty includes: By updating the focused window and locking the display content of the framework server, the focus state of the target application is refreshed, and the focus of the target application is cleared.
4. The method according to claim 1, characterized in that, After the target application in the virtual screen where the control is active synchronously loses focus, the method further includes at least one of the following: Hide the input method keyboard associated with the target application; When the target application is playing a multimedia file, control the target application to stop playing the multimedia file.
5. The method according to claim 4, characterized in that, Before hiding the input method keyboard associated with the target application, the method further includes: Obtain the focus attribute of the target application; If the focus attribute is a second preset value, it is determined that the target application has lost focus.
6. The method according to claim 2, characterized in that, The event in which the display interface changes from having focus to losing focus includes: The target window will pop up on the desktop launcher's display interface.
7. The method according to claim 1, characterized in that, After the target application in the virtual screen where the control is active synchronously loses focus, the method further includes: Continuously monitor the focus switching events of the desktop launcher's display interface; When a focus switching event is detected, in which the display interface changes from losing focus to having focus, the target application is controlled to simultaneously have focus.
8. The method according to claim 7, characterized in that, The control of the target application to simultaneously hold focus includes: Adjust the received input attribute of the target application to a third preset value; Refresh the focus state of the target application to give the target application focus.
9. A focus control device for a vehicle infotainment system, characterized in that, The vehicle infotainment system includes a desktop launcher and at least one virtual screen embedded in the desktop launcher, and the device includes: The monitoring module is used to monitor focus switching events of the desktop launcher's display interface; The control module is used to control a target application in the active virtual screen to synchronously lose focus when the focus switching event is detected as the display interface changing from having focus to losing focus, and the lifecycle of the desktop launcher is still active; the target application includes the application that has focus in the active virtual screen.
10. A vehicle infotainment system, characterized in that, include: Processor and memory storing computer program instructions; When the processor executes the computer program instructions, it implements the focus control method of the vehicle system as described in any one of claims 1-8.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the focus control method of the vehicle system as described in any one of claims 1-8.
12. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the vehicle system, the vehicle system performs the focus control method of the vehicle system as described in any one of claims 1-8.
13. A vehicle, characterized in that, The vehicle includes: the vehicle infotainment system as described in claim 10.