WO2018019049A1 - Profile mode switching method and apparatus - Google Patents

Profile mode switching method and apparatus Download PDF

Info

Publication number
WO2018019049A1
WO2018019049A1 PCT/CN2017/088290 CN2017088290W WO2018019049A1 WO 2018019049 A1 WO2018019049 A1 WO 2018019049A1 CN 2017088290 W CN2017088290 W CN 2017088290W WO 2018019049 A1 WO2018019049 A1 WO 2018019049A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
scene mode
preset
switched
determining
Prior art date
Application number
PCT/CN2017/088290
Other languages
French (fr)
Chinese (zh)
Inventor
郑小红
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018019049A1 publication Critical patent/WO2018019049A1/en

Links

Images

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/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • 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

Definitions

  • the present application relates to, but is not limited to, the field of terminal technologies, and in particular, to a scenario mode switching method and apparatus.
  • This paper proposes a scene mode switching method and device, which aims to solve the technical problem of the scene mode switching mode in the related art and the operation is not convenient.
  • An embodiment of the present invention provides a scenario mode switching method, where the scenario mode switching method includes:
  • the scenario mode switching method before the step of determining a scenario to be switched according to the obtained touch parameter, the scenario mode switching method further includes:
  • the touch parameter includes a touch location
  • the determining the scenario to be switched according to the acquired touch parameter includes:
  • the acquired scene mode is taken as the scene mode to be switched.
  • the touch parameter includes a number of touch points
  • the determining the mode to be switched according to the acquired touch parameter includes:
  • the acquired scene mode is taken as the scene mode to be switched.
  • the touch parameter includes a touch location
  • the determining the scenario to be switched according to the acquired touch parameter includes:
  • the acquired scene mode is taken as the scene mode to be switched.
  • the method further includes:
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the embodiment of the present invention further provides a scenario mode switching device, where the scenario mode switching device includes:
  • Obtaining a module configured to: obtain a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
  • a determining module configured to: determine a scenario to be switched according to the obtained touch parameter
  • the switching module is configured to: switch the terminal from the current scene mode to the to-be-switched scene mode.
  • the determining module is further configured to: determine whether a pressure value of the touch operation is greater than a preset threshold, and/or whether a touch time of the touch operation reaches a preset duration;
  • the determining module is configured to: when the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, determine the to-be-switched scene mode according to the acquired touch parameter .
  • the touch parameter includes a touch location
  • the determining module includes:
  • a first determining unit configured to: determine whether the touch location is located in any one of a preset plurality of active areas
  • the first obtaining unit is configured to: when the touch location is located in any one of the preset multiple active areas, obtain the corresponding location of the touch location according to a mapping relationship between the preset effective area and the scene mode Situational mode
  • the first processing unit is configured to: use the acquired scene mode as the scene mode to be switched.
  • the touch parameter includes a number of touch points
  • the determining module includes:
  • the first unit is configured to: acquire a scene mode corresponding to the number of the touch points according to a mapping relationship between the preset number of touch points and the scene mode;
  • the second unit is set to: use the acquired scene mode as the scene mode to be switched.
  • the touch parameter includes a touch location
  • the determining module includes:
  • a third unit configured to: determine, according to the touch location, whether the plurality of touch points are located in different sub-areas in the effective area;
  • a fourth unit configured to: when a plurality of touch points are located in different sub-areas in the effective area, determine a sub-area combination corresponding to the plurality of touch points;
  • a fifth unit configured to: obtain a determined scenario corresponding to the sub-region combination according to a mapping relationship between the preset sub-region combination and the scenario mode;
  • the sixth unit is set to: the acquired scene mode is used as the scene mode to be switched.
  • the method further includes:
  • the seventh unit is configured to: determine whether the touch position of the touch point is located in the preset effective area; and when the touch position of the touch point is located in the preset effective area, the determining module is executed.
  • the method and device for switching the scene mode when the touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and the scene mode to be switched is determined according to the acquired touch parameter. And switching the terminal from the current scene mode to the to-be-switched scene mode, without clicking the application icon of the level one level, to enter the setting interface of the scene mode to switch the scene mode.
  • the scene mode switching process is performed according to the input touch operation, and the scene mode fast switching is implemented, thereby improving the convenience and efficiency of the scene mode switching.
  • FIG. 1 is a schematic flowchart of a scenario mode switching method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of determining a scenario to be switched according to the obtained touch parameter according to an optional embodiment of the present invention
  • FIG. 3 is a schematic diagram of a scene in which a touch screen area is divided into multiple effective areas according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of determining a scenario to be switched according to the obtained touch parameter according to another optional embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a scenario in which a touch screen area is preset into an active area and a non-active area according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a scenario in which a touch screen area is divided into an active area and a non-active area, and the effective area is further divided into a plurality of sub-areas according to an embodiment of the present invention
  • FIG. 7 is a schematic flowchart of determining a scenario to be switched according to the obtained touch parameter according to another optional embodiment of the present invention.
  • FIG. 8 is a schematic diagram of functional modules of a scene mode switching apparatus according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a refinement function module of the determining module in FIG. 8;
  • FIG. 10 is a schematic diagram of another refinement function module of the determining module in FIG. 8;
  • FIG. 11 is a schematic diagram of another refinement function module of the determining module in FIG. 8.
  • Embodiments of the present invention provide a scenario mode switching method.
  • FIG. 1 is a schematic flowchart diagram of a scenario mode switching method according to an embodiment of the present invention.
  • the embodiment provides a scenario mode switching method, where the scenario mode switching method includes:
  • step S10 when a touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired;
  • receiving the touch operation may include receiving a touch operation through the terminal screen.
  • the terminal screen may include a pressure screen having a function of pressure detection and waking up the terminal, and a touch screen having a function of sensing a touch operation.
  • the pressure screen scans whether there is a touch operation of the external input in a low-power mode, and when there is a touch operation input by the outside world, acquiring a touch parameter corresponding to the touch operation, wherein
  • the touch operation may include a click touch operation, a long press touch operation, a sliding touch operation, and the like, and the touch parameter may include a touch position corresponding to the touch operation, a touch point number corresponding to the touch operation, a touch operation corresponding pressure value, and a touch
  • the operation corresponds to a touch location or the like, and the number of touched points may include the number of touch fingers input by the user at the same time, or the number of fingers corresponding to the touch operation input within the preset time interval.
  • Step S20 Determine, according to the acquired touch parameter, a scenario to be switched
  • the scene mode switching method when a touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and then the scene mode to be switched is determined according to the obtained touch parameter, optionally, To prevent the erroneously-triggered operation, that is, to improve the accuracy of the scene mode switching, before the step S20, the scene mode switching method further includes:
  • the preset threshold and the preset duration may be set by the terminal according to a specific situation, which is not limited herein.
  • the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration
  • the scene mode to be switched is determined according to the acquired touch parameter. For example, when the terminal is in the off-screen state, the pressure screen scans whether there is external pressure in a low-function manner.
  • the external pressure reaches a preset condition, that is, the pressure value of the touch operation is greater than a preset threshold, and/or The touch time of the touch operation reaches a preset duration, and the scene mode to be switched is determined according to the acquired touch parameter.
  • a preset condition that is, the pressure value of the touch operation is greater than a preset threshold, and/or The touch time of the touch operation reaches a preset duration
  • the scene mode to be switched is determined according to the acquired touch parameter.
  • the pressure screen detects that the pressure value of the touch operation is less than a preset threshold, and the touch operation If the touch time is less than the preset duration, the scene mode to be switched may not be determined according to the acquired touch parameter, and the scanning may continue in a low power mode until the pressure value of the touch operation reaches a preset threshold, and/or touch The touch operation of the operation reaches a preset duration, and the scene mode to be switched is determined according to the acquired touch parameter.
  • the touch parameter may include a touch position of a touch operation, a number of touch points corresponding to the touch operation, and the like, that is, the touch parameters are different, and then determining the to-be-switched scene mode according to the acquired touch parameter.
  • the implementation of the step S20 includes:
  • Method 1 when the touch parameter includes a touch location, the step S20 may include:
  • Step S21 determining whether the touch location is located in any one of a preset plurality of valid areas
  • Step S22 when the touch position is located in any one of the preset plurality of valid areas, acquiring a scene mode corresponding to the touch position according to a mapping relationship between the preset effective area and the scene mode;
  • step S23 the acquired scene mode is taken as the scene mode to be switched.
  • the terminal may first divide the touch screen area into a plurality of effective areas, where each effective area may correspond to one preset scene mode.
  • the touch position corresponding to the finger of the touch operation may be first identified, then refer to Table 1, the preset scene mode corresponding to the touch position is found, and then the found preset scene mode is obtained, and then It may be determined whether the acquired preset scene mode is the same as the current scene mode, and if not, the current scene mode is changed to the preset scene mode.
  • mapping relationship between the effective area and the scene mode in this embodiment is not limited, and may be set in advance by the system, or may be customized by the user.
  • the terminal screen in order to prevent false triggering when the terminal is placed in the pocket, or false triggering in other situations, it may be preset that only one region has a pressure value greater than the first preset threshold, and other region pressure values
  • the terminal screen is awakened, and then the corresponding preset scene mode is obtained according to the obtained mapping relationship between the touch location and the preset scene mode.
  • Method 2 referring to FIG. 4, when the touch parameter includes the number of touch points, the step S20 may include:
  • step S20 may include:
  • Step S24 determining whether the touch position of the touch point is located in the preset effective area
  • step S25 when the touch position of the touched point is located in the preset active area, the scene mode corresponding to the number of the touched points is obtained according to the mapping relationship between the preset number of touched points and the scene mode;
  • step S26 the acquired scene mode is taken as the scene mode to be switched.
  • the touch screen area is preset to be divided into an effective area and a non-active area.
  • the pressure screen can be scanned in a low power mode.
  • the touch operation is detected, and the pressure value of the touch operation is greater than a preset threshold, and the touch time of the touch operation reaches a preset time length, it may be determined whether the touch position of the operation is located in a preset effective area, If the touch location is in the preset active area, the number of touch points corresponding to the touch operation may be determined.
  • the calculation manner of the number of touch points may include: a, the number of fingers pressed in the touch screen in the same time point, that is, the number of touch points, it can be understood, at this time, how many fingers press the touch screen How many touch points there are.
  • the number of fingers pressed in the touch screen is the number of touch points. It can be understood that the same finger can be pressed multiple times in the preset time interval to obtain multiple touch points. It is possible that different fingers press the touch screen to obtain multiple touch points.
  • the mapping relationship between the preset number of touched points and the scene mode the scene pattern corresponding to the determined number of touched points can be obtained. It can be understood that the mapping relationship between the number of the touched points and the scene mode is not limited, and may be The system is set in advance, or it can be customized by the user.
  • any pressure finger falls outside the effective area, and the corresponding scene mode is not acquired.
  • the scene mode switching method is further performed according to the step of acquiring the scene mode corresponding to the determined number of touch points according to the mapping relationship between the preset number of touch points and the scene mode.
  • a step of acquiring a scene mode corresponding to the determined number of touched points according to a mapping relationship between the preset number of touched points and the scene mode is performed.
  • the effective area can be further divided into a plurality of sub-areas (also referred to as touch sub-areas).
  • the sub-areas can be divided into n sub-areas (n is If the touch position is in the preset effective area, it may be determined whether the plurality of touch points are located in different sub-areas in the effective area, for example, determining a plurality of sub-areas of the effective area. Whether there is one and only one finger in each sub-area.
  • the number of touch points in the effective area may be determined only when a plurality of touch points are located in different ones of the effective areas, and then may be obtained according to a mapping relationship between the preset number of touch points and the scene mode.
  • the scene mode corresponding to the determined number of touch points.
  • each touch point input has a corresponding interval, which prevents a large-area object such as a palm from pressing the touch screen, and is easy to generate due to a large area.
  • a large-area object such as a palm from pressing the touch screen
  • the optional embodiment of the embodiment defines that each touch point is input in different sub-areas of the effective area, which improves the accuracy of the touch operation input, thereby improving The accuracy of the scene mode switching.
  • step S20 when the touch parameter includes a touch location, the step S20 may include:
  • the acquired scene mode is taken as the scene mode to be switched.
  • the method may further include:
  • the step S20 is performed when the touched position of the touched point is located in the preset effective area.
  • the scenario mode switching method further includes:
  • Step S27 when the touch position of the touch point is located in the preset effective area, determining whether the plurality of touch points are located in different sub-areas in the effective area;
  • Step S28 when a plurality of touch points are located in different sub-areas in the effective area, determining a sub-area combination corresponding to the plurality of touch points;
  • step S29 the determined scenario corresponding to the sub-region combination is obtained according to the mapping relationship between the preset sub-region combination and the scenario mode, and the acquired scenario mode is used as the scenario to be switched.
  • the touch location is in a preset active area, it may be determined whether multiple touch points are located in different sub-areas in the active area, for example, determining that the touch is valid. Whether there is one and only one finger press in each of the plurality of sub-areas of the area.
  • the sub-area combination corresponding to the plurality of touch points may be determined only when the plurality of touch points are located in different ones of the effective areas, and then may be obtained according to the mapping relationship between the preset sub-area combination and the scene mode. Corresponding scene mode, and the acquired scene mode as the scene mode to be switched.
  • Step S30 the terminal is switched from the current scene mode to the to-be-switched scene mode.
  • the scene mode to be switched when the scene mode to be switched is acquired, it may be determined whether the to-be-switched scene mode is the same as the current scene mode. If they are the same, the current scene mode may be maintained and information may be output. When the to-be-switched profile mode is different from the current profile mode, the terminal may be switched from the current profile mode to the to-be-switched profile mode.
  • the scene mode switching method when receiving the touch operation in the case that the terminal is off, acquiring the touch parameter corresponding to the touch operation, determining the to-be-switched scene mode according to the acquired touch parameter, and The terminal switches from the current scene mode to the to-be-switched scene mode, and does not need to click the application icon of the level one level to enter the setting mode of the scene mode to switch the scene mode.
  • the terminal is in the state of being turned off.
  • the scene mode switching process is performed according to the input touch operation, and the scene mode is quickly switched, thereby improving the scene mode switching. Convenience and efficiency.
  • the scenario mode switching method further includes:
  • the terminal vibrates or illuminates.
  • the terminal vibrates or illuminates, and the user is notified that the scene mode is successfully switched, so that the user knows the result of the scene mode switching.
  • the embodiment of the invention further provides a scene mode switching device.
  • FIG. 8 is a schematic diagram of functional modules of a scene mode switching apparatus according to an embodiment of the present invention.
  • the scene mode switching device in the embodiment of the present invention may include a terminal with a touch screen, such as a mobile phone or a PAD; or may be disposed in the terminal.
  • the functional block diagram shown in FIG. 8 is merely an exemplary diagram of an alternative embodiment, and those skilled in the art will surround the functional modules of the scene mode switching device shown in FIG.
  • the function module may be supplemented with a new function module; the name of the function module may be a custom name, which is only used to assist in understanding different program function blocks of the scene mode switching device, and is not used to limit the technical solution of the embodiment of the present invention.
  • the core of the technical solution can be the function to be achieved by the functional module of the custom name.
  • scenario mode switching device may be a device corresponding to the scenario mode switching method, wherein all the implementation manners in the foregoing method embodiments can be applied to the device embodiment, and the same technical effect can be achieved. .
  • the embodiment provides a scenario mode switching device, where the scenario mode switching device includes:
  • the obtaining module 10 is configured to: acquire a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
  • receiving the touch operation may include receiving a touch operation through the terminal screen.
  • the terminal screen may include a pressure screen having a function of pressure detection and waking up the terminal, and a touch screen having a function of sensing a touch operation.
  • the pressure screen scans whether there is a touch operation of the external input in a low-power mode.
  • the acquiring module 10 acquires the touch corresponding to the touch operation.
  • a parameter wherein the touch operation may include a touch operation, a long touch operation, a sliding touch operation, and the like, the touch parameter may include a touch position corresponding to the touch operation, a touch point corresponding to the touch operation, and a touch operation.
  • the corresponding pressure value and the touch operation corresponding to the touch position and the like, the number of touch points may include the number of touch fingers input by the user at the same time, or the number of fingers corresponding to the input touch operation within the preset time interval.
  • the determining module 20 is configured to: determine a scenario to be switched according to the acquired touch parameter;
  • the determining module 20 directly determines the to-be-switched scene mode according to the acquired touch parameter, and is optional. Ground, in order to prevent false triggering operations, that is, to improve the accuracy of the scene mode switching,
  • the determining module 20 is further configured to: determine whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation reaches a preset duration;
  • the determining module 20 is configured to: when the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, determine the to-be-switched scenario according to the acquired touch parameter mode.
  • the determining module 20 when the touch operation is received in the case that the terminal is off, the determining module 20 first determines whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation is The preset duration and the preset duration may be set by the terminal according to a specific situation, which is not limited herein.
  • the determining module 20 determines the scene mode to be switched according to the acquired touch parameter. For example, when the terminal is in the off-screen state, the pressure screen scans whether there is external pressure in a low-function manner.
  • the determining module 20 determines the scene mode to be switched according to the acquired touch parameter. In this way, compared with when the touch operation is performed, the subsequent scene mode switching operation is directly performed according to the touch parameter of the touch operation, and the scene mode to be switched is determined due to the erroneously input touch operation.
  • the scene mode to be switched may not be determined according to the acquired touch parameter, and the low-performance is continued.
  • the mode is scanned until the pressure value of the touch operation reaches a preset threshold, and/or the touch operation of the touch operation reaches a preset time duration, and the scene mode to be switched is determined according to the acquired touch parameter.
  • the touch parameter may include a touch position of a touch operation, a number of touch points corresponding to the touch operation, and the like, that is, the touch parameters are different, and then the determining module 20 determines to wait according to the acquired touch parameter.
  • the switching scenario mode may also be different.
  • the determining module 20 determines that the implementation mode of the scenario to be switched includes:
  • the determining module 20 may include:
  • the first determining unit 21 is configured to: determine whether the touch location is located in any one of the preset multiple active areas;
  • the first obtaining unit 22 is configured to: when the touch location is located in any one of the preset multiple active areas, obtain the touch location according to the mapping relationship between the preset effective area and the scene mode Situational pattern;
  • the first processing unit 23 is configured to: use the acquired scene mode as the scene mode to be switched.
  • the terminal may first divide the touch screen area into a plurality of effective areas, where each effective area may correspond to one preset scene mode.
  • the first determining unit 21 may first identify the touch position corresponding to the finger of the touch operation, and then refer to Table 1 to find the preset scene mode corresponding to the touch position, and then the first obtaining unit 22 acquires The first scene determining unit 21 may determine whether the acquired preset scene mode is the same as the current scene mode. If not, the first processing unit 23 changes the current scene mode to the Preset scene mode.
  • mapping relationship between the effective area and the scene mode in this embodiment is not limited, and may be set in advance by the system, or may be customized by the user.
  • the terminal screen in order to prevent false triggering when the terminal is placed in the pocket, or false triggering in other situations, it may be preset that only one region has a pressure value greater than the first preset threshold, and other region pressure values
  • the terminal screen is woken up, and then according to the acquired
  • the mapping relationship between the touch location and the preset profile mode acquires a corresponding preset profile mode.
  • the determining module 20 may include:
  • the first unit is configured to: acquire a scene mode corresponding to the number of the touch points according to a mapping relationship between the preset number of touch points and the scene mode;
  • the second unit is set to: use the acquired scene mode as the scene mode to be switched.
  • the determining module 20 may include:
  • the second determining unit 24 is configured to: determine whether the touch position of the touch point is located in the preset effective area;
  • the second acquiring unit 25 is configured to: when the touch position of the touched point is located in the preset active area, acquire a scene mode corresponding to the number of the touched points according to a mapping relationship between the preset number of touched points and the scene mode;
  • the second processing unit 26 is configured to: use the acquired scene mode as the scene mode to be switched.
  • the touch screen area is preset to be divided into an effective area and a non-active area.
  • the pressure screen can be scanned in a low power mode.
  • the second determining unit 24 may determine whether the touch position of the operation is at a preset In the active area, if the touch location is in the preset active area, the number of touch points corresponding to the touch operation may be determined.
  • the calculation manner of the touch point quantity may include: a, the same The number of fingers pressed in the touch screen at one time point, that is, the number of touch points, can be understood, at this time, how many touch points are pressed by the number of fingers pressing the touch screen.
  • the number of fingers pressed in the touch screen is the number of touch points. It can be understood that the same finger can be pressed multiple times in the preset time interval to obtain multiple touch points. It is possible that different fingers press the touch screen to obtain multiple touch points.
  • the second acquiring unit 25 may acquire a scenario corresponding to the determined number of touched points according to the mapping relationship between the preset number of touched points and the scene mode. It can be understood that the mapping relationship between the number of the touched points and the scene mode may be It is not limited, it can be set in advance by the system, or it can be customized by the user.
  • any pressure finger falls outside the effective area, and the corresponding scene mode is not acquired.
  • the second determining unit 24 is further configured to: determine, when the touch position of the touch point is in the preset effective area, whether the plurality of touch points are located in the preset In different sub-areas in the active area;
  • the second obtaining unit 25 is further configured to: when the plurality of touched points are located in different sub-regions of the effective area, obtain the determined number of touched points according to the mapping relationship between the preset number of touched points and the scene mode Corresponding context mode.
  • the effective area may be further divided into a plurality of sub-areas.
  • the second The determining unit 24 may first determine whether the plurality of touch points are located in different sub-areas in the effective area, for example, determining whether there is one and only one finger press in each of the plurality of sub-areas of the effective area, which may be only When the touch points are located in different sub-areas in the effective area, the number of touch points in the effective area is determined, and then the second acquiring unit 25 may map the scene according to the preset number of touch points. Relationship, obtaining a scene pattern corresponding to the determined number of touch points.
  • each touch point input has a corresponding interval, which prevents a large-area object such as a palm from pressing the touch screen, and is easy to generate due to a large area.
  • a large-area object such as a palm from pressing the touch screen
  • the optional embodiment of the embodiment defines that each touch point is input in different sub-areas of the effective area, which improves the accuracy of the touch operation input, thereby improving The accuracy of the scene mode switching.
  • the determining module 20 may include:
  • the third unit is configured to: determine, according to the touch location, whether the plurality of touch points are located in different sub-regions in the preset effective area;
  • a fourth unit configured to: when a plurality of touch points are located in different sub-areas in the effective area, determine a sub-area combination corresponding to the plurality of touch points;
  • a fifth unit configured to: obtain a determined scenario corresponding to the sub-region combination according to a mapping relationship between the preset sub-region combination and the scenario mode;
  • the sixth unit is set to: the acquired scene mode is used as the scene mode to be switched.
  • the scenario mode switching device further includes:
  • the seventh unit is configured to: determine whether the touch position of the touch point is located in the preset effective area; The determining module 20 is executed when the touch location of the touch point is in the preset active area.
  • the determining module 20 further includes:
  • the third determining unit 27 is configured to: when the touch position of the touch point is located in the preset effective area, determine whether the plurality of touch points are located in different sub-areas in the effective area;
  • the third determining unit 27 is further configured to: when a plurality of touch points are located in different ones of the effective areas, determine a sub-area combination corresponding to the plurality of touch points;
  • the third obtaining unit 28 is configured to: acquire the determined scenario mode corresponding to the sub-region combination according to the mapping relationship between the preset sub-region combination and the scenario mode;
  • the third processing unit 29 is configured to: use the acquired scene mode as the scene mode to be switched.
  • the third determining unit 27 may first determine whether the multiple touch points are located in different sub-areas in the active area. For example, determining whether there is one and only one finger press in each of the plurality of sub-areas of the effective area, the third determining unit 27 may be only when the plurality of touch points are located in different ones of the effective areas The sub-region combination corresponding to the plurality of touch points is determined, and then the third acquiring unit 28 may acquire the corresponding scene mode according to the mapping relationship between the preset touch sub-region combination and the scene mode, and the third processing unit 29 will acquire the The scene mode is used as the scene mode to be switched.
  • the switching module 30 is configured to: switch the terminal from the current scene mode to the to-be-switched scene mode.
  • the switching module 30 may switch the terminal from the current scene mode to the to-be-switched profile mode.
  • the scene mode switching device of the present embodiment obtains a touch parameter corresponding to the touch operation when the touch operation is received, and determines a scene mode to be switched according to the acquired touch parameter, and The terminal switches from the current scene mode to the scene mode to be switched, without clicking the application icon of the first level to enter the setting interface of the scene mode.
  • the scene mode switching process is performed according to the input touch operation, and the scene mode is quickly switched, thereby improving the convenience and efficiency of the scene mode switching.
  • the scenario mode switching device further includes:
  • the processing module is set to: vibrate or brighten when the scene mode is successfully switched.
  • the processing module vibrates or illuminates, and informs the user that the context mode is successfully switched, so that the user knows the result of the scene mode switching.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • module may implement a combination of software and/or hardware of a predetermined function.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, disk).
  • the optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present invention.
  • all or part of the steps of the above embodiments may also be implemented using an integrated circuit.
  • the steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the method and device for switching the scene mode when the touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and the scene mode to be switched is determined according to the acquired touch parameter. And switching the terminal from the current scene mode to the to-be-switched scene mode, without clicking the application icon of the level one level, to enter the setting interface of the scene mode to switch the scene mode.
  • the scene mode switching process is performed according to the input touch operation, and the scene mode fast switching is implemented, thereby improving the convenience and efficiency of the scene mode switching.

Landscapes

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

Abstract

A profile mode switching method, comprising: when a touch operation is received where a screen of a terminal is blacked out, acquiring a touch parameter corresponding to the touch operation; according to the acquired touch parameter, determining a profile mode to be switched; and switching the terminal from the current profile mode to the profile mode to be switched.

Description

情景模式切换方法及装置Scene mode switching method and device 技术领域Technical field
本申请涉及但不限于终端技术领域,尤其是一种情景模式切换方法及装置。The present application relates to, but is not limited to, the field of terminal technologies, and in particular, to a scenario mode switching method and apparatus.
背景技术Background technique
相关技术中,当用户想要设置终端中的情景模式时,通常需要先点击一级一级的界面图标,然后跳转到情景模式的设置界面才可以进行情景模式的设置或切换,设置之后还需要退出设置界面,再返回到应用使用界面中。尤其在智能终端越来越复杂,应用图标越来越多的情况下,需要点击一级一级的界面图标,以进入设置情景模式的界面中,才能进行情景模式的切换,操作起来不够便捷。In the related art, when the user wants to set the scene mode in the terminal, it is usually necessary to first click the interface icon of the first level, and then jump to the setting interface of the scene mode to set or switch the scene mode, and after setting, You need to exit the settings interface and return to the application interface. Especially in the case that the intelligent terminal is more and more complicated and the application icons are more and more, it is necessary to click the interface icon of the first level to enter the interface of setting the scene mode, and then the scene mode can be switched, and the operation is not convenient enough.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提出一种情景模式切换方法及装置,旨在解决相关技术中的情景模式切换方式,操作不够便捷的技术问题。This paper proposes a scene mode switching method and device, which aims to solve the technical problem of the scene mode switching mode in the related art and the operation is not convenient.
本发明实施例提供了一种情景模式切换方法,所述情景模式切换方法包括:An embodiment of the present invention provides a scenario mode switching method, where the scenario mode switching method includes:
在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数;Acquiring a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
根据获取的所述触摸参数,确定待切换情景模式;Determining a scenario to be switched according to the obtained touch parameter;
将所述终端从当前情景模式中切换至待切换情景模式中。Switching the terminal from the current profile to the profile to be switched.
在一种示例性实施方式中,所述根据获取的所述触摸参数,确定待切换情景模式的步骤之前,所述情景模式切换方法还包括: In an exemplary embodiment, before the step of determining a scenario to be switched according to the obtained touch parameter, the scenario mode switching method further includes:
确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长;Determining whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation reaches a preset duration;
在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,执行根据获取的所述触摸参数,确定待切换情景模式的步骤。When the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset time length, performing the step of determining the to-be-switched scene mode according to the acquired touch parameter.
在一种示例性实施方式中,所述触摸参数包括触摸位置,所述根据获取的所述触摸参数,确定待切换情景模式的步骤包括:In an exemplary embodiment, the touch parameter includes a touch location, and the determining the scenario to be switched according to the acquired touch parameter includes:
确定所述触摸位置是否位于预设的多个有效区域中的任一个有效区域中;Determining whether the touch location is located in any one of a plurality of preset effective regions;
当所述触摸位置位于预设的多个有效区域中的任一个有效区域中时,根据预设的有效区域与情景模式的映射关系,获取所述触摸位置对应的情景模式;Obtaining a scene mode corresponding to the touch position according to a mapping relationship between the preset effective area and the scene mode, when the touch position is located in any one of the preset plurality of valid areas;
将获取的情景模式作为待切换情景模式。The acquired scene mode is taken as the scene mode to be switched.
在一种示例性实施方式中,所述触摸参数包括触摸点数量,所述根据获取的所述触摸参数,确定待切换情景模式的步骤包括:In an exemplary embodiment, the touch parameter includes a number of touch points, and the determining the mode to be switched according to the acquired touch parameter includes:
根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;Obtaining a scene mode corresponding to the number of touch points according to a mapping relationship between the preset number of touch points and the scene mode;
将获取的情景模式作为待切换情景模式。The acquired scene mode is taken as the scene mode to be switched.
在一种示例性实施方式中,所述触摸参数包括触摸位置,所述根据获取的所述触摸参数,确定待切换情景模式的步骤包括:In an exemplary embodiment, the touch parameter includes a touch location, and the determining the scenario to be switched according to the acquired touch parameter includes:
根据所述触摸位置,确定多个触摸点是否位于预设的有效区域中的不同子区域中;Determining, according to the touch location, whether the plurality of touch points are located in different sub-regions in the preset effective area;
当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;Determining a sub-area combination corresponding to the plurality of touch points when the plurality of touch points are located in different ones of the effective areas;
根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;Acquiring the determined scenario pattern corresponding to the sub-region combination according to the mapping relationship between the preset sub-region combination and the scenario mode;
将获取的情景模式作为待切换情景模式。 The acquired scene mode is taken as the scene mode to be switched.
在一种示例性实施方式中,还包括:In an exemplary embodiment, the method further includes:
确定触摸点的触摸位置是否位于预设的有效区域中;Determining whether the touch position of the touch point is located in a preset effective area;
当触摸点的触摸位置位于预设的有效区域中时,执行所述根据获取的所述触摸参数,确定待切换情景模式的步骤。When the touch position of the touch point is located in the preset effective area, performing the step of determining the to-be-switched scene mode according to the acquired touch parameter.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述情景模式切换方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
本发明实施例还提供了一种情景模式切换装置,所述情景模式切换装置包括:The embodiment of the present invention further provides a scenario mode switching device, where the scenario mode switching device includes:
获取模块,设置为:在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数;Obtaining a module, configured to: obtain a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
确定模块,设置为:根据获取的所述触摸参数,确定待切换情景模式;a determining module, configured to: determine a scenario to be switched according to the obtained touch parameter;
切换模块,设置为:将所述终端从当前情景模式中切换至待切换情景模式中。The switching module is configured to: switch the terminal from the current scene mode to the to-be-switched scene mode.
在一种示例性实施方式中,所述确定模块还设置为:确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长;In an exemplary embodiment, the determining module is further configured to: determine whether a pressure value of the touch operation is greater than a preset threshold, and/or whether a touch time of the touch operation reaches a preset duration;
所述确定模块是设置为:在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,根据获取的所述触摸参数,确定待切换情景模式。The determining module is configured to: when the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, determine the to-be-switched scene mode according to the acquired touch parameter .
在一种示例性实施方式中,所述触摸参数包括触摸位置,所述确定模块包括:In an exemplary embodiment, the touch parameter includes a touch location, and the determining module includes:
第一确定单元,设置为:确定所述触摸位置是否位于预设的多个有效区域中的任一个有效区域中;a first determining unit, configured to: determine whether the touch location is located in any one of a preset plurality of active areas;
第一获取单元,设置为:当所述触摸位置位于预设的多个有效区域中的任一个有效区域中时,根据预设的有效区域与情景模式的映射关系,获取所述触摸位置对应的情景模式;The first obtaining unit is configured to: when the touch location is located in any one of the preset multiple active areas, obtain the corresponding location of the touch location according to a mapping relationship between the preset effective area and the scene mode Situational mode
第一处理单元,设置为:将获取的情景模式作为待切换情景模式。 The first processing unit is configured to: use the acquired scene mode as the scene mode to be switched.
在一种示例性实施方式中,所述触摸参数包括触摸点数量,所述确定模块包括:In an exemplary embodiment, the touch parameter includes a number of touch points, and the determining module includes:
第一单元,设置为:根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;The first unit is configured to: acquire a scene mode corresponding to the number of the touch points according to a mapping relationship between the preset number of touch points and the scene mode;
第二单元,设置为:将获取的情景模式作为待切换情景模式。The second unit is set to: use the acquired scene mode as the scene mode to be switched.
在一种示例性实施方式中,所述触摸参数包括触摸位置,所述确定模块包括:In an exemplary embodiment, the touch parameter includes a touch location, and the determining module includes:
第三单元,设置为:根据所述触摸位置,确定多个触摸点是否位于所述有效区域中的不同子区域中;a third unit, configured to: determine, according to the touch location, whether the plurality of touch points are located in different sub-areas in the effective area;
第四单元,设置为:当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;a fourth unit, configured to: when a plurality of touch points are located in different sub-areas in the effective area, determine a sub-area combination corresponding to the plurality of touch points;
第五单元,设置为:根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;a fifth unit, configured to: obtain a determined scenario corresponding to the sub-region combination according to a mapping relationship between the preset sub-region combination and the scenario mode;
第六单元,设置为:将获取的情景模式作为待切换情景模式。The sixth unit is set to: the acquired scene mode is used as the scene mode to be switched.
在一种示例性实施方式中,还包括:In an exemplary embodiment, the method further includes:
第七单元,设置为:确定触摸点的触摸位置是否位于预设的有效区域中;当触摸点的触摸位置位于预设的有效区域中时,执行所述确定模块。The seventh unit is configured to: determine whether the touch position of the touch point is located in the preset effective area; and when the touch position of the touch point is located in the preset effective area, the determining module is executed.
本发明实施例提出的情景模式切换方法及装置,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数,根据获取的所述触摸参数,确定待切换情景模式,以及将所述终端从当前情景模式中切换至待切换情景模式中,而不需要点击一级一级的应用图标,以进入情景模式的设置界面进行情景模式的切换。本发明实施例在终端熄屏状态下,根据输入的触摸操作执行情景模式切换过程,实现了情景模式的快速切换,从而提高了情景模式切换的便捷性和效率。The method and device for switching the scene mode according to the embodiment of the present invention, when the touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and the scene mode to be switched is determined according to the acquired touch parameter. And switching the terminal from the current scene mode to the to-be-switched scene mode, without clicking the application icon of the level one level, to enter the setting interface of the scene mode to switch the scene mode. In the embodiment of the invention, the scene mode switching process is performed according to the input touch operation, and the scene mode fast switching is implemented, thereby improving the convenience and efficiency of the scene mode switching.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的情景模式切换方法的流程示意图; FIG. 1 is a schematic flowchart of a scenario mode switching method according to an embodiment of the present invention;
图2为本发明可选实施例提供的根据获取的所述触摸参数,确定待切换情景模式的流程示意图;FIG. 2 is a schematic flowchart of determining a scenario to be switched according to the obtained touch parameter according to an optional embodiment of the present invention;
图3为根据本发明实施例的触摸屏区域划分为多个有效区域的场景示意图;3 is a schematic diagram of a scene in which a touch screen area is divided into multiple effective areas according to an embodiment of the present invention;
图4为本发明另一可选实施例提供的根据获取的所述触摸参数,确定待切换情景模式的流程示意图;FIG. 4 is a schematic flowchart of determining a scenario to be switched according to the obtained touch parameter according to another optional embodiment of the present invention;
图5为根据本发明实施例的将触摸屏区域预设划分为有效区域和非有效区域的场景示意图;FIG. 5 is a schematic diagram of a scenario in which a touch screen area is preset into an active area and a non-active area according to an embodiment of the present invention; FIG.
图6为根据本发明实施例的将触摸屏区域预设划分为有效区域和非有效区域之后,将有效区域又分成多个子区域的场景示意图;FIG. 6 is a schematic diagram of a scenario in which a touch screen area is divided into an active area and a non-active area, and the effective area is further divided into a plurality of sub-areas according to an embodiment of the present invention; FIG.
图7为本发明又一可选实施例提供的根据获取的所述触摸参数,确定待切换情景模式的流程示意图;FIG. 7 is a schematic flowchart of determining a scenario to be switched according to the obtained touch parameter according to another optional embodiment of the present invention;
图8为本发明实施例提供的情景模式切换装置的功能模块示意图;FIG. 8 is a schematic diagram of functional modules of a scene mode switching apparatus according to an embodiment of the present invention; FIG.
图9为图8中确定模块的细化功能模块示意图;9 is a schematic diagram of a refinement function module of the determining module in FIG. 8;
图10为图8中确定模块的另一细化功能模块示意图;10 is a schematic diagram of another refinement function module of the determining module in FIG. 8;
图11为图8中确定模块的又一细化功能模块示意图。FIG. 11 is a schematic diagram of another refinement function module of the determining module in FIG. 8.
本发明的较佳实施方式Preferred embodiment of the invention
下面结合附图对本发明的实施方式进行描述。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的各种方式可以相互组合。Embodiments of the present invention will be described below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the various manners in the embodiments may be combined with each other without conflict.
需要说明的是,本文中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like are used herein to distinguish similar objects, and are not necessarily used to describe a particular order or order.
本发明实施例提供一种情景模式切换方法。Embodiments of the present invention provide a scenario mode switching method.
参照图1,图1为本发明实施例提供的情景模式切换方法的流程示意图。Referring to FIG. 1, FIG. 1 is a schematic flowchart diagram of a scenario mode switching method according to an embodiment of the present invention.
本实施例提出一种情景模式切换方法,所述情景模式切换方法包括:The embodiment provides a scenario mode switching method, where the scenario mode switching method includes:
步骤S10,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数;In step S10, when a touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired;
在本实施例中,接收到触摸操作可以包括通过终端屏幕接收到触摸操作。 终端屏幕可包括压力屏和触摸屏,其中,压力屏具有压力检测以及唤醒终端的功能,触摸屏具有感应触摸操作的功能。可选地,在终端熄屏的情况下,所述压力屏以低功耗方式扫描是否有外界输入的触摸操作,当有外界输入的触摸操作时,获取所述触摸操作对应的触摸参数,其中,所述触摸操作可包括点击触摸操作、长按触摸操作、滑动触摸操作等等,所述触摸参数可包括触摸操作对应的触摸位置、触摸操作对应的触摸点数量、触摸操作对应压力值以及触摸操作对应触摸位置等等,所述触摸点数量可包括用户同一时间输入的触摸手指的数量,或者预设时间间隔内输入触摸操作对应的手指数量。In this embodiment, receiving the touch operation may include receiving a touch operation through the terminal screen. The terminal screen may include a pressure screen having a function of pressure detection and waking up the terminal, and a touch screen having a function of sensing a touch operation. Optionally, in the case that the terminal is off, the pressure screen scans whether there is a touch operation of the external input in a low-power mode, and when there is a touch operation input by the outside world, acquiring a touch parameter corresponding to the touch operation, wherein The touch operation may include a click touch operation, a long press touch operation, a sliding touch operation, and the like, and the touch parameter may include a touch position corresponding to the touch operation, a touch point number corresponding to the touch operation, a touch operation corresponding pressure value, and a touch The operation corresponds to a touch location or the like, and the number of touched points may include the number of touch fingers input by the user at the same time, or the number of fingers corresponding to the touch operation input within the preset time interval.
步骤S20,根据获取的所述触摸参数,确定待切换情景模式;Step S20: Determine, according to the acquired touch parameter, a scenario to be switched;
在本实施例中,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数,然后直接根据获取的所述触摸参数,确定待切换情景模式,可选地,为了防止误触发操作,即为了提高情景模式切换的准确性,所述步骤S20之前,所述情景模式切换方法还包括:In this embodiment, when a touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and then the scene mode to be switched is determined according to the obtained touch parameter, optionally, To prevent the erroneously-triggered operation, that is, to improve the accuracy of the scene mode switching, before the step S20, the scene mode switching method further includes:
确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长;Determining whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation reaches a preset duration;
在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,执行根据获取的所述触摸参数,确定待切换情景模式的步骤。When the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset time length, performing the step of determining the to-be-switched scene mode according to the acquired touch parameter.
在本实施例中,在终端熄屏的情况下接收到触摸操作时,先确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长,所述预设阈值及所述预设时长可以由终端根据特定情况进行设置,此处不做限定。在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,才根据获取的所述触摸参数,确定待切换情景模式。例如,所述终端在熄屏状态下,压力屏以低功能方式扫描是否有外界压力,当外界压力达到预设条件的情况下,即所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长,才根据获取的所述触摸参数,确定待切换情景模式。这样,与在有触摸操作时,直接根据触摸操作的触摸参数执行后续的情景模式切换操作相比,防止了因误输入的触摸操作而确定待切换情景模式。In this embodiment, when the touch operation is received in the case that the terminal is off, whether the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, The preset threshold and the preset duration may be set by the terminal according to a specific situation, which is not limited herein. When the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, the scene mode to be switched is determined according to the acquired touch parameter. For example, when the terminal is in the off-screen state, the pressure screen scans whether there is external pressure in a low-function manner. When the external pressure reaches a preset condition, that is, the pressure value of the touch operation is greater than a preset threshold, and/or The touch time of the touch operation reaches a preset duration, and the scene mode to be switched is determined according to the acquired touch parameter. In this way, compared with when the touch operation is performed, the subsequent scene mode switching operation is directly performed according to the touch parameter of the touch operation, and the scene mode to be switched is determined due to the erroneously input touch operation.
当然,当压力屏侦测到触摸操作的压力值小于预设阈值,以及触摸操作 的触摸时间小于预设时长,则可以不根据获取的所述触摸参数,确定待切换情景模式,继续以低功耗方式扫描,直到检测到触摸操作的压力值达到预设阈值,及/或触摸操作的触摸时间达到预设时长的触摸操作,才根据获取的所述触摸参数,确定待切换情景模式。Of course, when the pressure screen detects that the pressure value of the touch operation is less than a preset threshold, and the touch operation If the touch time is less than the preset duration, the scene mode to be switched may not be determined according to the acquired touch parameter, and the scanning may continue in a low power mode until the pressure value of the touch operation reaches a preset threshold, and/or touch The touch operation of the operation reaches a preset duration, and the scene mode to be switched is determined according to the acquired touch parameter.
从上文可知,所述触摸参数可包括触摸操作的触摸位置,以及触摸操作对应的触摸点数量等等,也就是说,触摸参数不同,那么根据获取的触摸参数,确定待切换情景模式相应地也可以有所不同,可选地,所述步骤S20的实施方式包括:As can be seen from the above, the touch parameter may include a touch position of a touch operation, a number of touch points corresponding to the touch operation, and the like, that is, the touch parameters are different, and then determining the to-be-switched scene mode according to the acquired touch parameter. Alternatively, the implementation of the step S20 includes:
1)方式一、参照图2,在所述触摸参数包括触摸位置时,所述步骤S20可包括:1) Method 1, with reference to FIG. 2, when the touch parameter includes a touch location, the step S20 may include:
步骤S21,确定所述触摸位置是否位于预设的多个有效区域中的任一个有效区域中;Step S21, determining whether the touch location is located in any one of a preset plurality of valid areas;
步骤S22,当所述触摸位置位于预设的多个有效区域中的任一个有效区域中时,根据预设的有效区域与情景模式的映射关系,获取所述触摸位置对应的情景模式;Step S22, when the touch position is located in any one of the preset plurality of valid areas, acquiring a scene mode corresponding to the touch position according to a mapping relationship between the preset effective area and the scene mode;
步骤S23,将获取的情景模式作为待切换情景模式。In step S23, the acquired scene mode is taken as the scene mode to be switched.
在本实施例中,参照图3,终端可先将触摸屏区域预先划分为多个有效区域,其中,每个有效区域可对应一个预设情景模式。在接收到输入的触摸操作时,可先识别触摸操作的手指对应的触摸位置,然后查阅表一,找到所述触摸位置对应的预设情景模式,然后获取找到的所述预设情景模式,然后可确定获取的所述预设情景模式是否与当前情景模式相同,若不相同,则将当前情景模式变更为所述预设情景模式。In this embodiment, referring to FIG. 3, the terminal may first divide the touch screen area into a plurality of effective areas, where each effective area may correspond to one preset scene mode. When receiving the input touch operation, the touch position corresponding to the finger of the touch operation may be first identified, then refer to Table 1, the preset scene mode corresponding to the touch position is found, and then the found preset scene mode is obtained, and then It may be determined whether the acquired preset scene mode is the same as the current scene mode, and if not, the current scene mode is changed to the preset scene mode.
可以理解的是,本实施例中的有效区域与情景模式的映射关系不作限定,可以是系统事先设置好的,也可以由用户自定义设置。It can be understood that the mapping relationship between the effective area and the scene mode in this embodiment is not limited, and may be set in advance by the system, or may be customized by the user.
有效区域一Effective area one 情景模式1Scene mode 1
有效区域二Effective area two 情景模式2Scene mode 2
有效区域三Effective area three 情景模式3Scene mode 3
有效区域四Effective area four 情景模式4Scene mode 4
有效区域五Effective area five 情景模式5Scene mode 5
在本实施例中,为了防止终端放在口袋时的误触发,或者是其他情况下的误触发,可以预设其中仅有某一区域存在压力值大于第一预设阈值,且其他区域压力值小于第二预设阈值时,才唤醒所述终端屏幕,然后根据获取的所述触摸位置与预设情景模式的映射关系,获取相应的预设情景模式。In this embodiment, in order to prevent false triggering when the terminal is placed in the pocket, or false triggering in other situations, it may be preset that only one region has a pressure value greater than the first preset threshold, and other region pressure values When the second preset threshold is smaller than the second preset threshold, the terminal screen is awakened, and then the corresponding preset scene mode is obtained according to the obtained mapping relationship between the touch location and the preset scene mode.
2)方式二、参照图4,在所述触摸参数包括触摸点数量时,所述步骤S20可包括:2) Method 2, referring to FIG. 4, when the touch parameter includes the number of touch points, the step S20 may include:
根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;将获取的情景模式作为待切换情景模式。Obtaining a scene mode corresponding to the number of touch points according to a preset mapping relationship between the number of touch points and the scene mode; and using the acquired scene mode as the scene mode to be switched.
可选地,所述步骤S20可包括:Optionally, the step S20 may include:
步骤S24,确定触摸点的触摸位置是否位于预设的有效区域中;Step S24, determining whether the touch position of the touch point is located in the preset effective area;
步骤S25,当触摸点的触摸位置位于预设的有效区域中时,根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;In step S25, when the touch position of the touched point is located in the preset active area, the scene mode corresponding to the number of the touched points is obtained according to the mapping relationship between the preset number of touched points and the scene mode;
步骤S26,将获取的情景模式作为待切换情景模式。In step S26, the acquired scene mode is taken as the scene mode to be switched.
在本实施例中,参照图5,将触摸屏区域预设划分为有效区域和非有效区域。所述终端进入熄屏的情况下,压力屏可以以低功耗方式扫描。在检测到触摸操作,且所述触摸操作的压力值大于预设阈值,及所述触摸操作的触摸时间达到预设时长时,可判断所述操作的触摸位置是否位于预设的有效区域中,若所述触摸位置位于预设的有效区域中,则可以确定所述触摸操作对应的触摸点数量。本实施例中,所述触摸点数量的计算方式可包括:a、同一个时间点中在触摸屏中按压的手指的数量,即为触摸点数量,可以理解,此时,有多少个手指按压触摸屏,就有多少个触摸点。b、预设时间间隔内,在触摸屏中按压的手指的数量,即为触摸点数量,可以理解,此时可以是同一个手指在预设时间间隔内按压多次,得到多个触摸点,也可以是不同手指按压触摸屏,得到多个触摸点。然后可根据预设的触摸点数量与情景模式的映射关系,获取与确定的触摸点数量对应的情景模式,可以理解的是,所述触摸点数量与情景模式的映射关系可不作限定,可以是系统事先设置好的,也可以是由用户自定义设置的。In this embodiment, referring to FIG. 5, the touch screen area is preset to be divided into an effective area and a non-active area. When the terminal enters the screen, the pressure screen can be scanned in a low power mode. When the touch operation is detected, and the pressure value of the touch operation is greater than a preset threshold, and the touch time of the touch operation reaches a preset time length, it may be determined whether the touch position of the operation is located in a preset effective area, If the touch location is in the preset active area, the number of touch points corresponding to the touch operation may be determined. In this embodiment, the calculation manner of the number of touch points may include: a, the number of fingers pressed in the touch screen in the same time point, that is, the number of touch points, it can be understood, at this time, how many fingers press the touch screen How many touch points there are. b. In the preset time interval, the number of fingers pressed in the touch screen is the number of touch points. It can be understood that the same finger can be pressed multiple times in the preset time interval to obtain multiple touch points. It is possible that different fingers press the touch screen to obtain multiple touch points. Then, according to the mapping relationship between the preset number of touched points and the scene mode, the scene pattern corresponding to the determined number of touched points can be obtained. It can be understood that the mapping relationship between the number of the touched points and the scene mode is not limited, and may be The system is set in advance, or it can be customized by the user.
在本实施例中,可以是在任一压力手指落在有效区域外,都不会获取相应的情景模式,当然,还可以是在任一压力手指落在有效区域外,计算落在有效区域中的触摸点数量,然后根据计算的触摸点数量获取相应的情景模式。 In this embodiment, it may be that any pressure finger falls outside the effective area, and the corresponding scene mode is not acquired. Of course, it is also possible to calculate the touch falling in the effective area when any pressure finger falls outside the effective area. The number of points, and then the corresponding scene mode is obtained according to the calculated number of touch points.
可选地,为了提高情景模式切换的准确性,所述根据预设的触摸点数量与情景模式的映射关系,获取确定的触摸点数量对应的情景模式的步骤之前,所述情景模式切换方法还包括:Optionally, in order to improve the accuracy of the scene mode switching, the scene mode switching method is further performed according to the step of acquiring the scene mode corresponding to the determined number of touch points according to the mapping relationship between the preset number of touch points and the scene mode. include:
当触摸点的触摸位置位于预设的有效区域中时,确定多个触摸点是否位于预设的有效区域中的不同子区域中;Determining whether the plurality of touch points are located in different sub-areas in the preset effective area when the touch position of the touch point is in the preset effective area;
当多个触摸点位于所述有效区域中的不同子区域中时,执行根据预设的触摸点数量与情景模式的映射关系,获取确定的触摸点数量对应的情景模式的步骤。When a plurality of touch points are located in different ones of the effective areas, a step of acquiring a scene mode corresponding to the determined number of touched points according to a mapping relationship between the preset number of touched points and the scene mode is performed.
也就是说,将触摸屏区域预设划分为有效区域和非有效区域之后,可以将有效区域又分成多个子区域(也可称为触摸子区域),参照图6,可分成n个子区域(n为大于一的自然数),若所述触摸位置位于预设的有效区域中,则可以先确定多个触摸点是否位于所述有效区域中的不同子区域中,例如,确定有效区域的多个子区域中的每个子区域内是否有且只有一个手指按压。可以仅在多个触摸点位于所述有效区域中的不同子区域中时,才确定所述有效区域中的触摸点数量,然后,可根据预设的触摸点数量与情景模式的映射关系,获取确定的触摸点数量对应的情景模式。That is to say, after the touch screen area is preset into the effective area and the non-active area, the effective area can be further divided into a plurality of sub-areas (also referred to as touch sub-areas). Referring to FIG. 6, the sub-areas can be divided into n sub-areas (n is If the touch position is in the preset effective area, it may be determined whether the plurality of touch points are located in different sub-areas in the effective area, for example, determining a plurality of sub-areas of the effective area. Whether there is one and only one finger in each sub-area. The number of touch points in the effective area may be determined only when a plurality of touch points are located in different ones of the effective areas, and then may be obtained according to a mapping relationship between the preset number of touch points and the scene mode. The scene mode corresponding to the determined number of touch points.
可以理解的是,通过限制每个子区域中仅有一个触摸点对应,使得每个触摸点输入的位置都有相应的间隔,防止了手掌等大面积物体按压触摸屏时,由于面积较大,容易产生在有效区域产生多个触摸点,而导致的误操作,本实施例的可选实施方式限定了每个触摸点在有效区域的不同子区域中输入,提高了触摸操作输入的准确性,从而提高了情景模式切换的准确性。It can be understood that by restricting only one touch point corresponding in each sub-area, the position of each touch point input has a corresponding interval, which prevents a large-area object such as a palm from pressing the touch screen, and is easy to generate due to a large area. In the effective area, a plurality of touch points are generated, and the erroneous operation is caused. The optional embodiment of the embodiment defines that each touch point is input in different sub-areas of the effective area, which improves the accuracy of the touch operation input, thereby improving The accuracy of the scene mode switching.
3)方式三、在所述触摸参数包括触摸位置时,所述步骤S20可包括:3) mode 3, when the touch parameter includes a touch location, the step S20 may include:
根据所述触摸位置,确定多个触摸点是否位于预设的有效区域中的不同子区域中;Determining, according to the touch location, whether the plurality of touch points are located in different sub-regions in the preset effective area;
当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;Determining a sub-area combination corresponding to the plurality of touch points when the plurality of touch points are located in different ones of the effective areas;
根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;Acquiring the determined scenario pattern corresponding to the sub-region combination according to the mapping relationship between the preset sub-region combination and the scenario mode;
将获取的情景模式作为待切换情景模式。The acquired scene mode is taken as the scene mode to be switched.
所述步骤S20之前,还可包括: Before the step S20, the method may further include:
确定触摸点的触摸位置是否位于预设的有效区域中;Determining whether the touch position of the touch point is located in a preset effective area;
当触摸点的触摸位置位于预设的有效区域中时,执行所述步骤S20。The step S20 is performed when the touched position of the touched point is located in the preset effective area.
可选地,参照图7,所述步骤S24之后,所述情景模式切换方法还包括:Optionally, referring to FIG. 7, after the step S24, the scenario mode switching method further includes:
步骤S27,当触摸点的触摸位置位于预设的有效区域中时,确定多个触摸点是否位于所述有效区域中的不同子区域中;Step S27, when the touch position of the touch point is located in the preset effective area, determining whether the plurality of touch points are located in different sub-areas in the effective area;
步骤S28,当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;Step S28, when a plurality of touch points are located in different sub-areas in the effective area, determining a sub-area combination corresponding to the plurality of touch points;
步骤S29,根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式,并将获取的情景模式作为待切换情景模式。In step S29, the determined scenario corresponding to the sub-region combination is obtained according to the mapping relationship between the preset sub-region combination and the scenario mode, and the acquired scenario mode is used as the scenario to be switched.
在本实施例中,同样可参照图6,若所述触摸位置位于预设的有效区域中,则可以先确定多个触摸点是否位于所述有效区域中的不同子区域中,例如,确定有效区域的多个子区域中的每个子区域内是否有且只有一个手指按压。可以仅在多个触摸点位于所述有效区域中的不同子区域中时,才确定多个触摸点对应的子区域组合,然后,可根据预设的子区域组合与情景模式的映射关系,获取对应的情景模式,并将获取的情景模式作为待切换情景模式。In this embodiment, referring to FIG. 6 , if the touch location is in a preset active area, it may be determined whether multiple touch points are located in different sub-areas in the active area, for example, determining that the touch is valid. Whether there is one and only one finger press in each of the plurality of sub-areas of the area. The sub-area combination corresponding to the plurality of touch points may be determined only when the plurality of touch points are located in different ones of the effective areas, and then may be obtained according to the mapping relationship between the preset sub-area combination and the scene mode. Corresponding scene mode, and the acquired scene mode as the scene mode to be switched.
可以理解的是,通过限定子区域组合与情景模式,实现了每次根据不同的子区域组合,可以得到不同的情景模式,例如图6,手指按压子区域1和子区域2得到的情景模式,不同于手指按压子区域1和子区域n得到的情景模式,使得情景模式的切换更加灵活和智能。It can be understood that by defining the sub-area combination and the scene mode, different scene modes can be obtained each time according to different sub-area combinations, for example, FIG. 6, the finger presses the sub-area 1 and the sub-area 2 to obtain the scene mode, which is different. The scene mode obtained by the finger pressing the sub-area 1 and the sub-area n makes the switching of the scene mode more flexible and intelligent.
步骤S30,将所述终端从当前情景模式中切换至待切换情景模式中。Step S30, the terminal is switched from the current scene mode to the to-be-switched scene mode.
在本实施例中,在获取到待切换情景模式时,可确定所述待切换情景模式是否与当前情景模式相同,若相同,则可保持当前情景模式,并输出信息。在所述待切换情景模式与当前情景模式不相同时,则可将所述终端从当前情景模式中切换至待切换情景模式中。In this embodiment, when the scene mode to be switched is acquired, it may be determined whether the to-be-switched scene mode is the same as the current scene mode. If they are the same, the current scene mode may be maintained and information may be output. When the to-be-switched profile mode is different from the current profile mode, the terminal may be switched from the current profile mode to the to-be-switched profile mode.
本实施例提出的情景模式切换方法,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数,根据获取的所述触摸参数,确定待切换情景模式,以及将所述终端从当前情景模式中切换至待切换情景模式中,而不需要点击一级一级的应用图标,以进入情景模式的设置界面进行情景模式的切换,本发明实施例在终端熄屏状态下,根据输入的触摸操作执行情景模式切换过程,实现了情景模式的快速切换,从而提高了情景模式切换 的便捷性和效率。The scene mode switching method according to the embodiment, when receiving the touch operation in the case that the terminal is off, acquiring the touch parameter corresponding to the touch operation, determining the to-be-switched scene mode according to the acquired touch parameter, and The terminal switches from the current scene mode to the to-be-switched scene mode, and does not need to click the application icon of the level one level to enter the setting mode of the scene mode to switch the scene mode. In the embodiment of the present invention, the terminal is in the state of being turned off. The scene mode switching process is performed according to the input touch operation, and the scene mode is quickly switched, thereby improving the scene mode switching. Convenience and efficiency.
可选地,为了增加情景模式切换的智能性,所述步骤S30之后,所述情景模式切换方法还包括:Optionally, in order to increase the intelligence of the scenario mode switching, after the step S30, the scenario mode switching method further includes:
在情景模式切换成功时,所述终端震动或者亮屏。When the context mode is successfully switched, the terminal vibrates or illuminates.
在本实施例中,在情景模式切换成功时,所述终端震动或者亮屏,告知用户情景模式切换成功,以使用户得知情景模式切换的结果。In this embodiment, when the context mode is successfully switched, the terminal vibrates or illuminates, and the user is notified that the scene mode is successfully switched, so that the user knows the result of the scene mode switching.
本发明实施例还提供一种情景模式切换装置。The embodiment of the invention further provides a scene mode switching device.
参照图8,图8为本发明实施例提供的情景模式切换装置的功能模块示意图。Referring to FIG. 8, FIG. 8 is a schematic diagram of functional modules of a scene mode switching apparatus according to an embodiment of the present invention.
本发明实施例中的情景模式切换装置可包括带有触摸屏的终端,如手机、PAD;或者,可设置于终端中。The scene mode switching device in the embodiment of the present invention may include a terminal with a touch screen, such as a mobile phone or a PAD; or may be disposed in the terminal.
可以理解的是,对本领域的技术人员来说,图8所示功能模块图仅仅是一个可选实施例的示例图,本领域的技术人员围绕图8所示的情景模式切换装置的功能模块,可轻易进行新的功能模块的补充;功能模块的名称可以是自定义名称,仅用于辅助理解该情景模式切换装置的不同程序功能块,不用于限定本发明实施例的技术方案,本发明实施例技术方案的核心可以是,自定义名称的功能模块所要达成的功能。It will be understood that, for those skilled in the art, the functional block diagram shown in FIG. 8 is merely an exemplary diagram of an alternative embodiment, and those skilled in the art will surround the functional modules of the scene mode switching device shown in FIG. The function module may be supplemented with a new function module; the name of the function module may be a custom name, which is only used to assist in understanding different program function blocks of the scene mode switching device, and is not used to limit the technical solution of the embodiment of the present invention. The core of the technical solution can be the function to be achieved by the functional module of the custom name.
需要说明的是,该情景模式切换装置可以是与上述情景模式切换方法相对应的装置,其中上述方法实施例中所有实现方式均可适用于该装置的实施例中,也能达到同样的技术效果。It should be noted that the scenario mode switching device may be a device corresponding to the scenario mode switching method, wherein all the implementation manners in the foregoing method embodiments can be applied to the device embodiment, and the same technical effect can be achieved. .
本实施例提出一种情景模式切换装置,所述情景模式切换装置包括:The embodiment provides a scenario mode switching device, where the scenario mode switching device includes:
获取模块10,设置为:在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数;The obtaining module 10 is configured to: acquire a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
在本实施例中,接收到触摸操作可以包括通过终端屏幕接收到触摸操作。终端屏幕可包括压力屏和触摸屏,其中,压力屏具有压力检测以及唤醒终端的功能,触摸屏具有感应触摸操作的功能。可选地,在终端熄屏的情况下,所述压力屏以低功耗方式扫描是否有外界输入的触摸操作,当有外界输入的触摸操作时,获取模块10获取所述触摸操作对应的触摸参数,其中,所述触摸操作可包括点击触摸操作、长按触摸操作、滑动触摸操作等等,所述触摸参数可包括触摸操作对应的触摸位置、触摸操作对应的触摸点数量、触摸操 作对应压力值以及触摸操作对应触摸位置等等,所述触摸点数量可包括用户同一时间输入的触摸手指的数量,或者预设时间间隔内输入触摸操作对应的手指数量。In this embodiment, receiving the touch operation may include receiving a touch operation through the terminal screen. The terminal screen may include a pressure screen having a function of pressure detection and waking up the terminal, and a touch screen having a function of sensing a touch operation. Optionally, in the case that the terminal is off, the pressure screen scans whether there is a touch operation of the external input in a low-power mode. When there is a touch operation input by the outside world, the acquiring module 10 acquires the touch corresponding to the touch operation. a parameter, wherein the touch operation may include a touch operation, a long touch operation, a sliding touch operation, and the like, the touch parameter may include a touch position corresponding to the touch operation, a touch point corresponding to the touch operation, and a touch operation. The corresponding pressure value and the touch operation corresponding to the touch position and the like, the number of touch points may include the number of touch fingers input by the user at the same time, or the number of fingers corresponding to the input touch operation within the preset time interval.
确定模块20,设置为:根据获取的所述触摸参数,确定待切换情景模式;The determining module 20 is configured to: determine a scenario to be switched according to the acquired touch parameter;
在本实施例中,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数,然后确定模块20直接根据获取的所述触摸参数,确定待切换情景模式,可选地,为了防止误触发操作,即为了提高情景模式切换的准确性,In this embodiment, when the touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and then the determining module 20 directly determines the to-be-switched scene mode according to the acquired touch parameter, and is optional. Ground, in order to prevent false triggering operations, that is, to improve the accuracy of the scene mode switching,
所述确定模块20还设置为:确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长;The determining module 20 is further configured to: determine whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation reaches a preset duration;
所述确定模块20是设置为:在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,根据获取的所述触摸参数,确定待切换情景模式。The determining module 20 is configured to: when the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, determine the to-be-switched scenario according to the acquired touch parameter mode.
在本实施例中,在终端熄屏的情况下接收到触摸操作时,所述确定模块20先确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长,所述预设阈值及所述预设时长可以由终端根据特定情况进行设置,此处不做限定。在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,所述确定模块20才根据获取的所述触摸参数,确定待切换情景模式。例如,所述终端在熄屏状态下,压力屏以低功能方式扫描是否有外界压力,当外界压力达到预设条件的情况下,即所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长,所述确定模块20才根据获取的所述触摸参数,确定待切换情景模式。这样,与在有触摸操作时,直接根据触摸操作的触摸参数执行后续的情景模式切换操作相比,防止了因误输入的触摸操作而确定待切换情景模式。In this embodiment, when the touch operation is received in the case that the terminal is off, the determining module 20 first determines whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation is The preset duration and the preset duration may be set by the terminal according to a specific situation, which is not limited herein. When the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset time length, the determining module 20 determines the scene mode to be switched according to the acquired touch parameter. For example, when the terminal is in the off-screen state, the pressure screen scans whether there is external pressure in a low-function manner. When the external pressure reaches a preset condition, that is, the pressure value of the touch operation is greater than a preset threshold, and/or The touch time of the touch operation reaches a preset time length, and the determining module 20 determines the scene mode to be switched according to the acquired touch parameter. In this way, compared with when the touch operation is performed, the subsequent scene mode switching operation is directly performed according to the touch parameter of the touch operation, and the scene mode to be switched is determined due to the erroneously input touch operation.
当然,当压力屏侦测到触摸操作的压力值小于预设阈值,以及触摸操作的触摸时间小于预设时长,则可以不根据获取的所述触摸参数,确定待切换情景模式,继续以低功耗方式扫描,直到检测到触摸操作的压力值达到预设阈值,及/或触摸操作的触摸时间达到预设时长的触摸操作,才根据获取的所述触摸参数,确定待切换情景模式。 Certainly, when the pressure screen detects that the pressure value of the touch operation is less than the preset threshold, and the touch time of the touch operation is less than the preset duration, the scene mode to be switched may not be determined according to the acquired touch parameter, and the low-performance is continued. The mode is scanned until the pressure value of the touch operation reaches a preset threshold, and/or the touch operation of the touch operation reaches a preset time duration, and the scene mode to be switched is determined according to the acquired touch parameter.
从上文可知,所述触摸参数可包括触摸操作的触摸位置,以及触摸操作对应的触摸点数量等等,也就是说,触摸参数不同,那么所述确定模块20根据获取的触摸参数,确定待切换情景模式相应地也可以有所不同,可选地,所述确定模块20确定待切换情景模式的实施方式包括:As can be seen from the above, the touch parameter may include a touch position of a touch operation, a number of touch points corresponding to the touch operation, and the like, that is, the touch parameters are different, and then the determining module 20 determines to wait according to the acquired touch parameter. The switching scenario mode may also be different. Alternatively, the determining module 20 determines that the implementation mode of the scenario to be switched includes:
1)方式一、参照图9,在所述触摸参数包括触摸位置时,所述确定模块20可包括:1) Mode 1, with reference to FIG. 9, when the touch parameter includes a touch location, the determining module 20 may include:
第一确定单元21,设置为:确定所述触摸位置是否位于预设的多个有效区域中的任一个有效区域中;The first determining unit 21 is configured to: determine whether the touch location is located in any one of the preset multiple active areas;
第一获取单元22,设置为:当所述触摸位置位于预设的多个有效区域中的任一个有效区域中时,根据预设的有效区域与情景模式的映射关系,获取所述触摸位置对应的情景模式;The first obtaining unit 22 is configured to: when the touch location is located in any one of the preset multiple active areas, obtain the touch location according to the mapping relationship between the preset effective area and the scene mode Situational pattern;
第一处理单元23,设置为:将获取的情景模式作为待切换情景模式。The first processing unit 23 is configured to: use the acquired scene mode as the scene mode to be switched.
在本实施例中,参照图3,终端可先将触摸屏区域预先划分为多个有效区域,其中,每个有效区域可对应一个预设情景模式。在接收到输入的触摸操作时,第一确定单元21可先识别触摸操作的手指对应的触摸位置,然后查阅表一,找到所述触摸位置对应的预设情景模式,然后第一获取单元22获取找到的所述预设情景模式,然后第一确定单元21可确定获取的所述预设情景模式是否与当前情景模式相同,若不相同,则第一处理单元23将当前情景模式变更为所述预设情景模式。In this embodiment, referring to FIG. 3, the terminal may first divide the touch screen area into a plurality of effective areas, where each effective area may correspond to one preset scene mode. When receiving the input touch operation, the first determining unit 21 may first identify the touch position corresponding to the finger of the touch operation, and then refer to Table 1 to find the preset scene mode corresponding to the touch position, and then the first obtaining unit 22 acquires The first scene determining unit 21 may determine whether the acquired preset scene mode is the same as the current scene mode. If not, the first processing unit 23 changes the current scene mode to the Preset scene mode.
可以理解的是,本实施例中的有效区域与情景模式的映射关系不作限定,可以是系统事先设置好的,也可以由用户自定义设置。It can be understood that the mapping relationship between the effective area and the scene mode in this embodiment is not limited, and may be set in advance by the system, or may be customized by the user.
有效区域一Effective area one 情景模式1Scene mode 1
有效区域二Effective area two 情景模式2Scene mode 2
有效区域三Effective area three 情景模式3Scene mode 3
有效区域四Effective area four 情景模式4Scene mode 4
有效区域五Effective area five 情景模式5Scene mode 5
在本实施例中,为了防止终端放在口袋时的误触发,或者是其他情况下的误触发,可以预设其中仅有某一区域存在压力值大于第一预设阈值,且其他区域压力值小于第二预设阈值时,才唤醒所述终端屏幕,然后根据获取的 所述触摸位置与预设情景模式的映射关系,获取相应的预设情景模式。In this embodiment, in order to prevent false triggering when the terminal is placed in the pocket, or false triggering in other situations, it may be preset that only one region has a pressure value greater than the first preset threshold, and other region pressure values When the second preset threshold is less than the second preset threshold, the terminal screen is woken up, and then according to the acquired The mapping relationship between the touch location and the preset profile mode acquires a corresponding preset profile mode.
2)方式二、在所述触摸参数包括触摸点数量时,所述确定模块20可包括:2) mode 2, when the touch parameter includes the number of touch points, the determining module 20 may include:
第一单元,设置为:根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;The first unit is configured to: acquire a scene mode corresponding to the number of the touch points according to a mapping relationship between the preset number of touch points and the scene mode;
第二单元,设置为:将获取的情景模式作为待切换情景模式。The second unit is set to: use the acquired scene mode as the scene mode to be switched.
可选地,参照图10,所述确定模块20可包括:Optionally, referring to FIG. 10, the determining module 20 may include:
第二确定单元24,设置为:确定触摸点的触摸位置是否位于预设的有效区域中;The second determining unit 24 is configured to: determine whether the touch position of the touch point is located in the preset effective area;
第二获取单元25,设置为:当触摸点的触摸位置位于预设的有效区域中时,根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;The second acquiring unit 25 is configured to: when the touch position of the touched point is located in the preset active area, acquire a scene mode corresponding to the number of the touched points according to a mapping relationship between the preset number of touched points and the scene mode;
第二处理单元26,设置为:将获取的情景模式作为待切换情景模式。The second processing unit 26 is configured to: use the acquired scene mode as the scene mode to be switched.
在本实施例中,参照图5,将触摸屏区域预设划分为有效区域和非有效区域。所述终端进入熄屏的情况下,压力屏可以以低功耗方式扫描。在检测到触摸操作,且所述触摸操作的压力值大于预设阈值,及所述触摸操作的触摸时间达到预设时长时,第二确定单元24可判断所述操作的触摸位置是否位于预设的有效区域中,若所述触摸位置位于预设的有效区域中,则可以确定所述触摸操作对应的触摸点数量,本实施例中,所述触摸点数量的计算方式可包括:a、同一个时间点中在触摸屏中按压的手指的数量,即为触摸点数量,可以理解,此时,有多少个手指按压触摸屏,就有多少个触摸点。b、预设时间间隔内,在触摸屏中按压的手指的数量,即为触摸点数量,可以理解,此时可以是同一个手指在预设时间间隔内按压多次,得到多个触摸点,也可以是不同手指按压触摸屏,得到多个触摸点。然后第二获取单元25可根据预设的触摸点数量与情景模式的映射关系,获取与确定的触摸点数量对应的情景模式,可以理解的是,所述触摸点数量与情景模式的映射关系可不作限定,可以是系统事先设置好的,也可以是由用户自定义设置的。In this embodiment, referring to FIG. 5, the touch screen area is preset to be divided into an effective area and a non-active area. When the terminal enters the screen, the pressure screen can be scanned in a low power mode. When the touch operation is detected, and the pressure value of the touch operation is greater than a preset threshold, and the touch time of the touch operation reaches a preset time length, the second determining unit 24 may determine whether the touch position of the operation is at a preset In the active area, if the touch location is in the preset active area, the number of touch points corresponding to the touch operation may be determined. In this embodiment, the calculation manner of the touch point quantity may include: a, the same The number of fingers pressed in the touch screen at one time point, that is, the number of touch points, can be understood, at this time, how many touch points are pressed by the number of fingers pressing the touch screen. b. In the preset time interval, the number of fingers pressed in the touch screen is the number of touch points. It can be understood that the same finger can be pressed multiple times in the preset time interval to obtain multiple touch points. It is possible that different fingers press the touch screen to obtain multiple touch points. The second acquiring unit 25 may acquire a scenario corresponding to the determined number of touched points according to the mapping relationship between the preset number of touched points and the scene mode. It can be understood that the mapping relationship between the number of the touched points and the scene mode may be It is not limited, it can be set in advance by the system, or it can be customized by the user.
在本实施例中,可以是在任一压力手指落在有效区域外,都不会获取相应的情景模式,当然,还可以是在任一压力手指落在有效区域外,计算落在有效区域中的触摸点数量,然后根据计算的触摸点数量获取相应的情景模式。 In this embodiment, it may be that any pressure finger falls outside the effective area, and the corresponding scene mode is not acquired. Of course, it is also possible to calculate the touch falling in the effective area when any pressure finger falls outside the effective area. The number of points, and then the corresponding scene mode is obtained according to the calculated number of touch points.
可选地,为了提高情景模式切换的准确性,所述第二确定单元24,还设置为:当触摸点的触摸位置位于预设的有效区域中时,确定多个触摸点是否位于预设的有效区域中的不同子区域中;Optionally, in order to improve the accuracy of the scene mode switching, the second determining unit 24 is further configured to: determine, when the touch position of the touch point is in the preset effective area, whether the plurality of touch points are located in the preset In different sub-areas in the active area;
所述第二获取单元25,还设置为:当多个触摸点位于所述有效区域中的不同子区域中时,根据预设的触摸点数量与情景模式的映射关系,获取确定的触摸点数量对应的情景模式。The second obtaining unit 25 is further configured to: when the plurality of touched points are located in different sub-regions of the effective area, obtain the determined number of touched points according to the mapping relationship between the preset number of touched points and the scene mode Corresponding context mode.
也就是说,将触摸屏区域预设划分为有效区域和非有效区域之后,可以将有效区域又分成多个子区域,参照图6,若所述触摸位置位于预设的有效区域中,所述第二确定单元24可先确定多个触摸点是否位于所述有效区域中的不同子区域中,例如,确定有效区域的多个子区域中的每个子区域内是否有且只有一个手指按压,可以仅在多个触摸点位于所述有效区域中的不同子区域中时,才确定所述有效区域中的触摸点数量,然后,所述第二获取单元25可根据预设的触摸点数量与情景模式的映射关系,获取确定的触摸点数量对应的情景模式。That is, after the touch screen area is preset into the active area and the non-active area, the effective area may be further divided into a plurality of sub-areas. Referring to FIG. 6, if the touch position is in the preset effective area, the second The determining unit 24 may first determine whether the plurality of touch points are located in different sub-areas in the effective area, for example, determining whether there is one and only one finger press in each of the plurality of sub-areas of the effective area, which may be only When the touch points are located in different sub-areas in the effective area, the number of touch points in the effective area is determined, and then the second acquiring unit 25 may map the scene according to the preset number of touch points. Relationship, obtaining a scene pattern corresponding to the determined number of touch points.
可以理解的是,通过限制每个子区域中仅有一个触摸点对应,使得每个触摸点输入的位置都有相应的间隔,防止了手掌等大面积物体按压触摸屏时,由于面积较大,容易产生在有效区域产生多个触摸点,而导致的误操作,本实施例的可选实施方式限定了每个触摸点在有效区域的不同子区域中输入,提高了触摸操作输入的准确性,从而提高了情景模式切换的准确性。It can be understood that by restricting only one touch point corresponding in each sub-area, the position of each touch point input has a corresponding interval, which prevents a large-area object such as a palm from pressing the touch screen, and is easy to generate due to a large area. In the effective area, a plurality of touch points are generated, and the erroneous operation is caused. The optional embodiment of the embodiment defines that each touch point is input in different sub-areas of the effective area, which improves the accuracy of the touch operation input, thereby improving The accuracy of the scene mode switching.
3)方式三、在所述触摸参数包括触摸位置时,所述确定模块20可包括:3) mode 3: When the touch parameter includes a touch location, the determining module 20 may include:
第三单元,设置为:根据所述触摸位置,确定多个触摸点是否位于预设的有效区域中的不同子区域中;The third unit is configured to: determine, according to the touch location, whether the plurality of touch points are located in different sub-regions in the preset effective area;
第四单元,设置为:当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;a fourth unit, configured to: when a plurality of touch points are located in different sub-areas in the effective area, determine a sub-area combination corresponding to the plurality of touch points;
第五单元,设置为:根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;a fifth unit, configured to: obtain a determined scenario corresponding to the sub-region combination according to a mapping relationship between the preset sub-region combination and the scenario mode;
第六单元,设置为:将获取的情景模式作为待切换情景模式。The sixth unit is set to: the acquired scene mode is used as the scene mode to be switched.
可选地,所述情景模式切换装置还包括:Optionally, the scenario mode switching device further includes:
第七单元,设置为:确定触摸点的触摸位置是否位于预设的有效区域中; 当触摸点的触摸位置位于预设的有效区域中时,执行所述确定模块20。The seventh unit is configured to: determine whether the touch position of the touch point is located in the preset effective area; The determining module 20 is executed when the touch location of the touch point is in the preset active area.
可选地,参照图11,所述确定模块20还包括:Optionally, referring to FIG. 11, the determining module 20 further includes:
第三确定单元27,设置为:当触摸点的触摸位置位于预设的有效区域中时,确定多个触摸点是否位于所述有效区域中的不同子区域中;The third determining unit 27 is configured to: when the touch position of the touch point is located in the preset effective area, determine whether the plurality of touch points are located in different sub-areas in the effective area;
所述第三确定单元27,还设置为:当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;The third determining unit 27 is further configured to: when a plurality of touch points are located in different ones of the effective areas, determine a sub-area combination corresponding to the plurality of touch points;
第三获取单元28,设置为:根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;The third obtaining unit 28 is configured to: acquire the determined scenario mode corresponding to the sub-region combination according to the mapping relationship between the preset sub-region combination and the scenario mode;
第三处理单元29,设置为:将获取的情景模式作为待切换情景模式。The third processing unit 29 is configured to: use the acquired scene mode as the scene mode to be switched.
在本实施例中,同样可参照图6,若所述触摸位置位于预设的有效区域中,第三确定单元27可先确定多个触摸点是否位于所述有效区域中的不同子区域中,例如,确定有效区域的多个子区域中的每个子区域内是否有且只有一个手指按压,可以仅在多个触摸点位于所述有效区域中的不同子区域中时,所述第三确定单元27才确定多个触摸点对应的子区域组合,然后,第三获取单元28可根据预设的触摸子区域组合与情景模式的映射关系,获取对应的情景模式,并且第三处理单元29将获取的情景模式作为待切换情景模式。In this embodiment, referring to FIG. 6, if the touch location is in the preset active area, the third determining unit 27 may first determine whether the multiple touch points are located in different sub-areas in the active area. For example, determining whether there is one and only one finger press in each of the plurality of sub-areas of the effective area, the third determining unit 27 may be only when the plurality of touch points are located in different ones of the effective areas The sub-region combination corresponding to the plurality of touch points is determined, and then the third acquiring unit 28 may acquire the corresponding scene mode according to the mapping relationship between the preset touch sub-region combination and the scene mode, and the third processing unit 29 will acquire the The scene mode is used as the scene mode to be switched.
可以理解的是,通过限定子区域组合与情景模式,实现了每次根据不同的子区域组合,可以得到不同的情景模式,例如图6,手指按压子区域1和子区域2得到的情景模式,不同于手指按压子区域1和子区域n得到的情景模式,使得情景模式的切换更加灵活和智能。It can be understood that by defining the sub-area combination and the scene mode, different scene modes can be obtained each time according to different sub-area combinations, for example, FIG. 6, the finger presses the sub-area 1 and the sub-area 2 to obtain the scene mode, which is different. The scene mode obtained by the finger pressing the sub-area 1 and the sub-area n makes the switching of the scene mode more flexible and intelligent.
切换模块30,设置为:将所述终端从当前情景模式中切换至待切换情景模式中。The switching module 30 is configured to: switch the terminal from the current scene mode to the to-be-switched scene mode.
在本实施例中,在获取到待切换情景模式时,可确定所述待切换情景模式是否与当前情景模式相同,若相同,则可保持当前情景模式,并输出信息。在所述待切换情景模式与当前情景模式不相同时,则切换模块30可将所述终端从当前情景模式中切换至待切换情景模式中。In this embodiment, when the scene mode to be switched is acquired, it may be determined whether the to-be-switched scene mode is the same as the current scene mode. If they are the same, the current scene mode may be maintained and information may be output. When the to-be-switched context mode is different from the current scene mode, the switching module 30 may switch the terminal from the current scene mode to the to-be-switched profile mode.
本实施例提出的情景模式切换装置,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数,根据获取的所述触摸参数,确定待切换情景模式,以及将所述终端从当前情景模式中切换至待切换情景模式中,而不需要点击一级一级的应用图标,以进入情景模式的设置界面进行情 景模式的切换,本发明实施例在终端熄屏状态下,根据输入的触摸操作执行情景模式切换过程,实现了情景模式的快速切换,从而提高了情景模式切换的便捷性和效率。The scene mode switching device of the present embodiment obtains a touch parameter corresponding to the touch operation when the touch operation is received, and determines a scene mode to be switched according to the acquired touch parameter, and The terminal switches from the current scene mode to the scene mode to be switched, without clicking the application icon of the first level to enter the setting interface of the scene mode. In the switching mode of the scene, in the state in which the terminal is off, the scene mode switching process is performed according to the input touch operation, and the scene mode is quickly switched, thereby improving the convenience and efficiency of the scene mode switching.
可选地,为了增加情景模式切换的智能性,所述情景模式切换装置还包括:Optionally, in order to increase the intelligence of the scenario mode switching, the scenario mode switching device further includes:
处理模块,设置为:在情景模式切换成功时,震动或者亮屏。The processing module is set to: vibrate or brighten when the scene mode is successfully switched.
在本实施例中,在情景模式切换成功时,所述处理模块震动或者亮屏,告知用户情景模式切换成功,以使用户得知情景模式切换的结果。In this embodiment, when the context mode is successfully switched, the processing module vibrates or illuminates, and informs the user that the context mode is successfully switched, so that the user knows the result of the scene mode switching.
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述情景模式切换方法。The embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
可以理解的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or system that comprises a plurality of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or system. An element defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in a process, method, article, or system that includes the element, without further limitation.
可以理解的是,在本文中,术语“模块”可以实现预定功能的软件和/或硬件的组合。It will be understood that, herein, the term "module" may implement a combination of software and/or hardware of a predetermined function.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, disk). The optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method described in the embodiments of the present invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件、处理器等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, processor, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这 些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented using an integrated circuit. The steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be fabricated into a single integrated circuit module.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
本领域的普通技术人员可以理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范围。本申请的保护范围以权利要求所定义的范围为准。A person skilled in the art can understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application. The scope of protection of this application is defined by the scope defined by the claims.
工业实用性Industrial applicability
本发明实施例提出的情景模式切换方法及装置,在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数,根据获取的所述触摸参数,确定待切换情景模式,以及将所述终端从当前情景模式中切换至待切换情景模式中,而不需要点击一级一级的应用图标,以进入情景模式的设置界面进行情景模式的切换。本发明实施例在终端熄屏状态下,根据输入的触摸操作执行情景模式切换过程,实现了情景模式的快速切换,从而提高了情景模式切换的便捷性和效率。 The method and device for switching the scene mode according to the embodiment of the present invention, when the touch operation is received in the case that the terminal is off, the touch parameter corresponding to the touch operation is acquired, and the scene mode to be switched is determined according to the acquired touch parameter. And switching the terminal from the current scene mode to the to-be-switched scene mode, without clicking the application icon of the level one level, to enter the setting interface of the scene mode to switch the scene mode. In the embodiment of the invention, the scene mode switching process is performed according to the input touch operation, and the scene mode fast switching is implemented, thereby improving the convenience and efficiency of the scene mode switching.

Claims (13)

  1. 一种情景模式切换方法,所述情景模式切换方法包括:A scenario mode switching method, the scenario mode switching method includes:
    在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数;Acquiring a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
    根据获取的所述触摸参数,确定待切换情景模式;Determining a scenario to be switched according to the obtained touch parameter;
    将所述终端从当前情景模式中切换至待切换情景模式中。Switching the terminal from the current profile to the profile to be switched.
  2. 如权利要求1所述的情景模式切换方法,所述根据获取的所述触摸参数,确定待切换情景模式的步骤之前,所述情景模式切换方法还包括:The scene mode switching method according to claim 1, wherein the method for determining a scene mode to be switched according to the obtained touch parameter, the scene mode switching method further comprises:
    确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长;Determining whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation reaches a preset duration;
    在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,执行根据获取的所述触摸参数,确定待切换情景模式的步骤。When the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset time length, performing the step of determining the to-be-switched scene mode according to the acquired touch parameter.
  3. 如权利要求1所述的情景模式切换方法,其中,所述触摸参数包括触摸位置,所述根据获取的所述触摸参数,确定待切换情景模式的步骤包括:The scene mode switching method of claim 1, wherein the touch parameter comprises a touch location, and the determining the scenario to be switched according to the acquired touch parameter comprises:
    确定所述触摸位置是否位于预设的多个有效区域中的任一个有效区域中;Determining whether the touch location is located in any one of a plurality of preset effective regions;
    当所述触摸位置位于预设的多个有效区域中的任一个有效区域中时,根据预设的有效区域与情景模式的映射关系,获取所述触摸位置对应的情景模式;Obtaining a scene mode corresponding to the touch position according to a mapping relationship between the preset effective area and the scene mode, when the touch position is located in any one of the preset plurality of valid areas;
    将获取的情景模式作为待切换情景模式。The acquired scene mode is taken as the scene mode to be switched.
  4. 如权利要求1所述的情景模式切换方法,其中,所述触摸参数包括触摸点数量,所述根据获取的所述触摸参数,确定待切换情景模式的步骤包括:The scene mode switching method according to claim 1, wherein the touch parameter includes a number of touch points, and the determining the scene mode to be switched according to the acquired touch parameter comprises:
    根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;Obtaining a scene mode corresponding to the number of touch points according to a mapping relationship between the preset number of touch points and the scene mode;
    将获取的情景模式作为待切换情景模式。The acquired scene mode is taken as the scene mode to be switched.
  5. 如权利要求1所述的情景模式切换方法,其中,所述触摸参数包括触 摸位置,所述根据获取的所述触摸参数,确定待切换情景模式的步骤包括:The scene mode switching method of claim 1, wherein the touch parameter comprises a touch Touching the location, the step of determining the to-be-switched profile according to the acquired touch parameter includes:
    根据所述触摸位置,确定多个触摸点是否位于预设的有效区域中的不同子区域中;Determining, according to the touch location, whether the plurality of touch points are located in different sub-regions in the preset effective area;
    当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;Determining a sub-area combination corresponding to the plurality of touch points when the plurality of touch points are located in different ones of the effective areas;
    根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;Acquiring the determined scenario pattern corresponding to the sub-region combination according to the mapping relationship between the preset sub-region combination and the scenario mode;
    将获取的情景模式作为待切换情景模式。The acquired scene mode is taken as the scene mode to be switched.
  6. 如权利要求1所述的情景模式切换方法,还包括:The scene mode switching method of claim 1, further comprising:
    确定触摸点的触摸位置是否位于预设的有效区域中;Determining whether the touch position of the touch point is located in a preset effective area;
    当触摸点的触摸位置位于预设的有效区域中时,执行所述根据获取的所述触摸参数,确定待切换情景模式的步骤。When the touch position of the touch point is located in the preset effective area, performing the step of determining the to-be-switched scene mode according to the acquired touch parameter.
  7. 一种情景模式切换装置,所述情景模式切换装置包括:A scene mode switching device, the scene mode switching device comprising:
    获取模块,设置为:在终端熄屏的情况下接收到触摸操作时,获取所述触摸操作对应的触摸参数;Obtaining a module, configured to: obtain a touch parameter corresponding to the touch operation when receiving a touch operation in a case where the terminal is off;
    确定模块,设置为:根据获取的所述触摸参数,确定待切换情景模式;a determining module, configured to: determine a scenario to be switched according to the obtained touch parameter;
    切换模块,设置为:将所述终端从当前情景模式中切换至待切换情景模式中。The switching module is configured to: switch the terminal from the current scene mode to the to-be-switched scene mode.
  8. 如权利要求7所述的情景模式切换装置,其中:A scene mode switching device according to claim 7, wherein:
    所述确定模块还设置为:确定所述触摸操作的压力值是否大于预设阈值,及/或所述触摸操作的触摸时间是否达到预设时长;The determining module is further configured to: determine whether the pressure value of the touch operation is greater than a preset threshold, and/or whether the touch time of the touch operation reaches a preset duration;
    所述确定模块是设置为:在所述触摸操作的压力值大于预设阈值,及/或所述触摸操作的触摸时间达到预设时长时,根据获取的所述触摸参数,确定待切换情景模式。The determining module is configured to: when the pressure value of the touch operation is greater than a preset threshold, and/or the touch time of the touch operation reaches a preset duration, determine the to-be-switched scene mode according to the acquired touch parameter .
  9. 如权利要求7所述的情景模式切换装置,其中,所述触摸参数包括触摸位置,所述确定模块包括:The scene mode switching device of claim 7, wherein the touch parameter comprises a touch location, and the determining module comprises:
    第一确定单元,设置为:确定所述触摸位置是否位于预设的多个有效区 域中的任一个有效区域中;a first determining unit, configured to: determine whether the touch location is located in a preset multiple active area In any valid area of the domain;
    第一获取单元,设置为:当所述触摸位置位于预设的多个有效区域中的任一个有效区域中时,根据预设的有效区域与情景模式的映射关系,获取所述触摸位置对应的情景模式;The first obtaining unit is configured to: when the touch location is located in any one of the preset multiple active areas, obtain the corresponding location of the touch location according to a mapping relationship between the preset effective area and the scene mode Situational mode
    第一处理单元,设置为:将获取的情景模式作为待切换情景模式。The first processing unit is configured to: use the acquired scene mode as the scene mode to be switched.
  10. 如权利要求7所述的情景模式切换装置,其中,所述触摸参数包括触摸点数量,所述确定模块包括:The scene mode switching device of claim 7, wherein the touch parameter comprises a number of touch points, and the determining module comprises:
    第一单元,设置为:根据预设的触摸点数量与情景模式的映射关系,获取所述触摸点数量对应的情景模式;The first unit is configured to: acquire a scene mode corresponding to the number of the touch points according to a mapping relationship between the preset number of touch points and the scene mode;
    第二单元,设置为:将获取的情景模式作为待切换情景模式。The second unit is set to: use the acquired scene mode as the scene mode to be switched.
  11. 如权利要求7所述的情景模式切换装置,其中,所述触摸参数包括触摸位置,所述确定模块包括:The scene mode switching device of claim 7, wherein the touch parameter comprises a touch location, and the determining module comprises:
    第三单元,设置为:根据所述触摸位置,确定多个触摸点是否位于所述有效区域中的不同子区域中;a third unit, configured to: determine, according to the touch location, whether the plurality of touch points are located in different sub-areas in the effective area;
    第四单元,设置为:当多个触摸点位于所述有效区域中的不同子区域中时,确定多个触摸点对应的子区域组合;a fourth unit, configured to: when a plurality of touch points are located in different sub-areas in the effective area, determine a sub-area combination corresponding to the plurality of touch points;
    第五单元,设置为:根据预设的子区域组合与情景模式的映射关系,获取确定的所述子区域组合对应的情景模式;a fifth unit, configured to: obtain a determined scenario corresponding to the sub-region combination according to a mapping relationship between the preset sub-region combination and the scenario mode;
    第六单元,设置为:将获取的情景模式作为待切换情景模式。The sixth unit is set to: the acquired scene mode is used as the scene mode to be switched.
  12. 如权利要求7所述的情景模式切换装置,还包括:The scene mode switching device of claim 7, further comprising:
    第七单元,设置为:确定触摸点的触摸位置是否位于预设的有效区域中;当触摸点的触摸位置位于预设的有效区域中时,执行所述确定模块。The seventh unit is configured to: determine whether the touch position of the touch point is located in the preset effective area; and when the touch position of the touch point is located in the preset effective area, the determining module is executed.
  13. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现如权利要求1至6中任一项所述的情景模式切换方法。 A computer readable storage medium storing computer executable instructions that, when executed, implement the context mode switching method of any one of claims 1 to 6.
PCT/CN2017/088290 2016-07-25 2017-06-14 Profile mode switching method and apparatus WO2018019049A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610589802.X 2016-07-25
CN201610589802.XA CN107656686A (en) 2016-07-25 2016-07-25 Profile switching method and device

Publications (1)

Publication Number Publication Date
WO2018019049A1 true WO2018019049A1 (en) 2018-02-01

Family

ID=61016775

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088290 WO2018019049A1 (en) 2016-07-25 2017-06-14 Profile mode switching method and apparatus

Country Status (2)

Country Link
CN (1) CN107656686A (en)
WO (1) WO2018019049A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650416A (en) * 2018-05-04 2018-10-12 平安科技(深圳)有限公司 The implementation method of pattern switching, device, electronic equipment and medium in terminal device
CN112789845B (en) * 2018-10-31 2023-07-18 Oppo广东移动通信有限公司 Terminal equipment and function starting control method
CN110226863B (en) * 2019-05-09 2021-11-02 京东方科技集团股份有限公司 A kind of container
CN112158141A (en) * 2020-09-27 2021-01-01 深圳口袋码农科技有限公司 Control method and device for vehicle-mounted display equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870190A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
CN103902129A (en) * 2014-04-11 2014-07-02 中科融通物联科技无锡有限公司 Multi-touch pressure testing method for capacitive screen
US20140285456A1 (en) * 2013-03-22 2014-09-25 Tencent Technology (Shenzhen) Company Limited Screen control method and the apparatus
CN105786090A (en) * 2014-12-17 2016-07-20 宏碁股份有限公司 Electronic device, electronic device suite and user interface operation method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401999B (en) * 2013-07-17 2018-01-16 上海斐讯数据通信技术有限公司 A kind of pattern fast switching system of mobile terminal
CN105631257A (en) * 2014-11-21 2016-06-01 东莞宇龙通信科技有限公司 Situational mode turn-on method and apparatus as well as terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870190A (en) * 2012-12-17 2014-06-18 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
US20140285456A1 (en) * 2013-03-22 2014-09-25 Tencent Technology (Shenzhen) Company Limited Screen control method and the apparatus
CN103902129A (en) * 2014-04-11 2014-07-02 中科融通物联科技无锡有限公司 Multi-touch pressure testing method for capacitive screen
CN105786090A (en) * 2014-12-17 2016-07-20 宏碁股份有限公司 Electronic device, electronic device suite and user interface operation method

Also Published As

Publication number Publication date
CN107656686A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
US10747368B2 (en) Method and device for preventing false-touch on touch screen, mobile terminal and storage medium
WO2018019049A1 (en) Profile mode switching method and apparatus
US10402005B2 (en) Touch method and device, touch display apparatus
TWI557649B (en) Electronic device and control method for fingerprint recognition apparatus
US20170255269A1 (en) Method, system for implementing operation of mobile terminal according to touching signal and mobile terminal
CN108021259B (en) False touch prevention method and electronic equipment
US9696767B2 (en) Command recognition method including determining a hold gesture and electronic device using the method
CN107203313B (en) Method for adjusting desktop display object, mobile terminal and computer readable storage medium
KR20130041900A (en) Adaptive method and device for user touch operation mode
EP3182261A1 (en) Touch operation processing method and terminal device
US20180203568A1 (en) Method for Enabling Function Module of Terminal, and Terminal Device
WO2014146443A1 (en) Screen control method and the apparatus
CN102200874A (en) Key input method and key input device based on touch screen
CN107390923B (en) Screen false touch prevention method and device, storage medium and terminal
US20160334926A1 (en) Method for Processing Terminal Device and Terminal Device
WO2017032006A1 (en) Method and apparatus for displaying information
CN106873891B (en) Touch operation method and mobile terminal
US10146372B2 (en) Method for controlling blank screen gesture processing and terminal
CN105739817B (en) A kind of method, device and mobile terminal of icon hiding
JP5644658B2 (en) Information processing apparatus, input control method, and input control program
TWI510976B (en) Method of selecting touch input source and electronic device using the same
WO2020147587A1 (en) Touch operation method and apparatus, terminal, and computer readable storage medium
CN107577404B (en) Information processing method and device and electronic equipment
US20170277419A1 (en) Method and Electronic Device for Replying to a Message
WO2019149123A1 (en) Control execution method, device, storage medium and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17833353

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17833353

Country of ref document: EP

Kind code of ref document: A1