Screen processing method and apparatus, electronic device, and computer-readable storage medium
By dynamically adjusting the touch sampling rate according to the type of application to be displayed on the screen of the terminal device, the problem of excessive power consumption caused by high touch sampling rate in the existing technology is solved, and the battery life of the device is improved and the demand and power consumption are improved. balance.
Patent Information
- Application Number
- PCT/CN2024/089891
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-22
- Filing Date
- 2024-04-25
- Publication Date
- 2024-09-26
AI Technical Summary
Existing technology is difficult to meet user needs while reducing the power consumption of the device screen touch sampling rate, resulting in limited device battery life.
By determining the application type of the application to be displayed on the screen of the terminal device, determining the target touch sampling rate according to the application type, and adjusting the touch sampling rate when the application to be displayed is displayed on the screen, in order to achieve dynamic sampling rate configuration for different application areas, Meet application requirements while reducing power consumption.
It is possible to reasonably adjust the touch sampling rate, reduce additional power consumption, improve the battery life of the device, and achieve a balance between demand and power consumption while meeting application requirements.
Smart Images

Figure CN2024089891_26092024_PF_FP
Abstract
Description
Screen processing method, device, electronic device and computer-readable storage medium
[0001] This application claims priority to Chinese patent application filed on March 22, 2023, application number 202310289404.6, and application name “Screen processing method, device, electronic device and computer-readable storage medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] The embodiments of the present application relate to the field of computer technology, and specifically to a screen processing method, device, electronic device, and computer-readable storage medium. Background Art
[0003] Touch sampling rate is a screen technology application that can reduce the user's touch delay and avoid the intermittent touch caused by low sampling rate.
[0004] Generally speaking, the higher the touch sampling rate of the screen, the more timely the response to the user and the better the user experience. Technical issues
[0005] However, in some low-touch sampling rate scenarios, a higher touch sampling rate will generate unnecessary power consumption, affecting the device's battery life. Therefore, how to configure the device screen's touch sampling rate to meet user needs while reducing power consumption and improving the device's battery life, achieving a balance between demand and power consumption, is a current research direction. Technical Solutions
[0006] The embodiments of the present application provide a screen processing method, device, electronic device, and computer-readable storage medium, which can improve the rationality of the screen touch sampling rate configuration and achieve a balance between demand and power consumption.
[0007] The present application provides a screen processing method, which is applied to a screen projection receiving device, including:
[0008] Determining the application type to be displayed on the screen of the terminal device;
[0009] Determine a target touch sampling rate according to the application type, where the touch sampling rate describes the number of touch signals collected per unit time;
[0010] The application to be displayed is displayed on the screen, and the screen is adjusted to the target touch sampling rate.
[0011] Accordingly, an embodiment of the present application further provides a screen processing device, comprising:
[0012] A type determination module, configured to determine the application type to be displayed on the screen of the terminal device;
[0013] a sampling rate determination module, configured to determine a target touch sampling rate according to the application type, wherein the touch sampling rate describes the number of touch signals collected per unit time;
[0014] An adjustment module is used to display the application to be displayed on the screen and adjust the screen to the target touch sampling rate.
[0015] Optionally, in some embodiments of the present application, the to-be-displayed applications include at least two, and the sampling rate determination module includes:
[0016] a sampling rate determining unit, configured to determine, for each application to be displayed, a target touch sampling rate corresponding to the application to be displayed according to the application type of the application to be displayed;
[0017] Adjustment modules, including:
[0018] An area acquisition unit, configured to acquire a split-screen display area corresponding to each application to be displayed on the screen;
[0019] The sampling rate adjustment unit is used to display each application to be displayed in a corresponding split-screen display area, and adjust the split-screen display area to a corresponding target touch sampling rate.
[0020] In some embodiments of the present application, the device further includes a transformation module, which includes:
[0021] The sampling rate conversion unit is used to display the application to be displayed in the changed split-screen display area if the split-screen display area of the application to be displayed changes, and adjust the transformed split-screen display area to the target touch sampling rate corresponding to the application to be displayed.
[0022] In some embodiments of the present application, the sampling rate determination module includes:
[0023] a level determination unit, configured to determine a sampling level according to the application type;
[0024] a threshold determination unit, configured to determine a touch sampling rate interval threshold according to the sampling level, wherein the touch sampling rate interval threshold includes at least two preset touch sampling rates;
[0025] The sampling rate selection unit is configured to select a preset touch sampling rate from the touch sampling rate interval threshold as a target touch sampling rate.
[0026] In some embodiments of the present application, the device further includes a dynamic adjustment module, which includes:
[0027] A sampling rate acquisition unit, configured to acquire an actual touch sampling rate of the screen, wherein the actual touch sampling rate is determined by the number of times the screen actually receives touch signals within a preset time period;
[0028] a sampling rate dynamic determination unit, configured to determine a reference touch sampling rate according to the actual touch sampling rate;
[0029] The sampling rate dynamic adjustment unit is used to adjust the screen to the reference touch sampling rate.
[0030] In some embodiments of the present application, the sampling rate acquisition unit includes:
[0031] a dividing sub-unit, configured to divide the screen into at least two screen sub-areas;
[0032] an acquisition subunit, configured to acquire an actual touch sampling rate of each of the screen sub-areas;
[0033] The sampling rate dynamic determination unit includes:
[0034] a sampling rate dynamic determination subunit, configured to determine, for each screen sub-region, a reference touch sampling rate corresponding to the screen sub-region according to the actual touch sampling rate of the screen sub-region;
[0035] Sampling rate dynamic adjustment sheet, including:
[0036] The sampling rate dynamic adjustment subunit is used to adjust each screen sub-area to its corresponding reference touch sampling rate.
[0037] In some embodiments of the present application, the sampling rate acquisition unit includes:
[0038] a capture subunit, configured to capture an operation gesture directed to the screen, wherein different operation gestures have different contents of the screen operation;
[0039] A recording subunit, used to record the number of gesture operations of the operation gesture within a preset time period;
[0040] The sampling rate determination subunit is used to determine the actual touch sampling rate according to the number of gesture operations.
[0041] In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned screen processing method are implemented.
[0042] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned screen processing method are implemented.
[0043] In a fifth aspect, embodiments of the present application further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations described in the embodiments of the present application. Beneficial effects
[0044] The embodiment of the present application determines the application type to be displayed on the screen of a terminal device, determines a target touch sampling rate based on the application type, and displays the application to be displayed on the screen, and adjusts the screen to the touch sampling rate. The touch sampling rate of the screen is adjusted based on the type of application displayed on the screen, thereby meeting the application requirements while keeping the touch sampling rate within a reasonable range, reducing the generation of additional power consumption, improving the rationality of the touch sampling rate configuration, and achieving a balance between demand and power consumption. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in this application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0046] FIG1 is a schematic diagram of a scenario of a screen processing method provided in an embodiment of the present application;
[0047] FIG2 is a flow chart of a screen processing method provided in an embodiment of the present application;
[0048] FIG3 is a flow chart of a method for processing a screen when multiple applications are displayed on the screen according to an embodiment of the present application;
[0049] FIG4 is a schematic diagram of an interface when multiple applications exist on a screen according to an embodiment of the present application;
[0050] FIG5 is another flow chart of the screen processing method provided in an embodiment of the present application;
[0051] FIG6 is a schematic structural diagram of a screen processing device provided in an embodiment of the present application;
[0052] FIG7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Modes for Carrying Out the Invention
[0053] The following will be combined with the drawings in this application to clearly and completely describe the technical solutions in this application. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.
[0054] Embodiments of the present application provide a screen processing method, apparatus, electronic device, and computer-readable storage medium. Specifically, embodiments of the present application provide a screen processing apparatus applicable to electronic devices, wherein the electronic devices include terminal devices, including but not limited to mobile phones, televisions, tablet computers, and other devices.
[0055] Correspondingly, referring to FIG1 , taking the terminal device executing the screen processing method as an example, the specific execution process is as follows:
[0056] The terminal device 10 determines the application type of the application to be displayed on the screen, then determines the target touch sampling rate according to the application type, displays the application to be displayed on the screen, and adjusts the touch sampling rate of the screen to the target touch sampling rate.
[0057] It should be noted that the touch sampling rate describes the number of touch signals collected per unit time. Generally speaking, the higher the touch sampling rate, the more timely the screen response and the better the user's control experience.
[0058] It is understandable that the touch sampling rate of the screen is adjusted according to the different types of applications displayed on the screen. While meeting the application requirements, the touch sampling rate can be kept within a reasonable range, reducing the generation of additional power consumption, improving the rationality of the touch sampling rate configuration, and achieving a balance between demand and power consumption.
[0059] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.
[0060] Please refer to Figure 2, which is a flowchart of the screen processing method provided in an embodiment of the present application. The screen processing method is applied to the screen projection receiving device, and the specific process is as follows:
[0061] 101. Determine an application type to be displayed on the screen of the terminal device.
[0062] It is understood that the application type is the type of application. In the embodiments of the present application, applications are classified according to their control characteristics. For example, applications can be divided into high-touch applications and low-touch applications. For example, for applications such as reading, listening to music, and watching videos, since the number of user clicks during use is relatively small, such applications can be classified as low-touch applications; for gaming applications, such applications require more user operations on the screen, so such applications can be classified as high-touch applications.
[0063] In the embodiment of the present application, the type of application can be determined based on the classification of the application in the application store, or based on a user-defined classification.
[0064] It is understood that the terminal device can be a mobile phone, tablet computer, or other device that can be controlled via a touch screen, including devices that can be controlled via gestures. The screen is suitable for GFF, GF and other touch screens, including plug-in TP solution touch screens, as well as touch screen architectures based on Oncell and Incell.
[0065] It is understandable that by determining the application type of the application to be displayed on the screen, it is convenient to control the display of the application on the screen according to the application type.
[0066] 102. Determine a target touch sampling rate according to the application type, where the touch sampling rate describes the number of touch signals collected per unit time.
[0067] It is understandable that different application types correspond to different touch sampling rates, and the touch sampling rate corresponding to the application type of the application is the target touch sampling rate when the application is displayed on the screen.
[0068] It is understood that the target touch sampling rate corresponding to the application type can be obtained based on a mapping relationship between application type and touch sampling rate. For example, a mapping relationship between different application types and different touch sampling rates can be pre-established. Based on this application relationship, the target touch sampling rate can be determined from this mapping relationship according to the application type of the current application. Accordingly, this mapping relationship can be pre-defined based on actual needs. For example, the user can pre-collect the touch sampling rates for each application type and construct a corresponding mapping list.
[0069] 103. Display the application to be displayed on the screen and adjust the screen to the target touch sampling rate. It is understood that by displaying the application to be displayed on the screen and adjusting the screen to the touch sampling rate, the application can have the corresponding touch sampling rate during use, thereby achieving matching different touch sampling rates according to different applications.
[0070] Among them, the embodiment of the present application adjusts the touch sampling rate of the screen according to the different types of applications displayed on the screen, so that the touch sampling rate can be within a reasonable range while meeting the application requirements, reducing the generation of additional power consumption, improving the rationality of the touch sampling rate configuration, and achieving a balance between demand and power consumption.
[0071] Understandably, with market development, larger screens are becoming a trend. Users are no longer limited to using just one app on a single screen; more and more screens are displaying multiple apps simultaneously, and using multiple apps simultaneously. In this situation, setting a single touch sampling rate for the screen cannot meet the needs of each app. Therefore, the touch sampling rate needs to be adjusted for each app display area on the screen to achieve a balance between demand and power consumption.
[0072] Accordingly, in an embodiment of the present application, for the situation where there are multiple applications on the screen, each application can be displayed in a split-screen manner, and the touch sampling rate of the display area of each application can be adjusted separately. That is, optionally, in some embodiments of the present application, the applications to be displayed include at least two, and the step of "determining the target touch sampling rate according to the application type" includes: for each application to be displayed, determining the target touch sampling rate corresponding to the application to be displayed according to the application type of the application to be displayed.
[0073] Accordingly, in order to avoid the defect of a consistent touch sampling rate at all locations on the screen, the embodiment of the present application determines a corresponding target touch sampling rate for each application to be displayed based on the application type of each application to be displayed.
[0074] Subsequently, for each application on the screen, the touch sampling rate can be adjusted separately according to the split-screen display area where each application is located. That is, optionally, in some embodiments of the present application, the step of "displaying the application to be displayed on the screen and adjusting the screen to the target touch sampling rate" includes:
[0075] Obtaining a split-screen display area corresponding to each application to be displayed on the screen;
[0076] For each application to be displayed, the application to be displayed is displayed in a corresponding split-screen display area, and the split-screen display area is adjusted to a corresponding target touch sampling rate.
[0077] It can be understood that the split-screen display area is the area on the screen where the application is displayed. The size of this area is generally controlled by the display control. When the user adjusts the split-screen display area with his fingers or a stylus, the size of the split-screen display area can be adjusted accordingly.
[0078] Among them, by adjusting each split-screen display area on the screen to a different touch sampling rate, the touch sampling rate at different locations on the screen is different, and can meet the touch requirements of different applications. At the same time, it can also solve the power consumption problem caused by the excessively high touch sampling rate.
[0079] Optionally, when the area where the application is displayed on the screen changes, it is necessary to adjust the touch sampling rate of the changed area. That is, optionally, in some embodiments of the present application, after the step of "for each application to be displayed, displaying the application to be displayed in the corresponding split-screen display area, and adjusting the split-screen display area to the corresponding target touch sampling rate", the method further includes:
[0080] If the split-screen display area of the application to be displayed changes, the application to be displayed is displayed in the changed split-screen display area, and the changed split-screen display area is adjusted to the target touch sampling rate corresponding to the application to be displayed.
[0081] In this case, the touch sampling rate of the application is adjusted as the split-screen display area changes during subsequent use, so that the corresponding touch sampling rate can be achieved within the display area of the application, ensuring that the use of the application can meet the corresponding touch requirements. Optionally, different sampling levels can be configured for different applications, and the corresponding touch sampling rate is determined based on the sampling level. That is, optionally, in some embodiments of the present application, the step of "determining the target touch sampling rate according to the application type" includes:
[0082] Determining a sampling level based on the application type;
[0083] Determining a touch sampling rate interval threshold according to the sampling level, wherein the touch sampling rate interval threshold includes at least two preset touch sampling rates;
[0084] A preset touch sampling rate is selected from the touch sampling rate interval threshold as the target touch sampling rate.
[0085] It should be noted that the touch sampling rate interval threshold is a pre-configured numerical interval containing the touch sampling rate, and the interval includes multiple preset touch sampling rates.
[0086] It is understandable that different sampling levels correspond to different touch sampling rate thresholds, and the sampling level is used to distinguish different types of applications. Among them, a corresponding mapping relationship can also be established between the sampling level and the touch sampling rate threshold, which facilitates the rapid acquisition of the corresponding touch sampling rate threshold based on this mapping relationship.
[0087] Wherein, after the corresponding touch sampling rate interval threshold is determined, any preset touch sampling rate in the interval corresponding to the touch sampling rate interval threshold can be selected as the target touch sampling rate.
[0088] Correspondingly, low-touch applications generally refer to applications with fewer touches. However, for this type of application, there are also situations where there are more touches. For example, for a low-touch application for audio, when the user needs to frequently switch songs, the low-touch application becomes a high-touch application. Correspondingly, the low touch sampling rate corresponding to the low-touch application cannot meet the touch requirements. Therefore, it is necessary to adjust the touch sampling rate displayed on the screen of the application according to the touch requirements of the application during actual use.
[0089] For example, during the use of the application, the actual touch situation of the screen is collected, and the touch sampling rate is adjusted based on the actual touch situation. That is, optionally, in some embodiments of the present application, after the step of "displaying the application to be displayed on the screen and adjusting the screen to the target touch sampling rate", the method further includes:
[0090] Obtaining an actual touch sampling rate of the screen, where the actual touch sampling rate is determined by the number of times the screen actually receives touch signals within a preset time period;
[0091] Determining a reference touch sampling rate according to the actual touch sampling rate;
[0092] The screen is adjusted to the reference touch sampling rate.
[0093] It should be noted that the actual touch sampling rate is the frequency with which the screen is touched during application use, reflecting the touch conditions of the screen during application use. By collecting the touch conditions of the application during actual use, the touch sampling rate of the screen is adjusted based on these touch conditions to better match the touch requirements.
[0094] The touch area of some applications may be only a small area. For example, for gaming applications, only a small area of the interface is the area that the user needs to operate. Therefore, for such applications, the touch sampling rate of only the small area can be increased. That is, optionally, in some embodiments of the present application, the step of "obtaining the actual touch sampling rate of the screen" includes:
[0095] dividing the screen into at least two screen sub-areas;
[0096] Obtaining an actual touch sampling rate of each of the screen sub-areas;
[0097] The determining of a reference touch sampling rate according to the actual touch sampling rate includes:
[0098] For each screen sub-region, determining a reference touch sampling rate corresponding to the screen sub-region according to the actual touch sampling rate of the screen sub-region;
[0099] The adjusting the screen to the reference touch sampling rate includes:
[0100] Adjust each screen sub-area to its corresponding reference touch sampling rate.
[0101] Among them, adjusting the touch sampling rate of each screen sub-area based on the actual touch sampling rate of each screen sub-area is beneficial to improving the touch sampling rate of the area with more manipulation and reducing the touch sampling rate of the area with less manipulation.
[0102] Furthermore, with the improvement of image recognition technology, the control of some applications no longer relies solely on touches on the screen. For example, some applications can also be controlled and responded to through gestures in the air. Such applications usually have two modes: gesture control and touch, and the frequency of gesture control and touch should be consistent. For example, for a certain function of the same application, the number of controls through gestures and the number of touches through the screen should be the same. Therefore, in the embodiment of the present application, the number of touches on the screen can also be obtained by the number of gesture operations, that is, the touch sampling rate of the screen can be obtained. That is, optionally, in some embodiments of the present application, the step of "obtaining the actual touch sampling rate of the screen" includes:
[0103] capturing an operation gesture directed to the screen, wherein different operation gestures have different effects on the screen operation;
[0104] Recording the number of gesture operations of the operation gesture within a preset time period;
[0105] An actual touch sampling rate is determined according to the number of gesture operations.
[0106] It is understandable that the content operated by gestures or touches in the same application is consistent. Therefore, the number of gesture operations should also be consistent with the number of touches on the screen. Therefore, for the operation of the application, if the user chooses to control it by touching the screen, the number of touches on the screen should also be consistent with the number of gesture operations. Therefore, it is reasonable and logical to determine the actual touch sampling rate by the number of gesture operations.
[0107] It can be understood that the embodiment of the present application configures different areas of the screen to have different touch sampling rates, thereby meeting the touch requirements while reducing the power consumption of the screen as much as possible and improving the battery life of the device.
[0108] Please refer to FIG3 , which is a flowchart of a screen processing method when multiple applications are displayed on a screen according to an embodiment of the present application. The specific process of the screen processing method includes:
[0109] 201. When multiple applications are started on the screen, determine the split-screen display area corresponding to each application;
[0110] 202. For each application, obtain the application type of the application;
[0111] 203. Determine a target touch sampling rate corresponding to each application according to the application type corresponding to each application;
[0112] 204. Adjust the split-screen display area corresponding to each application to the corresponding target touch sampling rate.
[0113] Among them, by adjusting the touch sampling rate of the display areas corresponding to different applications to different ones, the touch sampling rate can be dynamically adapted according to the display content in different areas of the screen, further optimizing the battery life of the mobile phone.
[0114] For example, please refer to Figure 4, which is a schematic diagram of the interface when there are multiple applications in the screen provided by an embodiment of the present application, wherein the screen interface includes three split-screen display areas A, B and C. Accordingly, based on screen processing, the touch sampling rate of each split-screen display area can be dynamically adapted. For example, the touch sampling rate of split-screen display area A is 240Hz, the touch sampling rate of split-screen display area B is 60Hz, and the touch sampling rate of split-screen display area C is 120Hz.
[0115] Please refer to FIG5 , which is another flowchart of the screen processing method provided in an embodiment of the present application. The flowchart of the screen processing method specifically includes:
[0116] 211. Detect whether the screen is split and obtain each partition. If it is, execute step 212; otherwise, execute step 214.
[0117] 212. Identify the application content displayed in each partition;
[0118] 213. For each partition, trigger the touch integrated chip to adapt the corresponding touch sampling rate according to the application content in the partition;
[0119] 214. Identify the application content displayed on the screen;
[0120] 215. Trigger the touch integrated chip to adapt to a corresponding touch sampling rate according to the application content.
[0121] It is understandable that after adjusting the touch sampling rate of the screen, during the screen processing, it is possible to return to step 211 until the screen processing is completed (such as shutting down the computer or closing the application).
[0122] It is understandable that the touch sampling rate is dynamically adapted according to the content displayed in different areas of the screen to further optimize the battery life of the mobile phone. In order to facilitate better implementation of the screen processing method of this application, this application also provides a screen processing device based on the above screen processing method. The meaning of the terms is the same as in the above screen processing method. For specific implementation details, please refer to the description in the method embodiment.
[0123] Please refer to FIG6 , which is a schematic diagram of the structure of a screen processing device provided by an embodiment of the present application, wherein the screen processing device may be specifically as follows:
[0124] A type determination module 301 is configured to determine the type of application to be displayed on the screen of the terminal device;
[0125] A sampling rate determination module 302 is configured to determine a target touch sampling rate according to the application type, where the touch sampling rate describes the number of touch signals collected per unit time;
[0126] The adjustment module 303 is configured to display the application to be displayed on the screen and adjust the screen to the target touch sampling rate.
[0127] Optionally, in some embodiments of the present application, the to-be-displayed applications include at least two, and the sampling rate determining module 302 includes: a sampling rate determining unit, configured to determine, for each to-be-displayed application, a target touch sampling rate corresponding to the to-be-displayed application according to an application type of the to-be-displayed application;
[0128] The adjustment module 303 includes:
[0129] An area acquisition unit, configured to acquire a split-screen display area corresponding to each application to be displayed on the screen;
[0130] The sampling rate adjustment unit is used to display each application to be displayed in a corresponding split-screen display area, and adjust the split-screen display area to a corresponding target touch sampling rate.
[0131] In some embodiments of the present application, the device further includes a transformation module, which includes:
[0132] The sampling rate conversion unit is used to display the application to be displayed in the changed split-screen display area if the split-screen display area of the application to be displayed changes, and adjust the transformed split-screen display area to the target touch sampling rate corresponding to the application to be displayed.
[0133] In some embodiments of the present application, the sampling rate determination module 302 includes:
[0134] a level determination unit, configured to determine a sampling level according to the application type;
[0135] a threshold determination unit, configured to determine a touch sampling rate interval threshold according to the sampling level, wherein the touch sampling rate interval threshold includes at least two preset touch sampling rates;
[0136] The sampling rate selection unit is configured to select a preset touch sampling rate from the touch sampling rate interval threshold as a target touch sampling rate.
[0137] In some embodiments of the present application, the device further includes a dynamic adjustment module, which includes:
[0138] A sampling rate acquisition unit, configured to acquire an actual touch sampling rate of the screen, wherein the actual touch sampling rate is determined by the number of times the screen actually receives touch signals within a preset time period;
[0139] a sampling rate dynamic determination unit, configured to determine a reference touch sampling rate according to the actual touch sampling rate;
[0140] The sampling rate dynamic adjustment unit is used to adjust the screen to the reference touch sampling rate.
[0141] In some embodiments of the present application, the sampling rate acquisition unit includes:
[0142] a dividing sub-unit, configured to divide the screen into at least two screen sub-areas;
[0143] an acquisition subunit, configured to acquire an actual touch sampling rate of each of the screen sub-areas;
[0144] The sampling rate dynamic determination unit includes:
[0145] a sampling rate dynamic determination subunit, configured to determine, for each screen sub-region, a reference touch sampling rate corresponding to the screen sub-region according to the actual touch sampling rate of the screen sub-region;
[0146] Sampling rate dynamic adjustment sheet, including:
[0147] The sampling rate dynamic adjustment subunit is used to adjust each screen sub-area to its corresponding reference touch sampling rate.
[0148] In some embodiments of the present application, the sampling rate acquisition unit includes:
[0149] a capture subunit, configured to capture an operation gesture directed to the screen, wherein different operation gestures have different contents of the screen operation;
[0150] A recording subunit, used to record the number of gesture operations of the operation gesture within a preset time period;
[0151] The sampling rate determination subunit is used to determine the actual touch sampling rate according to the number of gesture operations.
[0152] In the embodiment of the present application, the type determination module 301 first determines the application type to be displayed on the screen of the terminal device, and then the sampling rate determination module 302 determines the target touch sampling rate based on the application type. The touch sampling rate describes the number of touch signals collected per unit time. Then, the adjustment module 303 displays the application to be displayed on the screen and adjusts the screen to the target touch sampling rate.
[0153] It is understandable that the touch sampling rate of the screen is adjusted according to the different types of applications displayed on the screen. While meeting the application requirements, the touch sampling rate can be kept within a reasonable range, reducing the generation of additional power consumption, improving the rationality of the touch sampling rate configuration, and achieving a balance between demand and power consumption.
[0154] In addition, the present application also provides an electronic device, as shown in FIG7 , which shows a schematic structural diagram of the electronic device involved in the present application. Specifically:
[0155] The electronic device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the electronic device structure shown in FIG7 does not limit the electronic device and may include more or fewer components than shown, or combine certain components, or arrange the components differently.
[0156] Processor 401 is the control center of the electronic device, connecting the various parts of the entire electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in memory 402 and accessing data stored in memory 402, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, processor 401 may include one or more processing cores; preferably, processor 401 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 401.
[0157] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0158] The electronic device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 403 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0159] The electronic device may further include an input unit 404, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402, thereby implementing the steps in any of the screen processing methods provided in the embodiments of the present application.
[0160] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0161] The embodiment of the present application determines the application type to be displayed on the screen of a terminal device, determines a target touch sampling rate based on the application type, and displays the application to be displayed on the screen, and adjusts the screen to the touch sampling rate. The touch sampling rate of the screen is adjusted based on the type of application displayed on the screen, thereby meeting the application requirements while keeping the touch sampling rate within a reasonable range, reducing the generation of additional power consumption, improving the rationality of the touch sampling rate configuration, and achieving a balance between demand and power consumption.
[0162] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0163] To this end, the present application provides a computer-readable storage medium having a computer program stored thereon, which can be loaded by a processor to execute the steps of any of the screen processing methods provided herein. The specific implementation of each of the above operations can be found in the previous embodiments and will not be repeated here.
[0164] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0165] Since the instructions stored in the computer-readable storage medium can execute the steps in any screen processing method provided in this application, the beneficial effects that can be achieved by any screen processing method provided in this application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0166] The above is a detailed introduction to a screen processing method, device, electronic device and computer-readable storage medium provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, based on the ideas of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
[0167] It should be noted that in the specific implementation of this application, data related to the application content and type of the application displayed on the screen, when the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
Claims
1. A screen processing method, in, Applied to terminal equipment, including: Determining the application type of the application to be displayed on the screen of the terminal device; Determine a target touch sampling rate according to the application type, where the target touch sampling rate describes the number of touch signals collected per unit time; The application to be displayed is displayed on the screen, and the screen is adjusted to the target touch sampling rate.
2. The method according to claim 1, in, The to-be-displayed applications include at least two, and determining the target touch sampling rate according to the application types includes: For each application to be displayed, determining a target touch sampling rate corresponding to the application to be displayed according to the application type of the application to be displayed; The step of displaying the application to be displayed on the screen and adjusting the screen to the target touch sampling rate includes: Obtaining a split-screen display area corresponding to each application to be displayed on the screen; For each application to be displayed, the application to be displayed is displayed in a corresponding split-screen display area, and the split-screen display area is adjusted to a corresponding target touch sampling rate.
3. The method according to claim 2, in, After displaying each application to be displayed in a corresponding split-screen display area and adjusting the split-screen display area to a corresponding target touch sampling rate, the method further includes: If the split-screen display area of the application to be displayed changes, the application to be displayed is displayed in the changed split-screen display area, and the changed split-screen display area is adjusted to the target touch sampling rate corresponding to the application to be displayed.
4. The method according to claim 1, in, The determining the target touch sampling rate according to the application type includes: Determining a sampling level according to the application type; Determine a touch sampling rate interval threshold according to the sampling level, wherein the touch sampling rate interval threshold includes at least two preset touch sampling rates; A preset touch sampling rate is selected from the touch sampling rate interval threshold as the target touch sampling rate.
5. The method according to claim 1, in, After displaying the application to be displayed on the screen and adjusting the screen to the target touch sampling rate, the method further includes: Acquire an actual touch sampling rate of the screen, where the actual touch sampling rate is determined by the number of times the screen actually receives a touch signal within a preset time period; Determining a reference touch sampling rate according to the actual touch sampling rate; The screen is adjusted to the reference touch sampling rate.
6. The method according to claim 5, in, The obtaining the actual touch sampling rate of the screen includes: Dividing the screen into at least two screen sub-areas; Obtaining an actual touch sampling rate of each of the screen sub-areas; The determining a reference touch sampling rate according to the actual touch sampling rate includes: For each screen sub-region, determining a reference touch sampling rate corresponding to the screen sub-region according to the actual touch sampling rate of the screen sub-region; The step of adjusting the screen to the reference touch sampling rate includes: Adjust each screen sub-area to its corresponding reference touch sampling rate.
7. The method according to claim 5, in, The obtaining the actual touch sampling rate of the screen includes: Capturing an operation gesture for the screen, wherein different operation gestures have different contents of screen operations; Recording the number of gesture operations of the operation gesture within a preset time period; The actual touch sampling rate is determined according to the number of gesture operations.
8. The method according to claim 2, in, Before obtaining the split-screen display area corresponding to each application to be displayed on the screen, the method further includes: In response to the split-screen operation for each application to be displayed, displaying each application to be displayed on each partition of the screen; The obtaining of the split-screen display area corresponding to each to-be-displayed application on the screen includes: using the partition displayed by each to-be-displayed application as the split-screen display area corresponding to the to-be-displayed application on the screen.
9. The method according to claim 2, in, The determining the target touch sampling rate according to the application type includes: Acquire a mapping relationship set, where the mapping relationship set includes a mapping relationship between application type and touch sampling rate; Based on the mapping relationship, a target touch sampling rate of the application to be displayed on the screen is determined.
10. The method according to claim 3, in, If the split-screen display area of the application to be displayed changes, the application to be displayed is displayed in the changed split-screen display area, and the changed split-screen display area is adjusted to the target touch sampling rate corresponding to the application to be displayed, the method further includes: In response to an adjustment operation on the split-screen display area, a size of the split-screen display area is adjusted.
11. The method according to claim 1, in, The determining the application type of the application to be displayed on the screen of the terminal device includes: Determine application content presented by the application to be displayed; The application type of the application to be displayed is determined according to the application content.
12. The method according to claim 1, in, The terminal devices include touch-control devices and gesture-control devices.
13. A screen processing device, in, include: A type determination module, used to determine the application type to be displayed on the screen of the terminal device; A sampling rate determination module, used to determine a target touch sampling rate according to the application type, wherein the touch sampling rate describes the number of touch signals collected per unit time; The adjustment module is used to display the application to be displayed on the screen and adjust the screen to the target touch sampling rate.
14. The device according to claim 13, in, The to-be-displayed applications include at least two, and the sampling rate determination module includes: A sampling rate determining unit, configured to determine, for each application to be displayed, a target touch sampling rate corresponding to the application to be displayed according to an application type of the application to be displayed; Adjustment modules, including: The area acquisition unit is used to acquire the corresponding split screen display area of each application to be displayed on the screen. Display area; The sampling rate adjustment unit is used to display each application to be displayed in a corresponding split-screen display area, and adjust the split-screen display area to a corresponding target touch sampling rate.
15. The device according to claim 14, in, The device also includes a transformation module, which includes: The sampling rate conversion unit is used to display the application to be displayed in the changed split-screen display area if the split-screen display area of the application to be displayed changes, and adjust the changed split-screen display area to the target touch sampling rate corresponding to the application to be displayed.
16. The device according to claim 13, in, The sampling rate determination module comprises: a level determination unit, configured to determine a sampling level according to the application type; A threshold determination unit, configured to determine a touch sampling rate interval threshold according to the sampling level, wherein the touch sampling rate interval threshold includes at least two preset touch sampling rates; The sampling rate selection unit is used to select a preset touch sampling rate from the touch sampling rate interval threshold as a target touch sampling rate.
17. The device according to claim 13, in, The device also includes a dynamic adjustment module, which includes: A sampling rate acquisition unit, used to acquire an actual touch sampling rate of the screen, wherein the actual touch sampling rate is determined by the number of times the screen actually receives a touch signal within a preset time period; A sampling rate dynamic determination unit, used to determine a reference touch sampling rate according to the actual touch sampling rate; The sampling rate dynamic adjustment unit is used to adjust the screen to the reference touch sampling rate.
18. The device according to claim 17, in, The sampling rate acquisition unit comprises: A dividing sub-unit, used for dividing the screen into at least two screen sub-areas; An acquisition subunit, used to acquire an actual touch sampling rate of each of the screen sub-areas; The sampling rate dynamic determination unit comprises: A sampling rate dynamic determination subunit, used for determining, for each screen sub-region, a reference touch sampling rate corresponding to the screen sub-region according to the actual touch sampling rate of the screen sub-region; The sampling rate dynamic adjustment unit comprises: The sampling rate dynamic adjustment subunit is used to adjust each screen sub-area to its corresponding reference touch sampling rate.
19. An electronic device, in, The invention comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the following is achieved: Determine the application type of the application to be displayed on the screen of the terminal device; Determine a target touch sampling rate according to the application type, where the target touch sampling rate describes the number of touch signals collected per unit time; The application to be displayed is displayed on the screen, and the screen is adjusted to the target touch sampling rate.
20. A computer-readable storage medium, in, The computer readable storage medium stores a computer program, which, when executed by a processor, implements: Determine the application type of the application to be displayed on the screen of the terminal device; Determine a target touch sampling rate according to the application type, where the target touch sampling rate describes the number of touch signals collected per unit time; The application to be displayed is displayed on the screen, and the screen is adjusted to the target touch sampling rate.
Citation Information
Patent Citations
Touch screen sampling frequency control method and device, medium and electronic device
CN110362225A
Screen control method, mobile terminal and computer readable storage medium
CN112083996A
Screen parameter adjusting method, mobile terminal and computer readable storage medium
CN115083330A
Screen processing method and device, electronic equipment and computer readable storage medium
CN117406906A
Touch-control sampling rate adjustment method and related apparatus
WO2023029565A1
