Background
Along with the development of intelligent terminals, people are increasingly unable to leave the intelligent terminals, the entertainment function of the intelligent terminals is increasingly highlighted, both video watching and online games can be completed through the intelligent terminals, in the process of video watching and hand playing, except the speed of a system, the most intuitive feeling of a user is influenced by the volume and brightness conditions, the existing intelligent terminals are provided with volume entity keys, but the existing intelligent terminals are not provided with brightness entity keys, the operation needs to be switched to a main screen or a pull-down status bar every time, the operation is troublesome, the current interface needs to be cut out, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a brightness adjusting method and a brightness adjusting device for wearable equipment, which can quickly cut out a brightness adjusting key suspension window through judging the current state of the wearable equipment and the gesture of a user, can adjust the brightness of the wearable equipment without cutting out a current interface, and does not influence the operation of the user.
In a first aspect, an embodiment of the present invention provides a brightness adjustment method for a wearable device, including:
when an application program currently displayed by wearable equipment is in a full-screen state, acquiring state information of a sensor built in the wearable equipment;
determining whether the sensor is shielded according to the state information of the sensor;
determining the shielded duration of the sensor according to the change condition of the state information of the sensor;
when the shielded time length of the sensor is longer than a first preset time length and shorter than a second preset time length, popping up a brightness adjusting suspension window, and adjusting the brightness of the screen through the brightness adjusting suspension window.
Further, the method also comprises the following steps:
and when the display duration of the brightness adjustment suspension window is greater than a display duration threshold, closing the brightness adjustment suspension window.
Further, before determining the length of time that the sensor is blocked according to the change condition of the state information of the sensor, the method further includes:
determining the distance between the sensor and the shelter according to the state information of the sensor;
correspondingly, when the length of time that the sensor was sheltered from is greater than first predetermined length of time and is less than second predetermined length of time, pops out the brightness control suspension window, through brightness control suspension window regulation screen brightness includes:
when the distance between the sensor and the shielding object is larger than a first preset distance and smaller than a second preset distance, and the shielded duration of the sensor is larger than a first preset duration and smaller than a second preset duration, popping up a brightness adjusting suspension window, and adjusting the screen brightness through the brightness adjusting suspension window.
Further, when the application currently displayed by the wearable device is in a full screen state, acquiring the state information of the sensor built in the wearable device includes:
when an application program currently displayed by wearable equipment is in a full-screen state, detecting whether the application program type currently displayed by the wearable equipment is a preset application program type;
and if the currently displayed application program type of the wearable device is the preset application program type, acquiring the state information of a sensor built in the wearable device.
Further, the sensor comprises a distance sensor and/or a photoelectric sensor.
In a second aspect, an embodiment of the present invention further provides a brightness adjustment apparatus for a wearable device, where the apparatus includes:
the wearable device comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the state information of a sensor built in the wearable device when the application program currently displayed by the wearable device is in a full screen state;
the first determination module is used for determining whether the sensor is blocked according to the state information of the sensor;
the second determination module is used for determining the shielded duration of the sensor according to the change condition of the state information of the sensor;
and the adjusting module is used for popping up a brightness adjusting suspension window when the shielded time length of the sensor is greater than a first preset time length and less than a second preset time length, and adjusting the screen brightness through the brightness adjusting suspension window.
Further, the method also comprises the following steps:
and the closing module is used for closing the brightness adjustment suspension window when the display duration of the brightness adjustment suspension window is greater than a display duration threshold.
Further, the method also comprises the following steps:
the third determining module is used for determining the distance between the sensor and the shelter according to the state information of the sensor before determining the shielded duration of the sensor according to the change condition of the state information of the sensor;
correspondingly, the adjusting module is specifically configured to:
when the distance between the sensor and the shielding object is larger than a first preset distance and smaller than a second preset distance, and the shielded duration of the sensor is larger than a first preset duration and smaller than a second preset duration, popping up a brightness adjusting suspension window, and adjusting the screen brightness through the brightness adjusting suspension window.
Further, the obtaining module is specifically configured to:
when an application program currently displayed by wearable equipment is in a full-screen state, detecting whether the application program type currently displayed by the wearable equipment is a preset application program type;
and if the currently displayed application program type of the wearable device is the preset application program type, acquiring the state information of a sensor built in the wearable device.
Further, the sensor comprises a distance sensor and/or a photoelectric sensor.
According to the embodiment of the invention, when the application program currently displayed by the wearable device is in a full-screen state, the state information of a sensor built in the wearable device is acquired; determining whether the sensor is shielded or not according to the state information of the sensor; determining the shielded duration of the sensor according to the change condition of the state information of the sensor; when the length of time that the sensor was sheltered from is greater than first predetermined length of time and is less than second predetermined length of time, pop out the brightness control suspension window, through brightness control suspension window regulation screen brightness, can need not to cut out current interface and can adjust wearable equipment luminance, do not influence user operation.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a brightness adjustment method for a wearable device according to an embodiment of the present invention, where this embodiment is applicable to a case of brightness adjustment for a wearable device, and this method may be executed by a brightness adjustment apparatus for a wearable device according to an embodiment of the present invention, where the brightness adjustment apparatus may be implemented in software and/or hardware, and the brightness adjustment apparatus may be integrated in any wearable device that needs brightness adjustment, as shown in fig. 1, where the method specifically includes the following steps:
s110, when the application program currently displayed by the wearable device is in a full screen state, state information of a sensor built in the wearable device is acquired.
The wearable device may be a smart watch, and the application program currently displayed by the wearable device may be a game application program or a video application program, which is not limited in this embodiment of the present invention.
The application program currently displayed by the wearable device is in a full-screen state, namely the operation of the wearable device is a full-touch screen operation, and the screen brightness can be adjusted only by exiting the application program in the full-screen state.
Wherein the sensor built in the wearable device comprises a distance sensor and/or a photoelectric sensor. The position where the distance sensor and/or the photoelectric sensor are placed may be a side surface of the wearable device, or may be a position above a screen display area of the wearable device, which is not limited in this embodiment of the present invention.
The state information of the sensor built in the wearable device may be that the sensor is shielded by a shielding object, or the sensor is not shielded by the shielding object, or the sensor is shielded by the shielding object and converted into the state information that the sensor is not shielded by the shielding object, which is not limited in this embodiment of the present invention.
Specifically, when an application program currently displayed by the wearable device is in a full-screen state, state information of a sensor is determined according to data measured by the sensor, and state information of the sensor built in the wearable device is acquired, for example, the application currently displayed by the wearable device is a game application, a screen state of the wearable device is a full-touch screen state, the sensor built in the wearable device is turned on, data is acquired through the sensor, and the state information of the sensor is determined according to the data acquired by the sensor.
And S120, determining whether the sensor is shielded or not according to the state information of the sensor.
Specifically, if the state information of the sensor indicates that the sensor is shielded by a shielding object, it is determined that the sensor is shielded; and if the state information of the sensor indicates that the sensor is not shielded by the shielding object, determining that the sensor is not shielded.
S130, determining the shielded duration of the sensor according to the change condition of the state information of the sensor.
Wherein, the length of time that the sensor is sheltered is the length of time that the shelter shelters the sensor.
Specifically, the time length of the sensor that is shielded by the shielding object is determined according to the change of the state information of the sensor, for example, if the state information of the sensor is changed from being shielded by the shielding object to being not shielded by the shielding object after 3 seconds, and is changed to be shielded by the shielding object after 2 seconds.
S140, when the shielded time of the sensor is longer than a first preset time and shorter than a second preset time, popping up a brightness adjusting suspension window, and adjusting the brightness of the screen through the brightness adjusting suspension window.
The first preset time and the second preset time can be set by a user or obtained according to experience, and the second preset time is longer than the first preset time.
The brightness adjustment suspension window is displayed at a preset position of a display area of a screen of the wearable device, the display position of the brightness adjustment suspension window does not affect the operation of a user on an application program currently displayed by the wearable device, the situation that the application program currently displayed by the wearable device is suspended cannot occur when the brightness adjustment suspension window is displayed, and the situation that the application program currently displayed by the wearable device is suspended when the brightness adjustment suspension window is popped up does not have any influence on the application program currently displayed by the wearable device.
The mode of adjusting the screen brightness through the brightness adjusting suspension window can be that the brightness is adjusted through sliding the brightness adjusting suspension window left and right, and the brightness is adjusted through the brightness adjusting points in the brightness adjusting suspension window left and right.
Specifically, when the length of time that the sensor is sheltered from is greater than first preset length of time and is less than second preset length of time, pop out luminance control suspension window, through luminance control suspension window regulation screen brightness, for example, the user shelters from wearable equipment built-in sensor and moves open with the palm fast, and wearable equipment screen pops out luminance control suspension window automatically.
Optionally, the method further includes:
and when the display duration of the brightness adjustment suspension window is greater than a display duration threshold, closing the brightness adjustment suspension window.
The duration threshold may be set by a user or obtained empirically, and the preferred preset duration is 0.5 seconds.
Specifically, the brightness adjustment floating window may be closed if no touch operation is obtained within 0.5 seconds after the brightness adjustment floating window appears, or the brightness adjustment floating window may be closed after 0.5 seconds after the brightness adjustment floating window appears, regardless of whether a user has a touch operation within a time period of 0.5 seconds, or the brightness adjustment floating window may be directly closed after the brightness adjustment operation is finished if the brightness adjustment operation is detected.
According to the technical scheme of the embodiment, when the application program currently displayed by the wearable device is in a full-screen state, state information of a sensor built in the wearable device is acquired; determining whether the sensor is shielded or not according to the state information of the sensor; determining the shielded duration of the sensor according to the change condition of the state information of the sensor; when the length of time that the sensor is sheltered from is greater than first preset length of time and is less than second preset length of time, pop out the brightness control suspension window, adjust screen brightness through the brightness control suspension window, avoided because the application that wearable equipment displayed at present is in the full screen state and results in if the user wants to adjust wearable equipment screen brightness, then need withdraw from the recreation earlier, the problem of influence user's use experience, can need not to cut out the current interface and can adjust wearable equipment brightness, do not influence user operation.
Example two
Fig. 2 is a flowchart of a brightness adjustment method for a wearable device in a second embodiment of the present invention, which is optimized based on the first embodiment, and provides a preferred brightness adjustment method for a wearable device, specifically, before determining a duration of time that a sensor is blocked according to a change of state information of the sensor, the method further includes: determining the distance between the sensor and the shelter according to the state information of the sensor; correspondingly, when the length of time that the sensor was sheltered from is greater than first predetermined length of time and is less than second predetermined length of time, pops out the brightness control suspension window, through brightness control suspension window regulation screen brightness includes: when the distance between the sensor and the shielding object is larger than a first preset distance and smaller than a second preset distance, and the shielded duration of the sensor is larger than a first preset duration and smaller than a second preset duration, popping up a brightness adjusting suspension window, and adjusting the screen brightness through the brightness adjusting suspension window.
Correspondingly, the method of the embodiment specifically includes the following steps:
s210, when the application program currently displayed by the wearable device is in a full screen state, state information of a sensor built in the wearable device is acquired.
And S220, determining whether the sensor is shielded or not according to the state information of the sensor.
And S230, determining the distance between the sensor and the shelter according to the state information of the sensor.
Specifically, the distance between the sensor and the shielding object is determined according to data collected by the sensor, for example, if the sensor is a photoelectric sensor, the distance between the sensor and the shielding object is determined according to the intensity of a light signal received by the sensor.
S240, determining the shielded duration of the sensor according to the change condition of the state information of the sensor.
S250, when the distance between the sensor and the shelter is larger than a first preset distance and smaller than a second preset distance, and the sheltered time length of the sensor is larger than a first preset time length and smaller than a second preset time length, popping up a brightness adjusting suspension window, and adjusting the brightness of the screen through the brightness adjusting suspension window.
The first preset distance and the second preset distance can be set by a user or obtained according to experience, and the second preset distance is larger than the first preset distance.
Specifically, when the distance between the sensor and the shelter is larger than a first preset distance and smaller than a second preset distance, and the sheltered time length of the sensor is larger than a first preset time length and smaller than a second preset time length, a brightness adjusting suspension window pops up, and the brightness of the screen is adjusted through the brightness adjusting suspension window.
Optionally, when the distance between the sensor and the shielding object is greater than a first preset distance and less than a second preset distance, and the time length of shielding the sensor is greater than a first preset time length and less than a second preset time length twice, popping up the brightness adjustment suspension window, and adjusting the screen brightness through the brightness adjustment suspension window, for example, when the user quickly shields the sensor built in the wearable device with a hand twice continuously, popping up the brightness adjustment suspension window.
Optionally, when the application currently displayed by the wearable device is in a full screen state, acquiring the state information of the sensor built in the wearable device includes:
when an application program currently displayed by wearable equipment is in a full-screen state, detecting whether the application program type currently displayed by the wearable equipment is a preset application program type;
the preset application program types comprise game applications and video applications.
Specifically, when the application program currently displayed by the wearable device is in a full-screen state, whether the application program type currently displayed by the wearable device is a game application or a video application is detected.
And if the currently displayed application program type of the wearable device is the preset application program type, acquiring the state information of a sensor built in the wearable device.
Specifically, if the type of the application program currently displayed by the wearable device is a game application or a video application, and the application program is in a full-screen state, state information of a sensor built in the wearable device is acquired.
According to the technical scheme of the embodiment, when the application program currently displayed by the wearable device is in a full-screen state, state information of a sensor built in the wearable device is acquired; determining whether the sensor is shielded or not according to the state information of the sensor; determining the shielded duration of the sensor according to the change condition of the state information of the sensor; when the length of time that the sensor is shielded is longer than a first preset length of time and shorter than a second preset length of time, the brightness adjusting suspension window pops up.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a brightness adjustment apparatus for a wearable device according to a third embodiment of the present invention. The present embodiment may be applicable to the case of brightness adjustment for a wearable device, where the apparatus may be implemented in a software and/or hardware manner, and the apparatus may be integrated in any device that provides a brightness adjustment function, as shown in fig. 3, where the brightness adjustment apparatus for a wearable device specifically includes: an acquisition module 310, a first determination module 320, a second determination module 330, and an adjustment module 340.
The acquiring module 310 is configured to acquire state information of a sensor built in the wearable device when an application currently displayed by the wearable device is in a full screen state;
a first determining module 320, configured to determine whether the sensor is occluded according to the state information of the sensor;
the second determining module 330 is configured to determine, according to a change of the state information of the sensor, a duration that the sensor is blocked;
and the adjusting module 340 is configured to pop out a brightness adjusting suspension window when the shielded duration of the sensor is longer than a first preset duration and shorter than a second preset duration, and adjust the screen brightness through the brightness adjusting suspension window.
Optionally, the method further includes:
and the closing module is used for closing the brightness adjustment suspension window when the display duration of the brightness adjustment suspension window is greater than a display duration threshold.
Optionally, the method further includes:
the third determining module is used for determining the distance between the sensor and the shelter according to the state information of the sensor before determining the shielded duration of the sensor according to the change condition of the state information of the sensor;
correspondingly, the adjusting module is specifically configured to:
when the distance between the sensor and the shielding object is larger than a first preset distance and smaller than a second preset distance, and the shielded duration of the sensor is larger than a first preset duration and smaller than a second preset duration, popping up a brightness adjusting suspension window, and adjusting the screen brightness through the brightness adjusting suspension window.
Optionally, the obtaining module is specifically configured to:
when an application program currently displayed by wearable equipment is in a full-screen state, detecting whether the application program type currently displayed by the wearable equipment is a preset application program type;
and if the currently displayed application program type of the wearable device is the preset application program type, acquiring the state information of a sensor built in the wearable device.
Optionally, the sensor comprises a distance sensor and/or a photosensor.
According to the technical scheme of the embodiment, when the application program currently displayed by the wearable device is in a full-screen state, state information of a sensor built in the wearable device is acquired; determining whether the sensor is shielded or not according to the state information of the sensor; determining the shielded duration of the sensor according to the change condition of the state information of the sensor; when the length of time that the sensor was sheltered from is greater than first predetermined length of time and is less than second predetermined length of time, pop out the brightness control suspension window, through brightness control suspension window regulation screen brightness, can need not to cut out current interface and can adjust wearable equipment luminance, do not influence user operation.
The product can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.