Mode switching method and device, electronic equipment and computer readable storage medium
By integrating multiple configuration items into a mode through a mode switching method, unified adjustment of terminal devices is achieved, solving the problem of complex user operation and improving user experience and efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-14
- Publication Date
- 2026-04-03
AI Technical Summary
As the number of configuration options on terminal devices increases, users need to adjust each option individually, leading to complex operations and a poor user experience.
By using a mode switching method, multiple configuration items are integrated into a mode, and the unified adjustment of multiple configuration items can be achieved by switching modes, simplifying user operations.
It simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency and user experience, avoids interface lag and black screen phenomena, and optimizes the mode parameter configuration process.
Smart Images

Figure CN121785692A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, specifically to a mode switching method, apparatus, electronic device, and computer-readable storage medium. Background Technology
[0002] Mobile phones, tablets, and other terminal electronic devices can switch system colors, themes and wallpapers, launchers, application icon styles, performance settings, and other configuration options to improve the user experience.
[0003] However, with the development of terminal devices, users have more and more adjustable configuration items. When multiple configuration items need to be adjusted, users need to adjust each configuration item one by one, which makes the operation complicated and the user experience low. Summary of the Invention
[0004] This application provides a mode switching method, apparatus, electronic device, and computer-readable storage medium, which can simplify the complexity of adjusting multiple terminal configurations, improve efficiency, and enhance user experience.
[0005] In a first aspect, embodiments of this application provide a mode switching method applied to a terminal device, the method comprising: If a switching operation for the current mode is detected, the switching feature information corresponding to the switching operation is determined, and the current mode corresponds to the first parameter configuration information of at least one configuration item. The target mode is determined based on the switching feature information, and the target mode corresponds to the second parameter configuration information of the configuration item. According to the configuration information of the second parameter, the current mode is switched to the target mode to obtain the mode switching result.
[0006] Secondly, embodiments of this application also provide a mode switching device applied to a terminal device, the device comprising: The detection module is used to determine the switching feature information corresponding to the switching operation if a switching operation for the current mode is detected, wherein the current mode corresponds to the first parameter configuration information of at least one configuration item. The determining module is used to determine a target mode based on the switching feature information, wherein the target mode corresponds to the second parameter configuration information of the configuration item; The control module is used to control the switching from the current mode to the target mode according to the second parameter configuration information, and obtain the mode switching result.
[0007] Thirdly, embodiments of this application also provide an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps in the mode switching method described above.
[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in the mode switching method described above.
[0009] Fifthly, embodiments of this application also provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in embodiments of this application.
[0010] In summary, if the terminal device of this application embodiment detects a switching operation for the current mode, it determines the switching feature information corresponding to the switching operation. The current mode corresponds to the first parameter configuration information of at least one configuration item. The target mode is determined according to the switching feature information. The target mode corresponds to the second parameter configuration information of the configuration item. The device controls the switching from the current mode to the target mode according to the second parameter configuration information to obtain the mode switching result.
[0011] In this embodiment, multiple configuration items are integrated into a mode. By switching modes, multiple configuration items can be adjusted in a unified manner, so that users do not need to adjust each configuration item individually. This simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience. Attached Figure Description
[0012] To more clearly illustrate the technical solutions in this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0013] Figure 1 This is a schematic diagram illustrating a scenario where a terminal device, as provided in an embodiment of this application, executes the mode switching method. Figure 2 This is a first flowchart illustrating the mode switching method provided in this application embodiment; Figure 3 This is a second flowchart illustrating the mode switching method provided in the embodiments of this application; Figure 4This is a schematic diagram of animation playback provided in an embodiment of this application; Figure 5 This is a schematic diagram of the display mode switching result provided in an embodiment of this application; Figure 6 This is a third flowchart illustrating the mode switching method provided in the embodiments of this application; Figure 7 This is a fourth flowchart illustrating the mode switching method provided in the embodiments of this application; Figure 8 This is a fifth flowchart illustrating the mode switching method provided in the embodiments of this application; Figure 9 This is a schematic diagram of the mode switching device provided in the embodiments of this application; Figure 10 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application.
[0014] Explanation of reference numerals in the attached figures: 101-Terminal device; 901-Detection module; 902-Determination module; 903-Control module; 1001-Processor; 1002-Memory; 1003-Power supply; 1004-Input unit. Detailed Implementation
[0015] 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 the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0016] This application provides a mode switching method, apparatus, electronic device, and computer-readable storage medium. Specifically, this application provides a mode switching apparatus suitable for electronic devices, including terminal devices such as laptops, desktop computers, mobile phones, tablets, or televisions.
[0017] In this embodiment, the mode switching method is implemented by a terminal device as an example. For example, please refer to... Figure 1 , Figure 1 This is a schematic diagram illustrating a scenario where a terminal device, according to an embodiment of this application, executes the mode switching method. Specifically, the execution process of the mode switching method by the terminal device is as follows: If the terminal device 101 detects a switching operation for the current mode, it determines the switching feature information corresponding to the switching operation. The current mode corresponds to the first parameter configuration information of at least one configuration item. The terminal device 101 determines the target mode based on the switching feature information. The target mode corresponds to the second parameter configuration information of the configuration item. The terminal device 101 controls the switching from the current mode to the target mode according to the second parameter configuration information, and obtains the mode switching result.
[0018] For example, when a user operates the terminal device to switch modes, the target mode to be switched to is determined based on the user's switching operation. Then, the mode switch is performed according to the parameter configuration information of multiple configuration items corresponding to the target mode, and the mode switch result is obtained.
[0019] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0020] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0021] Please see Figure 2 , Figure 2 This is a first flowchart illustrating a mode switching method provided in an embodiment of this application. Although the flowchart shows a logical order, in some cases, the steps shown or described can be performed in a different order than that shown in the flowchart. Specifically, this mode switching method is applied to a terminal device, and the specific flow of the mode switching method is as follows: S201. If a switching operation for the current mode is detected, the switching feature information corresponding to the switching operation is determined, and the current mode corresponds to the first parameter configuration information of at least one configuration item.
[0022] It is understood that the switching operation is an operation for switching modes, which is used to trigger the start of the mode switching task. In the embodiments of this application, the switching operation can be triggered by the user, for example, the switching operation includes triggering operations such as button operation, touch operation, or swipe operation. Optionally, the switching operation can also be a system operation, for example, setting the mode switching as a timed task, which automatically triggers the switching operation to start the mode switching task when the set time is reached.
[0023] It is understood that the current mode is the mode before the switch, for example, the current mode includes the mode currently running on the terminal device. It should be emphasized that, in this embodiment, the current mode corresponds to the first parameter configuration information of multiple configuration items. The first parameter configuration information is the parameter configuration of the configuration item corresponding to the current mode. That is, the current mode integrates the parameter configuration of multiple configuration items. Here, a configuration item is a functional item to be configured, including color, theme, wallpaper, and resolution, etc. Correspondingly, the current mode includes the parameter configuration of these multiple configuration items. For example, the current mode corresponds to a normal color, a default theme, a user-defined initial wallpaper, and a standard resolution, etc.
[0024] Among them, the switching feature information refers to the features corresponding to the switching operation. It can be understood that the switching feature information varies depending on the user's action when triggering the switching operation. For example, when the switching operation of the current mode is triggered by a button operation, the switching feature information includes the force of the button, the duration, the position and angle of the toggle, etc.; when the switching operation of the current mode is triggered by a touch operation, the switching feature information includes the trigger duration and the trigger temperature, etc.; when the switching operation of the current mode is triggered by a swipe operation, the switching feature information includes the swipe angle, the swipe distance and the swipe duration, etc.
[0025] Understandably, by determining the switching feature information when a switching operation is detected, it is helpful to control the switching of the current mode based on the switching feature information, so that the result of the mode switching is more in line with expectations.
[0026] S202. Determine the target mode based on the switching feature information, wherein the target mode corresponds to the second parameter configuration information of the configuration item.
[0027] It is understandable that the target mode is the mode to be switched to. This target mode contains the second parameter configuration information for multiple configuration items. The second parameter configuration information is the parameter configuration of the configuration items corresponding to the target mode. It is also understandable that the configuration items involved in the target mode and the current mode can be the same or different. The configuration items will not be listed and elaborated here. For example, the target mode can be switched from the current mode's normal colors, default theme, user-set initial wallpaper, and standard resolution to a target mode with lower saturation, lower color temperature, reading-oriented theme, wallpaper, and resolution.
[0028] Understandably, determining the target mode to switch to helps control the execution of mode switching actions based on that target mode.
[0029] S203. Control the switching from the current mode to the target mode according to the second parameter configuration information to obtain the mode switching result.
[0030] For example, by adjusting the terminal device's configuration information from the first parameter corresponding to the current mode to the second parameter configuration information, the current mode can be switched to the target mode. The mode switching result includes switching to the target mode or displaying the interface theme and colors corresponding to the target mode.
[0031] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0032] Optionally, in this application embodiment, a physical control can be set on the terminal device to realize "one-click switching" of multiple configuration items through the physical control. That is, optionally, in some embodiments of this application, the terminal device includes a physical control, which is used to control the switching of the current mode. The switching operation includes a trigger operation for the physical control, and the trigger operation includes at least one of the following: a toggle operation, a press operation, a touch operation, or a slide operation. If a switching operation for the current mode is detected, the switching feature information corresponding to the switching operation is determined, including: If the triggering operation is detected, feature extraction is performed on the triggering operation to obtain the switching feature information; The switching feature information includes at least one of the following: toggle position information, toggle angle information, pressure information, touch duration information, or swipe distance information; The configuration items include at least one of the following: color, blue light percentage, desktop style, theme, wallpaper, icon type, performance type, resolution, refresh rate, or global brightness range.
[0033] For example, users can operate the physical control by flicking, pressing, touching, or swiping to initiate a switching operation. In this embodiment, the physical control can be located on the side of the terminal device, such as a physical button similar to the volume control button on a mobile phone, or a physical button for power on / off or screen lock control. The physical control can also be another physical button located next to this physical button. Optionally, the physical control can also be the physical button itself used for volume adjustment, power on / off, or screen lock control. For example, users can switch the function of the physical button by long-pressing, using voice commands, or configuring the button's function, thus changing the physical button from volume adjustment or power on / off / screen lock control to mode switching control.
[0034] In this embodiment of the application, the user can operate the physical control to achieve "one-click switching" of modes. For example, the user can toggle the physical control to switch from the current normal mode to reading mode; or the user can slide the physical control to switch from reading mode to night mode, etc.
[0035] In this application embodiment, the configuration items include at least color, blue light ratio, desktop style, theme, wallpaper, icon type, performance type, resolution, refresh rate or global brightness range, etc., without limitation. Multiple configuration items corresponding to the mode can be pre-configured by the device manufacturer at the factory or added or deleted in response to the user's configuration.
[0036] It is understood that the embodiments of this application can set multiple modes, and switching control between multiple modes can be achieved through switching operations. Multiple modes can be distinguished and identified by different switching characteristics corresponding to the switching operations, so that different switching characteristics correspond to different modes.
[0037] For example, taking the switching operation as a toggle operation on a physical control as an example, the different positions to which the physical control is toggled can be identified or matched with different patterns. That is, optionally, in some embodiments of this application, the switching feature information includes toggle position information. The toggle position information is obtained by triggering a hardware interrupt signal after detecting a change in the position of the physical control caused by the trigger operation, and by driving the detection of the position of the physical control through the hardware interrupt signal. For example, an event code is defined for each position of the physical control (also called a physical switch). When the user pulls the physical control, the physical control hardware triggers a hardware interrupt. The interrupt event of the physical control is judged in the driver. Based on the position data reported in the interrupt, the position of the physical control is judged. The driver sends a key event to the system layer. The key code of the key event corresponds to the previously defined code.
[0038] The step "determine the target mode based on the switching feature information" includes: The toggle position information is determined based on the toggle position information, and the preset mode corresponding to the toggle position information is set as the target mode, wherein the preset mode is pre-configured with the second parameter configuration information for the configuration item.
[0039] For example, the movable positions of the physical control can be marked as different toggle positions, and the mode corresponding to the toggle position is taken as the target mode. For instance, three movable positions can be set for the physical control, corresponding to toggle position 1, toggle position 2, and toggle position 3, respectively. Toggle position 1, toggle position 2, and toggle position 3 correspond to normal mode, reading mode, and night mode, respectively. Accordingly, if the physical control is moved to toggle position 2, it is determined to be toggle position 2, that is, the target mode is reading mode at this time, so the mode is switched to reading mode for the user to read.
[0040] In this embodiment, different modes correspond to different parameter configuration information for multiple configuration items. For example, the normal mode corresponds to normal colors, a harmful blue light ratio of 8%-12% in visible light, a normal launcher, a default theme, a default wallpaper or a user-defined wallpaper, a normal colored icon, a default performance scheme, a standard resolution, a global refresh rate with a standard frame rate, and a global brightness range limited to 1 nit-2000 nits. The reading mode corresponds to colors with lower saturation and lower color temperature, a harmful blue light ratio of 6%-8% or 2%-4% in visible light, a book-style launcher, a book cover theme, a book cover wallpaper, colored icons with borders / black and white icons, a low-power performance scheme, a standard resolution, a global refresh rate with a low frame rate, and a global brightness range limited to 1 nit-800 nits.
[0041] For example, taking a switching operation as a toggle operation on a physical control as an example, different angles to which the physical control is toggled can be used to identify or match different modes. That is, optionally, in some embodiments of this application, the switching feature information includes the toggle angle information, which includes the angle between the position of the physical control after toggle and its initial position, or the angle between the position of the physical control after toggle and its position before toggle. The step "determine the target mode according to the switching feature information" includes: Calculate the angle percentage information corresponding to the toggle angle information, wherein the angle percentage information includes the ratio between the toggle angle information and the available angle threshold information; Based on the angle ratio information and the parameter extreme value information of the configuration item, the second parameter configuration information corresponding to the toggle angle information is determined, wherein the mode corresponding to the second parameter configuration information is the target mode.
[0042] The initial position refers to the starting point of the first flick. The flick angle information can be the angle between the position after flicking and the initial position, or the angle between the position after flicking and the position before flicking, both reflecting the arc of the flick.
[0043] Among them, the available angle threshold information refers to the maximum angle that can be turned, and the angle proportion information refers to the ratio between the turning angle information and the available angle threshold information, that is, the ratio of the turning radius to the total available radius, reflecting the turning proportion in the available radius.
[0044] Among them, the extreme value information of the configuration item refers to the maximum and minimum values that the configuration item can select. For example, taking the global brightness range limit as an example, if the global brightness range limit is 1 nit-2000 nit, then the extreme value information of this parameter includes 1 nit and 2000 nit.
[0045] In this embodiment, the second parameter configuration information is determined based on the angle proportion information and the parameter extreme value information, thereby achieving dynamic determination of the target mode based on the toggle angle. For example, if the angle proportion information is 10%, and the parameter extreme value information corresponding to the global brightness range limit includes 1 nit and 2000 nit, then the global brightness range is limited to 1 nit-200 nit. That is, the parameter configuration information is determined proportionally from the parameter extreme value information according to the proportion corresponding to the angle proportion information. Similarly, the proportion of harmful blue light and visible light can be calculated proportionally according to the angle proportion information, and the wallpaper, theme, resolution, performance scheme, etc., can also be adjusted proportionally according to the brightness of the hue, contrast, etc.
[0046] It is understood that the embodiments of this application make the determination of the target mode no longer dependent on a fixed number of gears, and can obtain target modes with different parameter configuration information as the angle changes continuously, similar to stepless mode adjustment as the angle changes.
[0047] Optionally, different pressure levels can also be matched with different modes, that is, the target mode is determined based on the pressure level. Specifically, in some embodiments of this application, the switching feature information includes the pressure level information, and the step "determine the target mode based on the switching feature information" includes: Obtain information on the relationship between force parameters, including the correspondence between preset pressure information and preset parameter configuration information; The second parameter configuration information corresponding to the pressing force information is determined based on the force parameter change relationship information, wherein the mode corresponding to the second parameter configuration information is the target mode.
[0048] The information on the change of force parameters can be integrated into a mapping table or a curve showing the change of force and parameters. For example, a mapping table can be established between the pressing force and the parameter configuration information. This mapping table records the mapping relationship between each pressing force and each parameter configuration information. The mapping relationship is used to match the second parameter configuration information corresponding to the current pressing force information, and the pattern corresponding to the second parameter configuration information is used as the target pattern.
[0049] The relationship between the changes in this force parameter can be preset, for example, based on empirical values, user habits, or industry standards.
[0050] Optionally, different press durations can also match different modes, that is, the target mode is determined based on the press duration. Specifically, in some embodiments of this application, the switching feature information includes the touch duration information, and the step "determine the target mode based on the switching feature information" includes: Obtain information on the relationship between duration parameters, including the correspondence between preset touch duration information and preset parameter configuration information; The second parameter configuration information corresponding to the touch duration information is determined based on the duration parameter change relationship information, wherein the mode corresponding to the second parameter configuration information is the target mode.
[0051] The information on the change of the duration parameter can be integrated into a mapping table or a curve showing the change of duration and parameter. For example, a mapping table can be established between the press duration and parameter configuration information. This mapping table records the mapping relationship between each press duration and each parameter configuration information. The mapping relationship is used to match the second parameter configuration information corresponding to the current press duration information, and the mode corresponding to the second parameter configuration information is used as the target mode.
[0052] The relationship between the duration parameter and its changes can be preset, for example, based on empirical values, user habits, or industry standards.
[0053] Optionally, different sliding distances can also match different modes, that is, the target mode is determined based on the sliding distance. Specifically, in some embodiments of this application, the switching feature information includes the sliding distance information, and the step "determine the target mode based on the switching feature information" includes: Obtain distance parameter change relationship information, which includes the correspondence between preset sliding distance information and preset parameter configuration information; The second parameter configuration information corresponding to the sliding distance information is determined based on the distance parameter change relationship information, wherein the mode corresponding to the second parameter configuration information is the target mode.
[0054] The distance parameter change relationship information can be integrated into a mapping table or a distance and parameter change curve. For example, a mapping table between sliding distance and parameter configuration information can be established. The mapping table records the mapping relationship between each sliding distance and each parameter configuration information. The mapping relationship is used to match the second parameter configuration information corresponding to the current sliding distance information, and the mode corresponding to the second parameter configuration information is used as the target mode.
[0055] The relationship information regarding the change of this distance parameter can be preset, for example, based on empirical values, user habits, or industry standards.
[0056] In this embodiment, the sliding distance can be recalculated after reaching a set value. For example, a circular distance chart is set and displayed, with a scale for calculating the sliding distance. When the user slides the physical control, the circular distance chart rotates, and the current sliding distance is displayed via a pointer. When the maximum distance is reached, it returns to the starting point of the circular distance chart, and the sliding distance is recorded again. This design ensures that the sliding distance is limited and does not increase indefinitely with continuous sliding, allowing the user to select modes within a limited distance, avoiding the time-consuming and inconvenient problems caused by large distances. Different distances can be matched with different parameter configuration information, which can be dynamically displayed on the terminal interface as the circular distance chart rotates. That is, the user only needs to slide on the surface of the physical control to display the rotating circular distance chart and switch between different parameter configuration information as the sliding progresses. This makes the parameter configuration information visual and selectable, improving the mode switching experience.
[0057] In summary, if the terminal device of this application embodiment detects a switching operation for the current mode, it determines the switching feature information corresponding to the switching operation. The current mode corresponds to the first parameter configuration information of at least one configuration item. The target mode is determined according to the switching feature information. The target mode corresponds to the second parameter configuration information of the configuration item. The device controls the switching from the current mode to the target mode according to the second parameter configuration information to obtain the mode switching result.
[0058] In this embodiment, multiple configuration items are integrated into a mode. By switching modes, multiple configuration items can be adjusted in a unified manner, so that users do not need to adjust each configuration item individually. This simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0059] Furthermore, with the development of terminal devices, users can adjust more and more configuration items. When multiple configuration items need to be adjusted, it involves multiple time-consuming tasks such as interface rendering and process execution, which places high demands on hardware processing power and can easily lead to interface lag or even black screen, affecting the user experience. Based on this, the mode switching method of this application embodiment also provides an experience optimization scheme for configuring multiple configuration items during mode switching. For details, please refer to... Figure 3 , Figure 3 This is a second flowchart illustrating the mode switching method provided in this application embodiment, which further includes: S301. If a switching operation for the current mode is detected, the target animation for the switching operation is determined, wherein the current mode corresponds to the first parameter configuration information of at least one configuration item.
[0060] The target animation is determined based on the switching operation. For example, the target mode to which the device will switch is determined based on the switching operation, and the animation corresponding to that target mode is then used as the target animation. Alternatively, the target animation can be generated based on the target mode. For instance, a gradient animation can be generated to switch from the current mode to the target mode; this gradient animation is the target animation.
[0061] Understandably, determining the target animation when a switching operation is detected helps to ensure that the mode switching process meets expectations by playing that target animation.
[0062] S302. Play the target animation and execute the mode switching action corresponding to the switching operation, wherein the target animation covers the visual content generated when the mode switching action is executed.
[0063] It is understandable that the mode switching action includes a series of actions to switch modes, such as interface drawing and color matrix transmission.
[0064] It is understandable that by playing the target animation to cover the visual content generated when the mode switching action is executed, the target animation can cover up the interface lag, black screen and other phenomena, so that the user is not aware of the lag, black screen and other phenomena generated during the mode switching process.
[0065] S303. If the mode switching action is detected to be completed, the mode switching result is displayed and the target animation is hidden.
[0066] The mode switching result is the result of switching modes, which may include switching to the target mode or displaying the interface theme, colors, etc. corresponding to the target mode.
[0067] Hiding the target animation means that the target animation is not visible to the user, for example, by turning off the target animation or by adjusting the transparency to make the target animation invisible.
[0068] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0069] Furthermore, when mode switching involves parameter configuration of multiple configuration items, playing the target animation on the upper layer to cover the mode switching action can cover up the stuttering, black screen and other phenomena caused by the need to handle multiple drawing tasks for parameter configuration of multiple configuration items, so that users are not aware of stuttering and black screen, and improve the user experience when switching modes.
[0070] Optionally, in this embodiment, the target animation can be played on a newly created layer on top, thereby occluding the visual content generated during the mode switching action. That is, optionally, in some embodiments of this application, the step "playing the target animation and executing the mode switching action corresponding to the switching operation" includes: Create a new target layer, which overwrites the original layer; Play the target animation on the target layer; The mode switching action corresponding to the switching operation is performed based on the original layer, wherein the visual content is displayed through the original layer; The step of displaying the mode switching result and hiding the target animation if the mode switching action is detected to be completed includes: If the mode switching action is detected to be completed, the mode switching result is displayed on the original layer, and the target animation in the target layer is hidden.
[0071] For example, the interface of the current mode is drawn on the current layer, that is, the original layer, and a target layer is created on top of the current layer or the original layer. Correspondingly, the target animation played in the target layer can obscure the visual content in the current layer or the original layer.
[0072] Correspondingly, when playing the target animation through the target layer, the animation mode has been switched and can continue to be executed by the original layer, that is, the interface content corresponding to the target mode is drawn in the original layer.
[0073] Furthermore, after the mode switching action is detected and completed, the target animation in the target layer can be hidden. For example, the target layer can be deleted, or its transparency can be set to transparent (understandably, based on actual needs, the transparency of the target layer can be set to completely transparent, partially transparent, or partially transparent, etc.). That is, the step "hiding the target animation in the target layer" includes: adjusting the transparency of the target layer according to a transparent state or a partially transparent state.
[0074] In the above, the original layer continues to respond to the mode switching action and draws the new interface corresponding to the target mode. The newly created target layer plays the animation to cover the visual content generated by the mode switching, so that the user cannot see the lag, black screen and other phenomena caused by the mode switching.
[0075] In this embodiment, the target animation can be a water ripple animation or a gradient animation, etc. To make the user experience smoother, the target animation can be a water ripple transformation or gradient starting from the current interface. Specifically, a water ripple animation refers to an animation displayed as water ripples gradually spreading, making the animation more dynamic and realistic. A gradient animation is a gradient of pixel colors, for example, gradually switching from one color to another, which can avoid abrupt changes in content.
[0076] In this application embodiment, to avoid the visibility of phenomena such as lag and black screen to the user, an off-screen buffer can be used to handle the mode switching action to prevent interface display lag or black screen. That is, optionally, in some embodiments of this application, the step "playing the target animation and executing the mode switching action corresponding to the switching operation" includes: Play the target animation through the original layer or the newly created target layer, and perform the mode switching action corresponding to the switching operation through the off-screen buffer; The step of displaying the mode switching result and hiding the target animation if the mode switching action is detected to be completed includes: If the mode switching action is detected to be completed, the mode switching result is displayed on the original layer or the target layer, and the target animation is hidden.
[0077] Understandably, when performing mode switching actions through an off-screen buffer, it can reduce the display of content such as lag and black screen on the interface. At this time, the animation can be played through the original layer or the target layer.
[0078] Optionally, in some embodiments of this application, the target animation to be played can be controlled based on the trigger position of the switching operation, so that the animation playback and the trigger position are linked, thereby improving the user's operating experience. That is, optionally, in some embodiments of this application, the step "if a switching operation for the current mode is detected, then determine the target animation for the switching operation" includes: If a switching operation for the current mode is detected, identify the trigger location of the switching operation; Generate a target animation with the trigger position as the starting point of the transformation. The target animation includes a water ripple animation or a color gradient animation based on the starting point of the transformation.
[0079] For example, regarding water ripple animation, please refer to [link / reference]. Figure 4 , Figure 4 This is a schematic diagram of animation playback provided in the embodiment of this application. The midpoint and starting point of the water wave animation correspond to the trigger position (e.g., the finger touch point), realizing the water wave animation spreading outward from the trigger position. This allows the animation starting point to serve as feedback for the user's switching operation, and the animation playback and the user's switching operation are linked, increasing realism and improving the user experience.
[0080] Correspondingly, if the target animation is a water ripple animation, the new interface after the mode switch can be displayed locally and gradually according to the outline of the water ripple animation. That is, optionally, in some embodiments of this application, the target animation includes the water ripple animation, the target animation is displayed through a target layer, the mode switching action is performed based on the original layer, and the step "if the mode switching action is detected to be completed, then display the mode switching result and hide the target animation" includes: If the mode switching action is detected to be completed, the transparency of the target layer is gradually adjusted according to the water ripple outline of the water ripple animation. The target animation is hidden according to the locally adjusted transparency, and the mode switching result is displayed according to the locally adjusted transparency.
[0081] For example, please see Figure 5 , Figure 5 This is a schematic diagram of the display mode switching result provided in the embodiment of this application. The target animation (e.g., water ripple animation) is gradually hidden according to the outline of the water ripples, and correspondingly, the mode switching result that was previously hidden is gradually displayed until the mode switching result is fully displayed.
[0082] In this embodiment of the application, for ease of operation, the target animation is played through the target layer, and the mode switching result is displayed through the original layer. That is, the target layer is set to be partially transparent according to the water ripple outline, thereby displaying the local mode switching result in the underlying original layer.
[0083] Correspondingly, the target animation and mode switching results can also be displayed in the original layer. That is, the original layer gradually updates the interface according to the shape of the water ripple outline, which can also achieve the same effect. Figure 5 The effect in the middle.
[0084] For example, taking a user operation on a physical control located on the side of the terminal device as an example, the starting point of the target animation is the screen edge position corresponding to the physical control. That is, optionally, in some embodiments of this application, the terminal device includes a physical control, the physical control is disposed on the side of the terminal device, the switching operation includes a triggering operation for the physical control, and the step "if a switching operation for the current mode is detected, identify the triggering position of the switching operation" includes: If the trigger operation is detected, the screen edge position corresponding to the physical control is set as the trigger position.
[0085] That is, when the user's operation position is not on the screen, the screen edge near the operation position is used as the starting point of the animation.
[0086] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0087] Furthermore, when mode switching involves parameter configuration of multiple configuration items, playing the target animation on the upper layer to cover the mode switching action can cover up the stuttering, black screen and other phenomena caused by the need to handle multiple drawing tasks for parameter configuration of multiple configuration items, so that users are not aware of stuttering and black screen, and improve the user experience when switching modes.
[0088] Furthermore, the parameter configuration for each mode is currently mainly achieved manually. For example, each parameter needs to be configured individually for each mode, resulting in complex and inefficient mode parameter configuration operations and a poor user experience. Therefore, the mode switching method in this application also provides an optimization scheme for mode parameter configuration. Please refer to [link to relevant documentation]. Figure 6 , Figure 6 This is a third flowchart illustrating the mode switching method provided in this application embodiment. Specifically, the mode switching method includes: S601. If a mode configuration operation for the terminal device is detected, the configuration description information corresponding to the mode configuration operation is obtained.
[0089] The mode configuration operation refers to the operation of configuring the mode, including the configuration of the mode name and the parameters of the configuration items. The mode configuration operation includes interface click operation or voice, such as the user clicking the mode configuration button on the interface or the user activating the mode configuration through voice.
[0090] The configuration description information describes the configuration of the mode; that is, it indicates what mode needs to be configured. For example, the configuration description information includes creating a reading mode, creating a night mode, and a mode suitable for nighttime reading.
[0091] Understandably, obtaining configuration description information after detecting a mode configuration operation helps to use this description information as a reference for subsequent processing in order to obtain the expected results.
[0092] S602. Perform feature extraction on the configuration description information to obtain configuration feature information.
[0093] The configuration feature information refers to the information reflecting the mode characteristics contained in the configuration description information. For example, the configuration feature information includes, but is not limited to, keywords such as "HD", "reading", "night", and "suitable". In this embodiment, the configuration feature information in the configuration description information can be extracted using machine learning models or deep learning models. For example, keywords in the configuration description information can be extracted using natural language processing techniques.
[0094] It is understandable that extracting configuration feature information from the configuration description information can help improve the accuracy of understanding the configuration description information based on this configuration feature information.
[0095] S603. Determine the mode name information and the parameter configuration information of at least one configuration item based on the configuration feature information.
[0096] After extracting the configuration feature information corresponding to the configuration description information, the mode name and configuration item parameters can be determined through this configuration feature information. For example, if the configuration feature information for "HD" is extracted, then the HD mode is configured, that is, the mode name is HD mode, and the configuration items include resolution, the parameters corresponding to the resolution being high resolution or standard resolution, etc.
[0097] S604. Establish the association between the parameter configuration information of each configuration item and the mode name information to obtain the mode parameter configuration result.
[0098] For example, the mode name information can be bound to the parameter configuration information of the configuration item to realize mode construction. For example, a high-resolution HD mode or a reading mode with low saturation and low color temperature can be configured.
[0099] In summary, this application embodiment extracts features from configuration description information and then determines mode name information and parameter configuration information of configuration items based on the extracted configuration feature information, thereby realizing mode parameter configuration based on configuration description information. Users can generate modes and their parameter configurations by inputting configuration description information, simplifying the complexity of mode parameter configuration and improving configuration efficiency and user experience.
[0100] For example, in this embodiment of the application, before the user selects a mode to switch modes, the parameter configurations of multiple configuration items for each mode are pre-configured.
[0101] Optionally, in this embodiment, the pattern name information and the parameter configuration information of the configuration item can be determined by matching the configuration feature information with the mapping rule base. That is, optionally, in some embodiments of this application, the configuration feature information includes keywords, and the step "extracting features from the configuration description information to obtain configuration feature information" includes: Extract keywords from the configuration description information; The step of determining the mode name information and the parameter configuration information of at least one configuration item based on the configuration feature information includes: Based on the keywords, character matching is performed on the mapping rule base to obtain the matching results; Based on the matching results, or the matching results and the priority of each keyword, determine the pattern name information and the parameter configuration information of each configuration item.
[0102] The mapping rule base includes mapping relationships between keywords, pattern names, and parameter configuration information. For example, the mapping rule base includes: "Reading": ["Reading Mode", {"Brightness": 60, "Color Temperature": "Warm"}]; "Night": ["Night Mode", {"Brightness": 40, "Contrast": 80}]; "Movie": ["Cinema Mode", {"Resolution": "4K", "Color": "Vivid"}]; "Game": ["Game Mode", {"Refresh Rate": 120, "Response Time": "1ms"}]; "Eye Protection": ["Eye Protection Mode", {"Blue Light Filter": 70, "Brightness": 50}].
[0103] For example, if the keyword "reading" is extracted, the mode name is "Reading Mode" and the configuration items are brightness and color temperature, with values of 60 and warm color respectively. If the keyword "movie" is extracted, the mode name is "Cinema Mode" and the configuration items are resolution and color, with values of 4K and vivid cinema mode respectively.
[0104] Understandably, if the keywords "reading" and "night" are matched simultaneously, the mapping rule base will be matched according to the priority of the keywords "reading" and "night," with the higher priority taking precedence. For example, if the keyword "reading" has a higher priority than "night," then a reading mode will be generated.
[0105] In this embodiment of the application, in order to improve the accuracy and efficiency of the mapping rule base matching, keywords can be combined to obtain keyword groups, and the mapping rule base can be matched using these keyword groups to quickly obtain the desired pattern. That is, optionally, in some embodiments of this application, the step "perform character matching on the mapping rule base based on the keywords to obtain matching results" includes: The keywords are combined to obtain keyword groups; Based on the keyword group, character matching is performed on the mapping rule base to obtain the matching result; The step of determining the pattern name information and the parameter configuration information of each configuration item based on the matching result, or the matching result and the priority of each keyword, includes: Based on the matching results, or the matching results and the priority of each keyword group, the pattern name information and the parameter configuration information of each configuration item are determined.
[0106] For example, after obtaining the keywords "reading" and "night", we can combine them to obtain keyword groups for nighttime reading. Then, we can directly match the pattern name, configuration items and their parameters suitable for nighttime reading from the mapping rule base.
[0107] Correspondingly, if there are multiple keyword groups that meet the criteria, the mode name and configuration items and their parameters can be filtered based on the priority of the keywords or the priority of the keyword groups.
[0108] In this embodiment of the application, character matching refers to character-level matching, such as filtering pattern names and configuration items that meet the conditions by comparing keywords with decreasing precision.
[0109] Optionally, in this embodiment of the application, in order to reduce the complexity of user input and make user input more open and free, the mapping rule base can be matched by similarity comparison. That is, optionally, in some embodiments of this application, the step "determine the pattern name information and determine the parameter configuration information of at least one configuration item based on the configuration feature information" includes: Based on the keywords or keyword groups, a similarity comparison is performed on the mapping rule base to obtain the similarity comparison results; Based on the similarity comparison results, or the similarity comparison results and the priority of each keyword or keyword group, the pattern name information and the parameter configuration information of each configuration item are determined.
[0110] For example, the similarity between a keyword and each preset keyword in the mapping rule base can be calculated using edit distance or cosine similarity. The preset keyword with the highest similarity and exceeding the similarity threshold is taken as the matching result. That is, a pattern is established based on the pattern name corresponding to the preset keyword and each configuration item and its parameter configuration information.
[0111] Optionally, in this embodiment, a knowledge graph can also be used to analyze the configuration feature information to determine which features pertain to the pattern name and which to the configuration item, thereby more accurately determining the pattern name, configuration item, and their parameter information. That is, optionally, in some embodiments of this application, the step "determining pattern name information and determining parameter configuration information of at least one configuration item based on the configuration feature information" includes: Entity recognition is performed on the keywords based on the knowledge graph to obtain entity information and relationship information; Generate pattern name information based on the entity information, and generate parameter configuration information for at least one configuration item corresponding to the pattern name information based on the relationship information.
[0112] For example, if the configuration description is "suitable for nighttime reading mode," then the keywords "suitable," "nighttime," and "reading" are extracted. Then, through knowledge graph analysis, the entity is determined to be "nighttime reading," and the relation is "suitable." Accordingly, based on the entity, a mode name is generated as "nighttime reading mode," and based on the relation, parameter configuration information is generated: reduced brightness, increased contrast, and a warmer color temperature.
[0113] Optionally, in this embodiment, keywords can also be classified using a classification model to determine which keywords are the corresponding pattern names and which keywords are the corresponding configuration items. That is, optionally, in some embodiments of this application, the step "determining pattern name information and determining parameter configuration information of at least one configuration item based on the configuration feature information" includes: The keywords are classified using a classification model to determine the word category of each keyword; If the word category is a name category, then the pattern name information is generated based on the keywords of the name category; If the word category is a parameter category, then the parameter configuration information of the configuration item is generated based on the keywords of the parameter category.
[0114] For example, a classification model can be trained using multiple mode names and configuration items. This model can then identify whether a keyword belongs to a name category or a parameter category. The parameter category corresponds to a configuration item or a specific parameter associated with that configuration item, not necessarily a mode name. For instance, in the configuration description of a mode suitable for nighttime reading, the keyword "nighttime reading" would be classified as a name category, while the keyword "suitable" would be classified as a parameter category.
[0115] Understandably, categorizing keywords helps improve the accuracy of identifying mode names, configuration items, and parameters.
[0116] In this embodiment of the application, the user's configuration description information may also contain ambiguous words with unclear meanings. In this case, the ambiguous words can be identified through ambiguous word recognition, and then the query text corresponding to the ambiguous word can be generated. By outputting the query text, the clear meaning of the ambiguous word can be obtained by the user inputting it again. That is, optionally, in some embodiments of this application, the configuration feature information includes keywords, and the step "determining the mode name information and determining the parameter configuration information of at least one configuration item based on the configuration feature information" includes: Fuzzy word recognition was performed on the keywords to obtain the recognition results; If the recognition result indicates that the keyword contains a vague word, then a query message for the vague word is generated; Output the query information and receive supplementary description information in response to the query information; The mode name information and the parameter configuration information are determined based on the supplementary description information.
[0117] For example, if the user inputs the configuration description "suitable for reading," the keyword "suitable" is unclear because it's unclear whether it refers to reading at night or during the day. In this case, a query text can be generated based on "suitable" and "reading," such as "Reading at night or reading during the day?" If the user answers "night," the user's intent becomes clear: the user wants a nighttime reading mode suitable for nighttime reading. A mode named "Nighttime Reading Mode" can then be generated, with configuration items including brightness, contrast, and color temperature, and parameter configuration information for low brightness, high contrast, and low color temperature nighttime reading modes, respectively.
[0118] In summary, this application embodiment extracts features from configuration description information and then determines mode name information and parameter configuration information of configuration items based on the extracted configuration feature information, thereby realizing mode parameter configuration based on configuration description information. Users can generate modes and their parameter configurations by inputting configuration description information, simplifying the complexity of mode parameter configuration and improving configuration efficiency and user experience.
[0119] Furthermore, with the development of terminal devices, users can adjust more and more configuration items. When multiple configuration items need to be adjusted, it involves multiple time-consuming tasks such as interface rendering and process execution, which places high demands on hardware processing power and can easily lead to interface lag or even black screen, affecting user experience. Therefore, how to alleviate lag or even black screen during mode switching and improve user experience is a technical problem that urgently needs to be solved. Based on this, the mode switching method of this application also provides a parameter configuration control scheme for each configuration item during mode switching to optimize lag and black screen caused by multiple configuration items during mode switching. For details, please refer to [link to relevant documentation]. Figure 7 , Figure 7 This is a fourth flowchart illustrating the mode switching method provided in this application embodiment. Specifically, the mode switching method includes: S701. If a switching operation for the current mode is detected, a target mode to be switched to is determined based on the switching operation, the target mode including at least one configuration item.
[0120] S702. Determine the adjustment timing information of each configuration item according to the target priority of each configuration item.
[0121] Among them, the target priority is the priority of the configuration item, which is determined by a combination of multiple dimensions such as the importance of the configuration item and resource usage.
[0122] The timing information refers to the sequence in which the parameters of the configuration items are adjusted. This means that the parameters of each configuration item are not adjusted simultaneously, but rather in a specific order. For example, taking configuration items including color and resolution as an example, if the target priority of color is higher than that of resolution, then the color parameters are adjusted first, followed by the resolution parameters.
[0123] Understandably, determining the adjustment timing information of each configuration item based on its target priority helps control the staggered adjustment of each configuration item according to its priority, avoiding resource consumption issues caused by processing a large number of configuration items at the same time.
[0124] S703. The parameters of each configuration item are updated according to the adjustment timing information to obtain the mode switching result.
[0125] For example, after adjusting the color parameters, adjust the resolution parameters, and finally adjust the interface theme parameters.
[0126] The mode switching result is the result of switching modes, which may include switching to the target mode or displaying the interface theme, colors, etc. corresponding to the target mode.
[0127] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0128] Furthermore, when mode switching involves the parameter configuration of multiple configuration items, the adjustment sequence of each configuration item is controlled by the priority of the configuration items, so that different configuration items can be adjusted in a staggered manner according to their priority order. This avoids the need to handle the switching tasks of multiple configuration items at the same time, alleviates the lag and black screen phenomenon during mode switching, improves the user experience, and also allows for the priority processing of more important configuration items, which helps to improve user satisfaction.
[0129] In this application embodiment, the priority of configuration items is adjusted based on whether the execution time of each configuration item exceeds expectations. Specifically, in some embodiments of this application, before the step of "determining the adjustment timing information of each configuration item based on its target priority," the method further includes: For each of the configuration items, obtain the historical execution information of the configuration item, which includes the expected execution time and actual execution time information of the configuration item when the historical time was drawn; The initial priority of the configuration item is adjusted based on the expected execution time and the actual execution time to obtain the target priority.
[0130] Among them, the expected execution time information is the expected execution time of the configuration item. This expected execution time information can be calculated based on the execution time of the configuration item in the historical stage or pre-configured based on the type of configuration item and the size of the task. The actual execution time information is the actual execution time of the configuration item in the historical stage, which is obtained by recording the actual execution time.
[0131] In this embodiment, the initial priority includes the priority set in the initial stage or the priority in the previous configuration. This embodiment adjusts the priority based on the comparison between the actual execution time and the expected execution time, so that the priority of the configuration item can be dynamically adjusted based on the actual execution situation.
[0132] It is understandable that the priority of the configuration items is adjusted based on the previous execution results to obtain the target priority for the current configuration.
[0133] In this embodiment of the application, if the actual execution time exceeds the expected execution time, the priority of the configuration item is reduced; if the actual execution time is less than or equal to the expected execution time, the priority of the configuration item is maintained or increased. That is, optionally, in some embodiments of this application, the step "adjusting the initial priority of the configuration item based on the expected execution time information and the actual execution time information to obtain the target priority" includes: If the actual execution time is greater than the expected execution time, then the initial priority is lowered to obtain the target priority. If the actual execution time is less than or equal to the expected execution time, then the initial priority is set to the target priority.
[0134] In this embodiment of the application, higher priority is executed first, that is, the earlier the adjustment sequence is.
[0135] In this embodiment of the application, the priority of a configuration item can also be comprehensively determined based on multiple dimensions such as the impact of the configuration of the configuration item on user perception, resource consumption, drawing dependencies, and the user's current state, thereby improving the accuracy of priority setting. That is, optionally, in some embodiments of this application, before the step "determine the adjustment timing information of each configuration item according to the target priority of each configuration item", the method further includes: Obtain the perceptual information, resource consumption information, and dependency information corresponding to the configuration item. The resource consumption information includes at least one of rendering time information or required resource percentage information. Obtain user characteristic information, which includes at least one of user status information, environmental characteristic information, and device usage duration information; The target priority of the configuration item is determined based on the perception information, resource usage information, dependency information, or user characteristic information.
[0136] Among them, perceptual information refers to the degree to which the configuration of a configuration item affects the user's senses. For example, if it involves direct changes to interface colors, themes, etc., the user can easily perceive them. However, if it involves changes to desktop icon colors, the user may not easily perceive them because the specific interface of the application is obscured.
[0137] Among them, the resource usage information refers to the resources required by the configuration parameters of the configuration item, including the usage of resources such as CPU, GPU, IO, network bandwidth or memory, or including rendering time information (such as the time occupied by CPU and GPU, etc.). In this application embodiment, the priority is configured according to the level of resource usage. For example, when more resources are required, the priority is lowered, and when less resources are required, the priority is raised.
[0138] Among them, dependency information refers to the topological relationship between configuration items, which is usually represented by a directed acyclic graph (DAG). Nodes are configuration items, and edges are the directions of dependency. For example, two configuration items with a dependency relationship usually need to wait for the other configuration item to be configured before they can be configured. For example, the refresh rate configuration depends on the resolution. At 4K resolution, the refresh rate may be limited to 60Hz, while at 1080P it can reach 120Hz; or the global brightness needs to be adjusted first before the proportion of harmful blue light can be set, etc.
[0139] User status information refers to the user's current state, such as their geographical location, whether they are lying down, watching a movie, playing a game, attending a meeting, or using a terminal device. By considering user status in the configuration item configuration sequence design, the parameter configuration of the configuration items can meet the user's real-time status requirements.
[0140] Among them, environmental characteristic information refers to the environmental characteristics when using the terminal device. This environmental characteristic information includes network environment (such as network quality), actual scene temperature or humidity, or ambient light intensity, etc. By considering environmental characteristics, the parameter configuration order of configuration items is made more in line with the current environmental conditions, thereby improving the rationality of the configuration item order.
[0141] Among them, device usage time information refers to the duration of device use or the duration of device operation. For example, if the device usage time is long and involves adjusting screen brightness, resolution, and the proportion of harmful blue light, then the adjustment of screen brightness, resolution, and the proportion of harmful blue light will be prioritized so that users can quickly relieve fatigue after using the device for a long time.
[0142] In this application embodiment, parameter configuration involving multiple configuration items is prone to stuttering or black screen phenomena. Therefore, this application embodiment can use animation playback to cover the visual content of the interface generated by parameter configuration. That is, optionally, in some embodiments of this application, after the step "if a switching operation for the current mode is detected, determine the target mode to be switched to based on the switching operation", the method further includes: Determine the target animation for the target pattern; Play the target animation, and hide the target animation after detecting that the parameters of the configuration item have been updated.
[0143] Among them, the target animation adapted to the target mode makes the animation playback match the mode switching. The mode switches as the animation plays. When the target animation is hidden after the mode switch is completed, it can avoid the abrupt feeling caused by the large difference between the animation and the interface after the mode switch.
[0144] In this embodiment of the application, the playback of the target animation can be controlled by a target program independent of the operating system. Correspondingly, for configuration items that can also be processed by the target program, the parameter configuration of the configuration item can be processed simultaneously when the target program processes the animation playback. That is, optionally, in some embodiments of this application, the target animation is controlled by a target program independent of the operating system. The configuration item includes a color item. The step "updating the parameters of each configuration item according to the adjustment timing information to obtain the mode switching result" includes: During the playback of the target animation, the target program calls the display service to update the parameters of the color item, thereby obtaining the mode switching result.
[0145] The target program is the program that controls the animation playback. For example, taking Android as the operating system, the target program includes a separate native program independent of the Android system, which controls the playback of the target animation. In addition, if the parameter configuration involving color items is determined based on the timing information, it can directly interact with the display service (SurfaceFlinger) and send a color adjustment matrix to the display service for direct color adjustment. It can be understood that directly interacting for color adjustment during the animation playback time allows the native program playing the animation to replace the Android system itself in calling the color adjustment service, increasing the diversity of color adjustment methods. Furthermore, since the target program is already running, there is no need to restart the Android system to call the service, which also improves the processing efficiency of color items to some extent, especially suitable for processing high-priority configuration items like color items.
[0146] Optionally, in this embodiment of the application, when performing mode switching, the priority of configuration items unrelated to mode switching is reduced to ensure that configuration items related to mode switching can be processed first. That is, optionally, in some embodiments of this application, after the step "if a switching operation for the current mode is detected, then determine the target mode to be switched to based on the switching operation", the method further includes: Identify non-associated configuration items, which are unrelated to the switching of the target mode; Lower the priority of the update task corresponding to the non-associated configuration item.
[0147] For example, when switching themes, the execution priority of background tasks can be lowered.
[0148] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0149] Furthermore, when mode switching involves the parameter configuration of multiple configuration items, the adjustment sequence of each configuration item is controlled by the priority of the configuration items, so that different configuration items can be adjusted in a staggered manner according to their priority order. This avoids the need to handle the switching tasks of multiple configuration items at the same time, alleviates the lag and black screen phenomenon during mode switching, improves the user experience, and also allows for the priority processing of more important configuration items, which helps to improve user satisfaction.
[0150] Furthermore, when configuring parameters of configuration items through mode switching, especially when multiple configuration items are involved, a significant amount of processing resources are required. However, the total available processing resources are limited. Therefore, resource allocation during mode switching is a technical problem that needs to be solved. Based on this, the mode switching method in this application also provides a resource allocation method for multiple configuration items during mode switching to optimize the resource allocation problem when configuring multiple configuration items. For example, please refer to... Figure 8 , Figure 8 This is a fifth flowchart illustrating the mode switching method provided in this application embodiment. Specifically, the mode switching method further includes: S801. If a switching operation for the current mode is detected, the time slice percentage information corresponding to the switching operation is obtained.
[0151] Here, a time slice refers to the length of time allocated to a running process / thread for continuous execution on the CPU / GPU / IO (e.g., bandwidth). The time slice percentage information refers to the ratio of the time slice available for a switching operation to the total available time slices. For example, it is the ratio of the time slice allocated by the terminal device to the process or thread related to the switching operation to the time slice allocated to all processes or threads in total. In this embodiment, the time slice percentage information may also refer to the ratio of the time slice allocated to mode switching to the time slice allocated to non-mode switching. For example, the time slice percentage information includes 8:2, that is, 80% of the time slice is allocated to mode switching, and 20% is allocated to non-mode switching.
[0152] It is understandable that by determining the time slice percentage information corresponding to the switching operation, it is helpful to schedule processing resources based on the time slice percentage information, thereby improving the rationality of resource allocation during mode switching.
[0153] S802. Based on the time slice percentage information, the scheduling processor executes the mode switching action corresponding to the switching operation to obtain the mode switching result.
[0154] For example, the scheduler executes mode switching actions related to mode switching, with a time slice ratio of 8:2 for mode switching and non-mode switching.
[0155] In summary, if the terminal device in this application embodiment detects a switching operation for the current mode, it obtains the time slice ratio information corresponding to the switching operation, schedules the processor to execute the mode switching action corresponding to the switching operation based on the time slice ratio information, and obtains the mode switching result.
[0156] In this embodiment of the application, after detecting a switching operation, the processor is scheduled to perform a mode switching action according to the time slice ratio information corresponding to the switching operation, thereby realizing resource scheduling based on the time slice ratio information during mode switching and improving the rationality of resource allocation during mode switching.
[0157] In this embodiment of the application, mode switching may involve parameter configuration of multiple configuration items. Therefore, when the scheduler executes the mode switching action, it can be scheduled sequentially according to the priority of the multiple configuration items. That is, optionally, in some embodiments of this application, the step "scheduling the processor to execute the mode switching action corresponding to the switching operation according to the time slice proportion information, and obtaining the mode switching result" includes: Based on the switching operation, a target mode to be switched to is determined, and the target mode includes at least one configuration item; The adjustment timing information for each configuration item is determined based on its target priority. The processor is scheduled to perform the mode switching action according to the time slice ratio information and the adjustment timing information to obtain the mode switching result.
[0158] Among them, the target priority is the priority of the configuration item, which is determined by a combination of multiple dimensions such as the importance of the configuration item and resource usage.
[0159] For example, in this embodiment of the application, when scheduling the processor based on the time slice percentage information, the parameters of each configuration item are configured in the order of adjusting the timing information.
[0160] Optionally, in the embodiments of this application, different resource proportion information can be configured for configuration items with different target priorities to achieve further scheduling control of resources. That is, optionally, in some embodiments of this application, the step "scheduling the processor to execute the mode switching action according to the time slice proportion information and the adjustment timing information to obtain the mode switching result" includes: The first resource percentage information of each configuration item is determined based on the target priority of each configuration item. The processor is scheduled to perform the mode switching action according to the time slice ratio information, the adjustment timing information and the first resource ratio information, so as to obtain the mode switching result.
[0161] The first resource proportion information refers to the frequency information of the scheduling processor. For example, the first resource proportion information includes low-frequency scheduling, medium-frequency scheduling and high-frequency scheduling. Different levels of scheduling can be quantified and distinguished by frequency thresholds, which are not limited here.
[0162] It is understandable that by allocating corresponding first resource percentage information for configuration items with different target priorities, each configuration item can schedule the processor to configure the parameters of the configuration item based on different frequencies, thereby achieving a more refined scheduling and control of resources.
[0163] For example, based on the time slice occupancy information corresponding to the switching operation, the processor is scheduled to execute the parameter configuration of the configuration item at different frequencies according to the priority of each configuration item within the corresponding processor occupancy duration.
[0164] It is understandable that the design of the first resource percentage information based on priority ensures that the first resource percentage information corresponding to the same priority can be the same regardless of the mode switched to, while the resource percentage information corresponding to different priorities can be different.
[0165] Accordingly, after determining the time slice proportion information and the adjustment timing information of each configuration item, available time slices can be allocated to each configuration item according to the order of the adjustment timing information of each configuration item. These time slices are then used to sequentially control the parameter configuration of each configuration item. That is, optionally, in some embodiments of this application, the step "scheduling the processor to execute the mode switching action according to the time slice proportion information, the adjustment timing information, and the first resource proportion information, and obtaining the mode switching result" includes: The total available time slices are determined based on the time slice percentage information. Sub-time slices are allocated to each of the configuration items according to the adjusted timing information; Based on the adjusted timing information, the sub-time slices allocated to each configuration item, and the first resource percentage information corresponding to each configuration item, the processor is scheduled to perform the mode switching action to obtain the mode switching result.
[0166] For example, if the scheduling order of color in the configuration item is higher than that of resolution, then a sub-time slice is allocated first for the color configuration item, then a sub-time slice is allocated for the resolution configuration item. Then, according to the adjustment timing information, the processor is scheduled to configure the parameters of the corresponding configuration item in each sub-time slice.
[0167] In this application embodiment, the priority of configuration items is adjusted based on whether the execution time of each configuration item exceeds expectations. Specifically, in some embodiments of this application, before the step of "determining the adjustment timing information of each configuration item based on its target priority," the method further includes: For each of the configuration items, obtain the historical execution information of the configuration item, which includes the expected execution time and actual execution time information of the configuration item when the historical time was drawn; The initial priority of the configuration item is adjusted based on the expected execution time and the actual execution time to obtain the target priority.
[0168] Among them, the expected execution time information is the expected execution time of the configuration item. This expected execution time information can be calculated based on the execution time of the configuration item in the historical stage or pre-configured based on the type of configuration item and the size of the task. The actual execution time information is the actual execution time of the configuration item in the historical stage, which is obtained by recording the actual execution time.
[0169] In this embodiment, the initial priority includes the priority set in the initial stage or the priority in the previous configuration. This embodiment adjusts the priority based on the comparison between the actual execution time and the expected execution time, so that the priority of the configuration item can be dynamically adjusted based on the actual execution situation.
[0170] It is understandable that the priority of the configuration items is adjusted based on the previous execution results to obtain the target priority for the current configuration.
[0171] In this embodiment of the application, if the actual execution time exceeds the expected execution time, the priority of the configuration item is reduced; if the actual execution time is less than or equal to the expected execution time, the priority of the configuration item is maintained or increased. That is, optionally, in some embodiments of the application, before the step "adjusting the initial priority of the configuration item based on the expected execution time information and the actual execution time information to obtain the target priority," the following steps are included: If the actual execution time is greater than the expected execution time, then the initial priority is lowered to obtain the target priority. If the actual execution time is less than or equal to the expected execution time, then the initial priority is set to the target priority.
[0172] In this embodiment of the application, higher priority is executed first, that is, the earlier the adjustment sequence is.
[0173] In this embodiment of the application, the priority of a configuration item can also be comprehensively determined based on multiple dimensions such as the impact of the configuration of the configuration item on user perception, resource consumption, drawing dependencies, and the user's current state, thereby improving the accuracy of priority setting. That is, optionally, in some embodiments of this application, before the step "determine the adjustment timing information of each configuration item according to the target priority of each configuration item", the method further includes: Obtain the perceptual information, resource consumption information, and dependency information corresponding to the configuration item. The resource consumption information includes at least one of rendering time information or required resource percentage information. Obtain user characteristic information, which includes at least one of user status information, environmental characteristic information, and device usage duration information; The target priority of the configuration item is determined based on the perception information, resource usage information, dependency information, or user characteristic information.
[0174] Among them, perceptual information refers to the degree to which the configuration of a configuration item affects the user's senses. For example, if it involves direct changes to interface colors, themes, etc., the user can easily perceive them. However, if it involves changes to desktop icon colors, the user may not easily perceive them because the specific interface of the application is obscured.
[0175] Among them, the resource usage information refers to the resources required by the configuration parameters of the configuration item, including the usage of resources such as CPU, GPU, IO, network bandwidth or memory, or including rendering time information (such as the time occupied by CPU and GPU, etc.). In this application embodiment, the priority is configured according to the level of resource usage. For example, when more resources are required, the priority is lowered, and when less resources are required, the priority is raised.
[0176] Among them, dependency information refers to the topological relationship between configuration items, which is usually represented by a directed acyclic graph (DAG). Nodes are configuration items, and edges are the directions of dependency. For example, two configuration items with a dependency relationship usually need to wait for the other configuration item to be configured before they can be configured. For example, the refresh rate configuration depends on the resolution. At 4K resolution, the refresh rate may be limited to 60Hz, while at 1080P it can reach 120Hz; or the global brightness needs to be adjusted first before the proportion of harmful blue light can be set, etc.
[0177] User status information refers to the user's current state, such as their geographical location, whether they are lying down, watching a movie, playing a game, attending a meeting, or using a terminal device. By considering user status in the configuration item configuration sequence design, the parameter configuration of the configuration items can meet the user's real-time status requirements.
[0178] Among them, environmental characteristic information refers to the environmental characteristics when using the terminal device. This environmental characteristic information includes network environment (such as network quality), actual scene temperature or humidity, or ambient light intensity, etc. By considering environmental characteristics, the parameter configuration order of configuration items is made more in line with the current environmental conditions, thereby improving the rationality of the configuration item order.
[0179] Among them, device usage time information refers to the duration of device use or the duration of device operation. For example, if the device usage time is long and involves adjusting screen brightness, resolution, and the proportion of harmful blue light, then the adjustment of screen brightness, resolution, and the proportion of harmful blue light will be prioritized so that users can quickly relieve fatigue after using the device for a long time.
[0180] In this application embodiment, the processor's operating frequency can be set not only based on the priority of configuration items, but also based on modes. For example, different modes are matched with processor resources of different frequencies. That is, optionally, in some embodiments of this application, the step "scheduling the processor to execute the mode switching action corresponding to the switching operation according to the time slice ratio information, and obtaining the mode switching result" includes: Determine the target mode to which the switching operation is to be performed; Determine the second resource proportion information corresponding to the target mode based on the mode resource occupancy information; Based on the time slice percentage information and the second resource percentage information, the processor is scheduled to perform the mode switching action to obtain the mode switching result.
[0181] For example, in normal mode, the CPU and GPU continue to run in high-performance mode to support complex graphics rendering; in special modes (such as reading mode), the CPU and GPU frequencies are reduced to maintain a basic user experience; and in standby mode, the CPU and GPU run at the lowest frequency, suitable for static content display or minimalist operation.
[0182] It is understandable that the design of the second resource allocation information based on the mode results in different processor operating frequencies in different modes. At this time, the processor's operating frequency mainly focuses on the mode distinction, rather than the priority of specific configuration items. For example, if the same configuration item has the same priority, the resource allocation information is different when switching between different modes, that is, the frequency at which the scheduling processor processes the parameter configuration of the configuration item is different.
[0183] In some scenarios, the priority of both the mode and the configuration item can be considered to set the processor's third resource allocation information. For example, a range of resource allocation information can be set for different modes, and the third resource allocation information of the configuration item can be matched based on the different settings of the configuration item's priority within that range.
[0184] In summary, if the terminal device in this application embodiment detects a switching operation for the current mode, it obtains the time slice ratio information corresponding to the switching operation, schedules the processor to execute the mode switching action corresponding to the switching operation based on the time slice ratio information, and obtains the mode switching result.
[0185] In this embodiment of the application, after detecting a switching operation, the processor is scheduled to perform a mode switching action according to the time slice ratio information corresponding to the switching operation, thereby realizing resource scheduling based on the time slice ratio information during mode switching and improving the rationality of resource allocation during mode switching.
[0186] In summary, the mode switching method of this application provides switching control based on switching feature information corresponding to the switching operation, including switching based on different trigger operations and using physical controls to achieve modular switching. It also provides animation display during mode switching to cover potential interface lag and black screen issues, improving the user experience during mode switching. Furthermore, it provides an efficient configuration scheme for parameters corresponding to each mode; users can analyze and generate mode names, related configuration items, and specific parameter configurations by inputting a simple description, improving the efficiency of mode parameter configuration. Additionally, it provides priority-based configuration order control during mode switching, enabling priority processing of more important configuration items, which helps improve user satisfaction. Finally, it provides a resource allocation scheme during mode switching, making resource allocation more reasonable when switching modes involving multiple configuration items.
[0187] To facilitate better implementation of the mode switching method of this application, this application also provides an application processing apparatus based on the above-described mode switching method. The meanings of the terms used are the same as in the above-described mode switching method, and specific implementation details can be found in the descriptions of the method embodiments.
[0188] Please see Figure 9 , Figure 9 This is a schematic diagram of the mode switching device provided in an embodiment of this application, wherein the mode switching device is applied to a terminal device, and the mode switching device can be specifically as follows: The detection module 901 is used to determine the switching feature information corresponding to the switching operation if a switching operation for the current mode is detected, wherein the current mode corresponds to the first parameter configuration information of at least one configuration item. The determining module 902 is used to determine a target mode based on the switching feature information, wherein the target mode corresponds to the second parameter configuration information of the configuration item; The control module 903 is used to control the switching from the current mode to the target mode according to the second parameter configuration information, and obtain the mode switching result.
[0189] In this embodiment, if the detection module 901 detects a switching operation for the current mode, it determines the switching feature information corresponding to the switching operation. The current mode corresponds to the first parameter configuration information of at least one configuration item. The determination module 902 determines the target mode based on the switching feature information. The target mode corresponds to the second parameter configuration information of the configuration item. The control module 903 controls the switching from the current mode to the target mode according to the second parameter configuration information, thereby obtaining the mode switching result.
[0190] In summary, the embodiments of this application integrate multiple configuration items into a mode, and achieve unified adjustment of multiple configuration items by switching modes. This eliminates the need for users to adjust each configuration item individually, simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0191] In addition, this application also provides an electronic device, such as Figure 10 As shown, it illustrates a structural schematic diagram of the electronic device provided in an embodiment of this application. Specifically: The electronic device may include components such as a processor 1001 with one or more processing cores, a memory 1002 with one or more computer-readable storage media, a power supply 1003, and an input unit 1004. Those skilled in the art will understand that... Figure 10 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein: The processor 1001 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 1002, and by calling data stored in the memory 1002, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 1001.
[0192] The memory 1002 can be used to store software programs and modules. The processor 1001 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
[0193] The electronic device also includes a power supply 1003 that supplies power to various components. Preferably, the power supply 1003 can be logically connected to the processor 1001 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 1003 may also include one or more DC or AC power supplies, recharging systems, power equipment debugging circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0194] The electronic device may also include an input unit 1004, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0195] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 1001 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 1002 according to the following instructions, and the processor 1001 runs the applications stored in the memory 1002, thereby implementing the steps in any of the mode switching methods provided in the embodiments of this application.
[0196] If the terminal device of this application embodiment detects a switching operation for the current mode, it determines the switching feature information corresponding to the switching operation. The current mode corresponds to the first parameter configuration information of at least one configuration item. The target mode is determined according to the switching feature information. The target mode corresponds to the second parameter configuration information of the configuration item. The device controls the switching from the current mode to the target mode according to the second parameter configuration information to obtain the mode switching result.
[0197] In this embodiment, multiple configuration items are integrated into a mode. By switching modes, multiple configuration items can be adjusted in a unified manner, so that users do not need to adjust each configuration item individually. This simplifies the complexity of adjusting multiple configuration items, improves adjustment efficiency, and enhances user experience.
[0198] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0199] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0200] To this end, this application provides a computer-readable storage medium storing a computer program that can be loaded by a processor to execute the steps in any of the mode switching methods provided in this application.
[0201] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.
[0202] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0203] Since the instructions stored in the computer-readable storage medium can execute the steps in any of the mode switching methods provided in this application, the beneficial effects that any of the mode switching methods provided in this application can achieve can be realized, as detailed in the preceding embodiments, and will not be repeated here.
[0204] The above provides a detailed description of a mode switching method, apparatus, electronic device, and computer-readable storage medium provided in this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A mode switching method, characterized in that, Applied to a terminal device, the method includes: If a switching operation for the current mode is detected, the switching feature information corresponding to the switching operation is determined, and the current mode corresponds to the first parameter configuration information of at least one configuration item. The target mode is determined based on the switching feature information, and the target mode corresponds to the second parameter configuration information of the configuration item. According to the configuration information of the second parameter, the current mode is switched to the target mode to obtain the mode switching result.
2. The mode switching method according to claim 1, characterized in that, The terminal device includes physical controls for controlling the switching of the current mode. The switching operation includes a triggering operation on the physical controls, and the triggering operation includes at least one of a toggle operation, a press operation, a touch operation, or a swipe operation. If a switching operation for the current mode is detected, the switching feature information corresponding to the switching operation is determined, including: If the triggering operation is detected, feature extraction is performed on the triggering operation to obtain the switching feature information; The switching feature information includes at least one of the following: toggle position information, toggle angle information, pressure information, touch duration information, or swipe distance information; The configuration items include at least one of the following: color, blue light percentage, desktop style, theme, wallpaper, icon type, performance type, resolution, refresh rate, or global brightness range.
3. The mode switching method according to claim 2, characterized in that, The switching feature information includes the toggle position information, which is obtained by triggering a hardware interrupt signal after a trigger operation causes a change in the position of the physical control, and by using the hardware interrupt signal to drive the detection of the position of the physical control. Determining the target mode based on the switching feature information includes: The toggle position information is determined based on the toggle position information, and the preset mode corresponding to the toggle position information is set as the target mode, wherein the preset mode is pre-configured with the second parameter configuration information for the configuration item.
4. The mode switching method according to claim 2, characterized in that, The switching feature information includes the toggle angle information, which includes the angle between the position of the physical control after it is toggled and its initial position, or the angle between the position of the physical control after it is toggled and its position before it is toggled. Determining the target mode based on the switching feature information includes: Calculate the angle percentage information corresponding to the toggle angle information, wherein the angle percentage information includes the ratio between the toggle angle information and the available angle threshold information; Based on the angle ratio information and the parameter extreme value information of the configuration item, the second parameter configuration information corresponding to the toggle angle information is determined, wherein the mode corresponding to the second parameter configuration information is the target mode.
5. The mode switching method according to claim 2, characterized in that, The switching feature information includes the pressure intensity information, and the step of determining the target mode based on the switching feature information includes: Obtain the force parameter change relationship information, which includes the correspondence between preset pressing force information and preset parameter configuration information; The second parameter configuration information corresponding to the pressing force information is determined based on the force parameter change relationship information, wherein the mode corresponding to the second parameter configuration information is the target mode.
6. The mode switching method according to claim 2, characterized in that, The switching feature information includes the touch duration information, and the step of determining the target mode based on the switching feature information includes: Obtain information on the relationship between duration parameters, including the correspondence between preset touch duration information and preset parameter configuration information; The second parameter configuration information corresponding to the touch duration information is determined based on the duration parameter change relationship information, wherein the mode corresponding to the second parameter configuration information is the target mode.
7. The mode switching method according to claim 2, characterized in that, The switching feature information includes the sliding distance information, and the step of determining the target mode based on the switching feature information includes: Obtain distance parameter change relationship information, which includes the correspondence between preset sliding distance information and preset parameter configuration information; The second parameter configuration information corresponding to the sliding distance information is determined based on the distance parameter change relationship information, wherein the mode corresponding to the second parameter configuration information is the target mode.
8. A mode switching device, characterized in that, Applied to a terminal device, the device includes: The detection module is used to determine the switching feature information corresponding to the switching operation if a switching operation for the current mode is detected, wherein the current mode corresponds to the first parameter configuration information of at least one configuration item. A determining module is used to determine a target mode based on the switching feature information, wherein the target mode corresponds to the second parameter configuration information of the configuration item; The control module is used to control the switching from the current mode to the target mode according to the second parameter configuration information, and obtain the mode switching result.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the mode switching method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the steps of the mode switching method as described in any one of claims 1-7.