CN114341783A - Touch screen processing method and device, mobile terminal and storage medium - Google Patents

Touch screen processing method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN114341783A
CN114341783A CN201980099278.XA CN201980099278A CN114341783A CN 114341783 A CN114341783 A CN 114341783A CN 201980099278 A CN201980099278 A CN 201980099278A CN 114341783 A CN114341783 A CN 114341783A
Authority
CN
China
Prior art keywords
target
angular velocity
touch screen
mobile terminal
velocity data
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
CN201980099278.XA
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai Technology Co Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Shenzhen Huantai 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 Guangdong Oppo Mobile Telecommunications Corp Ltd, Shenzhen Huantai Technology Co Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN114341783A publication Critical patent/CN114341783A/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

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)
  • Telephone Function (AREA)

Abstract

The application discloses a touch screen processing method and device, a mobile terminal and a storage medium, and relates to the technical field of mobile terminals. The method is applied to a mobile terminal, the mobile terminal comprises a touch screen and a gyroscope, and the method comprises the following steps: and receiving target angular velocity data acquired by the gyroscope, acquiring a target working mode corresponding to the target angular velocity data, and adjusting the working mode of the touch screen based on the target working mode. The touch screen processing method and device, the mobile terminal and the storage medium provided by the embodiment of the application acquire the target angular velocity data through the gyroscope of the mobile terminal, acquire the target working mode corresponding to the target angular velocity data, and adjust the working mode of the mobile terminal based on the target working mode, so that the dynamic adjustment of the working mode is realized, and the use experience and the power consumption of the mobile terminal are balanced.

Description

Touch screen processing method and device, mobile terminal and storage medium Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a touch screen processing method and apparatus, a mobile terminal, and a storage medium.
Background
With the development of science and technology, mobile terminals are widely used and have more functions, and the mobile terminals become one of the necessary things in daily life of people. Currently, a mobile terminal is configured with multiple operating modes, and thus can operate in multiple operating modes.
Disclosure of Invention
In view of the above problems, the present application provides a touch screen processing method, apparatus, mobile terminal and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a touch screen processing method, which is applied to a mobile terminal, where the mobile terminal includes a touch screen and a gyroscope, and the method includes: receiving target angular velocity data acquired by the gyroscope; acquiring a target working mode corresponding to the target angular velocity data; and adjusting the working mode of the touch screen based on the target working mode.
In a second aspect, an embodiment of the present application provides a touch screen processing apparatus, which is applied to a mobile terminal, where the mobile terminal includes a touch screen and a gyroscope, and the apparatus includes: the angular velocity data receiving module is used for receiving target angular velocity data acquired by the gyroscope; the target working mode acquisition module is used for acquiring a target working mode corresponding to the target angular velocity data; and the working mode adjusting module is used for adjusting the working mode of the touch screen based on the target working mode.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a touch screen, a gyroscope, a memory, and a processor, where the touch screen, the gyroscope, and the memory are coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above method.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The touch screen processing method, the touch screen processing device, the mobile terminal and the storage medium receive target angular velocity data acquired by a gyroscope, acquire a target working mode corresponding to the target angular velocity data, and adjust the working mode of the touch screen based on the target working mode, so that the target angular velocity data is acquired by the gyroscope of the mobile terminal, the target working mode corresponding to the target angular velocity data is acquired, and the working mode of the mobile terminal is adjusted based on the target working mode, so that the dynamic adjustment of the working mode is realized, and the use experience and the power consumption of the mobile terminal are balanced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a touch screen processing method according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating a touch screen processing method according to another embodiment of the present application;
FIG. 3 is a flowchart illustrating one embodiment of step S210 of the touch screen processing method illustrated in FIG. 2 of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a further embodiment of step S210 of the touch screen processing method illustrated in FIG. 2 of the present application;
FIG. 5 is a flow chart illustrating step S211B of the touch screen processing method illustrated in FIG. 4 of the present application;
FIG. 6 is a flowchart illustrating step S230 of the touch screen processing method illustrated in FIG. 2 of the present application;
FIG. 7 is a flowchart illustrating one embodiment of step S231 of the touch screen processing method illustrated in FIG. 6 of the present application;
FIG. 8 is a flowchart illustrating a further embodiment of step S231 of the touch screen processing method illustrated in FIG. 6 of the present application;
FIG. 9 is a schematic flow chart diagram illustrating yet another embodiment of step S231 of the touch screen processing method illustrated in FIG. 6 of the present application;
FIG. 10 is a flow chart illustrating a touch screen processing method according to yet another embodiment of the present application;
FIG. 11 is a flowchart illustrating step S330 of the touch screen processing method illustrated in FIG. 10 of the present application;
FIG. 12 is a block diagram of a touch screen processing apparatus provided in an embodiment of the present application;
fig. 13 is a block diagram illustrating a mobile terminal for performing a touch screen processing method according to an embodiment of the present application;
fig. 14 illustrates a storage unit for storing or carrying program codes for implementing a touch screen processing method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, 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.
At present, a mobile terminal is generally configured with a plurality of working modes, and operates in a certain working mode based on a selection of a user or a default selection, so that the mobile terminal operates in the selected working mode for a long time, which causes a problem of fixed working mode, and thus causes a problem of poor user experience or increased power consumption of the mobile terminal. In view of the above problems, the inventor finds and provides a touch screen processing method, a touch screen processing device, a mobile terminal, and a storage medium according to embodiments of the present application through long-term research, acquires target angular velocity data through a gyroscope of the mobile terminal, acquires a target working mode corresponding to the target angular velocity data, and adjusts the working mode of the mobile terminal based on the target working mode, thereby implementing dynamic adjustment of the working mode to balance usage experience and power consumption of the mobile terminal. The specific touch screen processing method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a touch screen processing method according to an embodiment of the present application. The touch screen processing method is used for acquiring target angular velocity data through a gyroscope of the mobile terminal, acquiring a target working mode corresponding to the target angular velocity data, and adjusting the working mode of the mobile terminal based on the target working mode, so that the dynamic adjustment of the working mode is realized, and the use experience and the power consumption of the mobile terminal are balanced. In a specific embodiment, the touch screen processing method is applied to the touch screen processing apparatus 200 as shown in fig. 12 and the mobile terminal 100 (fig. 13) equipped with the touch screen processing apparatus 200. The following will describe a specific process of this embodiment by taking a mobile terminal as an example, and it is understood that the mobile terminal applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 1, in this embodiment, the mobile terminal includes a touch screen and a gyroscope, and the touch screen processing method may specifically include the following steps:
step S110: and receiving target angular velocity data acquired by the gyroscope.
In some embodiments, the mobile terminal may be equipped with a gyroscope, which is mainly used to detect changes in the angular velocity of the mobile terminal. The principle of the gyroscope is as follows: the method comprises the steps of obtaining the angular speed of the mobile terminal, collecting a voltage signal when the angular speed of the mobile terminal is obtained to be changed, reporting the voltage signal to a system of the mobile terminal, and judging the angular speed after the system of the mobile terminal obtains the voltage signal. Specifically, according to the fixed axis property of the gyroscope and the known preset attitude of the mobile terminal relative to the rotating shaft direction of the gyroscope, when the attitude of the mobile terminal is different from the preset attitude, and a motion in a certain direction of pitching, yawing or rolling is generated, because the rotating shaft of the gyroscope keeps the direction unchanged, the change of the attitude of the mobile terminal can be determined by detecting the change of the angular relationship of the mobile terminal rod relative to the rotating shaft and the angular relationship of the preset attitude relative to the rotating shaft, namely the change of the angular speed of the mobile terminal can be determined.
In some embodiments, the processor of the mobile terminal may receive acceleration data collected by a gyroscope and use the received acceleration data collected by the gyroscope as target acceleration data. In this embodiment, the gyroscope may acquire angular velocity data of the mobile terminal in real time and report the angular velocity data to the processor of the mobile terminal, the gyroscope may acquire angular velocity data of the mobile terminal at intervals of a specified duration and report the angular velocity data to the processor of the mobile terminal, and the gyroscope may acquire angular velocity data of the mobile terminal at a preset duration and report the angular velocity data to the processor of the mobile terminal, which is not limited herein.
Step S120: and acquiring a target working mode corresponding to the target angular velocity data.
In some embodiments, the number of the angular velocity data of the mobile terminal is multiple, and the mobile terminal is configured with multiple operation modes, so that the mobile terminal may establish a mapping relationship between the multiple angular velocity data of the mobile terminal and the multiple operation modes in advance, and generate a mapping relationship table to store in the mobile terminal, as shown in table 1. The mapping relationship between the angular velocity data of the mobile terminal and the working mode may be manually associated by a user, may be automatically associated by the mobile terminal or automatically associated by a server, and the like, which are not limited herein, and the mapping relationship between the angular velocity data of the mobile terminal and the working mode may include that one angular velocity data corresponds to one working card mode, or a plurality of angular velocity data correspond to one working mode, and the like, which are not limited herein.
Further, after the target angular velocity data is determined, the target angular velocity data may be compared with a plurality of angular velocity data stored in advance in a mapping relation table one by one to obtain angular velocity data matched with the target angular velocity data, and then a working mode corresponding to the angular velocity data is searched according to the mapping relation table, so that a target working mode corresponding to the target angular velocity data may be obtained. For example, when the mapping relationship table includes a mapping relationship between angular velocity data 1 and a working mode 1, that is, angular velocity data 1 is stored in the mapping relationship table under the angular velocity data, and working mode 1 is stored in the working mode, and angular velocity data 1 is associated with working mode 1, then, when the target angular velocity data of the mobile terminal is angular velocity data 1, the target angular velocity data may be matched with the angular velocity data stored in the mapping relationship table, it can be understood that the target angular velocity data may be matched with angular velocity data 1 in the mapping relationship table, and then the target working mode corresponding to the target angular velocity data is found to be working mode 1.
TABLE 1
Angular velocity data Mode of operation
Angular velocity data 1 Mode of operation 1
Angular velocity data 2 Mode of operation 2
Angular velocity data 3 Mode of operation 3
As a mode, when the target angular velocity data and the plurality of angular velocity data pre-stored in the mapping table are not compared one by one and are not matched, that is, when no angular velocity data matched with the target angular velocity data is stored in the angular velocity data of the mapping table, the target working mode corresponding to the target angular velocity data may be obtained by searching for angular velocity data close to the value of the target angular velocity data and using the working mode corresponding to the angular velocity data close to the target angular velocity data as the target working mode corresponding to the target angular velocity data.
Of course, in this embodiment, the target operating mode corresponding to the target angular velocity data may also be obtained in other more manners, which is not described herein again.
Step S130: and adjusting the working mode of the touch screen based on the target working mode.
In some embodiments, after the target working mode is obtained, the working mode of the touch screen may be adjusted based on the target working mode, so that the dynamic adjustment of the working mode is realized, and the use experience and the power consumption of the mobile terminal are balanced. For example, after the target working mode is obtained, whether the current working mode of the touch screen is the same as the target working mode or not may be determined, when the current working mode of the touch screen is different from the target working mode, the current working mode of the touch screen may be adjusted to be the same as the target working mode, and when the current working mode of the touch screen is the same as the target working mode, the current working mode of the touch screen may be maintained.
According to the touch screen processing method provided by one embodiment of the application, target angular velocity data collected by a gyroscope is received, a target working mode corresponding to the target angular velocity data is obtained, the working mode of the touch screen is adjusted based on the target working mode, so that the target angular velocity data is collected by the gyroscope of the mobile terminal, the target working mode corresponding to the target angular velocity data is obtained, the working mode of the mobile terminal is adjusted based on the target working mode, dynamic adjustment of the working mode is achieved, and use experience and power consumption of the mobile terminal are balanced.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a touch screen processing method according to another embodiment of the present application. The method is applied to the mobile terminal, which includes a touch screen and a gyroscope, and as will be described in detail with respect to the flow shown in fig. 2, the touch screen processing method may specifically include the following steps:
step S210: and when a target application program runs on the foreground of the mobile terminal, controlling the gyroscope to acquire the angular velocity data.
In some embodiments, the mobile terminal may run the application, for example, the mobile terminal may run the application in the foreground, may run the application in the background, and may also switch to run the application in the foreground and the background, which is not limited herein. Specifically, the application program running in the foreground refers to an application program which can usually interact with a user and can run in the foreground, and the application program can be suspended when the application program is not visible (such as games); background running applications mean very limited interaction with the user, except during configuration, where other times of the lifetime are hidden (e.g., SMS auto-answer program and alarm clock program); the application program which is switched to run in the foreground and the background of the mobile terminal refers to the application program which can be switched between the foreground and the background at will. It is understood that when an application is not killed (kill), the application is characterized as running on the mobile terminal.
In this embodiment, an application running in the foreground of the mobile terminal may be acquired. In some embodiments, it may be detected whether the mobile terminal is in a bright screen state or a dark screen state, when it is detected that the mobile terminal is in the bright screen state, it is detected whether the mobile terminal runs an application program in a foreground, when it is detected that the mobile terminal runs the application program in the foreground, the application program running in the foreground of the mobile terminal is acquired, and it is determined whether the application program running in the foreground of the mobile terminal is the target application program.
Specifically, state information of a display screen of the mobile terminal may be detected, where the state information of the display screen may include a screen-on state and a screen-off state, that is, in this embodiment, it may be detected whether the display screen is currently in the screen-on state or the screen-off state. As a manner, the screen BRIGHTNESS of the mobile terminal may be detected and obtained (settings, system, screen _ BRIGHTNESS), and the obtained screen BRIGHTNESS may be compared with the preset BRIGHTNESS to determine whether the screen BRIGHTNESS is greater than the preset BRIGHTNESS, when the screen BRIGHTNESS is greater than the preset BRIGHTNESS, the state information of the display screen may be considered as a bright screen state, and when the screen BRIGHTNESS is not greater than the preset BRIGHTNESS, the state information of the display screen may be considered as a dark screen state, as a manner, the mobile terminal may store the preset BRIGHTNESS in advance as a BRIGHTNESS value to be compared, the preset BRIGHTNESS may be configured when the mobile terminal leaves the factory, may be set according to the preference and requirement of the user when in use, or may be adjusted and set according to the attribute or the environment by itself, for example, the preset BRIGHTNESS may be set according to the current environment BRIGHTNESS of the environment where the mobile terminal is located, the current environment BRIGHTNESS is higher, the larger the preset brightness value may be set, the smaller the current ambient light brightness, the smaller the preset brightness value may be set, and the like. Optionally, in this embodiment, the preset brightness value is 0, when the screen brightness is greater than 0, the state information of the display screen may be considered as a bright screen state, and when the screen state is not greater than 0, the state information of the display screen may be considered as a dark screen state. Of course, in this embodiment, other methods for detecting the state information of the display screen may also be included, which are not described herein again.
In some embodiments, when it is determined that the mobile terminal is in the bright screen state based on the above manner, it may be determined whether the mobile terminal runs the application program in the foreground by detecting a current display interface of the display screen, where when it is detected that the current display interface of the display screen is a desktop or a lock screen interface, it may be determined that the mobile terminal does not run the application program in the foreground, and when it is detected that the current display interface of the display screen is an application page, it may be determined that the mobile terminal runs the application program in the foreground. Of course, in this embodiment, it may also be possible to detect whether the mobile terminal runs the application program in the foreground in more ways, which is not described herein again.
In some embodiments, when it is determined that an application is running in the foreground of the mobile terminal, it may be determined whether the application is a target application, for example, a packet name of the application running in the foreground of the mobile terminal and a packet name of the target application may be acquired, it may be determined whether the packet name of the application running in the foreground of the mobile terminal is consistent with the packet name of the target application, when the packet name of the application running in the foreground of the mobile terminal is consistent with the packet name of the target application, it may be determined that the target application is running in the foreground of the mobile terminal, and when the packet name of the application running in the foreground of the mobile terminal is not consistent with the packet name of the target application, it may be determined that the target application is not running in the foreground of the mobile terminal.
In some embodiments, when it is determined that the target application program is run in the foreground of the mobile terminal, the gyroscope may be controlled to acquire angular velocity data. In some embodiments, when it is determined that the target application program is run in the foreground of the mobile terminal, the gyroscope may be controlled to collect angular velocity data as the target angular velocity data according to a specified duration, where the specified duration may be set automatically by the mobile terminal or manually by a user, which is not limited herein. In addition, the time length of the specified time length may be 100ms, 200ms, and the like, and optionally, the time length of the specified time length is 200 ms.
Referring to fig. 3, fig. 3 is a flowchart illustrating an embodiment of step S210 of the touch screen processing method illustrated in fig. 2 of the present application. As will be explained in detail with respect to the flow shown in fig. 3, the method may specifically include the following steps:
step S211A: and when the foreground of the mobile terminal runs the application program, acquiring the type of the application program.
In some embodiments, when it is determined that an application is running in the foreground of the mobile terminal, the type of the application may be acquired. Specifically, the mobile terminal may establish a mapping relationship between the application program and the type in advance, and generate a mapping relationship table to be stored in the mobile terminal, as shown in table 2. The mapping relationship between the application programs and the types may be manually associated by a user, may be automatically associated by a mobile terminal or automatically associated by a server, and the like, which are not limited herein, and the mapping relationship between the application programs and the types may include that one application program corresponds to one type, or multiple application programs correspond to one type, and the like.
Further, after determining the application running in the foreground of the mobile terminal, the application running in the foreground of the mobile terminal may be compared with a plurality of applications pre-stored in the mapping relation table one by one to obtain an application matched with the application running in the foreground of the mobile terminal, and then the type corresponding to the application may be searched according to the mapping relation table, so as to obtain the type of the application running in the foreground of the mobile terminal.
TABLE 2
Application program Type (B)
Application program 1 Type 1
Application 2 Type 2
Application 3 Type 3
As one way, when the application running in the foreground of the mobile terminal and the plurality of applications pre-stored in the mapping relation table are all unsuccessfully compared and matched one to one, that is, when no application matching the application running in the foreground of the mobile terminal is stored under the application of the mapping relation table, the type of the application running in the foreground of the mobile terminal can be acquired by searching for an application close to the type of the application running in the foreground of the mobile terminal and taking the type of the application close to the application running in the foreground of the mobile terminal as the type of the application running in the foreground of the mobile terminal. In this embodiment, the package name of the application program running in the foreground of the mobile terminal may be obtained, and since the package name includes various information related to the application program, the package name may be analyzed to obtain a manufacturer of the application program running in the foreground of the mobile terminal included in the package name, then search for other application programs produced by the manufacturer, search for types of the other application programs in the mapping relationship table, and use the types of the other application programs as the types of the application programs running in the foreground of the mobile terminal.
Step S212A: and judging whether the type is a specified type.
In some embodiments, the mobile terminal is preset and stored with a specified type, and the specified type is used as a judgment basis for the type of the application program running in the foreground of the mobile terminal. Therefore, in the present embodiment, the type of the application running in the foreground of the mobile terminal may be compared with the specified type to determine whether the type of the application running in the foreground of the mobile terminal is the specified type.
In some embodiments, the designated type includes a game type, and thus, it may be determined whether the type of the application running in the foreground of the mobile terminal is the game type, it may be determined that the type of the application running in the foreground of the mobile terminal is the designated type when the type of the application running in the foreground of the mobile terminal is the game type, and it may be determined that the type of the application running in the foreground of the mobile terminal is not the designated type when the type of the application running in the foreground of the mobile terminal is not the game type.
Step S213A: and when the type is a specified type, controlling the gyroscope to acquire the target angular velocity data.
In some embodiments, when it is determined that the type of the application program running in the foreground of the mobile terminal is a designated type, the gyroscope may be controlled to acquire the target angular velocity data. For example, when the type of the application program running in the foreground of the mobile terminal is determined to be the game type, the gyroscope can be controlled to acquire target angular velocity data, so that dynamic adjustment of a game scene is improved, and user experience is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a step S210 of the touch screen processing method illustrated in fig. 2 according to another embodiment of the present application. As will be explained in detail with respect to the flow shown in fig. 4, the method may specifically include the following steps:
step S211B: and when the foreground of the mobile terminal runs the target application program, detecting the display state of the touch screen.
In some embodiments, when the target application is running in the foreground of the mobile terminal, the display state of the touch screen may be detected, wherein the display state of the touch screen may include a landscape display state and a portrait display state. In this embodiment, the display state of the touch screen may be determined by detecting a holding manner of the mobile terminal, and the display state of the touch screen may be determined by detecting accelerations of the mobile terminal in different directions, which is not limited herein.
Referring to fig. 5, fig. 5 is a flowchart illustrating step S211B of the touch screen processing method illustrated in fig. 4 according to the present application. As will be explained in detail with respect to the flow shown in fig. 5, the method may specifically include the following steps:
step S211B 1: when a target application program runs in the foreground of the mobile terminal, detecting touch operation acting on a first side wall of the mobile terminal, wherein the first side wall is vertical to the length direction of the mobile terminal.
In this embodiment, a first sidewall may be set, which is perpendicular to a length direction of the mobile terminal, that is, the first sidewall may include a top wall and a bottom wall of the mobile terminal. In some embodiments, when it is determined that the target application is run in the foreground of the mobile terminal, a touch operation acting on the first sidewall of the mobile terminal may be detected. Specifically, the first side wall of the mobile terminal may be provided with a touch sensor, and the mobile terminal may detect whether there is a touch operation acting on the first side wall through the touch sensor, and may characterize that the touch operation acting on the first side wall is detected when both the touch sensors arranged on the two first side walls detect the touch operation, and may characterize that the touch operation acting on the first side wall is not detected when at least one of the touch sensors arranged on the two first side walls does not detect the touch operation.
Step S211B 2: when a touch operation acting on the first side wall is detected, determining that the display state of the touch screen is a horizontal screen display state.
In some embodiments, when it is determined that the touch operation acting on the first side wall is detected, it may be determined that the touch operation acting on the first side wall corresponds to a landscape screen holding manner, and thus, it may be determined that the display state of the touch screen is a landscape screen display state.
Step S212B: and when the display state of the touch screen is detected to be a horizontal screen display state, controlling the gyroscope to acquire the angular speed data.
In some embodiments, when it is detected that the display state of the touch screen is the landscape display state, it may be considered that the user is currently and completely immersed in the content displayed by the touch screen, and therefore, the gyroscope may be controlled to acquire angular velocity data, and the working mode of the touch screen is adjusted based on the acquired angular velocity data, so that the user experience of the adjusted working mode of the touch screen is higher, for example, the refresh rate and the report rate of the touch screen may be improved, so as to improve the user experience. In some embodiments, when it is detected that the display state of the touch screen is the portrait display state, it may be considered that the user is not completely immersed in the content displayed by the touch screen, and therefore, the operation mode of the touch screen may be maintained, for example, the refresh rate and the hit rate of the touch screen are maintained, so as to reduce the power consumption of the mobile terminal.
Step S220: and receiving target angular velocity data acquired by the gyroscope.
For detailed description of step S220, please refer to step S110, which is not described herein again.
Step S230: and acquiring a target refresh rate corresponding to the target angular velocity data.
In this embodiment, the target operating mode includes a target refresh rate. Therefore, after the target angular velocity data is obtained, the target refresh rate corresponding to the target angular velocity data may be obtained based on the target angular velocity data, where the obtaining manner of the target refresh rate may refer to the obtaining manner of the target working mode, and is not described herein again.
Referring to fig. 6, fig. 6 is a flowchart illustrating step S230 of the touch screen processing method illustrated in fig. 2 of the present application. As will be explained in detail with respect to the flow shown in fig. 6, the method may specifically include the following steps:
step S231: and judging whether the target angular velocity data meets a specified condition.
In some embodiments, the mobile terminal may be preset and stored with a specified condition for use as a criterion of the target angular velocity data. Therefore, in the present embodiment, after the target angular velocity data is acquired, the target angular velocity data may be compared with the specified condition to determine whether the target angular velocity data satisfies the specified condition.
In this embodiment, the specified condition may be used to represent that the shaking parameter of the mobile terminal corresponding to the target angular velocity data satisfies a preset shaking parameter. That is to say, if the target angular velocity data of the mobile terminal meets the specified condition, it may be considered that the mobile terminal is currently in a relatively large shaking amplitude and/or shaking frequency, and in the game scene, it represents that the user is currently operating the game character to enter a relatively violent scene, so the touch screen of the mobile terminal may be set to a relatively high refresh rate to meet the display requirement of the current scene. If the target angular velocity data of the mobile terminal does not meet the specified conditions, the mobile terminal can be considered to be in a smaller shaking amplitude or shaking frequency at present, and in a game scene, the fact that a user does not operate a game character at present and enters a more intense scene is represented, so that the touch screen of the mobile terminal can be set to be a lower refresh rate, and the power consumption of the mobile terminal is reduced.
Referring to fig. 7, fig. 7 is a flowchart illustrating an embodiment of step S231 of the touch screen processing method illustrated in fig. 6 of the present application. As will be explained in detail with respect to the flow shown in fig. 7, the method may specifically include the following steps:
step S2311A: and acquiring an angle change value of the mobile terminal in a first preset time length based on the target angular speed data.
In some embodiments, after the mobile terminal acquires the target angular velocity data, the target angular velocity may be analyzed to acquire an angle change value of the mobile terminal within a first preset time period based on the target angular velocity data. The first preset duration may be set automatically by the mobile terminal, or may be set manually by the user, which is not limited herein. In addition, the time length of the first preset time period may be 1s, 2s, and the like, and optionally, the time length of the first preset time period is 1 s. The angle variation value may be a difference between a maximum angle value and a minimum angle value of the mobile terminal within a first preset time period, for example, if the maximum angle value of the mobile terminal is 30 degrees and the minimum angle value of the mobile terminal is 20 degrees within the first preset time period, the angle variation value is 10 degrees.
In some embodiments, the mobile terminal is preset and stores an angle threshold, and the angle threshold is used as a judgment basis for an angle change value of the mobile terminal within a first preset time period. Therefore, in this embodiment, after the angle change value of the mobile terminal within the first preset duration is obtained, the angle change value of the mobile terminal within the first preset duration may be compared with the angle threshold, and when the comparison result indicates that the angle change value of the mobile terminal within the first preset duration is greater than the angle threshold, it may be considered that the shaking amplitude of the mobile terminal is large, the user has a large demand on the refresh rate or the report rate of the touch screen, it may be determined that the target angular velocity data of the mobile terminal meets the specified condition, and the touch screen may be correspondingly controlled to adopt a large refresh rate or report rate; when the comparison result represents that the angle change value of the mobile terminal in the first preset time period is not greater than the angle threshold value, the shaking amplitude of the mobile terminal is considered to be small, the requirement of a user on the refresh rate or the point reporting rate of the touch screen is small, it can be determined that the target angular velocity data of the mobile terminal does not meet the specified condition, and the touch screen can be correspondingly controlled to adopt the small refresh rate or the point reporting rate.
In some embodiments, the first preset time period may be 1s, and the angle threshold may be 7 degrees, that is, when the angle change value of the mobile terminal in 1s is greater than 7 degrees, it may be determined that the angle change value is greater than the angle threshold, and when the angle change value of the mobile terminal in 1s is not greater than 7 degrees, it may be determined that the angle change value is not greater than the angle threshold.
Step S2312A: when the angle change value is greater than an angle threshold value, it is determined that the target angular velocity data satisfies the specified condition.
Step S2313A: determining that the target angular velocity data does not satisfy the specified condition when the angle change value is not greater than an angle threshold.
Referring to fig. 8, fig. 8 is a flowchart illustrating a step S231 of the touch screen processing method illustrated in fig. 6 according to another embodiment of the present application. As will be explained in detail with respect to the flow shown in fig. 8, the method may specifically include the following steps:
step S2311B: and acquiring the shaking times of the mobile terminal in a second preset time length based on the target angular speed data.
In some embodiments, after the mobile terminal obtains the target angular velocity data, the mobile terminal may analyze the target angular velocity to obtain the number of times of shaking of the mobile terminal within the second preset time period based on the target angular velocity data. The second preset duration may be set automatically by the mobile terminal, or may be set manually by the user, which is not limited herein. In addition, the time length of the second preset time period may be 1s, 2s, 3s, and the like, and optionally, the time length of the first preset time period is 3 s.
In some embodiments, the mobile terminal is preset and stores a time threshold, and the time threshold is used as a criterion for judging the shaking time of the mobile terminal within a second preset time period. Therefore, in this embodiment, after the number of times of shaking of the mobile terminal within the second preset duration is obtained, the number of times of shaking of the mobile terminal within the second preset duration may be compared with the number threshold, and when the comparison result indicates that the number of times of shaking of the mobile terminal within the second preset duration is greater than the number threshold, it may be considered that the frequency of shaking of the mobile terminal is large, and the user has a large demand for the refresh rate or the report rate of the touch screen, and it may be determined that the target angular velocity data of the mobile terminal satisfies the specified condition, and the touch screen may be correspondingly controlled to adopt a large refresh rate or report rate; when the comparison result represents that the shaking times of the mobile terminal in the second preset time period are not greater than the time threshold, the shaking frequency of the mobile terminal can be considered to be small, the requirement of a user on the refresh rate or the point reporting rate of the touch screen is small, the target angular velocity data of the mobile terminal can be determined not to meet the specified condition, and the touch screen can be correspondingly controlled to adopt the small refresh rate or the point reporting rate.
In some embodiments, the second preset time period may be 3s, and the number threshold may be 4 times, that is, when the shaking time of the mobile terminal in 3s is greater than 4 times, it may be determined that the shaking time is greater than the number threshold, and when the shaking time of the mobile terminal in 3s is not greater than the number threshold, it may be determined that the shaking time is not greater than the number threshold.
Step S2312B: and when the shaking times are larger than a time threshold value, determining that the target angular velocity data meets the specified condition.
Step S2313B: when the number of times of shaking is not greater than a number threshold, determining that the target angular velocity data does not satisfy the specified condition.
Referring to fig. 9, fig. 9 is a flowchart illustrating a step S231 of the touch screen processing method illustrated in fig. 6 according to another embodiment of the present application. As will be explained in detail with respect to the flow shown in fig. 9, the method may specifically include the following steps:
step S2311C: and acquiring an angle change value of the mobile terminal in a first preset time length based on the target angular speed data, and acquiring the shaking times of the mobile terminal in a second preset time length.
In some embodiments, after the mobile terminal obtains the target angular velocity data, the mobile terminal may analyze the target angular velocity to obtain an angle change value of the mobile terminal within a first preset time period and obtain a shaking number of the mobile terminal within a second preset time period based on the target angular velocity data. Therefore, in this embodiment, after the angle change value of the mobile terminal in the first preset duration and the shaking frequency in the second preset duration are obtained, the angle change value of the mobile terminal in the first preset duration may be compared with the angle threshold, and the shaking frequency of the mobile terminal in the second preset duration may be compared with the frequency threshold, when the comparison result indicates that the angle change value of the mobile terminal in the first preset duration is greater than the angle threshold and the shaking frequency of the mobile terminal in the second preset duration is greater than the frequency threshold, it may be considered that the shaking amplitude and the shaking frequency of the mobile terminal are both large, the user has a large demand for the refresh rate or the report rate of the touch screen, it may be determined that the target angular velocity data of the mobile terminal satisfies the specified condition, and the touch screen may be correspondingly controlled to adopt a large refresh rate or report rate; when the comparison result indicates that the angle change value of the mobile terminal in the first preset time length is not greater than the angle threshold or the shaking times of the mobile terminal in the second preset time length are not greater than the time threshold, the shaking amplitude or shaking frequency of the mobile terminal can be considered to be small, the requirement of a user on the refresh rate or the report rate of the touch screen is small, it can be determined that the target angular velocity data of the mobile terminal does not meet the specified condition, and the touch screen can be correspondingly controlled to adopt the small refresh rate or the report rate.
In some embodiments, the target angular velocity data may be determined to satisfy the specified condition when the angle change value of the mobile terminal over a time of 1s is greater than 7 degrees and the number of times of shaking over a time of 3s is greater than 4, and the target angular velocity data may be determined not to satisfy the specified condition when the angle change value of the mobile terminal over a time of 1s is not greater than 7 degrees or the number of times of shaking over a time of 3s is not greater than 4.
Step S2312C: and when the angle change value is greater than a time threshold value and the shaking time is greater than a time threshold value, determining that the target angular velocity data meets the specified condition.
Step S2313C: and when the angle change value is not greater than a number threshold or the shaking number is not greater than a number threshold, determining that the target angular velocity data does not satisfy the specified condition.
Step S232: and when the target angular velocity data meets the specified condition, acquiring a first target refresh rate corresponding to the target angular velocity data.
In some embodiments, the target refresh rate may include a first target refresh rate and a second target refresh rate, and the first target refresh rate is greater than the second target refresh rate, e.g., the first target refresh rate may be 90HZ and the second target refresh rate may be 60 HZ. Therefore, in the present embodiment, when the target angular velocity data satisfies the specified condition, the refresh rate of the touch screen may be set to a higher refresh rate, that is, a first target refresh rate having a higher refresh rate corresponding to the target angular velocity data may be acquired.
Step S233: and when the target angular velocity data does not meet the specified condition, acquiring a second target refresh rate corresponding to the target angular velocity data, wherein the first target refresh rate is greater than the second target refresh rate.
In this embodiment, when the target angular velocity data does not satisfy the specified condition, the refresh rate of the touch screen may be set to a lower refresh rate, that is, a second target refresh rate having a lower refresh rate corresponding to the target angular velocity data may be acquired.
Step S240: adjusting the refresh rate of the touch screen based on the target refresh rate.
In some embodiments, after the target refresh rate is obtained, the refresh rate of the touch screen may be adjusted based on the target refresh rate, so that dynamic adjustment of the refresh rate is realized, and the use experience and power consumption of the mobile terminal are balanced. For example, after the target refresh rate is obtained, it may be determined whether the current refresh rate of the touch screen is the same as the target refresh rate, when the current refresh rate of the touch screen is different from the target refresh rate, the current refresh rate of the touch screen may be adjusted to be the same as the target refresh rate, and when the current refresh rate of the touch screen is the same as the target refresh rate, the current refresh rate of the touch screen may be maintained.
Step S250: and when the current refresh rate of the touch screen is the first target refresh rate, detecting the state information of the touch screen.
In some embodiments, the state information of the touch screen may be detected when the current refresh rate of the touch screen is the first target refresh rate, that is, when the current refresh rate of the touch screen is set to a larger refresh rate. The state information of the touch screen comprises a screen lightening state and a screen resting state.
Step S260: and when the state information of the touch screen is switched from a bright screen state to a screen-off state, adjusting the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate.
When the state information of the touch screen is detected to be switched from the bright screen state to the dark screen state, the current touch screen is represented without display content, and therefore the current refresh rate of the touch screen can be adjusted from the first target refresh rate to the second target refresh rate, and the power consumption of the mobile terminal is reduced by reducing the refresh rate of the touch screen.
In another embodiment of the touch screen processing method provided by the application, when a foreground of the mobile terminal runs a target application program, the gyroscope is controlled to acquire angular velocity data, the target angular velocity data acquired by the gyroscope is received, a target refresh rate corresponding to the target angular velocity data is acquired, and the refresh rate of the touch screen is adjusted based on the target refresh rate. And when the current refresh rate of the touch screen is the first target refresh rate, detecting the state information of the touch screen, and when the state information of the touch screen is switched from the bright screen state to the dark screen state, adjusting the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate. Compared with the touch screen processing method shown in fig. 1, in the embodiment, the gyroscope is also controlled to acquire angular velocity data when the target application program runs in the foreground of the mobile terminal, so that the applicability of the scene is improved. In addition, in this embodiment, when the state information of the touch screen is switched from the bright screen state to the dark screen state, the current refresh rate of the touch screen is reduced, so as to reduce the power consumption of the mobile terminal.
Referring to fig. 10, fig. 10 is a schematic flowchart illustrating a touch screen processing method according to still another embodiment of the present application. The method is applied to the mobile terminal, which includes a touch screen and a gyroscope, and as will be described in detail with respect to the flow shown in fig. 10, the method may specifically include the following steps:
step S310: and when a target application program runs on the foreground of the mobile terminal, controlling the gyroscope to acquire the angular velocity data.
Step S320: and receiving target angular velocity data acquired by the gyroscope.
For the detailed description of steps S310 to S320, please refer to steps S210 to S220, which are not described herein again.
Step S330: and acquiring a target report rate corresponding to the target angular velocity data.
In this embodiment, the target operation mode includes a target reporting rate. Therefore, after the target angular velocity data is obtained, the target report rate corresponding to the target angular velocity data may be obtained based on the target angular velocity data, where the obtaining manner of the target report rate may refer to the obtaining manner of the target working mode, and is not described herein again.
Referring to fig. 11, fig. 11 is a flowchart illustrating a step S330 of the touch screen processing method illustrated in fig. 10 according to the present application. As will be described in detail with respect to the flow shown in fig. 11, the method may specifically include the following steps:
step S331: and judging whether the target angular velocity data meets a specified condition.
For a detailed description of step S331, please refer to step S231, which is not described herein again.
Step S332: and when the target angular velocity data meets the specified condition, acquiring a first target report rate corresponding to the target angular velocity data.
In some embodiments, the target reporting rate may include a first target reporting rate and a second target reporting rate, and the first target reporting rate is greater than the second target reporting rate, e.g., the first target reporting rate may be 180HZ and the second target reporting rate may be 100 HZ. Therefore, in this embodiment, when the target angular velocity data satisfies the specified condition, the touch-screen reporting rate may be set to a higher refresh rate, that is, a first target reporting rate with a higher reporting rate corresponding to the target angular velocity data may be obtained.
Step S333: and when the target angular velocity data does not meet the specified condition, acquiring a second target reporting rate corresponding to the target angular velocity data, wherein the first target reporting rate is greater than the second target reporting rate.
In this embodiment, when the target angular velocity data does not satisfy the specified condition, the point reporting rate of the touch screen may be set to be a lower point reporting rate, that is, a second target point reporting rate with a lower point reporting rate corresponding to the target angular velocity data may be obtained.
Step S340: and adjusting the point reporting rate of the touch screen based on the target point reporting rate.
In some embodiments, after the target reporting rate is obtained, the reporting rate of the touch screen may be adjusted based on the target reporting rate, so that dynamic adjustment of the reporting rate is realized, and use experience and power consumption of the mobile terminal are balanced. For example, after the target point reporting rate is obtained, it may be determined whether the current point reporting rate of the touch screen is the same as the target point reporting rate, when the current point reporting rate of the touch screen is different from the target point reporting rate, the current point reporting rate of the touch screen may be adjusted to be the same as the target point reporting rate, and when the current point reporting rate of the touch screen is the same as the target point reporting rate, the current point reporting rate of the touch screen may be maintained.
Step S350: and when the current point reporting rate of the touch screen is the second target point reporting rate, detecting the touch operation acted on the touch screen.
In some embodiments, when the current touch report rate of the touch screen is the second target touch report rate, that is, when the current touch report rate of the touch screen is set to a smaller touch report rate, the touch operation acting on the touch screen may be detected.
Step S360: when the touch operation acting on the touch screen is detected, the current report rate of the touch screen is adjusted from the second target report rate to the first target report rate.
When the touch operation acting on the touch screen is detected, the current touch control touch screen of the user is represented, for example, the current touch control touch screen is clicked, pressed, slid and the like on the touch screen, so that the current report rate of the touch screen can be adjusted from the second target report rate to the first target report rate, the sensitivity of the user operation is improved in a mode of improving the report rate of the touch screen, and the effect of improving the user experience is achieved.
Step S370: and continuously detecting the touch operation acted on the touch screen within a preset time length.
In some embodiments, when the touch screen operation is continuously checked within a preset time period. The preset duration may be automatically set by the mobile terminal, or may be manually set by the user, which is not limited herein. In addition, the time length of the preset time period may be 10 minutes, 20 minutes, and the like, and is not limited herein.
Step S380: and when the touch operation acting on the touch screen is not detected within the preset time length, switching the current report rate of the touch screen from the first target report rate to the second target report rate.
When the touch operation acting on the touch screen is not detected within the preset time, the fact that the user does not touch the touch screen for a long time is represented, and therefore the current report rate of the touch screen can be switched from the first target report rate to the second target report rate, and the power consumption of the mobile terminal is reduced in a mode of reducing the report rate of the touch screen.
In another embodiment of the touch screen processing method provided by the present application, when the target application program runs on the foreground of the mobile terminal, the gyroscope is controlled to collect angular velocity data, the target angular velocity data collected by the gyroscope is received, a target point report rate corresponding to the target angular velocity data is obtained, and the point report rate of the touch screen is physically adjusted based on the target point report rate. When the current point reporting rate of the touch screen is the second target point reporting rate, detecting the touch operation acted on the touch screen, when the touch operation acted on the touch screen is monitored, adjusting the current point reporting rate of the touch screen from the second target point reporting rate to the first target point reporting rate, continuously detecting the touch operation acted on the touch screen within a preset time length, and when the touch operation acted on the touch screen is not detected within the preset time length, switching the current point reporting rate of the touch screen from the first target point reporting rate to the second target point reporting rate. Compared with the touch screen processing method shown in fig. 1, in the embodiment, the gyroscope is also controlled to acquire angular velocity data when the target application program runs in the foreground of the mobile terminal, so that the applicability of the scene is improved. In addition, the embodiment also increases the touch screen point reporting rate when the touch operation acting on the touch screen is detected, and decreases the touch screen point reporting rate when the touch operation is not detected for the duration preset time, so as to balance the touch screen point reporting rate and power consumption.
Referring to fig. 12, fig. 12 is a block diagram illustrating a touch screen processing apparatus 200 according to an embodiment of the present disclosure. The touch screen processing apparatus 200 is applied to the mobile terminal, the mobile terminal includes a touch screen and a gyroscope, and the following description will be made with respect to the block diagram shown in fig. 12, where the touch screen processing apparatus 200 includes: an angular velocity data receiving module 210, a target working mode obtaining module 220, and a working mode adjusting module 230, wherein:
and an angular velocity data receiving module 210, configured to receive target angular velocity data acquired by the gyroscope.
And a target operating mode obtaining module 220, configured to obtain a target operating mode corresponding to the target angular velocity data.
Further, the target operation mode obtaining module 220 includes: the method comprises a specified condition judgment sub-module, a first target refresh rate acquisition sub-module and a second target refresh rate acquisition sub-module, wherein:
and the specified condition judgment submodule is used for judging whether the target angular velocity data meets specified conditions.
And the first target refresh rate acquisition submodule is used for acquiring a first target refresh rate corresponding to the target angular velocity data when the target angular velocity data meets the specified condition.
And a second target refresh rate obtaining sub-module, configured to obtain a second target refresh rate corresponding to the target angular velocity data when the target angular velocity data does not satisfy the specified condition, where the first target refresh rate is greater than the second target refresh rate.
Further, the target operation mode obtaining module 220 further includes: a status information detection sub-module and a refresh rate adjustment sub-module, wherein:
and the state information detection submodule is used for detecting the state information of the touch screen when the current refresh rate of the touch screen is the first target refresh rate.
And the refresh rate adjusting submodule is used for adjusting the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate when the state information of the touch screen is switched from the bright screen state to the dark screen state.
Further, the target operation mode obtaining module 220 includes: the system comprises a specified condition judgment sub-module, a first target report rate acquisition sub-module and a second target report rate acquisition sub-module, wherein:
and the specified condition judgment submodule is used for judging whether the target angular velocity data meets specified conditions.
Further, the specified condition judgment sub-module includes: an angle change value acquisition unit, a first specification condition determination unit, and a second specification condition determination unit, wherein:
and the angle change value acquisition unit is used for acquiring the angle change value of the mobile terminal in a first preset time length based on the target angular speed data.
A first specified condition determining unit configured to determine that the target angular velocity data satisfies the specified condition when the angle change value is larger than an angle threshold.
A second specified condition determining unit configured to determine that the target angular velocity data does not satisfy the specified condition when the angle change value is not greater than an angle threshold.
Further, the specified condition judgment sub-module includes: a shaking number acquisition unit, a third specified condition determination unit, and a fourth specified condition determination unit, wherein:
and the shaking time acquisition unit is used for acquiring the shaking times of the mobile terminal in a second preset time length based on the target angular velocity data.
A third specified condition determination unit configured to determine that the target angular velocity data satisfies the specified condition when the number of shakes is greater than a number threshold.
A fourth specified condition determination unit configured to determine that the target angular velocity data does not satisfy the specified condition when the number of times of shake is not greater than a number-of-times threshold.
Further, the specified condition judgment sub-module includes: a parameter acquisition unit, a fifth specified condition determination unit, and a sixth specified condition determination unit, wherein:
and the parameter acquisition unit is used for acquiring an angle change value of the mobile terminal in a first preset time length based on the target angular speed data and acquiring the shaking times of the mobile terminal in a second preset time length.
A fifth specified condition determination unit configured to determine that the target angular velocity data satisfies the specified condition when the angle change value is greater than a number threshold and the shake number is greater than a number threshold.
A sixth specified condition determining unit configured to determine that the target angular velocity data does not satisfy the specified condition when the angle change value is not greater than a number-of-times threshold or the number of times of shaking is not greater than a number-of-times threshold.
And the first target report rate acquisition submodule is used for acquiring a first target report rate corresponding to the target angular velocity data when the target angular velocity data meets the specified condition.
And the second target reporting rate obtaining sub-module is used for obtaining a second target reporting rate corresponding to the target angular velocity data when the target angular velocity data does not meet the specified condition, wherein the first target reporting rate is greater than the second target reporting rate.
Further, the target operation mode obtaining module 220 includes: the touch control system comprises a first touch operation detection submodule, a first report rate adjustment submodule, a second touch operation detection submodule and a second report rate adjustment submodule, wherein:
and the first touch operation detection submodule is used for detecting the touch operation acted on the touch screen when the current point report rate of the touch screen is the second target point report rate.
And the first report rate adjusting submodule is used for adjusting the current report rate of the touch screen from the second target report rate to the first target report rate when the touch operation acting on the touch screen is detected.
And the second touch operation detection submodule is used for continuously detecting the touch operation acted on the touch screen within a preset time length.
And the second reporting rate adjusting submodule is used for switching the current reporting rate of the touch screen from the first target reporting rate to the second target reporting rate when the touch operation acting on the touch screen is not detected within the preset time length.
An operation mode adjusting module 230, configured to adjust an operation mode of the touch screen based on the target operation mode.
Further, the target operation mode includes a target refresh rate, and the operation mode adjustment module 230 includes:
and the refresh rate adjusting submodule is used for adjusting the refresh rate of the touch screen based on the target refresh rate.
Further, the target operation mode includes a target reporting rate, and the operation mode adjustment module 230 includes:
and the point reporting rate adjusting submodule is used for adjusting the point reporting rate of the touch screen based on the target point reporting rate.
Further, the touch screen processing apparatus 200 further includes: an acquisition control module, wherein:
and the acquisition control module is used for controlling the gyroscope to acquire the angular velocity data when a foreground of the mobile terminal runs a target application program.
Further, the acquisition control module comprises: the device comprises a type acquisition submodule, a type judgment submodule and a first acquisition control submodule, wherein:
and the type acquisition submodule is used for acquiring the type of the application program when the foreground of the mobile terminal runs the application program.
And the type judgment submodule is used for judging whether the type is the specified type.
And the first acquisition control submodule is used for controlling the gyroscope to acquire the target angular velocity data when the type is a specified type.
Further, the acquisition control module comprises: a second acquisition control sub-module, wherein:
and the second acquisition control submodule is used for controlling the gyroscope to acquire angular velocity data as target angular velocity data according to specified duration when a target application program runs on the foreground of the mobile terminal.
Further, the acquisition control module comprises: a display state detection submodule and a third acquisition control submodule, wherein:
and the display state detection submodule is used for detecting the display state of the touch screen when the foreground of the mobile terminal runs the target application program.
Further, the display state detection sub-module includes: touch operation detecting element and display state display element, wherein:
the touch operation detection unit is used for detecting touch operation acted on a first side wall of the mobile terminal when a target application program runs in a foreground of the mobile terminal, and the first side wall is perpendicular to the length direction of the mobile terminal.
And the display state determining unit is used for determining that the display state of the touch screen is a horizontal screen display state when the touch operation acting on the first side wall is detected.
And the third acquisition control submodule is used for controlling the gyroscope to acquire the angular velocity data when the display state of the touch screen is detected to be a horizontal screen display state.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 13, a block diagram of a mobile terminal 100 according to an embodiment of the present disclosure is shown. The mobile terminal 100 may be a smart phone, a tablet computer, an electronic book, or other mobile terminal capable of running an application. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, a gyroscope 140, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The touch screen 130 is used to Display information input by a user, information provided to the user, and various graphic user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the touch screen 130 may be a Liquid Crystal Display (LCD) or an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 14, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, the touch screen processing method, the touch screen processing device, the mobile terminal and the storage medium provided by the embodiment of the application receive target angular velocity data acquired by a gyroscope, acquire a target working mode corresponding to the target angular velocity data, and adjust the working mode of the touch screen based on the target working mode, so that the target angular velocity data is acquired by the gyroscope of the mobile terminal, the target working mode corresponding to the target angular velocity data is acquired, and the working mode of the mobile terminal is adjusted based on the target working mode, so that the dynamic adjustment of the working mode is realized, and the use experience and the power consumption of the mobile terminal are balanced.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (20)

  1. A touch screen processing method is applied to a mobile terminal, wherein the mobile terminal comprises a touch screen and a gyroscope, and the method comprises the following steps:
    receiving target angular velocity data acquired by the gyroscope;
    acquiring a target working mode corresponding to the target angular velocity data;
    and adjusting the working mode of the touch screen based on the target working mode.
  2. The method of claim 1, wherein the target operating mode comprises a target refresh rate, and wherein adjusting the operating mode of the touch screen based on the target operating mode comprises:
    adjusting the refresh rate of the touch screen based on the target refresh rate.
  3. The method of claim 2, wherein said obtaining a target operating mode corresponding to said target angular velocity data comprises:
    judging whether the target angular velocity data meets a specified condition;
    when the target angular velocity data meets the specified condition, acquiring a first target refresh rate corresponding to the target angular velocity data;
    and when the target angular velocity data does not meet the specified condition, acquiring a second target refresh rate corresponding to the target angular velocity data, wherein the first target refresh rate is greater than the second target refresh rate.
  4. The method of claim 3, wherein after the adjusting the operating mode of the touch screen based on the target operating mode, further comprising:
    when the current refresh rate of the touch screen is the first target refresh rate, detecting the state information of the touch screen;
    and when the state information of the touch screen is switched from a bright screen state to a screen-off state, adjusting the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate.
  5. The method of claim 1, wherein the target operating mode comprises a target reporting rate, and wherein adjusting the operating mode of the touch screen based on the target operating mode comprises:
    and adjusting the point reporting rate of the touch screen based on the target point reporting rate.
  6. The method of claim 5, wherein said obtaining a target operating mode corresponding to said target angular velocity data comprises:
    judging whether the target angular velocity data meets a specified condition;
    when the target angular velocity data meet the specified conditions, acquiring a first target report rate corresponding to the target angular velocity data;
    and when the target angular velocity data does not meet the specified condition, acquiring a second target reporting rate corresponding to the target angular velocity data, wherein the first target reporting rate is greater than the second target reporting rate.
  7. The method of claim 6, wherein after adjusting the touch screen touch point rate based on the target touch point rate, further comprising:
    when the current point reporting rate of the touch screen is the second target point reporting rate, detecting touch operation acted on the touch screen;
    when the touch operation acting on the touch screen is detected, the current report rate of the touch screen is adjusted from the second target report rate to the first target report rate.
  8. The method of claim 7, wherein after adjusting the touch screen hit rate to the first target hit rate when the touch operation on the touch screen is detected, further comprising:
    continuously detecting the touch operation acted on the touch screen within a preset time length;
    and when the touch operation acting on the touch screen is not detected within the preset time length, switching the current report rate of the touch screen from the first target report rate to the second target report rate.
  9. The method according to claim 3 or 6, wherein the determining whether the target angular velocity data satisfies a specified condition includes:
    acquiring an angle change value of the mobile terminal in a first preset time length based on the target angular speed data;
    when the angle change value is larger than an angle threshold value, determining that the target angular velocity data meets the specified condition;
    determining that the target angular velocity data does not satisfy the specified condition when the angle change value is not greater than an angle threshold.
  10. The method according to claim 3 or 6, wherein the determining whether the target angular velocity data satisfies a specified condition includes:
    acquiring the shaking times of the mobile terminal in a second preset time length based on the target angular velocity data;
    when the shaking times are larger than a time threshold value, determining that the target angular velocity data meet the specified condition;
    when the number of times of shaking is not greater than a number threshold, determining that the target angular velocity data does not satisfy the specified condition.
  11. The method according to claim 3 or 6, wherein the determining whether the target angular velocity data satisfies a specified condition includes:
    acquiring an angle change value of the mobile terminal in a first preset time length based on the target angular speed data, and acquiring the shaking times of the mobile terminal in a second preset time length;
    when the angle change value is larger than a time threshold value and the shaking time is larger than a time threshold value, determining that the target angular velocity data meets the specified condition;
    and when the angle change value is not greater than a number threshold or the shaking number is not greater than a number threshold, determining that the target angular velocity data does not satisfy the specified condition.
  12. The method of any of claims 1-11, wherein prior to receiving the target angular velocity data acquired by the gyroscope, further comprising:
    and when a target application program runs on the foreground of the mobile terminal, controlling the gyroscope to acquire the angular velocity data.
  13. The method according to claim 12, wherein controlling the gyroscope to collect target angular velocity data when the target application program is running in the foreground of the mobile terminal comprises:
    when an application program runs in the foreground of the mobile terminal, acquiring the type of the application program;
    judging whether the type is a specified type;
    and when the type is a specified type, controlling the gyroscope to acquire the target angular velocity data.
  14. The method of claim 13, wherein the specified type comprises a game type.
  15. The method according to any one of claims 12-14, wherein controlling the gyroscope to collect the angular velocity data when the target application is running in the foreground of the mobile terminal comprises:
    and when the foreground of the mobile terminal runs a target application program, controlling the gyroscope to acquire angular velocity data as target angular velocity data according to the specified duration.
  16. The method according to any one of claims 12-15, wherein controlling the gyroscope to collect the angular velocity data when the target application is running in the foreground of the mobile terminal comprises:
    when a target application program runs on the foreground of the mobile terminal, detecting the display state of the touch screen;
    and when the display state of the touch screen is detected to be a horizontal screen display state, controlling the gyroscope to acquire the angular speed data.
  17. The method according to claim 16, wherein the detecting the display state of the touch screen when the target application is running in the foreground of the mobile terminal comprises:
    when a target application program runs in the foreground of the mobile terminal, detecting touch operation acting on a first side wall of the mobile terminal, wherein the first side wall is vertical to the length direction of the mobile terminal;
    when a touch operation acting on the first side wall is detected, determining that the display state of the touch screen is a horizontal screen display state.
  18. A touch screen processing device is applied to a mobile terminal, wherein the mobile terminal comprises a touch screen and a gyroscope, and the device comprises:
    the angular velocity data receiving module is used for receiving target angular velocity data acquired by the gyroscope;
    the target working mode acquisition module is used for acquiring a target working mode corresponding to the target angular velocity data;
    and the working mode adjusting module is used for adjusting the working mode of the touch screen based on the target working mode.
  19. A mobile terminal comprising a touch screen, a gyroscope, a memory, and a processor, the touch screen, the gyroscope, and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-17.
  20. A computer-readable storage medium having program code stored therein, the program code being invoked by a processor to perform the method of any one of claims 1 to 17.
CN201980099278.XA 2019-10-22 2019-10-22 Touch screen processing method and device, mobile terminal and storage medium Pending CN114341783A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/112615 WO2021077308A1 (en) 2019-10-22 2019-10-22 Touch screen processing method and apparatus, and mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114341783A true CN114341783A (en) 2022-04-12

Family

ID=75619584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980099278.XA Pending CN114341783A (en) 2019-10-22 2019-10-22 Touch screen processing method and device, mobile terminal and storage medium

Country Status (2)

Country Link
CN (1) CN114341783A (en)
WO (1) WO2021077308A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342407B (en) * 2021-06-25 2023-01-24 歌尔科技有限公司 Screen control method and device, electronic equipment and readable storage medium
CN114115589A (en) * 2021-10-08 2022-03-01 北京小米移动软件有限公司 Point reporting information processing method, device, terminal and storage medium
CN117193682B (en) * 2022-05-31 2024-05-03 广州星际悦动股份有限公司 Display control method, display control device, storage medium and oral care system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104252273A (en) * 2013-06-27 2014-12-31 中兴通讯股份有限公司 Contact reporting rate processing method and device of touch screen
CN104282286B (en) * 2014-10-30 2017-03-08 广东欧珀移动通信有限公司 Adjust the method and system of intelligent mobile terminal display refresh rates according to application scenarios
CN106919400A (en) * 2017-03-10 2017-07-04 广东欧珀移动通信有限公司 A kind of display scene recognition method of mobile terminal, device and mobile terminal
KR102255469B1 (en) * 2018-03-06 2021-05-24 삼성전자주식회사 Electronic device comprising a rollable display and method for operating thereof
CN109473082A (en) * 2019-01-08 2019-03-15 京东方科技集团股份有限公司 A kind of method of adjustment, device and the virtual reality device of display screen refresh rate

Also Published As

Publication number Publication date
WO2021077308A1 (en) 2021-04-29

Similar Documents

Publication Publication Date Title
CN114341783A (en) Touch screen processing method and device, mobile terminal and storage medium
US10803785B2 (en) Electronic device and method for controlling output timing of signal corresponding to state in which content can be received based on display location of content displayed on display
US20150348493A1 (en) Method of controlling display and electronic device for providing the same
CN111309400A (en) Process control method, device, storage medium and electronic equipment
AU2017306385A1 (en) Display driving method, display driver integrated circuit for supporting the same, electronic device including the display driver integrated circuit
CN108073437B (en) Application recommendation method and mobile terminal
CN110198554B (en) Network rate adjusting method and terminal equipment
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
US20210152729A1 (en) Method and Apparatus for Shooting Video, and Storage Medium
CN110830653B (en) Sensor control method, sensor control device, mobile terminal and storage medium
WO2016173350A1 (en) Picture processing method and device
US20160246366A1 (en) Control method and control apparatus for electronic equipment and electronic equipment
CN110796725A (en) Data rendering method, device, terminal and storage medium
CN112929860B (en) Bluetooth connection method and device and electronic equipment
CN111124173A (en) Working state switching method and device of touch screen, mobile terminal and storage medium
CN109302563B (en) Anti-shake processing method and device, storage medium and mobile terminal
CN109302523B (en) Mobile phone performance evaluation method for mobile phone side and server side
CN107341094B (en) Method and device for measuring time consumed by starting item
CN106302101B (en) Message reminding method, terminal and server
CN107918517B (en) Screen rotation response method and device, mobile terminal and storage medium
US20230368177A1 (en) Graphic code display method, terminal and storage medium
CN113289330B (en) Rendering method and device
CN113110817A (en) Method and device for determining ambient light brightness, terminal and storage medium
CN110827770B (en) Regional backlight brightness adjusting method and device for display image and storage medium
CN109144860B (en) Operation method for control object and terminal equipment

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