WO2021077264A1 - 触摸屏刷新率的更新方法、装置、移动终端及存储介质 - Google Patents

触摸屏刷新率的更新方法、装置、移动终端及存储介质 Download PDF

Info

Publication number
WO2021077264A1
WO2021077264A1 PCT/CN2019/112348 CN2019112348W WO2021077264A1 WO 2021077264 A1 WO2021077264 A1 WO 2021077264A1 CN 2019112348 W CN2019112348 W CN 2019112348W WO 2021077264 A1 WO2021077264 A1 WO 2021077264A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
mobile terminal
display state
acceleration
refresh rate
Prior art date
Application number
PCT/CN2019/112348
Other languages
English (en)
French (fr)
Inventor
林进全
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2019/112348 priority Critical patent/WO2021077264A1/zh
Priority to CN201980099300.0A priority patent/CN114286978A/zh
Publication of WO2021077264A1 publication Critical patent/WO2021077264A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • This application relates to the field of computer technology, and more specifically, to a method, device, mobile terminal, and storage medium for updating the refresh rate of a touch screen.
  • mobile terminals such as mobile phones or tablet computers have become more and more widely used. People can watch videos, read e-books, play games, etc. through mobile terminals. Therefore, it is ensured that mobile terminals have relatively high performance. A good display effect is very necessary.
  • this application proposes a method, device, mobile terminal and storage medium for updating the refresh rate of a touch screen to solve the above-mentioned problems.
  • an embodiment of the present application provides a method for updating the refresh rate of a touch screen.
  • the method is applied to a mobile terminal.
  • the mobile terminal includes a touch screen.
  • the method includes: determining the current display state of the mobile terminal. Screen display state and portrait display state; obtain the target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates; update the refresh rate of the touch screen based on the target refresh rate.
  • an embodiment of the present application provides a device for updating refresh rate of a touch screen.
  • the device is applied to a mobile terminal.
  • the mobile terminal includes a touch screen.
  • the device includes a display state determination module, a target refresh rate acquisition module, and an update module.
  • the display state determination module is used to determine the current display state of the mobile terminal.
  • the current display state includes the horizontal screen display state and the vertical screen display state;
  • the target refresh rate acquisition module is used to acquire the target refresh rate corresponding to the current display state.
  • the display status corresponds to different refresh rates;
  • the update module is used to update the refresh rate of the touch screen based on the target refresh rate.
  • embodiments of the present application provide a mobile terminal, including one or more processors, a memory, and one or more application programs, where one or more application programs are stored in the memory and configured to be configured by One or more processors are executed, and one or more application programs are configured to execute the above-mentioned method for updating the refresh rate of the touch screen.
  • the embodiments of the present application provide a computer-readable storage medium, and the computer-readable storage medium stores program code, and the program code can be invoked by a processor to execute the above-mentioned method for updating the refresh rate of the touch screen.
  • the method, device, mobile terminal, and storage medium for updating the refresh rate of the touch screen determine the current display state of the mobile terminal, where the current display state includes the horizontal screen display state and the vertical screen display state;
  • the refresh rate of the touch screen is updated based on the target refresh rate, so that the mobile terminal can use different display states according to the horizontal screen display state and the vertical screen display state.
  • Refresh rate When the horizontal display state is displayed, users usually use mobile terminals to watch videos, etc., and the display demand is high. At this time, a higher refresh rate can be used to ensure a better display effect, thereby improving user experience.
  • the vertical screen is displayed, the display requirement is relatively low, and a lower refresh rate can be used at this time, thereby effectively reducing the power consumption of the mobile terminal.
  • Fig. 1 shows a flowchart of a method for updating a refresh rate of a touch screen according to an embodiment of the present application.
  • FIG. 2 shows a schematic flowchart of a method for updating a refresh rate of a touch screen provided by another embodiment of the present application.
  • Fig. 3 shows a method flow chart of an embodiment of step S210 in the method for updating the refresh rate of the touch screen shown in Fig. 2 of the present application.
  • Fig. 4 shows a schematic diagram of acceleration display when the mobile terminal is in a landscape display state according to an embodiment of the present application.
  • Fig. 5 shows a schematic diagram of acceleration display when the mobile terminal is in a vertical screen display state according to an embodiment of the present application.
  • FIG. 6 shows a method flowchart of another embodiment of step S210 in the method for updating the refresh rate of the touch screen shown in FIG. 2 of the present application.
  • FIG. 7 shows a schematic flowchart of a method for updating a refresh rate of a touch screen provided by another embodiment of the present application.
  • FIG. 8 shows a schematic flowchart of a method for updating a refresh rate of a touch screen provided by another embodiment of the present application.
  • FIG. 9 shows a method flowchart of an embodiment of step S450 in the method for updating the refresh rate of the touch screen shown in FIG. 8 of the present application.
  • FIG. 10 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to yet another embodiment of the present application.
  • FIG. 11 shows a functional module diagram for updating the refresh rate of the touch screen provided by an embodiment of the present application.
  • Fig. 12 shows a structural block diagram of a mobile terminal provided by an embodiment of the present application.
  • FIG. 13 is a storage medium for storing or carrying program codes for implementing the method for updating the refresh rate of the touch screen according to the embodiment of the present application.
  • mobile terminals such as mobile phones or tablets have become more and more widely used, and mobile terminals have more and more functions, such as watching videos, reading e-books, and playing electronic games. It can be implemented by a mobile terminal, so the display effect of the mobile terminal often directly determines the user experience.
  • the refresh rate of the touch screen of the current mobile terminal is usually fixed, and the refresh rate cannot be adjusted according to the current display requirements of the touch screen. For example, when the user uses the mobile terminal to watch videos or play games, the display requirements are high at this time. , The mobile terminal’s touch screen is required to maintain a high frame rate refresh rate, and when the user reads e-books through the mobile terminal, there is no need for too high display requirements at this time. If the high frame rate refresh rate is still maintained, it will cause movement The terminal generates unnecessary power consumption.
  • the high refresh rate or low refresh rate of the touch screen can also be activated by establishing an application whitelist.
  • an application is associated with a refresh rate in advance.
  • the startup is associated with the application. Refresh rate.
  • the setting of the application whitelist has the problem that the application list cannot be updated in time, so that the refresh rate of the touch screen cannot be adjusted in time, resulting in a poor user experience.
  • the inventor proposes a method, device, mobile terminal, and storage medium for updating the refresh rate of the touch screen in the embodiments of the present application.
  • FIG. 1 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to an embodiment of the present application, and the method may be applied to a mobile terminal.
  • the mobile terminal can be various mobile terminals with a touch screen, a display screen, an acceleration sensor, a pressure sensor, a video output function and support for data input, including but not limited to smart phones, tablets, and wearable electronics. Equipment, etc.
  • the method may include the following steps:
  • the current display state includes a horizontal screen display state and a vertical screen display state.
  • the mobile terminal detects in real time whether it is currently in a horizontal screen display state or a vertical screen display state.
  • S120 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
  • the mobile terminal can locally store the corresponding relationship between the display state and the target refresh rate in advance, so that the mobile terminal can locally extract the target refresh rate corresponding to the current display state.
  • the corresponding relationship between the display state and the target refresh rate may be stored in the cloud server, so that the mobile terminal can send a request to the cloud server to obtain the target refresh rate corresponding to the current display state.
  • the refresh rate refers to the number of times that the electron beam repeatedly scans the image on the display screen. The higher the refresh rate, the better the stability of the picture displayed on the display screen and the better the display effect.
  • the refresh rate of the touch screen of the mobile terminal may be updated to the high frame rate refresh rate.
  • the vertical screen display state corresponds to a low frame rate refresh rate, when the mobile terminal switches from the horizontal screen display state to the vertical screen display state, the refresh rate of the touch screen of the mobile terminal can be updated to the refresh rate of the low frame rate.
  • the current display state of the mobile terminal is determined, where the current display state includes the horizontal display state and the vertical display state; and the target refresh rate corresponding to the current display state is obtained, where different display states correspond to different
  • the refresh rate of the touch screen is updated based on the target refresh rate, so that the mobile terminal can use different refresh rates according to the horizontal screen display state and the vertical screen display state.
  • the horizontal screen display state is displayed, users usually use mobile terminals to watch videos, play games, etc. At this time, the display demand is high, so a higher refresh rate can be used to ensure a better display effect.
  • the vertical screen is displayed, the mobile terminal is in the default display state.
  • the display demand is relatively low, and a lower refresh rate can be used, thereby effectively reducing the power consumption of the mobile terminal.
  • the refresh rate of the touch screen is automatically adjusted through the display state of the mobile terminal, which makes the adjustment of the refresh rate of the touch screen more convenient, timely and accurate.
  • FIG. 2 shows a schematic flowchart of a method for updating the refresh rate of a touch screen according to another embodiment of the present application.
  • the method may include the following steps:
  • the current display state includes a horizontal screen display state and a vertical screen display state.
  • S210 may include the following steps:
  • the acceleration is detected in real time through the built-in acceleration sensor of the mobile terminal.
  • the acceleration can be acceleration in one direction, or acceleration in multiple directions.
  • the acceleration sensor may be a gyroscope.
  • the mobile terminal Since the mobile terminal is always affected by gravity, when the value of the acceleration in one direction of the mobile terminal is closer to the gravitational acceleration, it can be judged that the acceleration is roughly in the direction of the gravitational acceleration. Therefore, it can be determined by judging the mobile terminal in the specified direction. Whether the acceleration value is within a preset range is used to determine whether the acceleration in the specified direction is close to the gravitational acceleration, and then it is determined whether the mobile terminal is currently in a landscape display state. Since the acceleration of gravity is 9.8m / s 2, therefore, alternatively, the predetermined range may be 8m / s 2 -12m / s 2 .
  • the acceleration includes a first acceleration (also referred to as Y-axis acceleration), wherein the direction of the first acceleration is parallel to the length direction of the touch screen.
  • the way of judging whether the acceleration is within the preset range may be: judging whether the first acceleration is within the first preset range; when the first acceleration is within the first preset range, determining that the acceleration is within the preset range .
  • the length direction of the touch screen is usually perpendicular to the direction of gravitational acceleration
  • the width direction of the touch screen is usually parallel to the direction of gravitational acceleration.
  • Whether the first acceleration is close to 0 m/s 2 is used to determine whether the mobile terminal 100 is in a landscape display state. For example, when the first preset range is -1m/s 2 to 1m/s 2 , and the detected first acceleration is 0.596035m/s 2 , it can be determined whether the acceleration is within the preset range, and then the mobile terminal 100 The current display state of is the horizontal display state. In this embodiment, by detecting whether the acceleration in the longitudinal direction of the touch screen is within the first preset range, it is possible to quickly and accurately determine whether the mobile terminal 100 is in the landscape display state.
  • the acceleration includes a second acceleration (also referred to as an X-axis acceleration), and the direction of the second acceleration is perpendicular to the length direction of the touch screen.
  • the method of determining whether the acceleration is within the preset range may be: determining whether the second acceleration is within the second preset range; when the second acceleration is within the second preset range, determining that the acceleration is within the preset range .
  • the length direction of the touch screen is usually parallel to the direction of gravitational acceleration
  • the width direction of the touch screen is usually perpendicular to the direction of gravitational acceleration.
  • Whether the second acceleration is close to 0 m/s 2 is used to determine whether the mobile terminal 100 is in a portrait display state.
  • the first preset range is -1m/s 2 to 1m/s 2 and the detected first acceleration is 0.08293m/s 2
  • the current display state of is the horizontal display state.
  • the Z axis in Figure XX can be perpendicular to the X axis and the Y axis at the same time.
  • by detecting whether the acceleration in the width direction of the touch screen is within the second preset range it is possible to quickly and accurately determine whether the mobile terminal 100 is in the landscape display state.
  • the second acceleration is 9.38537 m/s 2
  • the first acceleration is 10.21775 m/s 2 . Therefore, optionally, whether the mobile terminal 100 is in the vertical screen display state can be determined by judging whether the second acceleration is close to the gravitational acceleration, and when the second acceleration is close to the gravity acceleration, it can be determined that the mobile terminal 100 is in the vertical screen display state. It can also be determined whether the mobile terminal 100 is in the landscape display state by judging whether the first acceleration is close to the gravitational acceleration. When the first acceleration is close to the gravitational acceleration, it can be determined that the mobile terminal 100 is in the landscape display state.
  • the first acceleration is within the first preset range and the second acceleration is within the second preset range, for example, when the first acceleration is close to 0m/s 2 and the second acceleration is close to 9.8m/s 2 , the movement can be determined
  • the terminal 100 is in a landscape display state. In this embodiment, by determining whether the mobile terminal 100 is in a landscape display state according to accelerations in two directions, the accuracy of the determination can be further ensured.
  • S212A may include: when the acceleration is within the preset range, determining whether the duration of the acceleration within the preset range is greater than or equal to the first preset duration; when the duration of the acceleration within the preset range is greater than or equal to When the first preset duration is used, it is determined that the current display state of the mobile terminal is the horizontal display state. As an example, if the first preset duration is 3 seconds, when the duration of the acceleration within the preset range is greater than or equal to 3 seconds, it can be determined that the mobile terminal is in the landscape display state.
  • the mobile terminal may be prevented from being in a state of frequent movement. This leads to a misjudgment of whether the mobile terminal is in a landscape display state.
  • the mobile terminal since the mobile terminal usually only has two display states of the horizontal screen and the vertical screen, when the mobile terminal is not in the horizontal screen display state, it can only be in the vertical screen display state. Therefore, when the acceleration is outside the preset range, it can be quickly and accurately determined that the current display state of the mobile terminal is the vertical display state.
  • S213A may include the following steps: when the acceleration is outside the preset range, judging whether the duration of the acceleration outside the preset range is greater than or equal to the second preset duration; when the acceleration is outside the preset range, the duration is greater than When it is equal to the second preset duration, it is determined that the current display state of the mobile terminal is the vertical display state.
  • the mobile terminal by determining that the current display state of the mobile terminal is the horizontal display state when the time period during which the acceleration is outside the preset range is greater than or equal to the second preset time period, the mobile terminal can be prevented from being in a state of frequent movement. This leads to a misjudgment of whether the mobile terminal is in a landscape display state.
  • S210 may include the following steps:
  • the first touch operation may be an operation detected by the first side wall such as pressing or holding.
  • the number of the first side walls may be one or two.
  • a pressure sensor provided on the mobile terminal can be used to detect whether a pressure signal is applied to the first side wall, and the pressure signal is at the position of the first side wall, so as to detect the first touch operation.
  • the first touch operation is valid by detecting the magnitude of the pressure signal corresponding to the first touch operation. For example, when the magnitude of the pressure signal corresponding to the first touch operation is greater than or equal to the pressure threshold, the first touch may be determined The operation is effective. Thus, the misjudgment of the first touch operation is avoided.
  • S210 may further include: detecting a second touch operation on the second side wall of the mobile terminal. Wherein, the second side wall is perpendicular to the longitudinal direction of the mobile terminal. When the second touch operation is detected, it is determined that the current display state of the mobile terminal is the horizontal display state.
  • the mobile terminal can be judged by detecting whether there is a second touch operation on the second side wall In the landscape display state.
  • the first touch operation may be an operation detected by the second side wall such as pressing or holding.
  • the number of the second side walls may be one or two.
  • the second touch operation can be detected by detecting whether a pressure signal is received on the second side wall and the pressure signal is at the position of the second side wall.
  • the refresh rate of the mobile terminal is updated to 90HZ. If the original refresh rate of the touch screen is 90HZ, you can keep the refresh rate unchanged. If the original refresh rate of the touch screen is less than 90HZ, switch the original refresh rate to 90HZ to ensure the display quality of the touch screen in the horizontal display state, so that The display is smoother, which also ensures that the user can get a better viewing effect when using it.
  • the second target refresh rate is 60HZ
  • the refresh rate of the mobile terminal is updated to 60HZ. If the original refresh rate of the touch screen is 60HZ, the refresh rate can be kept unchanged. If the original refresh rate of the touch screen is greater than 60HZ, such as 90HZ, switch the original 90HZ refresh rate to 60HZ to ensure that the touch screen does not need to be in the vertical display state. Excessive power consumption can also effectively extend the service life of the mobile terminal.
  • the display state of the mobile terminal by detecting the acceleration of the mobile terminal to determine the display state of the mobile terminal, it is not only possible to accurately determine the display state of the mobile terminal. Moreover, when the display state of the mobile terminal is switched, the display state of the mobile terminal can also be determined in time, and the corresponding target refresh rate can be used to update the refresh rate of the touch screen in a timely and effective manner, avoiding the refresh rate update delay, which is effective Improved user experience.
  • FIG. 7 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to another embodiment of the present application.
  • the method may include the following steps:
  • S310 Determine whether the mobile terminal is in a screen rotation lock state.
  • the display state of the mobile terminal will not change with the change of the placement direction of the mobile terminal.
  • S320 When the mobile terminal is not in the screen rotation lock state, determine the current display state of the mobile terminal, where the current display state includes a horizontal screen display state and a vertical screen display state.
  • S330 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
  • the display state of the mobile terminal When the mobile terminal is in the screen rotation locked state, the display state of the mobile terminal will not change with the change of the placement direction of the mobile terminal. Therefore, the display state of the mobile terminal is determined through acceleration, the first touch operation, and the second touch operation. In this implementation, by determining whether the mobile terminal is in the screen rotation locked state, when the mobile terminal is not in the screen rotation locked state, the current display state of the mobile terminal is determined. It can effectively avoid the misjudgment of the display state of the mobile terminal.
  • the method for updating the refresh rate of the touch screen may further include the following steps:
  • S350 Detect whether the mobile terminal switches to a vertical screen display state or enters a screen off state within a third preset time period.
  • the mobile terminal switches back to the vertical display state or enters the off-screen state.
  • the touch screen of the mobile terminal switches back to the vertical display state or enters the off-screen state within 5 seconds after switching to the first target refresh rate, it means that the user does not need to use the mobile terminal too much in the horizontal screen state.
  • the refresh rate of the touch screen can be updated from the first target refresh rate to the second target refresh rate. Since the second target refresh rate is less than the first target refresh rate, it is possible to prevent the mobile terminal from generating no The necessary power consumption.
  • FIG. 8 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to another embodiment of the present application.
  • the method may include the following steps:
  • S410 Determine the current display state of the mobile terminal, where the current display state includes a horizontal screen display state and a vertical screen display state.
  • S420 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
  • the touch operation may be operations such as single click, double tap, multiple touches, pressing, and sliding.
  • the touch position may be divided into one touch area among the multiple touch areas on the touch screen.
  • the touch area is the current touch position corresponding to the touch operation.
  • the multiple touch areas mentioned above correspond to multiple target reporting rates in advance. Therefore, when the front touch position corresponding to the touch operation belongs to one of the touch areas, the target reporting rate corresponding to the touch area can be obtained. The target report rate corresponding to the current touch position.
  • the touch screen may include a first touch area and a second touch area, the second touch area surrounds the first touch area, and the area of the first touch area is larger than the area of the second touch area.
  • S450 may include the following steps:
  • S451 Determine that the current touch position is located in the first touch area or the second touch area.
  • the implementation manner of S451 may be to obtain the first touch coordinate corresponding to the current touch position.
  • the first touch coordinate corresponding to the current touch position is (X 1 , Y 1 ).
  • the first touch coordinate When the first touch coordinate is located in the first touch area, it is determined that the current touch position is located in the first touch area.
  • the coordinate range of the first touch area is: 1 ⁇ X ⁇ 4, 1 ⁇ Y ⁇ 6.
  • 1 ⁇ X 1 ⁇ 4 and 1 ⁇ Y 1 ⁇ 6 it can be determined that the current touch position is located in the first touch area.
  • the coordinate range of the second touch area is: 0 ⁇ X ⁇ 1 or 4 ⁇ X ⁇ 5;0 ⁇ Y ⁇ 1 or 6 ⁇ X ⁇ 7.
  • 0 ⁇ X 1 ⁇ 1 or 4 ⁇ X 1 ⁇ 5; 0 ⁇ Y 1 ⁇ 1 or 6 ⁇ Y 1 ⁇ 7 it is determined that the current touch position is located in the second touch area.
  • the implementation manner of S451 may also be to obtain multiple second touch coordinates corresponding to the current touch position.
  • the multiple second touch coordinates may be double taps, multiple touches and so on.
  • the number of second touch coordinates located in the first touch area is acquired from the plurality of second touch coordinates as the first number.
  • the first number is three.
  • the number of second touch coordinates located in the second touch area is acquired from the plurality of second touch coordinates as the second number.
  • the second number is two.
  • the first number is greater than the second number, and it is determined that the current touch position is located in the first touch area.
  • the current touch position when there are multiple second touch coordinates corresponding to the current touch position, by judging the number of the second touch coordinates located in the first touch area and the second touch area, the current touch position can be effectively and accurately determined. Whether the touch position is located in the first touch area or the second touch area.
  • the implementation manner of S451 may also be to obtain the touch area corresponding to the current touch position.
  • the current touch position may correspond to one or more touch areas.
  • the current touch position corresponds to a touch area
  • the touch area is located in the area of the first touch area and the area of the second touch area, it can be effectively and accurately judged whether the current touch position is Whether it is located in the first touch area or the second touch area.
  • the first touch area is pre-associated with the first target report rate.
  • the first target report rate corresponding to the first touch area it may be obtained locally from the mobile terminal, or may be obtained from a cloud server communicating with the mobile terminal.
  • the second touch area is pre-associated with the second target report rate.
  • the second target report rate corresponding to the second touch area it may be obtained locally from the mobile terminal, or may be obtained from a cloud server communicating with the mobile terminal.
  • the touch screen is divided into a first touch area and a second touch area, and the second touch area surrounds the first touch area, and the area of the first touch area is larger than the area of the second touch area.
  • the first touch area is closer to the center of the touch screen, which belongs to the area with more frequent touches, which corresponds to a higher report rate;
  • the second touch area is closer to the edge of the touch screen, which belongs to the area with less touch frequency, and its correspondence is lower
  • the report rate of the first touch area and the second touch area can correspond to a reasonable report rate.
  • the report rate of the touch screen is updated to the higher report rate.
  • Target reporting rate to improve the response speed of the touch screen and improve the user's operating experience.
  • the report rate of the touch screen is updated to a second target report rate with a lower report rate.
  • the report rate and the refresh rate of the current touch screen are both fixed, it is impossible to adopt the corresponding report rate and refresh rate according to different scenarios, resulting in unnecessary power consumption of the mobile terminal.
  • the current touch position corresponding to the touch operation is acquired, and then the target report rate corresponding to the current touch position is acquired, and then based on the target report
  • the dot rate updates the reporting rate of the touch screen, thereby flexibly controlling the mobile terminal to switch the reporting rate of the touch screen according to different scenarios, and avoiding unnecessary power consumption while ensuring user experience.
  • FIG. 10 shows a schematic flowchart of a method for updating a refresh rate of a touch screen according to yet another embodiment of the present application.
  • the method may include the following steps:
  • the current display state includes a horizontal screen display state and a vertical screen display state.
  • S520 Obtain a target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
  • S560 Update the report rate of the touch screen based on the target report rate.
  • S570 Detect whether the mobile terminal receives a touch instruction within a fourth preset time period.
  • the touch instruction is used to represent the control instruction input by the user to the mobile terminal through a touch action, such as an instruction to control the volume of the mobile terminal, an instruction to control the brightness of the touch screen of the mobile terminal, and so on.
  • the touch instruction may be input through the touch screen of the mobile terminal, or through physical keys or virtual keys provided on the side walls of the mobile terminal.
  • the fourth preset duration is 60 seconds
  • the report rate of the touch screen can be changed from the first
  • the target report rate is switched to the second target report rate to reduce power consumption.
  • the report rate of the touch screen is switched from the first target report rate to the second target report rate by the mobile terminal not receiving a touch command within the fourth preset time period, which can effectively reduce the mobile terminal’s report rate.
  • the power consumption can also extend the service life of the touch screen.
  • FIG. 11 shows a touch screen refresh rate update device 600 provided by an embodiment of the present application.
  • the device 600 is applied to a mobile terminal.
  • the mobile terminal includes a touch screen.
  • the device 600 includes: a display state determination module 610, a target refresh Rate acquisition module and update module 630.
  • the display state determining module 610 is used to determine the current display state of the mobile terminal, and the current display state includes a horizontal screen display state and a vertical screen display state.
  • the target refresh rate acquisition module is used to acquire the target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates.
  • the update module 630 is configured to update the refresh rate of the touch screen based on the target refresh rate.
  • the target refresh rate acquisition module includes:
  • the first target refresh rate obtaining unit when the current display state is the horizontal screen display state, obtains the first target refresh rate corresponding to the horizontal screen display state;
  • the second target refresh rate acquiring unit acquires a second target refresh rate corresponding to the portrait display state when the current display state is the portrait display state, where the first target refresh rate is greater than the second target refresh rate.
  • the display state determination module 610 includes:
  • An acceleration acquisition unit for acquiring the acceleration of the mobile terminal
  • the horizontal screen display state determining unit is configured to determine that the current display state of the mobile terminal is the horizontal screen display state when the acceleration is within a preset range.
  • the vertical screen display state determining unit is configured to determine that the current display state of the mobile terminal is the vertical screen display state when the acceleration is outside the preset range.
  • the acceleration includes a first acceleration
  • the direction of the first acceleration is parallel to the length direction of the touch screen
  • the preset range includes the first preset range.
  • the horizontal screen display state determination unit is specifically used for:
  • the acceleration includes a second acceleration
  • the direction of the second acceleration is perpendicular to the length direction of the touch screen
  • the preset range includes the second preset range.
  • the horizontal screen display state determination unit is also specifically used for:
  • the horizontal screen display state determining unit includes:
  • the first duration judging subunit is used to determine whether the duration of the acceleration within the preset range is greater than or equal to the first preset duration when the acceleration is within the preset range;
  • the horizontal screen display state determining subunit is configured to determine that the current display state of the mobile terminal is the horizontal screen display state when the time period during which the acceleration is within the preset range is greater than or equal to the first preset time period.
  • the horizontal screen display state determining unit includes:
  • the second duration judging subunit is used to determine whether the duration of the acceleration outside the preset range is greater than or equal to the second preset duration when the acceleration is outside the preset range;
  • the vertical screen display state determining subunit is configured to determine that the current display state of the mobile terminal is the vertical screen display state when the time period during which the acceleration is outside the preset range is greater than or equal to the second preset time period.
  • the display state determination module 610 is also used to detect a first touch operation acting on the first side wall of the mobile terminal, the first side wall being parallel to the longitudinal direction of the mobile terminal.
  • the current display state of the mobile terminal is the vertical display state.
  • the display state determination module 610 is also used to detect a second touch operation acting on the second side wall of the mobile terminal, and the second side wall is perpendicular to the longitudinal direction of the mobile terminal.
  • the device 600 for updating the refresh rate of the touch screen further includes: a screen rotation lock state detection module for determining whether the mobile terminal is in a screen rotation lock state.
  • the current display state of the mobile terminal is determined.
  • the device 600 for updating the refresh rate of the touch screen further includes: a refresh rate switching module for detecting whether the mobile terminal switches to the vertical screen display state or enters the screen off state within the third preset time period.
  • the refresh rate of the touch screen is updated from the first target refresh rate to the second target refresh rate.
  • the device 600 for updating the refresh rate of the touch screen further includes:
  • the touch position acquisition module is used to acquire the current touch position corresponding to the touch operation when a touch operation acting on the touch screen is detected.
  • the target report rate acquisition module is used to obtain the target report rate corresponding to the current touch position.
  • the reporting rate update module 630 is configured to update the reporting rate of the touch screen based on the target reporting rate.
  • Target report rate acquisition module including:
  • the first target reporting rate obtaining unit is configured to obtain the first target reporting rate corresponding to the first touch area when the current touch position is located in the first touch area.
  • the second target report rate obtaining unit is configured to obtain a second target report rate corresponding to the second touch area when the current touch position is located in the second touch area, and the first target report rate is greater than the second target report rate rate.
  • the touch position obtaining module is also used to obtain the first touch coordinate corresponding to the current touch position.
  • the first touch coordinate When the first touch coordinate is located in the first touch area, it is determined that the current touch position is located in the first touch area.
  • the touch position acquisition module is also used to: acquire multiple second touch coordinates corresponding to the current touch position.
  • the number of second touch coordinates located in the first touch area is acquired from the plurality of second touch coordinates as the first number.
  • the number of second touch coordinates located in the second touch area is acquired from the plurality of second touch coordinates as the second number.
  • the touch position obtaining module is also used to obtain the touch area corresponding to the current touch position.
  • the device 600 for updating the refresh rate of the touch screen further includes:
  • the reporting rate switching module is used to detect whether the mobile terminal receives a touch instruction within the fourth preset time period.
  • the report rate of the touch screen is switched from the first target report rate to the second target report rate.
  • the coupling or direct coupling or communication connection between the displayed or discussed modules may be through some interfaces.
  • the indirect coupling or communication connection of the device 600 or the modules may be electrical. , Mechanical or other forms.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software function modules.
  • FIG. 12 shows a structural block diagram of a mobile terminal 700 provided by an embodiment of the present application.
  • the mobile terminal 700 may be the mobile terminal 700 capable of running application programs in the foregoing embodiment.
  • the mobile terminal 700 in this application may include one or more of the following components: a processor 710, a memory, a touch screen 730, an acceleration sensor, a pressure sensor, and one or more application programs, of which one or more application programs may be stored in the memory It is configured to be executed by one or more processors 710, and one or more programs are configured to execute the method described in the foregoing method embodiment.
  • the processor 710 may include one or more processing cores.
  • the processor 710 uses various interfaces and lines to connect various parts of the entire mobile terminal, and executes the mobile terminal by running or executing instructions, programs, code sets, or instruction sets stored in the memory, and calling data stored in the memory.
  • Various functions and processing data may be adopted at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 710 may integrate one or a combination of a central processing unit 710 (Central Processing Unit, CPU), a graphics processing unit 710 (Graphics Processing Unit, GPU), a modem, and the like.
  • a central processing unit 710 Central Processing Unit, CPU
  • a graphics processing unit 710 Graphics Processing Unit, GPU
  • the CPU mainly processes the operating system, user interface, and application programs
  • the GPU is used for rendering and drawing of display content
  • the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 710, but may be implemented by a communication chip alone.
  • the memory may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • RAM random access memory
  • Read-Only Memory The memory can be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory may include a storage program area and a storage data area, where the storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), Instructions used to implement the following various method embodiments, etc.
  • the data storage area can also store data created by the terminal in use (such as phone book, audio and video data, chat record data) and so on.
  • the touch screen 730 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the mobile terminal. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof.
  • the touch screen 730 may be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited here.
  • FIG. 13 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer readable medium 800 stores a program code 810, and the program code 810 can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 800 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium has a storage space for executing program codes of any method steps in the above methods. These program codes can be read from or written into one or more computer program products. The program code can be compressed in an appropriate form, for example.
  • the method, device, mobile terminal, and storage medium for updating the refresh rate of the touch screen determine the current display state of the mobile terminal, where the current display state includes the horizontal screen display state and the vertical screen display state; And obtain the target refresh rate corresponding to the current display state, where different display states correspond to different refresh rates; and then update the refresh rate of the touch screen based on the target refresh rate, so that the mobile terminal can display according to the horizontal screen display state and the vertical screen display State to use different refresh rates.
  • the horizontal display state is displayed, users usually use mobile terminals to watch videos, etc., and the display demand is high. At this time, a higher refresh rate can be used to ensure a better display effect, thereby improving user experience.
  • the vertical screen is displayed, the display requirement is relatively low, and a lower refresh rate can be used at this time, thereby effectively reducing the power consumption of the mobile terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例公开了一种触摸屏刷新率的更新方法、装置、移动终端及存储介质,涉及计算机技术领域。应用于移动终端,所述移动终端包括触摸屏,所述方法包括:确定所述移动终端的当前显示状态,所述当前显示状态包括横屏显示状态和竖屏显示状态;获取与所述当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;基于所述目标刷新率对所述触摸屏的刷新率进行更新。本申请可以通过根据移动终端处于不同显示状态而采用不同的刷新率,从而能够在保证移动终端的显示质量的同时,有效减小移动终端的显示功耗。

Description

触摸屏刷新率的更新方法、装置、移动终端及存储介质 技术领域
本申请涉及计算机技术领域,更具体地,涉及一种触摸屏刷新率的更新方法、装置、移动终端及存储介质,。
背景技术
随着移动互联网的快速发展,像手机或者平板电脑之类的移动终端的使用也越来越广泛,人们可以通过移动终端来观看视频、阅读电子书、玩游戏等等,因此保证移动终端具有较好的显示效果是非常必要的。
发明内容
鉴于上述问题,本申请提出了一种触摸屏刷新率的更新方法、装置、移动终端及存储介质,以解决上述问题。
第一方面,本申请实施例提供了一种触摸屏刷新率的更新方法,该方法应用于移动终端,所述移动终端包括触摸屏,该方法包括:确定移动终端的当前显示状态,当前显示状态包括横屏显示状态和竖屏显示状态;获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;基于目标刷新率对触摸屏的刷新率进行更新。
第二方面,本申请实施例提供了一种触摸屏刷新率的更新装置,该装置应用于移动终端,移动终端包括触摸屏,该装置包括:显示状态确定模块、目标刷新率获取模块以及更新模块,其中,显示状态确定模块用于确定移动终端的当前显示状态,当前显示状态包括横屏显示状态和竖屏显示状态;目标刷新率获取模块用于获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;更新模块用于基于目标刷新率对触摸屏的刷新率进行更新。
第三方面,本申请实施例提供了一种移动终端,包括一个或多个处理器、存储器、以及一个或多个应用程序,其中一个或多个应用程序被存储在存储器中并被配置为由一个或多个处理器执行,一个或多个应用程序配置用于执行上述的触摸屏刷新率的更新方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,计算机可读取存储介质中存储有程序代码,程序代码可被处理器调用执行上述的触摸屏刷新率的更新方法。
本申请实施例提供的触摸屏刷新率的更新方法、装置、移动终端及存储介质,通过确定移动终端的当前显示状态,其中当前显示状态包括横屏显示状态和竖屏显示状态;并获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;再基于目标刷新率对触摸屏的刷新率进行更新,使得移动终端能够根据横屏显示状态和竖屏显示状态来使用不同的刷新率。由于横屏显示状态显示时,通常用户通常会使用移动终端看视频等,显示需求较高,此时可以使用较高的刷新率来保证较好的显示效果,从而提高用户体验。当竖屏显示状态时,显示需求相对较低,此时可以使用较低的刷新率,从而有效降低移动终端的功耗。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本 领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了根据本申请一个实施例的触摸屏刷新率的更新方法流程图。
图2示出了本申请另一个实施例提供的触摸屏刷新率的更新方法的流程示意图。
图3示出了根据本申请图2所示的触摸屏刷新率的更新方法中步骤S210的一个实施例的方法流程图。
图4示出了根据本申请一个实施例的移动终端处于横屏显示状态下的加速度显示示意图。
图5示出了根据本申请一个实施例的移动终端处于竖屏显示状态下的加速度显示示意图。
图6示出了根据本申请图2所示的触摸屏刷新率的更新方法中步骤S210的另一个实施例的方法流程图。
图7示出了本申请又一个实施例提供的触摸屏刷新率的更新方法的流程示意图。
图8示出了本申请再一个实施例提供的触摸屏刷新率的更新方法的流程示意图。
图9示出了根据本申请图8所示的触摸屏刷新率的更新方法中步骤S450的一个实施例的方法流程图。
图10示出了本申请又另一个实施例提供的触摸屏刷新率的更新方法的流程示意图。
图11示出了本申请一个实施例提供的触摸屏刷新率的更新的功能模块图。
图12示出了本申请实施例提供的移动终端的结构框图。
图13是本申请实施例的用于保存或者携带实现根据本申请实施例的触摸屏刷新率的更新方法的程序代码的存储介质。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
随着移动互联网的快速发展,像手机或者平板电脑之类的移动终端的使用也越来越广泛,且移动终端的功能也越来越多,例如看视频,阅读电子书、玩电子游戏等都可以通过移动终端实现,因此移动终端的显示效果往往直接决定了用户的使用体验。
然而,目前的移动终端的触摸屏的刷新率通常是固定不变的,无法根据触摸屏当前的显示需求去调节刷新率,例如,当用户用移动终端看视频、玩游戏时,此时显示要求较高,需要该移动终端触摸屏保持高帧率的刷新率,而用户通过移动终端阅读电子书时,此时并不需要太高的显示要求,如果仍然保持着高帧率的刷新率,则会导致移动终端产生不必要的功耗。
发明人发现,如果移动终端能根据不同显示需求而采用不同的刷新率来刷新触摸屏,则不仅可以在显示需求较高的情况下使用高帧率的刷新率保证触摸屏的显示质量,而且可以在显示需求较低的情况下使用低帧率的刷新率来避免移动终端产生不必要的功耗。
但是发明人在实际研究中发现,在调节触摸屏的刷新率时,一般可以通过手动的方式调节该移动终端触摸屏的刷新率,但这种调节方式调节起来比较繁琐,而且调节的准确性较差,所以无法保证触摸屏的显示质量。另外,也可以通过建立应用白名单的方式针对性地启动触摸屏的高刷新率或低刷新率,例如预先将一个应用与一个刷新率进行关联,当移动终端运行该应用时,启动与该应关联的刷新率。但是应用白名单的设定存在无法及时更新应用列表的问题,从而无法及时调节触摸屏的刷新率,导致用户体验较差。
为了改善上述问题,发明人提出了本申请实施例中的触摸屏刷新率的更新方法、装置、移动终端及存储介质。可以通过根据移动终端处于不同显示状态而采用不同的 刷新率,从而能够在保证移动终端的显示质量的同时,有效减小移动终端的显示功耗。
下面将通过具体实施例对本申请实施例提供的触摸屏刷新率的更新方法、装置、移动终端及存储介质进行详细说明。
请参见图1,图1示出了本申请一个实施例提供的触摸屏刷新率的更新方法的流程示意图,该方法可以应用于移动终端。其中,该移动终端可以是具有触摸屏、具有显示屏、具有加速度传感器、具有压力传感器、具有视频输出功能且支持数据输入的各种移动终端,包括但不限于智能手机、平板电脑和可穿戴式电子设备等。
该方法可以包括如下步骤:
S110,确定移动终端的当前显示状态,当前显示状态包括横屏显示状态和竖屏显示状态。
移动终端实时检测当前处于横屏显示状态还是竖屏显示状态。
S120,获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率。
其中,移动终端本地可以预先存入显示状态和目标刷新率的对应关系,以使移动终端可以从本地提取与当前显示状态对应的目标刷新率。可选地,显示状态和目标刷新率的对应关系可以存储在云端服务器,以使移动终端可以向云端服务器发送请求来获取与当前显示状态对应的目标刷新率。需要说明的是,刷新率是指电子束对显示屏幕上的图像重复扫描的次数。刷新率越高,显示屏幕上所显示的画面稳定性就越好,显示效果也越好。
S130,基于目标刷新率对触摸屏的刷新率进行更新。
作为一种示例,如当前显示状态为横屏显示状态,且横屏显示状态对应了高帧率的刷新率,则可以将移动终端触摸屏的刷新率更新为高帧率的刷新率。若竖屏显示状态对应了低帧率的刷新率,当移动终端从横屏显示状态切换到竖屏显示状态时,则可以将移动终端触摸屏的刷新率更新为低帧率的刷新率。
在本实施例中,通过确定移动终端的当前显示状态,其中当前显示状态包括横屏显示状态和竖屏显示状态;并获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;再基于目标刷新率对触摸屏的刷新率进行更新,使得移动终端能够根据横屏显示状态和竖屏显示状态来使用不同的刷新率。由于横屏显示状态显示时,通常用户通常会使用移动终端看视频、玩游戏等,此时显示需求较高,因此可以使用较高的刷新率来保证较好的显示效果。当竖屏显示状态时,移动终端处于默认的显示状态,此时显示需求相对较低,则可以使用较低的刷新率,从而有效降低移动终端的功耗。另外,通过移动终端的显示状态来自动调节触摸屏的刷新率,使得触摸屏的刷新率的调节更加方便、及时、准确。
请参见图2,图2示出了本申请另一个实施例提供的触摸屏刷新率的更新方法的流程示意图,该方法可以包括如下步骤:
S210,确定移动终端的当前显示状态。其中,当前显示状态包括横屏显示状态和竖屏显示状态。
在一些实施方式中,如图3所示:S210可以包括如下步骤:
S211A,获取移动终端的加速度。
通过移动终端内置的加速度传感器实时检测加速度。其中,加速度可以是一个方向上的加速度,也可以是多个方向上的加速度。可选地,加速度传感器可以是陀螺仪。
S212A,当加速度处于预设范围内时,确定移动终端的当前显示状态为横屏显示状态。
由于移动终端始终受到重力的影响,当移动终端的一个方向上的加速度的数值越接近重力加速度时,则可以判断该加速度是大致朝向重力加速度方向的,因此可以通过判断移动终端在指定方向上的加速度数值是否处于预设范围内来确定该指定方向上 的加速度是否接近于重力加速度,进而判断出移动终端当前是否处于横屏显示状态。由于重力加速度为9.8m/s 2,因此,可选地,预设范围可以为8m/s 2-12m/s 2
在一些实施方式中,加速度包括第一加速度(也称Y轴向的加速度),其中,第一加速度的方向与触摸屏的长度方向平行。此时,判断该加速度是否处于预设范围内的方式可以是:判断第一加速度是否处于第一预设范围内;当第一加速度处于第一预设范围内时,确定加速度处于预设范围内。作为一种示例,如图4所示,当移动终端100处于横屏显示状态下时,触摸屏的长度方向通常与重力加速度方向垂直,触摸屏的宽方向通常与重力加速度方向平行,因此,可以通过判断第一加速度是否接近0m/s 2,来判断移动终端100是否处于横屏显示状态。例如当第一预设范围为-1m/s 2到1m/s 2时,检测到的第一加速度为0.596035m/s 2,则可以确定该加速度是否处于预设范围内,进而确定移动终端100的当前显示状态为横屏显示状态。在本实施方式中,通过检测触摸屏长度方向上的加速度是否处于第一预设范围内,可以快速、准确地判断移动终端100是否处于横屏显示状态。
在另一种实施方式中,加速度包括第二加速度(也称X轴向的加速度),第二加速度的方向与触摸屏的长度方向垂直。此时,判断该加速度是否处于预设范围内的方式可以是:判断第二加速度是否处于第二预设范围内;当第二加速度处于第二预设范围内时,确定加速度处于预设范围内。作为一种示例,如图5所示,当移动终端100处于竖屏显示状态下时,触摸屏的长度方向通常与重力加速度方向平行,触摸屏的宽方向通常与重力加速度方向垂直,因此,可以通过判断第二加速度是否接近0m/s 2,来判断移动终端100是否处于竖屏显示状态。例如当第一预设范围为-1m/s 2到1m/s 2时,检测到的第一加速度为0.08293m/s 2,则可以确定该加速度是否处于预设范围内,进而确定移动终端100的当前显示状态为横屏显示状态。其中,图XX中的Z轴向可以同时与X轴向与Y轴向垂直。在本实施方式中通过检测触摸屏宽度方向上的加速度是否处于第二预设范围内,可以快速、准确地判断移动终端100是否处于横屏显示状态。
如图4和5所示,当移动终端100处于竖屏显示状态时,第二加速度为9.38537m/s 2,当移动终端100处于橫屏显示状态时,第一加速度为10.21775m/s 2。因此,可选地,可以通过判断第二加速度是否接近于重力加速度来确定移动终端100是否处于竖屏显示状态,当第二加速度接近于重力加速度时,可以确定移动终端100处于竖屏显示状态。还可以通过判断第一加速度是否接近于重力加速度来确定移动终端100是否处于橫屏显示状态,当第一加速度接近于重力加速度时,可以确定移动终端100处于橫屏显示状态。
在一些实施方式中,可以判断第一加速度是否处于第一预设范围内,且第二加速度是否处于第二预设范围内,来判断移动终端100是否处于横屏显示状态。当第一加速度处于第一预设范围内,且第二加速度是否处于第二预设范围内时,例如第一加速度接近0m/s 2,第二加速度接近9.8m/s 2时,可以确定移动终端100处于横屏显示状态。通过本实施方式中,通过根据两个方向上的加速度来判断移动终端100是否处于横屏显示状态,能够进一步保证判断的准确性。
在一些实施方式中,S212A可以包括:当加速度处于预设范围内时,判断加速度处于预设范围内的时长是否大于或等于第一预设时长;当加速度处于预设范围内的时长大于或等于第一预设时长时,确定移动终端的当前显示状态为横屏显示状态。作为一种示例,如第一预设时长为3秒,当加速度处于预设范围内的时长大于或等于3秒时,可以确定移动终端处于横屏显示状态下。在本实施方式中,通过在加速度处于预设范围内的时长大于或等于第一预设时长时,确定移动终端的当前显示状态为横屏显示状态,可以避免移动终端处于频繁运动的状态下,导致对移动终端是否处于横屏显示状态的误判。
S213A,当加速度处于预设范围外时,确定移动终端的当前显示状态为竖屏显示状 态。
由于移动终端通常只有横屏和竖屏两种显示状态,因此当移动终端不处于横屏显示状态时,只能处于竖屏显示状态。从而当加速度处于预设范围外时,可以快速、准确地判断出移动终端的当前显示状态为竖屏显示状态。
在一些实施方式中,S213A可以包括如下步骤:当加速度处于预设范围外时,判断加速度处于预设范围外的时长是否大于或等于第二预设时长;当加速度处于预设范围外的时长大于或等于第二预设时长时,确定移动终端的当前显示状态为竖屏显示状态。在本实施方式中,通过在加速度处于预设范围外的时长大于或等于第二预设时长时,确定移动终端的当前显示状态为横屏显示状态,可以避免移动终端处于频繁运动的状态下,导致对移动终端是否处于横屏显示状态的误判。
在一些实施方式中,如图6所示,S210可以包括如下步骤:
S211B,检测作用于移动终端的第一侧壁上的第一触摸操作,其中,第一侧壁与移动终端的长方向平行。
由于通常用户在竖屏显示状态下使用移动终端时,手会握到移动终端的第一侧壁,因此,可以通过检测第一侧壁上是否有第一触摸操作来判断移动终端处于竖屏显示状态。其中,第一触摸操作可以是第一侧壁检测到的按压、手持等操作。可选地,第一侧壁的数量可以是一个,也可以是两个。
S212B,当检测到第一触摸操时,确定移动终端的当前显示状态为竖屏显示状态。
其中,可以通过移动终端上设置的压力传感器检测第一侧壁上是否受到压力信号,以及该压力信号处于第一侧壁的位置,来检测第一触摸操作。
可选地,还可以通过检测第一触摸操作对应的压力信号大小来判断第一触摸操作是否有效,例如,当第一触摸操作对应的压力信号大小大于或等于压力阈值时,可以确定第一触摸操作有效。从而避免第一触摸操作的误判。
在本实施方式中,通过检测作用于移动终端的第一侧壁上的第一触摸操作,可以有效确定移动终端是否处于竖屏显示状态。
在另一些实施方式中,S210还可以包括:检测作用于移动终端的第二侧壁上的第二触摸操作。其中,第二侧壁与移动终端的长方向垂直。当检测到第二触摸操作时,确定移动终端的当前显示状态为横屏显示状态。
由于通常用户竖屏显示状态下使用移动终端时,例如打游戏时,手会握到移动终端的第二侧壁,因此,可以通过检测第二侧壁上是否有第二触摸操作来判断移动终端处于横屏显示状态。其中,第而触摸操作可以是第二侧壁检测到的按压、手持等操作。可选地,第二侧壁的数量可以是一个,也可以是两个。
其中,可以通过检测第二侧壁上是否受到压力信号,以及该压力信号处于第二侧壁的位置,来检测第二触摸操作。
在本实施方式中,通过检测作用于移动终端的第二侧壁上的第二触摸操作,可以有效确定移动终端是否处于横屏显示状态。
S220,在当前显示状态为横屏显示状态时,获取与横屏显示状态对应的第一目标刷新率。
S230,在前显示状态为竖屏显示状态时,获取与竖屏显示状态对应的第二目标刷新率,其中,第一目标刷新率大于第二目标刷新率。
S240,基于目标刷新率对触摸屏的刷新率进行更新。
作为一种示例,如第一目标刷新率为90HZ,当移动终端处于横屏显示状态时,将该移动终端的刷新率更新为90HZ。若触摸屏原来的刷新率为90HZ,则可以保持该刷新率不变,若触摸屏原来的刷新率小于90HZ,则将原来的刷新率切换至90HZ,以保证横屏显示状态下触摸屏的显示质量,使显示更加流畅,也保证了用户在使用时可获得更好的观看效果,。
如第二目标刷新率为60HZ,当移动终端处于横屏显示状态时,将该移动终端的刷新率更新为60HZ。若触摸屏原来的刷新率为60HZ,则可以保持该刷新率不变,若触摸屏原来的刷新率大于60HZ,例如90HZ,则将原来90HZ的刷新率切换至60HZ,以保证竖屏显示状态下触摸屏不必产生过多的耗电量,也可以有效延长移动终端的使用寿命。
在本实施例中,通过检测移动终端的加速度来判断移动终端的显示状态,不仅可以准确地判断出移动终端的显示状态。而且在移动终端的显示状态切换时,也能及时地判断出移动终端的显示状态,进而及时、有效地使用相应的目标刷新率来更新触摸屏的刷新率,避免了刷新率更新延迟的情况,有效提高的用户体验。
请参见图7,图7示出了本申请又一个实施例提供的触摸屏刷新率的更新方法的流程示意图,该方法可以包括如下步骤:
S310,判断所述移动终端是否处于屏幕旋转锁定状态。
其中,当移动终端处于屏幕旋转锁定状态时,移动终端的显示状态不会随着移动终端的放置方向变化而变化。
S320,当所述移动终端不处于屏幕旋转锁定状态,确定所述移动终端的当前显示状态,所述当前显示状态包括横屏显示状态和竖屏显示状态。
S330,获取与所述当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率。
S340,基于所述目标刷新率对所述触摸屏的刷新率进行更新。
由于移动终端处于屏幕旋转锁定状态时,移动终端的显示状态不会随着移动终端的放置方向变化而变化,所以通过加速度、第一触摸操作、第二触摸操作判断出移动终端的显示状态,故本实施中,通过判断移动终端是否处于屏幕旋转锁定状态,当所述移动终端不处于屏幕旋转锁定状态时,再确定所述移动终端的当前显示状态。可以有效避免对移动终端的显示状态的误判。
作为一种方式,在上述实施例的基础上,该触摸屏刷新率的更新方法,还可以包括如下步骤:
S350,检测所述移动终端在第三预设时长内是否切换到竖屏显示状态或者进入熄屏状态。
作为一种示例,如第三预设时长为5秒,判断移动终端的触摸屏在切换到第一目标刷新率后的5秒内移动终端又切换回了竖屏显示状态或进入熄屏状态。
S360,当所述移动终端在第三预设时间内切换到竖屏显示状态或者进入熄屏状态时,将所述触摸屏的刷新率从所述第一目标刷新率更新为所述第二目标刷新率。
当移动终端的触摸屏在切换到第一目标刷新率后的5秒内移动终端又切换回了竖屏显示状态或进入熄屏状态时,则说明用户并不需要在横屏状态下使用移动终端太长时间,所以没有必要使触摸屏保持较高帧率的刷新率。此时,可以通过将所述触摸屏的刷新率从所述第一目标刷新率更新为所述第二目标刷新率,由于第二目标刷新率小于第一目标刷新率,从而可以避免移动终端产生没有必要的功耗。
请参见图8,图8示出了本申请再一个实施例提供的触摸屏刷新率的更新方法的流程示意图,该方法可以包括如下步骤:
S410,确定移动终端的当前显示状态,当前显示状态包括横屏显示状态和竖屏显示状态。
S420,获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率。
S430,基于目标刷新率对触摸屏的刷新率进行更新。
S440,当检测到作用于触摸屏上的触控操作时,获取与触控操作对应的当前触控位置。
其中,触控操作可以是单击、双击、多次触碰、按压、滑动等操作。其中,触控位置可以被划分到触摸屏上的多个触摸区域中的一个触摸区域中。当触控操作作用于一个触摸区域内时,该触摸区域即为触控操作对应当前触控位置。
S450,获取与当前触控位置对应的目标报点率。
其中,上述多个触摸区域预先对应了多个目标报点率,因此当触控操作对应的前触控位置属于其中一个触摸区域时,获取与该触摸区域对应的目标报点率,即可得到与当前触控位置对应的目标报点率。
如图9所示:在一些实施方式中,触摸屏可以包括第一触摸区域和第二触摸区域,第二触摸区域包围第一触摸区域,且第一触摸区域的面积大于第二触摸区域的面积。S450可以包括如下步骤:
S451,判断当前触控位置位于第一触摸区域或者第二触摸区域。
在一些实施方式中,S451的实施方式可以是,获取与当前触控位置对应的第一触控坐标。
作为一种示例,如当前触控位置对应的第一触控坐标为(X 1,Y 1)。
当第一触控坐标位于第一触摸区域内时,确定当前触控位置位于第一触摸区域。
假设第一触摸区域的坐标范围是:1≤X≤4,1≤Y≤6。当1≤X 1≤4,且1≤Y 1≤6时,可以确定当前触控位置位于第一触摸区域。
当第一触控坐标位于第二触摸区域内时,确定当前触控位置位于第二触摸区域。
假设第二触摸区域的坐标范围是:0≤X<1或4<X≤5;0≤Y<1或6<X≤7。当0≤X 1<1或4<X 1≤5;0≤Y 1<1或6<Y 1≤7时,确定当前触控位置位于第二触摸区域。
在本实施方式中,通过判断当前触控位置对应的第一触控坐标是否位于第一触摸区域的坐标范围内或第二触摸区域的坐标范围内,从而可以快速、准确地判断出当前触控位置位于第一触摸区域或者第二触摸区域。
在一些实施方式中,S451的实施方式也可以是,获取当前触控位置对应的多个第二触控坐标。其中,多个第二触控坐标可以是双击、多次触碰等等。
从多个第二触控坐标中获取位于第一触摸区域的第二触控坐标的数量作为第一数量。
作为一种示例,若5个第二触控坐标中,有3个第二触控坐标位于第一触摸区域内,则第一数量为3。
从多个第二触控坐标中获取位于第二触摸区域的第二触控坐标的数量作为第二数量。
若5个第二触控坐标中,剩余的2个第二触控坐标位于第二触摸区域内,则第二数量为2。
当第一数量大于或等于第二数量时,确定当前触控位置位于第一触摸区域。
此时第一数量大于第二数量,则确定当前触控位置位于第一触摸区域。
当第一数量小于第二数量时,确定当前触控位置位于第二触摸区域。
在本实施方式中,当前触控位置对应的第二触控坐标为多个时,通过判断第二触控坐标位于第一触摸区域和第二触摸区域的数量,可以有效、准确地判断出当前触控位置是位于第一触摸区域还是第二触摸区域。
在另一些实施方式中,S451的实施方式还可以是,获取与当前触控位置对应的触控面积。其中,当用户做出按压操作时,当前触控位置可以对应一个或多个触控面积。
从触控面积中获取位于第一触摸区域的面积作为第一面积。
从触控面积中获取位于第一触摸区域的面积作为第二面积。
当第一面积大于或等于第二面积时,确定当前触控位置位于第一触摸区域。
当第一面积小于第二面积时,确定当前触控位置位于第二触摸区域。
在本实施方式中,当前触控位置对应的是一个触控面积时,通过判断触控面积分别位于第一触摸区域和第二触摸区域的面积,可以有效、准确地判断出当前触控位置是位于第一触摸区域还是第二触摸区域。
S452,在当前触控位置位于第一触摸区域时,获取与第一触摸区域对应的第一目标报点率。
其中,第一触摸区域预先与第一目标报点率进行了关联。获取与第一触摸区域对应的第一目标报点率时,可以从移动终端本地获取,也可以从与移动终端通信的云端服务器获取。
S453,在当前触控位置位于第二触摸区域时,获取与第二触摸区域对应的第二目标报点率,第一目标报点率大于第二目标报点率。
其中,第二触摸区域预先与第二目标报点率进行了关联。获取与第二触摸区域对应的第二目标报点率时,可以从移动终端本地获取,也可以从与移动终端通信的云端服务器获取。
在本实施方式中,通过将触摸屏划分为第一触摸区域和第二触摸区域,且第二触摸区域包围第一触摸区域,且第一触摸区域的面积大于第二触摸区域的面积。划分后第一触摸区域更靠近触摸屏的中心,属于触摸比较频繁的区域,其对应较高的报点率;第二触摸区域更靠近触摸屏的边缘,属于触摸频率较少的区域,其对应较低的报点率,以使第一触摸区域和第二触摸区域能够对应合理的报点率。再通过判断当前位置处于第一触摸区域还是第二触摸区域可以方便快捷地获取与当前触控位置对应的目标报点率。
S460,基于目标报点率对触摸屏的报点率进行更新。
在些实施方式中,移动终端检测到当前触控位置处于第一触摸区域时,由于第一触摸区域属于触摸比较频繁的区域,则将触摸屏的报点率更新为报点率较高的第一目标报点率,以提高触摸屏的响应速度,提高用户的操作体验。在移动终端检测到当前触控位置处于第二触摸区域时,由于第二触摸区域属于触摸频率较少的区域,则将触摸屏的报点率更新为报点率较低的第二目标报点率,以降低触摸屏的功耗,由于第二触摸区域的面积小于第一触摸区域的面积,且靠近触摸屏的边缘,也减少了采用第一目标报点率进行更新的误触。
考虑到目前的触摸屏的报点率和刷新率一样都是固定不变的,无法根据不同的场景采用相应的报点率和刷新率,从而导致移动终端不必要的功耗。在本实施例中,通过当检测到作用于触摸屏上的触控操作时,获取与触控操作对应的当前触控位置,再获取与当前触控位置对应的目标报点率,然后基于目标报点率对触摸屏的报点率进行更新,从而灵活地控制移动终端根据不同的场景切换触摸屏报点率,在保证用户体验的情况下,避免了不必的功耗。
请参见图10,图10示出了本申请又另一个实施例提供的触摸屏刷新率的更新方法的流程示意图,该方法可以包括如下步骤:
S510,确定移动终端的当前显示状态,当前显示状态包括横屏显示状态和竖屏显示状态。
S520,获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率。
S530,基于目标刷新率对触摸屏的刷新率进行更新。
S540,当检测到作用于触摸屏上的触控操作时,获取与触控操作对应的当前触控位置。
S550,获取与当前触控位置对应的目标报点率。
S560,基于目标报点率对触摸屏的报点率进行更新。
S570,检测移动终端在第四预设时长内是否接收到触摸指令。
其中,触摸指令用于表征用户通过触摸动作向移动终端输入的控制指令,比如控制移动终端音量大小的指令、控制移动终端的触摸屏亮度大小的指令等等。可选地,该触摸指令可以是通过移动终端的触摸屏输入,也可以通过移动终端侧壁上设置的实体按键或虚拟按键输入。
S580,当移动终端在第四预设时长内没有接收到触摸指令,将触摸屏的报点率从第一目标报点率切换为第二目标报点率。
作为一种示例,如第四预设时长为60秒,当移动终端在60秒内为接收到触摸指令,则说明用户并没有频繁对触摸屏进行使用,因此可以将触摸屏的报点率从第一目标报点率切换为第二目标报点率,以减少功耗。
在本实施例中,通过在移动终端在第四预设时长内没有接收到触摸指令,将触摸屏的报点率从第一目标报点率切换为第二目标报点率,能够有效减少移动终端的耗电量,也可以延长触摸屏的使用寿命。
请参阅图11,其示出了本申请一实施例提供的触摸屏刷新率的更新装置600,该装置600应用于移动终端,移动终端包括触摸屏,该装置600包括:显示状态确定模块610、目标刷新率获取模块以及更新模块630。
其中,显示状态确定模块610用于确定移动终端的当前显示状态,当前显示状态包括横屏显示状态和竖屏显示状态。
目标刷新率获取模块用于获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率。
更新模块630用于基于目标刷新率对触摸屏的刷新率进行更新。
进一步的,目标刷新率获取模块,包括:
第一目标刷新率获取单元,在当前显示状态为横屏显示状态时,获取与横屏显示状态对应的第一目标刷新率;
第二目标刷新率获取单元,在当前显示状态为竖屏显示状态时,获取与竖屏显示状态对应的第二目标刷新率,其中,第一目标刷新率大于第二目标刷新率。
进一步的,显示状态确定模块610,包括:
加速度获取单元,用于获取移动终端的加速度;
横屏显示状态确定单元,用于当加速度处于预设范围内时,确定移动终端的当前显示状态为横屏显示状态。
竖屏显示状态确定单元,用于当加速度处于预设范围外时,确定移动终端的当前显示状态为竖屏显示状态。
进一步的,加速度包括第一加速度,第一加速度的方向与触摸屏的长度方向平行,预设范围包括第一预设范围。横屏显示状态确定单元具体用于:
判断第一加速度是否处于第一预设范围内。
当第一加速度处于第一预设范围内时,确定加速度处于预设范围内。
进一步的,加速度包括第二加速度,第二加速度的方向与触摸屏的长度方向垂直,预设范围包括第二预设范围。横屏显示状态确定单元具体还用于:
判断第二加速度是否处于第二预设范围内。
当第二加速度处于第二预设范围内时,确定加速度处于预设范围内。
进一步的,横屏显示状态确定单元,包括:
第一时长判断子单元,用于当加速度处于预设范围内时,判断加速度处于预设范围内的时长是否大于或等于第一预设时长;
横屏显示状态确定子单元,用于当加速度处于预设范围内的时长大于或等于第一预设时长时,确定移动终端的当前显示状态为横屏显示状态。
进一步的,横屏显示状态确定单元,包括:
第二时长判断子单元,用于当加速度处于预设范围外时,判断加速度处于预设范 围外的时长是否大于或等于第二预设时长;
竖屏显示状态确定子单元,用于当加速度处于预设范围外的时长大于或等于第二预设时长时,确定移动终端的当前显示状态为竖屏显示状态。
进一步的,显示状态确定模块610,还用于检测作用于移动终端的第一侧壁上的第一触摸操作,第一侧壁与移动终端的长方向平行。
当检测到第一触摸操作时,确定移动终端的当前显示状态为竖屏显示状态。
进一步的,显示状态确定模块610,还用于检测作用于移动终端的第二侧壁上的第二触摸操作,第二侧壁与移动终端的长方向垂直。
当检测到第二触摸操作时,确定移动终端的当前显示状态为横屏显示状态。
进一步的,该触摸屏刷新率的更新装置600,还包括:屏幕旋转锁定状态检测模块,用于判断移动终端是否处于屏幕旋转锁定状态。
当移动终端不处于屏幕旋转锁定状态,执行确定移动终端的当前显示状态。
进一步的,该触摸屏刷新率的更新装置600,还包括:刷新率切换模块,用于检测移动终端在第三预设时长内是否切换到竖屏显示状态或者进入熄屏状态。
当移动终端在第三预设时间内切换到竖屏显示状态或者进入熄屏状态时,将触摸屏的刷新率从第一目标刷新率更新为第二目标刷新率。
进一步的,该触摸屏刷新率的更新装置600,还包括:
触控位置获取模块,用于当检测到作用于触摸屏上的触控操作时,获取与触控操作对应的当前触控位置。
目标报点率获取模块,用于获取与当前触控位置对应的目标报点率。
报点率更新模块630,用于基于目标报点率对触摸屏的报点率进行更新。
进一步的,触摸屏包括第一触摸区域和第二触摸区域,第二触摸区域包围第一触摸区域,且第一触摸区域的面积大于第二触摸区域的面积。目标报点率获取模块,包括:
第一目标报点率获取单元,用于在当前触控位置位于第一触摸区域时,获取与第一触摸区域对应的第一目标报点率。
第二目标报点率获取单元,用于在当前触控位置位于第二触摸区域时,获取与第二触摸区域对应的第二目标报点率,第一目标报点率大于第二目标报点率。
进一步的,触控位置获取模块还用于:获取与当前触控位置对应的第一触控坐标。
当第一触控坐标位于第一触摸区域内时,确定当前触控位置位于第一触摸区域。
当第一触控坐标位于第二触摸区域内时,确定当前触控位置位于第二触摸区域。
进一步的,触控位置获取模块还用于:获取当前触控位置对应的多个第二触控坐标。
从多个第二触控坐标中获取位于第一触摸区域的第二触控坐标的数量作为第一数量。
从多个第二触控坐标中获取位于第二触摸区域的第二触控坐标的数量作为第二数量。
当第一数量大于或等于第二数量时,确定当前触控位置位于第一触摸区域。
当第一数量小于第二数量时,确定当前触控位置位于第二触摸区域。
进一步的,触控位置获取模块还用于:获取与当前触控位置对应的触控面积。
从触控面积中获取位于第一触摸区域的面积作为第一面积。
从触控面积中获取位于第一触摸区域的面积作为第二面积。
当第一面积大于或等于第二面积时,确定当前触控位置位于第一触摸区域。
当第一面积小于第二面积时,确定当前触控位置位于第二触摸区域。
进一步的,该触摸屏刷新率的更新装置600,还包括:
报点率切换模块,用于检测移动终端在第四预设时长内是否接收到触摸指令。
当移动终端在第四预设时长内没有接收到触摸指令,将触摸屏的报点率从第一目标报点率切换为第二目标报点率。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置600和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,所显示或讨论的模块相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置600或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参考图12,其示出了本申请实施例提供的一种移动终端700的结构框图。该移动终端700可以是前述实施例中能够运行应用程序的移动终端700。本申请中的移动终端700可以包括一个或多个如下部件:处理器710、存储器、触摸屏730、加速度传感器、压力传感器以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器中并被配置为由一个或多个处理器710执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
处理器710可以包括一个或者多个处理核。处理器710利用各种接口和线路连接整个移动终端内的各个部分,通过运行或执行存储在存储器内的指令、程序、代码集或指令集,以及调用存储在存储器内的数据,执行移动终端的各种功能和处理数据。可选地,处理器710可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器710可集成中央处理器710(Central Processing Unit,CPU)、图像处理器710(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器710中,单独通过一块通信芯片进行实现。
存储器可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器可用于存储指令、程序、代码、代码集或指令集。存储器可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储终端在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
触摸屏730用于显示由用户输入的信息、提供给用户的信息以及所述移动终端的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,该触摸屏730可以为液晶显示器(Liquid Crystal Display,LCD),也可以为有机发光二极管(Organic Light-Emitting Diode,OLED),在此不做限定。
请参考图13,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质800中存储有程序代码810,程序代码810可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质800可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质具有执行上述方法中的任何方法步骤的程序代码的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品 中。程序代码可以例如以适当形式进行压缩。
综上所述,本申请实施例提供的触摸屏刷新率的更新方法、装置、移动终端及存储介质,通过确定移动终端的当前显示状态,其中当前显示状态包括横屏显示状态和竖屏显示状态;并获取与当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;再基于目标刷新率对触摸屏的刷新率进行更新,使得移动终端能够根据横屏显示状态和竖屏显示状态来使用不同的刷新率。由于横屏显示状态显示时,通常用户通常会使用移动终端看视频等,显示需求较高,此时可以使用较高的刷新率来保证较好的显示效果,从而提高用户体验。当竖屏显示状态时,显示需求相对较低,此时可以使用较低的刷新率,从而有效降低移动终端的功耗。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种触摸屏刷新率的更新方法,其特征在于,应用于移动终端,所述移动终端包括触摸屏,所述方法包括:
    确定所述移动终端的当前显示状态,所述当前显示状态包括横屏显示状态和竖屏显示状态;
    获取与所述当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;
    基于所述目标刷新率对所述触摸屏的刷新率进行更新。
  2. 根据权利要求1所述的方法,其特征在于,所述获取与所述当前显示状态对应的目标刷新率,包括:
    当所述当前显示状态为横屏显示状态时,获取与所述横屏显示状态对应的第一目标刷新率;
    当所述当前显示状态为竖屏显示状态时,获取与所述竖屏显示状态对应的第二目标刷新率,其中,所述第一目标刷新率大于所述第二目标刷新率。
  3. 根据权利要求2所述的方法,其特征在于,所述确定所述移动终端的当前显示状态,包括:
    获取所述移动终端的加速度;
    当所述加速度处于预设范围内时,确定所述移动终端的当前显示状态为横屏显示状态;
    当所述加速度处于预设范围外时,确定所述移动终端的当前显示状态为竖屏显示状态。
  4. 根据权利要求3所述的方法,其特征在于,所述加速度包括第一加速度,所述第一加速度的方向与所述触摸屏的长度方向平行,所述预设范围包括第一预设范围,在所述获取所述移动终端的加速度之后,还包括:
    判断所述第一加速度是否处于所述第一预设范围内;
    当所述第一加速度处于所述第一预设范围内时,确定所述加速度处于预设范围内。
  5. 根据权利要求3所述的方法,其特征在于,所述加速度包括第二加速度,所述第二加速度的方向与所述触摸屏的长度方向垂直,所述预设范围包括第二预设范围,在所述获取所述移动终端的加速度之后,还包括:
    判断所述第二加速度是否处于所述第二预设范围内;
    当所述第二加速度处于所述第二预设范围内时,确定所述加速度处于预设范围内。
  6. 根据权利要求3-5任一项所述的方法,其特征在于,所述当所述加速度处于预设范围内时,确定所述移动终端的当前显示状态为横屏显示状态,包括:
    当所述加速度处于预设范围内时,判断所述加速度处于预设范围内的时长是否大于或等于第一预设时长;
    当所述加速度处于预设范围内的时长大于或等于第一预设时长时,确定所述移动终端的当前显示状态为横屏显示状态。
  7. 根据权利要求3-5任一项所述的方法,其特征在于,所述当所述加速度处于预设范围外时,确定所述移动终端的当前显示状态为竖屏显示状态,包括:
    当所述加速度处于预设范围外时,判断所述加速度处于预设范围外的时长是否大于或等于第二预设时长;
    当所述加速度处于预设范围外的时长大于或等于第二预设时长时,确定所述移动终端的当前显示状态为竖屏显示状态。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述确定所述移动终端的当 前显示状态,包括:
    检测作用于所述移动终端的第一侧壁上的第一触摸操作,所述第一侧壁与所述移动终端的长方向平行;
    当检测到所述第一触摸操作时,确定所述移动终端的当前显示状态为竖屏显示状态。
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述确定所述移动终端的当前显示状态,包括:
    检测作用于所述移动终端的第二侧壁上的第二触摸操作,所述第二侧壁与所述移动终端的长方向垂直;
    当检测到所述第二触摸操作时,确定所述移动终端的当前显示状态为横屏显示状态。
  10. 根据权利要求3-9任一项所述的方法,其特征在于,在所述确定所述移动终端的当前显示状态之前,还包括:
    判断所述移动终端是否处于屏幕旋转锁定状态;
    当所述移动终端不处于屏幕旋转锁定状态,执行所述确定所述移动终端的当前显示状态。
  11. 根据权利要求2-7任一项所述的方法,其特征在于,在所述基于所述目标刷新率对所述触摸屏的刷新率进行更新之后,还包括:
    检测所述移动终端在第三预设时长内是否切换到竖屏显示状态或者进入熄屏状态;
    当所述移动终端在第三预设时间内切换到竖屏显示状态或者进入熄屏状态时,将所述触摸屏的刷新率从所述第一目标刷新率更新为所述第二目标刷新率。
  12. 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:
    当检测到作用于所述触摸屏上的触控操作时,获取与所述触控操作对应的当前触控位置;
    获取与所述当前触控位置对应的目标报点率;
    基于所述目标报点率对所述触摸屏的报点率进行更新。
  13. 根据权利要求12所述的方法,其特征在于,所述触摸屏包括第一触摸区域和第二触摸区域,所述第二触摸区域包围所述第一触摸区域,且所述第一触摸区域的面积大于所述第二触摸区域的面积,所述获取与所述当前触控位置对应的目标报点率,包括:
    当所述当前触控位置位于所述第一触摸区域时,获取与所述第一触摸区域对应的第一目标报点率;
    当所述当前触控位置位于所述第二触摸区域时,获取与所述第二触摸区域对应的第二目标报点率,所述第一目标报点率大于所述第二目标报点率。
  14. 根据权利要求13所述的方法,其特征在于,在所述获取与所述第一触摸区域对应的第一目标报点率之前,还包括:
    获取与所述当前触控位置对应的第一触控坐标;
    当所述第一触控坐标位于所述第一触摸区域内时,确定所述当前触控位置位于所述第一触摸区域;
    当所述第一触控坐标位于所述第二触摸区域内时,确定所述当前触控位置位于所述第二触摸区域。
  15. 根据权利要求13所述的方法,其特征在于,在所述获取与所述第一触摸区域对应的第一目标报点率之前,还包括:
    获取所述当前触控位置对应的多个第二触控坐标;
    从所述多个第二触控坐标中获取位于所述第一触摸区域的所述第二触控坐标的数 量作为第一数量;
    从所述多个第二触控坐标中获取位于所述第二触摸区域的所述第二触控坐标的数量作为第二数量;
    当所述第一数量大于或等于所述第二数量时,确定所述当前触控位置位于所述第一触摸区域;
    当所述第一数量小于所述第二数量时,确定所述当前触控位置位于所述第二触摸区域。
  16. 根据权利要求13所述的方法,其特征在于,在所述获取与所述第一触摸区域对应的第一目标报点率之前,还包括:
    获取与所述当前触控位置对应的触控面积;
    从所述触控面积中获取位于所述第一触摸区域的面积作为第一面积;
    从所述触控面积中获取位于所述第一触摸区域的面积作为第二面积;
    当所述第一面积大于或等于所述第二面积时,确定所述当前触控位置位于所述第一触摸区域;
    当所述第一面积小于所述第二面积时,确定所述当前触控位置位于所述第二触摸区域。
  17. 根据权利要求13-16任一项所述的方法,其特征在于,在所述基于所述目标报点率对所述触摸屏的报点率进行更新之后,还包括:
    检测所述移动终端在第四预设时长内是否接收到所述触摸指令;
    当所述移动终端在第四预设时长内没有接收到所述触摸指令,将所述触摸屏的报点率从所述第一目标报点率切换为所述第二目标报点率。
  18. 一种触摸屏刷新率更新装置,其特征在于,应用于移动终端,所述移动终端包括触摸屏,所述装置包括:
    显示状态确定模块,用于确定所述移动终端的当前显示状态,所述当前显示状态包括横屏显示状态和竖屏显示状态;
    目标刷新率获取模块,用于获取与所述当前显示状态对应的目标刷新率,其中,不同的显示状态对应不同的刷新率;
    更新模块,用于基于所述目标刷新率对所述触摸屏的刷新率进行更新。
  19. 一种移动终端,其特征在于,包括:
    一个或多个处理器;
    存储器;
    一个或多个应用程序,其中所述一个或多个应用程序被存储在所述存储器中并被配置为由所述一个或多个处理器执行,所述一个或多个应用程序配置用于执行如权利要求1-17任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
PCT/CN2019/112348 2019-10-21 2019-10-21 触摸屏刷新率的更新方法、装置、移动终端及存储介质 WO2021077264A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2019/112348 WO2021077264A1 (zh) 2019-10-21 2019-10-21 触摸屏刷新率的更新方法、装置、移动终端及存储介质
CN201980099300.0A CN114286978A (zh) 2019-10-21 2019-10-21 触摸屏刷新率的更新方法、装置、移动终端及存储介质

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/112348 WO2021077264A1 (zh) 2019-10-21 2019-10-21 触摸屏刷新率的更新方法、装置、移动终端及存储介质

Publications (1)

Publication Number Publication Date
WO2021077264A1 true WO2021077264A1 (zh) 2021-04-29

Family

ID=75619517

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/112348 WO2021077264A1 (zh) 2019-10-21 2019-10-21 触摸屏刷新率的更新方法、装置、移动终端及存储介质

Country Status (2)

Country Link
CN (1) CN114286978A (zh)
WO (1) WO2021077264A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080143729A1 (en) * 2006-12-15 2008-06-19 Nvidia Corporation System, method and computer program product for adjusting a refresh rate of a display for power savings
CN103530036A (zh) * 2013-10-18 2014-01-22 惠州Tcl移动通信有限公司 一种横屏切换的控制方法及移动终端
CN105164618A (zh) * 2013-11-15 2015-12-16 华为终端有限公司 数据上报方法、装置及终端设备
CN105242893A (zh) * 2015-09-22 2016-01-13 小米科技有限责任公司 刷新率调整方法及装置
CN106250085A (zh) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 刷新率调整方法及装置
CN110164356A (zh) * 2019-06-11 2019-08-23 惠科股份有限公司 数据显示的控制电路及补偿方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080143729A1 (en) * 2006-12-15 2008-06-19 Nvidia Corporation System, method and computer program product for adjusting a refresh rate of a display for power savings
CN103530036A (zh) * 2013-10-18 2014-01-22 惠州Tcl移动通信有限公司 一种横屏切换的控制方法及移动终端
CN105164618A (zh) * 2013-11-15 2015-12-16 华为终端有限公司 数据上报方法、装置及终端设备
CN105242893A (zh) * 2015-09-22 2016-01-13 小米科技有限责任公司 刷新率调整方法及装置
CN106250085A (zh) * 2016-07-29 2016-12-21 北京小米移动软件有限公司 刷新率调整方法及装置
CN110164356A (zh) * 2019-06-11 2019-08-23 惠科股份有限公司 数据显示的控制电路及补偿方法

Also Published As

Publication number Publication date
CN114286978A (zh) 2022-04-05

Similar Documents

Publication Publication Date Title
US10908703B2 (en) User terminal device and method for controlling the user terminal device thereof
US11474657B2 (en) Screen casting method, apparatus, terminal and storage medium
CN108235086B (zh) 视频播放控制方法、装置及相应的终端
TWI566575B (zh) 一種圖像渲染方法、裝置及電子設備
CN108646906B (zh) 帧率调整方法、装置、存储介质及智能终端
WO2017016339A1 (zh) 视频分享方法和装置、视频播放方法和装置
WO2017076289A1 (zh) 视频播放方法及装置
US20070008338A1 (en) Display system, display apparatus, and method of controlling video source and display apparatus
CN112445315A (zh) 屏幕刷新帧率的控制方法、装置及存储介质
WO2016082586A1 (zh) 网页更新方法及装置
CN109157839B (zh) 帧率调控方法、装置、存储介质及终端
CN108648259B (zh) 图像绘制方法、装置、存储介质及智能终端
US11086635B2 (en) Electronic device, method for controlling electronic device, and program
CN108733193B (zh) 智能调整帧率的方法、装置、存储介质及智能终端
WO2019201140A1 (zh) 应用显示方法、装置、存储介质及电子设备
CN107148776B (zh) 获取视频数据的方法、装置、系统及计算机可读存储介质
KR20130020238A (ko) 포인팅 장치를 이용한 컨텐츠 이동 방법 및 장치
WO2022057407A1 (zh) 挂件显示方法和电子设备
WO2022171054A1 (zh) 一种刷新显示的方法、装置和电子设备
CN108762465B (zh) 帧率自适应调整方法、装置、存储介质及智能终端
WO2019047187A1 (zh) 导航栏控制方法及装置
US20220319388A1 (en) Display control method and electronic device
CN110830653B (zh) 传感器控制方法、装置、移动终端以及存储介质
WO2023197679A1 (zh) 视频播放方法、装置、电子设备及存储介质
WO2021077308A1 (zh) 触摸屏处理方法、装置、移动终端以及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19949840

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19949840

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 19.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 19949840

Country of ref document: EP

Kind code of ref document: A1