CN112445358A - Adjusting method, terminal and computer storage medium - Google Patents

Adjusting method, terminal and computer storage medium Download PDF

Info

Publication number
CN112445358A
CN112445358A CN201910810484.9A CN201910810484A CN112445358A CN 112445358 A CN112445358 A CN 112445358A CN 201910810484 A CN201910810484 A CN 201910810484A CN 112445358 A CN112445358 A CN 112445358A
Authority
CN
China
Prior art keywords
touch screen
terminal
display
screen
display state
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201910810484.9A
Other languages
Chinese (zh)
Inventor
林进全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co Ltd
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 Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201910810484.9A priority Critical patent/CN112445358A/en
Publication of CN112445358A publication Critical patent/CN112445358A/en
Pending legal-status Critical Current

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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means

Landscapes

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

Abstract

The embodiment of the application discloses an adjusting method, which is applied to a terminal and can comprise the following steps: the method comprises the steps of obtaining the display state of a touch screen of a terminal, adjusting the point reporting rate of the touch screen to be a first preset threshold value when the display state of the touch screen is horizontal screen display, and adjusting the point reporting rate of the touch screen to be a second preset threshold value when the display state of the touch screen is vertical screen display. The embodiment of the application also provides a terminal and a computer storage medium.

Description

Adjusting method, terminal and computer storage medium
Technical Field
The present application relates to a technology for adjusting a touch screen click rate, and in particular, to an adjustment method, a terminal, and a computer storage medium.
Background
Currently, by using the capacitive sensing principle of a touch screen, a touch screen system identifies coordinates of an object by calculating whether a capacitance difference between a touch screen and a non-touch screen of the current object is within a preset value range, so that the touch screen system sends report coordinates.
The touch screen system informs a processor of the terminal to read touch screen data through an INT pin and informs the processor of the terminal to read touch screen data through an I pin2Reading data by a C (Inter-Integrated Circuit) or Serial Peripheral Interface (SPI) Interface, wherein a reporting rate is a frequency of interrupting reporting data, and a commonly used reporting rate is 60-240Hz, for example, 100Hz, that is, 10ms reports data once。
However, the existing touch screen system adopts a fixed numerical value of the reporting rate, which is low, and although the power consumption can be reduced, the response speed to the touch operation is affected, and the reporting rate is high, and although the response speed to the touch operation can be improved, the power consumption of the terminal is increased; therefore, the report rate of the existing touch screen is fixed and unchanged, and the adaptability is poor.
Disclosure of Invention
The embodiment of the application provides an adjusting method, a terminal and a computer storage medium, which can improve the flexibility of the point reporting rate.
The technical scheme of the application is realized as follows:
the embodiment of the application provides an adjusting method, which is applied to a terminal and comprises the following steps:
acquiring a display state of a touch screen of the terminal; wherein the display state comprises horizontal screen display and vertical screen display;
when the display state of the touch screen is horizontal screen display, adjusting the report rate of the touch screen to a first preset threshold value;
when the display state of the touch screen is vertical screen display, adjusting the report rate of the touch screen to a second preset threshold;
wherein the first preset threshold is greater than the second preset threshold.
In the method, the acquiring the display state of the touch screen of the terminal includes:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed on a transverse screen, determining that the display state of the touch screen of the terminal is transverse screen display;
and when the value of the gravity acceleration does not fall into a preset numerical range displayed by a transverse screen, determining that the display state of the touch screen of the terminal is vertical screen display.
In the method, the acquiring the display state of the touch screen of the terminal includes:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is vertical screen display;
and when the value of the gravity acceleration does not fall into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is horizontal screen display.
In the above method, the value of the gravitational acceleration includes: values of an X coordinate axis, values of a Y coordinate axis, and values of a Z coordinate axis.
In the above method, when the display state of the touch screen is horizontal screen display, adjusting the reporting rate of the touch screen to a first preset threshold includes:
when the display state of the touch screen is horizontal screen display, acquiring an application running on a display interface of the terminal;
judging whether the running application belongs to the application in a preset application set or not;
when the running application belongs to applications in a preset application set, adjusting the report rate of the touch screen to be the first preset threshold;
and when the running application does not belong to the applications in the preset application set, adjusting the report rate of the touch screen to the second preset threshold.
In the above method, when the display state of the touch screen is horizontal screen display, adjusting the reporting rate of the touch screen to a first preset threshold includes:
when the display state of the touch screen is horizontal screen display, acquiring an application running on a display interface of the terminal;
determining a report rate corresponding to the running application as the first preset threshold;
and adjusting the point reporting rate on the touch screen to the first preset threshold value.
In the above method, when the display state of the touch screen is vertical screen display, adjusting the reporting rate of the touch screen to a second preset threshold includes:
when the display state of the touch screen is vertical screen display, acquiring an application running on a display interface of the terminal;
determining the report rate corresponding to the running application as the second preset threshold;
and adjusting the point reporting rate on the touch screen to the second preset threshold value.
The embodiment of the application provides a terminal, the terminal includes:
the acquisition module is used for acquiring the display state of a touch screen of the terminal; wherein the display state comprises horizontal screen display and vertical screen display;
the first adjusting module is used for adjusting the report rate of the touch screen to be a first preset threshold value when the display state of the touch screen is horizontal screen display;
the second adjusting module is used for adjusting the report rate of the touch screen to a second preset threshold value when the display state of the touch screen is vertical screen display;
wherein the first preset threshold is greater than the second preset threshold.
In the above terminal, the obtaining module is specifically configured to:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed on a transverse screen, determining that the display state of the touch screen of the terminal is transverse screen display;
and when the value of the gravity acceleration does not fall into a preset numerical range displayed by a transverse screen, determining that the display state of the touch screen of the terminal is vertical screen display.
In the above terminal, the obtaining module is specifically configured to:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is vertical screen display;
and when the value of the gravity acceleration does not fall into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is horizontal screen display.
In the above terminal, the value of the gravitational acceleration includes: values of an X coordinate axis, values of a Y coordinate axis, and values of a Z coordinate axis.
In the above terminal, the first adjusting module is specifically configured to:
when the display state of the touch screen is horizontal screen display, acquiring an application running on a display interface of the terminal;
judging whether the running application belongs to the application in a preset application set or not;
when the running application belongs to applications in a preset application set, adjusting the report rate of the touch screen to be the first preset threshold;
and when the running application does not belong to the applications in the preset application set, adjusting the report rate of the touch screen to the second preset threshold.
In the above terminal, the first adjusting module is specifically configured to:
when the display state of the touch screen is horizontal screen display, acquiring an application running on a display interface of the terminal;
determining a report rate corresponding to the running application as the first preset threshold;
and adjusting the point reporting rate on the touch screen to the first preset threshold value.
In the above terminal, the second adjusting module is specifically configured to:
when the display state of the touch screen is vertical screen display, acquiring an application running on a display interface of the terminal;
determining the report rate corresponding to the running application as the second preset threshold;
and adjusting the point reporting rate on the touch screen to the second preset threshold value.
An embodiment of the present application further provides a terminal, where the terminal includes: the processor and the storage medium storing the processor-executable instructions, the storage medium performing operations through a communication bus depending on the processor, and when the instructions are executed by the processor, performing the adjusting method of one or more of the above embodiments.
The embodiment of the application provides a computer storage medium, which stores executable instructions, and when the executable instructions are executed by one or more processors, the processors execute the adjusting method of one or more embodiments.
The embodiment of the application provides an adjusting method, a terminal and a computer storage medium, wherein the method is applied to the terminal and comprises the following steps: the method comprises the steps of obtaining a display state of a touch screen of a terminal, wherein the display state comprises horizontal screen display and vertical screen display, when the display state of the touch screen is the horizontal screen display, adjusting a report rate of the touch screen to be a first preset threshold value, when the display state of the touch screen is the vertical screen display, adjusting the report rate of the touch screen to be a second preset threshold value, and the first preset threshold value is larger than the second preset threshold value; that is to say, in this embodiment of the application, through obtaining the display state of the touch screen at the terminal, it can be known whether the touch screen is in the display state of the horizontal screen display or the display state of the vertical screen display, and thus, the display state of the horizontal screen display is directed at the touch screen, the report rate can be adjusted to the first preset threshold value, and the display state of the vertical screen display is directed at the touch screen, and the report rate can be adjusted to the second preset threshold value, so that the report rate of the touch screen can be flexibly adjusted for different display states, and the report rate of the touch screen displayed by the horizontal screen is higher than that of the touch screen displayed by the vertical screen, so that the report rate of the touch screen can be suitable for the requirements of the current terminal, the flexibility of the report rate is improved, and the experience of the terminal user is improved.
Drawings
Fig. 1 is a schematic flow chart of an alternative adjustment method provided in an embodiment of the present application;
fig. 2 is a schematic structural diagram of an alternative touch screen of a terminal according to an embodiment of the present disclosure;
FIG. 3 is an alternative value of gravitational acceleration provided by embodiments of the present application;
FIG. 4 is a diagram illustrating alternative gravitational acceleration values provided by embodiments of the present application;
fig. 5 is a schematic flowchart of an example of an optional adjustment method provided in an embodiment of the present application;
fig. 6 is a first schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Example one
The embodiment of the application provides an adjusting method, which is applied to a terminal.
Nowadays, a touch screen of a terminal adopts a fixed reporting rate, generally, a low-point reporting rate may be 60Hz, a medium-point or high-point reporting rate may be 120Hz, 180Hz, 240Hz, and in general, after determining a self reporting rate in the reporting rates, the terminal adopts the determined reporting rate to be unchanged.
However, if the touch screen of the terminal uses the low click rate, although power consumption of an Integrated Circuit (IC) can be saved and power consumption increment caused by the click rate processed by the terminal can be saved, the response speed of the terminal to the touch operation on the touch screen is slow due to the low click rate, which affects the experience of the terminal user.
If the touch screen of the terminal adopts the high-point reporting rate, although the response speed of the terminal to the touch operation on the touch screen can be improved, so that the experience degree of a user is improved, the power consumption of an IC (integrated circuit) can be increased, and the power consumption increment caused by the processing of the reporting rate by the terminal is increased.
That is to say, the touch screen of the terminal adopts a fixed low-point reporting rate or a fixed high-point reporting rate, and there are application scenarios that cannot adapt to the terminal changing constantly.
In order to meet the requirement of a terminal on a report rate due to a constantly changing application scenario, an embodiment of the present application provides an adjustment method, fig. 1 is a schematic flow diagram of an optional adjustment method provided in the embodiment of the present application, and referring to fig. 1, the adjustment method may include:
s101: acquiring a display state of a touch screen of a terminal;
the display state comprises horizontal screen display and vertical screen display.
When a user of the terminal is using the terminal, the display state displayed by the horizontal screen may be adopted, or the display state displayed by the vertical screen may be adopted, generally, the surface of the touch screen of the terminal is rectangular, the top and the bottom of the touch screen are two rectangular lengths under the display of the horizontal screen, the two sides of the touch screen are two rectangular widths, and the display content is displayed on the touch screen which uses the two rectangular lengths as the top and the bottom and uses the two rectangular widths as the two sides.
Under the display of the vertical screen, the top and the bottom of the touch screen are two rectangular widths, two sides of the touch screen are two rectangular lengths, and the display content is displayed on the touch screen which takes the two rectangular widths as the top and the bottom and takes the two rectangular lengths as the two sides.
Here, the terminal acquires the display state of the touch screen, and can know whether the terminal is in horizontal screen display or vertical screen display, so that the touch screen of the terminal can better determine the report rate applicable to the current display state.
Then, to determine a more suitable report rate, the display state of the terminal needs to be acquired first, and to acquire the display state of the touch screen, in an alternative embodiment, S101 may include:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen, determining that the display state of the touch screen of the terminal is transverse screen display;
and when the value of the gravity acceleration does not fall into the preset numerical range displayed by the transverse screen, determining that the display state of the touch screen of the terminal is vertical screen display.
Specifically, the terminal may determine the display state of the touch screen by using a gravity sensor in the terminal, and the terminal may detect a value of a gravitational acceleration of the terminal by using the gravity sensor, and determine the display state of the touch screen by determining the value of the gravitational acceleration.
Here, in practical applications, the display state of the vertical screen display is frequently adopted by the user of the terminal, so that the numerical range of the horizontal screen display is preset in the terminal, and the terminal in which the states need to be screened out by judging whether the value of the gravitational acceleration falls into the preset numerical range of the horizontal screen display, so that the rest states only need to be displayed in the vertical screen.
It can be understood that, if the detected value of the gravitational acceleration falls within the preset numerical range of the horizontal screen display, it indicates that the user of the terminal needs to start the horizontal screen display at this time, and therefore, it is determined that the display state of the touch screen is the horizontal screen display at this time, and if the detected value of the gravitational acceleration does not fall within the preset numerical range of the horizontal screen display, it indicates that the user of the terminal does not need to start the horizontal screen display at this time, and therefore, it is determined that the display state of the touch screen is the vertical screen display at this time.
In order to acquire the display state of the touch screen, in an alternative embodiment, S101 may include:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is vertical screen display;
and when the value of the gravity acceleration does not fall into the preset numerical range displayed by the vertical screen, determining that the display state of the touch screen of the terminal is horizontal screen display.
Specifically, the terminal may determine the display state of the touch screen by using a gravity sensor in the terminal, and the terminal may detect a value of a gravitational acceleration of the terminal by using the gravity sensor, and determine the display state of the touch screen by determining the value of the gravitational acceleration.
Here, to the situation that the user of some terminals more adopts the display state of horizontal screen display, the numerical range of vertical screen display is preset in the terminal, and whether the value of the gravitational acceleration falls into the numerical range of the preset vertical screen display or not can be judged, so that the terminal in which the states need to be adjusted to the vertical screen display, and then, the rest of the states only need to be in the horizontal screen display.
It can be understood that, if the detected value of the gravitational acceleration falls within the preset numerical range of the vertical screen display, it indicates that the user of the terminal needs to start the vertical screen display at this time, and therefore, it is determined that the display state of the touch screen is the vertical screen display at this time, and if the detected value of the gravitational acceleration does not fall within the preset numerical range of the vertical screen display, it indicates that the user of the terminal does not need to start the vertical screen display at this time, and therefore, it is determined that the display state of the touch screen is the horizontal screen display at this time.
Wherein the value of the gravitational acceleration comprises: values of an X coordinate axis, values of a Y coordinate axis, and values of a Z coordinate axis.
That is, the terminal can detect and obtain the value of the gravitational acceleration through the gravity sensor, wherein X is the value of the gravitational acceleration of the X coordinate axis, Y is the value of the gravitational acceleration of the Y coordinate axis, and Z is the value of the gravitational acceleration of the Z coordinate axis.
Fig. 2 is a schematic structural diagram of a touch screen of an optional terminal according to an embodiment of the present disclosure, and as shown in fig. 2, an X coordinate axis is parallel to a width of a rectangular touch screen, a Y coordinate axis is parallel to a length of the rectangular touch screen, and a Z coordinate axis is perpendicular to a surface of the touch screen.
Based on fig. 2, in practical applications, assuming that the front of the mobile phone faces the user, the preset horizontal screen may display a numerical range that is: the value of the gravity acceleration of the X coordinate axis is close to 9.8, for example, the value of the gravity acceleration of the X coordinate axis is more than or equal to 9 and less than or equal to 9.8, when the detected value of the gravity acceleration of the X coordinate axis is within 9 and 9.8, the display state of the touch screen is determined to be horizontal screen display, otherwise, vertical screen display is performed; wherein the unit of the value of the gravitational acceleration is m/s.
In practical application, the preset vertical screen may display a numerical range that is: and the value of the gravity acceleration of the Y coordinate axis is close to 9.8, for example, the value of the gravity acceleration of the Y coordinate axis is greater than or equal to 8.9 and less than or equal to 9.8, and when the detected value of the gravity acceleration of the Y coordinate axis is within 8.9 and 9.8, the display state of the touch screen is determined to be vertical screen display, otherwise, the display state is determined to be horizontal screen display.
In addition, the preset horizontal screen display numerical range in the terminal may be: the numerical range of the value of the gravitational acceleration of the X coordinate axis is [ 9, 9.8 ], and the numerical range displayed by a preset vertical screen in the terminal may be: and the value range of the gravity acceleration value of the Y coordinate axis is within 8.9 and 9.8, when the detected gravity acceleration value of the X coordinate axis is within 9 and 9.8, the display state of the touch screen is determined to be horizontal screen display, and when the detected gravity acceleration value of the Y coordinate axis is within 8.9 and 9.8, the display state of the touch screen is determined to be vertical screen display.
In practical application, if a default preset direction of the terminal is a vertical direction (perpendicular to a horizontal direction) when the terminal is started, the terminal is in a display state of vertical screen display, the terminal starts a timer to detect whether a value of the gravitational acceleration of an X coordinate axis in the horizontal direction falls into a first interval, wherein the first interval is [ 8 ] -9.8 ] or [ 8, 9.8 ], when the terminal falls into the first interval, whether a duration of the first interval is greater than a preset duration is detected, if the duration of the first interval is greater than the preset duration, the display state of the touch screen is determined to be horizontal screen display, otherwise, the vertical screen display is continuously maintained, and if the terminal does not fall into the first interval, the vertical screen display is continuously maintained.
For example, fig. 3 is a value of an optional gravitational acceleration according to an embodiment of the present application, and as shown in fig. 3, a state of the terminal detected by the gravity sensor (GSensor) is: the angle is 1, the value X of the gravitational acceleration of the X coordinate axis is-0.08293202, the value Y of the gravitational acceleration of the Y coordinate axis is 9.38537, the value Z of the gravitational acceleration of the Z coordinate axis is 2.3103313, and when the screen direction is vertical, the display state of the touch screen is judged to be switched to be displayed on a horizontal screen, so that the acquired display state of the touch screen is displayed on the horizontal screen.
If the terminal is in a display state of horizontal screen display, the terminal starts a timer to detect whether the value of the gravitational acceleration of the Y coordinate axis in the horizontal direction falls into a first interval, when the value falls into the first interval, whether the duration of the gravitational acceleration falling into the first interval is greater than preset duration is detected, if the duration of the gravitational acceleration falling into the first interval is greater than the preset duration, the display state of the touch screen is determined to be vertical screen display, otherwise, the horizontal screen display is continuously maintained, and if the value of the gravitational acceleration does not fall into the first interval, the horizontal screen display.
For example, fig. 4 is another optional value of the gravitational acceleration provided in the embodiment of the present application, as shown in fig. 4, the state of the terminal detected by the gravity sensor (GSensor) is: the angle is 87, the gravity acceleration value X of the X coordinate axis is-10.217751, the gravity acceleration value Y of the Y coordinate axis is 0.596035, the gravity acceleration value Z of the Z coordinate axis is-0.044264644, and when the screen direction is a landscape screen, the display state of the touch screen is judged to be maintained to be displayed on the landscape screen, so that the acquired display state of the touch screen is the landscape screen display.
S102: when the display state of the touch screen is horizontal screen display, adjusting the report rate of the touch screen to a first preset threshold value;
the display state of the touch screen of the terminal can be obtained through the S101, when the display state of the touch screen is horizontal screen display, at this time, the application interface of the game application or the application interface of the video playing application is frequently displayed on the display interface of the terminal, and for the application interface of the application, if the report rate of the touch screen adopted by the terminal is low when horizontal screen display is adopted, the response speed of the touch screen to touch operation can be affected, so that the report rate of the touch screen is adjusted to be a high report rate, that is, the first preset threshold value, so that the adjusted report rate can adapt to the application scene of the current display interface, and the experience degree of the terminal user is improved.
S103: when the display state of the touch screen is vertical screen display, adjusting the report rate of the touch screen to a second preset threshold value;
the first preset threshold is larger than the second preset threshold.
Through the above S101, the display state of the touch screen of the terminal may be obtained, when the display state of the touch screen is vertical screen display, at this time, an application interface of a non-game application or an application interface of a non-video playing application is frequently displayed on the display interface of the terminal, for example, an application interface of an instant messaging application or an application interface of a shopping application, and for an application interface of such an application, if the report rate of the touch screen adopted by the terminal is higher when vertical screen display is adopted, power consumption of the terminal may be increased, so that the report rate of the touch screen is adjusted to a lower report rate, that is, the second preset threshold, so that the adjusted report rate can adapt to an application scenario of a current display interface, so as to improve experience of a terminal user.
In order to adjust the touch screen click rate to adapt to the application scenario of the current display interface, in an alternative embodiment, S102 may include:
when the display state of the touch screen is horizontal screen display, acquiring running applications on a display interface of the terminal;
judging whether the running application belongs to the applications in the preset application set or not;
when the running application belongs to the applications in the preset application set, adjusting the report rate of the touch screen to be a first preset threshold;
and when the running application does not belong to the applications in the preset application set, adjusting the report rate of the touch screen to be a second preset threshold.
Specifically, when the display state of the touch screen is the landscape screen display, the touch screen dot reporting rate is not directly adjusted to the first preset threshold value, but the running application on the display interface of the terminal is firstly acquired, and the running application is judged to adjust the touch screen dot reporting rate.
After the running application is acquired, judging the running application, and judging whether the running application belongs to a preset application set, wherein the preset application set is stored in the terminal in advance, a plurality of applications, such as a plurality of game applications and a plurality of video playing applications, are stored in the preset application set, when the running application belongs to the applications in the preset application set, the terminal adjusts the report rate of the touch screen to be a higher report rate, namely the first preset threshold, and otherwise, for the applications outside the preset application set, the terminal adjusts the report rate of the touch screen to be a lower report rate, namely the second preset threshold.
Therefore, the applications needing to be displayed in a horizontal screen mode are screened out by further judging the running applications, and the report rate of the touch screen is increased aiming at the applications so as to adapt to the running applications, improve the response speed of touch operation and improve the experience degree of a terminal user.
In order to adjust the touch screen click rate to adapt to the application scenario of the current display interface, in an alternative embodiment, S102 may include:
when the display state of the touch screen is horizontal screen display, acquiring running applications on a display interface of the terminal;
determining a report rate corresponding to the running application as a first preset threshold;
and adjusting the report rate of the touch screen to be a first preset threshold value.
Specifically, when the acquired display state of the touch screen is horizontal screen display, the running application on the display interface of the terminal is acquired first, and the reporting rate corresponding to each application is stored in the terminal, wherein a terminal user can preset the reporting rate corresponding to each application according to the own requirements, at this time, after the running application is acquired, the terminal acquires the reporting rate corresponding to the running application, determines the corresponding reporting rate as a first preset threshold, and finally adjusts the reporting rate of the touch screen to the determined first preset threshold, so that the reporting rate of the touch screen is adjusted to: the point reporting rate corresponding to the running application enables the point reporting rate of the touch screen to be suitable for the running application, so that the application scene of the current display interface is suitable, and the experience degree of a terminal user is improved.
In order to adjust the touch screen click rate to adapt to the application scenario of the current display interface, in an alternative embodiment, S103 may include:
when the display state of the touch screen is vertical screen display, acquiring an application running on a display interface of the terminal;
determining the report rate corresponding to the running application as a second preset threshold;
and adjusting the point reporting rate on the touch screen to be a second preset threshold value.
Specifically, under the condition that the acquired display state of the touch screen is vertical screen display, the running application on the display interface of the terminal is acquired first, and the report rate corresponding to each application is stored in the terminal, wherein a terminal user can preset the report rate corresponding to each application according to the self requirement, at this time, after the running application is acquired, the report rate corresponding to the running application is acquired by the terminal, the corresponding report rate is determined as a second preset threshold, and finally the report rate of the touch screen is adjusted to the determined second preset threshold, so that the report rate of the touch screen is adjusted to: the point reporting rate corresponding to the running application enables the point reporting rate of the touch screen to be suitable for the running application, so that the application scene of the current display interface is suitable, and the experience degree of a terminal user is improved.
The adjustment method according to one or more of the above embodiments is described below by way of example.
Fig. 5 is a schematic flowchart of an example of an optional adjustment method provided in an embodiment of the present application, and as shown in fig. 5, the adjustment method may include:
s501: the terminal starts an acceleration sensor, and the acceleration sensor detects the value of the gravity acceleration, so that the terminal obtains the value of the gravity acceleration;
s502: the terminal determines the display state of the touch screen according to the pre-stored numerical range displayed by the horizontal screen and the pre-stored numerical range displayed by the vertical screen;
wherein, the numerical range that the horizontal screen that predetermines shows does: the numerical range of the gravity acceleration value of the X coordinate axis is within (8-8, -9.8) or (8, 9.8), and the preset numerical range displayed by the vertical screen can be as follows: the value range of the gravity acceleration value of the Y coordinate axis is within (8-8, -9.8) or (8, 9.8), and then the terminal can determine the display state of the touch screen through the preset value range displayed by the horizontal screen and the preset value range displayed by the vertical screen.
S503: when the terminal determines that the display state of the touch screen is horizontal screen display, an upper layer system of the terminal sends a command with a high report rate to a bottom layer system;
s504: when the terminal determines that the display state of the touch screen is vertical screen display, an upper-layer system of the terminal sends a command with a low report rate to a bottom-layer system;
s505: bottom system pass of terminal I2C or the SPI interface is provided with a register of the touch screen system;
the touch screen system is a minimum system composed of a single-chip Central Processing Unit (CPU), a Random Access Memory (RAM) and a power supply, and an input event is triggered when the touch screen system receives an event action of pressing and lifting movement sent by a user.
The terminal is a system composed of a high-performance CPU, a RAM, a Read-Only Memory (ROM) and other devices.
S506: and the touch screen system acquires the parameters in the register and starts the report rate to report data.
Specifically, the touch screen system starts different reporting rates to report data, i.e. different timing periods, according to the parameters of the register.
Through the above example, the touch-sensitive screen that shows the horizontal screen uses high report rate, improves touch-control experience, for example under horizontal screen game mode, the touch-sensitive screen that will erect the screen display uses low report rate, reduces the consumption problem under the perpendicular screen, plays the effect of power saving to realize the terminal to the automatic switch of the report rate of touch-sensitive screen, it is more intelligent and convenient.
The embodiment of the application provides an adjusting method, which is applied to a terminal and comprises the following steps: the method comprises the steps of obtaining a display state of a touch screen of a terminal, wherein the display state comprises horizontal screen display and vertical screen display, when the display state of the touch screen is the horizontal screen display, adjusting a report rate of the touch screen to be a first preset threshold value, when the display state of the touch screen is the vertical screen display, adjusting the report rate of the touch screen to be a second preset threshold value, and the first preset threshold value is larger than the second preset threshold value; that is to say, in this embodiment of the application, through obtaining the display state of the touch screen at the terminal, it can be known whether the touch screen is in the display state of the horizontal screen display or the display state of the vertical screen display, and thus, the display state of the horizontal screen display is directed at the touch screen, the report rate can be adjusted to the first preset threshold value, and the display state of the vertical screen display is directed at the touch screen, and the report rate can be adjusted to the second preset threshold value, so that the report rate of the touch screen can be flexibly adjusted for different display states, and the report rate of the touch screen displayed by the horizontal screen is higher than that of the touch screen displayed by the vertical screen, so that the report rate of the touch screen can be suitable for the requirements of the current terminal, the flexibility of the report rate is improved, and the experience of the terminal user is improved.
Example two
Fig. 6 is a first structural schematic diagram of a terminal provided in the embodiment of the present application, and as shown in fig. 6, the embodiment of the present application provides a terminal, where the terminal may include:
the acquiring module 61 is used for acquiring the display state of a touch screen of the terminal; the display state comprises horizontal screen display and vertical screen display;
the first adjusting module 62 is configured to adjust the reporting rate of the touch screen to a first preset threshold when the display state of the touch screen is horizontal screen display;
the second adjusting module 63 is configured to adjust the reporting rate of the touch screen to a second preset threshold when the display state of the touch screen is vertical screen display;
the first preset threshold is larger than the second preset threshold.
Optionally, the obtaining module 61 is specifically configured to:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen, determining that the display state of the touch screen of the terminal is transverse screen display;
and when the value of the gravity acceleration does not fall into the preset numerical range displayed by the transverse screen, determining that the display state of the touch screen of the terminal is vertical screen display.
Optionally, the obtaining module 61 is specifically configured to:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is vertical screen display;
and when the value of the gravity acceleration does not fall into the preset numerical range displayed by the vertical screen, determining that the display state of the touch screen of the terminal is horizontal screen display.
Optionally, the values of the gravitational acceleration include: values of an X coordinate axis, values of a Y coordinate axis, and values of a Z coordinate axis.
Optionally, the first adjusting module 62 is specifically configured to:
when the display state of the touch screen is horizontal screen display, acquiring running applications on a display interface of the terminal;
judging whether the running application belongs to the applications in the preset application set or not;
when the running application belongs to the applications in the preset application set, adjusting the report rate of the touch screen to be a first preset threshold;
and when the running application does not belong to the applications in the preset application set, adjusting the report rate of the touch screen to be a second preset threshold.
Optionally, the first adjusting module 62 is specifically configured to:
when the display state of the touch screen is horizontal screen display, acquiring running applications on a display interface of the terminal;
determining a report rate corresponding to the running application as a first preset threshold;
and adjusting the point reporting rate on the touch screen to be a first preset threshold value.
Optionally, the second adjusting module 63 is specifically configured to:
when the display state of the touch screen is vertical screen display, acquiring an application running on a display interface of the terminal;
determining the report rate corresponding to the running application as a second preset threshold;
and adjusting the point reporting rate on the touch screen to be a second preset threshold value.
In practical applications, the obtaining module 61, the first adjusting module 62 and the second adjusting module 63 may be implemented by a processor located on a terminal, specifically, implemented by a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present application, and as shown in fig. 7, an embodiment of the present application provides a terminal 700, including:
a processor 71 and a storage medium 72 storing instructions executable by the processor 71, wherein the storage medium 72 depends on the processor 71 to perform operations via a communication bus 73, and when the instructions are executed by the processor 71, the adjusting method of the first embodiment is performed.
It should be noted that, in practical applications, the various components in the terminal are coupled together by a communication bus 73. It will be appreciated that a communication bus 73 is used to enable communications among the components. The communication bus 73 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. But for clarity of illustration the various buses are labeled in figure 7 as communication bus 73.
The embodiment of the application provides a computer storage medium, which stores executable instructions, and when the executable instructions are executed by one or more processors, the processors execute the adjusting method of the first embodiment.
The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), among others.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. An adjustment method, applied to a terminal, the method comprising:
acquiring a display state of a touch screen of the terminal; wherein the display state comprises horizontal screen display and vertical screen display;
when the display state of the touch screen is horizontal screen display, adjusting the report rate of the touch screen to a first preset threshold value;
when the display state of the touch screen is vertical screen display, adjusting the report rate of the touch screen to a second preset threshold;
wherein the first preset threshold is greater than the second preset threshold.
2. The method according to claim 1, wherein the acquiring the display state of the touch screen of the terminal comprises:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a transverse screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed on a transverse screen, determining that the display state of the touch screen of the terminal is transverse screen display;
and when the value of the gravity acceleration does not fall into a preset numerical range displayed by a transverse screen, determining that the display state of the touch screen of the terminal is vertical screen display.
3. The method according to claim 1, wherein the acquiring the display state of the touch screen of the terminal comprises:
acquiring a value of the gravitational acceleration of the terminal;
judging whether the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen or not;
when the value of the gravity acceleration falls into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is vertical screen display;
and when the value of the gravity acceleration does not fall into a preset numerical range displayed by a vertical screen, determining that the display state of the touch screen of the terminal is horizontal screen display.
4. A method according to claim 2 or 3, characterized in that the value of the gravitational acceleration comprises: values of an X coordinate axis, values of a Y coordinate axis, and values of a Z coordinate axis.
5. The method according to claim 1, wherein when the display state of the touch screen is a landscape display, adjusting the hit rate of the touch screen to a first preset threshold value comprises:
when the display state of the touch screen is horizontal screen display, acquiring an application running on a display interface of the terminal;
judging whether the running application belongs to the application in a preset application set or not;
when the running application belongs to applications in a preset application set, adjusting the report rate of the touch screen to be the first preset threshold;
and when the running application does not belong to the applications in the preset application set, adjusting the report rate of the touch screen to the second preset threshold.
6. The method according to claim 1, wherein when the display state of the touch screen is a landscape display, adjusting the hit rate of the touch screen to a first preset threshold value comprises:
when the display state of the touch screen is horizontal screen display, acquiring an application running on a display interface of the terminal;
determining a report rate corresponding to the running application as the first preset threshold;
and adjusting the point reporting rate on the touch screen to the first preset threshold value.
7. The method according to claim 1, wherein when the display state of the touch screen is vertical screen display, adjusting the hit rate of the touch screen to a second preset threshold comprises:
when the display state of the touch screen is vertical screen display, acquiring an application running on a display interface of the terminal;
determining the report rate corresponding to the running application as the second preset threshold;
and adjusting the point reporting rate on the touch screen to the second preset threshold value.
8. A terminal, characterized in that the terminal comprises:
the acquisition module is used for acquiring the display state of a touch screen of the terminal; wherein the display state comprises horizontal screen display and vertical screen display;
the first adjusting module is used for adjusting the report rate of the touch screen to be a first preset threshold value when the display state of the touch screen is horizontal screen display;
the second adjusting module is used for adjusting the report rate of the touch screen to a second preset threshold value when the display state of the touch screen is vertical screen display;
wherein the first preset threshold is greater than the second preset threshold.
9. A terminal, characterized in that the terminal comprises: a processor and a storage medium storing instructions executable by the processor to perform operations dependent on the processor via a communication bus, the instructions when executed by the processor performing the adjustment method of any of claims 1 to 7.
10. A computer storage medium having stored thereon executable instructions which, when executed by one or more processors, perform the adjustment method of any one of claims 1 to 7.
CN201910810484.9A 2019-08-29 2019-08-29 Adjusting method, terminal and computer storage medium Pending CN112445358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910810484.9A CN112445358A (en) 2019-08-29 2019-08-29 Adjusting method, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910810484.9A CN112445358A (en) 2019-08-29 2019-08-29 Adjusting method, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN112445358A true CN112445358A (en) 2021-03-05

Family

ID=74741971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910810484.9A Pending CN112445358A (en) 2019-08-29 2019-08-29 Adjusting method, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN112445358A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031814A (en) * 2021-03-18 2021-06-25 Oppo广东移动通信有限公司 Touch event reporting method and device, terminal and storage medium
CN113031812A (en) * 2021-03-18 2021-06-25 Oppo广东移动通信有限公司 Touch event reporting method and device, terminal and storage medium
CN115033165A (en) * 2022-06-29 2022-09-09 Oppo广东移动通信有限公司 Touch event processing method and device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088532A1 (en) * 2008-10-07 2010-04-08 Research In Motion Limited Method and handheld electronic device having a graphic user interface with efficient orientation sensor use
CN101800816A (en) * 2010-04-08 2010-08-11 华为终端有限公司 Method for horizontal and vertical switching of touch screen of mobile terminal and mobile terminal
CN103699320A (en) * 2012-09-27 2014-04-02 华为终端有限公司 Method and device for setting touch screen parameter value
CN104252273A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Contact reporting rate processing method and device of touch screen
CN105843531A (en) * 2015-07-23 2016-08-10 维沃移动通信有限公司 Switching method and device for screen modes
CN107463290A (en) * 2017-07-27 2017-12-12 广东欧珀移动通信有限公司 Response control mehtod, device, storage medium and the mobile terminal of touch operation
CN108062180A (en) * 2017-12-27 2018-05-22 广东欧珀移动通信有限公司 Sensitivity of touch screen control method, device and storage medium and mobile terminal

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100088532A1 (en) * 2008-10-07 2010-04-08 Research In Motion Limited Method and handheld electronic device having a graphic user interface with efficient orientation sensor use
CN101800816A (en) * 2010-04-08 2010-08-11 华为终端有限公司 Method for horizontal and vertical switching of touch screen of mobile terminal and mobile terminal
CN103699320A (en) * 2012-09-27 2014-04-02 华为终端有限公司 Method and device for setting touch screen parameter value
CN104252273A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Contact reporting rate processing method and device of touch screen
CN105843531A (en) * 2015-07-23 2016-08-10 维沃移动通信有限公司 Switching method and device for screen modes
CN107463290A (en) * 2017-07-27 2017-12-12 广东欧珀移动通信有限公司 Response control mehtod, device, storage medium and the mobile terminal of touch operation
CN108062180A (en) * 2017-12-27 2018-05-22 广东欧珀移动通信有限公司 Sensitivity of touch screen control method, device and storage medium and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113031814A (en) * 2021-03-18 2021-06-25 Oppo广东移动通信有限公司 Touch event reporting method and device, terminal and storage medium
CN113031812A (en) * 2021-03-18 2021-06-25 Oppo广东移动通信有限公司 Touch event reporting method and device, terminal and storage medium
WO2022193988A1 (en) * 2021-03-18 2022-09-22 Oppo广东移动通信有限公司 Touch event reporting method and apparatus, terminal, and storage medium
CN115033165A (en) * 2022-06-29 2022-09-09 Oppo广东移动通信有限公司 Touch event processing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN107463403B (en) Process control method, device, storage medium and electronic equipment
CN112445358A (en) Adjusting method, terminal and computer storage medium
CN107273130B (en) Method, device and terminal for accelerating interface drawing
CN112445315A (en) Control method and device for screen refresh frame rate and storage medium
CN111240517B (en) Touch display screen adjusting method and device, terminal and storage medium
CN108648259B (en) Image drawing method and device, storage medium and intelligent terminal
CN103956792A (en) Method and device for controlling charging temperature rise of mobile terminal
US10990216B2 (en) Method for adjustment touch screen, touch chip, and electronic terminal
CN107302633B (en) Application control method, device, storage medium and electronic equipment
CN108733193B (en) Method and device for intelligently adjusting frame rate, storage medium and intelligent terminal
CN113781949B (en) Image display method, display driving chip, display screen module and terminal
CN105760094A (en) Frame rate controlling method and device and terminal
CN111937063A (en) Electronic device and method for controlling output timing of signal
CN107465737A (en) Method of data synchronization, device, storage medium and electronic equipment
CN109460364A (en) Application program detection method, device, storage medium and mobile terminal
CN110875978A (en) Terminal display control method, terminal and computer readable storage medium
KR20210092571A (en) Electronic device and screen refresh method thereof
CN105373748B (en) A kind of equipment shatter-resistant method and apparatus
CN108762465B (en) Frame rate self-adaptive adjusting method and device, storage medium and intelligent terminal
CN104065834A (en) Method and device for reducing terminal power consumption and terminal
CN104317611A (en) Application rousing setting device and method and mobile terminal
CN112198954B (en) Frame rate setting method and device, storage medium and mobile terminal
CN114402280A (en) Screen parameter adjusting method and device and terminal equipment
CN111010640A (en) Earphone control method, earphone and storage medium
CN104156052A (en) Method for managing real-time desktop clock

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210305