CN117836847A - Screen brightness adjusting method, device, equipment and storage medium - Google Patents

Screen brightness adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN117836847A
CN117836847A CN202280004438.XA CN202280004438A CN117836847A CN 117836847 A CN117836847 A CN 117836847A CN 202280004438 A CN202280004438 A CN 202280004438A CN 117836847 A CN117836847 A CN 117836847A
Authority
CN
China
Prior art keywords
brightness
window
target
area
adjusted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202280004438.XA
Other languages
Chinese (zh)
Inventor
唐成
单志亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Publication of CN117836847A publication Critical patent/CN117836847A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/10Intensity 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)
  • Digital Computer Display Output (AREA)

Abstract

A method, device, equipment and storage medium for adjusting screen brightness. The method for adjusting the screen brightness is applied to the terminal and comprises the following steps: in the multi-window mode, receiving a brightness adjustment instruction (S101); determining a target window corresponding to the brightness adjustment instruction (S102); the luminance parameter of the target window is adjusted to adjust the luminance within the target window to the target luminance (S103).

Description

Screen brightness adjusting method, device, equipment and storage medium Technical Field
The disclosure relates to the technical field of screen display, and in particular relates to a method, a device, equipment and a storage medium for adjusting screen brightness.
Background
With the continuous development of mobile terminal technology, the application of the picture-in-picture and small window technology is more and more frequent, for example, the picture-in-picture and small window technology is used on terminal equipment with larger screens such as folding screen terminals and flat plates, so that the operation efficiency can be greatly improved. When video software plays videos, the effect of conveniently and quickly adjusting the brightness of the screen can be achieved by sliding the screen up and down in a video playing area.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, apparatus, device, and storage medium for adjusting screen brightness.
According to a first aspect of an embodiment of the present disclosure, there is provided a method for adjusting screen brightness, applied to a terminal, including:
in a multi-window mode, receiving a brightness adjustment instruction;
determining a target window corresponding to the brightness adjustment instruction;
and adjusting the brightness parameter of the target window to adjust the brightness in the target window to the target brightness.
In an exemplary embodiment, the method further comprises:
and taking all areas except the small window areas in the display screen as areas to be adjusted.
In an exemplary embodiment, the adjusting method further includes:
determining whether the target window is a window corresponding to a display screen of the terminal;
and if the window is the window corresponding to the display screen of the terminal, determining an area to be adjusted in the target window, wherein the area to be adjusted is required to be adjusted.
In an exemplary embodiment, the adjusting method further includes:
and determining parameter information of the area to be regulated in the target window, so as to determine the area to be regulated in the target window according to the parameter information.
In an exemplary embodiment, the parameter information includes a start position, a length, and a width of the area to be adjusted.
In an exemplary embodiment, the adjusting method further includes:
when the terminal is in a multi-window mode, activating an area brightness adjusting function;
or alternatively
When the terminal is in the multi-window mode, determining whether a currently operated window is a small window;
and if the window operated currently is a small window, activating the area brightness adjusting function.
In an exemplary embodiment, the adjusting method further includes:
and setting the brightness parameter of the target window to be in a state to be adjusted so that the brightness parameter is in an adjustable state.
In an exemplary embodiment, setting the brightness parameter of the target window to a state to be adjusted includes:
setting a value of a preset parameter as a brightness value of the target window to adjust the brightness of the target window by adjusting the value of the preset parameter.
In an exemplary embodiment, the adjusting the brightness parameter of the target window to adjust the brightness in the target window to the target brightness includes:
and setting the value of the preset parameter as a target brightness value of the target window so as to adjust the brightness in the area to be adjusted to the target brightness.
According to a second aspect of embodiments of the present disclosure, there is provided an adjusting apparatus for screen brightness, applied to a terminal, the adjusting apparatus including:
a receiving module configured to receive a brightness adjustment instruction in a multi-window mode;
the determining module is configured to determine a target window corresponding to the brightness adjustment instruction;
and the adjusting module is configured to adjust the brightness parameter of the target window so as to adjust the brightness in the target window to the target brightness.
According to a third aspect of embodiments of the present disclosure, there is provided a terminal device, the terminal device operating system, the operating system comprising:
the frame layer is configured to receive a brightness adjustment instruction in a multi-window mode and determine a target window corresponding to the brightness adjustment instruction;
and the hardware abstraction layer is configured to adjust the brightness parameter of the target window so as to adjust the brightness in the target window to the target brightness.
In an exemplary embodiment, the frame layer is configured to:
and taking the area except all small window areas in the display screen as the area to be adjusted.
In an exemplary embodiment, the frame layer is configured to:
determining whether the target window is a window corresponding to a display screen of the terminal;
and if the window is the window corresponding to the display screen of the terminal, determining an area to be adjusted in the target window, wherein the area to be adjusted is required to be adjusted.
In an exemplary embodiment, the frame layer further includes a display area determination module,
the display area determining module is configured to determine parameter information of an area to be adjusted in the target window, so as to determine the area to be adjusted in the target window according to the parameter information.
In an exemplary embodiment, the operating system further includes a kernel layer configured to set a brightness parameter of the target window to a state to be adjusted.
In an exemplary embodiment, the kernel layer includes a display driver module,
the display driving module is configured to send the parameter information to the display driving module of the kernel layer via the display area determining module; and the display driving module calls a region brightness setting interface to set the region to be regulated according to the parameter information.
In an exemplary embodiment, the display driving module is configured to:
and calling a region brightness setting interface to set the starting position, length and width of the region to be regulated according to the parameter information.
In an exemplary embodiment, the framework layer includes a policy module,
the strategy module is configured to determine whether a currently operated window is a small window or not when the terminal is in a multi-window mode; if yes, the switching interface is called to activate the area brightness adjusting function.
In an exemplary embodiment, the frame layer further includes a display module;
the display module is configured to set a value of a preset parameter of the display module to a brightness value of the target window via the policy module to adjust the brightness of the target window by adjusting the value of the preset parameter.
In an exemplary embodiment, the hardware abstraction layer is configured to:
and calling a brightness value setting interface of the hardware abstraction layer through the display area determining module, and setting the value of the preset parameter of the display module as the target brightness value of the target window so as to adjust the brightness in the area to be adjusted to the target brightness.
According to a fourth aspect of embodiments of the present disclosure, there is provided a terminal device comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to perform the screen brightness adjustment method according to the first aspect of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, which when executed by a processor of a terminal device, enables the terminal device to perform the method for adjusting screen brightness according to the first aspect of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: the brightness parameters of the target window are adjusted according to the brightness adjustment instruction by determining the target window corresponding to the brightness adjustment instruction, so that the brightness in the target window is adjusted to the target brightness, the area adjustment of the screen brightness in the multi-window mode is realized, and the technical effect of adjusting the screen brightness of any window area is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flowchart illustrating a method of adjusting screen brightness according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method of adjusting screen brightness according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a method of adjusting screen brightness according to an exemplary embodiment.
Fig. 4 is a block diagram illustrating a screen brightness adjustment device according to an exemplary embodiment.
Fig. 5 is a schematic diagram illustrating the structure of an operating system of a terminal according to an exemplary embodiment.
Fig. 6 is a block diagram illustrating an adjusting apparatus for screen brightness according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
In the related art, by sliding the screen up and down in the video playing area to adjust the brightness, when a specific scene, such as a small window interface and a full screen interface, plays a video at the same time, after the brightness of the small window interface is adjusted, the screen brightness of the full screen interface cannot be adjusted, so that the screen brightness requirement of a user on the full screen interface cannot be met. For example, the video software a adopts a full screen interface to play video, the video software B adopts a picture-in-picture interface or a small window interface to play video, wherein the picture-in-picture interface or the small window interface is on the top layer, and if the screen brightness is adjusted by sliding the screen in the video playing interface of the video software B on the top layer, then the screen brightness cannot be successfully adjusted when the screen brightness is adjusted by sliding the screen in the video playing interface of the video software a on the bottom layer. Therefore, in the multi-window mode, the brightness of a certain area of the screen cannot be finely controlled, the user cannot adjust the screen brightness of the bottom window according to own wish, and the user experience is poor.
In an exemplary embodiment of the disclosure, a method for adjusting screen brightness is provided, and the method is applied to a terminal, where the terminal includes an electronic device supporting a picture-in-picture or a small window function, such as a smart phone and a tablet. Fig. 1 is a flowchart illustrating a method of adjusting screen brightness according to an exemplary embodiment, as shown in fig. 1, the method including the steps of:
step S101, in a multi-window mode, receiving a brightness adjustment instruction;
step S102, determining a target window corresponding to a brightness adjustment instruction;
step S103, adjusting the brightness parameter of the target window to adjust the brightness in the target window to the target brightness.
In an exemplary embodiment of the present disclosure, in order to overcome the problem that the screen brightness of any window cannot be adjusted in the multi-window mode in the related art, a method for adjusting screen brightness is provided. When a brightness adjustment instruction is received in the multi-window mode, a target window corresponding to the brightness adjustment instruction is determined, brightness parameters of the target window are adjusted according to the brightness adjustment instruction, and brightness in the target window is adjusted to target brightness. The method can realize the adjustment of the brightness of the target window in the screen, so that the screen brightness of any window area can be adjusted in a multi-window mode.
In step S101, determining whether the terminal is in the multi-window mode according to the parameters related to the multi-window mode, and when the terminal is in the multi-window mode, receiving a brightness adjustment instruction, where the brightness adjustment instruction may be an instruction supported by any terminal to adjust the brightness of the screen, and may be a default adjustment instruction of an operating system of the terminal, for example, an adjustment instruction for adaptively adjusting the brightness of the screen according to the brightness of surrounding environment by the operating system of the terminal; the adjustment instruction of the user-defined operation may also be an adjustment instruction of the user, for example, the user may adjust the brightness by sliding a brightness adjustment button on a window or the user may adjust the brightness of the screen by a preset touch screen operation.
In step S102, when determining a target window corresponding to the brightness adjustment instruction, if the brightness adjustment instruction is adaptive adjustment of the terminal to the current window, determining the target window according to click of the window by the user, for example, the window clicked by the user is the target window; if the brightness adjustment instruction is through a brightness adjustment button in the window or through a screen of a sliding window area, the corresponding window is the target window. The target window at this time is the focus window.
For example, in the two-window mode, one window is a playing interface of the C video software, the other window is a playing interface of the D video software, and if the window playing the C video is the currently playing window, i.e. the focus window, the target window and the focus window are the same window, and the target window is the window playing the C video. If the user clicks the window of the D video software again at this time or slides the screen in the window area of the D video software to adjust the screen brightness of the D video software area, the target window becomes the window of the D video software.
In step S103, the target brightness to be adjusted can be obtained by the brightness adjustment command, and the brightness parameter of the target window is adjusted according to the target brightness, so that the brightness in the target window to be adjusted to the target brightness. In exemplary embodiments of the present disclosure, the corresponding screen area may be adjusted according to the needs of the user. Thus, the display of the terminal may be a display capable of local brightness adjustment, such as an LED display.
In the exemplary embodiment of the disclosure, in the multi-window mode, the brightness parameter of the target window is adjusted according to the brightness adjustment instruction by determining the target window corresponding to the brightness adjustment instruction, so that the brightness in the target window is adjusted to the target brightness, the area adjustment of the screen brightness in the multi-window mode is realized, and the technical effect of adjusting the screen brightness of any window area is achieved.
In an exemplary embodiment, the method for adjusting screen brightness further includes: and taking the target window area as an area to be regulated.
When the terminal determines to enter the multi-window mode, if the terminal is in the split screen mode at the moment, namely all window areas are spliced to fill the whole display screen area, after the target window is determined at the moment, the area of the target window is the area to be regulated.
In an exemplary embodiment, the method for adjusting screen brightness further includes: and taking all areas except the small window areas in the display screen as areas to be adjusted.
When the target window is a display screen of the terminal, other small window areas can cover a part of the target window, so that when the target window is adjusted, the technical effects of respectively adjusting the brightness of the small window screen and the brightness of the target window screen can be realized only by adjusting the areas outside the small window areas, and at the moment, all the areas outside the small window areas in the display screen are the areas to be adjusted in the target window.
In an exemplary embodiment, the entire display screen area is taken as the area to be adjusted.
When the target window is a display screen of the terminal, other small window areas can cover a part of the target window, and when brightness adjustment is performed on the whole display screen area, the part covered and shielded by the small window area cannot influence brightness of the small window, so that when the target window is adjusted, the whole display screen area is used as an area to be adjusted.
In an exemplary embodiment, fig. 2 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment, and as shown in fig. 2, the method for adjusting screen brightness further includes the following steps:
step S201, determining whether the target window is a window corresponding to a display screen of the terminal;
step S202, if the window is the window corresponding to the display screen of the terminal, determining the area to be adjusted in the target window.
After the target window is determined, whether the target window is a window corresponding to the display screen is determined, for example, whether the size of the target window is the size of the display screen is determined through the size of the target window, when the size of the target window is the same as the size of the display screen, the target window is indicated to be the window corresponding to the display screen, and if the size of the target window is smaller than the size of the display screen, the target window is indicated to be not the window corresponding to the display screen. If the target window is a window corresponding to the terminal display screen, the region to be regulated in the target window, namely the region except all small window windows, needs to be regulated. It will be appreciated that the size of the region to be adjusted at this point refers to the portion of the display that is visible to the user, e.g., the a-window is a floating window and the B-window is a window below the floating window, i.e., the a-window is floating over the B-window, where the size of the B-window is the area that does not include the a-window.
By determining the area to be adjusted, the sub-area fine adjustment of the screen brightness can be realized.
In an exemplary embodiment, the method for adjusting screen brightness further includes: and determining parameter information of the area to be adjusted in the target window, so as to determine the area to be adjusted in the target window according to the parameter information.
The parameter information of the area to be adjusted includes, for example, the size of the area to be adjusted and the position in the screen. The size area and location of the widget in multi-window mode can be calculated, for example, by the surfaefolinger module of the terminal operating system framework layer. When the target window is a window corresponding to the display screen of the terminal, namely, the area to be regulated is a full-screen area minus window areas of all the small windows, the parameter information of the area to be regulated can be calculated through the parameter information of the full-screen area and the parameter information of the small window area. The size of the area to be adjusted can be obtained by subtracting the size of the window area of all the small windows from the size of the full screen area, and the position of the area to be adjusted is determined according to the positions of all the small windows in the display screen.
In one example, the parameter information includes a starting position, a length, and a width of the area to be adjusted.
After the parameter information of the area to be regulated is determined, an area brightness setting interface can be preset in a kernel layer of the terminal operating system. And determining the initial position of the area to be regulated relative to the screen, and the length and width of the area according to the parameter information of the area to be regulated, and assigning the initial position and the length and width of the area to the corresponding parameters in the area brightness setting interface. For example, the area brightness setting interface may be a setb lightnessvue interface, which is expressed as:
setBrightnessValue(boolean isExcludeErea,int startX,int StartY,int width,int height,int brightness)
in the area brightness setting interface, when one vertex of a display screen of a terminal is used as an origin, the transverse direction is used as an X-axis direction, the longitudinal direction is used as a Y-axis direction, a startX parameter is used for representing an area starting X-axis direction coordinate, a startY parameter is used for representing an area starting Y-axis direction coordinate, a width parameter is used for representing an area width, a height parameter is used for representing an area height, units of startX, startY, width, height are pixels, a brightness parameter is used for representing a brightness value to be regulated of the area, namely a target brightness value, an isexclusiereea parameter is used for determining whether the area is an area to be regulated, when the isexclusiereea parameter is 0, the area is represented as an area to be regulated, and when the isexclusiereea parameter is 1, the area is represented as not an area to be regulated.
After the parameter information of the area to be regulated is determined, the parameter information is sent to an area brightness setting interface, and the parameter information of the area to be regulated is assigned to the corresponding parameter in the area brightness setting interface so as to realize brightness regulation of the area to be regulated.
In an exemplary embodiment, the region brightness adjustment function is activated when the terminal is in the multi-window mode.
When the terminal is detected to enter the multi-window mode, the user is considered to need to carry out area brightness adjustment on the terminal, and the area brightness adjustment function is activated by calling the switching interface at the moment, so that the area adjustment on the screen can be realized at any time when the subsequent requirement on the area brightness adjustment on the screen exists. The switching interface is, for example, a transaction interface within the operating system framework. For example, when the terminal enters a split screen display mode, an area brightness adjustment function is activated to enable a user to adjust the brightness of any split screen.
In an exemplary embodiment, fig. 3 is a flowchart of a method for adjusting screen brightness according to an exemplary embodiment, and as shown in fig. 3, the method for adjusting screen brightness further includes the following steps:
step S301, when the terminal is in a multi-window mode, determining whether a window currently operated is a small window;
in step S302, if the currently operated window is a small window, the area brightness adjustment function is activated.
The currently operated window is a focus window, and the focus window is determined by traversing all windows in the multi-window mode and system parameters of the terminal, and whether the focus window is a window of a small window is determined. For example, the management window service (WMS, windowManagerService) of the framework layer of the terminal operating system traverses all windows in the current multi-window mode, and whether the window is a focus window is judged by the system attribute isFocused of the terminal. When the isFocused attribute value of the window is true, the window is indicated to be the currently operated window, namely, the focus window, and when the isFocused attribute value of the window is false, the window is indicated to not be the focus window. When the currently operated window is determined, it is determined whether the currently operated window is a widget, for example, whether the currently operated window is a widget or not through a terminal system attribute parameter, or whether the currently operated window is a widget or not through a size of the currently operated window. If the currently operated window is a small window, the subsequent window corresponding to the terminal display screen cannot be adjusted when the brightness adjustment is required, so that the operation of the screen for adjusting the regional brightness is described, and the regional brightness adjusting function is activated by calling the switching interface at the moment, so that the regional brightness adjustment of the screen can be realized at any time when the subsequent requirement for the regional brightness adjustment of the screen exists. The switching interface is, for example, a transaction interface within the operating system framework.
In an exemplary embodiment, the method for adjusting screen brightness further includes: the brightness parameter of the target window is set to be in a state to be adjusted so that the brightness parameter is in an adjustable state.
After the target window is determined in the multi-window mode, the brightness parameter of the target window is set to be in a state to be adjusted, namely, the brightness parameter of the target window is set to be a screen brightness parameter to be adjusted by the terminal operating system. In exemplary embodiments of the present disclosure, the brightness of the window may be adjusted using a PWM (Pulse Width Modulation ) approach.
In an exemplary embodiment, setting the brightness parameter of the target window to a state to be adjusted includes: the value of the preset parameter is set as the brightness value of the target window to adjust the brightness of the target window by adjusting the value of the preset parameter.
The preset parameter is a parameter for adjusting the brightness of the screen in the terminal operating system, for example, the preset parameter is an override parameter, the brightness value of the target window is determined by a screen brightness parameter in the window, and the operating system of the terminal generally controls the brightness of the window by the following program statement:
WindowManager.LayoutParams lp=getWindows().getAttributes();
Lp.screenBrightness=1.0f;
getWindows().setAttributes();
the value corresponding to the screen brightness parameter is the brightness value of the target window.
And setting the value of the preset parameter as the brightness value of the target window, namely setting the value of the override parameter as the value of the screen brightness parameter of the target window, so that when a brightness adjustment instruction is received, the value of the brightness parameter screen brightness of the target window is adjusted by adjusting the value of the preset parameter override parameter.
In an exemplary embodiment, adjusting the luminance parameter to adjust the luminance within the target window to the target luminance includes: and setting the value of the preset parameter as a target brightness value of a target window so as to adjust the brightness in the area to be adjusted to the target brightness.
And determining a target brightness value to be regulated according to the brightness regulation instruction, setting the value of a preset parameter as the target brightness value of the target window, namely, setting the brightness parameter of the target window as the target brightness value, and simultaneously determining a screen area to be executed by the brightness parameter according to the area to be regulated in the target window so as to realize the effect of regulating the brightness in the area to be regulated to the target brightness.
In an exemplary embodiment of the present disclosure, a device for adjusting screen brightness is provided and is applied to a terminal. Fig. 4 is a block diagram of a screen brightness adjustment device according to an exemplary embodiment, as shown in fig. 4, including:
a receiving module 401 configured to receive a brightness adjustment instruction in a multi-window mode;
a determining module 402, configured to determine a target window corresponding to the brightness adjustment instruction;
an adjustment module 403 configured to adjust a luminance parameter of the target window to adjust a luminance within the target window to a target luminance.
In an exemplary embodiment, the determining module 402 is further configured to determine whether the target window is a window corresponding to a display screen of the terminal; if the window is the window corresponding to the display screen of the terminal, determining an area to be adjusted in the target window, wherein the area to be adjusted is required to be adjusted.
In an exemplary embodiment, the determining module 402 is further configured to use an area other than all of the widget areas in the display as the area to be adjusted.
In an exemplary embodiment, the determining module 402 is further configured to determine parameter information of the area to be adjusted in the target window, so as to determine the area to be adjusted in the target window according to the parameter information.
In an exemplary embodiment, the parameter information includes a start position, a length, and a width of the area to be adjusted.
In an exemplary embodiment, the apparatus further comprises:
an activation module configured to activate an area brightness adjustment function when the terminal is in a multi-window mode;
or alternatively
The activation module is configured to determine whether a currently operated window is a small window or not when the terminal is in a multi-window mode; and if the window operated currently is a small window, activating the area brightness adjusting function.
In an exemplary embodiment, the determining module 402 is further configured to set the brightness parameter of the target window to a state to be adjusted, so that the brightness parameter is in an adjustable state.
In an exemplary embodiment, the apparatus further comprises:
and the setting module is configured to set the value of a preset parameter as the brightness value of the target window so as to adjust the brightness of the target window by adjusting the value of the preset parameter.
In an exemplary embodiment, the setting module is further configured to set the value of the preset parameter to a target luminance value of the target window to adjust the luminance in the area to be adjusted to a target luminance.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
In an exemplary embodiment of the present disclosure, a terminal device is provided, and fig. 5 is a schematic structural diagram of an operating system of a terminal according to an exemplary embodiment, as shown in fig. 5, the operating system of the terminal includes:
a frame layer 501 configured to receive a brightness adjustment instruction in a multi-window mode, and determine a target window corresponding to the brightness adjustment instruction;
a hardware abstraction layer 502 configured to adjust a brightness parameter of the target window to adjust brightness within the target window to a target brightness.
In an exemplary embodiment, the frame layer 501 is configured to:
and taking the area except all small window areas in the display screen as the area to be adjusted.
In an exemplary embodiment, the frame layer 501 is configured to:
determining whether the target window is a window corresponding to a display screen of the terminal;
and if the window is the window corresponding to the display screen of the terminal, determining an area to be adjusted in the target window, wherein the area to be adjusted is required to be adjusted.
In an exemplary embodiment, the framework layer 501 further includes a display area determination module 5011,
the display area determining module 5011 is configured to determine parameter information of an area to be adjusted in the target window to determine the area to be adjusted in the target window according to the parameter information.
In an exemplary embodiment, the operating system further includes a kernel layer 503 configured to set the brightness parameter of the target window to a state to be adjusted.
In an exemplary embodiment, the kernel layer 503 includes a display driver module 5031,
the display driving module 5031 is configured to send the parameter information to the display driving module 5031 of the kernel layer 503 via the display area determining module 5011; the display driving module 5031 invokes an area brightness setting interface to set the area to be adjusted according to the parameter information.
In an exemplary embodiment, the display driver module 5031 is configured to:
and calling a region brightness setting interface to set the starting position, length and width of the region to be regulated according to the parameter information.
In an exemplary embodiment, the framework layer 501 includes a policy module 5012,
the policy module 5012 is configured to determine whether a currently operating window is a widget when the terminal is in a multi-window mode; if yes, the switching interface is called to activate the area brightness adjusting function.
In an exemplary embodiment, the frame layer 501 further includes a display module 5013;
the display module 5013 is configured to set a value of a preset parameter of the display module 5013 to a luminance value of the target window via the policy module 5012 to adjust the luminance of the target window by adjusting the value of the preset parameter.
In an exemplary embodiment, the hardware abstraction layer 502 is configured to:
the brightness value setting interface of the hardware abstraction layer 502 is called through the display area determining module 5011, and the value of the preset parameter of the display module 5013 is set as the target brightness value of the target window, so that the brightness in the area to be adjusted is adjusted to the target brightness. With respect to the operating system configuration in the above-described embodiment, the specific manner in which each configuration performs the operation has been described in detail in the embodiment regarding the method, and will not be described in detail herein.
Fig. 6 is a block diagram illustrating an adjusting apparatus 600 for screen brightness according to an exemplary embodiment when the screen brightness adjusting apparatus is a terminal device. For example, apparatus 600 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the apparatus 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the device 600. Examples of such data include instructions for any application or method operating on the apparatus 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the device 600. The power supply components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 600 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor assembly 614 may detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the apparatus 600, the sensor assembly 614 may also detect a change in position of the apparatus 600 or one of the components of the apparatus 600, the presence or absence of user contact with the apparatus 600, the orientation or acceleration/deceleration of the apparatus 600, and a change in temperature of the apparatus 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the apparatus 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of apparatus 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform a method of adjusting screen brightness, the method comprising any of the methods described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Industrial applicability
In the multi-window mode, the brightness parameters of the target window are adjusted according to the brightness adjustment instruction by determining the target window corresponding to the brightness adjustment instruction, so that the brightness in the target window is adjusted to the target brightness, the area adjustment of the screen brightness in the multi-window mode is realized, and the technical effect of adjusting the screen brightness of any window area is achieved.

Claims (22)

  1. A screen brightness adjusting method is applied to a terminal, and the adjusting method comprises the following steps:
    in a multi-window mode, receiving a brightness adjustment instruction;
    determining a target window corresponding to the brightness adjustment instruction;
    and adjusting the brightness parameter of the target window to adjust the brightness in the target window to the target brightness.
  2. The adjustment method of screen brightness according to claim 1, the adjustment method further comprising:
    determining whether the target window is a window corresponding to a display screen of the terminal;
    if the window is the window corresponding to the display screen of the terminal, determining an area to be adjusted in the target window, wherein the area to be adjusted is required to be adjusted.
  3. The brightness adjustment method according to claim 2, the method further comprising:
    and taking all areas except the small window areas in the display screen as areas to be adjusted.
  4. The adjustment method of screen brightness according to claim 2, the adjustment method further comprising:
    and determining parameter information of the area to be regulated in the target window, so as to determine the area to be regulated in the target window according to the parameter information.
  5. The method for adjusting screen brightness according to claim 4, wherein the parameter information includes a start position, a length, and a width of the region to be adjusted.
  6. The adjustment method of screen brightness according to any one of claims 1 to 5, the adjustment method further comprising:
    when the terminal is in a multi-window mode, activating an area brightness adjusting function;
    or alternatively
    When the terminal is in the multi-window mode, determining whether a currently operated window is a small window;
    and if the window operated currently is a small window, activating the area brightness adjusting function.
  7. The adjustment method of screen brightness according to any one of claims 1 to 5, the adjustment method further comprising:
    and setting the brightness parameter of the target window to be in a state to be adjusted so that the brightness parameter is in an adjustable state.
  8. The method for adjusting screen brightness according to claim 7, wherein setting the brightness parameter of the target window to a state to be adjusted comprises:
    setting a value of a preset parameter as a brightness value of the target window to adjust the brightness of the target window by adjusting the value of the preset parameter.
  9. The method for adjusting brightness of a screen according to claim 8, wherein the adjusting the brightness parameter of the target window to adjust the brightness within the target window to the target brightness comprises:
    and setting the value of the preset parameter as a target brightness value of the target window so as to adjust the brightness in the area to be adjusted to the target brightness.
  10. An adjusting device of screen brightness, applied to a terminal, the adjusting device comprising:
    a receiving module configured to receive a brightness adjustment instruction in a multi-window mode;
    the determining module is configured to determine a target window corresponding to the brightness adjustment instruction;
    and the adjusting module is configured to adjust the brightness parameter of the target window so as to adjust the brightness in the target window to the target brightness.
  11. A terminal device, the terminal device operating system, the operating system comprising:
    the frame layer is configured to receive a brightness adjustment instruction in a multi-window mode and determine a target window corresponding to the brightness adjustment instruction;
    and the hardware abstraction layer is configured to adjust the brightness parameter of the target window so as to adjust the brightness in the target window to the target brightness.
  12. The terminal device of claim 11, wherein the framework layer is configured to:
    and taking the area except all small window areas in the display screen as the area to be adjusted.
  13. The terminal device of claim 12, wherein the framework layer is configured to:
    determining whether the target window is a window corresponding to a display screen of the terminal;
    and if the window is the window corresponding to the display screen of the terminal, determining an area to be adjusted in the target window, wherein the area to be adjusted is required to be adjusted.
  14. The terminal device of claim 12, wherein the frame layer further comprises a display area determination module,
    the display area determining module is configured to determine parameter information of an area to be adjusted in the target window, so as to determine the area to be adjusted in the target window according to the parameter information.
  15. The terminal device of claim 14, the operating system further comprising a kernel layer configured to set a brightness parameter of the target window to a state to be adjusted.
  16. The terminal device of claim 15, wherein the kernel layer comprises a display driver module,
    the display driving module is configured to send the parameter information to the display driving module of the kernel layer via the display area determining module; and the display driving module calls a region brightness setting interface to set the region to be regulated according to the parameter information.
  17. The terminal device of claim 16, wherein the display driver module is configured to:
    and calling a region brightness setting interface to set the starting position, length and width of the region to be regulated according to the parameter information.
  18. The terminal device according to any of claims 10-17, wherein the framework layer comprises a policy module,
    the strategy module is configured to determine whether a currently operated window is a small window or not when the terminal is in a multi-window mode; if yes, the switching interface is called to activate the area brightness adjusting function.
  19. The terminal device of claim 11, wherein the frame layer further comprises a display module;
    the display module is configured to set a value of a preset parameter of the display module to a brightness value of the target window via the policy module to adjust the brightness of the target window by adjusting the value of the preset parameter.
  20. The terminal device of claim 19, wherein the hardware abstraction layer is configured to:
    and calling a brightness value setting interface of the hardware abstraction layer through the display area determining module, and setting the value of the preset parameter of the display module as the target brightness value of the target window so as to adjust the brightness in the area to be adjusted to the target brightness.
  21. A terminal device, the terminal device comprising:
    a processor;
    a memory for storing processor-executable instructions;
    wherein the processor is configured to perform the screen brightness adjustment method of any one of claims 1-9.
  22. A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the method of adjusting screen brightness according to any one of claims 1-9.
CN202280004438.XA 2022-06-20 2022-06-20 Screen brightness adjusting method, device, equipment and storage medium Pending CN117836847A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/099811 WO2023245334A1 (en) 2022-06-20 2022-06-20 Screen brightness adjustment method and apparatus, and device and storage medium

Publications (1)

Publication Number Publication Date
CN117836847A true CN117836847A (en) 2024-04-05

Family

ID=89378976

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202280004438.XA Pending CN117836847A (en) 2022-06-20 2022-06-20 Screen brightness adjusting method, device, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN117836847A (en)
WO (1) WO2023245334A1 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011013294A (en) * 2009-06-30 2011-01-20 Toshiba Corp Information processing apparatus and luminance control method
KR101237443B1 (en) * 2009-12-18 2013-02-26 박재현 Method for power saving of display device with a graded brightness and apparatus using the same
CN105144021A (en) * 2012-09-28 2015-12-09 英特尔公司 Content based dynamic control methods and systems for display brightness
KR20140068573A (en) * 2012-11-28 2014-06-09 삼성전자주식회사 Display apparatus and method for controlling thereof
CN113920958A (en) * 2021-11-12 2022-01-11 展讯半导体(南京)有限公司 Method, system, electronic device and medium for adjusting brightness of display screen

Also Published As

Publication number Publication date
WO2023245334A1 (en) 2023-12-28

Similar Documents

Publication Publication Date Title
CN110796988B (en) Backlight adjusting method and device
CN112114765A (en) Screen projection method and device and storage medium
CN112463084A (en) Split screen display method and device, terminal equipment and computer readable storage medium
CN110399082B (en) Terminal attribute control method and device, electronic equipment and medium
CN117119260A (en) Video control processing method and device
CN113241044B (en) Screen brightness adjusting method, device, equipment and storage medium
CN112235509B (en) Focal length adjusting method and device, mobile terminal and storage medium
CN117836847A (en) Screen brightness adjusting method, device, equipment and storage medium
CN114442792A (en) Method and device for adjusting operating frequency of processor and storage medium
CN111261081B (en) Screen display method and device
CN111610899A (en) Interface display method, interface display device and storage medium
CN113253969B (en) Volume adjustment method and device and computer readable storage medium
US11798516B2 (en) Method and device for adjusting display brightness, mobile terminal and storage medium
WO2023245311A1 (en) Window adjustment method, apparatus, terminal, and storage medium
CN109166512B (en) Display screen brightness adjusting method and device and electronic equipment
CN112698684B (en) Screen display device, screen display control method, screen display control device, and storage medium
US20220291890A1 (en) Method for interaction between devices and medium
CN111081143B (en) Display control method, display control device, electronic equipment and computer-readable storage medium
EP3929738A1 (en) Data processing method, apparatus, and medium
CN110876013B (en) Method and device for determining image resolution, electronic equipment and storage medium
CN106910472B (en) Control method and device for adjusting backlight
CN116339597A (en) Interface display method, device, equipment and storage medium
CN117992005A (en) Display control method, display control device, and storage medium
CN117420932A (en) Display method, device and storage medium
CN115718636A (en) Window image display method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination