Processing method of display information, electronic device and readable storage medium

CN122122545APending Publication Date: 2026-05-29HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-07-12
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

When switching between different display areas of an electronic device, the rate of power consumption and temperature rise is inconsistent, resulting in a degraded user experience.

Method used

By displaying the target application's screen at different resolutions in different display areas, the resolution of the display area is adjusted based on resolution calculation information to adapt it to the display area and the target application, thereby balancing power consumption and temperature rise rate.

Benefits of technology

It improves the power consumption and temperature rise rate of electronic devices when switching between different display areas, thus enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122122545A_ABST
    Figure CN122122545A_ABST
Patent Text Reader

Abstract

The application discloses a processing method for displaying information, an electronic device and a readable storage medium. The processing method for displaying information provided by the application comprises: when different display areas of the electronic device are used to display a picture of a target application, the picture is displayed at different resolutions. When the display area of the electronic device is switched during the running of the target application, the resolution of the picture of the target application is also switched. The application can improve the power consumption and / or heat dissipation of the electronic device.
Need to check novelty before this filing date? Find Prior Art

Description

Methods for processing display information, electronic devices, and readable storage media Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method for processing display information, an electronic device, and a readable storage medium. Background Technology

[0002] With the development of computer technology, electronic devices are becoming increasingly diverse in style and type. In different display modes, electronic devices can use different display areas. For example, for electronic devices with foldable screens, the external screen can be used in the folded state, while the unfolded foldable screen can be used in the unfolded state. When electronic devices use different display areas, the power consumption and / or temperature rise rate differ. Addressing this phenomenon in the display design is one way to improve the power consumption and / or heat dissipation of electronic devices.

[0003] Summary of the Invention

[0004] This application provides a method for processing display information, an electronic device, and a readable storage medium, which can improve power consumption and / or heat generation problems caused by displays. The technical solution is as follows:

[0005] In a first aspect, embodiments of this application provide a method for processing display information, comprising: when an electronic device displays using a first display area, displaying a first screen of a target application in the first display area at a first resolution; in response to a switching operation, the electronic device displays a second screen of the target application using a second display area; when the electronic device displays using a second display area, displaying the second screen of the target application in the second display area at a second resolution; wherein the first display area and the second display area are different display areas of the electronic device.

[0006] In this embodiment, the target application can be a game application, video playback application, live streaming application, or navigation application, etc. Furthermore, the first and / or second screens of the target application can be screens generated when the target module runs, and this target module belongs to the target application. The function of the target module can be, but is not limited to, any of the following: game, video playback, live streaming, or navigation, etc. In addition, the target module can also be a mini-program within the application. For example, if the target application is a social application, the target module can be: a game mini-program, a ride-hailing mini-program, a navigation mini-program, a live streaming module, or a video playback module, etc.

[0007] In this embodiment, the first display area and the second display area can be different display areas of the same display screen of the electronic device, or display areas of different displays of the electronic device. When the target application is running, if the display area used to display the target application is switched to a different display area, the resolution of the target application's screen changes with the switching operation. Since the power consumption and / or temperature rise rate of the electronic device differ when the same target application is displayed in different display areas, by using a resolution corresponding to the display area and the target application to display the target application's screen, the power consumption and / or temperature rise rate of the electronic device can be adjusted, thus improving the problem of excessive power consumption and / or excessively rapid temperature rise when the electronic device uses only one display area to display the target application's screen.

[0008] In one embodiment, the first resolution is determined based on a first default resolution and first resolution calculation information; the first default resolution is the default resolution corresponding to the first screen of the target application displayed in the first display area, and the first resolution calculation information is the resolution calculation corresponding to the first screen of the target application displayed in the first display area; the second resolution is determined based on a second default resolution and second resolution calculation information; the second default resolution is the default resolution corresponding to the second screen of the target application displayed in the second display area, and the second resolution calculation information is the resolution calculation corresponding to the second screen of the target application displayed in the second display area.

[0009] The resolution calculation information includes first resolution calculation information and second resolution calculation information. The default resolution can include a first default resolution and a second default resolution. The resolution calculation information can be used to calculate the corresponding default resolution, which is either the first default resolution or the second default resolution. The resolution calculation information can include: a calculation method and a configuration display coefficient (i.e., the calculation parameters corresponding to the calculation method). When calculating the first resolution or the second resolution, the calculation method and the configuration display coefficient can be used to calculate the corresponding default resolution. For example, if the first resolution calculation information includes a calculation method of division, a configuration display coefficient of an integer n greater than 1, and the first default resolution is rd, then the first resolution is: rd ÷ n.

[0010] In this embodiment of the application, when an electronic device uses different display areas to display the screen of a target application, different calculation methods are used to determine the resolution, so that the resolution of different display areas is adapted to each display area and the resolution of different display areas is adapted to the target application. This can balance the power consumption and / or temperature rise rate of different display areas, thereby improving the problem of affecting the user experience.

[0011] In one embodiment, the method for processing display information further includes: obtaining configuration items corresponding to the target application from the configuration file of the electronic device; storing the resolution calculation information in the configuration items in the configuration item storage module of the system service of the electronic device, wherein the resolution calculation information includes: first resolution calculation information corresponding to the target application in the first display area, and second resolution calculation information corresponding to the target application in the second display area; the resolution calculation information includes the first resolution calculation information and the second resolution calculation information.

[0012] In this embodiment of the application, corresponding resolution calculation information is pre-configured in the configuration file of the electronic device. The resolution calculation information is used to calculate the first resolution and the second resolution. Thus, the manufacturer of the electronic device can configure the corresponding resolution calculation information based on the power consumption comparison between displaying in the first display area and displaying in the second display area when the target application is running, and / or the temperature rise rate comparison when displaying in the first display area. This helps the manufacturer improve the user experience of the electronic device by configuring the resolution calculation information.

[0013] In one implementation, the resolution calculation information is used to reduce the default resolution of the target application in a first display area to obtain a first resolution, and / or, the resolution calculation information is used to reduce the default resolution of the target application in a second display area to obtain a second resolution.

[0014] In this embodiment of the application, by setting corresponding resolution calculation information, the resolution of the target application in the corresponding display area is reduced, thereby reducing the power consumption of the electronic device and / or reducing the rate of temperature rise of the electronic device.

[0015] In another possible implementation, the resolution calculation information may also be used to increase the first default resolution and / or the second default resolution. For example, if the resolution is too low to meet the resolution requirements pre-configured for the electronic device when the target application is displayed in the first or second display area, then the first default resolution and / or the second default resolution of the target application can be increased.

[0016] In one embodiment, the first resolution calculation information includes a first configuration display coefficient; the second resolution calculation information includes a second configuration display coefficient; the first resolution calculation information is used to indicate that the first resolution is obtained by multiplying the first default resolution by the product of the first configuration display coefficient; and / or, the second resolution calculation information is used to indicate that the second resolution is obtained by multiplying the second default resolution by the product of the second configuration display coefficient.

[0017] In this embodiment, the configured display coefficient includes a first configured display coefficient and a second configured display coefficient. Using the above method, corresponding configured display coefficients can be configured for different target applications, with each configured display coefficient corresponding to the target application and the display area. The default resolution is the maximum resolution supported by the electronic device when running the target application. By configuring the display coefficients, the resolution of the target application can be adjusted in different display areas, using the most suitable resolution adapted to the target application for display.

[0018] In one implementation, the first configuration display coefficient is less than 1 and greater than 0, and the second configuration display coefficient is less than 1 and greater than 0.

[0019] In one embodiment, when the power consumption of the electronic device using the first display area is greater than the power consumption of the electronic device using the second display area, the first configuration display coefficient is less than the second configuration display coefficient; when the power consumption of the electronic device using the first display area is less than the power consumption of the electronic device using the second display area, the first configuration display coefficient is greater than the second configuration display coefficient.

[0020] In this embodiment, when power consumption is higher when displaying in the first display area, the reduction in the first default resolution is greater. Therefore, when using the first display area to display the target application's screen, users don't need to worry about excessive power consumption affecting usage time after charging. Users can more freely choose to display the target application's screen in either the first or second display area according to their preferences and usage habits, improving the user experience. Specifically, users may find the visual effect of displaying game applications on the foldable screen of their phone better, but this leads to faster battery consumption and low remaining battery. Users might then opt for the non-foldable screen to display game applications due to concerns about insufficient battery power. However, the method provided in this embodiment improves the problem of rapid battery consumption when displaying game applications on the foldable screen. Users can still use the foldable screen to display game applications even when the remaining battery is low, improving the user experience.

[0021] In one embodiment, when the temperature rise rate of the electronic device using the first display area is greater than the temperature rise rate of the electronic device using the second display area, the first configuration display coefficient is less than the second configuration display coefficient; when the temperature rise rate of the electronic device using the first display area is less than the temperature rise rate of the electronic device using the second display area, the first configuration display coefficient is greater than the second configuration display coefficient.

[0022] In this embodiment, the rate of temperature rise can refer to the numerical value of temperature rise of the electronic device per unit time. For example, the numerical value of temperature rise of the electronic device's display screen in one second. Or, the numerical value of temperature rise of the electronic device's chip in one minute.

[0023] In this embodiment, when the temperature rises faster when the first display area is displayed, a lower configuration display factor is used to calculate the first default resolution, resulting in a greater reduction in the first default resolution. As a result, the poor user experience caused by the heat of the electronic device when the user displays the target application's screen in the first display area can be improved.

[0024] In one embodiment, the method for processing display information further includes: responding to a preset configuration event, enabling the first display coefficient or the second configuration display coefficient to take effect according to the current display area of ​​the electronic device; and writing the effective configuration display coefficient into the window module of the target application, so that the window module can calculate the corresponding resolution based on the newly written effective first display coefficient or second configuration display coefficient.

[0025] In this embodiment, depending on whether the target application uses a first display area or a second display area during operation, the first display coefficient or the second configuration display coefficient is set to be effective, and the effective first configuration display coefficient or the second configuration display coefficient is written into the window module of the target application. The target application can read the effective configuration display coefficient from the window module more quickly, so that the target application can draw the corresponding screen in real time according to the effective configuration display coefficient in the window module during operation.

[0026] In one implementation, the preset configuration events include at least one of the following: the electronic device starts up; the target application is installed on the electronic device; and during the operation of the target application, the two display areas for displaying the target application are switched.

[0027] In this embodiment, the electronic device updates the effective configuration display coefficients in the window module of the target application according to different configuration events, so that the electronic device can use different resolutions for display after different configuration events occur.

[0028] In one embodiment, the switching between two display areas for displaying a target application includes at least one of the following: the target application switching from a background running mode to a foreground running mode; the electronic device switching from displaying in a first display area to displaying in a second display area; and the electronic device switching from displaying in the second display area to displaying in the first display area.

[0029] In this embodiment of the application, when the display area changes during the operation of the target application, the electronic device can determine the latest effective configuration display coefficient in real time according to the changed display area, so that the display resolution is always adapted to the display state of the electronic device.

[0030] In one implementation, when the preset configuration event is: switching of the display area for displaying the target application, the method for processing display information further includes: measuring the updated display area to obtain measurement information and layout information; the measurement information and layout information are used to draw a first screen or a second screen.

[0031] In this embodiment, after updating the effective configuration display coefficients, the window module of the target application is updated. When updating the window module of the target application, the display area is remeasured (i.e., the updated display area is measured to obtain measurement information), the layout is rearranged (i.e., layout information is obtained), and a new resolution is determined based on the updated effective configuration display coefficients. The screen of the target application is then displayed according to the new resolution.

[0032] In one embodiment, the electronic device includes a foldable screen; the electronic device includes a foldable screen; when the foldable screen is in a folded state, the electronic device uses a first display area for display; when the foldable screen is in an unfolded state, the electronic device uses a second display area for display.

[0033] In this embodiment, when the foldable screen is folded, the non-foldable screen is used to display the image, and the heat dissipation rate of the display is slower than when the foldable screen is unfolded. Conversely, when the foldable screen is unfolded, a larger area is used for displaying the image, resulting in higher power consumption compared to when it is folded. By configuring different resolutions for the display areas corresponding to the foldable screen and the non-foldable screen, the difference in power consumption and temperature rise when the electronic device is folded can be reduced compared to when it is unfolded, ensuring consistency in the user experience between the folded and unfolded states and improving the user experience.

[0034] In one embodiment, the folding screen is an inward folding screen, an outward folding screen, or a vertical folding screen.

[0035] In one embodiment, the electronic device includes an outward-folding screen; when the outward-folding screen is folded and the display area used by the electronic device is half of the display area of ​​the outward-folding screen, the electronic device displays using the first display area; when the outward-folding screen is unfolded, the electronic device displays using the second display area; or when the outward-folding screen is folded and the display area used by the electronic device is the display area of ​​the outward-folding screen, the electronic device displays using the first display area; when the outward-folding screen is unfolded, the electronic device displays using the second display area.

[0036] In one embodiment, when the electronic device is in split-screen mode, the electronic device uses a first display area; when the electronic device is in full-screen mode, the electronic device uses a second display area.

[0037] In this embodiment, the split-screen mode includes vertical split-screen display and horizontal split-screen display. Vertical and horizontal refer to the orientation of the display screen.

[0038] In one embodiment, when the display screen of the electronic device displays a floating window, the floating window is a first display area; when the display screen of the electronic device does not display a floating window, the display area of ​​the display screen of the electronic device is a second display area.

[0039] When a floating window is displayed on the screen, and simultaneously displayed in the display area below the floating window, the temperature of the electronic device may rise too quickly and / or the power consumption may be too high. The method provided in the embodiments of this application can improve the temperature and / or power consumption problems of electronic devices when using floating window display.

[0040] In one implementation, when the target application runs, it invokes the graphics processor of the electronic device to display a first screen and / or a second screen.

[0041] In this embodiment, target applications using graphics processors often consume more power during operation. By configuring different resolutions for these types of target applications, it is helpful to reduce the power consumption of the target applications based on the hardware support of the electronic device. For example, when the battery configuration of the electronic device is low, the manufacturer can reduce the power consumption of the target applications by setting the resolution during operation. Thus, electronic devices with ordinary battery configurations can also run power-intensive target applications, and the user's behavior in using the target applications is not limited by the battery configuration of the electronic device.

[0042] In one embodiment, the first resolution does not exceed the resolution obtained by calculating the first default resolution based on the first resolution calculation information; and / or, the second resolution does not exceed the resolution obtained by calculating the second default resolution based on the second resolution calculation information.

[0043] In this embodiment of the application, by setting the upper limit of the resolution of the first screen and the second screen, the electronic device can flexibly determine the first resolution and / or the second resolution within the range corresponding to the first resolution and the second resolution, according to other display settings of the target application, so as to achieve the display effect corresponding to other display settings.

[0044] Secondly, embodiments of this application provide an electronic device, which includes a processor and a memory;

[0045] The memory is used to store a program for an electronic device to perform the method provided in any embodiment of the present application, and to store data involved in implementing the method provided in any embodiment of the present application;

[0046] The processor is configured to execute programs stored in memory.

[0047] Optionally, there may be one or more processors and one or more memories.

[0048] Alternatively, the memory can be integrated with the processor, or the memory can be set up separately from the processor.

[0049] The processing device in the second aspect above can be a chip. The processor can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor that reads software code stored in memory. The memory can be integrated into the processor or located outside the processor and exist independently.

[0050] In the specific implementation process, the memory can be a non-transitory memory, such as read-only memory (ROM), which can be integrated with the processor on the same chip or set on different chips. This application does not limit the type of memory or the way the memory and processor are set.

[0051] Thirdly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on a computer, enable the computer to perform the method described in the first aspect.

[0052] Fourthly, embodiments of this application provide a computer program product that, when run on a computer, causes the computer to perform any of the possible implementations of the first aspect.

[0053] Fifthly, embodiments of this application also provide a processor, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is used to receive signals through the input circuit and transmit signals through the output circuit, causing the processor to execute the method in any of the embodiments of the first aspect described above.

[0054] In specific implementation, the processor can be a chip, the input circuit can be input pins, the output circuit can be output pins, and the processing circuit can be transistors, gate circuits, flip-flops, and various logic circuits. The input signal received by the input circuit can be received and input by, for example, but not limited to, a receiver, and the signal output by the output circuit can be, for example, but not limited to, output to and transmitted by a transmitter. Furthermore, the input circuit and the output circuit can be the same circuit, which is used as both the input circuit and the output circuit at different times. This application does not limit the specific implementation of the processor and various circuits.

[0055] The technical effects achieved by the second, third, fourth, and fifth aspects mentioned above are similar to those achieved by the corresponding technical means in the first aspect mentioned above, and will not be repeated here. Attached Figure Description

[0056] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.

[0057] Figures 1A and 1B are schematic diagrams of an application scenario of an embodiment of this application;

[0058] Figure 2 is a schematic diagram of another application scenario of the present application embodiment;

[0059] Figures 3A, 3B and 3C are schematic diagrams of another application scenario of the embodiments of this application;

[0060] Figure 4 is a schematic diagram of another application scenario of the present application embodiment;

[0061] Figure 5 is a schematic diagram of a method according to an embodiment of this application;

[0062] Figure 6 is a schematic diagram of a display mode of an electronic device in an embodiment of this application;

[0063] Figure 7 is a schematic diagram of another display mode of the electronic device in the embodiment of this application;

[0064] Figure 8 is a schematic diagram of configuration item storage in an embodiment of this application;

[0065] Figure 9 is a schematic diagram of two other display modes of the electronic device according to an embodiment of this application;

[0066] Figure 10 is a schematic diagram of the display of an electronic device with an outward folding screen according to an embodiment of this application;

[0067] Figure 11 is a schematic diagram of the software structure of the electronic device involved in the embodiments of this application;

[0068] Figure 12 is a schematic diagram of a method for processing display information in one example of this application;

[0069] Figure 13 is a schematic diagram of the interaction between the modules corresponding to Figure 11;

[0070] Figure 14 is a schematic diagram of the first and second screens of another example of this application;

[0071] Figure 15 is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0072] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0073] It should be understood that "multiple" as mentioned in this application refers to two or more. In the description of this application, unless otherwise stated, " / " indicates "or," for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist, for example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, to facilitate a clear description of the technical solutions of this application, the terms "first," "second," etc., are used to distinguish identical or similar items with essentially the same function and effect. Those skilled in the art will understand that the terms "first," "second," etc., do not limit the quantity or execution order, and that "first," "second," etc., do not necessarily imply differences.

[0074] References to "an embodiment," "a particular embodiment," "a implementation," "some implementations," or "some embodiments" as used in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," "in yet another embodiment," "exemplary," "as an example," or "in a possible implementation" appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "configured as," "having," and variations thereof mean "including, but not limited to," unless otherwise specifically emphasized.

[0075] In this embodiment, the electronic device may include a terminal and a server. The terminal may include a mobile terminal and a fixed terminal. The mobile terminal may include laptops, tablets, mobile phones, PDAs, smart wearable devices, electronic calendars, and e-readers, etc. The fixed terminal may include desktop computers or smart home devices, etc.

[0076] With the development of computer and terminal technologies, electronic devices are becoming increasingly faster and more powerful. The data processing speed of some small, portable electronic devices is narrowing the gap with that of medium and large electronic devices, and the performance gap is also shrinking. Users can now use smaller, more portable electronic devices to perform large-scale calculations and handle complex logical decisions, while also using relatively portable devices to run applications requiring more hardware and software resources, such as video playback, gaming, or graphic modeling applications.

[0077] Currently, the types and styles of portable electronic devices are constantly increasing, and these devices can display information through various display modes to achieve different display effects. For example, the display modes of a foldable electronic device can include a folded state and an unfolded state. In this embodiment, the folded state can also be referred to as a folded shape or a folded state, and the unfolded state can also be referred to as an unfolded state or an unfolded state. In the folded and unfolded states, the display area may differ, the temperature rise rate of different display areas may also differ, and the power consumption for display may also differ. Furthermore, due to the different display areas, other display-related operating parameters and the consumption of other hardware and software resources by the electronic device will also differ, which may affect the user experience. For example, if the electronic device heats up too quickly or consumes power too quickly, it may reduce the user experience.

[0078] The following describes possible applicable scenarios of the embodiments of this application with reference to Figures 1A-4. Figures 1A-3C are used to exemplarily illustrate the first display area and the second display area, and Figure 4 is used to exemplarily illustrate the target application and / or the target module of the target application.

[0079] Figure 1A is a schematic diagram of an application scenario according to an embodiment of this application. Taking a foldable screen mobile phone as an example, the foldable screen 11 of the mobile phone is the inner screen, and the non-foldable screen 12 is the outer screen, with the inner and outer screens arranged relative to each other. The mobile phone includes at least two display states: when the foldable screen 11 is folded, the mobile phone uses the outer screen for display, as shown in Figure 1Ab. When the foldable screen 11 is unfolded, the mobile phone uses the inner screen for display, as shown in Figure 1Aa.

[0080] As shown in Figure 1B, the user can launch the game application 13 installed on the phone in either the unfolded state of the folding screen 11 shown in Figure 1Ba, or the folded state of the folding screen 11 shown in Figure 1Bb. In the unfolded state, the game application 13 is displayed in the corresponding display area of ​​the folding screen 11, as shown in Figure 1Ba. In the folded state, the game application is displayed in the corresponding display area of ​​the non-folding screen 12, as shown in Figure 1Bb.

[0081] During the operation of the game application, users can also switch display states. In the display state shown in Figure 1Ba, users can fold the screen to switch to the display state shown in Figure 1Bb. Similarly, in the display state shown in Figure 1Bb, users can unfold the screen to switch to the display state shown in Figure 1Ba.

[0082] In other application scenarios, besides games, mobile phones can run video playback applications, video call applications, or live video streaming applications.

[0083] When the method of this embodiment is applied to the scenario shown in FIG1A, the first display area may be the display area shown in FIG1A(a), and the second display area may be the display area shown in FIG1A(b). Alternatively, the first display area may be the display area shown in FIG1A(b), and the second display area may be the display area shown in FIG1A(a).

[0084] When the method of this embodiment is applied to the scenario shown in FIG1B, the first display area may be the display area shown in FIG1Ba, and the second display area may be the display area shown in FIG1Bb. Alternatively, the first display area may be the display area shown in FIG1Bb, and the second display area may be the display area shown in FIG1Ba.

[0085] In the application scenarios shown in Figures 1A and 1B, the foldable screen 11 used in the mobile phone is a left-right foldable screen. In other application scenarios, the mobile phone can use a top-bottom foldable screen, as shown in Figures 2a and 2b. In addition to a single-fold foldable screen, the mobile phone can also be configured with a double-fold foldable screen or a multi-fold foldable screen.

[0086] When the method of this embodiment is applied to the scenario shown in FIG2, the first display area can be the display area shown in FIG2a, and the second display area can be the display area shown in FIG2b. Alternatively, the first display area can be the display area shown in FIG2b, and the second display area can be the display area shown in FIG2a.

[0087] Figure 3A is a schematic diagram of another application scenario of this application embodiment. In Figure 3A, the electronic device may include at least two displays, including a foldable screen 31 and a non-foldable screen 32. The target application is a game application 33. When the target application is running, the user can split the display screens, causing the screens to display in a split-screen mode, that is, the electronic device enters a split-screen mode. In the split-screen mode, when the foldable screen 31 of the electronic device is folded and the non-foldable screen 32 is used to display the screen of the game application 33, the display area of ​​the non-foldable screen 32 is split horizontally, and the electronic device enters a split-screen mode with horizontal and vertical split-screen display. Alternatively, in the split-screen mode, when the foldable screen 31 of the electronic device is unfolded and the foldable screen 31 is used to display the screen of the game application 33, the display area of ​​the foldable screen 31 is split horizontally, and the electronic device enters a split-screen mode with horizontal and vertical split-screen display.

[0088] In the split-screen modes shown in Figures 3Aa and 3Ab, a single display screen of an electronic device is divided into two display areas, allowing the target application's screen and a portion of the desktop to be displayed in each area. In the non-folding screen 32 split-screen mode shown in Figure 3Aa, the left display area 321 can display the target application's screen, while the right display area 322 can display the desktop. In the folding screen 31 unfolded as shown in Figure 3Ab, the right display area 311 can display the game application 33's screen, while the right display area 312 can display the desktop. Alternatively, different applications can be displayed in the two display areas. In split-screen mode, the two display areas formed after the screen is divided can be the same size or different sizes.

[0089] Users can also operate the electronic devices and target applications in Figure 3A, so that the split-screen display area displays different screens of the target application.

[0090] When the method of this embodiment is applied to the scenario shown in FIG3A, the first display area can be the entire display area of ​​the non-foldable screen 32 shown in FIG3A(a), and the second display area can be the left-side display area 321 shown in FIG3A(a). Alternatively, the first display area can be the entire display area shown in FIG3A(a), and the second display area can be the right-side display area 322 shown in FIG3A(a). Alternatively, the second display area can be the entire display area of ​​the non-foldable screen 32 shown in FIG3A(a), and the first display area can be the left-side display area 321 shown in FIG3A(a). Alternatively, the second display area can be the entire display area shown in FIG3A(a), and the first display area can be the right-side display area 322 shown in FIG3A(a). Alternatively, the first display area can be the entire display area of ​​the foldable screen 31 shown in FIG3A(b), and the second display area can be the left-side display area 311 shown in FIG3A(b). Alternatively, the first display area can be the entire display area shown in FIG3A(b), and the second display area can be the right-side display area 312 shown in FIG3A(b). Alternatively, the second display area can be the entire display area of ​​the foldable screen 31 shown in Figure 3Ab, and the first display area can be the left-side display area 311 shown in Figure 3Ab. Alternatively, the second display area can be the entire display area shown in Figure 3Ab, and the first display area can be the right-side display area 312 shown in Figure 3Ab.

[0091] Split-screen mode can also be achieved through other split-screen methods. For example, the picture-in-picture split-screen mode shown in Figure 3B(d). Users can watch online videos through browser application 34, as shown in Figures 3B(a) and (b). While watching online videos using browser application 33, users can swipe up from the bottom edge of the video interface, as shown in Figure 3B(c). When the electronic device detects the user's swipe up from the bottom edge of the video interface during video playback, it enters picture-in-picture mode, as shown in Figure 3B(d). In picture-in-picture display mode, the phone can display the corresponding screen of the desktop application (i.e., the phone's desktop) in full screen on the non-folding screen 32. A small floating window 35 is created on the full-screen display to show the video played by browser application 34.

[0092] When the method of this embodiment is applied to the scenario shown in FIG3B, the first display area may be the entire display area of ​​the display screen 32 shown in FIG3Bb, and the second display area may be the floating window 35 shown in FIG3Bd. Alternatively, the second display area may be the entire display area of ​​the display screen 32 shown in FIG3Bb, and the first display area may be the floating window 35 shown in FIG3Bd.

[0093] In other similar scenarios, browser application 34 can also be a social application, an online audio and video playback application, an offline audio and video playback application, and a live streaming application, etc.

[0094] In other similar scenarios, as shown in Figure 3C, split-screen mode includes vertical split-screen display. As shown in Figure 3C(a), a candybar phone is running a social chat application. By splitting the candybar phone's screen, the interface shown in Figure 3C(b) is obtained. In the interface shown in Figure 3C(b), the chat application interface is displayed at the top, and the desktop is displayed at the bottom. Simultaneously, a split-screen boundary line 36 can be displayed on the split-screen interface. In the scenarios shown in Figure 3A or Figure 3B, split-screen boundaries can also be used to mark the boundaries of the split-screen area.

[0095] When the method implemented in this application is applied to the scenario shown in FIG3C, the first display area can be the chat interface 361 shown in FIG3C a, and the second display area can be the chat interface 362 shown in FIG3C b. Alternatively, the first display area can be the chat interface 362 shown in FIG3C b, and the second display area can be the chat interface 361 shown in FIG3C a.

[0096] Figure 4 is a schematic diagram of another application scenario of this application embodiment, used to illustrate the possible manifestation of the target application of this application embodiment. The electronic device is equipped with a foldable screen and has the target application 41 installed, as shown in Figure 4a, where it is represented as application "A". When the target application 41 runs, the target function can be activated. The target function can be the video playback function shown in Figure 4b, the video call function shown in Figure 4c, or the navigation function shown in Figure 4d. The video playback function in this application embodiment can include the function of playing locally stored video files, the function of playing video files stored on the server online, or the function of playing live video streams.

[0097] When target application 41 is running, due to its own configuration, it may be displayed at a higher resolution on various display interfaces to achieve the best visual experience. During the operation of target application 41, users can change the display mode by unfolding or folding the foldable screen. Alternatively, they can change the display mode through split-screen functionality. When target application 41 displays at least two screens simultaneously, the display mode can also be changed by switching the screen positions. For example, when using the video call function shown in Figure 4c, the video feed of the other party and the user's own video feed are displayed on the screen. Users can switch the display positions of the two different video feeds to change the display mode.

[0098] The display information processing method provided in this application embodiment can also be applied to other related scenarios, which will not be listed one by one here. In the scenarios shown in Figures 1A-4, when an electronic device runs a target application, it can use different display areas to display the application. The power consumption and / or heating rate of different display areas are different. This may result in excessive power consumption and / or excessive heating rate when using some display areas to display the target application, thereby affecting the user experience.

[0099] Based on the scenarios shown in Figures 1A-4, the specific implementation of the display information processing method provided in this application embodiment will be described below. Figure 5 is a flowchart illustrating a display information processing method according to an exemplary embodiment. This method can be implemented by the electronic device involved in this application embodiment through the interaction of multiple modules. The method may include at least some or all of the following steps S51-S52.

[0100] Step S51: When the electronic device uses the first display area, display the first screen of the target application in the first display area according to the first resolution.

[0101] In one implementation, the first resolution is determined based on a first default resolution and first resolution calculation information; the first default resolution is the resolution corresponding to the target application in the first display area, and the first resolution calculation information corresponds to the target application and the first display area.

[0102] In this embodiment, the first display area is the display area on the screen of the electronic device. The first display area may be the entire display area or a portion of the display area on the screen of the electronic device.

[0103] The first screen can include at least one of the following types of screens.

[0104] (a) At least one screen at a set time during the operation of the target application.

[0105] For example, the first frame could be from frame 1 to frame N of the target application, where N is an integer greater than 1. Alternatively, the first frame could be the frame displayed at the Nth second of each run of the target application.

[0106] (ii) Any screen displayed in the first display area during the operation of the target application.

[0107] For example, the same target screen during the operation of the target application can be displayed as the first screen in the first display area and as the second screen in the second display area.

[0108] (iii) Screenshots of the target functional modules during the operation of the target application. The target application includes the target functional modules.

[0109] For example, if the target application is a chat application, the target functional modules could be video playback, video chat, video creation, gaming, or location services. The location service module could be navigation, real-time location sharing, or indoor location services.

[0110] (iv) Screenshots of multiple functional modules of the target type running during the operation of the target application. Functional modules of the target type are the functional modules included in the target application, and multiple functional modules of the target type belong to the same target type.

[0111] For example, during the operation of the target application, the startup of some functional modules requires calling the graphics processing unit (GPU) of the electronic device. These functional modules can be used as functional modules of the target type.

[0112] For example, during the operation of the target application, the startup of some functional modules may cause the utilization rate of the central processing unit (CPU) and / or GPU of the electronic device to exceed a set threshold. These functional modules can be used as functional modules of the target type.

[0113] (v) Screens corresponding to the set target stages during the operation of the target application.

[0114] For example, if the target application is a game application, and during the operation of the game application, some parts of the process exceed the set threshold for CPU and / or GPU utilization, these parts can be identified as target parts.

[0115] (vi) The screen drawn using the surfaceview component during the operation of the target application.

[0116] In this embodiment, both the first screen and the second screen include at least one layer. Alternatively, the first screen and the second screen may each include at least a layer representing the main view of the target application, or they may each include layers representing the controls corresponding to the target application. The aforementioned main view layer may be a layer drawn by the target application using a surface view component, or it may be the layer with the largest coverage area in the first or second display area. In other implementations, the first screen or the second screen may only include layers corresponding to the settings controls of the target application, such as layers corresponding to toolbar controls.

[0117] The first resolution can be the resolution at which the electronic device displays the image in the first display area while the target application is running. Alternatively, it can be said that during the operation of the target application, the first resolution corresponds to the first display area and also to the target application. In this embodiment, the first default resolution in step S51 can include at least one of the following implementation methods.

[0118] (i) When the electronic device displays the first image using the first display area, the first default resolution corresponds to the first display area. Meanwhile, regardless of whether the electronic device also displays other images using the second display area, the first default resolution remains unaffected.

[0119] For example, when the method shown in Figure 5 is applied to an electronic device with an inward-folding screen, the electronic device may use either the inner screen or the outer screen for display. Alternatively, the electronic device may use both the inner and outer screens simultaneously, meaning that the inner and outer screens of the folding screen may be open at the same time. Assuming the first display area is the entire area of ​​the outer screen, when the electronic device uses the entire area of ​​the outer screen to display the first image and does not open the inner screen, the default resolution corresponding to displaying the first image using the entire area of ​​the outer screen is determined to be the first default resolution. When the electronic device uses the entire area of ​​the outer screen to display the first image, and the electronic device uses the inner screen to display other images, the default resolution corresponding to displaying the first image using the entire area of ​​the outer screen is still determined to be the first default resolution.

[0120] For example, when the method shown in Figure 5 is applied to an electronic device with a split-screen display, it is assumed that the first display area is the area corresponding to the upper half of the split screen. The lower half of the split screen can be used to display other screens of the target application, screens of other applications, or it can also be used to simultaneously display the first screen of the target application. When the electronic device uses the upper half of the display area to display the first screen, and the electronic device also uses the lower half of the display area to display the first screen, the default resolution corresponding to using the upper half to display the first screen is determined to be the first default resolution. When the electronic device uses the upper half of the display area to display the first screen, and the electronic device uses the lower half of the display area to display other screens, the default resolution corresponding to using the upper half to display the first screen is still determined to be the first default resolution.

[0121] For example, an electronic device may have a foldable screen and a non-foldable screen. When the foldable screen is unfolded, or when it is partially folded as shown in Figure 6, the electronic device may selectively use either the foldable screen or the non-foldable screen for display. In the partially folded state shown in Figure 6, the angle between the two sides of the foldable screen is α, where α is less than 180° and greater than 0°. The images displayed on the foldable screen and the non-foldable screen may be different or the same. Assuming the first display area is the display area of ​​the foldable screen, if the foldable screen of the electronic device is used to display the first image, then the first default resolution is the default resolution corresponding to the target application on the foldable screen.

[0122] For example, an electronic device may have a foldable screen and a non-foldable screen. Assume the first display area is the display area of ​​the non-foldable screen. When the foldable screen is folded, as shown in Figure 7a, the non-foldable screen displays a video frame 71 played by the target application, with the video frame as the first frame. The area displayed by the video frame 71 is the first display area. The user can swipe up to change the target application to a floating window 72, as shown in Figure 7b. The area of ​​the floating window 72 is the second display area, and the floating window 72 is still contained within the first display area. Therefore, although the area outside the floating window 72 displays the desktop, the first default resolution within the floating window 72 is also the default resolution of the target application on the non-foldable screen.

[0123] (ii) When the electronic device displays the first screen using only the first display area and the other display areas of the electronic device are not used to display any screen, the first screen of the target application can be displayed according to the first resolution.

[0124] For example, electronic devices may include foldable and non-foldable screens. When the foldable screen is unfolded, both the non-foldable and foldable screens can be displayed simultaneously. Alternatively, when the foldable screen is unfolded, the non-foldable screen may not be used for display, and the electronic device may only use the foldable screen for display. Assuming the foldable screen's display area is the first display area, and the non-foldable screen does not display any image, then the first default resolution is the default resolution corresponding to the target application in the first display area. Conversely, if the foldable screen is unfolded, and both the foldable and non-foldable screens display images simultaneously, and both displays are used to run the target application's image, the first display area remains the foldable screen's display area. Then, the first default resolution is the default resolution when the target application is displayed in both display areas simultaneously, which differs from the default resolution when the target application is displayed only in the first display area.

[0125] (III) The first display area of ​​the electronic device displays the screen of the target application currently running, and the second display area displays the screens of other applications currently running. If the power consumption of other applications and the rate at which the temperature of the electronic device rises are less than a preset threshold, then the first default resolution is the default resolution corresponding to when the target application is only displayed in the first display area. If the power consumption of other applications and the rate at which the temperature of the electronic device rises exceed the preset threshold, then the first default resolution is the default resolution corresponding to the target application when both display areas are used for display.

[0126] In this embodiment, the resolution calculation information can be a preset function, such as f(r). If the default resolution of the target application in the first display area is rd1, then the first resolution is f(rd1).

[0127] Resolution calculation information may include resolution calculation method and / or resolution calculation parameters. If the resolution calculation information for the target application in the first display area only includes the resolution calculation method, then the corresponding resolution calculation parameters can be the default calculation parameters built into the electronic device. If the resolution calculation information for the target application in the first display area only includes the resolution calculation parameters, then the corresponding resolution calculation method can be the default calculation method.

[0128] The resolution calculation information also has a correspondence with the target application and display area. The first resolution calculation information can be used to reduce the first default resolution to obtain the first resolution. And / or, the second resolution calculation information can be used to reduce the second default resolution to obtain the second resolution.

[0129] For example, for video applications, the first resolution calculation information is: r1 = f1(rd1) = rd1 × w1, where w1 is a preset configuration display coefficient. The second resolution calculation information is: r2 = f2(rd2) = rd2 ÷ w2, where w2 is a preset configuration display coefficient. The first resolution calculation information is calculated using multiplication, with w1 as the configuration display coefficient. The second resolution calculation information is calculated using division, with w2 as the configuration display coefficient.

[0130] For navigation applications, the first resolution calculation information is: r1 = f1(rd1) = rd1 - w1. The second resolution calculation information is: r2 = f2(rd2) = rd2 - w2. The first resolution calculation information is calculated by subtraction, and the display coefficient is configured as w1. The second resolution calculation information is calculated by subtraction, and the display coefficient is configured as w2.

[0131] Similar to the first default resolution, the first resolution calculation information may be related to or unrelated to whether the application is displayed in the second display area of ​​the electronic device, or to the parameters of the application displayed in the second display area. The first resolution calculation information corresponds to the target application and the first display area, including: the first resolution calculation information corresponds to the target application, and the first resolution calculation information corresponds to the first display area.

[0132] In the embodiments of this application, the first resolution in step S51 includes at least one of the following implementation methods.

[0133] (a) The first resolution is the resolution calculated based on the first resolution calculation information and the default resolution.

[0134] For example, resolution is generally expressed as: value 1 × value 2, that is, width resolution × height resolution, or height resolution × width resolution. Therefore, the first resolution may include two values: r11 and r12. Thus, the first resolution is r11 × r12.

[0135] (ii) The first resolution does not exceed the range obtained by calculating the default resolution based on the first resolution calculation information.

[0136] For example, resolution is generally expressed as: value 1 × value 2. Thus, the first resolution may include two values: r11 and r12. Then, the resolution of the first frame is r13 × r14, where r13 does not exceed r11, and / or r14 does not exceed r12.

[0137] Alternatively, the first resolution includes at least one resolution range, where if the resolution of the first frame is r11×r12, then r11 and / or r12 are within the resolution range defined by the first resolution.

[0138] Alternatively, the first resolution may include two resolution ranges. If the resolution of the first frame is r11×r12, then r11 and r12 are within the range of the width resolution or height resolution corresponding to the first resolution.

[0139] Alternatively, the first resolution may include multiple resolution ranges. If the resolution of the first frame is r11×r12, then r11 and r12 are within at least two resolution ranges included in the first resolution.

[0140] Step S52: In response to the switching operation, the electronic device displays the second screen of the target application in the second display area.

[0141] In the embodiments of this application, the switching operation may include at least one of the following, or a combination of two or more.

[0142] (a) The operation of switching the foldable screen of an electronic device from the folded state to the unfolded state.

[0143] For example, switching from the state shown in b of Figure 1A to the state shown in a of Figure 1A. Or, switching from the state shown in b of Figure 2 to the state shown in a of Figure 2.

[0144] (ii) The operation of switching the folding screen of an electronic device from the unfolded state to the folded state.

[0145] For example, switching from the state shown in Figure 1A(a) to the state shown in Figure 1A(b). Or, switching from the state shown in Figure 2(a) to the state shown in Figure 2(b).

[0146] (iii) Switch the target application from a floating window display to a full-screen display.

[0147] For example, switch from the state shown in d of Figure 3B to the state shown in b or c of Figure 3B.

[0148] (iv) Switch the target application from full-screen display to floating window display.

[0149] For example, switch from the state shown in b or c of Figure 3B to the state shown in d of Figure 3B.

[0150] (v) When the outward-folding screen is folded, the target application is switched from a dual-sided display state to a single-sided display state.

[0151] (vi) When the outward-folding screen is folded, the target application is switched from a single-sided display state to a double-sided display state.

[0152] (vii) Switch from split-screen display (i.e., split-screen mode) to full-screen display (i.e., full-screen mode).

[0153] (viii) Switch from full-screen display to split-screen display.

[0154] Step S53: When the electronic device uses the second display area, the second screen of the target application is displayed in the second display area according to the second resolution; the first display area and the second display area are different display areas of the electronic device.

[0155] In one implementation, the second resolution is determined based on a second default resolution and second resolution calculation information, wherein the second default resolution is the resolution corresponding to the target application in the second display area, and the second resolution calculation information corresponds to the second display area and the target application.

[0156] The second resolution calculation information corresponds to the second display area and the target application, including: the second resolution calculation information corresponds to the second display area and the second resolution calculation information corresponds to the target application.

[0157] The second display area is the display area of ​​the electronic device's screen. The second display area may be the entire display area or a portion of the display area of ​​the electronic device's screen.

[0158] For example, the first display area may be the display area shown in Figure 1A(a), and the second display area may be the display area shown in Figure 1A(b). Alternatively, the first display area may be the display area shown in Figure 1A(b), and the second display area may be the display area shown in Figure 1A(a).

[0159] For example, the first display area may be the display area shown in Figure 1Ba, and the second display area may be the display area shown in Figure 1Bb. Alternatively, the first display area may be the display area shown in Figure 1Bb, and the second display area may be the display area shown in Figure 1Ba.

[0160] For example, the first display area can be the display area shown in Figure 2a, and the second display area can be the display area shown in Figure 2b. Alternatively, the first display area can be the display area shown in Figure 2b, and the second display area can be the display area shown in Figure 2a.

[0161] For example, the first display area can be the entire display area of ​​the display screen 32 shown in b or c of Figure 3B, and the second display area can be the floating window 35 shown in d of Figure 3B. Alternatively, the first display area can be the small floating window 35 shown in d of Figure 3B, and the second display area can be the entire display area of ​​the display screen 32 shown in b or c of Figure 3B.

[0162] For example, the first display area can be the chat interface 361 shown in Figure 3C(a), and the second display area can be the chat interface 362 shown in Figure 3C(b). Alternatively, the first display area can be the chat interface 362 shown in Figure 3C(b), and the second display area can be the chat interface 361 shown in Figure 3C(a).

[0163] The implementation of the second screen in a specific embodiment can be similar to that of the first screen.

[0164] The second default resolution in step S53 can include a variety of implementations, which are similar to those corresponding to the first default resolution.

[0165] The step S53 of displaying the second screen according to the second resolution can include a variety of implementation methods, which are similar to those of displaying the first screen according to the first resolution.

[0166] The first display area and the second display area can be display areas of different displays. For example, an electronic device includes a foldable screen and a non-foldable screen, with the display area of ​​the foldable screen being the first display area and the display area of ​​the non-foldable screen being the second display area.

[0167] The first display area and the second display area can also be different display areas on the same display screen. For example, the display area corresponding to the floating window on the non-foldable screen of an electronic device is the first display area, and the entire display area of ​​the non-foldable screen of the electronic device is the second display area.

[0168] When electronic devices use different display areas to display the target application's screen, the rate of temperature rise and / or power consumption differs. For example, when an electronic device uses the floating window 35 shown in Figure 3Bd to display the target application's screen, it also needs to display the screen area below the floating window 35, increasing the data processing load and potentially increasing screen heat. Similarly, when an electronic device uses a split-screen method (such as the vertical split-screen display shown in Figure 3C) to display more than two screens, the display module needs to process more data, potentially increasing screen heat. Furthermore, in electronic devices with foldable screens, the heat dissipation rate differs between folded and unfolded states, resulting in different rates of temperature rise. When the screen is folded, poor heat dissipation can cause the display or the chip components of the electronic device to heat up too quickly. When the screen is unfolded, the increased display area can increase the current to the display or display module, thus increasing the power consumption of the electronic device.

[0169] When an electronic device displays the screen of a target application using different display areas, other parameters affecting user experience may also differ, such as lag or screen lifespan. The method provided in this application embodiment uses a resolution corresponding to the display area when the electronic device displays the screen of the target application using different display areas. This can improve the situation where the user experience is different due to the electronic device using different display areas, and help provide a stable user experience. From the perspective of a stable user experience, this improves the performance of the electronic device when using different display areas.

[0170] Before displaying the first screen based on the first resolution or the second screen based on the second resolution, it is necessary to determine the corresponding first resolution or second resolution.

[0171] Next, we will introduce one embodiment of this application, which describes the method for determining the first resolution and the second resolution. Based on the embodiment shown in FIG5, before step S51, the method for processing the display information may further include: after the electronic device has started up or after the target application has been installed on the electronic device, as shown in FIG8, obtaining the configuration item corresponding to the target application in the configuration file 81 of the electronic device; storing the resolution calculation information in the configuration item in the configuration item storage module 82 of the system service of the electronic device, the resolution calculation information including: the first resolution calculation information of the target application and the second resolution calculation information of the target application.

[0172] After the above steps are completed, the resolution calculation information corresponding to the target application is stored in the configuration item storage module. If the target application is not running, the resolution calculation information in the configuration item storage module can be continuously stored in the configuration item storage module. When the target application is running, and the electronic device needs to display the screen corresponding to the target application in at least one display area, the resolution calculation information stored in the configuration item storage module is read (or obtained) by the display module to determine the resolution corresponding to the target application in the currently displayed display area.

[0173] The resolution calculation parameters in the resolution calculation information can be referred to as the configuration display coefficients. When the target application is running, the configuration display coefficients applied to the first display area can be simply referred to as the first display coefficients. When the target application is running, the configuration display coefficients applied to the second display area can be simply referred to as the second display coefficients. In the embodiments of this application, when calculating the first resolution or the second resolution based on the default resolution, configuration display coefficients, and resolution calculation method, at least one of the following calculation methods can be used.

[0174] Method 1: The first resolution is the first default resolution when the electronic device is running the target application, multiplied by the first configuration display coefficient; the second resolution is the second default resolution when the electronic device is running the target application, multiplied by the second configuration display coefficient; the first configuration display coefficient does not exceed the second configuration display coefficient. Both the first and second configuration display coefficients are numbers greater than 0 and less than or equal to 1.

[0175] Assuming the first configuration display factor is 1 and the second configuration display factor is 0.9, then the first resolution is the first default resolution multiplied by 1, and the second resolution is the second default resolution multiplied by 0.9.

[0176] Method 2: The first resolution is obtained by subtracting the first configuration display factor from the first default resolution, and the second resolution is obtained by subtracting the second configuration display factor from the second default resolution. Both the first and second configuration display factors are values ​​less than the corresponding default resolutions.

[0177] Method 3: The first resolution is obtained by dividing the first default resolution by the first configured display factor. The second resolution is obtained by dividing the second default resolution by the second configured display factor. Both the first and second configured display factors are values ​​greater than 1.

[0178] Method 4: The first and second resolutions are obtained using the same calculation formula. The formula can be expressed as: r = f(x), where r is the resolution and x is the display coefficient. Therefore, the first resolution r1 is f(x1), where x1 is the first configuration display coefficient. The second resolution r2 is f(x2), where x2 is the second configuration display coefficient.

[0179] Method 5: The first and second resolutions are calculated using different formulas. The formula for the first configuration display coefficient x1 is r1 = f1(x1), where r1 is the first resolution and f1 is the formula for calculating the first resolution. The formula for the second configuration display coefficient x2 is r2 = f2(x2), where r2 is the second resolution and f2 is the formula for calculating the second resolution.

[0180] In this embodiment, the display parameters corresponding to the target application can be pre-set in the system configuration file of the electronic device. This allows the electronic device manufacturer to proactively control the application's resolution based on information such as the device's hardware status, power consumption, and heat dissipation. For example, some target applications that utilize the GPU have high power consumption and rapid temperature rise. The resolution of the target application can be set according to the configuration file to control the application to reduce the resolution of the first and / or second screens, thereby reducing power consumption and / or the rate of temperature rise. In this embodiment, when the electronic device is displaying the target application using the first or second display area, a current testing device can be connected to test the power consumption of the electronic device's battery or CPU.

[0181] In one implementation, the resolution calculation information may include a configured display coefficient; and first resolution calculation information corresponding to the target application in the first display area, used to indicate that a first default resolution is multiplied by the first configured display coefficient to obtain the first resolution. That is, for the target application and the first display area, the default resolution calculation method is multiplication.

[0182] Simultaneously, the second resolution calculation information can be used to indicate how to multiply the second default resolution by the second configuration display coefficient to obtain the second resolution. In other words, for the target application and the second display area, the default resolution calculation method can also be multiplication.

[0183] In this embodiment, the configured display factor can also be called the display coefficient, scaling factor, or discount factor, which is equivalent to the resolution calculation parameters pre-configured for the target application. For example, the configured display factor may include w1 and / or w2 in the aforementioned embodiments.

[0184] The configuration file for the aforementioned electronic device can include the configuration file for the device's operating system. For example, if the operating system of the electronic device is Android, the configuration file can be the configuration file for the Android system. After the Android system's system layer retrieves the configuration items from the configuration file, it can store the configuration display coefficients in the configuration items in the system services of the Android system's application framework layer.

[0185] In this embodiment, the configuration file of the operating system of the electronic device may store configuration items for multiple different applications. These configuration items may correspond to different applications and have different display coefficients. The application configured with the display coefficients is the target application in this embodiment.

[0186] In this embodiment, the configuration item display coefficients can be stored in the system service, so that the target application can quickly obtain the configuration display coefficients from the system service when it starts.

[0187] In one embodiment of this application, the configuration display coefficients may include multiple coefficients, and different configuration display coefficients may correspond to different display areas. The first resolution and / or the second resolution are obtained by multiplying the first default resolution and / or the second default resolution by the corresponding configuration display coefficient. That is, the first resolution is obtained by multiplying the first default resolution by the first configuration display coefficient. The second resolution is obtained by multiplying the second default resolution by the second configuration display coefficient. The first configuration display coefficient is the calculation information for the first resolution, and the second configuration display coefficient is the calculation information for the second resolution.

[0188] When an electronic device runs a target application, the default resolution may include a first default resolution or a second default resolution, and the default resolution may be determined by at least one of the following methods.

[0189] Method 1: The default resolution is determined based on the resolution configured on the electronic device and the resolution configured on the target application.

[0190] The electronic device's display screen has a preset resolution, and the target application may also be configured with a resolution. For example, the electronic device's display screen (first display area or second display area) may be preset to a resolution of M1×N1, where M1 and N1 are positive integers. Meanwhile, the target application (or a target module within the target application) may be set to a resolution of M2×N2, where M2 and N2 are positive integers. Therefore, if M2×N2 does not exceed M1×N1, the target application's screen can be displayed according to M2×N2. If M2×N2 exceeds M1×N1, the target application's screen can be displayed according to M1×N1.

[0191] Method 2: The default resolution is determined based on the resolution configured in the electronic device.

[0192] If the target application does not have a default resolution configured, display the target application's screen at the default resolution configured on the electronic device.

[0193] Before setting resolution calculation information in electronic devices, it's necessary to determine how to configure the resolution calculation information and the size of the display coefficient in advance. The following explanation uses the example of multiplying the corresponding default resolution by the corresponding display coefficient as the first and second resolutions.

[0194] Generally, the higher the resolution of an electronic device's display, the greater the current used for display and the more heat generated. Furthermore, foldable screens have relatively poor heat dissipation when folded, leading to a rapid temperature rise. Therefore, when determining the configuration display coefficients in the configuration file, the target application can be run on the electronic device, and the power consumption and / or temperature rise rate of the electronic device when displaying the target application's screen using the first and second display areas can be detected respectively. Then, based on the corresponding power consumption and / or temperature rise rate when the electronic device displays the target application's screen using the first and second display areas respectively, the first and second configuration display coefficients in the configuration display coefficients are determined.

[0195] The standard for determining the first configuration display factor can be expressed as follows: after calculating the first resolution based on the first configuration display factor, when displaying the target application's image in the first display area at the first resolution, the power consumption and / or temperature rise rate of the electronic device are within a relatively moderate range. Similarly, the standard for determining the second configuration display factor can be expressed as follows: after calculating the second resolution based on the second configuration display factor, when displaying the target application's image in the second display area at the second resolution, the power consumption and / or temperature rise rate of the electronic device are also within a relatively moderate range.

[0196] In other words, assuming that the electronic device experiences a rapid temperature rise and / or high power consumption when displaying the target application's screen in the first display area, the first configuration display factor is used to reduce the target application's operating resolution at the first default resolution, thereby reducing the power consumption and / or temperature rise rate when the electronic device displays the first screen in the first display area. If the electronic device experiences a rapid temperature rise and / or high power consumption when displaying the target application's screen in the second display area, then the setting method and function of the second configuration display factor are similar to those of the first configuration display factor.

[0197] In another possible scenario, suppose that when the electronic device displays the target application's image using the first display area, the device's temperature rises faster and / or its power consumption is higher. Conversely, when the electronic device displays the target application's image using the second display area, the device's temperature rises faster and / or its power consumption is higher than that of the first display area. In this case, the first configuration display factor is used to reduce the first default resolution. That is, the first configuration display factor is less than 1, and the first default resolution multiplied by the first configuration display factor is less than the first default resolution. Correspondingly, the second configuration display factor is used to further reduce the default resolution. That is, the second configuration display factor is lower than the first configuration display factor, and the reduction in the second default resolution is greater than the reduction in the first default resolution.

[0198] In another possible embodiment of this application, different configuration display coefficients in the configuration items correspond to the target application, the display area used by the electronic device, and the display state (or display mode) of the electronic device. That is, when the electronic device uses the first or second display area for display, the display state of the electronic device can be further determined, and different configuration display coefficients can be further determined based on different display states. For example, for an outward-folding screen, when using the outer screen for display, the display mode of the electronic device may be folded or unfolded. Therefore, when the electronic device uses the display area corresponding to the outer screen for display, the folded or unfolded display states can be further decomposed to determine different configuration display coefficients.

[0199] In another possible implementation, the display factor can be configured in relation to other conditions, such as the season. Since electronic devices heat up less slowly in winter, a higher display factor can be configured. The electronic device determines the seasonal conditions based on its location, the time of data acquisition from the network, etc., and then queries the corresponding configured display factor based on the seasonal conditions, the target application, and the display status of the electronic device.

[0200] For example, the correspondence between the display status of the target application and the electronic device and the configuration display coefficient can be recorded in the manner shown in Table 1 below.

[0201] Table 1

[0202] The display areas 1-2 mentioned above are different display areas. Display state 1 and display state 2 can correspond to the folded state of the electronic device's foldable screen, or they can correspond to the unfolded state of the electronic device's foldable screen, the split-screen state of the electronic device's display screen, and the floating state of the target application's screen, etc.

[0203] When the method provided in this application is applied to an electronic device with a foldable screen, in order to reduce the rate of temperature rise and power consumption of the foldable screen in the folded state, the resolution of the foldable screen in the folded state can be reduced, that is, the discount factor of the resolution in the folded state compared to the unfolded state is smaller. Meanwhile, in this application embodiment, the resolution calculation information is determined based on the test usage of the electronic device, without affecting the display effect. For electronic devices with foldable and non-foldable screens, at least two display factors can be configured for the target application. These two display factors can be used to control the resolution in the folded and unfolded states, respectively. The target application can select the currently effective display factor (or discount factor) according to the running state of the foldable screen to reduce the resolution of the product in the folded state, thereby reducing power consumption and the rate of temperature rise.

[0204] Furthermore, when an electronic device uses a first display area and / or a second display area, it may also have different display states (or display modes). For electronic devices with foldable screens, in addition to a fully folded state and a fully unfolded state, there may be several other display states. The first resolution or the second resolution can be further distinguished by combining the display area used by the electronic device and the display state of the electronic device. The following describes the possible changes in the display area of ​​an electronic device with a foldable screen under different display states.

[0205] In one implementation, different display states can be entered depending on the angle between the hinges of the folding screen, whether the folding screen is not fully unfolded or fully folded.

[0206] For example, referring to Figure 9a, the angles on both sides of the folding screen hinge can be adjusted to give the electronic device a tent-like shape. In this tent-like posture, the folding screen of the electronic device can be placed on a support surface with inverted acute, right, or obtuse angles. The display area of ​​the electronic device can face outwards from the tent. For example, for an inward-folding screen, in the posture shown in Figure 9a, the non-folding screen 91 can be used for display. In this case, the entire area of ​​the non-folding screen 91 can serve as a display area.

[0207] For example, referring to Figure 9b, the angles on both sides of the hinge of the folding screen 92 can be adjusted to a near-right angle or greater than a right angle, so that one side of the hinge of the folding screen 92 can stand upright like a laptop screen, while the other side of the folding screen 92 can act as a support like a laptop keyboard. In this case, the upright part of the folding screen 92 can be used to display the target application's screen (such as a game application), while the other supporting part of the folding screen 92 can display other screens (such as a virtual keyboard), achieving a split-screen effect. Alternatively, in the display state shown in Figure 9b, the entire display area of ​​the folding screen 92 can still be used to display the target application's screen. Since the heat dissipation performance of the folding screen 92 is better when it is partially folded than when it is fully folded, assuming the display area of ​​the folding screen is the first display area, the first resolution can be further subdivided. That is, the first resolution can further include a third resolution and a fourth resolution, and the third resolution can be used for display when the folding screen 92 is in the folded state shown in Figure 9b. When the foldable screen is in the folded state shown in Figure 9a, a fourth resolution is used for display. The third and fourth resolutions are determined based on the corresponding default resolution and resolution calculation information, respectively.

[0208] The display state shown in Figure 9a represents the folding screen's folding angle being within a first angle range (e.g., 30°-90°) and the folding screen being displayed in a tent-like orientation. The display state shown in Figure 9b represents the folding screen's folding angle being within a second angle range (e.g., 90°-120°) and the folding screen being displayed in a calendar-like orientation.

[0209] The folding screen shown in Figure 9 is an inward-folding screen. Even when the electronic device is equipped with an outward-folding screen, the first or second resolution can still be further distinguished based on the display state of the folding screen and the display state of the electronic device.

[0210] As shown in Figure 10, the electronic device is equipped with an outward-folding screen 1001. The outward-folding screen 1001 can be fully unfolded, as shown in Figure 10a, or fully folded, as shown in Figure 10b. When the outward-folding screen 1001 is fully folded, its entire display area can be used for display, or one of the display areas on either side of the fold line (also called the hinge) of the outward-folding screen 1001 can be used for display. Simultaneously, when the outward-folding screen 1001 is unfolded, its entire display area can typically be used for display. Therefore, if the entire display area of ​​the outward-folding screen 1001 is taken as the first display area, then when the electronic device uses the first display area, different first resolutions can be used for display depending on the folded or unfolded display state. That is to say, the first resolution includes a fifth resolution and a sixth resolution. If the electronic device uses the first display area and the folding screen is folded, the fifth resolution is used to display the target application's screen. If the electronic device uses the first display area and the folding screen is unfolded, the sixth resolution is used to display the target application's screen. The fifth and sixth resolutions were determined based on the corresponding default resolution and resolution calculation information, respectively.

[0211] In one embodiment of this application, based on the embodiment shown in FIG8, when there are multiple configuration display coefficients, it is necessary to write at least one of the multiple configuration display coefficients into the window module of the target application so that the window module can generate the screen of the target application in real time according to the written configuration display coefficients. The operation method of writing the configuration display coefficients into the window module of the target application is described below.

[0212] In the embodiment corresponding to Figure 8, after storing the configuration display coefficients in the configuration items in the configuration item storage module of the electronic device's system service, the method for processing display information further includes: the electronic device responds to a preset configuration event, queries the configuration item storage module according to the current display area of ​​the electronic device, and obtains the effective configuration display coefficients corresponding to the current display area of ​​the electronic device; the electronic device writes the effective configuration display coefficients into the window module of the target application, so that the window module can calculate the corresponding resolution according to the latest written effective configuration display coefficients.

[0213] The configuration item storage module stores configuration display coefficients, including a first configuration display coefficient and a second configuration display coefficient. The first display coefficient, also referred to as the first configuration display coefficient, is the configuration display coefficient corresponding to the first resolution; that is, the first configuration display coefficient is used to calculate the first resolution. The second display coefficient, also referred to as the second configuration display coefficient, is the configuration display coefficient corresponding to the second resolution; that is, the second configuration display coefficient is used to calculate the second resolution. The effective configuration display coefficient is either the first configuration display coefficient or the second configuration display coefficient.

[0214] The aforementioned preset configuration events can indicate that the currently effective configuration display factor may change. The effective configuration display factor corresponding to the current display area can be the configuration display factor corresponding to the display area currently used by the electronic device, or simply the currently effective configuration display factor, or the configuration display factor used by the target application's window module, or the display factor or discount factor used by the target application's window module. For a single target application, there may be multiple configuration display factors, and different configuration display factors can correspond to different display areas. Therefore, when the display area changes, the configuration display factor used by the target application's window module may also change.

[0215] For example, the preset configuration events may include at least one of the following.

[0216] (1) Electronic devices start up.

[0217] Starting up an electronic device includes both manually turning it off and then manually turning it back on after a certain period of time. It also includes manually clicking a restart button or control to restart the electronic device.

[0218] (2) Install the target application on the electronic device.

[0219] Installing the target application on the electronic device includes: installing the target application when it is not present on the electronic device; or, installing the update file of the target application when it is already installed on the electronic device, i.e., updating or upgrading the target application when it is already installed on the electronic device.

[0220] (3) During the operation of the target application, the display area used to display the target application is updated, and the updated display area includes the first display area or the second display area.

[0221] The display area update for displaying the target application includes at least one of the following.

[0222] (3.1) The target application is switched from running in the background to running in the foreground.

[0223] In other words, when the target application is running but not using any display area to display the screen, it is switched to the target application using at least one display area of ​​the electronic device to display the screen.

[0224] (3.2) The electronic device switches from displaying in the first display area to displaying in the second display area.

[0225] For example, when a target application is running, an electronic device with a foldable screen can fold, unfold, or change the angle of the foldable screen.

[0226] (3.3) The electronic device switches from displaying in the second display area to displaying in the first display area.

[0227] (3.4) The electronic device switches from displaying only in the first display area to displaying simultaneously in the first display area and other display areas.

[0228] (3.5) The electronic device switches from displaying only in the second display area to displaying in both the second display area and other display areas.

[0229] Among them, (3.5) may include opening the first display area when the electronic device only uses the second display area to display the target application, and using the first display area to display the screen of the target application or the screen of other applications.

[0230] In this embodiment, the currently effective configuration display coefficient in the configuration display coefficient is changed according to different configuration events. When the screen of the target application is displayed in different display areas, different effective configuration display coefficients can be applied to the screen of the target application to calculate different resolutions.

[0231] In one implementation, if a preset configuration event occurs on the electronic device such that the display area used to display the target application is updated during the operation of the target application, the effective configuration display coefficient changes, and the operation of drawing the first or second screen of the target application according to the effective configuration display coefficient also changes accordingly. That is, before executing step S51 or step S52 shown in Figure 5, the method for processing display information further includes: measuring the updated display area to obtain measurement information and layout information; the measurement information and layout information are used to draw the first or second screen.

[0232] In other words, taking step S51 as an example, before displaying the first screen according to the first resolution, when it is detected that the electronic device is displaying in the first display area, the measurement information and layout information of the first display area are obtained. When displaying the first screen in the first display area according to the first resolution, the first screen is laid out according to the measurement information and layout information.

[0233] Similarly, in step S52, before displaying the second screen according to the second resolution, when it is detected that the electronic device is displaying in the second display area, measurement information of the second display area and layout information of the second display area are obtained. When displaying the second screen in the second display area according to the second resolution, the second screen is laid out according to the measurement information and layout information.

[0234] The following describes the principles for setting the first and second configuration display coefficients. In one embodiment of this application, different configuration display coefficients may be related to the power consumption and / or temperature rise rate when the electronic device displays using the first and second display areas respectively.

[0235] In one possible embodiment, the relative magnitude relationship between different configuration display coefficients can conform to at least one of the following: The first display coefficient can refer to the configuration display coefficient corresponding to the first resolution, i.e., the first configuration display coefficient. The second display coefficient can refer to the configuration display coefficient corresponding to the second resolution, i.e., the second configuration display coefficient.

[0236] (i) When the power consumption of the electronic device using the first display area is greater than the power consumption of the electronic device using the second display area, the first configuration display coefficient may be less than the second configuration display coefficient.

[0237] (ii) When the power consumption of the electronic device using the first display area is less than the power consumption of the electronic device using the second display area, the first configuration display coefficient may be greater than the second configuration display coefficient.

[0238] (iii) When the temperature rise rate of the electronic device using the first display area is greater than the temperature rise rate of the electronic device using the second display area, the first configuration display coefficient may be less than the second configuration display coefficient.

[0239] (iv) When the temperature rise rate of the electronic device using the first display area is less than the temperature rise rate of the electronic device using the second display area, the first configuration display coefficient may be greater than the second configuration display coefficient.

[0240] (v) For the same target application, when the electronic device uses both the first display area and the second display area for display, the first configuration display coefficient may be less than the first configuration display coefficient when the electronic device uses only the first display area for display.

[0241] (vi) For the same target application, when the electronic device uses both the first display area and the second display area for display, the second configuration display coefficient may be less than the second configuration display coefficient when the electronic device uses only the second display area for display.

[0242] For example, if the electronic device includes a foldable screen and a non-foldable screen, the electronic device can specifically be a mobile phone or a tablet computer. The foldable screen is the inner screen of the electronic device, and the non-foldable screen is the outer screen of the electronic device. The foldable screen and the non-foldable screen are arranged opposite each other, and in this embodiment, the foldable screen and the non-foldable screen are not displayed simultaneously. When the foldable screen is folded, the electronic device uses a first display area for display; that is, it is assumed that the display area of ​​the non-foldable screen of the electronic device is the first display area. When the foldable screen is unfolded, the electronic device uses a second display area for display; that is, it is assumed that the display area of ​​the foldable screen of the electronic device is the second display area. Therefore, correspondingly, when the foldable screen is folded, it uses the first display area for display, and when the foldable screen is unfolded, it uses the second display area for display. Since the display screen does not dissipate heat easily when the foldable screen is folded, resulting in a faster temperature rise of the electronic device, in order to reduce the temperature rise rate when the foldable screen is folded, the first configuration display coefficient is smaller than the second configuration display coefficient.

[0243] However, since the power consumption of a foldable screen in its folded state is less than that in its unfolded state, the first configuration display coefficient can be increased accordingly, and the second configuration display coefficient can be decreased accordingly, in order to balance the power consumption in the folded and unfolded states. In a specific example of this application, considering both power consumption and temperature rise rate, the first configuration display coefficient of the foldable screen in its folded state is greater than the second configuration display coefficient of the foldable screen in its unfolded state.

[0244] When an electronic device with a foldable screen displays the screen of a target application running on different displays, the resolution of the application can be discounted by pre-configuring the display coefficient corresponding to the display area of ​​the electronic device with the foldable screen, thereby reducing the display power consumption of the electronic device and realizing intelligent resolution adjustment.

[0245] In one implementation, the software architecture of the electronic device according to this application embodiment is shown in Figure 11. The electronic device shown in Figure 11 runs the Android system. In other embodiments, the electronic device may be equipped with other types of operating systems.

[0246] Referring to Figure 11, the layered architecture divides the software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system comprises multiple layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system layer, and the kernel layer.

[0247] Figure 11 is a block diagram of a software system for an electronic device to which the method provided in this embodiment of the application is applied. Referring to Figure 8, the layered architecture divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system includes multiple layers, from top to bottom: the application layer, the application framework layer, the Android runtime, the system layer, and the kernel layer. When a model call instruction is issued, the instruction is reported layer by layer from the bottom to the application framework layer or the application layer.

[0248] The application layer can include a series of application packages. As shown in Figure 11, an application package can include desktop applications, camera, gallery, call, map, navigation, Bluetooth, music, video, and other applications. Among these applications, there may be target applications that run on the application layer.

[0249] The application framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The application framework layer includes some predefined functions. As shown in Figure 11, the application framework layer may include a window manager, content provider, interface layer, phone manager, resource manager, notification manager, etc. When a user issues a command to invoke a model via the touchscreen of an electronic device, the information about the user's model operation can be transmitted from the application framework layer to the application layer. In this embodiment, the application framework layer may include system services, which may further include a configuration item storage module for storing configuration items and window states.

[0250] The system layer includes the Android Runtime. The Android Runtime includes core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system. In this embodiment, the system layer may include a configuration module, which runs a configuration module service when the electronic device starts up.

[0251] The kernel layer is the layer between hardware and software. It contains at least display drivers, camera drivers, audio drivers, and sensor drivers. When a user interacts with the touchscreen or buttons of an electronic device, the kernel layer can generate corresponding information, such as model call information, based on the user's actions.

[0252] Under the above four-layer architecture, the receiving device also has a hardware layer, which may include the aforementioned electronic device hardware components, such as displays and buttons.

[0253] Meanwhile, the display information processing method of this application embodiment can be applied to the electronic device shown in FIG11, and may also include other functional modules to implement any step and function in the click operation information processing method provided in any embodiment of this application.

[0254] In one example of this application, the electronic device is a mobile phone or tablet computer with a foldable screen, and the operating system of the electronic device is the Android system. The steps included in the method for processing the displayed information are shown in Figure 12. Figure 13 is a schematic diagram of the operation between the modules of the electronic device in the example shown in Figure 12.

[0255] Step S1201: After the hardware layer of the electronic device starts, the configuration module service of the system layer starts.

[0256] The system layer includes a configuration module. Referring to Figure 13, the configuration module 1301 can run a configuration module service. In step S1201, the configuration module service of the configuration module included in the system layer is started.

[0257] Step S1202: The configuration module service reads the configuration items from the configuration file and stores them in the relevant database at the system layer.

[0258] Referring to Figure 13, the configuration module service of configuration module 1301 can read the configuration file. From the Android system's configuration file 1302, configuration items can be obtained. These configuration items can include multiple display coefficients, also known as discount coefficients. The display coefficients are used to calculate the corresponding default resolution using the default resolution calculation method, thus obtaining the resolution corresponding to each display area. After obtaining the configuration items from the system's configuration file, configuration module 1301 stores the configuration items.

[0259] Step S1203: The system layer matches the configuration items with the target application.

[0260] In this embodiment, the configuration file can record configuration items corresponding to different applications. After obtaining the configuration items, it is necessary to match the configuration items with the corresponding applications, including matching the configuration items with the target application. The target application runs at the application layer.

[0261] Step S1204: The system layer stores the configuration items to the configuration item storage module of the application framework layer.

[0262] Referring to Figure 13, the configuration module 1301 matches the target application with the configuration items to obtain the display coefficient of the configuration item corresponding to the target application. This display coefficient is then saved to the configuration item data storage module 1304 (i.e., the configuration item storage module) in the system service 1303 for use when the target application is launched or when the electronic device changes its folded state. The system service 1303 belongs to the application framework layer in Figure 12.

[0263] Steps S1203 and S1204 can also be triggered when the target application is installed.

[0264] Step S1205: When the target application starts, the window management service determines whether the folded screen is in a folded state.

[0265] The window management service is the window module in the aforementioned embodiments. Referring to Figure 13, when the target application starts, the window management service 1305 determines the window state. The window management service 1305 is located in the application framework layer. The window management service 1305 can determine the window state based on the folding or unfolding state of the electronic device's screen during the operation of the target application, and then determine whether to refresh the effective display coefficient.

[0266] When creating a window, the window management service 1305 can measure the size information of the display area, determine the layout information of the screen corresponding to the target application, and update the window. Updating the window means generating a new screen of the target application in real time based on the effective configuration display factor, size information, and layout information. Since the configuration display factor used in this example is used to reduce the corresponding default resolution, the screen displayed according to the first resolution or the second resolution may be smaller than the original screen, and screen magnification is required to adapt to the size of the display area. After the window state is updated, the latest screen of the target application is magnified by the magnification module 1306 and displayed on the display screen of the electronic device. The magnification module 1306 is included in the application framework layer shown in Figure 12. The effective configuration display factor can be the first configuration display factor or the second configuration display factor of the aforementioned embodiment.

[0267] Step S1206: The window management service selects the currently effective display coefficient of the target application from the configuration item storage module based on whether the folded screen is in a folded state.

[0268] Referring to Figure 13, the application framework layer of the electronic device is used to run various system services. Among them, the window manager service (WMS) 1305 can obtain the corresponding effective configuration display coefficients from the configuration item data storage module 1304 when the target application starts. The window manager service 1305 can always save the effective configuration display coefficients after the target application starts, so as to draw each frame of the target application in real time according to the effective configuration display coefficients.

[0269] Step S1207: When the folding screen of the electronic device changes its folding state, the window management service obtains the latest effective configuration display coefficients from the configuration item storage module according to the latest state of the folding screen.

[0270] Step S1208: After updating the effective configuration display coefficients, update the window module.

[0271] Referring to Figure 13, after the window management service 1305 updates the effective configuration display coefficients, it can regain the measurement information and layout information, and then draw the screen of the target application in real time based on the new effective configuration display coefficients, measurement information and layout information.

[0272] Using the examples shown in Figures 12 and 13, in products such as mobile phones and tablets equipped with foldable screens, the resolution discount factor can be configured for the folded and unfolded states respectively. The resolution discount factor for the corresponding state can be selected based on the state of the folded device when the application is running.

[0273] In another possible example of this application, the electronic device is a mobile phone, which includes a foldable screen and a non-foldable screen, and the target application is a chess game application. As shown in Figure 14a, when the foldable screen is folded, the non-foldable screen displays the interface of the chess game application. As shown in Figure 14b, when the foldable screen is unfolded, the foldable screen displays the interface of the chess game application. In this example, the display area of ​​the foldable screen corresponds to the first display area in the embodiment shown in Figure 5, and the display area of ​​the non-foldable screen corresponds to the second display area in the embodiment shown in Figure 5.

[0274] In the example shown in Figure 14, the resolution discount factor for the chess game application can be configured separately in the folded and unfolded states. When the game application is running, the corresponding resolution discount factor can be selected based on the folded state of the device. As an example, the outer screen game discount factor can be set to 0.7, and the inner screen game discount factor to 0.9, with the outer screen discount factor being greater than the inner screen discount factor.

[0275] For example, before the resolution discount, the external screen resolution is 1060 and 2376, where 1060 and 2376 are the resolutions of the layers drawn by the SurfaceView of the game application in the width and height directions, respectively. In the phone's window module, this can be recorded as "0.0 0.0 1060.0 2376.0". "0.0" indicates that the coordinates of the top left or bottom right corner of the layer are 0.0, and "1060.0" and "2376.0" represent the maximum coordinate values ​​in the width and height directions, respectively. The chess game application may also include multiple controls, such as status bar controls, avatar controls, and game management controls. The game management controls can be the "Menu", "Analysis", "Undo", and "Hint" controls shown in Figures 14a and 14b. The status bar controls can be controls corresponding to variable information in the game screen, such as the selection hint control 1301 for the player making the move and the move count control. Each control may correspond to a layer, and the size of the control layers in the chess game screen may not exceed the size of the main layer. During display, the control layers can be calculated based on resolution information or configured display factors. Alternatively, the default resolution corresponding to the control layers can be retained.

[0276] In the example shown in Figure 14, after the resolution is discounted, the resolution of the external screen is 742 and 1663. The meaning and recording method of 742 and 1663 are the same as before the discount.

[0277] Before the resolution reduction, the inner screen's resolution was 2344 and 2156. After the resolution reduction, the inner screen's resolution was 2110 and 1940. The meaning and recording method of the resolution values ​​are the same as those of the outer screen.

[0278] The methods provided in the embodiments of this application enable manufacturers of electronic devices with inner and outer screens (i.e., inner and outer screens) to integrate various information and set resolution discounting factors for the inner and outer screens during the operation of a target application through configuration files. Based on the folding state of the inner and outer screens during the operation of the target application, the electronic device selects different resolution discounting factors to reduce the target application resolution, thereby reducing power consumption and temperature rise rate.

[0279] This application also provides a processing device for displaying information, including a first display module and a second display module.

[0280] The first display module is used to: when the electronic device uses a first display area, display a first screen of the target application in the first display area according to a first resolution, wherein the first resolution is determined based on a first default resolution and first resolution calculation information; the first default resolution is the resolution corresponding to the target application in the first display area, and the first resolution calculation information corresponds to the target application and the first display area. The second display module is used to: when the electronic device uses a second display area, display a second screen of the target application in the second display area according to a second resolution, wherein the second resolution is determined based on a second default resolution and second resolution calculation information; the second default resolution is the resolution corresponding to the target application in the second display area, and the second resolution calculation information corresponds to the second display area and the target application; the first display area and the second display area are different display areas of the electronic device.

[0281] In other embodiments of this application, in the information processing apparatus, each module is also used to execute the methods implemented in the embodiments, examples or combinations thereof related to FIG5.

[0282] Meanwhile, the display information processing device in this application embodiment may also include other functional modules to implement any steps and functions in the click operation information processing method provided in any embodiment of this application.

[0283] The functional units and modules in the above embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units and modules are only for easy differentiation and are not intended to limit the scope of protection of the embodiments of this application.

[0284] This application also provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to perform the call method provided in any embodiment of this application.

[0285] Optionally, the chip may also include a memory, which is connected to the processor via a circuit or wire.

[0286] This application also provides a chip system including a processor. The processor is used to read and execute a computer program stored in a memory to perform the call method provided in any embodiment of this application.

[0287] Optionally, the chip system also includes a memory, which is connected to the processor via circuitry or wires.

[0288] As an example of this application, the above-mentioned electronic device can access a base station and also has the ability to access a wireless local area network. For example, the electronic device is a mobile phone, tablet, smartwatch, portable laptop, etc. Referring to Figure 15, Figure 15 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0289] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0290] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0291] The controller can be the nerve center and command center of the electronic device 100.

[0292] The processor 110 may include one or more processing units. These processing units may be independent devices or integrated within one or more processors. The processor 110 may also include memory for storing instructions and data.

[0293] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0294] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0295] The terminal device implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering.

[0296] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. In some embodiments, electronic device 100 may include one or N displays screens 194, where N is an integer greater than 1.

[0297] Internal memory 121 can be used to store computer-executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. Internal memory 121 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, universal flash storage (UFS), etc.

[0298] Electronic devices can provide visual output related to touch operation through display screen 194.

[0299] Button 190 includes the power button, volume buttons, etc. Button 190 can be a mechanical button or a touch button.

[0300] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that integrates one or more available media. Available media can be magnetic media (such as floppy disks, hard disks, and magnetic tapes), optical media (such as Digital Versatile Discs (DVDs)), or semiconductor media (such as Solid State Disks (SSDs)).

[0301] The above-described embodiments are optional embodiments provided by this application and are not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the technical scope disclosed in this application should be included within the protection scope of this application.

Claims

1. A method for processing information display, characterized in that, include: When the electronic device uses a first display area, the first screen of the target application is displayed in the first display area at a first resolution; In response to the switching operation, the electronic device displays a second screen of the target application in a second display area: When the electronic device uses a second display area, the second screen of the target application is displayed in the second display area at a second resolution; The first display area and the second display area are different display areas of the electronic device.

2. The method according to claim 1, characterized in that, The first resolution is determined based on the first default resolution and the first resolution calculation information; the first default resolution is the default resolution corresponding to the first screen of the target application displayed in the first display area, and the first resolution calculation information is the resolution calculation corresponding to the first screen of the target application displayed in the first display area; The second resolution is determined based on the second default resolution and the second resolution calculation information; the second default resolution is the default resolution corresponding to the second screen of the target application displayed in the second display area, and the second resolution calculation information is the resolution calculation corresponding to the second screen of the target application displayed in the second display area.

3. The method according to claim 1 or 2, characterized in that, The first resolution calculation information includes a first configuration display coefficient; the second resolution calculation information includes a second configuration display coefficient. The first default resolution is multiplied by the product of the first configured display coefficient to obtain the first resolution; The second default resolution is multiplied by the product of the second configuration display coefficient to obtain the second resolution.

4. The method according to claim 3, characterized in that, The first configuration displays a coefficient less than 1 and greater than 0, and the second configuration displays a coefficient less than 1 and greater than 0.

5. The method according to claim 3 or 4, characterized in that, When the power consumption of the electronic device using the first display area is greater than the power consumption of the electronic device using the second display area, the first configuration display coefficient is less than the second configuration display coefficient. When the power consumption of the electronic device using the first display area is less than the power consumption of the electronic device using the second display area, the first configuration display coefficient is greater than the second configuration display coefficient.

6. The method according to claim 3 or 4, characterized in that, When the temperature rise rate of the electronic device using the first display area is greater than the temperature rise rate of the electronic device using the second display area, the first configuration display coefficient is less than the second configuration display coefficient. When the temperature rise rate of the electronic device using the first display area is less than the temperature rise rate of the electronic device using the second display area, the first configuration display coefficient is greater than the second configuration display coefficient.

7. The method according to any one of claims 1-6, characterized in that, The method further includes: In response to a preset configuration event, based on the current display area of ​​the electronic device, The first configuration display factor is obtained from the configuration item storage module of the electronic device, and the first configuration display factor is input to the window module of the target application. The window module determines the first resolution based on the first configuration display factor; or... The second configuration display coefficient is obtained from the configuration item storage module of the electronic device, and the second configuration display coefficient is input into the window module of the target application. The window module determines the second resolution based on the second configuration display coefficient.

8. The method according to claim 7, characterized in that, The preset configuration events include at least one of the following: The electronic device is activated; Install the target application on the electronic device; During the operation of the target application, the two display areas used to display the target application are switched.

9. The method according to claim 8, characterized in that, The switching between the two display areas for displaying the target application includes at least one of the following: The electronic device switches from displaying in the first display area to displaying in the second display area; The electronic device switches from displaying in the second display area to displaying in the first display area.

10. The method according to claim 8 or 9, characterized in that, When the preset configuration event is the switching between the two display areas used to display the target application, the method further includes: The updated display area is measured to obtain measurement information and layout information; the measurement information and layout information are used to draw the first screen or the second screen.

11. The method according to any one of claims 1-10, characterized in that, The electronic device includes a foldable screen; when the foldable screen is in a folded state, the electronic device uses the first display area for display; when the foldable screen is in an unfolded state, the electronic device uses the second display area for display.

12. The method according to any one of claims 1-11, characterized in that, When the electronic device is in split-screen mode, it uses a first display area; when the electronic device is in full-screen mode, it uses a second display area.

13. The method according to any one of claims 1-12, characterized in that, When the floating window is displayed on the screen of the electronic device, the floating window is the first display area; when the floating window is not displayed on the screen of the electronic device, the display area of ​​the screen of the electronic device is the second display area.

14. The method according to any one of claims 1-13, characterized in that, When the target application runs, it invokes the graphics processor of the electronic device to display the first screen and / or the second screen.

15. The method according to any one of claims 1-14, characterized in that, The method further includes: In the system layer configuration file of the electronic device, obtain the configuration item corresponding to the target application; The resolution calculation information in the configuration item is stored in the configuration item storage module in the application framework layer of the electronic device; The resolution calculation information includes first resolution calculation information and second resolution calculation information.

16. An electronic device, characterized in that, The electronic device includes: a processor and a memory; The memory is used to store a program for the electronic device to perform the method as described in any one of claims 1-15, and to store data related to implementing the method as described in any one of claims 1-15; The processor is configured to execute programs stored in the memory.

17. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1-15.