CN108089838A - Volume adjusting method, mobile terminal and storage medium under screen lock state - Google Patents

Volume adjusting method, mobile terminal and storage medium under screen lock state Download PDF

Info

Publication number
CN108089838A
CN108089838A CN201810024585.9A CN201810024585A CN108089838A CN 108089838 A CN108089838 A CN 108089838A CN 201810024585 A CN201810024585 A CN 201810024585A CN 108089838 A CN108089838 A CN 108089838A
Authority
CN
China
Prior art keywords
target
screen
lock state
volume
grade
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810024585.9A
Other languages
Chinese (zh)
Inventor
李海林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Spreadrise Technologies Co Ltd
Original Assignee
Shanghai Spreadrise Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Spreadrise Technologies Co Ltd filed Critical Shanghai Spreadrise Technologies Co Ltd
Priority to CN201810024585.9A priority Critical patent/CN108089838A/en
Publication of CN108089838A publication Critical patent/CN108089838A/en
Priority to PCT/CN2018/124014 priority patent/WO2019137220A1/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Abstract

The invention discloses volume adjusting method, mobile terminal and the storage medium under a kind of screen lock state, the described method includes:Mobile terminal monitors the slip event of touch-screen when in screen lock state;When listening to the slip event of the touch-screen, corresponding glide direction and sliding distance are extracted from the slip event;It determines that target adjusts information according to the glide direction and sliding distance, and information is adjusted according to the target and carries out volume adjustment.Since the present invention monitors the slip event of touch-screen, the instruction of energy quick response user in real time;Volume is adjusted by slide so that operation is more simple and efficient;Sliding distance is unrestricted, improves the precision of volume adjustment.

Description

Volume adjusting method, mobile terminal and storage medium under screen lock state
Technical field
The present invention relates under intelligent terminal technical field more particularly to a kind of screen lock state volume adjusting method, movement Terminal and storage medium.
Background technology
Most of intelligent terminal users can select to listen to music to loosen or entertain in daily life either work, In different environment, it is necessary to volume it is also different, this just needs user to adjust the size of volume manually.It is adopted at present Mode one:The size of volume is adjusted by pressing the volume key on mobile phone;Mode two:Using with volume knob Earphone.Both modes are all the big minor adjustments for employing the button of entity to carry out volume.
The above-mentioned existing technical solution for adjusting volume, there are following defects:
1st, physical button has service life limitation, excessively using the sensitivity that can influence button, even results in button malfunction.
When the 2nd, adjusting volume using button, it is not easy to adjust the volume needed to us, the number needed when pressing Too much, long-press is easily beyond our preferable volumes.
When the 3rd, adjusting volume using mobile phone key, it is necessary to mobile phone is hand held or buttress mobile phone, not so can not by by Key.
4th, no doubt facilitated using the earphone with volume adjustment button, but can be influenced mostly added with the earphone of volume knob Tonequality, and this measure causes the spoilage of earphone higher, while this earphone is not common.
The content of the invention
It is a primary object of the present invention to provide the volume adjusting method under a kind of screen lock state, mobile terminal and storage to be situated between Matter, it is intended to solve the technical issues of volume adjustment is inconvenient in the prior art.
To achieve the above object, the present invention provides the volume adjusting method under a kind of screen lock state, the described method includes with Lower step:
Mobile terminal monitors the slip event of touch-screen when in screen lock state;
When listening to the slip event of the touch-screen, corresponding glide direction and cunning are extracted from the slip event Dynamic distance;
It determines that target adjusts information according to the glide direction and sliding distance, and information is adjusted according to the target and is carried out Volume adjustment.
Preferably, it is described according to the glide direction and sliding distance determine target adjust information before, the method is also Including:
Monitor the click event of the touch-screen;
When listening to the click event of the touch-screen, number of clicks is extracted from the click event and is clicked on lasting Time;
The number of clicks and the click duration with default click information are matched, held in successful match Row is described to determine the step of target adjusts information according to the glide direction and sliding distance.
Preferably, the mobile terminal is when in screen lock state, before the slip event for monitoring touch-screen, the method It further includes:
Judge that whether in music state, the music shape is in the mobile terminal for the mobile terminal During state, the step of performing the mobile terminal when in screen lock state, monitor the slip event of touch-screen.
Preferably, the target, which adjusts information, includes target adjusting type and target adjusting grade;
Correspondingly, it is described to determine that target adjusts information according to the glide direction and sliding distance, and according to the target It adjusts information and carries out volume adjustment, specifically include:
It determines that the target adjusts type according to the glide direction, determines that the target is adjusted according to the sliding distance Grade, and type and target adjusting grade progress volume adjustment are adjusted according to the target.
Preferably, it is described to determine that the target adjusts type according to the glide direction, it specifically includes:
The direction scope belonging to the glide direction is obtained, when the glide direction belongs to first direction scope, by institute It states adjusting type and is arranged to volume rising, when the glide direction belongs to second direction scope, the adjusting type is set Decline for volume.
Preferably, it is described to determine that the target adjusts grade according to the sliding distance, it specifically includes:
Judge whether the sliding distance is more than pre-determined distance;
When the sliding distance is more than the pre-determined distance, searched and the sliding distance pair in the first mapping relations First answered adjusts grade, and described first will adjust grade as target adjusting grade, in first mapping relations The first correspondence comprising distance with the first estate.
Preferably, it is described to determine that the target adjusts grade according to the sliding distance, it further includes:
When the sliding distance is not less than the pre-determined distance, searched and the sliding distance in the second mapping relations Corresponding second adjusts grade, and adjusts grade using described second and adjust grade, second mapping relations as the target In include the second correspondence of distance and the second grade.
Preferably, it is described according to it is described adjusting type and it is described adjusting grade carry out volume adjustment after, the method is also Including:
Monitor the equipment access events of the mobile terminal;
When listening to the equipment access events, default adjusting information corresponding with the equipment access events is searched, Volume adjustment is carried out according to the default adjusting information;
Continue to monitor the slip event of the touch-screen, when listening to the slip event of the touch-screen, re-execute Described the step of corresponding glide direction and sliding distance are extracted from the slip event.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes:Memory, Processor and volume adjustment program on the memory and under the screen lock state that can be run on the processor is stored in, institute State the volume adjusting method realized when the volume adjustment program under screen lock state is performed by the processor under the screen lock state The step of.
In addition, to achieve the above object, the present invention also provides a kind of storage medium, screen locking is stored on the storage medium Volume adjustment program under state, the volume adjustment program under the screen lock state realize the screen locking shape when being executed by processor The step of volume adjusting method under state.
In the present embodiment, by mobile terminal when in screen lock state, the slip event of touch-screen is monitored;It is monitoring To the touch-screen slip event when, corresponding glide direction and sliding distance are extracted from the slip event;According to institute It states glide direction and sliding distance determines that target adjusts information, and information is adjusted according to the target and carries out volume adjustment.Due to The present embodiment monitors the slip event of touch-screen, the instruction of energy quick response user in real time;Volume is adjusted by slide, So that operation is more simple and efficient;Sliding distance is unrestricted, also improves the precision of volume adjustment.
Description of the drawings
Fig. 1 is the mobile terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of the volume adjusting method first embodiment under screen lock state of the present invention;
Fig. 3 is the flow diagram of the volume adjusting method second embodiment under screen lock state of the present invention;
Fig. 4 is the flow diagram of the volume adjusting method 3rd embodiment under screen lock state of the present invention;
Fig. 5 is the flow diagram of the volume adjusting method fourth embodiment under screen lock state of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The solution of the embodiment of the present invention is mainly, and by mobile terminal when in screen lock state, monitors touch-screen Slip event;When listening to the slip event of the touch-screen, corresponding glide direction is extracted from the slip event And sliding distance;It determines that target adjusts information according to the glide direction and sliding distance, and information is adjusted according to the target Carry out volume adjustment.Since the present invention monitors the slip event of touch-screen, the instruction of energy quick response user in real time;Pass through cunning Dynamic operation adjusts volume so that operation is more simple and efficient;Sliding distance is unrestricted, also improves the precision of volume adjustment.
With reference to Fig. 1, Fig. 1 is the mobile terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
As shown in Figure 1, the mobile terminal can include:Processor 1001, such as CPU, communication bus 1002, Yong Hujie Mouth 1003, network interface 1004, memory 1005.Wherein, the connection that communication bus 1002 is used to implement between these components is led to Letter.User interface 1003 can include display screen (Display), and optional user interface 1003 can also connect including the wired of standard Mouth, wireless interface.Network interface 1004 can optionally include standard wireline interface and wireless interface (such as WI-FI interfaces).It deposits Reservoir 1005 can be high-speed RAM memory or the memory (non-volatile memory) of stabilization, such as magnetic Disk storage.Memory 1005 optionally can also be the storage server independently of aforementioned processor 1001.
It will be understood by those skilled in the art that the structure shown in Fig. 1 does not form the restriction to the mobile terminal, it can To include either combining some components or different components arrangement than illustrating more or fewer components.
As shown in Figure 1, as in a kind of memory 1005 of storage medium can include operating system, network communication mould Volume adjustment program under block, Subscriber Interface Module SIM and screen lock state.
In the construction shown in fig. 1, network interface 1004 is mainly used for Connection Service device, and data are carried out with the server Communication;User interface 1003 is mainly used for connecting hardware device, with the hardware device into row data communication;The mobile terminal Volume adjustment program under the screen lock state stored in memory 1005 is called by processor 1001, and performs following operation:
Mobile terminal monitors the slip event of touch-screen when in screen lock state;
When listening to the slip event of the touch-screen, corresponding glide direction and cunning are extracted from the slip event Dynamic distance;
It determines that target adjusts information according to the glide direction and sliding distance, and information is adjusted according to the target and is carried out Volume adjustment.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
Monitor the click event of the touch-screen;
When listening to the click event of the touch-screen, number of clicks is extracted from the click event and is clicked on lasting Time;
The number of clicks and the click duration with default click information are matched, held in successful match Row is described to determine the step of target adjusts information according to the glide direction and sliding distance.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
Judge that whether in music state, the music shape is in the mobile terminal for the mobile terminal During state, the step of performing the mobile terminal when in screen lock state, monitor the slip event of touch-screen.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
It determines that the target adjusts type according to the glide direction, determines that the target is adjusted according to the sliding distance Grade, and type and target adjusting grade progress volume adjustment are adjusted according to the target.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
The direction scope belonging to the glide direction is obtained, when the glide direction belongs to first direction scope, by institute It states adjusting type and is arranged to volume rising, when the glide direction belongs to second direction scope, the adjusting type is set Decline for volume.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
Judge whether the sliding distance is more than pre-determined distance;
When the sliding distance is more than the pre-determined distance, searched and the sliding distance pair in the first mapping relations First answered adjusts grade, and described first will adjust grade as target adjusting grade, in first mapping relations The first correspondence comprising distance with the first estate.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
When the sliding distance is not less than the pre-determined distance, searched and the sliding distance in the second mapping relations Corresponding second adjusts grade, and adjusts grade using described second and adjust grade, second mapping relations as the target In include the second correspondence of distance and the second grade.
Further, processor 1001 can call the volume adjustment journey under the screen lock state stored in memory 1005 Sequence also performs following operation:
Monitor the equipment access events of the mobile terminal;
When listening to the equipment access events, default adjusting information corresponding with the equipment access events is searched, Volume adjustment is carried out according to the default adjusting information;
Continue to monitor the slip event of the touch-screen, when listening to the slip event of the touch-screen, re-execute Described the step of corresponding glide direction and sliding distance are extracted from the slip event.
In the present embodiment, by mobile terminal when in screen lock state, the slip event of touch-screen is monitored;It is monitoring To the touch-screen slip event when, corresponding glide direction and sliding distance are extracted from the slip event;According to institute It states glide direction and sliding distance determines that target adjusts information, and information is adjusted according to the target and carries out volume adjustment.Due to The present invention monitors the slip event of touch-screen in real time, and the instruction of energy quick response user adjusts volume by slide, makes It is free to obtain more convenient operation, sliding distance is unrestricted, also improves the precision of volume adjustment.
Based on above-mentioned hardware configuration, the embodiment of the volume adjusting method under screen lock state of the present invention is proposed.
With reference to Fig. 2, Fig. 2 is the flow diagram of the volume adjusting method first embodiment under screen lock state of the present invention.
In the first embodiment, the volume adjusting method under the screen lock state comprises the following steps:
Step S10:Mobile terminal monitors the slip event of touch-screen when in screen lock state;
It should be noted that mobile terminal generally adjusts volume when playing music using button at present, and cause user It is inconvenient for use, this programme by the touch-screen of mobile terminal carry out slide to adjust the broadcast sound volume of music, make With conveniently accurately, user experience is good.
It is set it is understood that the mobile terminal can be the terminal that smart mobile phone, tablet computer etc. have touch-screen Standby, the present embodiment is not any limitation as this.The screen state of the mobile terminal includes screen lock state and released state, the lock Screen state refers to that the screen of the mobile terminal is in the lock state, right in the case where not monitoring touch-screen The general touch operation generated in touch-screen by touch is without response.
In the concrete realization, mobile terminal monitors the slip event of touch-screen, the slip thing when in screen lock state Part is caused by the continuously slipping touch-screen of user of the mobile terminal.
Step S20:When listening to the slip event of the touch-screen, corresponding slip is extracted from the slip event Direction and sliding distance;
It should be noted that when listening to the slip event of the touch-screen, the slip event is obtained in touch-screen The start-stop point coordinates of the sliding trace of upper generation obtains a vector according to the start-stop point coordinates, obtains the side of the vector To size, the glide direction is determined according to the vectorial direction, according to the described vectorial size determine it is described slide away from From.
Certainly, before the step is performed, a coordinate system is set on the touch-screen in advance, with the touch-screen lower left corner For coordinate origin, touch-screen lower edge is abscissa, and touch-screen left hand edge is ordinate, and unit coordinate length " 1 " is set to 1 li Rice, the coordinate system is only comprising first quartile, and other origins can also be used for the coordinate system or transverse and longitudinal coordinate is configured, this reality Example is applied not to be any limitation as this.
For example, when the starting point coordinate of the slide is (2,1), and terminal point coordinate is (5,5), the vector can be drawn For (3,4), then the glide direction is the direction that vectorial (3,4) refer to, and the sliding distance is 5 centimetres.
Step S30:It determines that target adjusts information according to the glide direction and sliding distance, and is adjusted according to the target Information carries out volume adjustment.
It is understood that adjusting information includes adjusting type and adjust grade, the adjusting type is referred in volume It rises or volume declines, the adjusting grade refers to the degree of volume adjustment, such as volume is divided into 10 according to volume Grade adjusts type and rises for volume, and when adjusting grade is 2 grades, the adjusting information is that volume is risen 2 grades.The target tune Saving information then includes target adjusting type and target adjusting grade, and it is the corresponding tune of this slip event that the target, which adjusts type, Type is saved, it is the corresponding adjusting grade of this slip event that the target, which adjusts grade,.
Further, the step S30, specifically includes:
It determines that the target adjusts type according to the glide direction, determines that the target is adjusted according to the sliding distance Grade, and type and target adjusting grade progress volume adjustment are adjusted according to the target.
In the present embodiment, indicate to adjust type by glide direction, the affiliated scope of glide direction will be established and adjust class The mapping relations of type only decline two types due to adjusting type comprising volume rising and volume, direction is divided into two Class either selects two classes each direction types in whole directions and corresponds to that volume rises or volume declines respectively, which closes System can pre-set, and the present embodiment is not any limitation as this.By sliding distance indicate adjust grade, will establish sliding distance and The mapping relations of grade are adjusted, default a certain distance corresponds to certain grade, is stored in the sliding distance and adjusts grade Mapping relations in.Corresponding target tune can be searched according to glide direction in the mapping relations of glide direction and adjusting type Type is saved, searching corresponding target according to sliding distance in the mapping relations of sliding distance and adjusting grade adjusts grade, obtains Go out the target and adjust information, and information is adjusted according to the target and carries out volume adjustment.
In the present embodiment, by mobile terminal when in screen lock state, the slip event of touch-screen is monitored;It is monitoring To the touch-screen slip event when, corresponding glide direction and sliding distance are extracted from the slip event;According to institute It states glide direction and sliding distance determines that target adjusts information, and information is adjusted according to the target and carries out volume adjustment.Due to The present invention monitors the slip event of touch-screen in real time, and the instruction of energy quick response user adjusts volume by slide, makes It is free to obtain more convenient operation, sliding distance is unrestricted, also improves the precision of volume adjustment.
With reference to Fig. 3, Fig. 3 is the flow diagram of the volume adjusting method second embodiment under screen lock state of the present invention, base The second embodiment of volume adjusting method under above-mentioned embodiment shown in Fig. 2, proposition screen lock state of the present invention.
In a second embodiment, before the step S30, the method further includes:
Step S201:Monitor the click event of the touch-screen;
Step S202:When listening to the click event of the touch-screen, number of clicks is extracted from the click event With the click duration;
It should be noted that when the mobile terminal is placed in such as clothes pocket, it may be due to the movement of user And cause the maloperation to touch-screen, in order to exclude such maloperation, it will thus provide a kind of specific clicking operation, user is to touching It touches after screen carries out the specific click operation, starts this programme just now after verifying that the clicking operation meets preset requirement.
It is understood that the click event is received for the touch-screen of the mobile terminal caused by click, it is It verifies whether the click event by user implements the operation made of volume adjustment, click will be extracted from the click event Number and click duration.The number of clicks be the corresponding number of clicks of the click event, the click duration It holds time for the click event is corresponding.
Step S203:By the number of clicks and it is described click the duration matched with default click information, Described the step of target adjusting information is determined according to the glide direction and sliding distance is performed during with success.
It should be noted that the number of clicks and the click duration are being extracted from the click event Afterwards, the number of clicks and the click duration need to be matched with default click information, to verify the click thing Whether part by user implements the operation made of volume adjustment.The default click information presets click information including several groups, It presets click information for every group and includes a default number of clicks and corresponding default click duration, therefore, by the click time Number and the click duration are matched with default click information, i.e., by the number of clicks and the click duration Number of clicks is preset with every group successively and the default click duration is matched.Certainly, successful match illustrates the click thing Part implements the operation made of volume adjustment by user, will perform and described determines target according to the glide direction and sliding distance The step of adjusting information.It is not that user implements the operation that volume adjustment is made to match the unsuccessful explanation click event, and It is maloperation, the extraction operation to this slip event will be stopped, continuing to monitor next slide of the touch-screen.
Further, before the step S10, the method further includes:
Step S01:Judge that whether in music state, the sound is in the mobile terminal for the mobile terminal During happy broadcast state, the step of performing the mobile terminal when in screen lock state, monitor the slip event of touch-screen.
It is to be appreciated that for the consumption that economizes on resources, system workload is reduced, is only in music in the mobile terminal During broadcast state, the step of mobile terminal monitors the slip event of touch-screen is performed, therefore, the movement will be prejudged Whether terminal is in music state.Music is carried out using earphone and the outer state of putting that amplifies belongs to the music State can perform the step of mobile terminal monitors the slip event of touch-screen in above two state.
In the present embodiment, by whether judging the mobile terminal in music state, in the mobile terminal During in the music state, the mobile terminal is performed when in screen lock state, monitors the slip event of touch-screen The step of.Monitor the click event of the touch-screen;When listening to the click event of the touch-screen, from the click event Middle extraction number of clicks and click duration;By the number of clicks and click duration and the default click information into Row matching performs described the step of determining target adjusting information according to the glide direction and sliding distance in successful match. It is matched due to will click on event with default click information, the process that target adjusts information is determined in successful match, Slip event can be avoided to improve user experience to carry out extra volume adjustment during maloperation.
With reference to Fig. 4, Fig. 4 is the flow diagram of the volume adjusting method 3rd embodiment under screen lock state of the present invention, base The 3rd embodiment of volume adjusting method under above-mentioned embodiment shown in Fig. 2, proposition screen lock state of the present invention.
In the present embodiment, the step S30, specifically includes:
Step S301:The direction scope belonging to the glide direction is obtained, when the glide direction belongs to first direction model When enclosing, the adjusting type is arranged to volume and is risen, when the glide direction belongs to second direction scope, by the adjusting Type is arranged to volume decline.
It is understood that in order to judge that the target adjusts type by the glide direction, slip side will be established To affiliated scope and the mapping relations of adjusting type, volume rising and volume decline two types are only included due to adjusting type, Therefore, direction scope is divided into two classes, two kinds of direction scope types correspond to the adjusting class that volume rises or volume declines respectively Type.For example, in a coordinate system, direction for [0 °, 360 °), define first direction scope for [0 °, 180 °) (comprising 0 °, do not include 180 °), define second direction scope for [180 °, 360 °) (comprising 180 °, not comprising 360 °), establish first direction scope and sound The correspondence risen, the correspondence that second direction scope declines with volume are measured, and two kinds of correspondences are preserved to side Into mapping relations of the scope with adjusting type.
It should be noted that due to the mapping relations for having pre-established direction scope with having adjusted type, by described in acquisition Direction scope belonging to glide direction, it may be determined that the corresponding target of the glide direction adjusts type, in the glide direction category When first direction scope, the adjusting type is arranged to volume and is risen, when the glide direction belongs to second direction scope When, the adjusting type is arranged to volume and is declined.For example, obtaining the glide direction as 90 °, then the glide direction belongs to First direction scope searches adjusting type corresponding with first direction scope in mapping relations of the direction scope with adjusting type Rise for volume, therefore, volume is risen and adjusts type as the target.
Step S302:Judge whether the sliding distance is more than pre-determined distance;
It should be noted that in order to judge that the target adjusts grade by the sliding distance, will establish distance and The mapping relations of grade.Due to, when sliding distance is smaller, user adjust degree it is relatively low, it is desirable that degree of regulation higher, slide When in larger distance, user adjust degree it is higher, it is desirable that degree of regulation it is lower slightly, therefore, determining to correspond to by sliding distance Target when adjusting grade, by for sliding distance it is larger and it is smaller two sets different grades transformation mechanisms are set respectively, that is, be directed to The difference of distance and establish two groups of mapping relations.
In the concrete realization, it is described for being more than using the pre-determined distance standard in larger distance and in small distance as differentiation The sliding distance of pre-determined distance establishes distance and first mapping relations of the first estate, for being not more than the pre-determined distance Sliding distance establishes the second mapping relations of distance and the second grade.Wherein, the corresponding regulating degree of described the first estate is higher than The corresponding regulating degree of second grade.
Step S303:When the sliding distance be more than the pre-determined distance when, in the first mapping relations search with it is described Sliding distance it is corresponding first adjust grade, and will described first adjust grade as the target adjusting grade, described first Distance and first correspondence of the first estate are included in mapping relations.
It is understood that when the sliding distance is more than the pre-determined distance, the first mapping relations is selected to carry out institute It states target and adjusts determining for grade, corresponding with the sliding distance first is searched in the first mapping relations and adjusts grade, and Grade, which is adjusted, using described first adjusts grade as the target.For example, the pre-determined distance is 1 centimetre, the sliding distance For 3 centimetres, then it is 3 grades that corresponding with 3 centimetres first is searched in the first mapping relations and adjusts grade, and level-one first adjusts grade Corresponding volume adjustment 10%, then need at this time to volume adjustment 30%.
Step S304:When the sliding distance is not less than the pre-determined distance, lookup and institute in the second mapping relations It states sliding distance corresponding second and adjusts grade, and described second will adjust grade as target adjusting grade, described the The second correspondence of distance and the second grade is included in two mapping relations.
It is understood that when the sliding distance is not less than the pre-determined distance, the second mapping relations is selected to carry out The target adjusts determining for grade, and corresponding with the sliding distance second is searched in the second mapping relations and adjusts grade, And it adjusts grade using described second and adjusts grade as the target.For example, the pre-determined distance be 1 centimetre, it is described slide away from It it is 7 grades from for 0.7 centimetre, then searching corresponding with 0.7 centimetre second in the second mapping relations to adjust grade, level-one second is adjusted Section grade corresponds to volume adjustment 1%, then needs at this time to volume adjustment 7%.
Step S305:Type is adjusted according to the target and the target adjusts grade and carries out volume adjustment.
In the present embodiment, by determining that the target adjusts type according to the glide direction, according to it is described slide away from Grade is adjusted from the definite target, and type and target adjusting grade progress volume adjustment are adjusted according to the target. Since whole directions are divided into two classes, any slip event will all correspond to a kind of adjusting type, and avoiding the occurrence of slip event can not Identification is changed the mechanism by two kinds of grades, realizes coarse adjustment and accurate adjustment, improve the precision and user experience of volume adjustment Sense.
With reference to Fig. 5, Fig. 5 is the flow diagram of the volume adjusting method fourth embodiment under screen lock state of the present invention, base The fourth embodiment of volume adjusting method under above-mentioned embodiment shown in Fig. 2, proposition screen lock state of the present invention.
In the present embodiment, after the step S30, the method further includes:
Step S40:Monitor the equipment access events of the mobile terminal;
It is understood that play mode, respectively headset mode and outer mode playback there are two types of the mobile terminal tools, Ad eundem volume under above two play mode, the effect that human ear is heard is different, normally due to its of external environment Its sound, and cause the sound under outer mode playback smaller than the sound under headset mode, therefore, two kinds of play mode are carried out During switching, will correspondingly it be adjusted with volume.The equipment access events are accessed including earphone, and equipment access events are carried out It monitors, to determine the need for carrying out volume adjustment automatically.
Step S50:When listening to the equipment access events, default tune corresponding with the equipment access events is searched Information is saved, volume adjustment is carried out according to the default adjusting information;
It should be noted that the equipment access events refer to that play mode is switched to headset mode by outer mode playback, The corresponding default adjusting information of the equipment access events is that volume is declined predetermined level.It is connect listening to the equipment During incoming event, default adjusting information corresponding with the equipment access events is searched, sound is carried out according to the default adjusting information Amount is adjusted.
Certainly, the mobile terminal audiomonitor disconnected event, when listening to the equipment disconnected event, lookup and institute The corresponding adjusting information of equipment disconnected event is stated, volume adjustment is carried out according to the corresponding information that adjusts of the equipment disconnected event.
The equipment disconnected event refers to that play mode is switched to outer mode playback by headset mode, and the equipment disconnects thing The corresponding information that adjusts of part is that volume is risen predetermined level.
Step S60:Continue to monitor the slip event of the touch-screen, when listening to the slip event of the touch-screen, Re-execute described the step of corresponding glide direction and sliding distance are extracted from the slip event.
It is understood that after volume adjustment completion, continue to monitor the slip event of the touch-screen, by volume It adjusts to the size for meeting user demand.
In the present embodiment, by monitoring the equipment access events of the mobile terminal;Listening to the equipment access During event, default adjusting information corresponding with the equipment access events is searched, volume is carried out according to the default adjusting information It adjusts;Continue to monitor the slip event of the touch-screen, when listening to the slip event of the touch-screen, re-execute described The step of corresponding glide direction and sliding distance are extracted from the slip event.Due to being directed to play mode switching, carry out Corresponding volume adjustment so that user can put the volume for being played with earphone and equal size being received in two kinds of environment outside, Avoid the discomfort that play mode switching is brought.
In addition, the embodiment of the present invention also proposes a kind of storage medium, it is stored on the storage medium under screen lock state Volume adjustment program realizes following operation when the volume adjustment program under the screen lock state is executed by processor:
Mobile terminal monitors the slip event of touch-screen when in screen lock state;
When listening to the slip event of the touch-screen, corresponding glide direction and cunning are extracted from the slip event Dynamic distance;
It determines that target adjusts information according to the glide direction and sliding distance, and information is adjusted according to the target and is carried out Volume adjustment.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
Monitor the click event of the touch-screen;
When listening to the click event of the touch-screen, number of clicks is extracted from the click event and is clicked on lasting Time;
The number of clicks and the click duration with default click information are matched, held in successful match Row is described to determine the step of target adjusts information according to the glide direction and sliding distance.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
Judge that whether in music state, the music shape is in the mobile terminal for the mobile terminal During state, the step of performing the mobile terminal when in screen lock state, monitor the slip event of touch-screen.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
Correspondingly, it is described to determine that target adjusts information according to the glide direction and sliding distance, and according to the target It adjusts information and carries out volume adjustment, specifically include:
It determines that the target adjusts type according to the glide direction, determines that the target is adjusted according to the sliding distance Grade, and type and target adjusting grade progress volume adjustment are adjusted according to the target.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
The direction scope belonging to the glide direction is obtained, when the glide direction belongs to first direction scope, by institute It states adjusting type and is arranged to volume rising, when the glide direction belongs to second direction scope, the adjusting type is set Decline for volume.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
Judge whether the sliding distance is more than pre-determined distance;
When the sliding distance is more than the pre-determined distance, searched and the sliding distance pair in the first mapping relations First answered adjusts grade, and described first will adjust grade as target adjusting grade, in first mapping relations The first correspondence comprising distance with the first estate.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
When the sliding distance is not less than the pre-determined distance, searched and the sliding distance in the second mapping relations Corresponding second adjusts grade, and adjusts grade using described second and adjust grade, second mapping relations as the target In include the second correspondence of distance and the second grade.
Further, following operation is also realized when the volume adjustment program under the screen lock state is executed by processor:
Monitor the equipment access events of the mobile terminal;
When listening to the equipment access events, default adjusting information corresponding with the equipment access events is searched, Volume adjustment is carried out according to the default adjusting information;
Continue to monitor the slip event of the touch-screen, when listening to the slip event of the touch-screen, re-execute Described the step of corresponding glide direction and sliding distance are extracted from the slip event.
In the present embodiment, by mobile terminal when in screen lock state, the slip event of touch-screen is monitored;It is monitoring To the touch-screen slip event when, corresponding glide direction and sliding distance are extracted from the slip event;According to institute It states glide direction and sliding distance determines that target adjusts information, and information is adjusted according to the target and carries out volume adjustment.Due to The present invention monitors the slip event of touch-screen in real time, and the instruction of energy quick response user adjusts volume by slide, makes It is free to obtain more convenient operation, sliding distance is unrestricted, also improves the precision of volume adjustment.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or system institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
The use of first and second grade of word does not indicate that any order, can these words be construed to title.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. the volume adjusting method under a kind of screen lock state, which is characterized in that the described method comprises the following steps:
Mobile terminal monitors the slip event of touch-screen when in screen lock state;
When listening to the slip event of the touch-screen, extracted from the slip event corresponding glide direction and slide away from From;
It determines that target adjusts information according to the glide direction and sliding distance, and information is adjusted according to the target and carries out volume It adjusts.
2. the volume adjusting method under screen lock state as described in claim 1, which is characterized in that described according to the slip side Before determining that target adjusts information with sliding distance, the method further includes:
Monitor the click event of the touch-screen;
When listening to the click event of the touch-screen, when number of clicks is extracted from the click event and clicking on lasting Between;
The number of clicks and the click duration with default click information are matched, institute is performed in successful match It states and the step of target adjusts information is determined according to the glide direction and sliding distance.
3. the volume adjusting method under screen lock state as claimed in claim 2, which is characterized in that the mobile terminal in During screen lock state, before the slip event for monitoring touch-screen, the method further includes:
Judge that whether in music state, the music state is in the mobile terminal for the mobile terminal When, the step of performing the mobile terminal when in screen lock state, monitor the slip event of touch-screen.
4. the volume adjusting method under screen lock state as any one of claim 1-3, which is characterized in that the target Adjusting information includes target adjusting type and target adjusting grade;
Correspondingly, it is described to determine that target adjusts information according to the glide direction and sliding distance, and adjusted according to the target Information carries out volume adjustment, specifically includes:
It determines that the target adjusts type according to the glide direction, determines that the target is adjusted according to the sliding distance Grade, and type and target adjusting grade progress volume adjustment are adjusted according to the target.
5. the volume adjusting method under screen lock state as claimed in claim 4, which is characterized in that described according to the slip side To the target adjusting type is determined, specifically include:
The direction scope belonging to the glide direction is obtained, when the glide direction belongs to first direction scope, by the tune Section type is arranged to volume rising, and when the glide direction belongs to second direction scope, the adjusting type is arranged to sound Amount declines.
6. the volume adjusting method under screen lock state as claimed in claim 5, which is characterized in that it is described according to it is described slide away from From the target adjusting grade is determined, specifically include:
Judge whether the sliding distance is more than pre-determined distance;
When the sliding distance is more than the pre-determined distance, searched in the first mapping relations corresponding with the sliding distance First adjusts grade, and adjusts grade using described first and adjust grade as the target, is included in first mapping relations Distance and first correspondence of the first estate.
7. the volume adjusting method under screen lock state as claimed in claim 6, which is characterized in that it is described according to it is described slide away from From the target adjusting grade is determined, further include:
When the sliding distance is not less than the pre-determined distance, searched in the second mapping relations corresponding with the sliding distance Second adjust grade, and described second will adjust grade as target adjusting grade, wrap in second mapping relations The second correspondence containing distance with the second grade.
8. the volume adjusting method under screen lock state as any one of claim 1-3, which is characterized in that the basis After the adjusting type and the adjusting grade carry out volume adjustment, the method further includes:
Monitor the equipment access events of the mobile terminal;
When listening to the equipment access events, default adjusting information corresponding with the equipment access events is searched, according to The default adjusting information carries out volume adjustment;
Continue to monitor the slip event of the touch-screen, when listening to the slip event of the touch-screen, re-execute described The step of corresponding glide direction and sliding distance are extracted from the slip event.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:Memory, processor and it is stored in the storage Volume adjustment program on device and under the screen lock state that can run on the processor, the volume adjustment under the screen lock state Program is arranged for carrying out such as the step of the volume adjusting method under the screen lock state any one of claim 1-8.
10. a kind of storage medium, which is characterized in that the volume adjustment program being stored on the storage medium under screen lock state, The screen locking shape as any one of claim 1-8 is realized when volume adjustment program under the screen lock state is executed by processor The step of volume adjusting method under state.
CN201810024585.9A 2018-01-10 2018-01-10 Volume adjusting method, mobile terminal and storage medium under screen lock state Pending CN108089838A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810024585.9A CN108089838A (en) 2018-01-10 2018-01-10 Volume adjusting method, mobile terminal and storage medium under screen lock state
PCT/CN2018/124014 WO2019137220A1 (en) 2018-01-10 2018-12-26 Volume adjustment method under lock screen state, and mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810024585.9A CN108089838A (en) 2018-01-10 2018-01-10 Volume adjusting method, mobile terminal and storage medium under screen lock state

Publications (1)

Publication Number Publication Date
CN108089838A true CN108089838A (en) 2018-05-29

Family

ID=62182002

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810024585.9A Pending CN108089838A (en) 2018-01-10 2018-01-10 Volume adjusting method, mobile terminal and storage medium under screen lock state

Country Status (2)

Country Link
CN (1) CN108089838A (en)
WO (1) WO2019137220A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019137220A1 (en) * 2018-01-10 2019-07-18 深圳传音控股股份有限公司 Volume adjustment method under lock screen state, and mobile terminal and storage medium
CN110399082A (en) * 2019-07-05 2019-11-01 北京达佳互联信息技术有限公司 A kind of terminal attribute control method, device, electronic equipment and medium
CN110493624A (en) * 2019-08-28 2019-11-22 上海云视科技股份有限公司 Touching telecontrol method, apparatus, remote controler, intelligent TV set and storage medium
WO2021189514A1 (en) * 2020-03-25 2021-09-30 瑞声声学科技(深圳)有限公司 Touch interaction method and apparatus, terminal device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218163A (en) * 2013-03-28 2013-07-24 广东欧珀移动通信有限公司 Method and device for adjusting volume and mobile equipment
CN105867766A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Sound volume adjustment method and terminal
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device
CN107302638A (en) * 2017-08-18 2017-10-27 广东欧珀移动通信有限公司 A kind of volume adjusting method, device, storage medium and mobile terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8918146B2 (en) * 2010-05-10 2014-12-23 Microsoft Corporation Automatic gain control based on detected pressure
CN106445326A (en) * 2016-08-31 2017-02-22 维沃移动通信有限公司 Operation control method and mobile terminal
CN106557243A (en) * 2016-11-30 2017-04-05 依偎科技(南昌)有限公司 Intelligent terminal adjusts method, device and the intelligent terminal of volume
CN107341067A (en) * 2017-06-22 2017-11-10 努比亚技术有限公司 A kind of keys deactivation processing method, equipment and computer-readable recording medium
CN108089838A (en) * 2018-01-10 2018-05-29 上海展扬通信技术有限公司 Volume adjusting method, mobile terminal and storage medium under screen lock state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218163A (en) * 2013-03-28 2013-07-24 广东欧珀移动通信有限公司 Method and device for adjusting volume and mobile equipment
CN105867766A (en) * 2016-03-28 2016-08-17 乐视控股(北京)有限公司 Sound volume adjustment method and terminal
CN105975241A (en) * 2016-04-22 2016-09-28 北京小米移动软件有限公司 Volume regulation method and device
CN107302638A (en) * 2017-08-18 2017-10-27 广东欧珀移动通信有限公司 A kind of volume adjusting method, device, storage medium and mobile terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019137220A1 (en) * 2018-01-10 2019-07-18 深圳传音控股股份有限公司 Volume adjustment method under lock screen state, and mobile terminal and storage medium
CN110399082A (en) * 2019-07-05 2019-11-01 北京达佳互联信息技术有限公司 A kind of terminal attribute control method, device, electronic equipment and medium
CN110493624A (en) * 2019-08-28 2019-11-22 上海云视科技股份有限公司 Touching telecontrol method, apparatus, remote controler, intelligent TV set and storage medium
WO2021189514A1 (en) * 2020-03-25 2021-09-30 瑞声声学科技(深圳)有限公司 Touch interaction method and apparatus, terminal device, and storage medium

Also Published As

Publication number Publication date
WO2019137220A1 (en) 2019-07-18

Similar Documents

Publication Publication Date Title
CN108089838A (en) Volume adjusting method, mobile terminal and storage medium under screen lock state
WO2017121353A1 (en) Method and device for displaying control
CN104267874B (en) The method and terminal that application icon is laid out in a kind of adjustment terminal
CN110784880B (en) Antenna weight optimization method, terminal and readable storage medium
CN106357897B (en) The acquisition methods and device of drop information
CN109683847A (en) A kind of volume adjusting method and terminal
CN104243671B (en) Volume adjusting method, device and electronic equipment
CN104852885B (en) Method, device and system for verifying verification code
CN105549740B (en) A kind of method and apparatus of playing audio-fequency data
CN108846274A (en) A kind of safe verification method, device and terminal
WO2019173664A1 (en) Dynamic multi-speaker optimization
US20160188203A1 (en) Device and Method for Adaptively Adjusting Layout of Touch Input Panel, and Mobile Terminal
CN104158506A (en) Method, device and terminal for adjusting volume
CN113609392B (en) Content recommendation method, content to be recommended determining method and related device
CN105848031A (en) Earphone sound channel adjusting method and device
CN105208623A (en) Mobile terminal control method and mobile terminal
CN106210919A (en) A kind of main broadcaster of broadcasting sings the methods, devices and systems of video
CN110635822B (en) Antenna control method and electronic equipment
CN108322897A (en) Cutting ferrule meal combined method and device
CN106057213B (en) A kind of method and apparatus of display voice pitch data
CN107016990A (en) Audio signal generation method and device
CN106412629B (en) Processing method, device, system and the computer-readable media medium of media data transmission
CN110333841A (en) Method, audio processing modules, television set and the storage medium of audio output
CN106548768B (en) A kind of modified method and apparatus of note
CN113468346B (en) Resource processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180529

RJ01 Rejection of invention patent application after publication