CN110570830B - Equipment adjusting method and device, storage medium and electronic equipment - Google Patents
Equipment adjusting method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN110570830B CN110570830B CN201910803392.8A CN201910803392A CN110570830B CN 110570830 B CN110570830 B CN 110570830B CN 201910803392 A CN201910803392 A CN 201910803392A CN 110570830 B CN110570830 B CN 110570830B
- Authority
- CN
- China
- Prior art keywords
- display
- brightness value
- interface
- type
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G5/00—Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
- G09G5/10—Intensity circuits
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a device adjusting method, a device adjusting device, a storage medium and electronic equipment. The equipment adjusting method comprises the following steps: determining the type of a current interface, wherein the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment; acquiring a current environment light brightness value; determining a target brightness value according to the type of the current interface and the current environment brightness value; and displaying the current interface according to the target brightness value. The method and the device can improve the flexibility of adjusting the display brightness of the interface.
Description
Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a device adjusting method, apparatus, storage medium, and electronic device.
Background
A display screen on an electronic device may be used to display information such as text, images, and the like. In the related art, the electronic device may adjust the display brightness of the display screen interface. For example, in some scenarios, the electronic device may display a display screen interface with a higher brightness value. In other scenarios, the electronic device may display the display screen interface with a lower brightness value. However, in the related art, the electronic device has poor flexibility in adjusting the display brightness of the display screen interface.
Disclosure of Invention
The embodiment of the application provides a method, a device, a storage medium and an electronic device, which can improve the flexibility of adjusting the display brightness of an interface.
The embodiment of the application provides an equipment adjusting method, which is applied to electronic equipment and comprises the following steps:
determining the type of a current interface, wherein the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment;
acquiring a current environment light brightness value;
determining a target brightness value according to the type of the current interface and the current environment brightness value;
and displaying the current interface according to the target brightness value.
The embodiment of the application provides an equipment adjusting device, is applied to electronic equipment, includes:
the electronic equipment comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining the type of a current interface, the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment;
the acquisition module is used for acquiring the current ambient light brightness value;
the second determining module is used for determining a target brightness value according to the type of the current interface and the current environment brightness value;
and the display module is used for displaying the current interface according to the target brightness value.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the device adjustment method provided by the embodiment of the present application.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the process in the device adjustment method provided by the embodiment of the present application by calling the computer program stored in the memory.
In the embodiment of the application, in the preset mode, the electronic device may determine the target brightness value according to the type of the current interface and the current ambient light brightness value, and display the display interface according to the target brightness value, so that the flexibility of adjusting the display brightness value of the interface by the electronic device may be improved.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flow chart of an apparatus adjustment method provided in an embodiment of the present application.
Fig. 2 is another schematic flow chart of an apparatus adjustment method provided in an embodiment of the present application.
Fig. 3 to fig. 4 are schematic scene diagrams of an apparatus adjustment method provided in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of an apparatus adjustment device provided in an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a schematic flow chart of an apparatus adjustment method according to an embodiment of the present application, where the flow chart may include:
101. determining the type of a current interface, wherein the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment.
A display screen on an electronic device may be used to display information such as text, images, and the like. In the related art, the electronic device may adjust the display brightness of the display screen interface. For example, in some scenarios, the electronic device may display a display screen interface with a higher brightness value. In other scenarios, the electronic device may display the display screen interface with a lower brightness value. However, in the related art, the electronic device has poor flexibility in adjusting the display brightness of the display screen interface.
In an embodiment of the application, for example, when entering a display interface, the electronic device may determine the type of the current interface. The current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment.
For example, the preset mode may be a mode that allows the electronic device to perform operations such as OTA upgrade, system backup, factory setting restoration, and the like on its operating system.
102. And acquiring the current ambient light brightness value.
For example, after entering the current interface, the electronic device may further obtain an ambient light brightness value of the current environment, that is, a current ambient light brightness value.
103. And determining a target brightness value according to the type of the current interface and the current ambient light brightness value.
104. And displaying the current interface according to the target brightness value.
For example, 103 and 104 may include:
after determining the type of the current interface and the current ambient light brightness value, the electronic device may determine a target brightness value according to the type of the current interface and the current ambient light brightness value, and display the current interface according to the target brightness value.
It can be understood that, in the embodiment of the present application, in the preset mode, the electronic device may determine the target brightness value according to the type of the current interface and the current ambient light brightness value, and display the display interface according to the target brightness value, so that the flexibility of adjusting the display brightness value of the interface by the electronic device may be improved in the embodiment.
Referring to fig. 2, fig. 2 is another schematic flow chart of an apparatus adjustment method according to an embodiment of the present application, where the flow chart may include:
201. the electronic equipment determines the type of a current interface, wherein the current interface is a display interface in a preset mode, the preset mode is a mode allowing modification of data and an operating system of the electronic equipment, the types of the display interface in the preset mode at least include two types, and different types of the display interface are configured with different display brightness values under the same ambient light brightness.
For example, when entering a display interface, the electronic device may determine the type of interface currently in use. The current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment. The types of the display interfaces in the preset mode may include at least two types, wherein different types of display interfaces are configured with different display brightness values under the same ambient light brightness.
Taking the types of the display interfaces in the preset mode as examples, including the two types of the a type and the B type, for example, under the ambient light brightness of 100 Lux (Lux), the display brightness value configured for the display interface of the a type may be L1, and the display brightness value configured for the display interface of the B type may be L2, where the values of L1 and L2 are not equal.
In one embodiment, the type of the display interface in the preset mode may be preset. This is because the display interface in the preset mode is fixed, and thus the user or the manufacturer can previously set the type of each display interface in the preset mode.
For example, the factory reset interface in the preset mode has two display interfaces, where the first display interface is a progress display interface for resetting the factory setting, and the second display interface is a prompt interface for successfully resetting the factory setting. For example, the manufacturer may preset a first display interface of the factory reset interface to be a B-type interface, and a second display interface of the factory reset interface to be an a-type interface, and so on.
202. The electronic equipment acquires the current ambient light brightness value.
For example, after determining the type of the current interface, the electronic device may obtain an ambient light brightness value of the current environment.
203. The electronic equipment acquires a mapping table corresponding to the type of the current interface, each type of display interface is provided with a preset mapping table, and the preset mapping table stores corresponding display brightness values of the corresponding type of display interface under different ambient light brightness.
204. According to the corresponding mapping table, the electronic device acquires a display brightness value corresponding to the current ambient light brightness value, and determines the corresponding display brightness value as a target brightness value.
205. And the electronic equipment displays the current interface according to the target brightness value.
For example, 203, 204, and 205 may include:
after determining the type of the current interface and the current ambient light brightness value, the electronic device may obtain a mapping table corresponding to the type of the current interface. Each type of display interface may have a preset mapping table, and the preset mapping table stores corresponding display brightness values of the corresponding type of display interface under different ambient light intensities.
For example, the mapping table corresponding to the display interface of type a is a, and the mapping table a stores the display brightness values of the display interface of type a corresponding to different ambient light intensities. For example, the display luminance value corresponding to an ambient light brightness of 80 lux is x1, the display luminance value corresponding to an ambient light brightness of 100 lux is x2, the display luminance value corresponding to an ambient light brightness of 200 lux is x3, the display luminance value corresponding to an ambient light brightness of 300 lux is x4, the display luminance value corresponding to an ambient light brightness of 500 lux is x5, and so on.
The mapping table corresponding to the display interface of type B is B, and the mapping table B stores the display brightness values corresponding to the display interface of type B under different ambient light intensities. For example, the display luminance value corresponding to an ambient light brightness of 80 lux is y1, the display luminance value corresponding to an ambient light brightness of 100 lux is y2, the display luminance value corresponding to an ambient light brightness of 200 lux is y3, the display luminance value corresponding to an ambient light brightness of 300 lux is y4, the display luminance value corresponding to an ambient light brightness of 500 lux is y5, and so on.
After the mapping table corresponding to the type of the current interface is obtained, the electronic device may obtain a display brightness value corresponding to the current ambient light brightness value, and determine the corresponding display brightness value as a target brightness value. And then, the electronic equipment can display the current interface according to the target brightness value.
For example, if the type of the current interface is a and the current ambient light brightness value is 500 lux, according to mapping table a, the electronic device may obtain a display brightness value x5 corresponding to the ambient light brightness value of 500 lux, and determine x5 as the target brightness value. Thereafter, the electronic device may display the current interface at the target brightness value x 5.
206. The electronic equipment detects whether a trigger operation is received within a preset time.
For example, after the current interface is displayed according to the target brightness value, the electronic device may detect whether a trigger operation of the user is received within a preset time period. The trigger operation may be, for example, a touch operation of a user on a touch screen or a pressing operation of a physical key on the electronic device by the user.
If the triggering operation of the user is received within the preset time, the electronic equipment can still display the current interface according to the target brightness value.
If the triggering operation of the user is not received within the preset time period, the process may be entered into 207.
207. If the trigger operation is not received within the preset time length, the electronic equipment linearly reduces the display brightness of the current interface to a preset brightness value.
For example, within a preset time period after the current interface is displayed according to the target brightness value, the electronic device does not receive a trigger operation for the electronic device from the user, and it may be considered that the user does not need to use the electronic device for a while. In this case, the electronic device may linearly decrease the display brightness of the current interface to a preset brightness value. That is, the electronic device may linearly decrease the display brightness of the current interface from the target brightness value to the preset brightness value. For example, the electronic device may linearly decrease the display brightness of the current interface from the target brightness value x5 to the preset brightness value x 6.
208. After the display brightness of the current interface is linearly reduced to a preset brightness value, if a trigger operation is received, the electronic equipment linearly increases the display brightness of the current interface from the preset brightness value to a target brightness value.
For example, after the display brightness of the current interface is linearly decreased from the target brightness value to the preset brightness value, the electronic device may further detect whether a trigger operation is received from the user.
If the triggering operation is not received from the user, the electronic device may continue to display the current interface with the preset brightness value. For example, the electronic device may continue to display the current interface at the preset luminance value x 6.
If the triggering operation is received from the user, the electronic device may linearly restore the display brightness of the current interface from the preset brightness value to the target brightness value. For example, the electronic device may linearly restore the display brightness of the current interface from the preset brightness value x6 to the previous target brightness value x 5.
In one embodiment, the step 207 of linearly decreasing the display brightness of the current interface to the preset brightness value by the electronic device may include: according to a preset first speed, the electronic equipment linearly reduces the display brightness of the current interface to a preset brightness value.
If the trigger operation is received in the process 208, the linearly increasing, by the electronic device, the display brightness of the current interface from the preset brightness value to the target brightness value may include: and if the trigger operation is received, the electronic equipment linearly increases the display brightness of the current interface from the preset brightness value to the target brightness value according to a preset second speed, wherein the preset second speed is greater than the preset first speed.
For example, when the display brightness of the current interface needs to be linearly reduced from the target brightness value to the preset brightness value, the electronic device may linearly reduce the display brightness at the preset first speed. When the display brightness of the current interface needs to be linearly increased from the preset brightness value to the target brightness value, the electronic device may linearly increase the display brightness according to the preset second speed. Wherein the preset second speed is greater than the preset first speed.
That is, when the display brightness of the current interface needs to be linearly reduced from the target brightness value to the preset brightness value, the electronic device may linearly reduce the display brightness relatively slowly. When the display brightness of the current interface needs to be linearly increased from the preset brightness value to the target brightness value, the electronic device can linearly increase the display brightness relatively quickly.
In addition to presetting the type of each display interface in the preset mode, in another embodiment, the type of the display interface in the preset mode may include a first type and a second type, wherein the display interface of the first type is configured to have a display brightness value greater than that of the display interface of the second type under the same ambient light level.
Then, the electronic device may determine the type of the current interface by:
the electronic equipment detects whether a current interface contains a human-computer interaction functional component;
if the current interface comprises a human-computer interaction functional component, the electronic equipment determines the type of the current interface as a first type;
and if the current interface does not contain the human-computer interaction functional component, the electronic equipment determines the type of the current interface as a second type.
For example, the types of the display interface in the preset mode may include a first type and a second type, wherein the display interface of the first type is configured to have a display brightness value larger than that of the display interface of the second type under the same ambient light level. That is, relatively speaking, a first type of display interface may be referred to as a highlight type of display interface, while a second type of display interface may be referred to as a low-highlight type of display interface.
Then, when entering a display interface, the electronic device may detect whether a functional component of human-computer interaction (e.g., UI interaction) is included in the current interface. It should be noted that the human-computer interaction function component may be a component such as a virtual button (button) that requires a user to click confirmation. When the interface includes functional components for human-computer interaction, it may be considered that the interface requires a user to operate, and therefore the interface needs to be displayed with high brightness. When the interface does not include a functional component for human-computer interaction, the interface is not considered to be operated by the user, and therefore the interface can be displayed with lower brightness.
If the current interface contains a functional component for human-computer interaction, the electronic device may determine the type of the current interface as a first type (highlight type).
If the current interface does not contain the functional components for human-computer interaction, the electronic device may determine the type of the current interface as a second type (low-brightness type).
In an embodiment, when the operating system of the electronic device is an Android (Android) system, the preset mode in this embodiment may be a Recovery mode or the like. If the operating system of the electronic device is another system, the preset mode may be a mode similar to the Recovery mode in the operating system, and the electronic device may perform operations such as system upgrade, system backup, factory setting restoration, and the like in the preset mode.
In an embodiment, after the current interface is displayed according to the target brightness value, if the trigger operation is not received within the preset time period, in addition to linearly decreasing the display brightness of the current interface to the preset brightness value, the display brightness of the current interface may also be linearly decreased according to a preset amplitude in the embodiment. For example, if the target brightness value corresponding to the current interface is 800, after the current interface is displayed according to the display brightness value of 800, if the trigger operation of the user is not received within the preset time period, the electronic device may linearly decrease the display brightness value of the current interface by 25% of the preset value, that is, linearly decrease the display brightness value of the current interface from 800 to 600. Then, if a trigger operation is received from the user, the electronic device may linearly increase the display brightness of the current interface from 600 to 800. Likewise, when the display brightness value of the current interface is linearly decreased from 800 to 600, the display brightness value may be linearly decreased at a preset first speed. The display brightness of the current interface is linearly increased from 600 to 800, or the display brightness is linearly increased according to a preset second speed, wherein the preset second speed is greater than the preset first speed.
Referring to fig. 3 to 4, fig. 3 to 4 are schematic views of a scene of an apparatus adjustment method according to an embodiment of the present disclosure.
For example, the operating system used by the electronic device is an android system, and the preset mode is a Recovery mode in the android system. In the Recovery mode, the electronic device may perform operations such as system upgrade, system backup, factory setting restoration, and the like.
For example, the manufacturer of the electronic device may previously divide the types of the display interfaces in the Recovery mode. For example, a manufacturer of the electronic device may classify an interface requiring human-computer interaction in the Recovery mode into a first type, and classify an interface not requiring human-computer interaction in the Recovery mode into a second type.
And, the electronic device may set a mapping table for each of the first type and the second type of interfaces. The mapping table corresponding to each type records the corresponding display brightness value of the display interface of the type under different ambient light brightness. And under the same ambient light brightness, the display brightness value corresponding to the display interface of the first type is greater than that of the display interface of the second type. For example, also at an ambient light level of 500 lux, the display brightness value corresponding to the display interface of the first type is configured to be 1200, and the display brightness value corresponding to the display interface of the second type is configured to be 800. Alternatively, also at an ambient light level of 600 lux, the display brightness value corresponding to the display interface of the first type is configured to be 1300, while the display brightness value corresponding to the display interface of the second type is configured to be 850, and so on. In this embodiment, for example, the first type of display interface corresponds to a first mapping table, and the second type of display interface corresponds to a second mapping table.
For example, upon entering a display interface in Recovery mode, the electronic device may determine the type of the current interface. For example, as shown in FIG. 3, upon entering interface P1, the electronic device may determine the type of current interface P1. For example, the interface P1 is an interface for displaying the progress of factory restoration, and the interface P1 is preset as a display interface of the second type (low-bright type).
After determining the type of the interface P1, the electronic device may obtain the current ambient light brightness value. For example, the current ambient light brightness value is 500 lux.
Thereafter, the electronic device may obtain the second mapping table, and query the second mapping table for a display brightness value corresponding to 500 lux, for example, the corresponding display brightness value is 800. Then, the electronic device may determine 800 as the target brightness value and display the interface P1 according to the display brightness value of 800.
After displaying the interface P1 according to the display brightness value of 800, the electronic device may detect whether a trigger operation for the electronic device is received from the user within a preset time period. For example, the preset time period is 30 seconds. Of course, the preset time period may be other values, such as 50 seconds or 60 seconds, etc.
For example, the electronic apparatus detects that the electronic apparatus does not receive any trigger operation from the user within 30 seconds after the interface P1 is displayed at the display luminance value of 800. In this case, it can be considered that the user does not need to use the electronic apparatus for a while. Then, the electronic device may linearly decrease the display luminance value of the interface P1 from 800 to 500 at the preset first speed. Thereafter, the electronic device may display the interface P1 at a display luminance value of 500.
After displaying the interface P1 according to the display brightness value of 500, the electronic device may detect whether a trigger operation is received from the user. If a trigger operation has not been received from the user, the electronic device may continue to display interface P1 with a display brightness value of 500. If a trigger operation is received from the user, the electronic device may linearly restore the display brightness value of the interface P1 from 500 to the previous target brightness value 800 at the preset second speed.
It can be understood that the display time of some interfaces in the Recovery mode is longer, and the user does not need to operate the interfaces during the display of the interfaces, so that the display brightness values of the interfaces can be reduced (i.e., the target brightness value corresponding to the interface is linearly reduced to the preset brightness value in the embodiment), thereby avoiding unnecessary brightness display and achieving the effect of saving power.
For example, the interface P1 is an interface for displaying the progress of restoring factory settings. Then, after determining that the target brightness value of the interface P1 is 800, the electronic device detects that the user does not trigger the electronic device within 30 seconds, and the electronic device may linearly decrease the display brightness value of the interface P1 from 800 to 500. For example, the user has not triggered the electronic device thereafter, and the electronic device may always display interface P1 at a display brightness value of 500 until the next interface is entered. Compared with the method that the interface P1 is displayed according to the display brightness value of 800 all the time, the effect of saving the electric quantity can be achieved.
For example, after factory reset is completed, the electronic device enters an interface P2 from an interface P1, as shown in fig. 4. At this time, the electronic device may determine the type of interface P2. For example, since the interface P2 includes functional components for human-computer interaction, such as the "ok" button in fig. 4, which needs to be clicked by the user. Therefore, the electronic apparatus previously sets the type of the interface P2 to the first type (highlight type).
After determining the type of the interface P2, the electronic device may obtain the current ambient light brightness value. For example, the current ambient light brightness value is still 500 lux.
Thereafter, the electronic device may obtain the first mapping table, and query the first mapping table for a display brightness value corresponding to 500 lux, for example, the corresponding display brightness value is 1200. Then, the electronic device may determine 1200 as the target brightness value and display the interface P2 according to the display brightness value of 1200.
After displaying the interface P2 according to the display brightness value of 1200, the electronic device may detect whether a trigger operation for the electronic device is received from the user within a preset time period. For example, the preset time period is 30 seconds.
For example, the electronic apparatus detects that the electronic apparatus has not received any trigger operation from the user within 30 seconds after the interface P2 is displayed at the display luminance value of 1200. In this case, it can be considered that the user does not need to use the electronic apparatus for a while. Then, the electronic device may linearly decrease the display brightness value of the interface P2 from 1200 to 500 at the preset first speed. Thereafter, the electronic device may display the interface P2 at a display luminance value of 500.
After displaying the interface P2 according to the display brightness value of 500, the electronic device may detect whether a trigger operation is received from the user. If a trigger operation has not been received from the user, the electronic device may continue to display interface P2 with a display brightness value of 500. If a trigger operation is received from the user, the electronic device may linearly restore the display brightness value of the interface P2 from 500 to the previous target brightness value 1200 at the preset second speed.
For example, after a short period of time (e.g., 40 th second) has elapsed, the electronic device detects that the user touched the display screen, and the electronic device can quickly restore the display brightness value of the interface P2 to 1200 at the preset second speed.
It can be understood that, in the present embodiment, the display brightness value of the interface P2 is restored to 1200 quickly, so that the display effect of the interface can be improved, and the user experience can be improved.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an apparatus adjustment device according to an embodiment of the present disclosure. The device adjusting apparatus 300 may include: a first determining module 301, an obtaining module 302, a second determining module 303, and a displaying module 304.
A first determining module 301, configured to determine a type of a current interface, where the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic device.
An obtaining module 302, configured to obtain a current ambient light brightness value.
A second determining module 303, configured to determine a target brightness value according to the type of the current interface and the current ambient light brightness value.
And a display module 304, configured to display the current interface according to the target brightness value.
In one embodiment, the display module 304 may be further configured to:
after the current interface is displayed according to the target brightness value, detecting whether a trigger operation is received within a preset time length;
and if the trigger operation is not received within the preset time length, linearly reducing the display brightness of the current interface to a preset brightness value, or linearly reducing the display brightness of the current interface according to a preset amplitude.
In one embodiment, the display module 304 may be further configured to:
after the display brightness of the current interface is linearly reduced, if a trigger operation is received, the display brightness of the current interface is linearly increased to the target brightness value.
In one embodiment, the display module 304 may be further configured to:
linearly reducing the display brightness of the current interface to a preset brightness value or linearly reducing the display brightness of the current interface according to a preset amplitude according to a preset first speed;
and if the trigger operation is received, linearly increasing the display brightness of the current interface to the target brightness value according to a preset second speed, wherein the preset second speed is greater than the preset first speed.
In one embodiment, the types of the display interfaces in the preset mode include at least two types, wherein different types of display interfaces are configured with different display brightness values under the same ambient light brightness;
each type of display interface is provided with a preset mapping table, and the preset mapping table stores corresponding display brightness values of the corresponding type of display interface under different ambient light brightness;
then, the second determining module 303 may be configured to:
acquiring a mapping table corresponding to the type of the current interface;
and acquiring a display brightness value corresponding to the current environment brightness value according to the corresponding mapping table, and determining the corresponding display brightness value as a target brightness value.
In one embodiment, the types of the display interfaces in the preset mode include a first type and a second type, wherein the display interface of the first type is configured to have a display brightness value larger than that of the display interface of the second type under the same ambient light brightness;
then, the first determining module 301 may be configured to:
detecting whether the current interface contains a human-computer interaction functional component or not;
if the current interface comprises a human-computer interaction functional component, determining the type of the current interface as the first type;
and if the current interface does not contain the functional components for human-computer interaction, determining the type of the current interface as the second type.
In one embodiment, the preset mode is Recovery mode.
The embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the flow in the device adjustment method provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory and a processor, where the processor is configured to execute the flow in the device adjusting method provided in this embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include a display touch screen 401, memory 402, a processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The display touch screen 401 may be used to display information such as text, images, and the like, and may receive a touch operation by a user.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
determining the type of a current interface, wherein the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment;
acquiring a current environment light brightness value;
determining a target brightness value according to the type of the current interface and the current environment brightness value;
and displaying the current interface according to the target brightness value.
Referring to fig. 7, the electronic device 400 may include a display touch screen 401, a memory 402, a processor 403, a speaker 404, a microphone 405, and the like.
The display touch screen 401 may be used to display information such as text, images, and the like, and may receive a touch operation by a user.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The input unit 404 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The output unit 405 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
determining the type of a current interface, wherein the current interface is a display interface in a preset mode, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment;
acquiring a current environment light brightness value;
determining a target brightness value according to the type of the current interface and the current environment brightness value;
and displaying the current interface according to the target brightness value.
In one embodiment, the processor 403 may further perform: after the current interface is displayed according to the target brightness value, detecting whether a trigger operation is received within a preset time length; and if the trigger operation is not received within the preset time length, linearly reducing the display brightness of the current interface to a preset brightness value, or linearly reducing the display brightness of the current interface according to a preset amplitude.
In one embodiment, the processor 403 may further perform: after the display brightness of the current interface is linearly reduced to a preset brightness value, if a trigger operation is received, the display brightness of the current interface is linearly increased to the target brightness value.
In one embodiment, when the processor 403 executes the linear reduction of the display brightness of the current interface to a preset brightness value, the following steps may be executed: and linearly reducing the display brightness of the current interface to a preset brightness value or linearly reducing the display brightness of the current interface according to a preset amplitude according to a preset first speed.
Then, when the processor 403 executes that if the trigger operation is received, the display brightness of the current interface is linearly increased from the preset brightness value to the target brightness value, the following steps may be executed: and if the trigger operation is received, linearly increasing the display brightness of the current interface to the target brightness value according to a preset second speed, wherein the preset second speed is greater than the preset first speed.
In one embodiment, the types of the display interfaces in the preset mode include at least two types, wherein different types of display interfaces are configured with different display brightness values under the same ambient light brightness; each type of display interface is provided with a preset mapping table, and the preset mapping table stores corresponding display brightness values of the corresponding type of display interface under different ambient light brightness.
Then, when the processor 403 executes the determination of the target brightness value according to the type of the current interface and the current ambient light brightness value, it may execute: acquiring a mapping table corresponding to the type of the current interface; and acquiring a display brightness value corresponding to the current environment brightness value according to the corresponding mapping table, and determining the corresponding display brightness value as a target brightness value.
In one embodiment, the types of the display interfaces in the preset mode include a first type and a second type, wherein the display interface of the first type is configured to have a display brightness value larger than that of the display interface of the second type under the same ambient light brightness.
Then, when the processor 403 executes the determining of the type of the current interface, it may execute: detecting whether the current interface contains a human-computer interaction functional component or not; if the current interface comprises a human-computer interaction functional component, determining the type of the current interface as the first type; and if the current interface does not contain the functional components for human-computer interaction, determining the type of the current interface as the second type.
In one embodiment, the preset mode is Recovery mode.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the device adjustment method, and are not described herein again.
The device adjusting apparatus provided in the embodiment of the present application and the device adjusting method in the above embodiment belong to the same concept, and any method provided in the device adjusting method embodiment may be run on the device adjusting apparatus, and a specific implementation process thereof is described in the device adjusting method embodiment in detail, and is not described herein again.
It should be noted that, for the device adjustment method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process of implementing the device adjustment method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution, the process of the embodiment of the device adjustment method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
For the device adjustment apparatus in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a device adjustment method, apparatus, storage medium, and electronic device provided in the embodiments of the present application, and specific examples are applied herein to illustrate the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (7)
1. An apparatus adjusting method applied to an electronic apparatus, comprising:
detecting whether a current interface contains a human-computer interaction functional component, if so, determining the type of the current interface as a first type, otherwise, determining the type of the current interface as a second type, wherein the current interface is a display interface in a preset mode, the types of the display interface in the preset mode comprise the first type and the second type, and the preset mode is a mode allowing modification of data and an operating system of the electronic equipment;
acquiring a current environment light brightness value;
determining a target brightness value according to the type of the current interface and the current environment light brightness value, wherein the target brightness value configured on the display interface of the first type is greater than the display interface of the second type under the same environment light brightness;
displaying the current interface according to the target brightness value;
after the current interface is displayed according to the target brightness value, detecting whether a trigger operation is received within a preset time length;
if the trigger operation is not received within the preset time length, linearly reducing the display brightness of the current interface to a preset brightness value, or linearly reducing the display brightness of the current interface according to a preset amplitude;
after the display brightness of the current interface is linearly reduced, if a trigger operation is received, the display brightness of the current interface is linearly increased to the target brightness value.
2. The device adjusting method according to claim 1, wherein the linearly decreasing the display brightness of the current interface to a preset brightness value or linearly decreasing the display brightness of the current interface by a preset amplitude comprises: linearly reducing the display brightness of the current interface to a preset brightness value or linearly reducing the display brightness of the current interface according to a preset amplitude according to a preset first speed;
if the trigger operation is received, linearly increasing the display brightness of the current interface to the target brightness value, including: and if the trigger operation is received, linearly increasing the display brightness of the current interface to the target brightness value according to a preset second speed, wherein the preset second speed is greater than the preset first speed.
3. The device adjustment method according to claim 1, wherein the types of the display interfaces in the preset mode include at least two types, wherein different types of display interfaces are configured with different display brightness values under the same ambient light brightness;
each type of display interface is provided with a preset mapping table, and the preset mapping table stores corresponding display brightness values of the corresponding type of display interface under different ambient light brightness;
determining a target brightness value according to the type of the current interface and the current ambient light brightness value, including:
acquiring a mapping table corresponding to the type of the current interface;
and acquiring a display brightness value corresponding to the current environment brightness value according to the corresponding mapping table, and determining the corresponding display brightness value as a target brightness value.
4. The device adjustment method according to claim 1, wherein the preset mode is a Recovery mode.
5. An apparatus adjusting device applied to an electronic apparatus, comprising:
the electronic device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for detecting whether a current interface contains a human-computer interaction functional component, if so, the type of the current interface is determined to be a first type, otherwise, the current interface is determined to be a second type, the current interface is a display interface in a preset mode, the type of the display interface in the preset mode comprises the first type and the second type, and the preset mode is a mode allowing modification of data and an operating system of the electronic device;
the acquisition module is used for acquiring the current ambient light brightness value;
a second determining module, configured to determine a target brightness value according to the type of the current interface and the current ambient light brightness value, where the target brightness value configured for the display interface of the first type is greater than the display interface of the second type under the same ambient light brightness;
the display module is used for displaying the current interface according to the target brightness value;
the display module is further configured to detect whether a trigger operation is received within a preset time period after the current interface is displayed according to the target brightness value; if the trigger operation is not received within the preset time length, linearly reducing the display brightness of the current interface to a preset brightness value, or linearly reducing the display brightness of the current interface according to a preset amplitude; after the display brightness of the current interface is linearly reduced, if a trigger operation is received, the display brightness of the current interface is linearly increased to the target brightness value.
6. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any of claims 1 to 4.
7. An electronic device comprising a memory, a processor, wherein the processor is configured to perform the method of any of claims 1 to 4 by invoking a computer program stored in the memory.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910803392.8A CN110570830B (en) | 2019-08-28 | 2019-08-28 | Equipment adjusting method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910803392.8A CN110570830B (en) | 2019-08-28 | 2019-08-28 | Equipment adjusting method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110570830A CN110570830A (en) | 2019-12-13 |
CN110570830B true CN110570830B (en) | 2021-06-01 |
Family
ID=68776619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910803392.8A Active CN110570830B (en) | 2019-08-28 | 2019-08-28 | Equipment adjusting method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110570830B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111128091B (en) * | 2020-02-11 | 2021-09-28 | 北京小米移动软件有限公司 | Screen brightness adjusting method, screen brightness adjusting device and computer storage medium |
CN113539207B (en) * | 2020-04-15 | 2022-11-25 | 华为技术有限公司 | Display screen adjusting method, device and equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10015863B2 (en) * | 2014-05-28 | 2018-07-03 | Hewlett-Packard Development Company, L.P. | Changing screen brightness of a computing device |
CN105072290B (en) * | 2015-07-23 | 2017-11-10 | 广东欧珀移动通信有限公司 | The screen brightness regulation method and device of a kind of terminal |
CN105912672B (en) * | 2016-04-11 | 2019-08-02 | Oppo广东移动通信有限公司 | A kind of document reading method and terminal |
CN107277903A (en) * | 2017-06-30 | 2017-10-20 | 维沃移动通信有限公司 | Brightness adjusting method and mobile terminal |
CN107507602A (en) * | 2017-09-22 | 2017-12-22 | 深圳天珑无线科技有限公司 | Screen intensity Automatic adjustment method, terminal and storage medium |
-
2019
- 2019-08-28 CN CN201910803392.8A patent/CN110570830B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110570830A (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12112721B2 (en) | Apparatus and method for driving display based on frequency operation cycle set differently according to frequency | |
US10863213B2 (en) | Method and device for controlling frame rate of electronic device, storage medium, and electronic device | |
CN109062479B (en) | Split screen application switching method and device, storage medium and electronic equipment | |
CN104375758B (en) | Method and apparatus for icon-based application control | |
CN108984089B (en) | Touch operation method and device, storage medium and electronic equipment | |
JP2016500175A (en) | Method and apparatus for realizing floating object | |
WO2019020107A1 (en) | Method for recognizing a screen-off gesture, and storage medium and terminal thereof | |
CN109272917B (en) | Screen brightness adjusting method and device, storage medium and electronic equipment | |
CN109032732B (en) | Notification display method and device, storage medium and electronic equipment | |
CN112286612B (en) | Information display method and device and electronic equipment | |
CN110570830B (en) | Equipment adjusting method and device, storage medium and electronic equipment | |
CN112817555B (en) | Volume control method and volume control device | |
CN111813305A (en) | Application program starting method and device | |
CN113992615B (en) | Method and device for displaying withdrawal message, electronic equipment and storage medium | |
CN104699535B (en) | A kind of information processing method and electronic equipment | |
US10203772B2 (en) | Hotkey triggering system and method for an electronic device | |
CN111522599B (en) | Method and device for transmitting information | |
CN112416172A (en) | Electronic equipment control method and device and electronic equipment | |
CN112764862A (en) | Application program control method and device and electronic equipment | |
CN111213354A (en) | Screen brightness adjusting method and terminal | |
CN108984024B (en) | Touch operation method and device, storage medium and electronic equipment | |
CN108415746B (en) | Application interface display method and device, storage medium and electronic equipment | |
CN110677643A (en) | Touch screen television, touch screen television testing method, device and medium | |
CN113655894B (en) | Text input method and device, electronic equipment and storage medium | |
CN114222355B (en) | Terminal power-saving display method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |