Touch screen processing method, device, mobile terminal and storage medium
By using a gyroscope to collect angular velocity data in a mobile terminal and dynamically adjusting the working mode of the touch screen, the problem of poor user experience and increased power consumption in the fixed mode of the mobile terminal is solved, and the balance between user experience and power consumption is achieved.
Patent Information
- Application Number
- CN201980099278.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-22
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2039-10-22
AI Technical Summary
The problems of poor user experience and increased power consumption caused by the operation of mobile terminals in fixed working mode.
The target angular velocity data is collected through the gyroscope, the corresponding target working mode is obtained, and the touch screen's working mode is dynamically adjusted based on this mode to balance the user experience and power consumption.
Dynamic adjustment of the working mode of the mobile terminal is realized, improving user experience and reducing power consumption.
Smart Images

Figure CN114341783B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of mobile terminals, and more particularly, to a touch screen processing method, apparatus, mobile terminal, and storage medium. Background Art
[0002] With the development of science and technology, mobile terminals are used more and more widely and have more and more functions, and have become one of the necessities in people's daily lives. At present, mobile terminals are configured with multiple working modes and can thus work in multiple working modes. Summary of the Invention
[0003] In view of the above problems, this application proposes a touch screen processing method, apparatus, mobile terminal, and storage medium to solve the above problems.
[0004] In a first aspect, an embodiment of this application provides a touch screen processing method applied to a mobile terminal. The mobile terminal includes a touch screen and a gyroscope. The method includes: receiving target angular velocity data collected by the gyroscope; obtaining 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.
[0005] In a second aspect, an embodiment of this application provides a touch screen processing apparatus applied to a mobile terminal. The mobile terminal includes a touch screen and a gyroscope. The apparatus includes: an angular velocity data receiving module for receiving the target angular velocity data collected by the gyroscope; a target working mode obtaining module for obtaining a target working mode corresponding to the target angular velocity data; and a working mode adjusting module for adjusting the working mode of the touch screen based on the target working mode.
[0006] In a third aspect, an embodiment of this application provides a mobile terminal, including a touch screen, a gyroscope, a memory, and a processor. The touch screen, the gyroscope, and the memory are coupled to the processor. The memory stores instructions that, when executed by the processor, cause the processor to execute the above method.
[0007] In a fourth aspect, an embodiment of this application provides a computer-readable storage medium storing program code that can be called by a processor to execute the above method.
[0008] The touch screen processing method, device, mobile terminal, and storage medium provided by the embodiments of the present application receive target angular velocity data collected by a gyroscope, obtain 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. Thus, the target angular velocity data is collected by the gyroscope of the mobile terminal, and the target working mode corresponding to the target angular velocity data is obtained, and the working mode of the mobile terminal is adjusted based on the target working mode, so as to achieve dynamic adjustment of the working mode and balance the usage experience and power consumption of the mobile terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] To more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can obtain other drawings without creative efforts based on these drawings.
[0010] Figure 1 The flowchart of the touch screen processing method provided by an embodiment of the present application is shown;
[0011] Figure 2 The flowchart of the touch screen processing method provided by another embodiment of the present application is shown;
[0012] Figure 3 The Figure 2 Flowchart of an embodiment of step S210 of the touch screen processing method shown;
[0013] Figure 4 The Figure 2 Flowchart of another embodiment of step S210 of the touch screen processing method shown;
[0014] Figure 5 The Figure 4 Flowchart of step S211B of the touch screen processing method shown;
[0015] Figure 6 The Figure 2 Flowchart of step S230 of the touch screen processing method shown;
[0016] Figure 7 The Figure 6 Flowchart of an embodiment of step S231 of the touch screen processing method shown;
[0017] Figure 8 The Figure 6Flow chart of another embodiment of step S231 of the touch screen processing method shown;
[0018] Figure 9 Shows the present application's Figure 6 Flow chart of still another embodiment of step S231 of the touch screen processing method shown;
[0019] Figure 10 Flow chart of the touch screen processing method provided by still another embodiment of the present application;
[0020] Figure 11 Shows the present application's Figure 10 Flow chart of step S330 of the touch screen processing method shown;
[0021] Figure 12 Block diagram of the touch screen processing device provided by an embodiment of the present application;
[0022] Figure 13 Block diagram of the mobile terminal for executing the touch screen processing method according to an embodiment of the present application;
[0023] Figure 14 Shows the storage unit for storing or carrying the program code for implementing the touch screen processing method according to an embodiment of the present application. Detailed implementation
[0024] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application.
[0025] Currently, mobile terminals generally have multiple working modes and operate in a certain working mode based on the user's selection or default selection, thus running in the selected working mode for a long time, resulting in the problem of fixed working modes, which may lead to poor user experience or increased power consumption of the mobile terminal. In view of the above problems, through long-term research, the inventors have found and proposed the touch screen processing method, device, mobile terminal, and storage medium provided by the embodiments of the present application. By collecting target angular velocity data through the gyroscope of the mobile terminal and obtaining the target working mode corresponding to the target angular velocity data, the working mode of the mobile terminal is adjusted based on the target working mode, thereby realizing dynamic adjustment of the working mode to balance the user experience and power consumption of the mobile terminal. Among them, the specific touch screen processing method will be described in detail in the subsequent embodiments.
[0026] Please refer to Figure 1 , Figure 1The flowchart shows the touch screen processing method provided by an embodiment of the present application. The touch screen processing method is used to collect target angular velocity data through the gyroscope of the mobile terminal, obtain 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 as to achieve dynamic adjustment of the working mode and balance the usage experience and power consumption of the mobile terminal. In a specific embodiment, the touch screen processing method is applied to a touch screen processing device 200 as shown in Figure 12 and a mobile terminal 100 equipped with the touch screen processing device 200 ( Figure 13 ). Next, taking the mobile terminal as an example, the specific process of this embodiment will be described. Of course, it can be understood that the mobile terminal applied in this embodiment can be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here. Next, the process shown in Figure 1 will be elaborated in detail. In this embodiment, the mobile terminal includes a touch screen and a gyroscope, and the touch screen processing method can specifically include the following steps:
[0027] Step S110: Receive the target angular velocity data collected by the gyroscope.
[0028] In some embodiments, a 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: obtain the angular velocity of the mobile terminal, collect a voltage signal when the angular velocity of the mobile terminal changes, and report it to the system of the mobile terminal. The system of the mobile terminal judges the angular velocity after obtaining the voltage signal. Specifically, according to the fixed-axis property of the gyroscope and the known preset posture of the mobile terminal relative to the axis of rotation of the gyroscope, when there is a difference between the posture of the mobile terminal and the preset posture, and there is a movement in a certain direction of pitch, yaw or roll, because the axis of rotation of the gyroscope remains unchanged, it is detected that the angular relationship between the mobile terminal rod and the axis of rotation changes compared with the angular relationship between the preset posture and the axis of rotation, then the posture change of the mobile terminal can be determined, that is, the angular velocity change of the mobile terminal can be determined.
[0029] In some embodiments, the processor of the mobile terminal can receive the acceleration data collected by the gyroscope and use the received acceleration data collected by the gyroscope as the target acceleration data. In this embodiment, the gyroscope can collect the angular velocity data of the mobile terminal in real time and report it to the processor of the mobile terminal. The gyroscope can collect the angular velocity data of the mobile terminal at specified intervals and report it to the processor of the mobile terminal. The gyroscope can collect the angular velocity data of the mobile terminal for a preset duration and report it to the processor of the mobile terminal, which is not limited here.
[0030] Step S120: Obtain the target working mode corresponding to the target angular velocity data.
[0031] In some embodiments, the number of angular velocity data of the mobile terminal is multiple, and the mobile terminal is configured with multiple working modes. Therefore, the mobile terminal can pre - establish a mapping relationship between the multiple angular velocity data of the mobile terminal and the multiple working modes, and generate a mapping relationship table for storage in the mobile terminal, as shown in Table 1. Among them, the mapping relationship between the angular velocity data and the working mode of the mobile terminal can be manually associated by the user, automatically associated by the mobile terminal, or automatically associated by the server, etc., which is not limited herein. And the mapping relationship between the angular velocity data and the working mode of the mobile terminal can include one angular velocity data corresponding to one working mode, or multiple angular velocity data corresponding to one working mode, etc., which is not limited herein.
[0032] Further, after determining the target angular velocity data, the target angular velocity data can be compared one by one with the multiple angular velocity data pre - stored in the mapping relationship table to obtain the angular velocity data that matches the target angular velocity data. Then, according to the mapping relationship table, the working mode corresponding to this angular velocity data is searched, so that the target working mode corresponding to the target angular velocity data can be obtained. For example, when the mapping relationship table includes the mapping relationship between angular velocity data 1 and working mode 1, that is to say, the angular velocity data 1 is stored under the angular velocity data in the mapping relationship table, and the working mode 1 is stored under the working mode, and the angular velocity data 1 and the working mode 1 are associated. Then, when the target angular velocity data of the mobile terminal is angular velocity data 1, the target angular velocity data can be matched with the angular velocity data stored in the mapping relationship table. It can be understood that the target angular velocity data can be matched with the 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.
[0033] Table 1
[0034] Angular velocity data Working mode Angular velocity data 1 Working mode 1 Angular velocity data 2 Working mode 2 Angular velocity data 3 Working mode 3
[0035] As a way, when all the comparisons between the target angular velocity data and the multiple angular velocity data pre - stored in the mapping relationship table fail, that is to say, when there is no angular velocity data matching the target angular velocity data stored under the angular velocity data in the mapping relationship table, the angular velocity data with a value close to the target angular velocity data can be searched, and the working mode corresponding to the angular velocity data close to the target angular velocity data is used as the target working mode corresponding to the target angular velocity data, so as to obtain the target working mode corresponding to the target angular velocity data.
[0036] Of course, in this embodiment, there can also be other more ways to obtain the target working mode corresponding to the target angular velocity data, which will not be elaborated herein.
[0037] Step S130: Adjust the working mode of the touch screen based on the target working mode.
[0038] In some embodiments, after obtaining the target working mode, the working mode of the touch screen can be adjusted based on the target working mode, so as to achieve dynamic adjustment of the working mode and balance the usage experience and power consumption of the mobile terminal. For example, after obtaining the target working mode, it can be determined whether the current working mode of the touch screen is the same as the target working mode. When the current working mode of the touch screen is different from the target working mode, the current working mode of the touch screen can be adjusted to be the same as the target working mode. 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 can be maintained.
[0039] The touch screen processing method provided by an embodiment of the present application receives target angular velocity data collected by a gyroscope, obtains a target working mode corresponding to the target angular velocity data, and adjusts the working mode of the touch screen based on the target working mode. Thus, the target angular velocity data is collected by the gyroscope of the mobile terminal, and the target working mode corresponding to the target angular velocity data is obtained, and the working mode of the mobile terminal is adjusted based on the target working mode, so as to achieve dynamic adjustment of the working mode and balance the usage experience and power consumption of the mobile terminal.
[0040] Please refer to Figure 2 , Figure 2 which shows a schematic flowchart of a touch screen processing method provided by another embodiment of the present application. This method is applied to the above-mentioned mobile terminal, which includes a touch screen and a gyroscope. The following will elaborate in detail on Figure 2 the process shown, and the touch screen processing method may specifically include the following steps:
[0041] Step S210: When the target application program is running in the foreground of the mobile terminal, control the gyroscope to collect the angular velocity data.
[0042] In some embodiments, the mobile terminal can run applications. For example, the mobile terminal can run an application in the foreground, can run an application in the background, or can also switch between running the application in the foreground and the background, which is not limited herein. Specifically, an application running in the foreground refers to an application that can generally interact with the user and can run in the foreground. When it is not visible, it will be suspended (such as a game); an application running in the background refers to an application with very limited interaction with the user. Except during configuration, it is hidden at other times during its lifetime (such as an SMS auto-reply program and an alarm program); an application that switches between running in the foreground and the background of the mobile terminal refers to an application that can freely switch between the foreground and the background. It can be understood that when an application is not killed, it indicates that the application is running on the mobile terminal.
[0043] In this embodiment, an application running in the foreground of the mobile terminal can be obtained. In some embodiments, it can be first detected whether the mobile terminal is in a screen-on state or a screen-off state. When it is detected that the mobile terminal is in a screen-on state, it is then detected whether there is an application running in the foreground of the mobile terminal. When it is detected that there is an application running in the foreground of the mobile terminal, the application running in the foreground of the mobile terminal is obtained, and it is determined whether the application running in the foreground of the mobile terminal is the target application.
[0044] Specifically, the status information of the display screen of the mobile terminal can be detected. The status information of the display screen may include the screen-on state and the screen-off state. That is to say, in this embodiment, it can be detected whether the display screen is currently in the screen-on state or the screen-off state. As a way, the screen brightness of the mobile terminal (Settings.System.SCREEN_BRIGHTNESS) can be detected and obtained, and the obtained screen brightness is compared with a 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 status information of the display screen can be considered as the screen-on state. When the screen brightness is not greater than the preset brightness, the status information of the display screen can be considered as the screen-off state. As a way, the mobile terminal can pre-store the preset brightness as the brightness value to be compared. The preset brightness can be configured when the mobile terminal is factory-set, can be set according to the user's preferences and needs during use, or can be adjusted and set by the mobile terminal according to its attributes or environment. For example, it can be set according to the current ambient light brightness of the environment where the mobile terminal is located. The greater the current ambient light brightness, the greater the preset brightness value can be set. The smaller the current ambient light brightness, the smaller the preset brightness value can be set, etc. Optionally, in this embodiment, the preset brightness value is 0. When the screen brightness is greater than 0, the status information of the display screen can be considered as the screen-on state. When the screen status is not greater than 0, the status information of the display screen can be considered as the screen-off state. Of course, in this embodiment, there can also be other more methods for detecting the status information of the display screen, which will not be elaborated here.
[0045] In some embodiments, when it is determined that the mobile terminal is in the screen-on state based on the above method, it can be determined whether an application program is running in the foreground of the mobile terminal by detecting the current display interface of the display screen. Among them, when it is detected that the current display interface of the display screen is the desktop or the lock screen interface, it can be determined that the mobile terminal does not have an application program running in the foreground. When it is detected that the current display interface of the display screen is an application page, it can be determined that the mobile terminal has an application program running in the foreground. Of course, in this embodiment, there can also be other more methods for detecting whether an application program is running in the foreground of the mobile terminal, which will not be elaborated here.
[0046] In some embodiments, when it is determined that an application is running in the foreground of the mobile terminal, it can be determined whether the application is the target application. For example, the package name of the application running in the foreground of the mobile terminal and the package name of the target application can be obtained, and it can be determined whether the package name of the application running in the foreground of the mobile terminal is the same as the package name of the target application. When the package name of the application running in the foreground of the mobile terminal is the same as the package name of the target application, it can be determined that the target application is running in the foreground of the mobile terminal. When the package name of the application running in the foreground of the mobile terminal is different from the package name of the target application, it can be determined that the target application is not running in the foreground of the mobile terminal.
[0047] In some embodiments, when it is determined that the target application is running in the foreground of the mobile terminal, the gyroscope can be controlled to collect angular velocity data. In some embodiments, when it is determined that the target application is running in the foreground of the mobile terminal, the gyroscope can be controlled to collect angular velocity data for a specified duration as the target angular velocity data. The specified duration can be automatically set by the mobile terminal or manually set by the user, and is not limited herein. Additionally, the time length of the specified duration can be 100 ms, 200 ms, etc. Optionally, the time length of the specified duration is 200 ms.
[0048] Please refer to Figure 3 , Figure 3 which shows Figure 2 a schematic flowchart of an embodiment of step S210 of the touch screen processing method shown in the present application. The following will elaborate in detail on Figure 3 the flow shown, and the method can specifically include the following steps:
[0049] Step S211A: When an application is running in the foreground of the mobile terminal, obtain the type of the application.
[0050] In some embodiments, when it is determined that an application is running in the foreground of the mobile terminal, the type of the application can be obtained. Specifically, the mobile terminal can pre - establish a mapping relationship between the application and the type, and generate a mapping relationship table stored in the mobile terminal, as shown in Table 2. Among them, the mapping relationship between the application and the type can be manually associated by the user, automatically associated by the mobile terminal, or automatically associated by the server, etc., and is not limited herein. And the mapping relationship between the application and the type can include one application corresponding to one type, or multiple applications corresponding to one type, etc.
[0051] Further, after determining the application running in the foreground of the mobile terminal, the application running in the foreground of the mobile terminal can be compared one by one with multiple applications pre-stored in the mapping relationship table to obtain the application that matches the application running in the foreground of the mobile terminal. Then, according to the mapping relationship table, the type corresponding to this application can be found, so as to obtain the type of the application running in the foreground of the mobile terminal.
[0052] Table 2
[0053] Application Type Application 1 Type 1 Application 2 Type 2 Application 3 Type 3
[0054] As a way, when the comparison between the application running in the foreground of the mobile terminal and multiple applications pre-stored in the mapping relationship table fails one by one, that is, when there is no application stored in the mapping relationship table that matches the application running in the foreground of the mobile terminal, the application with a type similar to that of the application running in the foreground of the mobile terminal can be found, and the type of the application similar to the application running in the foreground of the mobile terminal can be used as the type of the application running in the foreground of the mobile terminal, so as to obtain the type of the application running in the foreground of the mobile terminal. Among them, in this embodiment, the package name of the application running in the foreground of the mobile terminal can be obtained. Since the package name includes various information related to the application, the manufacturer of the application running in the foreground of the mobile terminal included in the package name can be analyzed, and then other applications produced by this manufacturer can be found. The type of other applications is found in the mapping relationship table, and the type of other applications is used as the type of the application running in the foreground of the mobile terminal.
[0055] Step S212A: Determine whether the type is a specified type.
[0056] In some embodiments, the mobile terminal pre-sets and stores a specified type, which is used as a judgment basis for the type of the application running in the foreground of the mobile terminal. Therefore, in this embodiment, the type of the application running in the foreground of the mobile terminal can 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.
[0057] In some embodiments, the specified type includes a game type. Therefore, it can be determined whether the type of the application running in the foreground of the mobile terminal is a game type. When the type of the application running in the foreground of the mobile terminal is a game type, it can be determined that the type of the application running in the foreground of the mobile terminal is the specified type. When the type of the application running in the foreground of the mobile terminal is not a game type, it can be determined that the type of the application running in the foreground of the mobile terminal is not the specified type.
[0058] Step S213A: When the type is the specified type, control the gyroscope to collect the target angular velocity data.
[0059] In some embodiments, when it is determined that the type of the application running in the foreground of the mobile terminal is the specified type, the gyroscope can be controlled to collect the target angular velocity data. For example, when it is determined that the type of the application running in the foreground of the mobile terminal is a game type, the gyroscope can be controlled to collect the target angular velocity data to improve the dynamic adjustment of the game scene and enhance the user experience.
[0060] Please refer to Figure 4 , Figure 4 which shows Figure 2 a schematic flowchart of another embodiment of step S210 of the touch screen processing method shown in the present application. The following will elaborate in detail on the Figure 4 flow shown. The method may specifically include the following steps:
[0061] Step S211B: When the target application is running in the foreground of the mobile terminal, detect the display state of the touch screen.
[0062] In some embodiments, when the target application is running in the foreground of the mobile terminal, the display state of the touch screen can be detected. Among them, 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 can be determined by detecting the holding manner of the mobile terminal, or by detecting the acceleration of the mobile terminal in different directions, etc., which is not limited herein.
[0063] Please refer to Figure 5 , Figure 5 which shows Figure 4 a schematic flowchart of step S211B of the touch screen processing method shown in the present application. The following will elaborate in detail on the Figure 5 flow shown. The method may specifically include the following steps:
[0064] Step S211B1: When the target application is running in the foreground of the mobile terminal, detect a touch operation on the first sidewall of the mobile terminal, where the first sidewall is perpendicular to the length direction of the mobile terminal.
[0065] In this embodiment, a first sidewall can be set. The first sidewall is perpendicular to the length direction of the mobile terminal. That is to say, the first sidewall can include the top wall and the bottom wall of the mobile terminal. In some embodiments, when determining the foreground running target application of the mobile terminal, a touch operation on the first sidewall of the mobile terminal can be detected. Specifically, touch sensors can be arranged on the first sidewall of the mobile terminal. The mobile terminal can detect whether there is a touch operation on the first sidewall through the touch sensors. When the touch sensors arranged on both first sidewalls detect touch operations, it can indicate that a touch operation on the first sidewall is detected. When at least one of the touch sensors arranged on both first sidewalls does not detect a touch operation, it can indicate that no touch operation on the first sidewall is detected.
[0066] Step S211B2: When a touch operation on the first sidewall is detected, determine that the display state of the touch screen is the landscape display state.
[0067] In some embodiments, when it is determined that a touch operation on the first sidewall is detected, it can be determined that the touch operation on the first sidewall corresponds to the landscape holding mode. Therefore, it can be determined that the display state of the touch screen is the landscape display state.
[0068] Step S212B: When the display state of the touch screen is detected to be the landscape display state, control the gyroscope to collect the angular velocity data.
[0069] In some embodiments, when the display state of the touch screen is detected to be the landscape display state, it can be considered that the user is currently fully immersed in the content displayed on the touch screen. Therefore, the gyroscope can be controlled to collect angular velocity data, and the working mode of the touch screen can be adjusted based on the collected 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 reporting rate of the touch screen can be increased to enhance the user experience. In some embodiments, when the display state of the touch screen is detected to be the portrait display state, it can be considered that the user is not currently fully immersed in the content displayed on the touch screen. Therefore, the working mode of the touch screen can be maintained, such as maintaining the refresh rate and the reporting rate of the touch screen, to reduce the power consumption of the mobile terminal.
[0070] Step S220: Receive the target angular velocity data collected by the gyroscope.
[0071] For the specific description of step S220, please refer to step S110 and will not be elaborated here.
[0072] Step S230: Obtain the target refresh rate corresponding to the target angular velocity data.
[0073] In this embodiment, the target working mode includes a target refresh rate. Therefore, after obtaining the target angular velocity data, the target refresh rate corresponding to the target angular velocity data can be obtained based on the target angular velocity data. The method for obtaining the target refresh rate can refer to the method for obtaining the target working mode, which will not be elaborated here.
[0074] Please refer to Figure 6 , Figure 6 which shows the Figure 2 flow schematic diagram of step S230 of the touch screen processing method shown in this application. The following will elaborate in detail on the Figure 6 flow shown, and the method may specifically include the following steps:
[0075] Step S231: Determine whether the target angular velocity data meets the specified conditions.
[0076] In some embodiments, the mobile terminal may be pre-set and store the specified conditions, which are used as the basis for judging the target angular velocity data. Therefore, in this embodiment, after obtaining the target angular velocity data, the target angular velocity data can be compared with the specified conditions to determine whether the target angular velocity data meets the specified conditions.
[0077] In this embodiment, the specified conditions can be used to represent that the shaking parameter of the mobile terminal corresponding to the target angular velocity data meets the preset shaking parameter. That is to say, if the target angular velocity data of the mobile terminal meets the specified conditions, it can be considered that the mobile terminal is currently in a relatively large shaking amplitude and / or shaking frequency. In a game scenario, it means that the user is currently operating the game character to enter a relatively intense scenario. Therefore, the touch screen of the mobile terminal can be set to a higher refresh rate to meet the display requirements of the current scenario. If the target angular velocity data of the mobile terminal does not meet the specified conditions, it can be considered that the mobile terminal is currently in a relatively small shaking amplitude or shaking frequency. In a game scenario, it means that the user is currently not operating the game character to enter a relatively intense scenario. Therefore, the touch screen of the mobile terminal can be set to a lower refresh rate to reduce the power consumption of the mobile terminal.
[0078] Please refer to Figure 7 , Figure 7 which shows the Figure 6 flow schematic diagram of an embodiment of step S231 of the touch screen processing method shown in this application. The following will elaborate in detail on the Figure 7 flow shown, and the method may specifically include the following steps:
[0079] Step S2311A: Obtain the angular change value of the mobile terminal within the first preset time period based on the target angular velocity data.
[0080] In some embodiments, after obtaining the target angular velocity data, the mobile terminal can analyze the target angular velocity to obtain the angular change value of the mobile terminal within the first preset duration based on the target angular velocity data. Herein, the first preset duration can be automatically set by the mobile terminal or manually set by the user, which is not limited herein. Additionally, the time length of the first preset duration can be 1 s, 2 s, etc. Optionally, the time length of the first preset duration is 1 s. The angular change value can be the difference between the maximum angular value and the minimum angular value of the mobile terminal within the first preset duration. For example, if the maximum angular value of the mobile terminal within the first preset duration is 30 degrees and the minimum angular value is 20 degrees, then the angular change value is 10 degrees.
[0081] In some embodiments, the mobile terminal pre-sets and stores an angular threshold, which is used as the basis for judging the angular change value of the mobile terminal within the first preset duration. Therefore, in this embodiment, after obtaining the angular change value of the mobile terminal within the first preset duration, the angular change value of the mobile terminal within the first preset duration can be compared with the angular threshold. When the comparison result indicates that the angular change value of the mobile terminal within the first preset duration is greater than the angular threshold, it can be considered that the shaking amplitude of the mobile terminal is large and the user's demand for the refresh rate or reporting rate of the touch screen is high, and it can be determined that the target angular velocity data of the mobile terminal meets the specified conditions, and the touch screen can be correspondingly controlled to adopt a larger refresh rate or reporting rate; when the comparison result indicates that the angular change value of the mobile terminal within the first preset duration is not greater than the angular threshold, it can be considered that the shaking amplitude of the mobile terminal is small and the user's demand for the refresh rate or reporting rate of the touch screen is low, and it can be determined that the target angular velocity data of the mobile terminal does not meet the specified conditions, and the touch screen can be correspondingly controlled to adopt a smaller refresh rate or reporting rate.
[0082] In some embodiments, the first preset duration can be 1 s and the angular threshold can be 7 degrees. That is to say, when the angular change value of the mobile terminal within 1 s is greater than 7 degrees, it can be determined that the angular change value is greater than the angular threshold; when the angular change value of the mobile terminal within 1 s is not greater than 7 degrees, it can be determined that the angular change value is not greater than the angular threshold.
[0083] Step S2312A: When the angular change value is greater than the angular threshold, it is determined that the target angular velocity data meets the specified conditions.
[0084] Step S2313A: When the angular change value is not greater than the angular threshold, it is determined that the target angular velocity data does not meet the specified conditions.
[0085] Please refer to Figure 8 , Figure 8 which shows the Figure 6Flow diagram of another embodiment of step S231 of the touch screen processing method shown below. The following will be specifically described for Figure 8 the flow shown, and the method may specifically include the following steps:
[0086] Step S2311B: Obtain the number of shakes of the mobile terminal within a second preset duration based on the target angular velocity data.
[0087] In some embodiments, after the mobile terminal obtains the target angular velocity data, it can analyze the target angular velocity to obtain the number of shakes of the mobile terminal within a second preset duration based on the target angular velocity data. Among them, the second preset duration can be automatically set by the mobile terminal or manually set by the user, which is not limited here. In addition, the time length of the second preset duration can be 1s, 2s, 3s, etc. Optionally, the time length of the first preset duration is 3s.
[0088] In some embodiments, the mobile terminal pre-sets and stores a number threshold, which is used as a basis for judging the number of shakes of the mobile terminal within a second preset duration. Therefore, in this embodiment, after obtaining the number of shakes of the mobile terminal within a second preset duration, the number of shakes of the mobile terminal within a second preset duration can be compared with the number threshold. When the comparison result indicates that the number of shakes of the mobile terminal within a second preset duration is greater than the number threshold, it can be considered that the shaking frequency of the mobile terminal is relatively high, and the user's demand for the refresh rate or reporting rate of the touch screen is relatively high. It can be determined that the target angular velocity data of the mobile terminal meets the specified conditions, and the touch screen can be correspondingly controlled to adopt a larger refresh rate or reporting rate; when the comparison result indicates that the number of shakes of the mobile terminal within a second preset duration is not greater than the number threshold, it can be considered that the shaking frequency of the mobile terminal is relatively low, and the user's demand for the refresh rate or reporting rate of the touch screen is relatively low. It can be determined that the target angular velocity data of the mobile terminal does not meet the specified conditions, and the touch screen can be correspondingly controlled to adopt a smaller refresh rate or reporting rate.
[0089] In some embodiments, the second preset duration can be 3s, and the number threshold can be 4 times. That is to say, when the number of shakes of the mobile terminal within 3s is greater than 4 times, it can be determined that the number of shakes is greater than the number threshold. When the number of shakes of the mobile terminal within 3s is not greater than the number threshold, it can be determined that the number of shakes is not greater than the number threshold.
[0090] Step S2312B: When the number of shakes is greater than the number threshold, determine that the target angular velocity data meets the specified conditions.
[0091] Step S2313B: When the number of shakes is not greater than the number threshold, determine that the target angular velocity data does not meet the specified conditions.
[0092] Please refer to Figure 9 , Figure 9 which shows a schematic flowchart of still another embodiment of step S231 of the touch screen processing method shown in the present application. The following will elaborate in detail on the Figure 6 flow shown. The method may specifically include the following steps: Figure 9 The method may specifically include the following steps:
[0093] Step S2311C: Obtain the angle change value of the mobile terminal within a first preset time period based on the target angular velocity data, and obtain the number of shakes of the mobile terminal within a second preset time period.
[0094] In some embodiments, after obtaining the target angular velocity data, the mobile terminal may analyze the target angular velocity to obtain the angle change value of the mobile terminal within a first preset time period based on the target angular velocity data and obtain the number of shakes of the mobile terminal within a second preset time period. Therefore, in this embodiment, after obtaining the angle change value of the mobile terminal within the first preset time period and the number of shakes within the second preset time period, the angle change value of the mobile terminal within the first preset time period may be compared with an angle threshold and the number of shakes of the mobile terminal within the second preset time period may be compared with a number threshold. When the comparison result indicates that the angle change value of the mobile terminal within the first preset time period is greater than the angle threshold and the number of shakes of the mobile terminal within the second preset time period is greater than the number threshold, it may be considered that both the shaking amplitude and the shaking frequency of the mobile terminal are relatively large, and the user's demand for the refresh rate or reporting rate of the touch screen is relatively large. It may be determined that the target angular velocity data of the mobile terminal meets the specified conditions, and the touch screen may be correspondingly controlled to adopt a larger refresh rate or reporting rate; when the comparison result indicates that the angle change value of the mobile terminal within the first preset time period is not greater than the angle threshold or the number of shakes of the mobile terminal within the second preset time period is not greater than the number threshold, it may be considered that the shaking amplitude of the mobile terminal is relatively small or the shaking frequency is relatively small, and the user's demand for the refresh rate or reporting rate of the touch screen is relatively small. It may be determined that the target angular velocity data of the mobile terminal does not meet the specified conditions, and the touch screen may be correspondingly controlled to adopt a smaller refresh rate or reporting rate.
[0095] In some embodiments, when the angle change value of the mobile terminal within 1 s is greater than 7 degrees and the number of shakes within 3 s is greater than 4 times, it may be determined that the target angular velocity data meets the specified conditions. When the angle change value of the mobile terminal within 1 s is not greater than 7 degrees or the number of shakes within 3 s is not greater than 4 times, it may be determined that the target angular velocity data does not meet the specified conditions.
[0096] Step S2312C: When the angle change value is greater than the number threshold and the number of shakes is greater than the number threshold, determine that the target angular velocity data meets the specified conditions.
[0097] Step S2313C: When the angle change value is not greater than the number threshold or the number of shakes is not greater than the number threshold, it is determined that the target angular velocity data does not meet the specified condition.
[0098] Step S232: When the target angular velocity data meets the specified condition, obtain the first target refresh rate corresponding to the target angular velocity data.
[0099] 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. For example, the first target refresh rate may be 90HZ and the second target refresh rate may be 60HZ. Therefore, in this embodiment, when the target angular velocity data meets the specified condition, the refresh rate of the touch screen can be set to a higher refresh rate, that is, the first target refresh rate with a higher refresh rate corresponding to the target angular velocity data can be obtained.
[0100] Step S233: When the target angular velocity data does not meet the specified condition, obtain the second target refresh rate corresponding to the target angular velocity data, where the first target refresh rate is greater than the second target refresh rate.
[0101] In this embodiment, when the target angular velocity data does not meet the specified condition, the refresh rate of the touch screen can be set to a lower refresh rate, that is, the second target refresh rate with a lower refresh rate corresponding to the target angular velocity data can be obtained.
[0102] Step S240: Adjust the refresh rate of the touch screen based on the target refresh rate.
[0103] In some embodiments, after obtaining the target refresh rate, the refresh rate of the touch screen can be adjusted based on the target refresh rate, so as to achieve dynamic adjustment of the refresh rate to balance the usage experience and power consumption of the mobile terminal. For example, after obtaining the target refresh rate, it can 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 can be adjusted to be consistent with the target refresh rate. 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 can be maintained.
[0104] Step S250: When the current refresh rate of the touch screen is the first target refresh rate, detect the status information of the touch screen.
[0105] In some embodiments, 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 status information of the touch screen can be detected. Among them, the status information of the touch screen includes the lit screen state and the screen-off state.
[0106] Step S260: When the status information of the touch screen changes from the screen-on state to the screen-off state, adjust the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate.
[0107] Among them, when it is detected that the status information of the touch screen changes from the screen-on state to the screen-off state, it indicates that there is no content displayed on the current touch screen. Therefore, the current refresh rate of the touch screen can be adjusted from the first target refresh rate to the second target refresh rate to reduce the power consumption of the mobile terminal by reducing the refresh rate of the touch screen.
[0108] For the touch screen processing method provided by another embodiment of this application, when the target application is running in the foreground of the mobile terminal, control the gyroscope to collect angular velocity data, receive the target angular velocity data collected by the gyroscope, obtain the target refresh rate corresponding to the target angular velocity data, and adjust the refresh rate of the touch screen based on the target refresh rate. When the current refresh rate of the touch screen is the first target refresh rate, detect the status information of the touch screen. When the status information of the touch screen changes from the screen-on state to the screen-off state, adjust the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate. Compared with Figure 1 the shown touch screen processing method, this embodiment also controls the gyroscope to collect angular velocity data when the target application is running in the foreground of the mobile terminal to improve the applicability of the scenario. In addition, in this embodiment, when the status information of the touch screen changes from the screen-on state to the screen-off state, the current refresh rate of the touch screen is reduced to reduce the power consumption of the mobile terminal.
[0109] Please refer to Figure 10 , Figure 10 shows a schematic flowchart of a touch screen processing method provided by another embodiment of this application. This method is applied to the above-mentioned mobile terminal, which includes a touch screen and a gyroscope. The following will elaborate on the Figure 10 shown process in detail. The method may specifically include the following steps:
[0110] Step S310: When the target application is running in the foreground of the mobile terminal, control the gyroscope to collect the angular velocity data.
[0111] Step S320: Receive the target angular velocity data collected by the gyroscope.
[0112] Among them, for the specific descriptions of steps S310 - S320, please refer to steps S210 - S220, which will not be elaborated here.
[0113] Step S330: Obtain the target reporting rate corresponding to the target angular velocity data.
[0114] In this embodiment, the target working mode includes a target reporting rate. Therefore, after obtaining the target angular velocity data, the target reporting rate corresponding to the target angular velocity data can be obtained based on the target angular velocity data. The method for obtaining the target reporting rate can refer to the method for obtaining the target working mode, which will not be elaborated here.
[0115] Please refer to Figure 11 , Figure 11 which shows the Figure 10 flow chart of step S330 of the touch screen processing method shown in. The following will elaborate in detail on the Figure 11 flow shown in. The method may specifically include the following steps:
[0116] Step S331: Determine whether the target angular velocity data meets the specified condition.
[0117] For the specific description of step S331, please refer to step S231, which will not be elaborated here.
[0118] Step S332: When the target angular velocity data meets the specified condition, obtain the first target reporting rate corresponding to the target angular velocity data.
[0119] 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. For example, the first target reporting rate may be 180HZ, and the second target reporting rate may be 100HZ. Therefore, in this embodiment, when the target angular velocity data meets the specified condition, the reporting rate of the touch screen can be set to a higher refresh rate, that is, the first target reporting rate with a higher reporting rate corresponding to the target angular velocity data can be obtained.
[0120] Step S333: When the target angular velocity data does not meet the specified condition, obtain the second target reporting rate corresponding to the target angular velocity data, where the first target reporting rate is greater than the second target reporting rate.
[0121] In this embodiment, when the target angular velocity data does not meet the specified condition, the reporting rate of the touch screen can be set to a lower reporting rate, that is, the second target reporting rate with a lower reporting rate corresponding to the target angular velocity data can be obtained.
[0122] Step S340: Adjust the reporting rate of the touch screen based on the target reporting rate.
[0123] In some embodiments, after obtaining the target reporting rate, the reporting rate of the touch screen can be adjusted based on the target reporting rate, so as to achieve dynamic adjustment of the reporting rate and balance the usage experience and power consumption of the mobile terminal. For example, after obtaining the target reporting rate, it can be determined whether the current reporting rate of the touch screen is the same as the target reporting rate. When the current reporting rate of the touch screen is different from the target reporting rate, the current reporting rate of the touch screen can be adjusted to be the same as the target reporting rate. When the current reporting rate of the touch screen is the same as the target reporting rate, the current reporting rate of the touch screen can be maintained.
[0124] Step S350: When the current reporting rate of the touch screen is the second target reporting rate, detect the touch operation acting on the touch screen.
[0125] In some embodiments, when the current reporting rate of the touch screen is the second target reporting rate, that is, when the current reporting rate of the touch screen is set to a relatively low reporting rate, the touch operation acting on the touch screen can be detected.
[0126] Step S360: When a touch operation acting on the touch screen is detected, adjust the current reporting rate of the touch screen from the second target reporting rate to the first target reporting rate.
[0127] Among them, when a touch operation acting on the touch screen is detected, it indicates that the user is currently touching the touch screen. For example, the user is clicking, pressing, swiping, etc. on the touch screen. Therefore, the current reporting rate of the touch screen can be adjusted from the second target reporting rate to the first target reporting rate to improve the sensitivity of the user operation by increasing the reporting rate of the touch screen, thereby achieving the effect of improving the user experience.
[0128] Step S370: Continuously detect the touch operation acting on the touch screen within a preset duration.
[0129] In some embodiments, when the reporting rate of the touch screen of the mobile terminal is adjusted from the second target reporting rate to the first target reporting rate and during the operation based on the first target reporting rate, the touch operation acting on the touch screen can be continuously detected within a preset duration to determine whether there is a touch operation acting on the touch screen within the preset duration. Among them, the preset duration can be automatically set by the mobile terminal or manually set by the user, which is not limited herein. In addition, the time length of the preset duration can be 10 minutes, 20 minutes, etc., which is not limited herein.
[0130] Step S380: When no touch operation acting on the touch screen is detected within the preset duration, switch the current reporting rate of the touch screen from the first target reporting rate to the second target reporting rate.
[0131] Among them, when no touch operation acting on the touch screen is detected within a preset duration, it indicates that the user has not touched the touch screen for a long time. Therefore, the current reporting rate of the touch screen can be switched from the first target reporting rate to the second target reporting rate, so as to reduce the power consumption of the mobile terminal by reducing the reporting rate of the touch screen.
[0132] The touch screen processing method provided by another embodiment of this application, when the target application is running in the foreground of the mobile terminal, when the target application is running in the foreground of the mobile terminal, control the gyroscope to collect angular velocity data, receive the target angular velocity data collected by the gyroscope, obtain the target reporting rate corresponding to the target angular velocity data, and perform overall adjustment on the reporting rate of the touch screen based on the target reporting rate. When the current reporting rate of the touch screen is the second target reporting rate, detect the touch operation acting on the touch screen. When a touch operation acting on the touch screen is detected, adjust the current reporting rate of the touch screen from the second target reporting rate to the first target reporting rate, continuously detect the touch operation acting on the touch screen within a preset duration. When no touch operation acting on the touch screen is detected within the preset duration, switch the current reporting rate of the touch screen from the first target reporting rate to the second target reporting rate. Compared with Figure 1 the touch screen processing method shown, this embodiment also controls the gyroscope to collect angular velocity data when the target application is running in the foreground of the mobile terminal to improve the applicability of the scenario. In addition, this embodiment also increases the reporting rate of the touch screen when a touch operation acting on the touch screen is detected, and decreases the reporting rate of the touch screen when no touch operation is detected for a continuous preset duration, so as to balance the reporting rate and power consumption of the touch screen.
[0133] Please refer to Figure 12 , Figure 12 which shows the module block diagram of the touch screen processing device 200 provided by the embodiment of this application. This touch screen processing device 200 is applied to the above-mentioned mobile terminal. The mobile terminal includes a touch screen and a gyroscope. The following will be described with respect to Figure 12 the block diagram shown. The touch screen processing device 200 includes: an angular velocity data receiving module 210, a target working mode obtaining module 220, and a working mode adjusting module 230, where:
[0134] The angular velocity data receiving module 210 is configured to receive the target angular velocity data collected by the gyroscope.
[0135] The target working mode obtaining module 220 is configured to obtain the target working mode corresponding to the target angular velocity data.
[0136] Further, the target working mode obtaining module 220 includes: a specified condition judging sub-module, a first target refresh rate obtaining sub-module, and a second target refresh rate obtaining sub-module, where:
[0137] A specified condition judgment sub-module, configured to judge whether the target angular velocity data meets the specified conditions.
[0138] A first target refresh rate acquisition sub-module, configured to acquire a first target refresh rate corresponding to the target angular velocity data when the target angular velocity data meets the specified conditions.
[0139] A second target refresh rate acquisition sub-module, configured to acquire a second target refresh rate corresponding to the target angular velocity data when the target angular velocity data does not meet the specified conditions, where the first target refresh rate is greater than the second target refresh rate.
[0140] Further, the target working mode acquisition module 220 further includes: a status information detection sub-module and a refresh rate adjustment sub-module, where:
[0141] A status information detection sub-module, configured to detect the status information of the touch screen when the current refresh rate of the touch screen is the first target refresh rate.
[0142] A refresh rate adjustment sub-module, configured to adjust the current refresh rate of the touch screen from the first target refresh rate to the second target refresh rate when the status information of the touch screen switches from the lit screen state to the off screen state.
[0143] Further, the target working mode acquisition module 220 includes: a specified condition judgment sub-module, a first target reporting rate acquisition sub-module, and a second target reporting rate acquisition sub-module, where:
[0144] A specified condition judgment sub-module, configured to judge whether the target angular velocity data meets the specified conditions.
[0145] Further, the specified condition judgment sub-module includes: an angle change value acquisition unit, a first specified condition determination unit, and a second specified condition determination unit, where:
[0146] An angle change value acquisition unit, configured to acquire an angle change value of the mobile terminal within a first preset time period based on the target angular velocity data.
[0147] A first specified condition determination unit, configured to determine that the target angular velocity data meets the specified conditions when the angle change value is greater than an angle threshold.
[0148] A second specified condition determination unit, configured to determine that the target angular velocity data does not meet the specified conditions when the angle change value is not greater than the angle threshold.
[0149] Further, the specified condition judgment sub-module includes: a shaking times acquisition unit, a third specified condition determination unit, and a fourth specified condition determination unit, where:
[0150] The shaking times acquisition unit is configured to acquire the number of shaking times of the mobile terminal within a second preset duration based on the target angular velocity data.
[0151] The third specified condition determination unit is configured to determine that the target angular velocity data meets the specified condition when the number of shaking times is greater than the number threshold.
[0152] The fourth specified condition determination unit is configured to determine that the target angular velocity data does not meet the specified condition when the number of shaking times is not greater than the number threshold.
[0153] 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, where:
[0154] The parameter acquisition unit is configured to acquire the angular change value of the mobile terminal within a first preset duration based on the target angular velocity data, and acquire the number of shaking times of the mobile terminal within a second preset duration.
[0155] The fifth specified condition determination unit is configured to determine that the target angular velocity data meets the specified condition when the angular change value is greater than the number threshold and the number of shaking times is greater than the number threshold.
[0156] The sixth specified condition determination unit is configured to determine that the target angular velocity data does not meet the specified condition when the angular change value is not greater than the number threshold or the number of shaking times is not greater than the number threshold.
[0157] The first target reporting rate acquisition sub-module is configured to acquire a first target reporting rate corresponding to the target angular velocity data when the target angular velocity data meets the specified condition.
[0158] The second target reporting rate acquisition sub-module is configured to acquire a second target reporting rate corresponding to the target angular velocity data when the target angular velocity data does not meet the specified condition, where the first target reporting rate is greater than the second target reporting rate.
[0159] Further, the target working mode acquisition module 220 includes: a first touch operation detection sub-module, a first reporting rate adjustment sub-module, a second touch operation detection sub-module, and a second reporting rate adjustment sub-module, where:
[0160] The first touch operation detection sub-module is configured to detect a touch operation applied to the touch screen when the current reporting rate of the touch screen is the second target reporting rate.
[0161] The first reporting point rate adjustment sub-module is used to adjust the current reporting point rate of the touch screen from the second target reporting point rate to the first target reporting point rate when a touch operation acting on the touch screen is detected.
[0162] The second touch operation detection sub-module is used to continuously detect the touch operation acting on the touch screen within a preset time period.
[0163] The second reporting point rate adjustment sub-module is used to switch the current reporting point rate of the touch screen from the first target reporting point rate to the second target reporting point rate when no touch operation acting on the touch screen is detected within the preset time period.
[0164] The working mode adjustment module 230 is used to adjust the working mode of the touch screen based on the target working mode.
[0165] Further, the target working mode includes a target refresh rate, and the working mode adjustment module 230 includes:
[0166] The refresh rate adjustment sub-module is used to adjust the refresh rate of the touch screen based on the target refresh rate.
[0167] Further, the target working mode includes a target reporting point rate, and the working mode adjustment module 230 includes:
[0168] The reporting point rate adjustment sub-module is used to adjust the reporting point rate of the touch screen based on the target reporting point rate.
[0169] Further, the touch screen processing device 200 further includes: an acquisition control module, where:
[0170] The acquisition control module is used to control the gyroscope to acquire the angular velocity data when the target application program is running in the foreground of the mobile terminal.
[0171] Further, the acquisition control module includes: a type acquisition sub-module, a type judgment sub-module, and a first acquisition control sub-module, where:
[0172] The type acquisition sub-module is used to acquire the type of the application program when the application program is running in the foreground of the mobile terminal.
[0173] The type judgment sub-module is used to judge whether the type is a specified type.
[0174] The first acquisition control sub-module is used to control the gyroscope to acquire the target angular velocity data when the type is the specified type.
[0175] Further, the acquisition control module includes: a second acquisition control sub-module, where:
[0176] The second acquisition control sub-module is configured to control the gyroscope to acquire angular velocity data as target angular velocity data at a specified duration when the target application is running in the foreground of the mobile terminal.
[0177] Further, the acquisition control module includes: a display status detection sub-module and a third acquisition control sub-module, where:
[0178] The display status detection sub-module is configured to detect the display status of the touch screen when the target application is running in the foreground of the mobile terminal.
[0179] Further, the display status detection sub-module includes: a touch operation detection unit and a display status display unit, where:
[0180] The touch operation detection unit is configured to detect a touch operation on the first side wall of the mobile terminal when the target application is running in the foreground of the mobile terminal, and the first side wall is perpendicular to the length direction of the mobile terminal.
[0181] The display status determination unit is configured to determine that the display status of the touch screen is a landscape display status when a touch operation on the first side wall is detected.
[0182] The third acquisition control sub-module is configured to control the gyroscope to acquire the angular velocity data when the display status of the touch screen is detected to be a landscape display status.
[0183] Those skilled in the art can clearly understand that for the convenience and conciseness of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0184] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.
[0185] In addition, in each embodiment of the present application, the various functional modules may be integrated in one processing module, or each module may exist physically alone, or two or more modules may be integrated in one module. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of software functional modules.
[0186] Please refer to Figure 13, which shows a structural block diagram of a mobile terminal 100 provided by an embodiment of the present application. The mobile terminal 100 may be a mobile terminal capable of running application programs such as a smart phone, a tablet computer, an e-book, etc. 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 application programs, where one or more application programs may be stored in the memory 120 and configured to be executed by one or more processors 110, and one or more programs are configured to execute the methods described in the foregoing method embodiments.
[0187] Among them, the processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts within the entire mobile terminal 100, and by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and by calling data stored in the memory 120, it executes various functions of the mobile terminal 100 and processes data. Optionally, the processor 110 may be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 110 may integrate a combination of one or several of a central processing unit (CPU), a graphics processing unit (GPU), and a modem, etc. Among them, the CPU mainly processes the operating system, user interface, application programs, etc.; the GPU is responsible for rendering and drawing the content to be displayed; the modem is used to process wireless communication. It can be understood that the above modem may not be integrated into the processor 110 and may be implemented separately by a communication chip.
[0188] The memory 120 may include random access memory (RAM), and may also include read-only memory. The memory 120 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store instructions for implementing the operating system, instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data created during the use of the terminal 100 (such as phone book, audio and video data, chat record data, etc.).
[0189] The touch screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the mobile terminal 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof. In one example, the touch screen 130 can be a liquid crystal display (LCD) or an organic light-emitting diode (OLED), which is not limited herein.
[0190] Please refer to Figure 14 , which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. Program code is stored in the computer-readable medium 300, and the program code can be called by a processor to execute the method described in the above method embodiment.
[0191] The computer-readable storage medium 300 can 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. Optionally, the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 300 has a storage space for the program code 310 that executes any method step in the above method. These program codes can be read from or written into one or more computer program products. The program code 310 can be compressed in an appropriate form, for example.
[0192] In summary, for the touch screen processing method, device, mobile terminal, and storage medium provided by the embodiments of the present application, target angular velocity data collected by a gyroscope is received, a target working mode corresponding to the target angular velocity data is obtained, and the working mode of the touch screen is adjusted based on the target working mode. Thus, 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, and the working mode of the mobile terminal is adjusted based on the target working mode, thereby realizing dynamic adjustment of the working mode to balance the usage experience and power consumption of the mobile terminal.
[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not intended to limit them. Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or perform equivalent replacements for some of the technical features. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A touch screen processing method, characterized in that, Applied to a mobile terminal, the mobile terminal includes a touch screen and a gyroscope, and the method includes: When a target application is running in the foreground of the mobile terminal, the gyroscope is controlled to collect angular velocity data, wherein the application type corresponding to the target application is a game type; Receiving target angular velocity data collected by the gyroscope; Acquire a target operating mode corresponding to the target angular velocity data; Wherein, the acquiring of the target operating mode corresponding to the target angular velocity data includes: Determining whether the target angular velocity data meets a specified condition; Wherein, the determining whether the target angular velocity data meets a specified condition includes: Acquire an angle change value of the mobile terminal within a first preset time period based on the target angular velocity data, and acquire a number of shakes of the mobile terminal within a second preset time period; When the angle change value is greater than the angle threshold and the shaking times are greater than the times threshold, it is determined that the user operates the game character to enter an intense game scene, and it is determined that the target angular velocity data meets the specified condition; When the angle change value is not greater than the angle threshold or the shaking number is not greater than the number threshold, it is determined that the user has not operated the game character to enter an intense game scene, and it is determined that the target angular velocity data does not meet the specified condition; When the target angular velocity data satisfies the specified condition, acquiring a first target refresh rate corresponding to the target angular velocity data; 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; Adjusting the operating mode of the touch screen based on the target operating mode; The target operating mode includes a target refresh rate, and the adjusting the operating mode of the touch screen based on the target operating mode includes: The refresh rate of the touch screen is adjusted based on the target refresh rate.
2. The method according to claim 1, wherein After the operating mode of the touch screen is adjusted based on the target operating mode, the method further includes: When the current refresh rate of the touch screen is the first target refresh rate, detecting state information of the touch screen; When the status information of the touch screen is switched from the screen-on state to the screen-off state, the current refresh rate of the touch screen is adjusted from the first target refresh rate to the second target refresh rate.
3. The method according to claim 1, wherein The target working mode includes a target reporting rate, and the adjusting the working mode of the touch screen based on the target working mode includes: The reporting rate of the touch screen is adjusted based on the target reporting rate.
4. The method according to claim 3, characterized in that, The acquiring of the target operating mode corresponding to the target angular velocity data comprises: Determining whether the target angular velocity data meets a specified condition; When the target angular velocity data satisfies the specified condition, obtaining a first target reporting rate corresponding to the target angular velocity data; When the target angular velocity data does not satisfy the specified condition, a second target reporting rate corresponding to the target angular velocity data is obtained, wherein the first target reporting rate is greater than the second target reporting rate.
5. The method according to claim 4, wherein After adjusting the reporting rate of the touch screen based on the target reporting rate, it further includes: When the current reporting rate of the touch screen is the second target reporting rate, detect the touch operation on the touch screen; When detecting a touch operation on the touch screen, adjust the current reporting rate of the touch screen from the second target reporting rate to the first target reporting rate.
6. The method according to claim 5, wherein After adjusting the reporting rate of the touch screen to the first target reporting rate when detecting a touch operation on the touch screen, it further includes: Continuously detect the touch operation on the touch screen within a preset duration; When no touch operation on the touch screen is detected within the preset duration, switch the current reporting rate of the touch screen from the first target reporting rate to the second target reporting rate.
7. The method according to claim 1 or 4, characterized in that, The judging whether the target angular velocity data meets the specified condition includes: Obtain the angle change value of the mobile terminal within a first preset duration based on the target angular velocity data; When the angle change value is greater than the angle threshold, determine that the target angular velocity data meets the specified condition; When the angle change value is not greater than the angle threshold, determine that the target angular velocity data does not meet the specified condition.
8. The method according to claim 1 or 4, characterized in that, The judging whether the target angular velocity data meets the specified condition includes: Obtain the number of shakes of the mobile terminal within a second preset duration based on the target angular velocity data; When the number of shakes is greater than the number threshold, determine that the target angular velocity data meets the specified condition; When the number of shakes is not greater than the number threshold, determine that the target angular velocity data does not meet the specified condition.
9. The method according to any one of claims 1-6, characterized in that, When the target application program is running in the foreground of the mobile terminal, controlling the gyroscope to collect target angular velocity data includes: When an application program is running in the foreground of the mobile terminal, obtain the type of the application program; Judge whether the type is a specified type; When the type is a specified type, control the gyroscope to collect the target angular velocity data.
10. The method according to claim 9, characterized in that, The specified type includes the game type.
11. The method according to any one of claims 1-6, characterized in that, When the target application program is running in the foreground of the mobile terminal, controlling the gyroscope to collect the angular velocity data includes: When the target application program is running in the foreground of the mobile terminal, control the gyroscope to collect angular velocity data as target angular velocity data at a specified duration.
12. The method according to any one of claims 1-6, characterized in that, When the target application program is running in the foreground of the mobile terminal, controlling the gyroscope to collect the angular velocity data includes: When the target application program is running in the foreground of the mobile terminal, detect the display state of the touch screen; When detecting that the display state of the touch screen is the landscape display state, control the gyroscope to collect the angular velocity data.
13. The method according to claim 12, characterized in that, When the target application program is running in the foreground of the mobile terminal, detecting the display state of the touch screen includes: When the target application program is running in the foreground of the mobile terminal, detect the touch operation on the first side wall of the mobile terminal, and the first side wall is perpendicular to the length direction of the mobile terminal; When a touch operation acting on the first sidewall is detected, determine that the display state of the touch screen is a landscape display state.
14. A touch screen processing device, characterized in that, Applied to a mobile terminal, the mobile terminal includes a touch screen and a gyroscope, and the device includes: An acquisition control module, configured to control the gyroscope to acquire angular velocity data when the target application is running in the foreground of the mobile terminal, where the application type corresponding to the target application is a game type; An angular velocity data receiving module, configured to receive the target angular velocity data acquired by the gyroscope; A target working mode obtaining module, configured to obtain a target working mode corresponding to the target angular velocity data; Wherein, the target working mode obtaining module includes: A specified condition judging sub-module, configured to judge whether the target angular velocity data meets the specified condition; Wherein, the specified condition judging sub-module includes: A parameter obtaining unit, configured to obtain an angle change value of the mobile terminal within a first preset duration based on the target angular velocity data, and obtain the number of times the mobile terminal shakes within a second preset duration; A fifth specified condition determining unit, configured to determine that the user operates the game character to enter an intense game scene and determine that the target angular velocity data meets the specified condition when the angle change value is greater than an angle threshold and the number of times of shaking is greater than a number threshold; A sixth specified condition determining unit, configured to determine that the user does not operate the game character to enter an intense game scene and determine that the target angular velocity data does not meet the specified condition when the angle change value is not greater than the angle threshold or the number of times of shaking is not greater than the number threshold; A first target refresh rate obtaining sub-module, configured to obtain a first target refresh rate corresponding to the target angular velocity data when the target angular velocity data meets the specified condition; 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 meet the specified condition, where the first target refresh rate is greater than the second target refresh rate; A working mode adjustment module, configured to adjust the working mode of the touch screen based on the target working mode; Wherein, the target working mode includes a target refresh rate, and the working mode adjustment module includes: A refresh rate adjustment sub-module, configured to adjust the refresh rate of the touch screen based on the target refresh rate.
15. A mobile terminal, characterized in that, Including a touch screen, a gyroscope, a memory, and a processor, 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 executes the method according to any one of claims 1-13.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores program code, and the program code can be called by the processor to execute the method according to any one of claims 1-13.
Citation Information
Patent Citations
Method and device for recognizing display scenes of mobile terminals and mobile terminal
CN106919400A
Display screen refreshing rate adjusting method and device and virtual reality device
CN109473082A