CN105045492B - A kind of sleep playing duration setting method and terminal device - Google Patents

A kind of sleep playing duration setting method and terminal device Download PDF

Info

Publication number
CN105045492B
CN105045492B CN201510535005.9A CN201510535005A CN105045492B CN 105045492 B CN105045492 B CN 105045492B CN 201510535005 A CN201510535005 A CN 201510535005A CN 105045492 B CN105045492 B CN 105045492B
Authority
CN
China
Prior art keywords
pressure value
item
sleep
sliding block
time
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.)
Expired - Fee Related
Application number
CN201510535005.9A
Other languages
Chinese (zh)
Other versions
CN105045492A (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 CN201510535005.9A priority Critical patent/CN105045492B/en
Publication of CN105045492A publication Critical patent/CN105045492A/en
Application granted granted Critical
Publication of CN105045492B publication Critical patent/CN105045492B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of sleep playing duration setting methods and terminal device, this method to include:The pressure value of touching that the either objective position of item is set under play mode of sleeping for the time shown in terminal device is detected, the time sets item to include sliding block;When touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control slide block is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until when touching pressure value less than or equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, a length of sleep playing duration when sliding block sets the position on item corresponding in the time.Implement the embodiment of the present invention, sleep playing duration can be quickly set.

Description

A kind of sleep playing duration setting method and terminal device
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of sleep playing duration setting method and terminal device.
Background technology
In order to improve the sleep quality of user, the music player in some terminal devices is configured with sleep play mode, After opening sleep play mode, terminal device can play music to help company of the user in music in sleep playing duration Lower quick sleep.User can set sleep playing duration according to self-demand, for example, user needs to set sleep playing duration For 50 minutes, can setting item by dragging the time, (it was 10cm that such as time, which sets a total length, when the time sets item corresponding total A length of 100 minutes) on sliding block to the position of 5cm, since the time sets length shorter so that user drags sliding block very manually It is inconvenient, so as to be difficult to quickly set sleep playing duration.
The content of the invention
The embodiment of the present invention provides a kind of sleep playing duration setting method and terminal device, quickly sleep can be set to broadcast Put duration.
The embodiment of the present invention in a first aspect, provide it is a kind of sleep playing duration setting method, including:
It detects and touching for the either objective position of item is set for the time shown in terminal device under play mode of sleeping And pressure value, the time set item to include sliding block;
When it is described touch pressure value more than predetermined threshold value when, according to the correspondence for touching pressure value and translational speed, control The sliding block is made to move along preset direction on time setting item with the corresponding translational speed of pressure value of touching, until It is described when touching pressure value less than or equal to the predetermined threshold value, the sliding block is controlled to stop movement;Wherein, the sliding block stops moving When dynamic, a length of sleep playing duration when the sliding block sets the position on item corresponding in the time.
In the first possible realization method of first aspect of the embodiment of the present invention, the detection is in sleep play mode Touching before pressure value for the either objective position of item is set down for the time shown in terminal device, and the method is also wrapped It includes:
Gather the finger print information of input;
Judge the finger print information whether with preset fingerprint information matches;
If so, transfer the average sleep duration of user corresponding with the preset fingerprint information;
Judge whether the averagely sleep duration is set in the time corresponding to the position on item with presently described sliding block Duration matching;
If it is not, perform any that the detection sets item under play mode of sleeping for the time shown in terminal device The step of touching pressure value of target location.
With reference to the first possible realization method of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention Second of possible realization method in, the average sleep duration for transferring user corresponding with the preset fingerprint information it Before, the method further includes:
Receive the sleep duration of every day in the preset number of days for the user that wearable device is sent;
The average sleep duration of user described in the sleep duration calculation of every day in the preset number of days.
With reference to the first possible realization method of first aspect of the embodiment of the present invention, in first aspect of the embodiment of the present invention The third possible realization method in, judge the fingerprint after the finger print information of the acquisition input and described Information whether with before preset fingerprint information matches, the method further includes:
Specified relationship user in the social networking application being currently running to the terminal device sends preset fingerprint acquisition of information Request;
Receive the preset fingerprint information that the specified relationship user sends.
With reference to the embodiment of the present invention in a first aspect, first aspect of the embodiment of the present invention the 4th kind of possible realization method In, time sets item to include initial end and end, it is described when it is described touch pressure value more than predetermined threshold value when, according to touching The correspondence of pressure value and translational speed controls the sliding block with the corresponding translational speed of pressure value of touching when described Between set item on moved along preset direction, including:
When it is described touch pressure value more than predetermined threshold value when, if the target location is located at the sliding block and the initial end Between, according to the correspondence for touching pressure value and translational speed, the sliding block is controlled to touch the corresponding shifting of pressure value with described Dynamic speed sets on item in the time and is moved along the direction for being directed toward the initial end;
Alternatively,
When it is described touch pressure value more than predetermined threshold value when, if the target location be located at the sliding block and the end it Between, according to the correspondence for touching pressure value and translational speed, the sliding block is controlled to touch the corresponding movement of pressure value with described Speed sets on item in the time and is moved along the direction for being directed toward the end.
Second aspect of the embodiment of the present invention provides a kind of terminal device, including:
Detection unit, for detecting any for setting item for the time shown in terminal device under play mode of sleeping Pressure value is touched in target location, and the time sets item to include sliding block;
Control unit, for when it is described touch pressure value more than predetermined threshold value when, according to touching pressure value and translational speed Correspondence, the sliding block is controlled to be set with the corresponding translational speed of pressure value of touching in the time on item along default Direction is moved, and when touching pressure value described in less than or equal to the predetermined threshold value, the sliding block is controlled to stop movement;Wherein, When the sliding block stops mobile, a length of sleep playing duration when the sliding block sets the position on item corresponding in the time.
In the first possible realization method of second aspect of the embodiment of the present invention, the terminal device further includes:
Collecting unit, for gathering the finger print information of input;
First judging unit, for judge the finger print information whether with preset fingerprint information matches;
Unit is transferred, for when the first judging unit judging result is to be, transferring and the preset fingerprint information The average sleep duration of corresponding user;
Second judgment unit, for judging whether the averagely sleep duration is set with presently described sliding block in the time Duration matching corresponding to position on item;
Wherein, when the second judgment unit judging result is no, trigger the detection unit detection and played in sleep Set the either objective position of item under pattern for the time shown in terminal device touches pressure value.
With reference to the first possible realization method of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention Second of possible realization method in, the terminal device further includes:
First receiving unit, for receiving the sleep of every day in the preset number of days of the user of wearable device transmission Duration;
Computing unit, for user described in the sleep duration calculation of every day in the preset number of days be averaged into Sleep duration.
With reference to the first possible realization method of second aspect of the embodiment of the present invention, in second aspect of the embodiment of the present invention The third possible realization method in, the terminal device further includes:
Transmitting element is sent default for the specified relationship user into the social networking application that the terminal device is currently running Finger print information obtains request;
Second receiving unit, for receiving the preset fingerprint information that the specified relationship user sends.
With reference to second aspect of the embodiment of the present invention, in the 4th kind of possible realization method of second aspect of the embodiment of the present invention In, time sets item to include initial end and end, it is described when it is described touch pressure value more than predetermined threshold value when, the control Unit controls the sliding block to touch the corresponding movement of pressure value with described according to the correspondence for touching pressure value and translational speed Speed sets the mode that is moved along preset direction on item to be specially in the time:
When it is described touch pressure value more than predetermined threshold value when, if the target location is located at the sliding block and the initial end Between, described control unit controls the sliding block to touch pressure with described according to the correspondence for touching pressure value and translational speed The corresponding translational speed of force value sets on item in the time and is moved along the direction for being directed toward the initial end;
Alternatively,
When it is described touch pressure value more than predetermined threshold value when, if the target location be located at the sliding block and the end it Between, described control unit controls the sliding block to touch pressure with described according to the correspondence for touching pressure value and translational speed Be worth corresponding translational speed sets the direction of the direction end in edge on item to move in the time.
In the embodiment of the present invention, detect and under play mode of sleeping be set for the time shown in terminal device appointing for item Pressure value is touched in one target location, and the time sets item to include sliding block;When touching pressure value more than predetermined threshold value, according to touching The correspondence of pressure value and translational speed, control slide block set edge on item to touch the corresponding translational speed of pressure value in the time Preset direction moves, until when touching pressure value less than or equal to predetermined threshold value, control slide block stops movement;Wherein, sliding block stops When mobile, a length of sleep playing duration when sliding block sets the position on item corresponding in the time.Implement the embodiment of the present invention, it can be with By detection touch pressure value size adjustment time set a top shoe position, so as to quickly set sleep play when It is long.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is a kind of flow chart of playing duration setting method of sleeping disclosed by the embodiments of the present invention;
Fig. 2 is the flow chart of another sleep playing duration setting method disclosed by the embodiments of the present invention;
Fig. 3 is the flow chart of another sleep playing duration setting method disclosed by the embodiments of the present invention;
Fig. 4 is the flow chart of another sleep playing duration setting method disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structure diagram of terminal device disclosed by the embodiments of the present invention;
Fig. 6 is the structure diagram of another terminal device disclosed by the embodiments of the present invention;
Fig. 7 is the structure diagram of another terminal device disclosed by the embodiments of the present invention;
Fig. 8 is the structure diagram of another terminal device disclosed by the embodiments of the present invention;
Fig. 9 is the structure diagram for a kind of time disclosed by the embodiments of the present invention setting item.
Specific embodiment
Below in conjunction with the attached drawing in embodiment of the present invention, the technical solution in embodiment of the present invention is carried out clear Chu is fully described by.Obviously, described embodiment is a part of embodiment of the present invention rather than whole embodiment party Formula.Based on the embodiment in the present invention, those of ordinary skill in the art are obtained on the premise of creative work is not made The every other embodiment obtained, should all belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of sleep playing duration setting method and terminal device, quickly sleep can be set to broadcast Put duration.It is described in detail individually below.
Terminal device described in the embodiment of the present invention may include:Mobile phone, tablet computer or walkman etc., above-mentioned terminal Equipment is only citing, and non exhaustive, including but not limited to above-mentioned terminal device.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of playing duration setting method of sleeping disclosed by the embodiments of the present invention.Such as Shown in Fig. 1, the sleep playing duration setting method described in the present embodiment, including step:
S101 detects the either objective position for setting item for the time shown in terminal device under play mode of sleeping Touch pressure value, the time sets item to include sliding block.
In the embodiment of the present invention, it can be detected by the pressure sensor in the screen of terminal device in sleep play mode Set the either objective position of item for the time shown in terminal device down touches pressure value, can detect and sleep in real time Set the either objective position of item under play mode for the time shown in terminal device touches pressure value, can be in terminal Configuration sleep play mode in music player in equipment, after opening sleep play mode, terminal device can be broadcast in sleep It puts and music is played in duration so that user to be helped quickly to fall asleep under the company of music.Time sets item to be divided into for sleep play mode The timeline of sleep playing duration is put, the time is set comprising sliding block on item, can be by changing the sliding block position on time setting item Sleep playing duration is installed, it can be the either objective position set the time on item that the time, which sets the either objective position of item, Target location can be located at the both ends for the time setting item, can also be located at any position of the centre of time setting item.For example, such as Shown in Fig. 9, under play mode of sleeping, the position a (position a is either objective position) on item is set when user's compressing time When, test position a's touches pressure value.
S102, when touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control Sliding block processed is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until it is small to touch pressure value When equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block sets the position on item in the time A length of sleep playing duration when putting corresponding.
In the embodiment of the present invention, predetermined threshold value can be set according to system, can also be set, touched by user The correspondence of pressure value and translational speed can be:With the increase for touching pressure value, translational speed increases, such as:If when Between length of the item in terminal device screen is set for 5cm, predetermined threshold value 0.1N, when touch pressure value for 0.2N when, it is corresponding Translational speed be 0.2cm/s;When it is 0.3N to touch pressure value, corresponding translational speed is 0.3cm/s;When touching pressure value For 0.4N when, corresponding translational speed be 0.4cm/s;When it is 0.5N to touch pressure value, corresponding translational speed is 0.5cm/ s.Preset direction can be the direction for being directed toward target location, or the direction away from target location.Pressure is touched when detecting When force value is less than or equal to predetermined threshold value, control slide block stops movement, at this point, when sliding block sets the position on item corresponding in the time A length of sleep playing duration.
In some feasible embodiments, the time sets item to include initial end and end, and step S102 includes:
When touching pressure value more than predetermined threshold value, if target location between sliding block and initial end, is pressed according to touching The correspondence of force value and translational speed, control slide block set edge on item to refer to touch the corresponding translational speed of pressure value in the time It is moved to the direction of initial end;
Alternatively,
When touching pressure value more than predetermined threshold value, if target location between sliding block and end, according to touching pressure The correspondence of value and translational speed, control slide block are set on item with touching the corresponding translational speed of pressure value in the time along direction The direction movement of end.
In the embodiment of the present invention, the time sets item to include initial end and end, and the initial of item is set when sliding block is located at the time During end, sleep playing duration is minimum, such as:For 0, when sliding block, which is located at the time, sets the end of item, sleep playing duration is most Greatly, such as:For 100 minutes.When touch pressure value more than predetermined threshold value when, if target location between sliding block and initial end, According to the correspondence for touching pressure value and translational speed, control slide block is set with touching the corresponding translational speed of pressure value in the time It puts and is moved on item along the direction for being directed toward initial end, such as:When touching pressure value as 0.5N, if corresponding translational speed is 0.5cm/ S, then control slide block with the speed of 0.5cm/s the time set item on along be directed toward initial end direction move (will sleep play when Length is turned down), until when touching pressure value less than or equal to predetermined threshold value (such as 0.1N), control slide block stops movement, at this point, sliding block A length of sleep playing duration when setting the position on item corresponding in the time.If target location is between sliding block and end, root According to the correspondence for touching pressure value and translational speed, control slide block is set with touching the corresponding translational speed of pressure value in the time It is moved on item along the direction for being directed toward end, such as:When touching pressure value as 0.5N, if corresponding translational speed is 0.5cm/s, Control slide block is set on item in the time with the speed of 0.5cm/s and is moved along the direction for being directed toward end (by playing duration tune of sleeping Greatly), until touch pressure value less than or equal to predetermined threshold value (such as 0.1N) when, control slide block stop movement, at this point, sliding block when Between set item on position it is corresponding when a length of sleep playing duration.Carry out an invention embodiment, can be set by detection time The variation for touching pressure value of target location on item, it is quick that sleep playing duration is set.
In the embodiment of the present invention, detect and under play mode of sleeping be set for the time shown in terminal device appointing for item Pressure value is touched in one target location, and the time sets item to include sliding block;When touching pressure value more than predetermined threshold value, according to touching The correspondence of pressure value and translational speed, control slide block set edge on item to touch the corresponding translational speed of pressure value in the time Preset direction moves, until when touching pressure value less than or equal to predetermined threshold value, control slide block stops movement;Wherein, sliding block stops When mobile, a length of sleep playing duration when sliding block sets the position on item corresponding in the time.Implement the embodiment of the present invention, it can be with By detection touch pressure value size adjustment time set a top shoe position, so as to quickly set sleep play when It is long.
Referring to Fig. 2, Fig. 2 is the flow chart of another sleep playing duration setting method disclosed by the embodiments of the present invention. As shown in Fig. 2, the sleep playing duration setting method described in the present embodiment, including step:
S201 gathers the finger print information of input.
In the embodiment of the present invention, can finger print information input by user be gathered by the fingerprint collecting area in terminal device, Finger print information can include fingerprint image, fingerprint characteristic etc..
S202, judge finger print information whether with preset fingerprint information matches;If so, step S203 is performed, if it is not, then prompting Finger print information is mismatched with preset fingerprint information, terminates this flow.
In the embodiment of the present invention, preset fingerprint information can be the finger print information being stored in advance in terminal device, judge Whether finger print information can be referred to preset fingerprint information matches by the fingerprint image in the finger print information of judgement input with default Whether the fingerprint image in line information matches, and the fingerprint characteristic in finger print information that can be by judging input is believed with preset fingerprint Whether the fingerprint characteristic in breath matches, if matching, judges finger print information and preset fingerprint information matches.
S203 transfers the average sleep duration of user corresponding with preset fingerprint information.
In the embodiment of the present invention, when finger print information and preset fingerprint information matches, transfer corresponding with preset fingerprint information User average sleep duration, the average sleep duration of user corresponding with preset fingerprint information can be stored in advance in terminal In equipment, for example, the average sleep duration of multiple users can be stored in terminal device, it is each with per family with a preset fingerprint Information corresponds to, and when judging finger print information with one of preset fingerprint information matches, transfers corresponding with the preset fingerprint information User average sleep duration.
S204, judge averagely sleep duration whether with current slide the time set item on position corresponding to duration Match somebody with somebody;If judging result is no, step S205 is performed, if the determination result is YES, prompts averagely sleep duration current slide in the time Duration matching corresponding to position on item is set, terminates this flow.
In the embodiment of the present invention, current slide sets the when a length of current setting corresponding to the position on item to sleep in the time Dormancy playing duration, if averagely sleep duration sets the duration corresponding to the position on item to mismatch with current slide in the time, The sleep playing duration for showing current setting is not optimal sleep playing duration, it is necessary to be configured to sleep playing duration.It can Choosing, when the duration mismatch corresponding to the position of average sleep duration and current slide on time setting item, can export Prompt message, the prompt message be used to prompt user's current setting sleep playing duration and user average sleep duration not Match somebody with somebody, guiding user is configured sleep playing duration.Implement the embodiment of the present invention, it can be according to the average sleep duration of user The sleep playing duration of user is configured, facilitates the size of user setting sleep playing duration.
S205 detects the either objective position for setting item for the time shown in terminal device under play mode of sleeping Touch pressure value.
S206, when touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control Sliding block processed is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until it is small to touch pressure value When equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block sets the position on item in the time A length of sleep playing duration when putting corresponding.
Step S205~step S206 in the embodiment of the present invention can refer to step S101~step shown in FIG. 1 S102, the embodiment of the present invention repeat no more.
In the embodiment of the present invention, the finger print information of input is gathered;Judge finger print information whether with preset fingerprint information matches; If so, transfer the average sleep duration of user corresponding with preset fingerprint information;Judge averagely sleep duration whether with when advancing slip Block sets the duration matching corresponding to the position on item in the time;If judging result is no, detect in sleep play mode knit stitch The either objective position of item is set to the time shown in terminal device touches pressure value;It is more than default threshold when touching pressure value During value, according to the correspondence for touching pressure value and translational speed, control slide block is existed with touching the corresponding translational speed of pressure value Time sets and is moved on item along preset direction, until when touching pressure value less than or equal to predetermined threshold value, control slide block stops movement; Wherein, when sliding block stops mobile, a length of sleep playing duration when sliding block sets the position on item corresponding in the time.Implement this hair Bright embodiment, the size adjustment time that pressure value can be touched by detection sets the position of a top shoe, so as to quick It is configured when sleep playing duration being set, while the sleep of user can be played according to the average time for falling asleep of user, side Just the size of user setting sleep playing duration.
Referring to Fig. 3, Fig. 3 is the flow chart of another sleep playing duration setting method disclosed by the embodiments of the present invention. As shown in figure 3, the sleep playing duration setting method described in the present embodiment, including step:
S301 receives the sleep duration of every day in the preset number of days for the user that wearable device is sent.
In the embodiment of the present invention, wearable device can be Intelligent bracelet, smartwatch, intelligent dress ornament etc., and the present invention is implemented Example does not limit.Terminal device can obtain the sleep duration of every day in the preset number of days of user, and terminal device reception is worn The sleep duration of every day in the preset number of days of the user of equipment transmission is worn, preset number of days can be nearest 10 days.
S302, the average sleep duration of the sleep duration calculation user of every day in preset number of days.
In the embodiment of the present invention, when the sleep duration of every day in the preset number of days for receiving the user that wearable device is sent Afterwards, the average sleep duration of the sleep duration calculation user of every day in preset number of days, for example, when reception wearable device After the sleep duration of every day in nearest 10 days of the user of transmission, flat is asked to the sleep duration of every day in nearest 10 days Average calculates the average sleep duration of user.Implement the embodiment of the present invention, the average sleep duration of user can be by wearing The sleep duration that equipment obtains every day in the preset number of days of user is averaged acquisition, can accurately obtain being averaged for user Sleep duration, so as to accurately set sleep playing duration.
S303 gathers the finger print information of input.
S304, judge finger print information whether with preset fingerprint information matches;If so, step S305 is performed, if it is not, then prompting Finger print information is mismatched with preset fingerprint information, terminates this flow.
S305 transfers the average sleep duration of user corresponding with preset fingerprint information.
S306, judge averagely sleep duration whether with current slide the time set item on position corresponding to duration Match somebody with somebody;If judging result is no, step S307 is performed, if the determination result is YES, then averagely sleep duration is prompted to exist with current slide Time sets the duration matching corresponding to the position on item, terminates this flow.
S307 detects the either objective position for setting item for the time shown in terminal device under play mode of sleeping Touch pressure value.
S308, when touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control Sliding block processed is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until it is small to touch pressure value When equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block sets the position on item in the time A length of sleep playing duration when putting corresponding.
Step S303~step S308 in the embodiment of the present invention can refer to step S201~step shown in Fig. 2 S206, the embodiment of the present invention repeat no more.
In the embodiment of the present invention, the sleep duration of every day in the preset number of days for the user that wearable device is sent is received; The average sleep duration of the sleep duration calculation user of every day in preset number of days;Gather the finger print information of input;Sentence Disconnected finger print information whether with preset fingerprint information matches;If so, transfer the average sleep of user corresponding with preset fingerprint information Duration;Judge averagely sleep duration whether with current slide the time set item on position corresponding to duration match;If sentence Disconnected result is no, detects and sets the either objective position of item for the time shown in terminal device under play mode of sleeping Touch pressure value;When touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control Sliding block is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, is less than until touching pressure value During equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block sets the position on item in the time A length of sleep playing duration when corresponding.Implement the embodiment of the present invention, when the size adjustment of pressure value can be touched by detection Between the position of top shoe is set, so as to quickly set sleep playing duration, while can be obtained according to wearable device is received The average time for falling asleep of the sleep duration calculation user of every day in the preset number of days taken, according to the average time for falling asleep of user It is configured when being played to the sleep of user, can facilitate user that the size of sleep playing duration is accurately set.
Referring to Fig. 4, Fig. 4 is the flow chart of another sleep playing duration setting method disclosed by the embodiments of the present invention. As shown in figure 4, the sleep playing duration setting method described in the present embodiment, including step:
S401 gathers the finger print information of input.
S402, the specified relationship user in the social networking application being currently running to terminal device send preset fingerprint acquisition of information Request.
In the embodiment of the present invention, after the finger print information of acquisition input, the social networking application that is currently running to terminal device In specified relationship user send preset fingerprint information acquisition request, social networking application can be wechat, QQ, have letter, credulity etc., refer to It can be the user for inputting finger print information to determine relational users.For example, when user A uses the terminal device of user B, if with When family A needs the sleep playing duration in the terminal device to user B to be adjusted, user A touches the terminal device of user B The predeterminable area of screen, the predeterminable area of the screen of the terminal device detection terminal equipment of user B touch pressure value, and output carries Show information, prompt message prompting input finger print information, user A inputs finger print information, and terminal device is currently running to terminal device Social networking application in specified relationship user (user A) send preset fingerprint information acquisition request, user A input preset fingerprint letter Breath, you can be proved to be successful in time, if user A is not the good friend of user B, user A can not carry out the terminal device of user B Operation.Implement the embodiment of the present invention, the security of terminal device can be improved, prevent strange user's operation.
S403 receives the preset fingerprint information that specified relationship user sends.
In the embodiment of the present invention, the specified relationship user in the social networking application being currently running to terminal device sends default refer to After line information acquisition request, the social networking application output prompt message prompting specified relationship user of specified relationship user inputs fingerprint Information, and specified relationship user input finger print information is sent to terminal device, so that terminal device receives specified relationship and uses The preset fingerprint information that family is sent.Implement the embodiment of the present invention, can be preset by the social networking application quick obtaining being currently running Finger print information avoids preset fingerprint information and is stored in the risk being easily leaked in terminal device, improves terminal device Security.
S404, judge finger print information whether with preset fingerprint information matches;If so, step S405 is performed, if it is not, then prompting Finger print information is mismatched with preset fingerprint information, terminates this flow.
S405 transfers the average sleep duration of user corresponding with preset fingerprint information.
S406, judge averagely sleep duration whether with current slide the time set item on position corresponding to duration Match somebody with somebody;If judging result is no, step S407 is performed, if the determination result is YES, then averagely sleep duration is prompted to exist with current slide Time sets the duration matching corresponding to the position on item, terminates this flow.
S407 detects the either objective position for setting item for the time shown in terminal device under play mode of sleeping Touch pressure value.
S408, when touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control Sliding block processed is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until it is small to touch pressure value When equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block sets the position on item in the time A length of sleep playing duration when putting corresponding.
Step S401 in the embodiment of the present invention can refer to step S201 shown in Fig. 2, step S404~step S408 Step S202~step S206 shown in Fig. 2 can be referred to, the embodiment of the present invention repeats no more.
In the embodiment of the present invention, the finger print information of input is gathered;Finger in the social networking application being currently running to terminal device Determine relational users and send preset fingerprint information acquisition request;Receive the preset fingerprint information that specified relationship user sends;Judgement refers to Line information whether with preset fingerprint information matches;If so, transfer the average sleep duration of user corresponding with preset fingerprint information; Judge averagely sleep duration whether with current slide the time set item on position corresponding to duration match;If judging result It is no, that detects the either objective position under play mode of sleeping for the time setting item shown in terminal device touches pressure Force value;When touching pressure value more than predetermined threshold value, according to the correspondence for touching pressure value and translational speed, control slide block with It touches the corresponding translational speed of pressure value to move along preset direction on time setting item, be less than or equal in advance until touching pressure value If during threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block sets the position on item corresponding in the time Shi Changwei sleep playing durations.Implement the embodiment of the present invention, the size adjustment time that pressure value can be touched by detection is set The position of top shoe, so as to quickly set sleep playing duration, while can improve the security of terminal device, prevent Strange user's operation.
Referring to Fig. 5, Fig. 5 is a kind of structure diagram of terminal device disclosed by the embodiments of the present invention.As shown in figure 5, Terminal device described in the present embodiment, including detection unit 501 and control unit 502, wherein:
Detection unit 501 sets item under play mode of sleeping for detecting for the time shown in terminal device Pressure value is touched in either objective position, and the time sets item to include sliding block.
In the embodiment of the present invention, detection unit 501 can be detected by the pressure sensor in the screen of terminal device Set the either objective position of item under sleep play mode for the time shown in terminal device touches pressure value, Ke Yishi When either objective position of the detection for the time setting item that shows in terminal device under play mode of sleep touch pressure Value can configure sleep play mode in the music player in terminal device, after opening sleep play mode, terminal device Music can be played in sleep playing duration to help quickly to fall asleep under company of the user in music.Time sets item as sleep The timeline of sleep playing duration is set under play mode, and the time sets on item comprising sliding block, can be set by changing the time Slide position on item sets sleep playing duration, and it can set appointing on item the time that the time, which sets the either objective position of item, One target location, target location can be located at the both ends for the time setting item, can also be located at any of the centre of time setting item Position.For example, as shown in figure 9, under play mode of sleeping, as the position a that user's compressing time is set on item, (position a is to appoint One target location) when, test position a's touches pressure value.
Control unit 502, for when touching pressure value more than predetermined threshold value, according to touching pressure value and translational speed Correspondence, control slide block are moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until When touching pressure value less than or equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block is in the time A length of sleep playing duration when setting the position on item corresponding.
In the embodiment of the present invention, predetermined threshold value can be set according to system, can also be set, touched by user The correspondence of pressure value and translational speed can be:With the increase for touching pressure value, translational speed increases, such as:If when Between length of the item in terminal device screen is set for 5cm, predetermined threshold value 0.1N, when touch pressure value for 0.2N when, it is corresponding Translational speed be 0.2cm/s;When it is 0.3N to touch pressure value, corresponding translational speed is 0.3cm/s;When touching pressure value For 0.4N when, corresponding translational speed be 0.4cm/s;When it is 0.5N to touch pressure value, corresponding translational speed is 0.5cm/ s.Preset direction can be the direction for being directed toward target location, or the direction away from target location.Pressure is touched when detecting When force value is less than or equal to predetermined threshold value, 502 control slide block of control unit stops movement, at this point, sliding block is set in the time on item A length of sleep playing duration when position is corresponding.
Optionally, the time sets item to include initial end and end, when touching pressure value more than predetermined threshold value, control unit 502 according to touching the correspondence of pressure value and translational speed, control slide block with touch the corresponding translational speed of pressure value when Between set the mode that is moved along preset direction on item to be specially:
When touch pressure value more than predetermined threshold value when, if target location between sliding block and initial end, control unit 502 According to the correspondence for touching pressure value and translational speed, control slide block is set with touching the corresponding translational speed of pressure value in the time It puts and is moved on item along the direction for being directed toward initial end;
Alternatively,
When touch pressure value more than predetermined threshold value when, if target location between sliding block and end, control unit 502 According to the correspondence for touching pressure value and translational speed, control slide block is set with touching the corresponding translational speed of pressure value in the time It is moved on item along the direction for being directed toward end.
In the embodiment of the present invention, the time sets item to include initial end and end, and the initial of item is set when sliding block is located at the time During end, sleep playing duration is minimum, such as:For 0, when sliding block, which is located at the time, sets the end of item, sleep playing duration is most Greatly, such as:For 100 minutes.When touch pressure value more than predetermined threshold value when, if target location between sliding block and initial end, Control unit 502 is according to the correspondence for touching pressure value and translational speed, and control slide block is to touch the corresponding movement of pressure value Speed sets on item in the time and is moved along the direction for being directed toward initial end, such as:When touching pressure value as 0.5N, if corresponding movement Speed is 0.5cm/s, then control slide block is set in the time with the speed of 0.5cm/s and moved on item along the direction for being directed toward initial end (turning sleep playing duration down), until when touching pressure value less than or equal to predetermined threshold value (such as 0.1N), control slide block stops It is mobile, at this point, a length of sleep playing duration when sliding block sets the position on item corresponding in the time.If target location is located at sliding block Between end, control unit 502 is according to the correspondence for touching pressure value and translational speed, and control slide block is to touch pressure value Corresponding translational speed sets on item in the time and is moved along the direction for being directed toward end, such as:When touching pressure value as 0.5N, if right The translational speed answered is 0.5cm/s, then control slide block is set on item along the direction for being directed toward end with the speed of 0.5cm/s in the time Mobile (sleep playing duration is tuned up), until when touching pressure value less than or equal to predetermined threshold value (such as 0.1N), control slide block Stop movement, at this point, a length of sleep playing duration when sliding block sets the position on item corresponding in the time.Carry out an invention implementation Example can set the variation for touching pressure value of the target location on item by detection time, quick to set sleep playing duration.
In the embodiment of the present invention, detection unit 501 detect under play mode of sleeping for show in terminal device when Between the either objective position of item is set to touch pressure value, the time sets item to include sliding block;It is more than default threshold when touching pressure value During value, for control unit 502 according to the correspondence for touching pressure value and translational speed, control slide block is corresponding to touch pressure value Translational speed sets on item in the time and is moved along preset direction, until when touching pressure value less than or equal to predetermined threshold value, control is slided Block stops movement;Wherein, when sliding block stops mobile, when a length of sleep plays when sliding block sets the position on item corresponding in the time It is long.Implement the embodiment of the present invention, the size adjustment time that pressure value can be touched by detection sets the position of a top shoe, from And sleep playing duration can be quickly set.
Referring to Fig. 6, Fig. 6 is the structure diagram of another terminal device disclosed by the embodiments of the present invention.Such as Fig. 6 institutes Show, the terminal device described in the present embodiment, in addition to including detection unit 501 and the control unit 502 shown in Fig. 5, It further includes collecting unit 503, the first judging unit 504, transfer unit 505 and second judgment unit 506, wherein:
Collecting unit 503, for gathering the finger print information of input.
In the embodiment of the present invention, collecting unit 503 can gather user by the fingerprint collecting area in terminal device and input Finger print information, finger print information can include fingerprint image, fingerprint characteristic etc..
First judging unit 504, for judge finger print information whether with preset fingerprint information matches.
In the embodiment of the present invention, preset fingerprint information can be the finger print information being stored in advance in terminal device, first Judging unit 504 judges whether finger print information can be by the finger in the finger print information of judgement input with preset fingerprint information matches Whether print image matches with the fingerprint image in preset fingerprint information, and the fingerprint in finger print information that can be by judging input is special Whether sign matches with the fingerprint characteristic in preset fingerprint information, if matching, judges finger print information and preset fingerprint information matches.
Unit 505 is transferred, for when 504 judging result of the first judging unit is to be, transferring and preset fingerprint information pair The average sleep duration of the user answered.
In the embodiment of the present invention, when finger print information and preset fingerprint information matches, transfer unit 505 and transfer and default finger The average sleep duration of the corresponding user of line information, the average sleep duration of user corresponding with preset fingerprint information can be advance It is stored in terminal device, it is each with per family with one for example, the average sleep duration of multiple users can be stored in terminal device A preset fingerprint information corresponds to, and when judging finger print information with one of preset fingerprint information matches, transfers and the default finger The average sleep duration of the corresponding user of line information.
Second judgment unit 506, for judging whether average sleep duration sets the position on item with current slide in the time Put corresponding duration matching.
Wherein, when 506 judging result of second judgment unit is no, detection trigger unit 501 is detected plays mould in sleep Set the either objective position of item under formula for the time shown in terminal device touches pressure value.
In the embodiment of the present invention, current slide sets the when a length of current setting corresponding to the position on item to sleep in the time Dormancy playing duration, if averagely sleep duration sets the duration corresponding to the position on item to mismatch with current slide in the time, The sleep playing duration for showing current setting is not optimal sleep playing duration, it is necessary to be configured to sleep playing duration.It can Choosing, when second judgment unit 506 judges that averagely sleep duration is set in the time corresponding to the position on item with current slide When duration mismatches, prompt message can be exported, the prompt message be used to prompting the sleep playing duration of user's current setting with The average sleep duration of user mismatches, and guiding user is configured sleep playing duration.Implement the embodiment of the present invention, it can be with The sleep playing duration of user is configured according to the average sleep duration of user, facilitates user setting sleep playing duration Size.
In the embodiment of the present invention, the finger print information of the acquisition input of collecting unit 503;First judging unit 504 judges fingerprint Information whether with preset fingerprint information matches;When 504 judging result of the first judging unit for be when, transfer unit 505 transfer with The average sleep duration of the corresponding user of preset fingerprint information;Second judgment unit 506 judges that averagely whether sleep duration is with working as Front-slider sets the duration matching corresponding to the position on item in the time;When 506 judging result of second judgment unit is no, inspection Survey unit 501 is detected sets touching for the either objective position of item under play mode of sleeping for the time shown in terminal device And pressure value;When touching pressure value more than predetermined threshold value, control unit 502 is corresponding with translational speed according to pressure value is touched Relation, control slide block is moved with touching the corresponding translational speed of pressure value on time setting item along preset direction, until touching When pressure value is less than or equal to predetermined threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block is set in the time Position on item a length of sleep playing duration when corresponding.Implement the embodiment of the present invention, can pressure value be touched by detection Size adjustment time sets the position of a top shoe, so as to quickly set sleep playing duration, while can be according to user Average time for falling asleep be configured when being played to the sleep of user, facilitate the size of user setting sleep playing duration.
Referring to Fig. 7, Fig. 7 is the structure diagram of another terminal device disclosed by the embodiments of the present invention.Such as Fig. 7 institutes Show, the terminal device described in the present embodiment, it is single except including detection unit 501 shown in Fig. 6, control unit 502, acquisition First 503, first judging unit 504 is transferred outside unit 505 and second judgment unit 506, further includes the first receiving unit 507 With computing unit 508, wherein:
First receiving unit 507, for receiving the sleep of every day in the preset number of days of the user of wearable device transmission Duration.
In the embodiment of the present invention, wearable device can be Intelligent bracelet, smartwatch, intelligent dress ornament etc., and the present invention is implemented Example does not limit.First receiving unit 507 can obtain the sleep duration of every day in the preset number of days of user, terminal device The sleep duration of every day in the preset number of days for the user that wearable device is sent is received, preset number of days can be nearest 10 My god.
Computing unit 508, for the sleep duration calculation user of every day in preset number of days average sleep when It is long.
In the embodiment of the present invention, when in the preset number of days that the first receiving unit 507 receives the user that wearable device is sent After the sleep duration of every day, the sleep duration calculation user's of the every day of computing unit 508 in preset number of days is averaged Sleep duration, for example, entering when every day in nearest 10 days that the first receiving unit 507 receives the user that wearable device is sent It after sleeping duration, averages to the sleep duration of every day in nearest 10 days, computing unit 508 calculates the average sleep of user Duration.Implement the embodiment of the present invention, the average sleep duration of user can pass through the preset number of days to wearable device acquisition user In the sleep duration of every day average acquisition, the average sleep duration of user can be accurately obtained, so as to accurately set Put sleep playing duration.
In the embodiment of the present invention, the first receiving unit 507 receives every in the preset number of days for the user that wearable device is sent The sleep duration of one day;The average sleep of the sleep duration calculation user of the every day of computing unit 508 in preset number of days Duration;The finger print information of the acquisition input of collecting unit 503;First judging unit 504 judge finger print information whether with preset fingerprint Information matches;When 504 judging result of the first judging unit for be when, transfer unit 505 transfer it is corresponding with preset fingerprint information The average sleep duration of user;Second judgment unit 506 judge averagely sleep duration whether with current slide the time set item On position corresponding to duration matching;When 506 judging result of second judgment unit is no, detection unit 501, which detects, is sleeping Set the either objective position of item under dormancy play mode for the time shown in terminal device touches pressure value;It is pressed when touching When force value is more than predetermined threshold value, control unit 502 is according to the correspondence for touching pressure value and translational speed, and control slide block is with tactile And the corresponding translational speed of pressure value sets on item in the time and is moved along preset direction, is less than or equal to preset until touching pressure value During threshold value, control slide block stops movement;Wherein, when sliding block stops mobile, when sliding block sets the position on item corresponding in the time A length of sleep playing duration.Implement the embodiment of the present invention, the size adjustment time that pressure value can be touched by detection sets item The position of top shoe so as to quickly set sleep playing duration, while can obtain default according to reception wearable device The average time for falling asleep of the sleep duration calculation user of every day in number of days, according to the average time for falling asleep of user to user's Sleep is configured when playing, and user can be facilitated accurately to set the size of sleep playing duration.
Referring to Fig. 8, Fig. 8 is the structure diagram of another terminal device disclosed by the embodiments of the present invention.Such as Fig. 8 institutes Show, the terminal device described in the present embodiment, it is single except including detection unit 501 shown in Fig. 6, control unit 502, acquisition First 503, first judging unit 504 is transferred outside unit 505 and second judgment unit 506, further includes transmitting element 509 and the Two receiving units 510, wherein:
Transmitting element 509 is sent default for the specified relationship user into the social networking application that terminal device is currently running Finger print information obtains request.
In the embodiment of the present invention, after the finger print information of the acquisition input of collecting unit 503, transmitting element 509 is to terminal Specified relationship user in the social networking application that equipment is currently running sends preset fingerprint information acquisition request, and social networking application can be Wechat, QQ, there are letter, credulity etc., specified relationship user can be the user for inputting finger print information.For example, when user A is used During the terminal device of user B, if user A needs the sleep playing duration in the terminal device to user B to be adjusted, user A touches the predeterminable area of the screen of the terminal device of user B, and the screen of the terminal device detection terminal equipment of user B is preset Pressure value is touched in region, exports prompt message, prompt message prompting input finger print information, user A input finger print informations, terminal Specified relationship user (user A) of the equipment into the social networking application that terminal device is currently running sends preset fingerprint acquisition of information please Ask, user A input preset fingerprint information, you can be proved to be successful in time, if user A is not the good friend of user B, user A without Method operates the terminal device of user B.Implement the embodiment of the present invention, the security of terminal device can be improved, prevent footpath between fields Raw user's operation.
Second receiving unit 510, for receiving the preset fingerprint information of specified relationship user transmission.
In the embodiment of the present invention, specified relationship of the transmitting element 509 into the social networking application that terminal device is currently running is used After family sends preset fingerprint information acquisition request, the social networking application output prompt message prompting specified relationship of specified relationship user User inputs finger print information, and specified relationship user input finger print information is sent to terminal device, the second receiving unit 510 Receive the preset fingerprint information that specified relationship user sends.Implement the embodiment of the present invention, can be answered by the social activity being currently running With quick obtaining preset fingerprint information, avoid preset fingerprint information and be stored in the risk being easily leaked in terminal device, carry The high security of terminal device.
In the embodiment of the present invention, the finger print information of the acquisition input of collecting unit 503;Transmitting element 509 to terminal device just Specified relationship user in the social networking application of operation sends preset fingerprint information acquisition request;Second receiving unit 510 receives The preset fingerprint information that specified relationship user sends;First judging unit 504 judge finger print information whether with preset fingerprint information Matching;When 504 judging result of the first judging unit is to be, transfers unit 505 and transfer user corresponding with preset fingerprint information Average sleep duration;Second judgment unit 506 judges averagely whether sleep duration is set in the time on item with current slide Duration matching corresponding to position;When 506 judging result of second judgment unit is no, detection unit 501 is detected to be broadcast in sleep Set the either objective position of item under mode playback for the time shown in terminal device touches pressure value;When touching pressure value During more than predetermined threshold value, control unit 502 is pressed according to the correspondence for touching pressure value and translational speed, control slide block with touching The corresponding translational speed of force value sets on item in the time and is moved along preset direction, until touching pressure value less than or equal to predetermined threshold value When, control slide block stops movement;Wherein, when sliding block stops mobile, sliding block is a length of when setting the position on item corresponding in the time Sleep playing duration.Implement the embodiment of the present invention, can be touched by detection sliding on the size adjustment time setting item of pressure value The position of block so as to quickly set sleep playing duration, while can improve the security of terminal device, prevent strange use Family operates.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can Relevant hardware to be instructed to complete by program, which can be stored in a computer readable storage medium, storage Medium can include:Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
A kind of sleep playing duration setting method and terminal device provided above to the embodiment of the present invention has carried out in detail Thin to introduce, specific case used herein is set forth the principle of the present invention and embodiment, and above example is said It is bright to be only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, foundation The thought of the present invention, there will be changes in specific embodiments and applications, in conclusion this specification content is not It is interpreted as limitation of the present invention.

Claims (9)

1. a kind of sleep playing duration setting method, which is characterized in that including:
That detects the either objective position under play mode of sleeping for the time setting item shown in terminal device touches pressure Force value, the time set item to include sliding block;
When it is described touch pressure value more than predetermined threshold value when, according to the correspondence for touching pressure value and translational speed, control institute It states sliding block to move along preset direction on time setting item with the corresponding translational speed of pressure value of touching, until described When touching pressure value less than or equal to the predetermined threshold value, the sliding block is controlled to stop movement;Wherein, the sliding block stops movement When, a length of sleep playing duration when the sliding block sets the position on item corresponding in the time;
Wherein, the detection sets the either objective position of item under play mode of sleeping for the time shown in terminal device Touch before pressure value, the method further includes:
Gather the finger print information of input;
Judge the finger print information whether with preset fingerprint information matches;
If so, transfer the average sleep duration of user corresponding with the preset fingerprint information;
Judge the averagely sleep duration whether with presently described sliding block the time set item on position corresponding to when Long matching;
If it is not, perform the either objective that the detection sets item under play mode of sleeping for the time shown in terminal device The step of touching pressure value of position.
2. according to the method described in claim 1, it is characterized in that, described transfer user corresponding with the preset fingerprint information Average sleep duration before, the method further includes:
Receive the sleep duration of every day in the preset number of days for the user that wearable device is sent;
The average sleep duration of user described in the sleep duration calculation of every day in the preset number of days.
3. according to the method described in claim 1, it is characterized in that, it is described acquisition input finger print information after, Yi Ji It is described judge the finger print information whether with before preset fingerprint information matches, the method further includes:
Specified relationship user in the social networking application being currently running to the terminal device sends preset fingerprint information acquisition request;
Receive the preset fingerprint information that the specified relationship user sends.
4. according to the method described in claim 1, it is characterized in that, the time set item include initial end and end, it is described When it is described touch pressure value more than predetermined threshold value when, according to the correspondence for touching pressure value and translational speed, control the cunning Block is moved with the corresponding translational speed of pressure value of touching on time setting item along preset direction, including:
When it is described touch pressure value more than predetermined threshold value when, if the target location be located at the sliding block and the initial end it Between, according to the correspondence for touching pressure value and translational speed, the sliding block is controlled to touch the corresponding movement of pressure value with described Speed sets on item in the time and is moved along the direction for being directed toward the initial end;
Alternatively,
When it is described touch pressure value more than predetermined threshold value when, if the target location between the sliding block and the end, According to the correspondence for touching pressure value and translational speed, the sliding block is controlled to touch the corresponding translational speed of pressure value with described It sets in the time on item and is moved along the direction for being directed toward the end.
5. a kind of terminal device, which is characterized in that including:
Detection unit, for detecting the either objective for setting item for the time shown in terminal device under play mode of sleeping Pressure value is touched in position, and the time sets item to include sliding block;
Control unit, for when it is described touch pressure value more than predetermined threshold value when, according to pair for touching pressure value and translational speed It should be related to, the sliding block is controlled to be set with the corresponding translational speed of pressure value of touching in the time on item along preset direction It is mobile, when touching pressure value described in less than or equal to the predetermined threshold value, the sliding block is controlled to stop movement;Wherein, it is described When sliding block stops mobile, a length of sleep playing duration when the sliding block sets the position on item corresponding in the time;
Wherein, the terminal device further includes:
Collecting unit, for gathering the finger print information of input;
First judging unit, for judge the finger print information whether with preset fingerprint information matches;
Unit is transferred, for when the first judging unit judging result is to be, transferring corresponding with the preset fingerprint information User average sleep duration;
Second judgment unit, for judging whether the averagely sleep duration sets item with presently described sliding block in the time Position corresponding to duration matching;
Wherein, when the second judgment unit judging result is no, the detection unit detection is triggered in sleep play mode Set the either objective position of item for the time shown in terminal device down touches pressure value.
6. terminal device according to claim 5, which is characterized in that the terminal device further includes:
First receiving unit, for receive wearable device transmission the user preset number of days in every day sleep when It is long;
Computing unit, for described in the sleep duration calculation of every day in the preset number of days during the average sleep of user It is long.
7. terminal device according to claim 5, which is characterized in that the terminal device further includes:
Transmitting element sends preset fingerprint for the specified relationship user into the social networking application that the terminal device is currently running Information acquisition request;
Second receiving unit, for receiving the preset fingerprint information that the specified relationship user sends.
8. terminal device according to claim 5, which is characterized in that the time sets item to include initial end and end, It is described when it is described touch pressure value more than predetermined threshold value when, described control unit is corresponding with translational speed according to pressure value is touched Relation controls the sliding block to be moved with the corresponding translational speed of pressure value of touching on time setting item along preset direction Dynamic mode is specially:
When it is described touch pressure value more than predetermined threshold value when, if the target location be located at the sliding block and the initial end it Between, described control unit controls the sliding block to touch pressure with described according to the correspondence for touching pressure value and translational speed Be worth corresponding translational speed sets the direction of the direction initial end in edge on item to move in the time;
Alternatively,
When it is described touch pressure value more than predetermined threshold value when, if the target location between the sliding block and the end, Described control unit controls the sliding block to touch pressure value pair with described according to the correspondence for touching pressure value and translational speed The translational speed answered sets on item in the time and is moved along the direction for being directed toward the end.
9. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage has program, In, described program is used to that relevant hardware to be instructed to carry out the method described in perform claim 1 to 4 any one of requirement.
CN201510535005.9A 2015-08-27 2015-08-27 A kind of sleep playing duration setting method and terminal device Expired - Fee Related CN105045492B (en)

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 CN105045492A (en) 2015-11-11
CN105045492B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656652B (en) * 2017-10-26 2021-03-26 沈阳中科创达软件有限公司 Speed compensation method and device for sliding operation, computer equipment and storage medium
CN108958621A (en) * 2018-05-29 2018-12-07 Oppo广东移动通信有限公司 information display method, device 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

Citations (4)

* Cited by examiner, † Cited by third party
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
CN104020936A (en) * 2013-03-01 2014-09-03 北京三星通信技术研究有限公司 Terminal and controlling method thereof
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7619616B2 (en) * 2004-12-21 2009-11-17 Microsoft Corporation Pressure sensitive controls
WO2011114630A1 (en) * 2010-03-18 2011-09-22 京セラ株式会社 Electronic apparatus
JP6182207B2 (en) * 2012-05-09 2017-08-16 アップル インコーポレイテッド Device, method, and graphical user interface for providing feedback for changing an activation state of a user interface object
CN103440097A (en) * 2013-07-29 2013-12-11 康佳集团股份有限公司 Method and terminal for controlling touch pad cursor to slide on the basis of pressure
CN104765543A (en) * 2015-04-17 2015-07-08 努比亚技术有限公司 Audio playing parameter adjustment method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
CN104020936A (en) * 2013-03-01 2014-09-03 北京三星通信技术研究有限公司 Terminal and controlling method thereof
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

Also Published As

Publication number Publication date
CN105045492A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
WO2016058387A1 (en) Method, device and system for processing touch interaction
CN105739868B (en) A kind of method and device that identification terminal is accidentally touched
CN105068692B (en) A kind of volume adjusting method and user terminal
CN105607853B (en) A kind of information processing method and electronic equipment
CN105045492B (en) A kind of sleep playing duration setting method and terminal device
CN104850341B (en) A kind of application icon display methods of mobile terminal and mobile terminal
CN103488337B (en) A kind of method of adjusting sensitivity of touch screen in pad pasting situation
CN104639758B (en) Alarm clock control method and alarm clock control device applied to intelligent terminal
CN108845731A (en) Application icon control method, wearable device and computer readable storage medium
CN104035721A (en) Method and device for adjusting video playing parameters by means of fingerprint identification
US11201679B2 (en) Communications methods and user equipment
CN104410938A (en) Intelligent headset and control method thereof
EP2451237A3 (en) Transmission protection scheme
EP1731991A3 (en) User interface using click duration of mobile communication terminal and method for executing the same
CN110210395B (en) Vein image acquisition method and related product
CN105009028A (en) Method for controlling terminal device, and wearable electronic device
CN111387978A (en) Method, device, equipment and medium for detecting action section of surface electromyogram signal
CN105657161A (en) Incoming call processing method and device
CN104199543A (en) Leading limb identification method and system
CN104333661A (en) Mobile device and limited communication method based on drunk detection
CN103974112A (en) Method and device for controlling television
DE102021203156A1 (en) SKIN-TO-SKIN CONTACT DETECTION
CN105204731B (en) A kind of video pictures Zoom method and terminal device
CN104156592B (en) Data processing method and data processing equipment
CN105549741B (en) A kind of control method for playing back and user terminal of radio play system

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