CN105045492A - Sleep play duration setting method and terminal device - Google Patents
Sleep play duration setting method and terminal device Download PDFInfo
- Publication number
- CN105045492A CN105045492A CN201510535005.9A CN201510535005A CN105045492A CN 105045492 A CN105045492 A CN 105045492A CN 201510535005 A CN201510535005 A CN 201510535005A CN 105045492 A CN105045492 A CN 105045492A
- Authority
- CN
- China
- Prior art keywords
- pressure value
- touch pressure
- time setting
- sliding block
- preset
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000036578 sleeping time Effects 0.000 claims description 58
- 230000004622 sleep time Effects 0.000 claims description 19
- 238000001514 detection method Methods 0.000 claims description 14
- 230000001960 triggered effect Effects 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 9
- 238000012935 Averaging Methods 0.000 description 2
- 230000015654 memory Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000003860 sleep quality Effects 0.000 description 1
Landscapes
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Embodiments of the invention disclose a sleep play duration setting method and a terminal device. The method comprises: detecting a touch pressure value for any target position of a time setting bar displayed in a terminal device in a sleep play mode, wherein the time setting bar comprises a slider; and when the touch pressure value is greater than a preset threshold, controlling, according to a correspondence between the touch pressure value and a moving speed, the slider to move along a preset direction on the time setting bar at the moving speed corresponding to the pressure value until the touch pressure value is less than or equal to the preset threshold, and when the touch pressure value is less than or equal to the preset threshold, controlling the slider to stop moving, wherein when the slider stops moving, duration corresponding to a position of the slider on the time setting bar is sleep play duration. Implementation of the method and terminal device provided by the embodiments of the invention is capable of quickly setting the sleep play duration.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a sleep playing time length setting method and terminal equipment.
Background
In order to improve the sleep quality of a user, a music player in some terminal devices is configured with a sleep play mode, and after the sleep play mode is started, the terminal devices can play music within the sleep play time length to help the user fall asleep quickly along with the music. The user can set the sleep playing time according to the self requirement, for example, the user needs to set the sleep playing time to be 50 minutes, the user can drag the slider on the time setting bar (for example, the total length of the time setting bar is 10cm, and the total time corresponding to the time setting bar is 100 minutes) to the position of 5cm, and the user can not conveniently drag the slider manually due to the short length of the time setting bar, so that the sleep playing time is difficult to set quickly.
Disclosure of Invention
The embodiment of the invention provides a sleep playing time length setting method and terminal equipment, which can be used for quickly setting the sleep playing time length.
In a first aspect of the embodiments of the present invention, a method for setting a sleep playback duration is provided, where the method includes:
detecting a touch pressure value of any target position of a time setting bar displayed in a terminal device in a sleep play mode, wherein the time setting bar comprises a sliding block;
when the touch pressure value is larger than a preset threshold value, controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
In a first possible implementation manner of the first aspect of the embodiments of the present invention, before detecting a touch pressure value for any target position of a time setting bar displayed in a terminal device in a sleep playback mode, the method further includes:
collecting input fingerprint information;
judging whether the fingerprint information is matched with preset fingerprint information or not;
if so, calling the average sleeping time of the user corresponding to the preset fingerprint information;
judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip;
and if not, executing the step of detecting the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep play mode.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a second possible implementation manner of the first aspect of the embodiment of the present invention, before the invoking of the average sleep time duration of the user corresponding to the preset fingerprint information, the method further includes:
receiving the sleep time of each day in the preset days of the user sent by the wearable device;
and calculating the average sleeping time of the user according to the sleeping time of each day in the preset days.
With reference to the first possible implementation manner of the first aspect of the embodiment of the present invention, in a third possible implementation manner of the first aspect of the embodiment of the present invention, after the collecting of the input fingerprint information and before the determining whether the fingerprint information matches preset fingerprint information, the method further includes:
sending a preset fingerprint information acquisition request to a user with a specified relationship in the social application running on the terminal equipment;
and receiving preset fingerprint information sent by the user with the specified relationship.
With reference to the first aspect of the embodiment of the present invention, in a fourth possible implementation manner of the first aspect of the embodiment of the present invention, the time setting bar includes an initial end and a terminal end, and when the touch pressure value is greater than a preset threshold value, the controlling, according to a corresponding relationship between a touch pressure value and a moving speed, the slider to move on the time setting bar at the moving speed corresponding to the touch pressure value along a preset direction includes:
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the initial end, controlling the sliding block to move on the time setting strip along a direction pointing to the initial end at a moving speed corresponding to the touch pressure value according to a corresponding relation between the touch pressure value and the moving speed;
or,
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the tail end, the sliding block is controlled to move on the time setting strip along the direction pointing to the tail end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed.
In a second aspect of the embodiments of the present invention, a terminal device is provided, including:
the detection unit is used for detecting a touch pressure value of any target position of a time setting bar displayed in the terminal equipment in a sleep play mode, wherein the time setting bar comprises a sliding block;
the control unit is used for controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed when the touch pressure value is larger than a preset threshold value, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
In a first possible implementation manner of the second aspect of the embodiment of the present invention, the terminal device further includes:
the collecting unit is used for collecting input fingerprint information;
the first judgment unit is used for judging whether the fingerprint information is matched with preset fingerprint information or not;
the calling unit is used for calling the average sleeping time of the user corresponding to the preset fingerprint information when the judgment result of the first judgment unit is yes;
the second judging unit is used for judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip;
when the judgment result of the second judgment unit is negative, the detection unit is triggered to detect the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep playing mode.
With reference to the first possible implementation manner of the second aspect of the embodiment of the present invention, in a second possible implementation manner of the second aspect of the embodiment of the present invention, the terminal device further includes:
the first receiving unit is used for receiving the sleep time of each day in the preset days of the user, which is sent by the wearable device;
and the calculating unit is used for calculating the average sleeping time of the user according to the sleeping time of each day in the preset days.
With reference to the first possible implementation manner of the second aspect of the embodiment of the present invention, in a third possible implementation manner of the second aspect of the embodiment of the present invention, the terminal device further includes:
the sending unit is used for sending a preset fingerprint information acquisition request to a user with a specified relationship in the social application running in the terminal equipment;
and the second receiving unit is used for receiving the preset fingerprint information sent by the user with the specified relationship.
With reference to the second aspect of the embodiment of the present invention, in a fourth possible implementation manner of the second aspect of the embodiment of the present invention, the time setting bar includes an initial end and a final end, and when the touch pressure value is greater than the preset threshold, the control unit controls the slider to move on the time setting bar along the preset direction at the movement speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the movement speed specifically:
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the initial end, the control unit controls the sliding block to move on the time setting bar along the direction pointing to the initial end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed;
or,
when the touch pressure value is greater than a preset threshold value, if the target position is located between the sliding block and the tail end, the control unit controls the sliding block to move on the time setting strip along a direction pointing to the tail end at a moving speed corresponding to the touch pressure value according to a corresponding relation between the touch pressure value and the moving speed.
In the embodiment of the invention, a touch pressure value of any target position of a time setting bar displayed in a terminal device in a sleep play mode is detected, wherein the time setting bar comprises a sliding block; when the touch pressure value is greater than the preset threshold value, controlling the sliding block to move on the time setting strip along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for setting a sleep playback duration according to an embodiment of the present invention;
fig. 2 is a flowchart of another sleep playback time length setting method disclosed in the embodiment of the present invention;
fig. 3 is a flowchart of another sleep playback time length setting method according to an embodiment of the present invention;
fig. 4 is a flowchart of another sleep playback time length setting method disclosed in the embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device disclosed in the embodiment of the present invention;
fig. 6 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of a time setting bar disclosed in the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of the present invention.
The embodiment of the invention provides a sleep playing time length setting method and terminal equipment, which can be used for quickly setting the sleep playing time length. The following are detailed below.
The terminal device described in the embodiment of the present invention may include: the terminal devices include, by way of example only, but not by way of limitation, a mobile phone, a tablet computer, or a walkman.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for setting a sleep play duration according to an embodiment of the present invention. As shown in fig. 1, the method for setting a sleep playback time length described in this embodiment includes the steps of:
s101, detecting a touch pressure value of any target position of a time setting bar displayed in the terminal equipment in the sleep play mode, wherein the time setting bar comprises a sliding block.
In the embodiment of the invention, the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep playing mode can be detected through the pressure sensor in the screen of the terminal equipment, the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep playing mode can be detected in real time, the sleep playing mode can be configured in a music player in the terminal equipment, and after the sleep playing mode is started, the terminal equipment can play music within the sleep playing time to help a user fall asleep quickly along with the music. The time setting bar is a time bar for setting the sleep playing time length in the sleep playing mode, the time setting bar comprises a sliding block, the sleep playing time length can be set by changing the position of the sliding block on the time setting bar, any target position of the time setting bar can be any target position on the time setting bar, and the target positions can be located at two ends of the time setting bar or any position in the middle of the time setting bar. For example, as shown in fig. 9, in the sleep play mode, when the user presses a position a on the time setting bar (the position a is any target position), a touchdown pressure value of the position a is detected.
S102, when the touch pressure value is larger than a preset threshold value, controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
In the embodiment of the present invention, the preset threshold may be set according to a system, or may be set by a user, and the corresponding relationship between the touch pressure value and the moving speed may be: as the touchdown pressure value increases, the movement speed increases, for example: if the length of the time setting bar in the screen of the terminal equipment is 5cm, the preset threshold value is 0.1N, and when the touch pressure value is 0.2N, the corresponding moving speed is 0.2 cm/s; when the touch pressure value is 0.3N, the corresponding moving speed is 0.3 cm/s; when the touch pressure value is 0.4N, the corresponding moving speed is 0.4 cm/s; when the touch pressure value is 0.5N, the corresponding moving speed is 0.5 cm/s. The preset direction may be a direction pointing to the target position, or a direction away from the target position. And when the touch pressure value is detected to be less than or equal to the preset threshold value, controlling the sliding block to stop moving, wherein the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
In some possible embodiments, the time-setting bar includes an initial end and a final end, and step S102 includes:
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the initial end, controlling the sliding block to move on the time setting strip along the direction pointing to the initial end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed;
or,
and when the touch pressure value is greater than the preset threshold value, if the target position is located between the sliding block and the tail end, controlling the sliding block to move on the time setting strip along the direction pointing to the tail end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed.
In the embodiment of the present invention, the time setting bar includes an initial end and a terminal end, and when the slider is located at the initial end of the time setting bar, the sleep play duration is the smallest, for example: to 0, when the slider is located at the end of the time setting bar, the sleep playback duration is maximum, for example: was 100 minutes. When the touch pressure value is greater than the preset threshold value, if the target position is located between the slider and the initial end, the slider is controlled to move on the time setting bar along the direction pointing to the initial end at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, for example: and when the touch pressure value is 0.5N, if the corresponding moving speed is 0.5cm/s, controlling the sliding block to move on the time setting bar in the direction pointing to the initial end at the speed of 0.5cm/s (reducing the sleep playing time length) until the touch pressure value is less than or equal to a preset threshold (for example, 0.1N), and controlling the sliding block to stop moving, wherein at the moment, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. If the target position is located between the slide block and the tail end, controlling the slide block to move on the time setting strip along the direction pointing to the tail end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, for example: and when the touch pressure value is 0.5N, if the corresponding moving speed is 0.5cm/s, controlling the sliding block to move on the time setting bar in the direction pointing to the tail end at the speed of 0.5cm/s (increasing the sleep playing time length) until the touch pressure value is less than or equal to a preset threshold (for example, 0.1N), and controlling the sliding block to stop moving, wherein at the moment, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the sleep playing time length can be quickly set by detecting the change of the contact pressure value of the target position on the time setting bar.
In the embodiment of the invention, a touch pressure value of any target position of a time setting bar displayed in a terminal device in a sleep play mode is detected, wherein the time setting bar comprises a sliding block; when the touch pressure value is greater than the preset threshold value, controlling the sliding block to move on the time setting strip along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set.
Referring to fig. 2, fig. 2 is a flowchart illustrating another method for setting a sleep playback time period according to an embodiment of the present invention. As shown in fig. 2, the method for setting the sleep playback time length described in this embodiment includes the steps of:
s201, collecting input fingerprint information.
In the embodiment of the invention, the fingerprint information input by the user can be collected through the fingerprint collecting area in the terminal equipment, and the fingerprint information can comprise a fingerprint image, fingerprint characteristics and the like.
S202, judging whether the fingerprint information is matched with preset fingerprint information or not; if yes, step S203 is executed, otherwise, the fingerprint information is prompted to be not matched with the preset fingerprint information, and the process is ended.
In the embodiment of the present invention, the preset fingerprint information may be fingerprint information pre-stored in the terminal device, and determining whether the fingerprint information matches the preset fingerprint information may be determining whether a fingerprint image in the input fingerprint information matches a fingerprint image in the preset fingerprint information, determining whether a fingerprint feature in the input fingerprint information matches a fingerprint feature in the preset fingerprint information, and if both the fingerprint features match, determining that the fingerprint information matches the preset fingerprint information.
S203, calling the average sleeping time of the user corresponding to the preset fingerprint information.
In the embodiment of the invention, when the fingerprint information is matched with the preset fingerprint information, the average sleeping time of the user corresponding to the preset fingerprint information is called, the average sleeping time of the user corresponding to the preset fingerprint information can be stored in the terminal equipment in advance, for example, the average sleeping time of a plurality of users can be stored in the terminal equipment, each user corresponds to one preset fingerprint information, and when the fingerprint information is judged to be matched with one preset fingerprint information, the average sleeping time of the user corresponding to the preset fingerprint information is called.
S204, judging whether the average sleeping time length is matched with the time length corresponding to the position of the current slide block on the time setting bar; if the determination result is no, step S205 is executed, and if the determination result is yes, it is prompted that the average sleeping time length is matched with the time length corresponding to the position of the current slider on the time setting bar, and the process is ended.
In the embodiment of the invention, the time length corresponding to the position of the current slider on the time setting bar is the currently set sleep playing time length, and if the average falling-asleep time length is not matched with the time length corresponding to the position of the current slider on the time setting bar, the currently set sleep playing time length is not the optimal sleep playing time length, and the sleep playing time length needs to be set. Optionally, when the average length of time of falling asleep does not match the length of time corresponding to the position of the current slider on the time setting bar, a prompt message may be output, where the prompt message is used to prompt the user that the currently set length of time of falling asleep does not match the average length of time of falling asleep of the user, so as to guide the user to set the length of time of falling asleep. By implementing the embodiment of the invention, the sleep playing time length of the user can be set according to the average falling-asleep time length of the user, so that the user can conveniently set the sleep playing time length.
And S205, detecting a touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep play mode.
S206, when the touch pressure value is larger than the preset threshold value, controlling the sliding block to move on the time setting strip along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
Step S205 to step S206 in the embodiment of the present invention may refer to step S101 to step S102 shown in fig. 1, and are not described again in the embodiment of the present invention.
In the embodiment of the invention, input fingerprint information is collected; judging whether the fingerprint information is matched with preset fingerprint information or not; if so, calling the average sleeping time of the user corresponding to the preset fingerprint information; judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip; if the judgment result is negative, detecting the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep play mode; when the touch pressure value is greater than the preset threshold value, controlling the sliding block to move on the time setting strip along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set, meanwhile, the sleep playing time of the user can be set according to the average falling-asleep time of the user, and the user can conveniently set the sleep playing time length.
Referring to fig. 3, fig. 3 is a flowchart illustrating another method for setting a sleep playback time period according to an embodiment of the present invention. As shown in fig. 3, the method for setting sleep playback time length described in this embodiment includes the steps of:
s301, receiving the sleep time of each day in preset days of the user sent by the wearable device.
In the embodiment of the present invention, the wearable device may be an intelligent bracelet, an intelligent watch, an intelligent garment, or the like, and the embodiment of the present invention is not limited. The terminal device can acquire the sleeping time of each day in the preset days of the user, the terminal device receives the sleeping time of each day in the preset days of the user sent by the wearable device, and the preset days can be the latest 10 days.
S302, calculating the average sleeping time of the user according to the sleeping time of each day in the preset number of days.
In the embodiment of the invention, after receiving the time length of falling asleep for each day in the preset number of days of the user sent by the wearable device, the average time length of falling asleep for the user is calculated according to the time length of falling asleep for each day in the preset number of days, for example, after receiving the time length of falling asleep for each day in the last 10 days of the user sent by the wearable device, the time length of falling asleep for each day in the last 10 days is averaged, and the average time length of falling asleep for the user is calculated. By implementing the embodiment of the invention, the average sleeping time of the user can be obtained by averaging the sleeping time of each day in the preset days of the user acquired by the wearable device, and the average sleeping time of the user can be accurately acquired, so that the sleeping playing time can be accurately set.
And S303, collecting the input fingerprint information.
S304, judging whether the fingerprint information is matched with preset fingerprint information; if yes, go to step S305, otherwise, prompt that the fingerprint information is not matched with the preset fingerprint information, and end the process.
S305, calling the average sleeping time of the user corresponding to the preset fingerprint information.
S306, judging whether the average sleeping time length is matched with the time length corresponding to the position of the current slide block on the time setting bar; if the determination result is no, step S307 is executed, and if the determination result is yes, the average sleeping time length is prompted to be matched with the time length corresponding to the position of the current slider on the time setting bar, and the process is ended.
S307, detecting a touch pressure value for any target position of the time setting bar displayed in the terminal device in the sleep play mode.
S308, when the touch pressure value is larger than a preset threshold value, controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
Steps S303 to S308 in the embodiment of the present invention may refer to steps S201 to S206 shown in fig. 2, and are not described again in the embodiment of the present invention.
In the embodiment of the invention, the sleep time of each day in the preset days of the user sent by the wearable device is received; calculating the average sleeping time of the user according to the sleeping time of each day in the preset number of days; collecting input fingerprint information; judging whether the fingerprint information is matched with preset fingerprint information or not; if so, calling the average sleeping time of the user corresponding to the preset fingerprint information; judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip; if the judgment result is negative, detecting the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep play mode; when the touch pressure value is greater than the preset threshold value, controlling the sliding block to move on the time setting strip along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set, meanwhile, the average sleep time of the user can be calculated according to the sleep time length of each day in the preset number of days acquired by the receiving wearable device, the sleep playing time of the user is set according to the average sleep time of the user, and the user can conveniently and accurately set the sleep playing time length.
Referring to fig. 4, fig. 4 is a flowchart illustrating another method for setting a sleep playback time period according to an embodiment of the present invention. As shown in fig. 4, the method for setting the sleep playback time length described in this embodiment includes the steps of:
s401, collecting input fingerprint information.
S402, sending a preset fingerprint information acquisition request to a user with a specified relationship in the social application running in the terminal equipment.
In the embodiment of the invention, after the input fingerprint information is collected, a preset fingerprint information acquisition request is sent to a user with a specified relationship in a social application running in the terminal equipment, wherein the social application can be WeChat, QQ, trusted, easy-to-believe and the like, and the user with the specified relationship can be the user inputting the fingerprint information. For example, when the user a uses the terminal device of the user B, if the user a needs to adjust the sleep play duration in the terminal device of the user B, the user a touches a preset area of a screen of the terminal device of the user B, the terminal device of the user B detects a touch pressure value of the preset area of the screen of the terminal device, outputs prompt information, the prompt information prompts to input fingerprint information, the user a inputs the fingerprint information, the terminal device sends a preset fingerprint information acquisition request to a user (the user a) with a specified relationship in a social application in which the terminal device is running, the user a inputs the preset fingerprint information, that is, the verification is successful in time, and if the user a is not a friend of the user B, the user a cannot operate the terminal device of the user B. By implementing the embodiment of the invention, the safety of the terminal equipment can be improved, and the operation of strange users can be prevented.
And S403, receiving preset fingerprint information sent by the user with the specified relationship.
In the embodiment of the invention, after a preset fingerprint information acquisition request is sent to a specified relation user in a social application running on a terminal device, the social application of the specified relation user outputs prompt information to prompt the specified relation user to input fingerprint information, and the specified relation user input fingerprint information is sent to the terminal device, so that the terminal device receives the preset fingerprint information sent by the specified relation user. By implementing the embodiment of the invention, the preset fingerprint information can be quickly acquired through the running social application, the risk that the preset fingerprint information is easily leaked when being stored in the terminal equipment is avoided, and the safety of the terminal equipment is improved.
S404, judging whether the fingerprint information is matched with preset fingerprint information; if yes, step S405 is executed, otherwise, the fingerprint information is prompted to be mismatched with the preset fingerprint information, and the process is ended.
S405, calling the average sleeping time of the user corresponding to the preset fingerprint information.
S406, judging whether the average sleeping time length is matched with the time length corresponding to the position of the current slide block on the time setting strip; if not, executing step S407, and if yes, prompting that the average sleeping time length is matched with the time length corresponding to the position of the current slider on the time setting bar, and ending the process.
S407, detecting a touch pressure value for any target position of the time setting bar displayed in the terminal device in the sleep play mode.
S408, when the touch pressure value is larger than a preset threshold value, controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
Step S401 in the embodiment of the present invention may refer to step S201 shown in fig. 2, and step S404 to step S408 may refer to step S202 to step S206 shown in fig. 2, which are not described again in the embodiment of the present invention.
In the embodiment of the invention, input fingerprint information is collected; sending a preset fingerprint information acquisition request to a user with a specified relationship in a social application running on a terminal device; receiving preset fingerprint information sent by a user with an appointed relationship; judging whether the fingerprint information is matched with preset fingerprint information or not; if so, calling the average sleeping time of the user corresponding to the preset fingerprint information; judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip; if the judgment result is negative, detecting the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep play mode; when the touch pressure value is greater than the preset threshold value, controlling the sliding block to move on the time setting strip along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting bar can be adjusted by detecting the touch pressure value, so that the sleep playing time can be set quickly, the safety of the terminal equipment can be improved, and the operation of a strange user can be prevented.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 5, the terminal device described in this embodiment includes a detection unit 501 and a control unit 502, where:
the detecting unit 501 is configured to detect a touch pressure value of any target position of a time setting bar displayed in the terminal device in the sleep playback mode, where the time setting bar includes a slider.
In the embodiment of the present invention, the detection unit 501 may detect, through a pressure sensor in a screen of the terminal device, a touch pressure value of any target position of a time setting bar displayed in the terminal device in a sleep play mode, may detect, in real time, a touch pressure value of any target position of a time setting bar displayed in the terminal device in the sleep play mode, may configure the sleep play mode in a music player in the terminal device, and after the sleep play mode is started, the terminal device may play music within a sleep play duration to help a user fall asleep quickly with the music. The time setting bar is a time bar for setting the sleep playing time length in the sleep playing mode, the time setting bar comprises a sliding block, the sleep playing time length can be set by changing the position of the sliding block on the time setting bar, any target position of the time setting bar can be any target position on the time setting bar, and the target positions can be located at two ends of the time setting bar or any position in the middle of the time setting bar. For example, as shown in fig. 9, in the sleep play mode, when the user presses a position a on the time setting bar (the position a is any target position), a touchdown pressure value of the position a is detected.
The control unit 502 is configured to, when the touch pressure value is greater than the preset threshold value, control the slider to move on the time setting bar in the preset direction at a movement speed corresponding to the touch pressure value according to a corresponding relationship between the touch pressure value and the movement speed, and control the slider to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
In the embodiment of the present invention, the preset threshold may be set according to a system, or may be set by a user, and the corresponding relationship between the touch pressure value and the moving speed may be: as the touchdown pressure value increases, the movement speed increases, for example: if the length of the time setting bar in the screen of the terminal equipment is 5cm, the preset threshold value is 0.1N, and when the touch pressure value is 0.2N, the corresponding moving speed is 0.2 cm/s; when the touch pressure value is 0.3N, the corresponding moving speed is 0.3 cm/s; when the touch pressure value is 0.4N, the corresponding moving speed is 0.4 cm/s; when the touch pressure value is 0.5N, the corresponding moving speed is 0.5 cm/s. The preset direction may be a direction pointing to the target position, or a direction away from the target position. When the touch pressure value is detected to be less than or equal to the preset threshold value, the control unit 502 controls the slider to stop moving, and at this time, the time length corresponding to the position of the slider on the time setting bar is the sleep playing time length.
Optionally, the time setting bar includes an initial end and a terminal end, and when the touch pressure value is greater than the preset threshold, the control unit 502 controls the slider to move on the time setting bar along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed specifically:
when the touch pressure value is greater than the preset threshold value, if the target position is located between the slider and the initial end, the control unit 502 controls the slider to move on the time setting bar in a direction pointing to the initial end at a moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed;
or,
when the touch pressure value is greater than the preset threshold value, if the target position is located between the slider and the end, the control unit 502 controls the slider to move on the time setting bar in the direction pointing to the end at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed.
In the embodiment of the present invention, the time setting bar includes an initial end and a terminal end, and when the slider is located at the initial end of the time setting bar, the sleep play duration is the smallest, for example: to 0, when the slider is located at the end of the time setting bar, the sleep playback duration is maximum, for example: was 100 minutes. When the touch pressure value is greater than the preset threshold, if the target position is located between the slider and the initial end, the control unit 502 controls the slider to move on the time setting bar in a direction pointing to the initial end at a moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, for example: and when the touch pressure value is 0.5N, if the corresponding moving speed is 0.5cm/s, controlling the sliding block to move on the time setting bar in the direction pointing to the initial end at the speed of 0.5cm/s (reducing the sleep playing time length) until the touch pressure value is less than or equal to a preset threshold (for example, 0.1N), and controlling the sliding block to stop moving, wherein at the moment, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. If the target position is located between the slider and the end, the control unit 502 controls the slider to move on the time setting bar in the direction pointing to the end at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, for example: and when the touch pressure value is 0.5N, if the corresponding moving speed is 0.5cm/s, controlling the sliding block to move on the time setting bar in the direction pointing to the tail end at the speed of 0.5cm/s (increasing the sleep playing time length) until the touch pressure value is less than or equal to a preset threshold (for example, 0.1N), and controlling the sliding block to stop moving, wherein at the moment, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the sleep playing time length can be quickly set by detecting the change of the contact pressure value of the target position on the time setting bar.
In the embodiment of the present invention, the detection unit 501 detects a touch pressure value at any target position of a time setting bar displayed in a terminal device in a sleep playback mode, where the time setting bar includes a slider; when the touch pressure value is greater than the preset threshold value, the control unit 502 controls the slider to move on the time setting bar along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, and controls the slider to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set.
Referring to fig. 6, fig. 6 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention. As shown in fig. 6, the terminal device described in this embodiment includes, in addition to the detection unit 501 and the control unit 502 shown in fig. 5, an acquisition unit 503, a first judgment unit 504, a retrieval unit 505, and a second judgment unit 506, where:
the collecting unit 503 is configured to collect input fingerprint information.
In this embodiment of the present invention, the collecting unit 503 may collect fingerprint information input by a user through a fingerprint collecting area in the terminal device, where the fingerprint information may include a fingerprint image, a fingerprint feature, and the like.
A first determining unit 504, configured to determine whether the fingerprint information matches preset fingerprint information.
In this embodiment of the present invention, the preset fingerprint information may be fingerprint information pre-stored in the terminal device, the first determining unit 504 determines whether the fingerprint information matches the preset fingerprint information by determining whether a fingerprint image in the input fingerprint information matches a fingerprint image in the preset fingerprint information, and by determining whether a fingerprint feature in the input fingerprint information matches a fingerprint feature in the preset fingerprint information, if both fingerprint features match, it determines that the fingerprint information matches the preset fingerprint information.
And an invoking unit 505, configured to invoke an average sleep time length of the user corresponding to the preset fingerprint information when the first determining unit 504 determines that the result is yes.
In this embodiment of the present invention, when the fingerprint information matches the preset fingerprint information, the retrieving unit 505 retrieves an average sleep time of a user corresponding to the preset fingerprint information, where the average sleep time of the user corresponding to the preset fingerprint information may be stored in a terminal device in advance, for example, the terminal device may store average sleep time of multiple users, each user corresponds to one preset fingerprint information, and when it is determined that the fingerprint information matches one of the preset fingerprint information, the average sleep time of the user corresponding to the preset fingerprint information is retrieved.
The second determining unit 506 is configured to determine whether the average sleeping time length matches a time length corresponding to a position of the current slider on the time setting bar.
When the second determination unit 506 determines that the time setting bar is not a time setting bar, the trigger detection unit 501 detects a touch pressure value of any target position of the time setting bar displayed in the terminal device in the sleep play mode.
In the embodiment of the invention, the time length corresponding to the position of the current slider on the time setting bar is the currently set sleep playing time length, and if the average falling-asleep time length is not matched with the time length corresponding to the position of the current slider on the time setting bar, the currently set sleep playing time length is not the optimal sleep playing time length, and the sleep playing time length needs to be set. Optionally, when the second determining unit 506 determines that the average sleeping time length does not match the time length corresponding to the position of the current slider on the time setting bar, a prompt message may be output, where the prompt message is used to prompt the user that the currently set sleeping playing time length does not match the average sleeping time length of the user, so as to guide the user to set the sleeping playing time length. By implementing the embodiment of the invention, the sleep playing time length of the user can be set according to the average falling-asleep time length of the user, so that the user can conveniently set the sleep playing time length.
In the embodiment of the present invention, the collecting unit 503 collects input fingerprint information; the first judgment unit 504 judges whether the fingerprint information matches preset fingerprint information; when the first judgment unit 504 judges that the user falls asleep, the retrieval unit 505 retrieves the average time length of the user corresponding to the preset fingerprint information; the second judging unit 506 judges whether the average sleeping time length is matched with the time length corresponding to the position of the current slide block on the time setting bar; when the second determination unit 506 determines that the time setting bar is not a time setting bar, the detection unit 501 detects a touch pressure value for any target position of the time setting bar displayed in the terminal device in the sleep play mode; when the touch pressure value is greater than the preset threshold value, the control unit 502 controls the slider to move on the time setting bar along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, and controls the slider to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set, meanwhile, the sleep playing time of the user can be set according to the average falling-asleep time of the user, and the user can conveniently set the sleep playing time length.
Referring to fig. 7, fig. 7 is a schematic structural diagram of another terminal device disclosed in the embodiment of the present invention. As shown in fig. 7, the terminal device described in this embodiment includes, in addition to the detection unit 501, the control unit 502, the acquisition unit 503, the first judgment unit 504, the invoking unit 505, and the second judgment unit 506 shown in fig. 6, a first receiving unit 507 and a calculating unit 508, where:
the first receiving unit 507 is configured to receive the sleep time length of each day in preset days of the user sent by the wearable device.
In the embodiment of the present invention, the wearable device may be an intelligent bracelet, an intelligent watch, an intelligent garment, or the like, and the embodiment of the present invention is not limited. The first receiving unit 507 may obtain the time length of falling asleep for each day of preset days of the user, and the terminal device receives the time length of falling asleep for each day of preset days of the user, which is sent by the wearable device, where the preset days may be the latest 10 days.
The calculating unit 508 is configured to calculate an average sleeping time of the user according to the sleeping time of each day in the preset number of days.
In the embodiment of the present invention, after the first receiving unit 507 receives the time length of falling asleep for each day in the preset number of days of the user sent by the wearable device, the calculating unit 508 calculates the average time length of falling asleep for the user according to the time length of falling asleep for each day in the preset number of days, for example, after the first receiving unit 507 receives the time length of falling asleep for each day in the last 10 days of the user sent by the wearable device, the average value of the time length of falling asleep for each day in the last 10 days is obtained, and the calculating unit 508 calculates the average time length of falling asleep for the user. By implementing the embodiment of the invention, the average sleeping time of the user can be obtained by averaging the sleeping time of each day in the preset days of the user acquired by the wearable device, and the average sleeping time of the user can be accurately acquired, so that the sleeping playing time can be accurately set.
In the embodiment of the present invention, the first receiving unit 507 receives the time length of falling asleep for each day in preset days of the user, which is sent by the wearable device; the calculating unit 508 calculates the average sleeping time of the user according to the sleeping time of each day in the preset number of days; the acquisition unit 503 acquires input fingerprint information; the first judgment unit 504 judges whether the fingerprint information matches preset fingerprint information; when the first judgment unit 504 judges that the user falls asleep, the retrieval unit 505 retrieves the average time length of the user corresponding to the preset fingerprint information; the second judging unit 506 judges whether the average sleeping time length is matched with the time length corresponding to the position of the current slide block on the time setting bar; when the second determination unit 506 determines that the time setting bar is not a time setting bar, the detection unit 501 detects a touch pressure value for any target position of the time setting bar displayed in the terminal device in the sleep play mode; when the touch pressure value is greater than the preset threshold value, the control unit 502 controls the slider to move on the time setting bar along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, and controls the slider to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting strip can be adjusted by detecting the touch pressure value, so that the sleep playing time length can be quickly set, meanwhile, the average sleep time of the user can be calculated according to the sleep time length of each day in the preset number of days acquired by the receiving wearable device, the sleep playing time of the user is set according to the average sleep time of the user, and the user can conveniently and accurately set the sleep playing time length.
Referring to fig. 8, fig. 8 is a schematic structural diagram of another terminal device according to the embodiment of the present invention. As shown in fig. 8, the terminal device described in this embodiment includes, in addition to the detection unit 501, the control unit 502, the acquisition unit 503, the first judgment unit 504, the invoking unit 505, and the second judgment unit 506 shown in fig. 6, a sending unit 509 and a second receiving unit 510, where:
a sending unit 509, configured to send a preset fingerprint information obtaining request to a user with a specified relationship in the social application running on the terminal device.
In this embodiment of the present invention, after the collecting unit 503 collects the input fingerprint information, the sending unit 509 sends a preset fingerprint information obtaining request to a user with a specified relationship in a social application in which the terminal device is running, where the social application may be WeChat, QQ, trusted, easy-to-believe, and the user with the specified relationship may be a user who inputs the fingerprint information. For example, when the user a uses the terminal device of the user B, if the user a needs to adjust the sleep play duration in the terminal device of the user B, the user a touches a preset area of a screen of the terminal device of the user B, the terminal device of the user B detects a touch pressure value of the preset area of the screen of the terminal device, outputs prompt information, the prompt information prompts to input fingerprint information, the user a inputs the fingerprint information, the terminal device sends a preset fingerprint information acquisition request to a user (the user a) with a specified relationship in a social application in which the terminal device is running, the user a inputs the preset fingerprint information, that is, the verification is successful in time, and if the user a is not a friend of the user B, the user a cannot operate the terminal device of the user B. By implementing the embodiment of the invention, the safety of the terminal equipment can be improved, and the operation of strange users can be prevented.
A second receiving unit 510, configured to receive preset fingerprint information sent by a user with a specified relationship.
In this embodiment of the present invention, after the sending unit 509 sends a preset fingerprint information obtaining request to a user with an appointed relationship in a social application running on a terminal device, the social application of the user with the appointed relationship outputs a prompt message to prompt the user with the appointed relationship to input fingerprint information, and sends the input fingerprint information of the user with the appointed relationship to the terminal device, and the second receiving unit 510 receives the preset fingerprint information sent by the user with the appointed relationship. By implementing the embodiment of the invention, the preset fingerprint information can be quickly acquired through the running social application, the risk that the preset fingerprint information is easily leaked when being stored in the terminal equipment is avoided, and the safety of the terminal equipment is improved.
In the embodiment of the present invention, the collecting unit 503 collects input fingerprint information; the sending unit 509 sends a preset fingerprint information acquisition request to a user with a specified relationship in the social application running on the terminal device; the second receiving unit 510 receives preset fingerprint information sent by a user with a specified relationship; the first judgment unit 504 judges whether the fingerprint information matches preset fingerprint information; when the first judgment unit 504 judges that the user falls asleep, the retrieval unit 505 retrieves the average time length of the user corresponding to the preset fingerprint information; the second judging unit 506 judges whether the average sleeping time length is matched with the time length corresponding to the position of the current slide block on the time setting bar; when the second determination unit 506 determines that the time setting bar is not a time setting bar, the detection unit 501 detects a touch pressure value for any target position of the time setting bar displayed in the terminal device in the sleep play mode; when the touch pressure value is greater than the preset threshold value, the control unit 502 controls the slider to move on the time setting bar along the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relationship between the touch pressure value and the moving speed, and controls the slider to stop moving until the touch pressure value is less than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length. By implementing the embodiment of the invention, the position of the sliding block on the time setting bar can be adjusted by detecting the touch pressure value, so that the sleep playing time can be set quickly, the safety of the terminal equipment can be improved, and the operation of a strange user can be prevented.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The method for setting the sleep play duration and the terminal device provided by the embodiment of the present invention are described in detail above, a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. A method for setting sleep play duration is characterized by comprising the following steps:
detecting a touch pressure value of any target position of a time setting bar displayed in a terminal device in a sleep play mode, wherein the time setting bar comprises a sliding block;
when the touch pressure value is larger than a preset threshold value, controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
2. The method according to claim 1, wherein before detecting the touch pressure value for any target position of the time setting bar displayed in the terminal device in the sleep play mode, the method further comprises:
collecting input fingerprint information;
judging whether the fingerprint information is matched with preset fingerprint information or not;
if so, calling the average sleeping time of the user corresponding to the preset fingerprint information;
judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip;
and if not, executing the step of detecting the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep play mode.
3. The method according to claim 2, wherein before the retrieving the average sleeping time of the user corresponding to the preset fingerprint information, the method further comprises:
receiving the sleep time of each day in the preset days of the user sent by the wearable device;
and calculating the average sleeping time of the user according to the sleeping time of each day in the preset days.
4. The method according to claim 2, wherein after the collecting of the input fingerprint information and before the determining whether the fingerprint information matches preset fingerprint information, the method further comprises:
sending a preset fingerprint information acquisition request to a user with a specified relationship in the social application running on the terminal equipment;
and receiving preset fingerprint information sent by the user with the specified relationship.
5. The method of claim 1, wherein the time setting bar comprises an initial end and a final end, and when the touch pressure value is greater than the preset threshold value, the slider is controlled to move on the time setting bar in the preset direction at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed, and the method comprises the following steps:
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the initial end, controlling the sliding block to move on the time setting strip along a direction pointing to the initial end at a moving speed corresponding to the touch pressure value according to a corresponding relation between the touch pressure value and the moving speed;
or,
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the tail end, the sliding block is controlled to move on the time setting strip along the direction pointing to the tail end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed.
6. A terminal device, comprising:
the detection unit is used for detecting a touch pressure value of any target position of a time setting bar displayed in the terminal equipment in a sleep play mode, wherein the time setting bar comprises a sliding block;
the control unit is used for controlling the sliding block to move on the time setting strip along a preset direction at a moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed when the touch pressure value is larger than a preset threshold value, and controlling the sliding block to stop moving until the touch pressure value is smaller than or equal to the preset threshold value; when the sliding block stops moving, the time length corresponding to the position of the sliding block on the time setting bar is the sleep playing time length.
7. The terminal device according to claim 6, wherein the terminal device further comprises:
the collecting unit is used for collecting input fingerprint information;
the first judgment unit is used for judging whether the fingerprint information is matched with preset fingerprint information or not;
the calling unit is used for calling the average sleeping time of the user corresponding to the preset fingerprint information when the judgment result of the first judgment unit is yes;
the second judging unit is used for judging whether the average sleeping time length is matched with the time length corresponding to the position of the current sliding block on the time setting strip;
when the judgment result of the second judgment unit is negative, the detection unit is triggered to detect the touch pressure value of any target position of the time setting bar displayed in the terminal equipment in the sleep playing mode.
8. The terminal device according to claim 7, wherein the terminal device further comprises:
the first receiving unit is used for receiving the sleep time of each day in the preset days of the user, which is sent by the wearable device;
and the calculating unit is used for calculating the average sleeping time of the user according to the sleeping time of each day in the preset days.
9. The terminal device according to claim 7, wherein the terminal device further comprises:
the sending unit is used for sending a preset fingerprint information acquisition request to a user with a specified relationship in the social application running in the terminal equipment;
and the second receiving unit is used for receiving the preset fingerprint information sent by the user with the specified relationship.
10. The terminal device according to claim 6, wherein the time setting bar comprises an initial end and a final end, and when the touchdown pressure value is greater than a preset threshold, the control unit controls the slider to move on the time setting bar in a preset direction at a movement speed corresponding to the touchdown pressure value according to the correspondence between the touchdown pressure value and the movement speed by:
when the touch pressure value is larger than a preset threshold value, if the target position is located between the sliding block and the initial end, the control unit controls the sliding block to move on the time setting bar along the direction pointing to the initial end at the moving speed corresponding to the touch pressure value according to the corresponding relation between the touch pressure value and the moving speed;
or,
when the touch pressure value is greater than a preset threshold value, if the target position is located between the sliding block and the tail end, the control unit controls the sliding block to move on the time setting strip along a direction pointing to the tail end at a moving speed corresponding to the touch pressure value according to a corresponding relation between the touch pressure value and the moving speed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535005.9A CN105045492B (en) | 2015-08-27 | 2015-08-27 | A kind of sleep playing duration setting method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510535005.9A CN105045492B (en) | 2015-08-27 | 2015-08-27 | A kind of sleep playing duration setting method and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105045492A true CN105045492A (en) | 2015-11-11 |
CN105045492B CN105045492B (en) | 2018-05-29 |
Family
ID=54452068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510535005.9A Expired - Fee Related CN105045492B (en) | 2015-08-27 | 2015-08-27 | A kind of sleep playing duration setting method and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105045492B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107656652A (en) * | 2017-10-26 | 2018-02-02 | 沈阳中科创达软件有限公司 | Speed compensation method, device, computer equipment and the storage medium of slide |
CN110244888A (en) * | 2019-06-11 | 2019-09-17 | 惠州Tcl移动通信有限公司 | A kind of setting method of behavior pattern, device, storage medium and terminal |
WO2019228026A1 (en) * | 2018-05-29 | 2019-12-05 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information display method, apparatus and mobile terminal |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102449593A (en) * | 2010-01-22 | 2012-05-09 | 电子部品研究院 | Method for providing a user interface based on touch pressure, and electronic device using same |
US20120274591A1 (en) * | 2004-12-21 | 2012-11-01 | Microsoft Corporation | Pressure sensitive controls |
CN102812422A (en) * | 2010-03-18 | 2012-12-05 | 京瓷株式会社 | Electronic apparatus |
CN103440097A (en) * | 2013-07-29 | 2013-12-11 | 康佳集团股份有限公司 | Method and terminal for controlling touch pad cursor to slide on the basis of pressure |
CN104020936A (en) * | 2013-03-01 | 2014-09-03 | 北京三星通信技术研究有限公司 | Terminal and controlling method thereof |
CN104471521A (en) * | 2012-05-09 | 2015-03-25 | 苹果公司 | Device, method, and graphical user interface for providing feedback for changing activation states of a user interface object |
CN104575554A (en) * | 2014-12-19 | 2015-04-29 | 广东欧珀移动通信有限公司 | Control method and terminal for broadcasting progress of multimedia data |
CN104714741A (en) * | 2013-12-11 | 2015-06-17 | 北京三星通信技术研究有限公司 | Method and device for touch operation |
CN104765543A (en) * | 2015-04-17 | 2015-07-08 | 努比亚技术有限公司 | Audio playing parameter adjustment method and device |
-
2015
- 2015-08-27 CN CN201510535005.9A patent/CN105045492B/en not_active Expired - Fee Related
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120274591A1 (en) * | 2004-12-21 | 2012-11-01 | Microsoft Corporation | Pressure sensitive controls |
CN102449593A (en) * | 2010-01-22 | 2012-05-09 | 电子部品研究院 | Method for providing a user interface based on touch pressure, and electronic device using same |
CN102812422A (en) * | 2010-03-18 | 2012-12-05 | 京瓷株式会社 | Electronic apparatus |
CN104471521A (en) * | 2012-05-09 | 2015-03-25 | 苹果公司 | Device, method, and graphical user interface for providing feedback for changing activation states of a user interface object |
CN104020936A (en) * | 2013-03-01 | 2014-09-03 | 北京三星通信技术研究有限公司 | Terminal and controlling method thereof |
CN103440097A (en) * | 2013-07-29 | 2013-12-11 | 康佳集团股份有限公司 | Method and terminal for controlling touch pad cursor to slide on the basis of pressure |
CN104714741A (en) * | 2013-12-11 | 2015-06-17 | 北京三星通信技术研究有限公司 | Method and device for touch operation |
CN104575554A (en) * | 2014-12-19 | 2015-04-29 | 广东欧珀移动通信有限公司 | Control method and terminal for broadcasting progress of multimedia data |
CN104765543A (en) * | 2015-04-17 | 2015-07-08 | 努比亚技术有限公司 | Audio playing parameter adjustment method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107656652A (en) * | 2017-10-26 | 2018-02-02 | 沈阳中科创达软件有限公司 | Speed compensation method, device, computer equipment and the storage medium of slide |
WO2019228026A1 (en) * | 2018-05-29 | 2019-12-05 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information display method, apparatus and mobile terminal |
US10963121B2 (en) | 2018-05-29 | 2021-03-30 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information display method, apparatus and mobile terminal |
CN110244888A (en) * | 2019-06-11 | 2019-09-17 | 惠州Tcl移动通信有限公司 | A kind of setting method of behavior pattern, device, storage medium and terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105045492B (en) | 2018-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101690118B1 (en) | Method for controlling alarm clock of electronic device and electronic device | |
CN109361985B (en) | TWS earphone wearing detection method and system, electronic device and storage medium | |
JP2018190453A5 (en) | ||
CN105718173B (en) | Terminal control method, terminal control device and terminal | |
CN105045492B (en) | A kind of sleep playing duration setting method and terminal device | |
CN105068692A (en) | Volume adjustment method and user terminal | |
CN110741387B (en) | Face recognition method and device, storage medium and electronic equipment | |
CN105025350B (en) | A kind of playback terminal control method and playback terminal | |
CN104866406B (en) | A kind of reminding method and terminal based on fingerprint recognition | |
CN105094681B (en) | A kind of method and user terminal that control incoming call is mute | |
US20170033753A1 (en) | Volume Control Methods and Devices, and Multimedia Playback Control Methods and Devices | |
WO2015131590A1 (en) | Method for controlling blank screen gesture processing and terminal | |
CN105100875B (en) | A kind of control method and device of recording of multimedia information | |
CN105450844A (en) | Method and device for controlling mobile terminal alarm clock | |
CN108014499B (en) | Application parameter adjusting method and device | |
CN105511673B (en) | A kind of touch screen response method, device and game control method, device | |
WO2018014265A1 (en) | Control system for smart humidifier | |
EP2846232A1 (en) | Method and device for unlocking touch screen | |
CN105573617A (en) | Volume adjusting method and user terminal | |
CN115016301A (en) | Method and device for controlling intelligent equipment, intelligent equipment and storage medium | |
CN104808964B (en) | A kind of information processing method and client | |
CN106898150B (en) | Bus route prompting method and user equipment | |
US11373507B2 (en) | Continual engagement support device, portable terminal, continual engagement support method, and program | |
CN109085944B (en) | Data processing method and device and mobile terminal | |
CN106656352B (en) | Information transmission method and device and wearable device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180529 |