CN107402625B - Touch screen scanning method and device, terminal and computer readable storage medium - Google Patents

Touch screen scanning method and device, terminal and computer readable storage medium Download PDF

Info

Publication number
CN107402625B
CN107402625B CN201710633593.9A CN201710633593A CN107402625B CN 107402625 B CN107402625 B CN 107402625B CN 201710633593 A CN201710633593 A CN 201710633593A CN 107402625 B CN107402625 B CN 107402625B
Authority
CN
China
Prior art keywords
application
touch screen
preset
user
foreground application
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.)
Active
Application number
CN201710633593.9A
Other languages
Chinese (zh)
Other versions
CN107402625A (en
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
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710633593.9A priority Critical patent/CN107402625B/en
Publication of CN107402625A publication Critical patent/CN107402625A/en
Application granted granted Critical
Publication of CN107402625B publication Critical patent/CN107402625B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/324Power saving characterised by the action undertaken by lowering clock frequency
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

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

Abstract

The invention discloses a touch screen scanning method, a touch screen scanning device, a touch screen scanning terminal and a computer readable storage medium. The method comprises the following steps: when a touch operation is received in the touch screen, judging whether a foreground application is a preset application or not, wherein the preset application comprises data to be browsed by a user; if the foreground application is a preset application, starting timing; and when the timing result is greater than a preset time threshold value, reducing the scanning frequency of the touch screen. According to the touch screen scanning method provided by the embodiment of the invention, when the touch operation is received in the touch screen, whether the foreground application is a preset application or not can be judged, wherein the preset application comprises data to be browsed by a user; if the foreground application is a preset application, starting timing; and when the timing result is greater than the preset time threshold, reducing the scanning frequency of the touch screen, and further reducing the scanning frequency of the screen when ensuring that the user normally acquires information, so as to reduce the power consumption of the mobile terminal.

Description

Touch screen scanning method and device, terminal and computer readable storage medium
Technical Field
Embodiments of the present invention relate to a touch screen technology, and in particular, to a touch screen scanning method, an apparatus, a terminal, and a computer-readable storage medium.
Background
With the development of intelligent terminals, mobile terminals such as smart phones and tablet computers are popularized. The intelligent terminal generally obtains input operation of a user through a touch screen. The touch screen in the related art has dual functions of input and output. The touch screen refreshes according to a certain refreshing frequency to realize data output, and scans the operation input by a user according to a certain scanning frequency to realize data input. However, the power consumption of the screen in the above solution is relatively large, and how to reduce the power consumption of the screen is a problem to be solved.
Disclosure of Invention
The invention provides a touch screen scanning method, a touch screen scanning device, a touch screen terminal and a computer readable storage medium, which can reduce the power consumption of a screen.
In a first aspect, an embodiment of the present invention provides a touch screen scanning method, including:
when a touch operation is received in the touch screen, judging whether a foreground application is a preset application or not, wherein the preset application comprises data to be browsed by a user;
if the foreground application is a preset application, starting timing;
and when the timing result is greater than a preset time threshold value, reducing the scanning frequency of the touch screen.
In a second aspect, an embodiment of the present invention further provides a touch screen scanning apparatus, including:
the device comprises a preset application judgment module, a foreground application judgment module and a display module, wherein the preset application judgment module is used for judging whether foreground application is preset application when touch operation is received in a touch screen, and the preset application comprises data to be browsed by a user;
the timing module is used for starting timing if the preset application judgment module judges that the foreground application is the preset application;
and the scanning frequency adjusting module is used for reducing the scanning frequency of the touch screen when the timing result of the timing module is greater than a preset time threshold.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the touch screen scanning method as shown in the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the touch screen scanning method according to the first aspect.
According to the touch screen scanning method provided by the embodiment of the invention, when the touch operation is received in the touch screen, whether the foreground application is a preset application or not can be judged, wherein the preset application comprises data to be browsed by a user; if the foreground application is a preset application, starting timing; and when the timing result is greater than the preset time threshold, reducing the scanning frequency of the touch screen, and further reducing the scanning frequency of the screen when ensuring that the user normally acquires information, so as to reduce the power consumption of the mobile terminal.
Drawings
FIG. 1 is a flowchart of a touch screen scanning method in an embodiment of the present invention;
FIG. 2 is a flow chart of another touch screen scanning method in an embodiment of the invention;
FIG. 3 is a flow chart of another touch screen scanning method in an embodiment of the invention;
FIG. 4 is a flow chart of another touch screen scanning method in an embodiment of the invention;
FIG. 5 is a flow chart of another touch screen scanning method in an embodiment of the invention;
FIG. 6 is a schematic structural diagram of a screen unlocking device in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal in an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
At present, when a user uses a mobile terminal with a touch screen to look up data, the scanning frequency of the touch screen is kept unchanged, and when the user is detected not to input data into an operation room for a long time, the terminal closes a display screen. This has two drawbacks, one is that the user may be reading continuously, and the automatic closing of the screen prevents the user from normal information retrieval. Another drawback is that if the screen is continuously lit, the screen will be continuously scanned at the rated frequency, and the scanned screen will occupy the battery power, shortening the terminal usage time. In order to solve the above problem, the embodiment of the invention reduces the scanning frequency of the touch screen during the screen lighting period, thereby reducing the power consumption of the terminal. Meanwhile, the power consumption is reduced when the screen is on, so that the lighting time of the screen can be prolonged, and the information acquisition requirement of a user is met.
Fig. 1 is a flowchart of a touch screen scanning method according to an embodiment of the present invention, where the method is applied to a terminal with a touch screen, such as a smart phone, a tablet computer, a notebook computer, a personal computer, and the like. The method is suitable for the condition that the terminal displays data in a bright screen mode, and specifically comprises the following steps:
and step 110, judging whether the foreground application is a preset application or not when the touch operation is received in the touch screen.
The preset application comprises data to be browsed by a user. The data to be browsed can be multimedia data or picture data or text data. The touch operation includes a click operation or a slide operation input by the user in the touch screen. The click operation includes a single-finger click or a multi-point click. The sliding operation includes a single-finger slide or a multi-finger slide. The foreground application may be the application currently displayed in the screen.
A plurality of applications may be predefined as preset applications. The predefinition may determine the preset application from a programmer-specified or user-specified application. Alternatively, the installed video application, the installed music application, and the installed electronic book application are determined as the predetermined applications. When the foreground calls the application, if the application is a predefined application, the foreground application is determined to be a preset application.
Whether the foreground application is the preset application or not can be judged by any one or a combination of a plurality of modes:
in one implementation, as shown in FIG. 2, step 110 may be implemented by:
step 101a, judging whether the current interface of the foreground application contains multimedia data.
The multimedia data includes audio data or video data. The current application may not be an application dedicated to playing multimedia data, but if the current application is calling or playing multimedia data, it is determined that the multimedia application is included in the current interface. Wherein the calling means that the multimedia data is in a buffered state.
Illustratively, when a user browses data through a browser, it is determined whether video data exists in a current page. When a user browses information through social applications such as microblogs and WeChat, whether video data exist in a current page or not is judged.
Step 102a, if the current interface of the foreground application contains multimedia data, determining the foreground application as a preset application.
And if the current interface of the foreground application contains one or more multimedia data, determining the foreground application as a preset application. The multimedia data is the media data which is played or buffered.
Step 103a, determining the leader time length or the prelude time length of the multimedia data as a preset time threshold value.
And analyzing the multimedia data, and if the multimedia data is video data, calculating the slice header duration of the multimedia data. For video data, if a plurality of content extraction points are carried in the attribute parameters of the video data, an extraction point at which a movie starts is searched for from the plurality of content extraction points. The content extraction points may be extraction points added to the movie by the multimedia provider, each extraction point corresponding to a plurality of watching intensity points of the movie, such as extraction points for formal start of the movie and extraction points for turns of the plot or climax of the plot.
If the multimedia data is music data, the introduction time length is calculated. The prelude may be audio data of the song before the character's sound wave appears. Or, determining the fixed preset time length as the introduction time length. The preset time period may be 5 to 20 seconds, preferably 10 seconds.
And 104a, if the current interface of the foreground application does not contain multimedia data, scanning according to a conventional scanning mode.
The conventional scanning mode is that the scanning frequency of the screen at any stage of the multimedia data playing is not changed.
According to the method and the device, the application containing the multimedia data in the interface can be determined as the preset application, and the user rarely performs other operations such as input and the like when browsing the multimedia data, so that the power consumption can be reduced while the user operation is not influenced by reducing the scanning frequency of the touch screen.
In another implementation, as shown in fig. 3, step 110 may be implemented by:
and 101b, acquiring historical operating frequency records corresponding to the multimedia data in the foreground application.
Wherein the historical operating frequency record comprises the operating frequency detected when the multimedia data is played.
When a user watches videos or lyrics of songs, the user rarely operates multiple screens. In addition, the operation frequency of the user is low when viewing multimedia data, and the operation frequency of the user is low when viewing text data such as an electronic book. Accordingly, it can be determined whether the current application is a preset application from the operation frequency. At this time, the text data corresponding to the electronic book may be divided into the multimedia data because the electronic book has an automatic page turning function, which is equivalent to an automatically played text file.
The historical operating frequency record may record the user frequency in the background when the user operates the application. Further, the operating frequency of the user in a certain interface of a certain application can be recorded respectively. And comparing the recorded application interfaces applied to the current foreground to find the matched records, thereby realizing the effect of searching the operation frequency corresponding to the current interface.
The operating frequency may be the number of instructions entered by the user per minute. The instruction may be a whole instruction or a part of a specific instruction. The specific instruction may be a character input operation. When the frequency of character input operation of the user is high, the scanning frequency of the touch screen needs to be increased so as to respond to the input operation of the user in time.
And 102b, judging whether the operating frequency corresponding to the currently played multimedia data is less than a preset frequency.
The preset frequency may be a numerical value set by a programmer or a user. The preset frequency for playing the current multimedia data can also be calculated from the use habits of the current user or the practical habits of a plurality of users with the same user attributes as the current user in a machine learning manner. Machine learning may include algorithms such as neural networks.
And 1013b, if the operating frequency corresponding to the currently played multimedia data is less than the preset frequency, determining the foreground application as the preset application.
And 1014b, if the operating frequency corresponding to the currently played multimedia data is greater than the preset frequency, scanning according to a conventional scanning mode.
According to the embodiment, the preset application can be determined according to the click frequency of the multimedia data in the current interface, and the accuracy of determining the preset application is improved.
In yet another implementation, as shown in fig. 4, step 110 may be implemented by:
step 101c, obtaining a historical operation type record corresponding to the current interface of the foreground application, wherein the historical operation type record comprises the operation type detected in the current interface.
The test operation type record comprises the operation once input by the user in the current interface of the current application. At present, video data is played along with a technology called a bullet screen, and the bullet screen technology provides real-time text communication for users, so that text information input by the users can be displayed in video pictures of the users and other users. If the user uses the bullet screen frequently, reducing the screen scan frequency will affect the user input. Therefore, firstly, records of operation types of the user in each interface of the current application are recorded, and historical operation type records are formed.
And 102c, judging whether the operation type comprises comment data input operation or not.
And after the operation type corresponding to the current application current interface is found from the historical operation type record, checking whether the found operation type comprises comment data input operation. The comment data can be bullet screen data, or the comment data can also be comment information input by a user.
And 103c, if the operation type does not include comment data input operation, determining the foreground application as a preset application.
And 104c, if the operation type comprises comment data input operation, scanning according to a conventional scanning mode.
The implementation can determine whether the current application is the preset application according to the operation type, so that the accuracy of determining the preset application is improved.
And step 120, if the foreground application is the preset application, starting timing.
When the current application is determined to be the preset application in step 110, a timer or the like is started. The timing results are stored in a cache.
And step 130, when the timing result is greater than a preset time threshold, reducing the scanning frequency of the touch screen.
And when the timing result is updated, comparing the timing result with a preset time threshold value. And if the timing result is greater than the preset time threshold, reducing the scanning frequency of the touch screen. And if the timing result is smaller than the preset time threshold, waiting for updating of the timing result until the timing result is larger than the preset time threshold. Or deleting the timing result in the cache if the user exits the current interface or the current application.
There are various ways to reduce the scanning frequency of a touch screen. Exemplarily, firstly, the scanning frequency of the touch screen is reduced to a preset proportion of a rated scanning frequency, wherein the preset proportion is less than 1; then, the data in the screen is output according to the preset screen brightness. The preset ratio may be set by a user or a programmer. The predetermined proportion is 10% to 100%, preferably 50%.
Illustratively, the target scanning frequency is determined according to the current residual capacity of the terminal. The remaining charge is proportional to the scanning frequency. For example, the percentage of the remaining capacity to the total capacity is multiplied by the rated sweep frequency to obtain the target sweep frequency. Further, when the remaining capacity is less than twenty percent of the total capacity, the target scanning frequency is continuously fixed at twenty percent of the nominal scanning frequency.
According to the touch screen scanning method provided by the embodiment, when the touch operation is received in the touch screen, whether the foreground application is a preset application or not can be judged, wherein the preset application comprises data to be browsed by a user; if the foreground application is a preset application, starting timing; and when the timing result is greater than the preset time threshold, reducing the scanning frequency of the touch screen, and further reducing the scanning frequency of the screen when ensuring that the user normally acquires information. According to the embodiment of the invention, the scanning frequency of the touch screen is reduced during the lightening period of the screen, so that the power consumption of the terminal is reduced. Meanwhile, the power consumption is reduced when the screen is on, so that the lighting time of the screen can be prolonged, and the information acquisition requirement of a user is met.
Fig. 5 is a flowchart of another touch screen scanning method according to an embodiment of the present invention, which is further described in the foregoing embodiment, and includes:
step 210, when the touch operation is received in the touch screen, determining whether the foreground application is a preset application.
Step 220, if the foreground application is a preset application, starting timing.
And step 230, when the timing result is greater than a preset time threshold, reducing the scanning frequency of the touch screen.
And 240, if the touch operation input by the user is received, increasing the scanning frequency of the touch screen.
Increasing the scanning frequency of the touch screen includes restoring the scanning frequency to the original scanning frequency before step 230, or increasing to a scanning frequency that is less than the original scanning frequency and greater than the reduced scanning frequency, or increasing to a scanning frequency that is greater than the original scanning frequency.
The touch operation received from the user may be implemented as: receiving touch operation input by a user on a touch screen; alternatively, a shake operation input by the user through the acceleration sensor is received.
The user may input a touch operation on the touch screen through a slide operation or a click operation. The user can also input a shaking operation by shaking the phone. In one implementation, a user places a mobile phone on a cradle to watch a movie, and when the user needs to view other applications or messages in the mobile terminal, the user picks up the mobile terminal, and a shake operation is triggered.
According to the embodiment, after the scanning frequency is reduced, the scanning frequency can be increased in time according to the touch operation input by the user, and the usability of the touch screen is improved.
Fig. 6 is a schematic structural diagram of a touch screen scanning apparatus according to an embodiment of the present invention, where the apparatus is configured to implement the method according to the embodiment, and the apparatus is located in a mobile terminal, and includes:
the preset application judging module 310 is configured to, when a touch operation is received in the touch screen, judge whether a foreground application is a preset application, where the preset application includes data to be browsed by a user;
a timing module 320, configured to start timing if the preset application determining module 310 determines that the foreground application is a preset application;
a scanning frequency adjusting module 330, configured to reduce the scanning frequency of the touch screen when the timing result of the timing module 320 is greater than a preset time threshold.
Further, the preset application determining module 310 is configured to:
judging whether the current interface of the foreground application contains multimedia data or not;
if the current interface of the foreground application contains multimedia data, determining the foreground application as a preset application;
and determining the leader time length or the prelude time length of the multimedia data as the preset time threshold.
Further, the preset application determining module 310 is configured to:
obtaining a historical operating frequency record corresponding to multimedia data in the foreground application, wherein the historical operating frequency record comprises the operating frequency detected when the multimedia data is played;
judging whether the operating frequency corresponding to the currently played multimedia data is less than a preset frequency or not;
and if the operating frequency corresponding to the currently played multimedia data is less than the preset frequency, determining the foreground application as the preset application.
Further, the preset application determining module 310 is configured to:
obtaining a historical operation type record corresponding to the current interface of the foreground application, wherein the historical operation type record comprises the operation type detected in the current interface;
judging whether the operation type comprises comment data input operation or not;
and if the operation type does not comprise comment data input operation, determining the foreground application as a preset application.
Further, the scan frequency adjustment module 330 is further configured to:
and if the touch operation input by the user is received, increasing the scanning frequency of the touch screen.
Further, the scan frequency adjustment module 330 is further configured to:
receiving touch operation input by a user on a touch screen; alternatively, the first and second electrodes may be,
receiving a shaking operation input by a user through the acceleration sensor.
Further, the scan frequency adjustment module 330 is configured to:
reducing the scanning frequency of the touch screen to a preset proportion of a rated scanning frequency, wherein the preset proportion is less than 1;
and outputting the data in the screen according to the preset screen brightness.
According to the touch screen scanning method provided by the embodiment, when the touch operation is received in the touch screen, whether the foreground application is a preset application or not can be judged, wherein the preset application comprises data to be browsed by a user; if the foreground application is a preset application, starting timing; and when the timing result is greater than the preset time threshold, reducing the scanning frequency of the touch screen, and further reducing the scanning frequency of the screen when ensuring that the user normally acquires information. According to the embodiment of the invention, the scanning frequency of the touch screen is reduced during the lightening period of the screen, so that the power consumption of the terminal is reduced. Meanwhile, the power consumption is reduced when the screen is on, so that the lighting time of the screen can be prolonged, and the information acquisition requirement of a user is met.
The device can execute the methods provided by all the embodiments of the invention, and has corresponding functional modules and beneficial effects for executing the methods. For details not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present invention.
Fig. 7 is a schematic structural diagram of a terminal according to an embodiment of the present invention. As shown in fig. 7, the terminal may include: a housing (not shown), a first memory 501, a first Central Processing Unit (CPU) 502 (also called a first processor, hereinafter referred to as CPU), a computer program stored in the first memory 501 and operable on the first processor 502, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU502 and the first memory 501 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the first memory 501 is used for storing executable program codes; the CPU502 reads the executable program code stored in the first memory 501 to run a program corresponding to the executable program code, so as to perform:
when a touch operation is received in the touch screen, judging whether a foreground application is a preset application or not, wherein the preset application comprises data to be browsed by a user;
if the foreground application is a preset application, starting timing;
and when the timing result is greater than a preset time threshold value, reducing the scanning frequency of the touch screen.
The above terminal further includes: peripheral interface 503, RF (Radio Frequency) circuitry 505, audio circuitry 506, speakers 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, which communicate via one or more communication buses or signal lines 507.
In addition, the terminal also comprises a camera and an RGB light sensor. The RGB light sensor is located beside the camera and can be arranged adjacent to the camera. The camera can be a front camera or a rear camera. The RGB light sensor may also be arranged separately from the camera, for example on a narrow side of the terminal.
It should be understood that the illustrated terminal 500 is only one example of a terminal, and that the terminal 500 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal for implementing doorbell control according to this embodiment, where the terminal is a smart phone as an example.
A first memory 501, said first memory 501 being accessible by the CPU502, the peripheral interface 503, etc., said first memory 501 may comprise a high speed random access first memory, and may further comprise a non-volatile first memory, such as one or more magnetic disk first storage devices, flash memory devices, or other volatile solid state first storage devices.
A peripheral interface 503, the peripheral interface 503 may connect input and output peripherals of the device to the CPU502 and the first memory 501.
An I/O subsystem 509, the I/O subsystem 509 may connect input and output peripherals on the device, such as a touch screen 512 and other input/control devices 510, to the peripheral interface 503. The I/O subsystem 509 may include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510. Where one or more input controllers 5092 receive electrical signals from or send electrical signals to other input/control devices 510, the other input/control devices 510 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 5092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse. In addition, other input/control devices 510 may include cameras, fingerprint sensors, gyroscopes, etc.
The touch screen 512 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 512 may be classified according to installation methods: external hanging, internal or integral. Classified according to technical principles, the touch screen 512 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 512, which is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 512 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the first processor 502.
The display controller 5091 in the I/O subsystem 509 receives electrical signals from the touch screen 512 or transmits electrical signals to the touch screen 512. The touch screen 512 detects a contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 512, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 512 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 505 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 506 is mainly used to receive audio data from the peripheral interface 503, convert the audio data into an electric signal, and transmit the electric signal to the speaker 511.
And the loudspeaker 511 is used for restoring the voice signal received by the smart sound box from the wireless network through the RF circuit 505 into sound and playing the sound to the user.
And a power management chip 508 for supplying power and managing power to the hardware connected to the CPU502, the I/O subsystem, and the peripheral interfaces.
In this embodiment, the central first processor 502 is configured to:
when a touch operation is received in the touch screen, judging whether a foreground application is a preset application or not, wherein the preset application comprises data to be browsed by a user;
if the foreground application is a preset application, starting timing;
and when the timing result is greater than a preset time threshold value, reducing the scanning frequency of the touch screen.
Further, the determining whether the foreground application is a preset application includes:
judging whether the current interface of the foreground application contains multimedia data or not;
if the current interface of the foreground application contains multimedia data, determining the foreground application as a preset application;
and determining the leader time length or the prelude time length of the multimedia data as the preset time threshold.
Further, the determining whether the foreground application is a preset application includes:
obtaining a historical operating frequency record corresponding to multimedia data in the foreground application, wherein the historical operating frequency record comprises the operating frequency detected when the multimedia data is played;
judging whether the operating frequency corresponding to the currently played multimedia data is less than a preset frequency or not;
and if the operating frequency corresponding to the currently played multimedia data is less than the preset frequency, determining the foreground application as the preset application.
Further, the determining whether the foreground application is a preset application includes:
obtaining a historical operation type record corresponding to the current interface of the foreground application, wherein the historical operation type record comprises the operation type detected in the current interface;
judging whether the operation type comprises comment data input operation or not;
and if the operation type does not comprise comment data input operation, determining the foreground application as a preset application.
Further, after reducing the scanning frequency of the touch screen, the method further comprises:
and if the touch operation input by the user is received, increasing the scanning frequency of the touch screen.
Further, the receiving of the touch operation input by the user includes:
receiving touch operation input by a user on a touch screen; alternatively, the first and second electrodes may be,
receiving a shaking operation input by a user through the acceleration sensor.
Further, the reducing the scanning frequency of the touch screen includes:
reducing the scanning frequency of the touch screen to a preset proportion of a rated scanning frequency, wherein the preset proportion is less than 1;
and outputting the data in the screen according to the preset screen brightness.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the following steps:
when a touch operation is received in the touch screen, judging whether a foreground application is a preset application or not, wherein the preset application comprises data to be browsed by a user;
if the foreground application is a preset application, starting timing;
and when the timing result is greater than a preset time threshold value, reducing the scanning frequency of the touch screen.
Further, the determining whether the foreground application is a preset application includes:
judging whether the current interface of the foreground application contains multimedia data or not;
if the current interface of the foreground application contains multimedia data, determining the foreground application as a preset application;
and determining the leader time length or the prelude time length of the multimedia data as the preset time threshold.
Further, the determining whether the foreground application is a preset application includes:
obtaining a historical operating frequency record corresponding to multimedia data in the foreground application, wherein the historical operating frequency record comprises the operating frequency detected when the multimedia data is played;
judging whether the operating frequency corresponding to the currently played multimedia data is less than a preset frequency or not;
and if the operating frequency corresponding to the currently played multimedia data is less than the preset frequency, determining the foreground application as the preset application.
Further, the determining whether the foreground application is a preset application includes:
obtaining a historical operation type record corresponding to the current interface of the foreground application, wherein the historical operation type record comprises the operation type detected in the current interface;
judging whether the operation type comprises comment data input operation or not;
and if the operation type does not comprise comment data input operation, determining the foreground application as a preset application.
Further, after reducing the scanning frequency of the touch screen, the method further comprises:
and if the touch operation input by the user is received, increasing the scanning frequency of the touch screen.
Further, the receiving of the touch operation input by the user includes:
receiving touch operation input by a user on a touch screen; alternatively, the first and second electrodes may be,
receiving a shaking operation input by a user through the acceleration sensor.
Further, the reducing the scanning frequency of the touch screen includes:
reducing the scanning frequency of the touch screen to a preset proportion of a rated scanning frequency, wherein the preset proportion is less than 1;
and outputting the data in the screen according to the preset screen brightness.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (8)

1. A touch screen scanning method, comprising:
when a touch operation is received in the touch screen, judging whether a foreground application is a preset application or not, wherein the preset application comprises data to be browsed by a user;
if the foreground application is a preset application, starting timing;
when the timing result is greater than a preset time threshold, reducing the scanning frequency of the touch screen;
the judging whether the foreground application is a preset application includes:
judging whether the current interface of the foreground application contains multimedia data or not, wherein the foreground application is an application calling or playing the multimedia data;
if the current interface of the foreground application contains multimedia data, determining the foreground application as a preset application;
determining the leader duration or the prelude duration of the multimedia data as the preset time threshold;
the judging whether the foreground application is a preset application includes:
obtaining a historical operation type record corresponding to the current interface of the foreground application, wherein the historical operation type record comprises the operation type detected in the current interface;
judging whether the operation type comprises comment data input operation or not, wherein the comment data is bullet screen data or comment information input by a user;
and if the operation type does not comprise comment data input operation, determining the foreground application as a preset application.
2. The touch screen scanning method according to claim 1, wherein the determining whether the foreground application is a preset application comprises:
obtaining a historical operating frequency record corresponding to multimedia data in the foreground application, wherein the historical operating frequency record comprises the operating frequency detected when the multimedia data is played;
judging whether the operating frequency corresponding to the currently played multimedia data is less than a preset frequency or not;
and if the operating frequency corresponding to the currently played multimedia data is less than the preset frequency, determining the foreground application as the preset application.
3. The touch screen scanning method of claim 1, further comprising, after reducing the scanning frequency of the touch screen:
and if the touch operation input by the user is received, increasing the scanning frequency of the touch screen.
4. The touch screen scanning method according to claim 3, wherein the receiving of the touch operation input by the user comprises:
receiving touch operation input by a user on a touch screen; alternatively, the first and second electrodes may be,
receiving a shaking operation input by a user through the acceleration sensor.
5. The method of claim 1, wherein the reducing the scanning frequency of the touch screen comprises:
reducing the scanning frequency of the touch screen to a preset proportion of a rated scanning frequency, wherein the preset proportion is less than 1;
and outputting the data in the screen according to the preset screen brightness.
6. A touch screen scanning device, comprising:
the device comprises a preset application judgment module, a foreground application judgment module and a display module, wherein the preset application judgment module is used for judging whether foreground application is preset application when touch operation is received in a touch screen, and the preset application comprises data to be browsed by a user;
the timing module is used for starting timing if the preset application judgment module judges that the foreground application is the preset application;
the scanning frequency adjusting module is used for reducing the scanning frequency of the touch screen when the timing result of the timing module is greater than a preset time threshold;
the preset application judgment module is used for:
judging whether the current interface of the foreground application contains multimedia data or not, wherein the foreground application is an application calling or playing the multimedia data;
if the current interface of the foreground application contains multimedia data, determining the foreground application as a preset application;
determining the leader duration or the prelude duration of the multimedia data as the preset time threshold;
the preset application judgment module is used for:
obtaining a historical operation type record corresponding to the current interface of the foreground application, wherein the historical operation type record comprises the operation type detected in the current interface;
judging whether the operation type comprises comment data input operation or not, wherein the comment data is bullet screen data or comment information input by a user;
and if the operation type does not comprise comment data input operation, determining the foreground application as a preset application.
7. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the touch screen scanning method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the touch screen scanning method according to any one of claims 1 to 5.
CN201710633593.9A 2017-07-28 2017-07-28 Touch screen scanning method and device, terminal and computer readable storage medium Active CN107402625B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710633593.9A CN107402625B (en) 2017-07-28 2017-07-28 Touch screen scanning method and device, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710633593.9A CN107402625B (en) 2017-07-28 2017-07-28 Touch screen scanning method and device, terminal and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107402625A CN107402625A (en) 2017-11-28
CN107402625B true CN107402625B (en) 2020-03-27

Family

ID=60402361

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710633593.9A Active CN107402625B (en) 2017-07-28 2017-07-28 Touch screen scanning method and device, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107402625B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943409B (en) * 2017-12-07 2020-12-11 北京小米移动软件有限公司 Touch screen control method and device
CN109358769B (en) * 2018-10-16 2021-10-29 维沃移动通信有限公司 Touch screen response triggering method and terminal
CN110209301A (en) * 2019-05-29 2019-09-06 北京集创北方科技股份有限公司 Touch screen scanning method, device, storage medium, touch chip and terminal
CN114450660A (en) * 2019-11-21 2022-05-06 深圳市欢太科技有限公司 Setting method and device of point reporting rate, equipment and storage medium
CN110990632B (en) * 2019-12-19 2023-05-02 腾讯科技(深圳)有限公司 Video processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923410A (en) * 2009-06-11 2010-12-22 联想(北京)有限公司 Electronic equipment and touch positioning control method thereof
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
CN104035608A (en) * 2013-03-08 2014-09-10 宏碁股份有限公司 Touch panel sampling frequency adjusting device and method
CN104991682A (en) * 2015-08-07 2015-10-21 京东方科技集团股份有限公司 Touch drive method, touch drive device and touch display device
CN106383654A (en) * 2016-09-12 2017-02-08 广东欧珀移动通信有限公司 Touch screen parameter adjustment method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101923410A (en) * 2009-06-11 2010-12-22 联想(北京)有限公司 Electronic equipment and touch positioning control method thereof
CN104035608A (en) * 2013-03-08 2014-09-10 宏碁股份有限公司 Touch panel sampling frequency adjusting device and method
CN103235664A (en) * 2013-04-27 2013-08-07 深圳市金立通信设备有限公司 Terminal and control method of touch screen
CN104991682A (en) * 2015-08-07 2015-10-21 京东方科技集团股份有限公司 Touch drive method, touch drive device and touch display device
CN106383654A (en) * 2016-09-12 2017-02-08 广东欧珀移动通信有限公司 Touch screen parameter adjustment method and mobile terminal

Also Published As

Publication number Publication date
CN107402625A (en) 2017-11-28

Similar Documents

Publication Publication Date Title
CN107402625B (en) Touch screen scanning method and device, terminal and computer readable storage medium
CN108363593B (en) Application program preloading method and device, storage medium and terminal
CN108614722B (en) Application program preloading method and device, storage medium and terminal
CN108647052B (en) Application program preloading method and device, storage medium and terminal
CN107484231B (en) Screen parameter adjusting method, device, terminal and computer readable storage medium
WO2020007012A1 (en) Method and device for displaying search page, terminal, and storage medium
CN107801096B (en) Video playing control method and device, terminal equipment and storage medium
CN108710515B (en) Application preloading method and device, storage medium and terminal
EP3447632B1 (en) Electronic device for displaying application and operating method thereof
CN109828669B (en) Touch signal processing method and electronic equipment
US11705120B2 (en) Electronic device for providing graphic data based on voice and operating method thereof
CN109657236B (en) Guidance information acquisition method, apparatus, electronic apparatus, and storage medium
CN112955856A (en) Electronic device displaying a list of executable applications on a split screen and method of operating the same
CN115454286B (en) Application data processing method and device and terminal equipment
CN108647056B (en) Application program preloading method and device, storage medium and terminal
KR20200015000A (en) Method for memory leak detection and electronic device thereof
CN109618192B (en) Method, device, system and storage medium for playing video
CN111935516B (en) Audio file playing method, device, terminal, server and storage medium
CN107547646B (en) Application program pushing method and device, terminal and computer readable storage medium
CN108427549B (en) Method and device for processing sound of notification message, storage medium and terminal
CN107291213B (en) Mode selection method, device, terminal and computer readable storage medium
CN115828845A (en) Multimedia data viewing method, device, medium and equipment
CN107765956B (en) User interface editing method, device, terminal and computer readable storage medium
CN114282494A (en) Information display method and device, electronic equipment and storage medium
CN107844554B (en) Application recommendation method and device, terminal equipment and storage medium

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant