Floating window component management method and device, control device, medium, product and vehicle
By independently managing floating window components according to business scenarios, the problem of the floating window component's enabled state not matching user needs in existing technologies has been solved, resulting in a more efficient human-computer interaction experience.
Patent Information
- Application Number
- CN202611665650.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-27
- Publication Date
- 2026-11-24
AI Technical Summary
In existing technologies, the usage status of vehicle-mounted floating window components is uniformly controlled in a one-size-fits-all manner, resulting in the enabling status of the floating window components not matching user needs and affecting the user's interactive experience.
By classifying and independently managing floating window components according to the business scenarios of the interactive interface, and determining the enabling information of multiple types of floating window components based on the target business scenario, precise control of floating window components can be achieved.
This improves the alignment between the enabling state of the floating window component and user needs, preventing the floating window component from being incorrectly disabled or enabled, and enhancing the human-computer interaction experience.
Smart Images

Figure CN123157315A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of human-computer interaction technology, specifically to the field of vehicle application interaction technology, and particularly to a floating window component management method and device, control device, medium, product and vehicle. Background Technology
[0002] With the widespread adoption of intelligent connected vehicles, when using applications on the vehicle's infotainment system through in-vehicle intelligent assistants, a floating window component typically displays content such as voice avatars, voice recognition transcription, and intelligent agent cards on top of the system's display interface. This display interface changes as the focused application on the infotainment system changes, along with changes to the interactive interface of that focused application. Each time this changes, the floating window component's enabling status needs to be re-managed.
[0003] Existing technologies typically employ a one-size-fits-all approach to manage the usage status of floating window components, either disabling them entirely or enabling them uniformly. This simplistic control logic can easily lead to situations where the usage status of the floating window components does not align with user needs, thus negatively impacting the user experience. Summary of the Invention
[0004] To address the above issues, embodiments of this application provide a floating window component management method and apparatus, control device, medium, product, and vehicle. For the interactive interface of the focused application on the vehicle infotainment system, the floating window components in the vehicle infotainment system are classified and independently managed according to the business scenario of the interactive interface. This ensures that the enabled state of the floating window components on the interactive interface aligns with user needs, thereby improving the human-computer interaction experience.
[0005] Firstly, this application provides a method for managing floating window components, including: In response to the entry of the target interactive interface of the target application on the vehicle system, the target business scenario of the target interactive interface service is determined; based on the target business scenario, the target enable information corresponding to the target type floating window component among multiple types of floating window components is determined; wherein, the target enable information is used to indicate whether the target type floating window component is disabled; multiple types of floating window components are divided based on the type of content they carry; based on the target enable information, the target type floating window component on the target interactive interface is controlled.
[0006] The floating window component management method provided in this application, for the target interactive interface of the target application, determines the target enable information of the target type floating window component among multiple types of floating window components divided by the type of content carried, according to the target business scenario of the target interactive interface service, and manages the target type floating window component on the target interactive interface based on the target enable information. It can classify and manage multiple types of floating window components independently based on the business scenario corresponding to the application interface, so that the enable status of the floating window components on the interactive interface can match the user needs, avoid the floating window components being erroneously disabled or erroneously enabled due to unified management, and improve the human-computer interaction experience.
[0007] In one possible implementation, the target business scenario is one of several business scenarios of the target application; the various business scenarios include: dialogue-based business scenarios, control-based business scenarios for controlling in-vehicle devices, and settings-based business scenarios for writing personal information and personalized settings.
[0008] According to this implementation method, business scenarios are divided into dialogue, control, and settings categories. Dialogue-based scenarios focus on dialogue-related content interaction between the user and the intelligent interactive agent (i.e., the intelligent agent); control-based scenarios focus on vehicle and equipment control; and settings-based scenarios focus on personal information and personalized settings. By subdividing business scenarios, independent management strategies are developed for each category of floating window components, making the management of floating window components more precise.
[0009] In one possible implementation, multiple types of floating window components are included, such as smart agent-type floating window components and user visual interface (VUI)-type floating window components.
[0010] According to this implementation method, floating window components are divided into intelligent agent-type floating window components and VUI-type floating window components. Intelligent agent-type floating window components primarily handle user inquiries to intelligent interactive agents (i.e., intelligent agents) and the intelligent interactive agents' responses to these inquiries. VUI-type floating window components handle voice interaction status feedback corresponding to voice interaction commands, as well as visual elements such as service cards and quick operation entry points triggered by voice interaction commands. By subdividing the types of floating window components (different types carry different content types), and specifying separate control strategies for each type of floating window component in each business scenario, the control of floating window components becomes more precise.
[0011] In one possible implementation, the smart agent floating window component includes: a chat-type floating window component and a media-type floating window component; wherein, the chat-type floating window component is used to display the user's question content and the smart agent's response content; the media-type floating window component is used to display media information; the media information includes news, graphics and animations.
[0012] According to this implementation, the intelligent agent-type floating window component is further subdivided into chat-type floating window components and media-type floating window components. The chat-type floating window component carries the content of questions initiated by the user to the intelligent interactive agent (i.e., the intelligent agent) and the response content returned by the intelligent interactive agent; the media-type floating window component carries media information, such as news, drawings, and animations. This further subdivides the types of floating window components within the intelligent agent-type floating window component, enabling more precise control over the floating window components.
[0013] In one possible implementation, the VUI-type floating window component includes an image-type floating window component, a status prompt-type floating window component, and a voice feedback-type floating window component; wherein, the image-type floating window component is used to display the image of the intelligent interactive entity; the status prompt-type floating window component is used to display the current interactive state of the intelligent interactive entity; the interactive state includes listening, thinking, and replying; and the voice feedback-type floating window component is used to display the text recognition content corresponding to the user's input voice.
[0014] According to this implementation method, VUI-type floating window components are subdivided into three categories: visual display, status prompt, and voice feedback. These three categories correspond to the visual display, status prompt, and voice-recognized text content display of the intelligent interactive entity, respectively. This further refines the types of floating window components within the VUI category, enabling more precise control over them.
[0015] In one possible implementation, determining the target business scenario of the target interactive interface service includes: determining the interface index of the target interactive interface; and determining the target business scenario based on the interface index.
[0016] According to this implementation method, the target business scenario can be determined by the interface index, which can quickly and accurately identify the business scenario type to which the current interface belongs.
[0017] In one possible implementation, determining the interface index of the target interactive interface includes: under the condition of satisfying a first condition, determining the first interface index indicated by the onResume phase of the lifecycle recovery triggered when switching to the target interactive interface as the interface index of the target interactive interface; wherein, the first condition is that the target application loses focus before the target interactive interface is switched to.
[0018] According to this implementation, the target application loses focus before the target interactive interface is brought into focus, meaning the application has gone through a process of returning to the foreground from the background. At this point, `onResume` is triggered, but the interface view switching callback (i.e., tab switching) is not triggered. This means the interface index retained during tab switching (i.e., the tab index) is the interface index of the interactive interface when focus was lost (the interactive interface the application was in when it lost focus). After the application regains focus, if only the tab switching is relied upon to identify the interface index corresponding to the interactive interface when focus is regained (the interactive interface the application was in when it regained focus), there is a high probability of interface index drift due to inconsistencies between the interactive interface when focus was lost and the interactive interface when focus was regained. Therefore, when the application returns to the foreground from the background, using the interface index pointed to by the `onResume` stage as the interface index corresponding to the current interface of the application can improve the accuracy of interface index identification.
[0019] In one possible implementation, determining the interface index of the target interactive interface includes: if the first condition is not met, determining the second interface index of the interface view switching callback indicator triggered by switching to the target interactive interface, and determining it as the interface index of the target interactive interface.
[0020] According to this implementation, when the application is in the foreground and the interface changes, a callback for interface view switching (i.e., tab switching) is triggered. At this time, the tab index retained in the tab switching is the interface index of the interactive interface after the switch. Therefore, when the application is in the foreground and the interface changes, the tab index can be directly used as the interface index of the current interactive interface, which can improve the recognition accuracy of the interface index.
[0021] In one possible implementation, based on the target business scenario, the target enable information corresponding to the target type of floating window component among multiple types of floating window components is determined, including: based on the target business scenario and a pre-stored mapping dataset, the target enable information corresponding to the target type of floating window component is determined; wherein, the mapping dataset includes mapping information corresponding to each type of business scenario among multiple types of business scenarios; the mapping information is used to indicate the enable information of each type of floating window component among multiple types of floating window components.
[0022] According to this implementation method, a mapping dataset is pre-constructed. This dataset includes mapping information corresponding to each of the multiple business scenarios, and the mapping information indicates the enabling information of each type of floating window component. By querying the mapping dataset, the enabling information corresponding to each type of floating window component in each business scenario can be quickly and accurately determined. Furthermore, the mapping dataset can be maintained and updated independently, facilitating system expansion.
[0023] In one possible implementation, the mapping information corresponding to the dialogue-type business scenarios in the mapping dataset satisfies the following: the enable information of status prompt floating window components and media floating window components both indicate that they are not disabled; the enable information of image floating window components, voice feedback floating window components and chat floating window components all indicate that they are disabled.
[0024] According to this implementation method, in dialogue-based business scenarios, status-indicating floating window components are not disabled, allowing users to still be aware of the current interaction status of the intelligent interactive entity; media-related floating window components are not disabled, and media content such as news and illustrations can still be displayed normally; image-related, voice feedback-related, and casual chat-related floating window components are disabled to avoid repetitive display of list-style text in the dialogue page interaction interface corresponding to dialogue-based business scenarios. In this way, fine-grained classification and control of floating window components in the dialogue page interaction interface is achieved.
[0025] In one possible implementation, the mapping data centrally controls the mapping information corresponding to the business scenarios, or sets the mapping information corresponding to the business scenarios, to satisfy the following: the enable information of the chat-type floating window component indicates that it is not disabled; the enable information of the status prompt-type floating window component, the image-type floating window component, the voice feedback-type floating window component, and the media-type floating window component all indicate that they are disabled when the user has preset them to be disabled, and not disabled when the user has not preset them to be disabled.
[0026] According to this implementation method, in control-type or settings-type business scenarios, casual chat floating window components are not disabled, and users can still engage in casual chat interactions; other types of floating window components are disabled based on user preset settings, fully respecting users' personalized setting needs.
[0027] In one possible implementation, the method further includes: restoring the enable information of the image-type floating window component and the chat-type floating window component to indicate that they are not disabled when the target application loses focus.
[0028] According to this implementation, when the application loses focus and goes to the background, the image-type floating window component and the chat-type floating window component are restored to not disabled, achieving background self-healing. This avoids the problem of the floating window enable flag being continuously and incorrectly suppressed after the application goes to the background, causing the floating window function to be unavailable when returning to the foreground.
[0029] In one possible implementation, the target interactive interface entry recognition process includes: recognizing the entry of the target interactive interface when a second condition is met; the second condition includes any one of the following: receiving a touch entry command for the target interactive interface; receiving a voice interaction command for a service covered by the target business scenario; receiving a wake-up command for the target application when the target interactive interface is the homepage of the target application; receiving a wake-up command for the target application when the target interactive interface is the interactive interface where the target application last lost focus and the time between the last time it lost focus and the time when the wake-up command was issued does not exceed a preset time threshold.
[0030] According to this implementation method, the entry of the target interactive interface can be identified by multiple triggering conditions, covering multiple interaction methods such as touch, voice wake-up, and voice command control, thereby improving the accuracy and flexibility of interactive interface entry recognition.
[0031] Secondly, this application provides a floating window component control device, comprising: The first determining module is used to respond to the entry of the target interactive interface of the target application on the vehicle system and determine the target business scenario of the target interactive interface service. The second determining module is used to determine the target enabling information of the target type floating window component among multiple types of floating window components based on the target business scenario; wherein, the target enabling information is used to indicate whether the target type floating window component is disabled; the multiple types of floating window components are divided based on the type of content they carry; The control module is used to control the target-type floating window components on the target interaction interface based on the target enable information.
[0032] In one possible implementation, the target business scenario is one of several business scenarios of the target application; the various business scenarios include: dialogue-based business scenarios, control-based business scenarios for controlling in-vehicle devices, and settings-based business scenarios for writing personal information and personalized settings.
[0033] In one possible implementation, multiple types of floating window components are included, such as smart agent-type floating window components and user visual interface (VUI)-type floating window components.
[0034] In one possible implementation, the smart agent floating window component includes: a chat-type floating window component and a media-type floating window component; wherein, the chat-type floating window component is used to display the user's question content and the smart agent's response content; the media-type floating window component is used to display media information; the media information includes news, graphics and animations.
[0035] In one possible implementation, the VUI-type floating window component includes an image-type floating window component, a status prompt-type floating window component, and a voice feedback-type floating window component; wherein, the image-type floating window component is used to display the image of the intelligent interactive entity; the status prompt-type floating window component is used to display the current interactive state of the intelligent interactive entity; the interactive state includes listening, thinking, and replying; and the voice feedback-type floating window component is used to display the text recognition content corresponding to the user's input voice.
[0036] In one possible implementation, the first determining module is specifically used for: determining the interface index of the target interactive interface; and determining the target business scenario based on the interface index.
[0037] In one possible implementation, the first determining module is specifically used to: determine the first interface index indicated by the onResume stage of lifecycle recovery triggered by switching to the target interactive interface as the interface index of the target interactive interface, provided that a first condition is met; wherein, the first condition is that the target application loses focus before the target interactive interface is switched to.
[0038] In one possible implementation, the first determining module is specifically used to: determine the second interface index of the interface view switching callback indication triggered by switching to the target interactive interface if the first condition is not met, and determine the interface index of the target interactive interface.
[0039] In one possible implementation, the second determining module is specifically used to: determine the target enabling information corresponding to the target type of floating window component based on the target business scenario and the pre-stored mapping dataset; wherein, the mapping dataset includes mapping information corresponding to each type of business scenario in multiple business scenarios; the mapping information is used to indicate the enabling information of each type of floating window component in multiple types of floating window components.
[0040] In one possible implementation, the mapping information corresponding to the dialogue-type business scenarios in the mapping dataset satisfies the following: the enable information of status prompt floating window components and media floating window components both indicate that they are not disabled; the enable information of image floating window components, voice feedback floating window components and chat floating window components all indicate that they are disabled.
[0041] In one possible implementation, the mapping data centrally controls the mapping information corresponding to the business scenarios, or sets the mapping information corresponding to the business scenarios, satisfying the following: the enable information of the chat-type floating window component indicates that it is not disabled; the enable information of the status prompt-type floating window component, the image-type floating window component, the voice feedback floating window component, and the media-type floating window component indicates that it is disabled when the user has preset it to be disabled, and not disabled when the user has not preset it to be disabled.
[0042] In one possible implementation, the control module is also configured to restore the image-type floating window component and the chat-type floating window component to not being disabled when the target application loses focus.
[0043] In one possible implementation, the first determining module is further configured to: identify the target interactive interface entry when a second condition is met; the second condition includes any one of the following: receiving a touch entry command for the target interactive interface; receiving a voice interaction command for a service covered by the target business scenario; receiving a wake-up command for the target application when the target interactive interface is the homepage of the target application; receiving a wake-up command for the target application when the target interactive interface is the interactive interface where the target application last lost focus and the time between the last time it lost focus and the time when the wake-up command was issued does not exceed a preset time threshold.
[0044] Thirdly, this application provides a control device, including: a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it performs a floating window component control method as described in any embodiment of the first aspect.
[0045] Fourthly, this application provides a computer-readable storage medium storing computer instructions that, when executed on a processor, cause the processor to perform the floating window component management method of any of the embodiments of the first aspect described above.
[0046] Fifthly, this application provides a computer program product, including a computer program; when the computer program is executed, it is capable of implementing the floating window component management method of any of the embodiments of the first aspect described above.
[0047] Sixthly, this application provides a vehicle including the control device of the third aspect above; or the computer-readable storage medium of the fourth aspect above; or the computer program product of the fifth aspect above. Attached Figure Description
[0048] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in some embodiments of this application will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings.
[0049] Figure 1 This is a schematic diagram illustrating an application scenario of a floating window component management method provided in an embodiment of this application. Figure 2 A flowchart illustrating a floating window component management method provided in an embodiment of this application; Figure 3A schematic diagram illustrating the process of determining the interface index of the target interactive interface provided in the embodiments of this application; Figure 4 A flowchart illustrating another floating window component management method provided in this application embodiment; Figure 5 This is a schematic diagram of the structure of a floating window component control device provided in an embodiment of this application; Figure 6 This is a schematic diagram of the structure of a control device provided in an embodiment of this application. Detailed Implementation
[0050] The technical solutions of this application will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0051] It should be noted that, in this application, the words "exemplarily," "exemplarily," or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplarily," "exemplarily," or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplarily," "exemplarily," or "for example" is intended to present the relevant concepts in a specific manner.
[0052] In the following description, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Furthermore, "at least one" means one or more, and "multiple" means two or more.
[0053] As described in the background section, existing technologies typically employ a one-size-fits-all approach to uniformly manage the usage status of floating window components. This results in a simplistic control logic, which can easily lead to situations where the usage status of the floating window component does not align with user needs, thus impacting the user's interactive experience.
[0054] To address the aforementioned technical problems, this application provides a method for managing floating window components. The method involves: for the target interactive interface of a target application, determining the target enabling information of a target type of floating window component among multiple types of floating window components categorized by content type, based on the target business scenario served by the target interactive interface; and managing the target type of floating window components on the target interactive interface based on the target enabling information. This allows for independent management of multiple types of floating window components according to the business scenario corresponding to the application interface, ensuring that the enabling state of floating window components on the interactive interface matches user needs. This avoids the erroneous disabling or enabling of floating window components due to unified management, thus improving the human-computer interaction experience. The technical solution provided by this application embodiment will be described in detail below with reference to the accompanying drawings.
[0055] Figure 1 This is a schematic diagram illustrating an application scenario of a floating window component management method provided in an embodiment of this application, such as... Figure 1 As shown, this method is applied to the floating window component control device 101 on vehicle 100. The vehicle 100 can be an internal combustion engine vehicle (ICE), a pure electric vehicle (EV), a hybrid electric vehicle (HEV), a plug-in hybrid electric vehicle (PHEV), a fuel cell vehicle (FCV), etc. The vehicle also includes a vehicle infotainment system 102, which is an in-vehicle infotainment system (Head Unit, HU) in the vehicle cabin. It typically includes a main control chip, memory, display screen, input / output module, communication module, operating system, and application software, serving as the human-machine interaction interface between the user and the vehicle, and providing users with navigation, entertainment, and other service functions. The floating window component control device 101 is communicatively connected to the vehicle infotainment system 102 and is used to control the enabling state of the floating window component in the floating layer of the vehicle infotainment system 102. Specifically, the floating window component management device 101 responds to the entry of the target interactive interface of the target application on the vehicle system 102, determines the target business scenario of the target interactive interface service; based on the target business scenario, it determines the target enable information corresponding to the target type floating window component among multiple types of floating window components; wherein, the target enable information is used to indicate whether the target type floating window component is disabled; the multiple types of floating window components are divided based on the type of content they carry; based on the target enable information, it generates a management instruction for the target type floating window component on the target interactive interface; the management instruction indicates whether it is disabled or not; and sends the management instruction to the main control chip in the vehicle system 102, so that the main control chip responds to the management instruction and manages the target type floating window component on the target interactive interface.
[0056] The aforementioned floating window component control device 101 can be integrated with the vehicle infotainment system 102, mounted in other controllers of the vehicle, or mounted as a standalone controller in the vehicle. It is understood that the application scenarios of the embodiments of this application are not limited. The business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will understand that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.
[0057] Figure 2 This is a flowchart illustrating a floating window component management method provided in an embodiment of this application, as shown below. Figure 2 As shown, the method includes the following steps: S201. In response to the entry of the target interactive interface of the target application on the vehicle system, determine the target business scenario of the target interactive interface service.
[0058] In some possible implementations, in-vehicle infotainment systems typically include numerous applications, such as navigation, media, communication, and vehicle settings. The target application is the application that the infotainment system focuses on; for example, if a user is currently using the navigation application, the navigation application is the target application. If the user switches from the navigation application to the media application, the media application becomes the target application. Similarly, each application may have multiple interfaces, such as a dialog page interface, a settings page interface, a discovery page interface, and a home page interface. The target interface is the currently displayed interface of the target application; for example, if a user is currently using the discovery page interface, the discovery page interface is the target interface. If the user switches from the discovery page interface to the home page interface, the home page interface becomes the target interface.
[0059] The aforementioned entry into the target interactive interface can be understood as entering the target interactive interface of the target application from the background, switching from other interactive interfaces of the target application to the target interactive interface of the target application, and other human-computer interaction states.
[0060] The aforementioned target business scenario is one of many types of business scenarios, used to represent the business scenario served by the target interactive interface. The business scenario served by an interactive interface of an application is determined when the functionality of that interactive interface is set.
[0061] As an example, the above-mentioned determination of the target business scenario of the target interactive interface service may include: determining the functional description of the business function corresponding to the target interactive interface; the functional description includes a functional semantic description and a functional business processing logic description; and determining the target business scenario corresponding to the target interactive interface based on the functional description.
[0062] As another example, the above-mentioned determination of the target business scenario of the target interactive interface service may include: determining the target business scenario based on the application identifier of the target application, the interface identifier of the target interactive interface, and preset business association rules; Pre-defined business association rules predefine the mapping between application identifiers and interface identifiers and business scenarios. For example, the cruise interface of the Gaode navigation application is associated with the driving navigation scenario.
[0063] This embodiment does not limit the method for determining the target business scenario, as long as the business scenario served by the currently accessed target interactive interface can be determined. By identifying the access to the target interactive interface and determining the business scenario it serves, a basis can be provided for subsequent independent management of floating window components according to business scenario classification.
[0064] S202. Based on the target business scenario, determine the target enable information corresponding to the target type floating window component among multiple types of floating window components.
[0065] Among them, the target enable information is used to indicate the enable status of the target type floating window component, and the enable status is used to indicate whether it is disabled; the target type floating window component can be one of multiple types of floating window components, which are divided based on the type of content they carry.
[0066] In some possible implementations, the above-mentioned S202 may include: Based on the content type corresponding to the target type of floating window component and the content type required to be displayed in the target business scenario, determine the target enable information of the target type of floating window component.
[0067] The types of content required to be displayed in the aforementioned target business scenarios can be saved in the form of pre-defined rules and / or strategies, and invoked when needed.
[0068] The aforementioned target enabling information can be represented using Boolean values, enumeration values, etc. For example, a Boolean value of 0 indicates non-disabled, and a Boolean value of 1 indicates disabled.
[0069] S203. Based on target enable information, manage and control target-type floating window components on the target interaction interface.
[0070] In some possible implementations, the control methods include at least one of the following: when the target enable information indicates that the target is disabled, the creation of the target-type floating window component is prohibited, the updating of the target-type floating window component is prohibited, the displayed target-type floating window component is closed, and the target-type floating window component is reset to its initial state; when the target enable information indicates that the target is not disabled, the creation of the target-type floating window component is allowed, the updating of the target-type floating window component is allowed, and the display of the target-type floating window component is allowed.
[0071] The aforementioned "initial state" refers to a preset state in which the floating window component does not carry business content, does not execute display animations, and is not in a visible and interactive state. For example, it includes at least one of the following: the floating window component is not displayed on the central control screen of the vehicle system; the floating window component is not bound to business data; the floating window component does not play animations; and the floating window component's position, layer, transparency, scaling ratio, and other attributes are at default values.
[0072] For example, the various floating window components include an image-based floating window component, a status prompt-based floating window component, and a voice feedback-based floating window component. The initial state of the image-based floating window component is to display a standby image; the initial state of the status prompt-based floating window component is to not display states such as listening, thinking, or replying; and the initial state of the voice feedback-based floating window component is to keep the speech-to-text content item empty.
[0073] The floating window component management method provided in this application, targeting the target interactive interface of a target application, determines the target enabling information of the target type of floating window component among multiple types of floating window components categorized based on the content type of the target interactive interface, according to the target business scenario served by the target interactive interface. Based on the target enabling information, it manages the target type of floating window component on the target interactive interface. This allows for independent management of multiple types of floating window components based on the business scenario corresponding to the application interface, disabling only floating window component types that conflict with the interactive interface, while other types of floating window components can be disabled as needed. This reduces phenomena such as duplicate floating window content, interface obstruction, and erroneous disabling, ensuring that the enabling state of floating window components on the interactive interface aligns with user needs. It avoids the erroneous disabling or enabling of floating window components due to uniform management, thus improving the human-computer interaction experience. In one possible embodiment, the classification of business scenarios and floating window components is further limited to achieve finer-grained management of the enabling state of floating window components.
[0074] Specifically, the aforementioned business scenarios include: dialogue-based business scenarios, control-based business scenarios for controlling in-vehicle devices, and settings-based business scenarios for writing personal information and personalized settings.
[0075] Among these, dialogue-based business scenarios focus on the dialogue content interaction between the user and the intelligent interactive agent (i.e., the intelligent agent); control-based business scenarios focus on the control of in-vehicle devices and / or functions, such as windows, air conditioning, and child locks; and settings-based business scenarios focus on writing personal information, setting preferences, and personalizing configurations. Different business scenarios have different display requirements for floating window components, which can be used to determine the enabling information for different types of floating window components. By dividing business scenarios into dialogue, control, and settings categories, independent management strategies for floating window components can be formulated for different business scenarios, making the management strategy for floating window components more precise.
[0076] In one possible implementation, the target business scenario may further include a driving business scenario. The various floating window components include media-type floating window components and chat-type floating window components; when the vehicle system enters the driving business scenario, the enabling information of the media-type floating window components and chat-type floating window components can be set to disabled; when the vehicle system exits the driving business scenario, the enabling information of the media-type floating window components and chat-type floating window components can be restored to enabled. This can reduce information interference during driving and improve driving safety.
[0077] In another possible implementation, multiple business scenario templates can be pre-configured, such as driving, rest, and entertainment scenario templates. Each business scenario template corresponds to an independent control strategy for floating window components (including enabling information for various floating window components). When the vehicle system detects that a certain business scenario has been entered, the corresponding business scenario template is loaded, and the independent control strategy for floating window components is determined according to that template. This allows for quick switching between independent control strategies for floating window components in different business scenarios, meeting users' display needs for floating window components in different scenarios.
[0078] Furthermore, there are multiple types of floating window components, including smart agent-type floating window components and user visual interface (VUI)-type floating window components.
[0079] The in-vehicle intelligent assistant responds to user inquiries via text, voice, and images, displaying the question and response through intelligent agent-type floating window components (including cards and pop-ups). When responding to voice interaction commands, the assistant displays visual elements such as voice interaction status feedback, service cards triggered by voice commands, and quick operation entry points through VUI-type floating window components, rather than displaying content generated by the intelligent interaction entity. By categorizing floating window components (different types carry different content types) and specifying individual control strategies for each type of floating window component in each business scenario, the management of floating window components becomes more precise.
[0080] In one possible implementation, the smart agent-type floating window component includes a chat-type floating window component and a media-type floating window component. The chat-type floating window component is used to display the user's questions and the smart agent's responses; the media-type floating window component is used to display media information, including news, graphics, and animations.
[0081] The intelligent agent floating window component is further divided into a chat-type floating window component, which mainly carries the user's inquiries to the intelligent interactive agent and the intelligent interactive agent's responses to the inquiries, and a media-type floating window component, which displays media information. This allows the user to receive external media information while chatting and ensures that the intelligent interactive agent can display animations or drawings corresponding to the response content through the media-type floating window component.
[0082] For example, the smart agent-type floating window component may also include a security-type floating window component for displaying security prompts. Chat-type floating window components can be further subdivided into drawing-type floating window components, news-type floating window components, etc.
[0083] In specific implementations, smart agent-type floating window components can be represented by tags: chat-type floating window components are tagged "GENERAL_CHAT", security-type floating window components are tagged "SECURITY", drawing-type floating window components are tagged "DRAW_IMAGE", and news-type floating window components are tagged "NEWS_LISTENING".
[0084] Different business scenarios present varying requirements for different subcategories of floating window components within the intelligent agent category. For instance, chat-type floating window components display user-initiated questions to the intelligent agent and the agent's responses, whose content format overlaps with the list-style text in the dialogue interface and should be disabled there. Media-type floating window components display news, graphics, animations, and other media information, whose content format differs from the list-style text in the dialogue interface, and can be disabled in the dialogue interface depending on actual needs. Therefore, by subdividing floating window component types (different types carry different content types) and developing separate control strategies for each type of floating window component in each business scenario, more precise management of floating window components can be achieved.
[0085] In another possible implementation, the VUI-type floating window component includes an image-type floating window component, a status prompt-type floating window component, and a voice feedback-type floating window component; wherein, the image-type floating window component is used to display the image of the intelligent interactive entity; the status prompt-type floating window component is used to display the current interactive state of the intelligent interactive entity; the interactive state includes listening, thinking, and replying; and the voice feedback-type floating window component is used to display the text recognition content corresponding to the user's input voice.
[0086] Specifically, the image-based floating window component is used to display the intelligent interactive image of the in-vehicle intelligent assistant during the activation of the voice conversation. For example, the intelligent interactive image can be at least one of a virtual agent, a cartoon character, an anthropomorphic icon, a light effect, or a breathing animation. The image-based floating window component can float in a preset area of the vehicle system display interface, such as the upper left corner, upper right corner, bottom center, or side, and its display area is usually smaller than the full screen to avoid obscuring the main interface content. Its display state can be associated with the lifecycle and interaction state of the voice conversation: after the in-vehicle intelligent assistant is activated, the image-based floating window component enters the display state; during the listening phase, it presents a listening posture or listening animation; during the thinking phase, it presents a thinking posture or thinking animation; during the reply phase, it presents a broadcasting posture or broadcasting animation; after the voice conversation ends, the image-based floating window component hides or returns to the standby state. For example, a visual floating window component can contain two independent Views: RootFloatView corresponding to ROOT and RhythmFloatView. RootFloatView is used to carry the basic image of the intelligent interactive object, while RhythmFloatView is used to carry the animation effects associated with the voice rhythm.
[0087] Status indicator floating window components are used to display the current interaction status of the intelligent interactive entity. The interaction status includes at least one of listening, thinking, and responding. Status indicator floating window components can display the interaction status through text, icons, animations, or a combination thereof, such as displaying prompts like "I'm listening," "Thinking," or "Responding." In dialogue-based business scenarios, status indicator floating window components are usually not disabled so that users are aware of the current voice interaction status; in control-based or settings-based business scenarios, status indicator floating window components can be disabled if the user has pre-set them to be disabled, and not disabled if the user has not pre-set them to be disabled. Voice feedback floating window components are used to display the text recognition content corresponding to the user's voice input, such as ASR real-time transcription or typewriter-style text. These components can convert user input into text in real time and display it so the user can confirm the voice recognition result. In dialogue-based scenarios, since the dialogue page already displays the user's question text in a list-style format, the voice feedback floating window component would cause duplicate display and can therefore be disabled. In non-dialogue-based scenarios, the voice feedback floating window component can be displayed normally. The enabling / disabling status of the voice feedback floating window component can also coordinate with the vehicle system settings. For example, when the system settings indicate that recognized text should not be displayed, the voice feedback floating window component is disabled; when the system settings indicate that recognized text should be displayed, the display of the voice feedback floating window component is determined based on the current business scenario.
[0088] In this way, visual floating window components, status prompt floating window components, and voice feedback floating window components can be managed independently, avoiding a one-size-fits-all approach. This avoids the repeated display of voice prompt text in the dialogue page interaction interface, while ensuring the display of voice prompt text in the non-dialogue page interaction interface to improve interaction performance. Such differentiated floating window component control can improve the fit with user needs.
[0089] In one possible implementation, determining the target business scenario of the target interactive interface service includes: determining the interface index of the target interactive interface; and determining the target business scenario based on the interface index.
[0090] Specifically, the interface index refers to information representing the identity or category of the target interactive interface, such as interface name, interface type, interface number, interface path, tab index, etc. A mapping relationship between interface indexes and business scenarios can be pre-established, for example, by storing it locally or in the cloud in the form of a mapping table, configuration file, or key-value pairs. After determining the interface index of the target interactive interface, this mapping relationship is queried to obtain the target business scenario.
[0091] As an example, the current tab index can be cached in the tab container Activity. The tab container Activity updates the current tab index and caches it in the tab switching callback.
[0092] Determining the target business scenario through interface indexing can improve the accuracy and efficiency of business scenario identification and reduce the probability of scenario misjudgment during interface switching.
[0093] Figure 3 This is a schematic diagram illustrating the process of determining the interface index of the target interactive interface provided in the embodiments of this application, as shown below. Figure 3 As shown, the process of determining the interface index of the target interactive interface includes: S301. Determine whether the target application lost focus before the target interactive interface is accessed; if yes, proceed to S302; if no, proceed to S303.
[0094] S302. Determine the first interface index indicated by the onResume stage of the lifecycle recovery triggered when switching to the target interactive interface as the interface index of the target interactive interface.
[0095] For example, when a target application returns to the foreground from the background—that is, when the target application regains focus after losing focus—and then enters the target interactive interface, the Tab container Activity triggers its lifecycle resume onResume, rather than triggering a tab switch callback. In this case, the interface index retained during the tab switch is the interface index of the interactive interface the target application was in when it lost focus. After the target application regains focus, if only the tab switch is relied upon to identify the interface index of the target interactive interface after focus recovery, there is a high probability of interface index drift due to inconsistencies between the two interactive interfaces. Therefore, the interface index indicated by onResume can be used as the interface index of the target interactive interface to accurately identify the target interactive interface after focus recovery, avoiding interface index identification errors caused by missing tab switches, and improving the accuracy of determining the business scenario when the application regains focus.
[0096] For example, in this case, after determining the interface index of the target interactive interface, the interface index for Tab switching needs to be updated.
[0097] S303. Determine the second interface index of the interface view Tab switching callback triggered when switching to the target interactive interface as the interface index of the target interactive interface.
[0098] Specifically, when the target application does not lose focus before entering the target interactive interface, triggering a view switching callback (i.e., tab switching), the tab index retained during the tab switching is the interface index of the interactive interface after the switch, which can be directly used as the interface index of the target interactive interface, thus improving the accuracy of interface index recognition. This implementation method covers two entry paths: application focus restoration and application-internal interactive interface switching, improving the stability of interface index recognition and the reliability of business scenario determination.
[0099] In another possible implementation, based on the target business scenario, the target enabling information corresponding to the target type of floating window component among multiple types of floating window components is determined. This includes: determining the target enabling information corresponding to the target type of floating window component based on the target business scenario and a pre-stored mapping dataset. The mapping dataset includes mapping information corresponding to each of the multiple business scenarios; the mapping information is used to indicate the enabling information of each type of floating window component among the multiple types of floating window components. For example, the mapping dataset can be pre-stored in the form of a table, array, key-value pairs, configuration file, etc.
[0100] By querying the mapping dataset for the target business scenario, the enabling information corresponding to various floating window components can be obtained, and the target enabling information corresponding to the target type of floating window component can be determined. According to this implementation method, the mapping dataset centrally manages the correspondence between business scenarios and floating window component enabling information, which facilitates policy configuration, expansion and maintenance, and improves the efficiency, consistency and maintainability of floating window management.
[0101] In one possible implementation, after the target application completes a version update, the mapping dataset can be reinitialized, and the target enable information can be determined according to the initialized mapping dataset. This avoids the remnants of the old mapping dataset after the version update, which could cause anomalies in floating window management, and ensures that the floating window management strategy is consistent with the target application version.
[0102] In one possible implementation, at least one of the business scenarios, target enable information, control operations, and control results generated during the floating window control process can be reported to the cloud server; the cloud server optimizes the mapping dataset based on the information reported by multiple vehicle systems and sends the optimized mapping dataset to the vehicle systems.
[0103] According to this implementation method, the floating window control strategy can be continuously optimized, and the adaptability and accuracy of the floating window control strategy can be improved.
[0104] In one possible implementation, a visual configuration entry for the mapping dataset can be provided in the vehicle system settings interface; users can adjust the enabling information of various floating window components under different business scenarios through the visual configuration entry; the vehicle system updates the mapping dataset according to the user's adjusted enabling information, and determines the target enabling information according to the updated mapping dataset.
[0105] According to this implementation method, users can easily adjust the floating window control strategy according to their personal preferences, thereby improving their control over the floating window control strategy.
[0106] Furthermore, the mapping data centralizes the mapping information corresponding to dialogue-based business scenarios, satisfying the following conditions: the enable information for status prompt floating window components and media floating window components both indicate that they are not disabled; the enable information for image floating window components, voice feedback floating window components, and casual chat floating window components all indicate that they are disabled. That is, in dialogue-based business scenarios, status prompt floating window components and media floating window components can be retained, while image floating window components, voice feedback floating window components, and casual chat floating window components can be disabled to reduce the repeated display or obstruction of content in the dialogue interface.
[0107] According to this implementation method, fine-grained control can be achieved for dialogue-based business scenarios, avoiding duplication of the displayed content of chat-type floating window components with the list-flow text of the dialogue page, avoiding duplication of the displayed content of voice feedback-type floating window components with the user's question text, and avoiding interface obstruction caused by image-type floating window components; at the same time, status prompt-type floating window components and media-type floating window components are retained, realizing non-one-size-fits-all fine-grained control in dialogue-based business scenarios, improving the accuracy of information display content and human-computer interaction experience of the dialogue page interactive interface.
[0108] In one possible implementation, the mapping data centralizes the mapping information corresponding to control-type business scenarios or the mapping information corresponding to setting-type business scenarios, satisfying the following: the enable information of the chat-type floating window component indicates that it is not disabled; the enable information of the status prompt-type floating window component, the avatar-type floating window component, the voice feedback-type floating window component, and the media-type floating window component indicates that they are disabled if the user has preset them to be disabled, and not disabled if the user has not preset them to be disabled. That is, in control-type or setting-type business scenarios, the chat-type floating window component can be enabled by default; while the status prompt-type, avatar-type, voice feedback-type, and media-type floating window components can respect the user's preset settings, being disabled if the user has preset them to be disabled, and not disabled otherwise.
[0109] According to this implementation method, it is possible to balance the default policy and the user's personalized settings in control or setting business scenarios, avoiding interference caused by forced display and avoiding the impact of forced disabling on the user's active selection.
[0110] In another possible implementation, the floating window component management method further includes: restoring the image-type floating window component and the chat-type floating window component to not being disabled when the target application loses focus.
[0111] In the implementation, it's possible to monitor whether the target application loses focus and switches to another application. For example, when the system detects that the latest interactive interface of the target application is executing an OnStop lifecycle callback, it decrements the 'started interface count' by 1. If this count reaches zero, it determines that the target application has lost focus and triggers a background self-healing process, namely: setting the chat-type floating window component and its enabled state to non-disabled; removing the blocking restrictions on the interactive interface of the chat page, etc., so that the target application can display the corresponding content normally when it regains focus.
[0112] In addition to Activity counting, the above-mentioned application can be judged by methods such as process-level lifecycle monitoring to determine when it loses focus.
[0113] According to this implementation method, the application can be automatically enabled after it is brought to the background, avoiding the residual disabled state after the target application is brought to the background, which would cause the image-type floating window component and the chat-type floating window component to not be displayed normally when it is woken up or resumed, thus improving the interactive experience when it is woken up again.
[0114] In one possible implementation, gating logic can be set at the front end of the call chain of the agent-type floating window component to intercept asynchronous requests. When a display request for the agent-type floating window component is received, the enabled state of the agent-type floating window component is first checked. If the enabled state of the agent-type floating window component indicates that it is disabled, the request is discarded directly, and no creation or update operation is performed; if the indication is not disabled, the creation or update operation is performed. By intercepting the gating at the entry point, it is possible to prevent the incorrect creation of floating windows due to asynchronous callback delays in dialogue-type business scenarios. The state update chain of VUI-type floating window components can also be set with independent gating. For example, when updating the wake-up state of an image-type floating window component, if the enabled state of the image-type floating window component indicates that it is disabled, or the system settings indicate that the recognized text should not be displayed, the recognition state is not displayed; otherwise, the wake-up state is displayed when the voice conversation has started. The front end of the call chain of the agent-type floating window component and the state update chain of the VUI-type floating window component are gated separately and do not replace each other.
[0115] In another possible implementation, changes to vehicle system settings can be monitored. When a change is detected, the enabling status of the corresponding floating window component is automatically updated, achieving linkage between system-level settings and floating window control strategies. For example, when the user disables the "Display Recognized Text" function, the enabling status of the corresponding voice feedback floating window component is automatically disabled; when the user enables the "Display Recognized Text" function, the enabling status of the corresponding voice feedback floating window component is automatically enabled. Through the above gating logic and setting monitoring, the robustness, dynamic response capability, and user personalization adaptation capability of floating window control can be further improved.
[0116] In some possible implementations, the cut-in recognition process of the target interface includes recognizing the cut-in when a second condition is met, the second condition including any of the following: Upon receiving a touch input command to the target interactive interface, such as when a user clicks "Dialogue" at the bottom to enter the dialogue page interactive interface; Upon receiving voice interaction commands for services covered by the target business scenario, such as when a user says "unlock the child lock," the voice assistant enters the interface corresponding to the control-related business scenario. When the target interactive interface is the homepage of the target application, the user receives a wake-up command from the target application. For example, if the name of the target application's smart interactive entity is Xiaoqi, and the user says "Hello, Xiaoqi", the target application will be woken up and enter the homepage. When the target interactive interface is the interactive interface where the target application last lost focus, the wake-up command of the target application is received, and the time between the last time focus was lost and the time when the wake-up command was issued does not exceed a preset time threshold. For example, if the user was previously on the interactive interface of the chat page, went to the background for no more than 5 minutes, and then said "Hello, Xiaoqi", the application will resume the interactive interface of the chat page.
[0117] In another possible implementation, the entry into the target interactive interface can also be identified by listening to interface switching events, changes in interface visibility, changes in interface focus, and changes in the interface stack. For example, when a user clicks on the dialogue at the bottom of the target application, the entry into the dialogue page interactive interface is identified; when a user issues the voice command "turn on the air conditioner," the entry into the control page interactive interface of the air conditioner application is identified; when the target application resumes from the background to the most recently displayed settings page interactive interface, the entry into the settings page interactive interface is identified.
[0118] According to this implementation method, the entry of the target interactive interface can be identified by multiple triggering conditions, covering multiple interaction methods such as touch, voice, and wake-up, thereby improving the accuracy and flexibility of interactive interface entry identification.
[0119] Figure 4 This is a schematic diagram of another floating window component management method provided in the embodiments of this application, such as... Figure 4 As shown, the steps are as follows: S401. Monitor the page stack of the target application. Proceed to the next step when the target application experiences a page stack rollback.
[0120] When the target application goes back in the page stack, it enters S402. The target application maintains a last-in-first-out (LIFO) page stack. When the target application goes back in the page stack, the Activity to be popped from the stack triggers the onStop lifecycle callback. The application lifecycle listening module listens for this callback event and decrements the count of launched Activities it maintains by 1.
[0121] S402. Determine if the target application has lost focus.
[0122] If yes, proceed to S403; otherwise, return to S401.
[0123] The application lifecycle monitoring module checks if the current count of running Activities is equal to 0. If the count is not equal to 0, it means that the target application still has Activities running in the foreground and has not lost focus, so it returns to S401 to continue monitoring; if the count is equal to 0, it means that the target application has completely entered the background and lost focus, so it enters S403.
[0124] S403, Perform background self-healing operation.
[0125] Among them, the background self-healing operation is used to set the enabled state of the chat-type floating window component and the image-type floating window component to the non-disabled state.
[0126] When the target application loses focus, the floating window management module automatically performs a background self-healing operation: it sets the enabled state of both chat-type and avatar-type floating window components to the non-disabled state (true), ensuring that they can be used normally when the target application is woken up again. Through the above steps, the enabling of floating window components that do not need to be suppressed is automatically restored when the application is moved to the background, avoiding the problem of floating window components being incorrectly locked when the application is woken up again.
[0127] S404. When the target application enters the target interactive interface to regain focus, perform the interface index resynchronization operation.
[0128] When the target application enters the target interactive interface to regain focus, the Tab container Activity triggers the lifecycle recovery onResume without triggering the interface view switching callback (i.e., Tab switching). At this time, the interface index corresponding to the onResume stage is used to update the interface index cached in the interface view switching callback (Tab switching) to achieve interface index resynchronization.
[0129] S405. Determine the interface index of the resynchronized interface view switching callback cache as the interface index of the target interactive interface.
[0130] S406. Use the interface index of the target interactive interface to manage floating window components.
[0131] The above mainly describes the solutions of the embodiments of this application from a methodological perspective. It is understood that the floating window component management device provided in this application, in order to achieve the above functions, includes at least one of the hardware structures and software modules corresponding to each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the various examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the embodiments of this application.
[0132] This application embodiment can divide the floating window component control device into functional modules according to the above method embodiment. For example, each function can be divided into a separate functional module, or two or more functions can be integrated into one functional module. The integrated module can be implemented in hardware or software. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods. The following description uses the example of dividing each function into a separate functional module.
[0133] Figure 5 This is a schematic diagram of the structure of a floating window component control device provided in an embodiment of this application, as shown below. Figure 5 As shown, the floating window component control device 101 includes: The first determining module 1011 is used to respond to the entry of the target interactive interface of the target application on the vehicle system and determine the target business scenario served by the target interactive interface. The second determining module 1012 is used to determine the target enabling information of the target type floating window component among multiple types of floating window components based on the target business scenario; wherein, the target enabling information is used to indicate whether the target type floating window component is disabled; the multiple types of floating window components are divided based on the type of content they carry; The control module 1013 is used to control the target-type floating window component on the target interaction interface based on the target enable information.
[0134] In one possible implementation, the target business scenario is one of many business scenarios for the target application; The various business scenarios include: dialogue-based business scenarios, control-based business scenarios for controlling in-vehicle devices, and settings-based business scenarios for writing personal information and personalized settings.
[0135] In one possible implementation, multiple types of floating window components are included, such as smart agent-type floating window components and user visual interface (VUI)-type floating window components.
[0136] In one possible implementation, the smart agent-type floating window component includes: a chat-type floating window component and a media-type floating window component; Among them, the chat-type floating window component is used to display the user's questions and the intelligent interactive object's responses; Media-related floating window components are used to display media information, including news, graphics, and animations.
[0137] In one possible implementation, VUI-type floating window components include image-based floating window components, status prompt-based floating window components, and voice feedback-based floating window components; Among them, the image-based floating window component is used to display the image of the intelligent interactive entity; Status indicator floating window components are used to display the current interaction status of the intelligent interactive entity; the interaction status includes listening, thinking, and responding; A voice feedback floating window component used to display the text recognition content corresponding to the user's voice input.
[0138] In one possible implementation, the floating window component management device 101 may further include a scene recognition module, which reads the cached interface index when the target application regains focus after losing focus, and determines the target business scene based on the cached index, so as to solve the state drift problem caused by the failure to trigger the interface switching callback.
[0139] In one possible implementation, the floating window component management device 101 may further include a recovery module. The recovery module is used to automatically restore the enabled state of the intelligent agent-type floating window component and the VUI-type floating window component to the enabled state when it detects that the target application has entered the background state, that is, when the target application loses focus, and to remove the blocking restrictions for dialogue-type business scenarios, so as to realize the background self-healing of the floating window management strategy and avoid the floating window function being incorrectly suppressed when the application is woken up again.
[0140] In one possible implementation, the first determining module 1011 is specifically used to: determine the first interface index of the lifecycle recovery phase triggered by switching to the target interactive interface as the interface index of the target interactive interface if a first condition is met; wherein the first condition is that the target application loses focus before the target interactive interface is switched to; or, if the first condition is not met, determine the second interface index of the interface view Tab switching callback triggered by switching to the target interactive interface as the interface index of the target interactive interface.
[0141] In one possible implementation, the second determining module 1012 is specifically used to: query a pre-stored mapping dataset based on the target business scenario to determine the target enabling information corresponding to the target type of floating window component; wherein, the mapping dataset includes mapping information corresponding to each type of business scenario in multiple business scenarios, and the mapping information is used to indicate the enabling information of each type of floating window component in multiple types of floating window components; wherein, the mapping information corresponding to the dialogue type business scenario in the mapping dataset indicates that image type floating window components, voice feedback type floating window components, and chat type floating window components are disabled, while status prompt type floating window components and media type floating window components are not disabled.
[0142] When the target enable information indicates that the target is disabled, updating the target-type floating window component, closing the displayed target-type floating window component, or resetting the target-type floating window component to its initial state is prohibited; when the target enable information indicates that the target is not disabled, creating the target-type floating window component, updating the target-type floating window component, and displaying the target-type floating window component are allowed.
[0143] In one possible implementation, the floating window component control device 101 further includes a cut-in recognition module. The cut-in recognition module is used to identify the cut-in process of the target interactive interface. The recognition conditions include any one of the following: receiving a touch cut-in command from the target interactive interface; receiving a voice interaction command from a service covered by the target business scenario; receiving a wake-up command from the target application when the target interactive interface is the homepage of the target application; receiving a wake-up command from the target application when the target interactive interface is the interface where the target application last lost focus, and the time between the time of the last loss of focus and the time of the wake-up command does not exceed a preset time threshold.
[0144] In some possible implementations, the above modules can be software functional modules, hardware circuit modules, or a combination of software and hardware.
[0145] In implementing the functions of the integrated modules described above using hardware, this application provides a possible structure for the control device involved in the above embodiments. For example... Figure 6 As shown, the control device 600 includes a processor 602 and a bus 604. The control device may also include a memory 601; the control device 600 may also include a communication interface 603.
[0146] Processor 602 may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with embodiments of this application. Processor 602 may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with embodiments of this application. Processor 602 may also be a combination that implements computing functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0147] Communication interface 603 is used to connect to other devices via a communication network. This communication network can be Ethernet, Radio Access Network (RAN), or Wireless Local Area Network (WLAN), etc.
[0148] The memory 601 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but is not limited thereto.
[0149] In one possible implementation, the memory 601 can exist independently of the processor 602. The memory 601 can be connected to the processor 602 via a bus 604 and is used to store instructions or program code. When the processor 602 calls and executes the instructions or program code stored in the memory 601, it can implement the floating window component management method provided in this embodiment. In another possible implementation, the memory 601 can also be integrated with the processor 602.
[0150] Bus 604 can be an Extended Industry Standard Architecture (EISA) bus, etc. Bus 604 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0151] Some embodiments of this application provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions that, when executed on a processor, cause the processor to perform the floating window component management method as described in any of the above embodiments.
[0152] Exemplary examples show that the aforementioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., compact disks (CDs), digital versatile disks (DVDs), etc.), smart cards, and flash memory devices (e.g., erasable programmable read-only memory (EPROMs), cards, sticks, or key drives, etc.). The various computer-readable storage media described in this application may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0153] This application provides a computer program product containing instructions that, when run on a processor, cause the processor to execute the floating window component management method of any of the above embodiments.
[0154] This application provides a vehicle including a control device as described in any of the above embodiments; or a computer-readable storage medium as described in any of the above embodiments; or a computer program product as described in any of the above embodiments.
[0155] The vehicle provided in this application may be a passenger vehicle or a freight vehicle, and may also be an electric vehicle or a hybrid vehicle. This application does not limit the specific purpose or power type of the vehicle, and the choice can be made according to actual needs.
[0156] A vehicle consists of a body and wheels. The body is used for passengers and for carrying goods, while the wheels are mounted underneath the body to support it and allow it to roll on the road, thus enabling the vehicle to move.
[0157] In some possible examples, the vehicle is equipped with a control system, which typically adopts a layered distributed architecture. From the bottom layer to the top layer, it can be roughly divided into a perception layer, a control layer, a coordination layer, and an interaction layer. The layers communicate with each other through an in-vehicle network.
[0158] The perception layer mainly consists of various sensors distributed inside and outside the vehicle, including but not limited to external environment cameras, millimeter-wave radar, lidar, ultrasonic sensors, in-vehicle driver monitoring cameras, microphone arrays, and various vehicle status sensors (such as wheel speed sensors, inertial measurement units, temperature sensors, etc.). The perception layer is responsible for collecting multi-dimensional data such as the vehicle's own operating status, driver behavior, and external driving environment in real time.
[0159] The control layer consists of dozens to hundreds of electronic control units (ECUs), distributed across multiple functional domains including powertrain, chassis, body, intelligent driving, and infotainment. Each ECU embeds real-time control software that performs closed-loop control of the vehicle's actuators based on preset control strategies or upper-level commands, and generates corresponding alarm signals when abnormal conditions are detected. Typical ECUs include the engine control unit, transmission control unit, brake control unit, steering control unit, vehicle stability control unit, airbag control unit, intelligent driving domain controller, and in-vehicle infotainment unit.
[0160] The coordination layer typically exists in the form of a domain controller or a central computing platform, responsible for cross-domain data fusion, global state management, and collaborative decision-making. The coordination layer centrally processes and schedules the sensing data and control commands that were originally scattered across various functional domains, connecting downwards to various electronic control units and supporting human-machine interaction functions upwards.
[0161] The interaction layer mainly includes in-cabin display devices (such as instrument panel, central control screen, head-up display), voice interaction system, haptic feedback device, etc., which are responsible for presenting vehicle status, warning information and driving suggestions to the driver in the form of visual, auditory or tactile, while receiving the driver's touch, voice and other input commands.
[0162] Data transmission and interaction between different layers are achieved through the vehicle bus network. Common vehicle bus protocols include CAN (Controller Area Network), CAN FD (CAN with Flexible Data-Rate), LIN (Local Interconnect Network), FlexRay, and vehicle Ethernet, which supports high-bandwidth data transmission. Among these, CAN and CAN FD buses are widely used for communication in real-time control domains such as powertrain and chassis, while vehicle Ethernet is gradually being applied to high-bandwidth sensor data transmission in the intelligent driving domain and multimedia interaction scenarios in the cockpit domain.
[0163] In some possible examples, the cockpit domain controller is configured with a processor and memory for executing the floating window component management method provided in the embodiments of this application. Exemplarily, the control device of this application is arranged in the cockpit domain controller. Exemplarily, the cockpit domain controller deploys multiple functional modules for executing the various method steps.
[0164] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for controlling a floating window component, characterized in that, The floating window component management method includes: In response to the entry of the target interactive interface of the target application on the vehicle system, the target business scenario served by the target interactive interface is determined. Based on the target business scenario, target enable information is determined for the target type of floating window component among multiple types of floating window components; wherein, the target enable information is used to indicate whether the target type of floating window component is disabled; the multiple types of floating window components are classified based on the type of content they carry; Based on the target enabling information, the target-type floating window component on the target interactive interface is controlled.
2. The floating window component control method according to claim 1, characterized in that, The target business scenario is one of the multiple business scenarios of the target application; The various business scenarios include: dialogue-based business scenarios, control-based business scenarios for controlling in-vehicle devices, and settings-based business scenarios for writing personal information and personalized settings.
3. The floating window component control method according to claim 2, characterized in that, The various floating window components include intelligent agent-type floating window components and user visual interface (VUI)-type floating window components.
4. The floating window component control method according to claim 3, characterized in that, The intelligent agent-type floating window component includes: a chat-type floating window component and a media-type floating window component; The chat-type floating window component is used to display the user's questions and the intelligent interactive object's responses; The media-type floating window component is used to display media-type information, including news, graphics, and animations.
5. The floating window component control method according to claim 4, characterized in that, The VUI-type floating window components include image-type floating window components, status prompt-type floating window components, and voice feedback-type floating window components; The image-type floating window component is used to display the image of the intelligent interactive object; The status indicator floating window component is used to display the current interaction status of the intelligent interactive entity; the interaction status includes listening, thinking, and responding; The voice feedback floating window component is used to display the text recognition content corresponding to the user's voice input.
6. The floating window component control method according to any one of claims 1-5, characterized in that, Determining the target business scenario of the target interactive interface service includes: Determine the interface index of the target interactive interface; Based on the interface index, the target business scenario is determined.
7. The floating window component control method according to claim 6, characterized in that, Determining the interface index of the target interactive interface includes: If the first condition is met, the first interface index indicated by the onResume stage of lifecycle recovery triggered by switching to the target interactive interface is determined as the interface index of the target interactive interface. The first condition is that the target application loses focus before the target interactive interface is accessed.
8. The floating window component control method according to claim 7, characterized in that, Determining the interface index of the target interactive interface includes: If the first condition is not met, the second interface index of the interface view switching callback indicator triggered by switching to the target interactive interface is determined and is determined as the interface index of the target interactive interface.
9. The floating window component control method according to claim 5, characterized in that, The step of determining the target enable information corresponding to the target type of floating window component among multiple types of floating window components based on the target business scenario includes: Based on the target business scenario and the pre-stored mapping dataset, determine the target enable information corresponding to the target type floating window component; The mapping dataset includes mapping information corresponding to each of the multiple business scenarios; the mapping information is used to indicate the enable information of each of the multiple floating window components.
10. The floating window component control method according to claim 9, characterized in that, The mapping information corresponding to the dialogue-type business scenarios in the mapping dataset satisfies: The enable information for both the status notification floating window component and the media floating window component indicates that they are not disabled; The enable information for the image-type floating window component, the voice feedback-type floating window component, and the chat-type floating window component all indicate that they are disabled.
11. The floating window component control method according to claim 9, characterized in that, The mapping information corresponding to the control-type business scenario or the mapping information corresponding to the setting-type business scenario in the mapping dataset satisfies: The enable information for the chat-type floating window component indicates that it is not disabled; The enable information for the status prompt floating window component, the image floating window component, the voice feedback floating window component, and the media floating window component all indicate that they are disabled when the user has preset them to be disabled, and are not disabled when the user has not preset them to be disabled.
12. The floating window component control method according to claim 5, characterized in that, The method further includes: If the target application loses focus, restore the enable information of the image-type floating window component and the chat-type floating window component to indicate that they are not disabled.
13. The floating window component control method according to claim 1, characterized in that, The target interactive interface entry recognition process includes: If the second condition is met, the target interactive interface is identified and accessed. The second condition includes any one of the following: Received a touch input command to the target interactive interface; Receive voice interaction commands for the services covered by the target service scenario; When the target interactive interface is the homepage of the target application, a wake-up command of the target application is received; When the target interactive interface is the interactive interface where the target application last lost focus, a wake-up command is received from the target application, and the time between the last time the focus was lost and the time the wake-up command was issued does not exceed a preset time threshold.
14. A floating window component control device, characterized in that, The floating window component control device includes: The first determining module is used to determine the target business scenario served by the target interactive interface in response to the entry of the target application on the vehicle system. The second determining module is used to determine the target enabling information corresponding to the target type of floating window component among multiple types of floating window components based on the target business scenario; wherein, the target enabling information is used to indicate whether the target type of floating window component is disabled; the multiple types of floating window components are divided based on the type of content they carry; The control module is used to control the target-type floating window component on the target interaction interface based on the target enable information.
15. A control device, characterized in that, The control device includes: a memory and a processor; the memory and the processor are coupled; the memory is used to store instructions executable by the processor; when the processor executes the instructions, it performs the floating window component management method as described in any one of claims 1-13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed on a processor, cause the processor to perform the floating window component management method as described in any one of claims 1-13.
17. A computer program product, characterized in that, It includes a computer program; when the computer program is executed, it is able to implement the floating window component management method as described in any one of claims 1-13.
18. A vehicle, characterized in that, It includes the control device as claimed in claim 15; or the computer-readable storage medium as claimed in claim 16; or the computer program product as claimed in claim 17.
