WO2023160207A1 - 显示屏亮度调整方法、电子设备及存储介质 - Google Patents

显示屏亮度调整方法、电子设备及存储介质 Download PDF

Info

Publication number
WO2023160207A1
WO2023160207A1 PCT/CN2022/142061 CN2022142061W WO2023160207A1 WO 2023160207 A1 WO2023160207 A1 WO 2023160207A1 CN 2022142061 W CN2022142061 W CN 2022142061W WO 2023160207 A1 WO2023160207 A1 WO 2023160207A1
Authority
WO
WIPO (PCT)
Prior art keywords
brightness
display screen
display
user
electronic device
Prior art date
Application number
PCT/CN2022/142061
Other languages
English (en)
French (fr)
Inventor
李哲
王禹森
罗啸
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Priority to EP22928449.2A priority Critical patent/EP4322144A1/en
Publication of WO2023160207A1 publication Critical patent/WO2023160207A1/zh

Links

Images

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
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/3406Control of illumination source
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0606Manual adjustment
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2320/00Control of display operating conditions
    • G09G2320/06Adjustment of display parameters
    • G09G2320/0626Adjustment of display parameters for control of overall brightness
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/021Power management, e.g. power saving
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2330/00Aspects of power supply; Aspects of display protection and defect management
    • G09G2330/02Details of power systems and of start or stop of display operation
    • G09G2330/026Arrangements or methods related to booting a display
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2360/00Aspects of the architecture of display systems
    • G09G2360/14Detecting light within display terminals, e.g. using a single or a plurality of photosensors
    • G09G2360/144Detecting light within display terminals, e.g. using a single or a plurality of photosensors the light being ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present application relates to the field of display technology, in particular to a method for adjusting brightness of a display screen, electronic equipment and a storage medium.
  • the brightness of the display screens of smart electronic devices such as smart phones, tablet computers, smart watches, etc. can be adaptively adjusted according to the brightness of the ambient light.
  • the user can manually adjust the brightness of the display screen on the basis of the brightness automatically set by the electronic device, and after the electronic device is turned off and on again, the display usually maintains the brightness adjusted manually by the user. brightness.
  • the user may have adjusted the brightness of the display screen due to misoperation. If the brightness manually adjusted by the user is still maintained, the unsuitable brightness of the display screen may cause the user to be unable to view the content of the display screen normally, thus affecting the user experience.
  • the present application provides a method for adjusting the brightness of a display screen, including: setting the brightness of the display screen in response to an automatic brightness setting instruction; adjusting the brightness of the display screen in response to a brightness setting instruction generated by a user manually adjusting the brightness;
  • the screen is turned on again after the display screen is off, it is judged whether to trigger the mechanism of clearing the brightness of the display screen manually adjusted by the user; if the mechanism of clearing the brightness of the display screen manually adjusted by the user is triggered, respond to the automatic brightness setting command , set the brightness of the display screen again; in response to the user’s operation of manually adjusting the brightness of the display screen again, it is determined whether the user’s manual adjustment of the display brightness
  • the operation of the screen brightness is the same as the previous operation of manually adjusting the brightness of the display screen.
  • the re-set brightness of the display screen is adjusted.
  • the setting the brightness of the display screen in response to the automatic brightness setting instruction includes: judging whether the use scene of the electronic device is a preset first use scene or the second use scene; The use scene of the device is the preset first use scene, and the brightness value within the first brightness range is determined as the brightness of the display screen; if it is determined that the use scene of the electronic device is the preset second use scene Scenario, determining the brightness of the display screen based on the brightness value in the second brightness range; mapping the determined brightness of the display screen in the first brightness range or the second brightness range to the brightness of the display screen in the third brightness range ; Driving the display screen to display based on the brightness of the display screen within the third brightness range.
  • the brightness of the display screen can be automatically set based on the use scene of the electronic device, so that the set brightness of the display screen meets the actual needs of the user.
  • the preset first usage scenario includes that the electronic device is running a video application program, the electronic device is running QR code software, and the electronic device is in a front-facing camera light supplement state
  • the preset second usage scenario includes that the electronic device is in a thermally restricted state, the electronic device is in a front camera brightness restricted state, the electronic device is in a low power mode, the electronic device is in a face unlock state, The electronic device is in a scene recognition state.
  • the setting the brightness of the display screen in response to the automatic brightness setting instruction includes: when the display screen is turned on, sensing the ambient light brightness of the environment where the electronic device is located by using an ambient light sensor ; Responding to the automatic brightness setting instruction generated based on the ambient light brightness, determining the preset ambient light brightness range in which the ambient light brightness falls; based on the brightness value in the second brightness range and the preset ambient light brightness The corresponding relationship between the intervals determines the brightness of the display screen corresponding to the preset ambient light brightness interval in which the ambient light brightness falls; mapping the display screen brightness in the second brightness range to the display in the third brightness range screen brightness; driving the display screen to display based on the brightness of the display screen within the third brightness range.
  • the brightness of the display screen can be automatically set based on the ambient light brightness of the environment where the electronic device is located, so that the set brightness of the display screen is adapted to the use environment.
  • sensing the ambient light brightness of the environment where the electronic device is located by the ambient light sensor includes: when the display screen changes from the off-screen state to When the screen is on, a trigger command is generated to trigger the ambient light sensor to sense ambient light, convert the sensed light signal into an electrical signal, and convert the electrical signal into brightness information, and generate the automatic brightness based on the brightness information Set instructions.
  • sensing the ambient light brightness of the environment where the electronic device is located by using the ambient light sensor includes: when the display screen is in a bright screen state, The ambient light sensor senses ambient light at a preset sampling rate, converts the sensed light signal into an electrical signal, and converts the electrical signal into brightness information.
  • the brightness information changes for a preset time, based on The brightness information generates the automatic brightness setting instruction.
  • the mapping relationship of brightness values in the first brightness range, the second brightness range, and the third brightness range includes that the brightness values in the first brightness range correspond to the A brightness value or a sub-brightness range of the second brightness range, the sub-brightness range of the second brightness range corresponds to a sub-brightness range of the third brightness range, and the brightness value in the second brightness range corresponds to the third brightness range A luminance value of a luminance range or a sub-range of luminance.
  • the first brightness range is 0-1
  • the second brightness range is 0-255
  • the third brightness range is 0-10000.
  • the driving the display screen to display based on the brightness of the display screen within the third brightness range includes: obtaining the maximum display brightness supported by the display screen; A mapping relationship between the brightness value of the third brightness range and the display brightness of the display screen; based on the mapping relationship, determine the display brightness corresponding to the brightness of the display screen in the third brightness range;
  • the brightness of the display screen within the brightness range is set as the backlight brightness of the display screen;
  • the display drive circuit drives the display screen to display based on the backlight brightness, so that the actual display brightness of the display screen reaches the third brightness range
  • the display brightness corresponds to the brightness of the display.
  • the adjusting the brightness of the display screen in response to the brightness setting instruction generated in response to the user manually adjusting the brightness includes: responding to the user's manual adjustment of the brightness bar, setting the third brightness range Adjusting the brightness of the display screen within the third brightness range; driving the display screen to display based on the adjusted brightness of the display screen within the third brightness range.
  • the adjusting the brightness of the display screen in response to the brightness setting instruction generated by the user manually adjusting the brightness further includes: setting a brightness adjustment animation of the display screen based on the adjusted brightness of the display screen , and displaying the brightness adjustment animation when the display screen is driven to display based on the adjusted brightness of the display screen within the third brightness range.
  • the setting the brightness adjustment animation of the display screen based on the adjusted brightness of the display screen includes: setting the display screen to gradually change from the set brightness of the display screen to the adjusted brightness of the display screen.
  • the mechanism for judging whether to trigger clearing the brightness of the display screen manually adjusted by the user includes: turning on the screen again after the display screen is off , determine whether at least one of the following preset conditions is met: the time interval between the current time and the last time the user manually adjusted the brightness of the display screen is greater than or equal to the first preset time interval; The time interval between the last screen-off moments is greater than or equal to the second preset time interval and the ambient light brightness when the user manually adjusted the brightness of the display screen last time is greater than or equal to the preset brightness; if the at least one preset condition is met, Determine the mechanism to trigger clearing the brightness of the display screen manually adjusted by the user; if none of the preset conditions are met, determine not to trigger the mechanism for clearing the brightness of the display screen manually adjusted by the user.
  • determining whether the user's operation of manually adjusting the brightness of the display screen again is the same as the last operation of manually adjusting the brightness of the display screen includes: When the screen detects that the user manually adjusts the brightness bar again, it judges whether the user's manual adjustment of the brightness bar is the same as the previous manual adjustment of the brightness bar; if it is determined that the user's manual adjustment of the brightness bar again is the same as the previous manual adjustment The operation of the brightness bar is the same, and it is determined that the user’s manual adjustment of the display brightness again is the same as the previous manual adjustment of the display brightness; The operation of manually adjusting the brightness of the display screen again by the user is different from the operation of manually adjusting the brightness of the display screen last time.
  • the method further includes: if the user manually adjusts the brightness of the display screen again, which is different from the previous operation of manually adjusting the brightness of the display screen, keeping the re-set brightness of the display screen unchanged.
  • the method further includes: if the mechanism for clearing the brightness of the display screen manually adjusted by the user is not triggered, keeping the last adjusted brightness of the display screen unchanged.
  • the method further includes: resetting the brightness of the display screen in response to an automatic brightness setting instruction generated by restarting the electronic device or restarting the automatic brightness adjustment option.
  • the method further includes: adjusting the last adjusted brightness of the display screen in response to a brightness adjustment instruction generated in response to a change in the use environment of the electronic device.
  • the adjusting the brightness of the display screen after the last adjustment to the brightness adjustment instruction generated in response to the change of the use environment of the electronic device includes: The ambient light brightness of the environment; when the ambient light brightness sensed by the ambient light sensor changes, it is determined that the use environment of the electronic device changes, and the brightness adjustment instruction is generated; in response to the brightness adjustment instruction, Adjust the display brightness after the last manual adjustment by the user.
  • the present application provides an electronic device, the electronic device includes a memory and a processor, wherein the memory is used to store program instructions; the processor is used to read and execute the instructions stored in the memory.
  • the program instruction when the program instruction is executed by the processor, causes the electronic device to execute the above method for adjusting the brightness of the display screen.
  • the present application provides a computer storage medium, the computer storage medium stores program instructions, and when the program instructions are run on an electronic device, the electronic device executes the above method for adjusting brightness of a display screen.
  • the display screen brightness adjustment method, electronic equipment, and storage medium provided in the embodiments of the present application can be triggered based on the mechanism of clearing the screen brightness manually adjusted by the user, and keep the screen brightness manually adjusted by the user after the screen is turned off and on. It is triggered based on the mechanism of clearing the brightness of the display screen manually adjusted by the user.
  • the brightness of the display screen is automatically reset, and the brightness of the display screen is adjusted based on the same user manual adjustment operation to ensure that the electronic device is turned off.
  • the brightness of the display screen automatically set or manually adjusted by the user meets the actual needs of the user, ensuring that the user can normally watch the content of the display screen, thereby improving the user experience.
  • FIG. 1A is a schematic diagram of brightness of a display screen provided by an embodiment of the present application.
  • FIG. 1B is a schematic diagram of an interface for adjusting brightness of a display screen provided by an embodiment of the present application.
  • FIG. 1C is a schematic diagram of a default brightness curve and a manually adjusted brightness curve provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a structure for adjusting brightness of a display screen in the prior art.
  • Fig. 3 is a software architecture diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of a method for adjusting brightness of a display screen provided by an embodiment of the present application.
  • FIG. 5 is a flow chart of setting the brightness of a display screen based on an automatic brightness setting instruction generated based on a use scene of an electronic device provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of setting the brightness of a display screen based on an automatic brightness setting instruction generated based on a use scene of an electronic device according to another embodiment of the present application.
  • FIG. 7 is a correspondence table between brightness values and preset ambient light brightness intervals provided by an embodiment of the present application.
  • FIG. 8A is a schematic diagram of a brightness bar of a setting interface provided by an embodiment of the present application.
  • FIG. 8B is a schematic diagram of a brightness bar of a status bar interface provided by an embodiment of the present application.
  • FIG. 9 is a flow chart of adjusting the brightness of a display screen in response to a brightness setting instruction generated by a user manually adjusting the brightness provided by an embodiment of the present application.
  • FIG. 10A is a schematic diagram of a user adjusting a brightness bar on a status bar interface according to an embodiment of the present application.
  • FIG. 10B is a schematic diagram of a manually adjusted brightness bar of the status bar interface provided by an embodiment of the present application.
  • FIG. 11A is a schematic diagram of a user adjusting a brightness bar on a setting interface provided by an embodiment of the present application.
  • FIG. 11B is a schematic diagram of a brightness bar of a manually adjusted setting interface provided by an embodiment of the present application.
  • FIG. 12 is a flowchart of a method for adjusting brightness of a display screen provided by another embodiment of the present application.
  • FIG. 13 is a flow chart of a method for adjusting brightness of a display screen provided by another embodiment of the present application.
  • Fig. 14 is a frame diagram of brightness transfer of a display screen provided by an embodiment of the present application.
  • FIG. 15 is a flowchart of a method for adjusting brightness of a display screen provided by another embodiment of the present application.
  • Fig. 16 is a hardware architecture diagram of an electronic device provided by an embodiment of the present application.
  • first and second involved in the embodiments of the present application are only used for descriptive purposes, and should not be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features . Thus, a feature defined as “first” and “second” may explicitly or implicitly include one or more of these features.
  • words such as “exemplary” or “for example” are used as examples, illustrations or descriptions. Any embodiment or design scheme described as “exemplary” or “for example” in the embodiments of the present application shall not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Rather, the use of words such as “exemplary” or “such as” is intended to present related concepts in a concrete manner.
  • the user interface in the embodiment of the present application is a medium interface for interaction and information exchange between an application program or an operating system and a user, and can realize the conversion between the internal form of information and the form acceptable to the user.
  • the user interface of the application program is the source code written in specific computer languages such as JAVA and extensible markup language (XML). Such as pictures, text, buttons and other controls. Controls are the basic elements of the user interface. Typical controls include buttons, widgets, toolbars, menu bars, text boxes, and scroll bars ( scrollbar), pictures (image) and text (text).
  • the properties and contents of the controls in the interface are defined through labels or nodes.
  • XML specifies the controls contained in the interface through nodes such as ⁇ Textview>, ⁇ ImgView>, and ⁇ VideoView>.
  • a node corresponds to a control or property in the interface, and after the node is parsed and rendered, it is presented as the content visible to the user.
  • the interfaces of many applications, such as hybrid applications usually include web pages.
  • a web page, also called a page, can be understood as a special control embedded in an application program interface.
  • a web page is a source code written in a specific computer language, such as hypertext markup language (HTML), cascading style Tables (cascading style sheets, CSS), JAVA scripts (JavaScript, JS), etc.
  • the source code of the web page can be loaded and displayed as user-recognizable content by a browser or a web page display component similar in function to the browser.
  • the specific content contained in the webpage is also defined by the tags or nodes in the source code of the webpage. For example, HTML defines the elements and attributes of the webpage through ⁇ p>, ⁇ img>, ⁇ video>, and ⁇ canvas>.
  • GUI graphical user interface
  • the following firstly describes the application scenario of the method for adjusting brightness of a display screen of the present application.
  • FIG. 1A it is a schematic diagram of brightness of a display screen provided by an embodiment of the present application.
  • the ambient light sensor of the electronic device can collect ambient light brightness, and set an appropriate display screen brightness based on the ambient light brightness. For example, when the ambient light brightness is 5 lux (lux), the brightness of the display screen is set to 18 levels, and when the ambient light brightness is 20 lux, the brightness of the display screen is set to 58 levels.
  • FIG. 1B it is a schematic diagram of an interface for adjusting brightness of a display screen provided by an embodiment of the present application. Since different users have different preferences for the brightness of the display screen automatically set by the electronic device, or the same user has different preferences for the brightness of the display screen automatically set by the electronic device under different ambient light levels, the user can drag and drop on the screen brightness adjustment interface Adjust the brightness bar, so that on the basis of the brightness of the display screen automatically set by the electronic device, manually adjust the brightness of the display screen, so that the brightness of the display screen can adapt to individual needs.
  • the brightness of the display screen is set to 87.5 steps, and the brightness of the display screen after manual adjustment by the user is 107.98 steps, and when the ambient light brightness is 100 lux, the display brightness is set to 95 Steps, the brightness of the display after manual adjustment by the user is 120.6 steps.
  • FIG. 1C it is a schematic diagram of a default brightness curve and a manually adjusted brightness curve provided by the embodiment of the present application. Under different ambient light levels, there are differences between the default brightness curve L1 of the electronic device and the brightness curve L2 manually adjusted by the user.
  • FIG. 2 it is a schematic diagram of a structure for adjusting brightness of a display screen in the prior art.
  • the electronic device After the user manually adjusts the brightness of the display screen, under the condition that the use environment remains unchanged (that is, the brightness of the ambient light remains unchanged), the electronic device turns off the screen and then turns on the screen, and the brightness of the display screen remains unchanged, that is, the display after the user's adjustment is still maintained. screen brightness.
  • the use environment changes that is, the brightness of the ambient light changes
  • the screen brightness of the electronic device can be adjusted adaptively based on the changed ambient light brightness after the screen is turned off and then turned on again. For example, when the brightness of the ambient light increases, the brightness of the display screen adjusted by the user is increased, and when the brightness of the ambient light decreases, the brightness of the display screen adjusted by the user is decreased.
  • the user may not accept the brightness of the display screen adaptively adjusted by the electronic device under different ambient light levels.
  • the brightness of the display screen adaptively adjusted by the electronic device after the screen is turned off and turned on does not meet the requirements of the user. demand, causing users to be unable to view the contents of the display screen normally, thereby affecting user experience.
  • the user may have manually adjusted the brightness of the display screen due to misoperation. In this way, no matter whether the electronic device maintains the manually adjusted display brightness when the use environment remains unchanged, or the electronic device adaptively adjusts the display brightness when the use environment changes. It does not meet the user's needs, causing the user to be unable to view the content of the display screen normally, thus affecting the user experience.
  • FIG. 3 it is a software architecture diagram of the electronic device provided by the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate through software interfaces.
  • the Android system is divided into four layers, from top to bottom are application program layer 101, framework layer 102, Android runtime (Android runtime) and system library 103, hardware abstraction layer 104, kernel layer 105 and hardware layer 106.
  • the application layer can consist of a series of application packages.
  • an application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, and device control services.
  • the framework layer provides application programming interfaces (Application Programming Interface, API) and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include window managers, content providers, view systems, telephony managers, resource managers, notification managers, and more.
  • the window manager is used to manage window programs.
  • the window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications. Said data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebook, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on.
  • the view system can be used to build applications.
  • a display interface can consist of one or more views. For example, a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the phone manager is used to provide communication functions of electronic devices.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, etc.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify the download completion, message reminder, etc.
  • the notification manager can also be a notification that appears on the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window.
  • prompting text information in the status bar issuing a prompt sound, vibrating the electronic device, and flashing the indicator light, etc.
  • the Android Runtime includes core library and virtual machine.
  • the Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and the framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • a system library can include multiple function modules. For example, surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (such as: OpenGL ES), 2D graphics engine (such as SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library such as: OpenGL ES
  • 2D graphics engine such as SGL
  • the surface manager is used to manage the display subsystem, and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of various commonly used audio and video formats, as well as still image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing, etc.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the hardware abstraction layer runs in the user space, encapsulates the kernel layer driver, and provides a call interface to the upper layer.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least a display driver, a camera driver, an audio driver, and a sensor driver.
  • the kernel layer is the core of the operating system of an electronic device. It is the first layer of software expansion based on hardware. It provides the most basic functions of the operating system and is the basis of the operating system. It is responsible for managing the process, memory, device drivers, files and The network system determines the performance and stability of the system. For example, the kernel can determine when an application operates on certain parts of the hardware.
  • the kernel layer includes programs closely related to hardware, such as interrupt handlers, device drivers, etc., as well as basic, public, and high-frequency modules, such as clock management modules, process scheduling modules, etc., as well as key data structure.
  • the kernel layer can be set in the processor, or solidified in the internal memory.
  • the hardware layer is the hardware of the electronic device, and the hardware layer includes at least a display screen 194 .
  • an embodiment of the present application provides a method for adjusting the brightness of the display screen.
  • FIG. 4 it is a flowchart of a method for adjusting brightness of a display screen provided by an embodiment of the present application.
  • the method is applied in electronic equipment, and the brightness adjustment method of the display screen includes:
  • the set brightness of the display screen is the brightness level of the backlight of the display screen, and the unit is step.
  • the detailed process of setting the brightness of the display screen includes: setting the brightness of the display screen based on the automatic brightness setting instruction generated based on the use scene of the electronic device.
  • judging whether the usage scenario of the electronic device is the preset first usage scenario or the second usage scenario is performed by the application program layer.
  • the electronic device is preset with at least a first usage scenario and a second usage scenario.
  • the preset first usage scenario includes, but is not limited to, the electronic device is running a video application program, the electronic device is running a QR code software, and the electronic device is in a front-facing camera fill light state.
  • the electronic device runs the two-dimensional code software so that the display screen of the electronic device is displaying the two-dimensional code.
  • the fact that the electronic device is in the supplementary light state of the front camera means that the electronic device is shooting with the front camera and the brightness of the ambient light is lower than the preset brightness.
  • the preset brightness is 20lux.
  • the preset second usage scenarios include, but are not limited to, the electronic device is in the thermal limit state, the electronic device is in the front camera brightness limit state, the electronic device is in the low power mode, the electronic device is in the face unlock state, and the electronic device is in the scene recognition state. state.
  • the fact that the electronic device is in the thermal limit state means that the temperature of the case or the temperature of the main board of the electronic device is greater than or equal to the threshold temperature.
  • the threshold temperature is 50°C.
  • the fact that the electronic device is in a state of limiting the brightness of the front camera means that the electronic device is using the front camera for shooting.
  • the electronic device is in the low power mode when the power of the electronic device is less than or equal to a preset percentage.
  • the preset percentage is 20%.
  • the electronic device is in the face unlocking state when the screen is on and the electronic device is in the locked state.
  • the electronic device is in the scene recognition state, which is the state in which the electronic device turns on the rear camera for shooting to identify the target object.
  • the automatic brightness setting instruction is transmitted to the power frame of the frame layer (for example, as shown in FIG. 3 , the frame layer 102 includes a power supply framework 1021), which determines the brightness value within the first brightness range as the brightness of the display screen by the power supply framework.
  • the first brightness range is 0-1. If it is determined that the use scene of the electronic device is the preset first use scene, any brightness value within the first brightness range may be determined as the brightness of the display screen, for example, a brightness value of 1 within the first brightness range 0-1 may be determined is the brightness of the display.
  • the electronic device is playing a video, displaying a QR code, or using the front camera to take pictures under low ambient light
  • it is necessary to set a higher or highest display Brightness the required display brightness levels are small, so the display brightness is obtained based on a small brightness range.
  • the automatic brightness setting instruction is sent to the power framework of the framework layer, and the power framework determines the brightness of the display screen based on the second brightness range.
  • the second brightness range is 0-255.
  • the electronic device is pre-configured with a corresponding relationship between ambient light brightness and sub-brightness ranges or brightness values in the second brightness range.
  • the ambient light sensor senses the The ambient light brightness of the environment where the device is located, determining the brightness value within the sub-brightness range based on the sensed ambient light brightness, and determining the brightness value as the brightness of the display screen.
  • the second usage scenario is that the electronic device is in the brightness limit state of the front camera, the electronic device is in the face unlock state, or the electronic device is in the scene recognition state, it is necessary to set a higher display brightness, and determine the sub-brightness range as 180-255, and at the same time
  • the ambient light sensor senses the ambient light brightness of the environment where the electronic device is located, determines a brightness value within a sub-brightness range based on the sensed ambient light brightness, and determines the brightness value as the brightness of the display screen.
  • the maximum The brightness value is determined as the display brightness. For example, a brightness value of 255 is determined as the brightness of the display screen.
  • mapping the brightness of the display screen within the first brightness range or the second brightness range to the brightness of the display screen within the third brightness range is performed by the frame layer.
  • the mapping relationship of the brightness values in the first brightness range, the second brightness range and the third brightness range is pre-configured by the electronic device, including: the brightness value in the first brightness range corresponds to the second brightness A brightness value or a sub-range of brightness in the second brightness range, a brightness sub-range of the second brightness range corresponds to a brightness sub-range of the third brightness range, and a brightness value in the second brightness range corresponds to a brightness value or a sub-range of the third brightness range Brightness range.
  • the third brightness range is 0-10000.
  • mapping the brightness of the display screen within the first brightness range or the second brightness range to the brightness of the display screen within the third brightness range includes: mapping the brightness of the display screen within the first brightness range to the third brightness range The brightness value or sub-brightness range in the second brightness range, and then map the brightness value or sub-brightness range in the second brightness range to the display screen brightness in the third brightness range, or, convert the display screen brightness in the second brightness range Mapped to the brightness of the display in the third brightness range.
  • the determined brightness of the display screen is a brightness value of 1 in the first brightness range
  • the brightness value of the display screen is mapped to obtain a brightness value of 255 in the second brightness range, and then mapped to obtain a brightness value of 255 in the third brightness range.
  • the brightness value 10000 in the brightness range is used as the brightness of the display screen in the third brightness range.
  • the determined brightness of the display screen is a brightness value of 25 in the second brightness range
  • the brightness mapping of the display screen obtains a sub-brightness range of 900-1200 in the third brightness range, and then the Determine any brightness value within the sub-brightness range 900-1200 as the brightness of the display screen within the third brightness range.
  • the hardware abstraction layer 104 includes a lighting service (LightsService) 1041 for controlling light devices of electronic devices, and the kernel layer 105 includes a display driving circuit 1051 .
  • the light equipment includes, but is not limited to, a display backlight light source and an indicator light.
  • driving the display screen to display based on the brightness of the display screen within the third brightness range includes: at the frame layer, obtaining the maximum display brightness supported by the display screen, and establishing the third brightness range based on the maximum display brightness
  • the mapping relationship between the brightness value and the display brightness of the display screen, the display brightness corresponding to the display brightness in the third brightness range is determined based on the mapping relationship, and the display brightness in the third brightness range and the corresponding display brightness
  • the brightness is passed to the hardware abstraction layer; at the hardware abstraction layer, the brightness of the display screen in the third brightness range determined by the lighting service is set as the backlight brightness of the display screen in the kernel layer; at the kernel layer, the display driver circuit is based on the set The brightness of the backlight drives the display screen to display, so that the actual display brightness of the display screen reaches the display brightness corresponding to the brightness of the display screen.
  • the brightness of the display screen in the first brightness range, the second brightness range and the third brightness range is used to indicate the brightness level of the backlight of the display screen, and the unit is level, and the display brightness of the display screen is The actual light intensity presented during the display process, in nit (nit).
  • the brightness of the display screen is set in response to an automatic brightness setting instruction.
  • Figure 6 for the detailed process, which specifically includes:
  • the brightening of the display screen means that the display screen changes from an off-screen state to a bright-screen state.
  • the ambient light brightness of the environment where the electronic device is sensed by the ambient light sensor is executed by the kernel layer, including: when the display screen changes from the off-screen state to the on-screen state, a trigger command is generated to trigger the ambient light
  • the sensor starts to work, the ambient light sensor senses ambient light, converts the sensed light signal into an electrical signal, and converts the electrical signal into brightness information, and generates an automatic brightness setting instruction based on the brightness information.
  • the converted brightness information is the ambient brightness of the environment where the electronic device is located.
  • the brightening of the display screen means that the display screen is continuously in a bright screen state.
  • sensing the ambient light brightness of the environment where the electronic device is located through the ambient light sensor includes: when the display screen is in the bright screen state, the ambient light sensor senses the ambient light at a preset sampling rate, and converts the sensed The optical signal is converted into an electrical signal, and the electrical signal is converted into brightness information.
  • an automatic brightness setting instruction is generated based on the brightness information.
  • the kernel layer transmits the ambient light brightness sensed by the ambient light sensor to the frame layer, and at the frame layer, the power frame determines the preset ambient light brightness range within which the ambient light brightness falls.
  • the electronic device is preset with a plurality of ambient light brightness intervals.
  • the multiple preset ambient light brightness intervals include a first interval [0, 200lux), a second interval [200lux, 400lux), a third interval [400lux, 1000lux), a fourth interval [1000lux, 3000lux) and a fifth interval interval [3000lux, ⁇ ).
  • the ambient light brightness sensed by the ambient light sensor is 300 lux
  • it is determined that the preset ambient light brightness range within which the ambient light brightness falls is the second range.
  • determining the brightness of the display screen corresponding to the preset ambient light brightness range in which the ambient light brightness falls is performed by the power framework at the framework layer.
  • the brightness of the display screen is a brightness value in the second brightness range.
  • the second brightness range is 0-255.
  • the electronic device is further provided with a corresponding relationship between a plurality of brightness values in the second brightness range and a plurality of preset ambient light brightness intervals.
  • the brightness value corresponding to the first interval is 25
  • the brightness value corresponding to the second interval is 55
  • the brightness value corresponding to the third interval is 70
  • the brightness value corresponding to the fourth interval is 120
  • the brightness value corresponding to the fifth interval is 250.
  • the functions of S602-S603 are implemented by the getCurrentDefaultBrightness program.
  • the mapping of the display screen brightness in the second brightness range to the display screen brightness in the third brightness range is performed by the framework layer.
  • the brightness of the display screen in the second brightness range corresponding to the preset ambient light brightness range in which the ambient light brightness falls is 120
  • the brightness mapping of the display screen obtains a sub-brightness range of 4500-5000 in the third brightness range, and then Any brightness value within the sub-brightness range of 4500-5000 may be determined to be the brightness of the display screen within the third brightness range.
  • driving the display screen to display based on the brightness of the display screen within the third brightness range includes: at the frame layer, obtaining the maximum display brightness supported by the display screen, and establishing the third brightness range based on the maximum display brightness
  • the mapping relationship between the brightness value and the display brightness of the display screen, the display brightness corresponding to the display brightness in the third brightness range is determined based on the mapping relationship, and the display brightness in the third brightness range and the corresponding display brightness
  • the brightness is passed to the hardware abstraction layer; at the hardware abstraction layer, the display brightness of the determined third brightness range is set as the backlight brightness of the display screen in the kernel layer by the lighting service (LightsService); at the kernel layer, the display driver circuit is based on the set The brightness of the backlight drives the display screen to display, so that the actual display brightness of the display screen reaches the display brightness corresponding to the brightness of the display screen.
  • setting the brightness of the display screen based on the automatic brightness setting instruction generated based on the use scene of the electronic device further includes: setting the brightness setting animation of the display screen based on the determined brightness of the display screen, and based on the first When the brightness of the display screen within the three brightness ranges is driven for display, the brightness setting animation is displayed.
  • setting the brightness setting animation of the display screen based on the set display screen brightness includes: determining the brightness change process of the display screen gradually changing from the previous brightness to the display screen brightness, and drawing a brightness bar to indicate the brightness of the display.
  • setting the brightness change process of the display screen gradually changing from the previous brightness to the display screen brightness includes: setting a plurality of brightness values between the previous brightness and the display screen brightness.
  • Drawing a brightness bar to represent the brightness of the display screen includes: drawing a brightness bar whose ratio of the actual length to the threshold length is equal to the ratio of the actual brightness to the maximum brightness of the display screen.
  • the brightness bar includes a brightness bar of a setting interface of the electronic device (as shown in FIG. 8A ) and a brightness bar of a status bar (SystemUI) interface (as shown in FIG. 8B ).
  • the brightness of the display screen is based on the difference between the previous brightness set and the brightness of the display screen.
  • a plurality of brightness values in between gradually change to the brightness of the display screen.
  • the brightness bar on the setting interface and the status bar interface gradually changes to the currently drawn brightness bar.
  • adjusting the brightness of the display screen within the set third brightness range includes: when the user slides the brightness bar to the right, record the display screen through the updateSaveOffsetTime program The increase value of the brightness, when the user stops sliding the brightness bar, the display brightness is adjusted to the sum obtained by adding the display brightness within the third brightness range and the increase value of the display brightness; when the user slides the brightness bar to the left , the decrease value of the display brightness is recorded through the updateSaveOffsetTime program, and when the user stops sliding the brightness bar, the display brightness is adjusted to the difference obtained by subtracting the display brightness within the set third brightness range from the decrease value of the display brightness .
  • the user slides the brightness bar 22 of the status bar interface to the right to start recording the increase value of the display brightness.
  • FIG. 10B when the user stops sliding the brightness bar 22 of the status bar interface, it is determined to display increase in screen brightness.
  • the user slides the brightness bar 21 of the setting interface to the left to start recording the increase value of the display brightness.
  • the brightness of the display screen is determined. reduction value.
  • adjusting the brightness of the display screen within the set third brightness range further includes: recording the display within the set third brightness range through the updateSaveOffsetTime program The moment when the screen brightness adjustment is completed.
  • driving the display screen to display based on the adjusted brightness of the display screen in the third brightness range includes: at the frame layer, the difference between the brightness value of the third brightness range and the display brightness of the display screen The mapping relationship determines the display brightness corresponding to the adjusted display brightness in the third brightness range, and transmits the adjusted display brightness and the corresponding display brightness in the third brightness range to the hardware abstraction layer;
  • the adjusted display brightness in the third brightness range is set as the backlight brightness of the display screen in the kernel layer by the lighting service (LightsService); at the kernel layer, the display driver circuit drives the display based on the set backlight brightness The screen is displayed, so that the actual display brightness of the display screen reaches the display brightness corresponding to the adjusted display screen brightness within the third brightness range.
  • adjusting the brightness of the display screen in response to the brightness setting instruction generated by the user manually adjusting the brightness further includes: setting a brightness adjustment animation of the display screen based on the adjusted brightness of the display screen, and When the brightness of the display screen within the third brightness range drives the display screen to display, the brightness adjustment animation is displayed.
  • setting the brightness adjustment animation of the display screen based on the adjusted brightness of the display screen includes: setting the brightness of the display screen to gradually change from the set display screen brightness to the adjusted brightness of the display screen change process, and draw a brightness bar to represent the adjusted brightness of the display screen.
  • setting the brightness change process of the display screen gradually changing from the set display screen brightness to the adjusted display screen brightness includes: determining the set display screen brightness and the adjusted Multiple brightness values between display brightness.
  • Drawing a brightness bar to represent the adjusted brightness of the display screen includes: drawing a brightness bar whose ratio of the actual length to the threshold length is equal to the ratio of the adjusted brightness of the display screen to the maximum brightness.
  • the brightness of the display screen is based on the set brightness of the display screen and the adjusted brightness of the display screen.
  • a plurality of brightness values between the brightness of the display screen gradually change from the set brightness of the display screen to the adjusted brightness of the display screen.
  • the brightness bars of the setting interface and the status bar interface gradually change to the currently drawn brightness bar.
  • the mechanism for judging whether to trigger clearing the brightness of the display screen manually adjusted by the user includes: when the display screen is turned off and then turned on again, judging whether the following conditions are met: The at least one preset condition: the time interval between the current moment and the last time when the user manually adjusted the brightness of the display screen is greater than or equal to the first preset time interval, the display screen is bright, and the time when the screen is bright and the last time when the screen is off.
  • the time interval between is greater than or equal to the second preset time interval and the brightness of the ambient light when the user manually adjusted the brightness of the display screen last time is greater than or equal to the preset brightness.
  • a mechanism for triggering clearing of the brightness of the display screen manually adjusted by the user is determined. If all the above preset conditions are not satisfied, it is determined not to trigger the mechanism of clearing the brightness of the display screen manually adjusted by the user.
  • the first preset time interval is shorter than the second preset time interval.
  • the first preset time interval is 4 hours
  • the second preset time interval is 8 hours
  • the preset brightness is 45 lux.
  • the time interval between the current time and the last time the user manually adjusted the display brightness is greater than or equal to the first preset time interval, it means that the current time and the user's last manual adjustment of the display screen
  • the time interval between the moments of brightness is long, and the brightness of the display screen manually adjusted by the user can be ignored. Therefore, a mechanism for clearing the brightness of the display screen manually adjusted by the user is triggered.
  • the time interval between the current moment and the last time the user manually adjusted the display brightness is less than the first preset time interval, it means that the time interval between the current moment and the last time the user manually adjusted the display brightness is short, continue to use The brightness of the display manually adjusted by the user, therefore, the mechanism for clearing the brightness of the display manually adjusted by the user is not triggered.
  • the display screen is on and the time interval between the time when the screen is on and the time when the screen is off is less than the second preset time interval, it means that the time interval between the time when the screen is on and the time when the screen is off is short, continue to use the user manual Adjusted display brightness, therefore, does not trigger the mechanism for clearing manually adjusted display brightness by the user.
  • the mechanism of clearing the display brightness manually adjusted by the user is triggered after the screen is turned on again. If the ambient light brightness was lower than the preset brightness when the user manually adjusted the display brightness last time, it means that the user is used to manually adjusting the display brightness under any ambient light brightness. Mechanism of brightness.
  • the last time when the user manually adjusted the brightness of the display screen is the time when the brightness adjustment of the display screen within the third brightness range is recorded by the updateSaveOffsetTime program, and the time when the display screen is brightened each time is determined by updatebrightScreenTime( ) program records, and the moment when the screen goes off each time is recorded by the updateoffScreenTime() program.
  • the mechanism of clearing the brightness of the display screen manually adjusted by the user is triggered, the brightness of the display screen manually adjusted by the user last time is ignored, and the default brightness of the display screen is set again in response to the automatic brightness setting instruction.
  • determining whether the user's operation of manually adjusting the brightness of the display screen again is the same as the previous operation of manually adjusting the brightness of the display screen includes: When the screen detects that the user manually adjusts the brightness bar again, it is determined whether the user's manual adjustment of the brightness bar again is the same as the previous manual adjustment of the brightness bar.
  • the previous manual adjustment of the brightness bar is to slide the brightness bar to the right Slide the brightness bar to determine that the user's operation of manually adjusting the display brightness again is different from the previous operation of manually adjusting the display brightness.
  • the user manually adjusts the brightness of the display screen again and the operation is the same as the previous operation of manually adjusting the brightness of the display screen it means that the user has the same habit of manually adjusting the brightness of the display screen twice in a row.
  • the brightness of the display screen is adjusted again, that is, the brightness of the display screen that is set again is adjusted.
  • the user manually adjusts the brightness of the display screen again and the previous operation is different from the previous operation of manually adjusting the brightness of the display screen, it means that the user has a different habit of manually adjusting the brightness of the display screen twice in a row. Confirm that the user has not manually adjusted the brightness of the display screen again. The need to adjust the brightness of the display screen, and confirm that it is a wrong operation for the user to manually adjust the brightness of the display screen again, so keep the brightness of the display screen that is automatically set again unchanged.
  • the mechanism of clearing the brightness of the display screen manually adjusted by the user is not triggered, the brightness of the display screen manually adjusted by the user last time is continued to be used, so the brightness of the display screen manually adjusted last time remains unchanged.
  • FIG. 12 it is a flow chart of a method for adjusting brightness of a display screen provided by another embodiment of the present application.
  • the method is applied in electronic equipment, and the brightness adjustment method of the display screen includes:
  • S707 keeps the re-set display brightness unchanged.
  • the electronic device is provided with an automatic brightness adjustment option 23 on the setting interface. After the automatic brightness adjustment option 23 is turned off and then on again, the display screen manually adjusted by the user last time is ignored. Brightness, generate an automatic brightness setting command, and reset the brightness of the display screen automatically.
  • FIG. 13 it is a flow chart of a method for adjusting brightness of a display screen provided by another embodiment of the present application.
  • the method is applied in electronic equipment, and the brightness adjustment method of the display screen includes:
  • adjusting the brightness of the display screen after the last adjustment in response to a brightness adjustment instruction generated in response to a change in the environment in which the electronic device is used includes: sensing the ambient light brightness of the environment where the electronic device is located by using an ambient light sensor When the brightness of the ambient light sensed by the ambient light sensor changes, it is determined that the use environment of the electronic device has changed, and a brightness adjustment instruction is generated, and in response to the brightness adjustment instruction, the brightness of the display screen after the user's last manual adjustment is adjusted.
  • the brightness of the ambient light sensed by the ambient light sensor becomes larger, increase the brightness of the display screen after the last adjustment; if the brightness of the ambient light sensed by the ambient light sensor becomes smaller, decrease the brightness of the display screen after the last adjustment .
  • increasing the brightness of the display screen after the last adjustment includes: determining the default brightness of the display screen corresponding to the brightness of the current ambient light, and calculating the brightness of the current ambient light
  • the default display brightness corresponding to the brightness is an increase ratio of the default display brightness automatically set based on the previous ambient light brightness, and the last adjusted display brightness is increased based on the increase ratio.
  • the default display brightness corresponding to the current ambient light brightness is 150
  • the default display brightness automatically set based on the previous ambient light brightness is 120
  • the last adjusted display brightness is 140, then increase the last adjusted display brightness to 175.
  • reducing the brightness of the display screen after the last adjustment includes: determining the default brightness of the display screen corresponding to the brightness of the current ambient light, and calculating the brightness of the current ambient light
  • the default display brightness corresponding to the brightness is compared with the reduction ratio of the default display brightness automatically set based on the previous ambient light brightness, and the last adjusted display brightness is reduced based on the reduction ratio.
  • the default display brightness corresponding to the current ambient light brightness is 150
  • the default display brightness automatically set based on the previous ambient light brightness is 180
  • the last adjusted display brightness is 200, then reduce the last adjusted display brightness to 166.7.
  • the process of S803-S808 is executed, that is, the brightness adjustment logic triggered or not triggered by the mechanism of clearing the brightness of the display screen manually adjusted by the user is executed.
  • the brightness range of the electronic device includes a first brightness range of 0-1, a second brightness range of 0-255, a third brightness range of 0-10000, and a fourth brightness range of 0-the maximum brightness actually supported by the hardware.
  • the first brightness range, the second brightness range and the third brightness range are order ranges of the brightness level of the display screen backlight
  • the fourth brightness range is the display brightness range of the display screen
  • the unit is nit.
  • the brightness range is not limited to the above, and other ranges can also be set.
  • applications that can adjust the brightness of the display include video applications, QR code software, camera programs, system settings, and status bar settings.
  • the video application program, QR code software, and camera program are based on the first brightness range 0-1 to set and adjust the brightness of the display screen
  • the system settings and status bar settings are based on the third brightness range 0-10000 to set and adjust the brightness of the display screen .
  • the automatic brightness setting is to automatically set the brightness of the display screen based on the preset use scene of the electronic device or the ambient light brightness of the environment where the electronic device is located, and the manual brightness setting is based on the user's setting of the brightness bar in the system settings or status bar settings. Operate to manually set the brightness of the display.
  • the preset usage scenarios of the electronic device include, but are not limited to, heat restriction, brightness restriction of the front camera, low power mode, face unlocking, and scene recognition.
  • the brightness of the display screen is set and adjusted based on the brightness value of the second brightness range.
  • the brightness animation includes multiple brightness values required to gradually change from the brightness 0 or the last set display brightness to the currently set display brightness, and the brightness The length of the bar varies.
  • the mapping relationship of the third luminance range and the corresponding display luminance of the fourth luminance range are transferred to the hardware abstraction layer.
  • the lighting service LightsService sets the display brightness of the third brightness range as the display backlight brightness of the kernel layer.
  • the display driver circuit drives the display screen at the hardware layer to display based on the set backlight brightness of the display screen.
  • the backlight brightness of the display screen when displaying the user interface is the set backlight brightness
  • the brightness (in nits) presented by the display screen is the display brightness corresponding to the set backlight brightness
  • FIG. 15 it is a flow chart of a method for adjusting brightness of a display screen provided by another embodiment of the present application.
  • the display screen keeps the display screen brightness reset based on the ambient light brightness unchanged.
  • the electronic device 100 can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (Ultra-mobile Personal Computer, UMPC), a netbook, and Cellular phones, personal digital assistants (Personal Digital Assistant, PDA), augmented reality (Augmented Reality, AR) devices, virtual reality (Virtual Reality, VR) devices, artificial intelligence (Artificial Intelligence, AI) devices, wearable devices, automotive device, smart home device and/or smart city device, the embodiment of the present application does not specifically limit the specific type of the electronic device 100 .
  • augmented reality Augmented Reality, AR
  • VR Virtual Reality
  • AI Artificial Intelligence
  • wearable devices wearable devices
  • automotive device smart home device and/or smart city device
  • smart city device the embodiment of the present application does not specifically limit the specific type of the electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (Universal Serial Bus, USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber Identification Module (Subscriber Identification Module, SIM) card interface 195 and so on.
  • SIM Subscriber Identification Module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor, and/or neural network processor (Neural-network Processing Unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is a cache memory.
  • the memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 110 is reduced, thereby improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (Inter-integrated Circuit, I2C) interface, an integrated circuit built-in audio (Inter-integrated Circuit Sound, I2S) interface, a pulse code modulation (Pulse Code Modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (Mobile Industry Processor Interface, MIPI), general-purpose input and output (General-Purpose Input/Output, GPIO) interface, subscriber identity module (Subscriber Identity Module, SIM) interface, and /or Universal Serial Bus (Universal Serial Bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART mobile industry processor interface
  • MIPI Mobile Industry Processor Interface
  • GPIO general-purpose input and output
  • SIM Subscriber Identity Module
  • USB Universal Serial Bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (Serial Data Line, SDA) and a serial clock line (Derail Clock Line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flashlight, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding the analog signal.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (Camera Serial Interface, CSI), display serial interface (Display Serial Interface, DSI), etc.
  • the processor 110 communicates with the display screen 194 through a DSI interface to realize the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the USB interface 130 is an interface conforming to the USB standard specification, specifically, it can be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the interface connection relationship between the modules shown in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the electronic device 100 realizes the display function through the GPU, the display screen 194 , and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diode (Organic Light-Emitting Diode, OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (Active-Matrix Organic Light Emitting Diode, AMOLED), flexible light-emitting diode (Flex Light-Emitting Diode, FLED), Miniled, Microled, Micro-OLED, quantum dot light-emitting diode (Quantum Dot Light Emitting Diodes, QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • the internal memory 121 may include one or more random access memories (Random Access Memory, RAM) and one or more non-volatile memories (Non-Volatile Memory, NVM).
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • Random access memory can include static random access memory (Static Random-Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), synchronous dynamic random access memory (Synchronous Dynamic Random Access Memory, SDRAM), double data rate synchronous Dynamic random access memory (Double Data Rate Synchronous Dynamic Random Access Memory, DDR SDRAM, such as the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.;
  • Non-volatile memory may include magnetic disk storage devices, flash memory (flash memory).
  • flash memory can include NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.
  • it can include single-level storage cells (Single-Level Cell, SLC), multi-level storage cells (Multi-Level Cell, MLC), three-level storage unit (Triple-Level Cell, TLC), fourth-level storage unit (Quad-Level Cell, QLC), etc.
  • UFS Universal Flash Storage
  • eMMC embedded Embedded Multi Media Card
  • the random access memory can be directly read and written by the processor 110, and can be used to store executable programs (such as machine instructions) of an operating system or other running programs, and can also be used to store data of users and application programs.
  • the non-volatile memory can also store executable programs and data of users and application programs, etc., and can be loaded into the random access memory in advance for the processor 110 to directly read and write.
  • the external memory interface 120 can be used to connect an external non-volatile memory, so as to expand the storage capacity of the electronic device 100 .
  • the external non-volatile memory communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and video are stored in an external non-volatile memory.
  • the internal memory 121 or the external memory interface 120 is used to store one or more computer programs.
  • One or more computer programs are configured to be executed by the processor 110 .
  • the one or more computer programs include a plurality of instructions, and when the plurality of instructions are executed by the processor 110, the method for adjusting the brightness of the display screen executed on the electronic device 100 in the above-mentioned embodiment can be implemented, so as to realize the handwriting input display of the electronic device 100 Function.
  • the pressure sensor 180A is used to sense the pressure signal and convert the pressure signal into an electrical signal.
  • pressure sensor 180A may be disposed on display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • a capacitive pressure sensor may be comprised of at least two parallel plates with conductive material.
  • the electronic device 100 determines the intensity of pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view short messages is executed. When a touch operation whose intensity is greater than or equal to the first pressure threshold acts on the icon of the short message application, the instruction of creating a new short message is executed.
  • the touch sensor 180K is also called “touch device”.
  • the touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the position of the display screen 194 .
  • This embodiment also provides a computer storage medium, in which computer instructions are stored, and when the computer instructions are run on the electronic device 100, the electronic device 100 executes the above-mentioned related method steps to realize the display in the above-mentioned embodiment How to adjust screen brightness.
  • This embodiment also provides a computer program product, which, when running on a computer, causes the computer to execute the above related steps, so as to realize the method for adjusting the brightness of the display screen in the above embodiment.
  • an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes the methods for adjusting the brightness of the display screen in the above method embodiments.
  • the electronic device, computer storage medium, computer program product or chip provided in this embodiment is all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the corresponding method provided above The beneficial effects in the method will not be repeated here.
  • the disclosed devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined Or it can be integrated into another device, or some features can be omitted, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the unit described as a separate component may or may not be physically separated, and a component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
  • the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

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)

Abstract

一种显示屏亮度调整方法、电子设备(100)及存储介质,方法包括:响应于自动亮度设置指令,设置显示屏亮度(S401);响应于用户手动调整亮度产生的亮度设置指令,调整显示屏亮度(S402);在显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制(S403);若触发,响应于自动亮度设置指令,再次设置显示屏亮度(S404);响应于用户再次手动调整显示屏亮度的操作,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同(S405);若相同,响应于用户再次手动调整显示屏亮度产生的亮度设置指令,对再次设置的显示屏亮度进行调整(S406)。可以确保在电子设备(100)灭屏再亮屏后设置的显示屏亮度或手动调整的显示屏亮度符合用户需求。

Description

显示屏亮度调整方法、电子设备及存储介质
相关申请的交叉引用
本申请要求在2022年2月28日提交中国专利局、申请号为202210191716.9、申请名称为“显示屏亮度调整方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及显示技术领域,尤其涉及一种显示屏亮度调整方法、电子设备及存储介质。
背景技术
为提升用户使用体验,智能电子设备例如智能手机、平板电脑、智能手表等的显示屏亮度可以根据环境光亮度进行自适应调整。同时,为适应个人需求,用户可以在电子设备自动设置的显示屏亮度的基础上,对显示屏亮度进行手动调整,并且在电子设备灭屏再亮屏后,显示屏通常保持用户手动调整后的亮度。然而,用户可能因误操作调整了显示屏亮度,若仍然保持用户手动调整后的亮度,不适合的显示屏亮度可能导致用户无法正常观看显示屏内容,从而影响用户体验。
发明内容
鉴于以上内容,有必要提供一种显示屏亮度调整方法、电子设备及存储介质,以确保在电子设备灭屏再亮屏后设置的显示屏亮度或手动调整的显示屏亮度符合用户需求。
第一方面,本申请提供一种显示屏亮度调整方法,包括:响应于自动亮度设置指令,设置显示屏亮度;响应于用户手动调整亮度产生的亮度设置指令,调整所述显示屏亮度;在所述显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的所述显示屏亮度的机制;若触发清空用户手动调整的所述显示屏亮度的机制,响应于所述自动亮度设置指令,再次设置所述显示屏亮度;响应于用户再次手动调整显示屏亮度的操作,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同;若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同,响应于用户再次手动调整显示屏亮度产生的亮度设置指令,对再次设置的所述显示屏亮度进行调整。通过上述技术方案,可以在显示屏灭屏并亮屏后,确保用户手动调整的显示屏亮度符合用户实际需求。
在一种可能的实现方式中,所述响应于自动亮度设置指令,设置显示屏亮度包括:判断电子设备的使用场景是否为预设的第一使用场景或第二使用场景;若确定所述电子设备的使用场景为预设的所述第一使用场景,将第一亮度范围内的亮度值确定为所述显示屏亮度;若确定所述电子设备的使用场景为预设的所述第二使用场景,基于第二亮度范围内的亮度值确定所述显示屏亮度;将确定的所述第一亮度范围或所述第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度;基于所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示。通过上述技术方案,可以基于电子设备的使用场景自动设置显示屏亮度,使得设置的显示屏亮度符合用户的实际需求。
在一种可能的实现方式中,预设的所述第一使用场景包括所述电子设备运行视频应用程序、所述电子设备运行二维码软件及所述电子设备处于前置摄像头补光状态,预设的所述第二使用场景包括所述电子设备处于热限制状态、所述电子设备处于前置摄像头亮度限制状态、所述电子设备处于低电量模式、所述电子设备处于人脸解锁状态、所述电子设备处于场景识别状态。通过上述技术方案,可以使得电子设备基于具体的使用场景自动设置显示屏亮度,使得设置的显示屏亮度符合用户的实际需求。
在一种可能的实现方式中,所述响应于自动亮度设置指令,设置显示屏亮度包括:在所述显示屏亮屏时,通过环境光传感器感测所述电子设备所处环境的环境光亮度;响应基于所述环境光亮度产生的自动亮度设置指令,确定所述环境光亮度落入的预设环境光亮度区间;基于所述第二亮度范围内的亮度值和所述预设环境光亮度区间之间的对应关系确定所述环境光亮度落入的预设环境光亮度区间对应的显示屏亮度;将所述第二亮度范围内的显示屏亮度映射为所述第三亮度范围内的显示屏亮度;基于所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示。通过上述技术方案,可以基于电子设备所处环境的环境光亮度自动设置显示屏亮度,使得设置的显示屏亮度与使用环境相适应。
在一种可能的实现方式中,所述在所述显示屏亮屏时,通过环境光传感器感测所述电子设备所处环境的环境光亮度包括:在所述显示屏从灭屏状态变换为亮屏状态时,产生触发指令以触发所述环境光传感器感测环境光,将感测的光信号转换为电信号,并将电信号转换为亮度信息,基于所述亮度信息产生所述自动亮度设置指令。通过上述技术方案,可以在显示屏灭屏再亮屏后,基于环境光亮度自动设置显示屏亮度,使得亮屏后设置的显示屏亮度与使用环境适应。
在一种可能的实现方式中,所述在所述显示屏亮屏时,通过环境光传感器感测所述电子设备所处环境的环境光亮度包括:在所述显示屏处于亮屏状态时,所述环境光传感器以预设采样率感测环境光,将感测的光信号转换为电信号,并将电信号转换为亮度信息,在所述亮度信息产生变化且持续预设时间时,基于所述亮度信息产生所述自动亮度设置指令。通过上述技术方案,可以在电子设备的使用环境的环境光亮度产生变化时,基于环境光亮度自动调整显示屏亮度,使得显示屏亮度与使用环境适应。
在一种可能的实现方式中,所述第一亮度范围、所述第二亮度范围及所述第三亮度范围内的亮度值的映射关系包括所述第一亮度范围内的亮度值对应所述第二亮度范围的一亮度值或一子亮度范围,所述第二亮度范围的子亮度范围对应所述第三亮度 范围的一子亮度范围,所述第二亮度范围内的亮度值对应第三亮度范围的一亮度值或一子亮度范围。通过上述技术方案,可以基于多个亮度范围精确地设置显示屏亮度。
在一种可能的实现方式中,所述第一亮度范围为0-1,所述第二亮度范围为0-255,所述第三亮度范围为0-10000。通过上述技术方案,可以基于不同的亮度范围精确地实现显示屏亮度的映射。
在一种可能的实现方式中,所述基于所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示包括:获取所述显示屏支持的最大显示亮度;基于所述最大显示亮度建立所述第三亮度范围的亮度值与所述显示屏的显示亮度之间的映射关系;基于所述映射关系确定所述第三亮度范围内的显示屏亮度对应的显示亮度;将所述第三亮度范围内的显示屏亮度设置为所述显示屏的背光亮度;显示驱动电路基于所述背光亮度驱动所述显示屏进行显示,使得所述显示屏的实际显示亮度达到所述第三亮度范围内的显示屏亮度对应的显示亮度。通过上述技术方案,可以基于显示屏的背光亮度和实际支持的最大显示亮度驱动显示屏进行显示,使得显示屏实际的显示亮度与电子设备的使用环境适应或符合用户的实际需求。
在一种可能的实现方式中,所述响应于用户手动调整亮度产生的亮度设置指令,调整所述显示屏亮度包括:响应于用户手动调整亮度条的操作,对设置的所述第三亮度范围内的显示屏亮度进行调整;基于调整后的所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示。通过上述技术方案,可以基于用户对于显示屏亮度的喜好对自动设置的显示屏亮度进行调整,使得显示屏亮度进一步符合用户的使用习惯。
在一种可能的实现方式中,所述响应于用户手动调整亮度产生的亮度设置指令,调整所述显示屏亮度还包括:基于所述调整后的显示屏亮度设置所述显示屏的亮度调整动画,并在基于调整后的所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示时,显示所述亮度调整动画。通过上述技术方案,可以呈现亮度调整动画,使得用户可以从视觉上感知到显示屏亮度的调整。
在一种可能的实现方式中,所述基于调整后的显示屏亮度设置所述显示屏的亮度调整动画包括:设置所述显示屏从设置的所述显示屏亮度逐渐变化至调整后的所述显示屏亮度的亮度变化过程,及绘制亮度条以表示调整后的所述显示屏亮度。通过上述技术方案,可以使得用户可以从显示屏亮度的过渡效果和用户界面的亮度条的调整这两个维度的视觉上感知到显示屏亮度的调整。
在一种可能的实现方式中,所述在所述显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制包括:在所述显示屏灭屏后重新亮屏时,判断是否满足以下至少一个预设条件:当前时刻与用户上一次手动调整显示屏亮度时刻之间的时间间隔大于或等于第一预设时间间隔、所述显示屏亮屏且亮屏时刻与上一次灭屏时刻之间的时间间隔大于或等于第二预设时间间隔及用户上一次手动调整显示屏亮度时的环境光亮度大于或等于预设亮度;若满足所述至少一预设条件,确定触发清空用户手动调整的显示屏亮度的机制;若所述预设条件都不满足,确定不触发清空用户手动调整的显示屏亮度的机制。通过上述技术方案,可以在满足预设条件的情况下触发清空用户对于自动设置的显示屏亮度的喜好,使得显示屏亮度的设置符合用户的实际需求。
在一种可能的实现方式中,响应于用户再次手动调整显示屏亮度的操作指令,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同包括:在所述显示屏侦测到用户再次手动调整亮度条的操作时,判断用户再次手动调整亮度条的操作是否与上一次手动调整亮度条的操作相同;若确定用户再次手动调整亮度条的操作与上一次手动调整亮度条的操作相同,确定用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同;若确定用户再次手动调整亮度条的操作与上一次手动调整亮度条的操作不同,确定用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同。通过上述技术方案,可以通过判定调整亮度条的操作一致时再进行显示屏亮度的调整,确保显示屏亮度的手动调整符合用户的需求。
在一种可能的实现方式中,所述方法还包括:若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同,保持再次设置的所述显示屏亮度不变。通过上述技术方案,可以通过判定调整亮度条的操作不一致时不进行显示屏亮度的调整,避免用户的误操作导致对显示屏亮度的调整。
在一种可能的实现方式中,所述方法还包括:若未触发清空用户手动调整的显示屏亮度的机制,保持上一次调整的所述显示屏亮度不变。通过上述技术方案,可以在未触发清空用户对于自动设置的显示屏亮度的喜好时,保持显示屏亮度不变,使得显示屏亮度的设置符合用户的实际需求。
在一种可能的实现方式中,所述方法还包括:响应于电子设备重启或自动亮度调整选项重启产生的自动亮度设置指令,重新设置显示屏亮度。通过上述技术方案,可以在电子设备重启或自动亮度调整选项重启时,重新自动设置显示屏亮度,以清空自动设置或手动调整的显示屏亮度。
在一种可能的实现方式中,所述方法还包括:响应于电子设备使用环境的变化产生的亮度调整指令,对上一次调整后的显示屏亮度进行调整。通过上述技术方案,可以在使用环境产生变化时,对手动调整的显示屏亮度进行适应性调整。
在一种可能的实现方式中,所述响应于电子设备使用环境的变化产生的亮度调整指令,对上一次调整后的显示屏亮度进行调整包括:通过环境光传感器感测所述电子设备所处环境的环境光亮度;在所述环境光传感器感测到的环境光亮度产生变化时,确定所述电子设备的使用环境产生变化,并产生所述亮度调整指令;响应于所述亮度调整指令,对用户上一次手动调整后的显示屏亮度进行调整。通过上述技术方案,可以通过侦测环境光亮度的变化来确定电子设备的使用环境产生变化,进而对手动调整的显示屏亮度进行适应性调整。
第二方面,本申请提供一种电子设备,所述电子设备包括存储器和处理器,其中,所述存储器,用于存储程序指令;所述处理器,用于读取并执行所述存储器中存储的所述程序指令,当所述程序指令被所述处理器执行时,使得所述电子设备执行以上的显示屏亮度调整方法。
第三方面,本申请提供一种计算机存储介质,所述计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行以上的显示屏亮度调整方法。
另外,第二方面至第三方面所带来的技术效果可参见上述方法部分各设计的方法相关的描述,此处不再赘述。
本申请实施例提供的显示屏亮度调整方法、电子设备及存储介质可以基于清空用户手动调整的显示屏亮度的机制未触发,在显示屏灭屏并亮屏后保持用户手动调整的显示屏亮度不变,基于清空用户手动调整的显示屏亮度的机制触发,在显示屏灭屏并亮屏后重新自动设置显示屏亮度,并基于相同的用户手动调整操作调整显示屏亮度,确保在电子设备灭屏再亮屏后自动设置的显示屏亮度或用户手动调整的显示屏亮度符合用户的实际需求,保障用户可以正常观看显示屏内容,从而提升用户体验。
附图说明
图1A是本申请一实施例提供的显示屏亮度示意图。
图1B是本申请一实施例提供的显示屏亮度调整界面的示意图。
图1C是本申请一实施例提供的默认亮度曲线和手动调整后的亮度曲线的示意图。
图2是现有技术中显示屏亮度的调整架构示意图。
图3是本申请一实施例提供的电子设备的软件架构图。
图4是本申请一实施例提供的显示屏亮度调整方法的流程图。
图5是本申请一实施例提供的基于电子设备的使用场景产生的自动亮度设置指令设置显示屏亮度的流程图。
图6是本申请另一实施例提供的基于电子设备的使用场景产生的自动亮度设置指令设置显示屏亮度的流程图。
图7是本申请一实施例提供的亮度值与预设环境光亮度区间之间的对应关系表。
图8A是本申请一实施例提供的设置界面的亮度条示意图。
图8B是本申请一实施例提供的状态栏界面的亮度条示意图。
图9是本申请一实施例提供的响应于用户手动调整亮度产生的亮度设置指令调整显示屏亮度的流程图。
图10A是本申请一实施例提供的用户在状态栏界面调整亮度条的示意图。
图10B是本申请一实施例提供的手动调整后的状态栏界面的亮度条示意图。
图11A是本申请一实施例提供的用户在设置界面调整亮度条的示意图。
图11B是本申请一实施例提供的手动调整后的设置界面的亮度条示意图。
图12是本申请另一实施例提供的显示屏亮度调整方法的流程图。
图13是本申请另一实施例提供的显示屏亮度调整方法的流程图。
图14是本申请一实施例提供的显示屏亮度传递的框架图。
图15是本申请另一实施例提供的显示屏亮度调整方法的流程图。
图16是本申请一实施例提供的电子设备的硬件架构图。
具体实施方式
为了便于理解,示例性的给出了部分与本申请实施例相关概念的说明以供参阅。
需要说明的是,本申请实施例中所涉及的术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“/”表示或的意思。例如,A/B可以表示A或B。本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B三种情况。“至少一个”是指一个或者多个。“多个”是指两个或多于两个。例如,a、b或c中的至少一个,可以表示:a,b,c,a和b,a和c,b和c,a、b和c七种情况。
本申请实施例中的用户界面(User Interface,UI),是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,可实现信息的内部形式与用户可以接受形式之间的转换。应用程序的用户界面是通过JAVA、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析、渲染,最终呈现为用户可以识别的内容,比如图片、文字、按钮等控件。控件(control),是用户界面的基本元素,典型的控件有按钮(button)、小工具(widget)、工具栏(toolbar)、菜单栏(menu bar)、文本框(text box)、滚动条(scrollbar)、图片(image)和文本(text)。界面中的控件的属性和内容是通过标签或者节点来定义的,比如XML通过<Textview>、<ImgView>、<VideoView>等节点来规定界面所包含的控件。一个节点对应界面中一个控件或属性,节点经过解析和渲染之后呈现为用户可视的内容。此外,很多应用程序,比如混合应用(hybrid application)的界面中通常还包含有网页。网页,也称为页面,可以理解为内嵌在应用程序界面中的一个特殊的控件,网页是通过特定计算机语言编写的源代码,例如超文本标记语言(hyper text markup language,HTML),层叠样式表(cascading style sheets,CSS),JAVA脚本(JavaScript,JS)等,网页源代码可以由浏览器或与浏览器功能类似的网页显示组件加载和显示为用户可识别的内容。网页所包含的具体内容也是通过网页源代码中的标签或者节点来定义的,比如HTML通过<p>、<img>、<video>、<canvas>来定义网页的元素和属性。
用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素。
在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
为了更好地理解本申请实施例提供的显示屏亮度调整方法,下面首先对本申请显示屏亮度调整方法的应用场景进行描述。
参阅图1A所示,为本申请实施例提供的显示屏亮度示意图。在显示屏亮屏时,电子设备的环境光传感器可以采集环境光亮度,并基于环境光亮度设置合适的显示屏亮度。例如,在环境光亮度为5lux(勒克斯)时,显示屏亮度设置为18阶,在环境光亮度为20lux时,显示屏亮度设置为58阶。
参阅图1B所示,为本申请实施例提供的显示屏亮度调整界面的示意图。由于不同用户对电子设备自动设置的显示屏亮度的喜好程度不一致,或同一用户在不同环境光亮度下对电子设备自动设置的显示屏亮度的喜好程度不一致,用户可以在显示屏亮度调整界面上拖动亮度条,从而在电子设备自动设置的显示屏亮度的基础上,手动调整显示屏亮度,使得显示屏亮度适应个人需求。例如,如图1A所示,在环境光亮度为50lux时,显示屏亮度设置为87.5阶,用户手动调整后的显示屏亮度为107.98阶,在环境光亮度为100lux时,显示屏亮度设置为95阶,用户手动调整后的显示屏亮度为120.6阶。
参阅图1C所示,为本申请实施例提供的默认亮度曲线和手动调整后的亮度曲线的示意图。在不同的环境光亮度下,电子设备的默认亮度曲线L1与用户手动调整后的亮度曲线L2存在差异。
参阅图2所示,为现有技术中显示屏亮度的调整架构示意图。用户在手动调整显示屏亮度后,在使用环境不变(即环境光亮度不变)的情况下,电子设备经过灭屏再亮屏,显示屏亮度保持不变,即仍然保持用户调整后的显示屏亮度。在使用环境产生变化(即环境光亮度产生变化)的情况下,电子设备经过灭屏再亮屏,可以基于变化后的环境光亮度对显示屏亮度进行适应性调整。例如,在环境光亮度增大时,提高用户调整后的显示屏亮度,在环境光亮度减小时,减小用户调整后的显示屏亮度。
然而,用户可能不接受对于不同环境光亮度下电子设备自适应调整的显示屏亮度,如此,在使用环境产生变化时,电子设备在灭屏并亮屏后自适应调整的显示屏亮度不符合用户需求,导致用户无法正常观看显示屏内容,从而影响用户体验。此外,用户可能因误操作而手动调整了显示屏亮度,如此,无论在使用环境不变时电子设备保持手动调整后的显示屏亮度,以及使用环境变化时电子设备自适应调整的显示屏亮度都不符合用户需求,导致用户无法正常观看显示屏内容,从而影响用户体验。
参阅图3所示,为本申请实施例提供的电子设备的软件架构图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。例如,将安卓系统分为四层,从上至下分别为应用程序层101,框架层102,安卓运行时(Android runtime)和系统库103,硬件抽象层104,内核层105以及硬件层106。
应用程序层可以包括一系列应用程序包。例如,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,设备控制服务等应用程序。
框架层为应用程序层的应用程序提供应用编程接口(Application Programming Interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。例如,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
其中,窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和框架层运行在虚拟机中。虚拟机将应用程序层和框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如,表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如SGL)等。
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
硬件抽象层运行于用户空间,对内核层驱动进行封装,向上层提供调用接口。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
内核层是电子设备的操作系统的核心,是基于硬件的第一层软件扩充,提供操作系统最基本的功能,是操作系统工作的基础,负责管理系统的进程、内存、设备驱动程序、文件和网络系统,决定了系统的性能和稳定性。例如,内核可以决定一个应用程序对某部分硬件的操作时间。
内核层包括与硬件紧密相关的程序,例如中断处理程序、设备驱动程序等,还包括基本的、公共的、运行频率较高的模块,例如时钟管理模块、进程调度模块等,还包括关键性的数据结构。内核层可以设置于处理器中,或固化在内部存储器。
硬件层为电子设备的硬件,硬件层至少包括显示屏194。
为解决上述电子设备自适应调整的显示屏亮度不符合用户需求,导致用户无法正常观看显示屏内容的问题,本申请实施例提供一种显示屏亮度调整方法。
参阅图4所示,为本申请一实施例提供的显示屏亮度调整方法的流程图。所述方法应用于电子设备中,所述显示屏亮度调整方法包括:
S401,响应于自动亮度设置指令,设置显示屏亮度。
在本申请的一实施例中,设置的显示屏亮度为显示屏的背光亮度等级,单位是阶。响应于自动亮度设置指令,设置显示屏亮度的细化流程包括:基于电子设备的使用场景产生的自动亮度设置指令,设置显示屏亮度。
在本申请的一实施例中,基于电子设备的使用场景产生的自动亮度设置指令,设置显示屏亮度的细化流程如图5所示,具体包括:
S501,判断电子设备的使用场景是否为预设的第一使用场景或第二使用场景。
在本申请的一实施例中,判断电子设备的使用场景是否为预设的第一使用场景或第二使用场景由应用程序层执行。
电子设备至少预设有第一使用场景和第二使用场景。预设的第一使用场景包括,但不局限于电子设备运行视频应用程序、电子设备运行二维码软件及电子设备处于前置摄像头补光状态。具体地,电子设备运行二维码软件为电子设备的显示屏正在显示二维码。电子设备处于前置摄像头补光状态为电子设备正在使用前置摄像头进行拍摄且环境光亮度小于预设亮度。可选地,预设亮度为20lux。预设的第二使用场景包括,但不局限于电子设备处于热限制状态、电子设备处于前置摄像头亮度限制状态、电子设备处于低电量模式、电子设备处于人脸解锁状态、电子设备处于场景识别状态。具体地,电子设备处于热限制状态为电子设备的壳体温度或主板温度大于或等于阈值温度。可选地,阈值温度为50℃。电子设备处于前置摄像头亮度限制状态为电子设备正在使用前置摄像头进行拍摄。电子设备处于低电量模式为电子设备的电量小于或等于预设百分比。可选地,预设百分比为20%。电子设备处于人脸解锁状态为电子设备亮屏且处于锁定状态进行人脸解锁的状态。电子设备处于场景识别状态为电子设备开启后置摄像头进行拍摄以识别目标物件的状态。
S502,若确定电子设备的使用场景为预设的第一使用场景,将第一亮度范围内的亮度值确定为显示屏亮度。
在本申请的一实施例中,若确定电子设备的使用场景为预设的第一使用场景,传递自动亮度设置指令至框架层的电源(power)框架(例如,如图3所示,框架层102包括电源框架1021),由电源框架将第一亮度范围内的亮度值确定为显示屏亮度。
可选地,第一亮度范围为0-1。若确定电子设备的使用场景为预设的第一使用场景,可以将第一亮度范围内的任一亮度值确定为显示屏亮度,例如,将第一亮度范围0-1内的亮度值1确定为显示屏亮度。
需要说明的是,在第一使用场景下,例如电子设备正在播放视频、正在显示二维码或在较低的环境光亮度下使用前置摄像头进行拍照时,需要设置较高或最高的显示屏亮度,所需的显示屏亮度阶数较小,因此基于较小的亮度范围获取显示屏亮度。
S503,若确定电子设备的使用场景为预设的第二使用场景,基于第二亮度范围的亮度值确定显示屏亮度。
在本申请的一实施例中,若确定电子设备的使用场景为预设的第二使用场景,传递自动亮度设置指令至框架层的电源框架,由电源框架基于第二亮度范围确定显示屏亮度。
在本申请的一实施例中,第二亮度范围可划分为多个子亮度范围,不同的子亮度范围可以与不同的使用场景进行关联。基于第二亮度范围的亮度值确定显示屏亮度包括:确定第二使用场景在第二亮度范围内对应的子亮度范围,基于环境光亮度确定子亮度范围内的亮度值,将所述子亮度范围内的亮度值确定为显示屏亮度。可选地,第二亮度范围为0-255。其中,电子设备预先配置有环境光亮度与第二亮度范围中的子亮度范围或亮度值之间的对应关系。
具体地,若第二使用场景为电子设备处于热限制状态或电子设备处于低电量模式,需要设置较低的显示屏亮度,确定子亮度范围为0-50,同时,通过环境光传感器感测电子设备所处环境的环境光亮度,基于感测的环境光亮度确定子亮度范围内的亮度值,并将所述亮度值确定为显示屏亮度。
若第二使用场景为电子设备处于前置摄像头亮度限制状态、电子设备处于人脸解锁状态或电子设备处于场景识别状态,需要设置较高的显示屏亮度,确定子亮度范围为180-255,同时,通过环境光传感器感测电子设备所处环境的环境光亮度,基于感测的环境光亮度确定子亮度范围内的亮度值,并将所述亮度值确定为显示屏亮度。在本申请的另一实施例中,若第二使用场景为电子设备处于前置摄像头亮度限制状态、电子设备处于人脸解锁状态或电子设备处于场景识别状态,可以将第二亮度范围内的最大亮度值确定为显示屏亮度。例如,将亮度值255确定为显示屏亮度。
S504,将第一亮度范围或第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度。
在本申请的一实施例中,将第一亮度范围或第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度由框架层执行。
在本申请的一实施例中,第一亮度范围、第二亮度范围及第三亮度范围内的亮度值的映射关系由电子设备预先配置,包括:第一亮度范围内的亮度值对应第二亮度范围的一亮度值或一子亮度范围,第二亮度范围的子亮度范围对应第三亮度范围的一子亮度范围,第二亮度范围内的亮度值对应第三亮度范围的一亮度值或一子亮度范围。可选地,第三亮度范围为0-10000。
在本申请的一实施例中,将第一亮度范围或第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度包括:将第一亮度范围内的显示屏亮度映射为第二亮度范围内的亮度值或子亮度范围,再将第二亮度范围内的亮度值或子亮度范围映射为第三亮度范围内的显示屏亮度,或,将第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度。
例如,在电子设备正在显示二维码时,确定的显示屏亮度为第一亮度范围内的亮度值1,所述显示屏亮度映射得到第二亮度范围内的亮度值255,再映射得到第三亮度范围内的亮度值10000,作为第三亮度范围内的显示屏亮度。
例如,在电子设备处于低电量模式时,确定的显示屏亮度为第二亮度范围内的亮度值25,所述显示屏亮度映射得到第三亮度范围内的子亮度范围为900-1200,然 后可以确定所述子亮度范围900-1200内的任一亮度值为第三亮度范围内的显示屏亮度。
S505,基于所述第三亮度范围内的显示屏亮度驱动显示屏进行显示。
在本申请的一实施例中,如图3所示,硬件抽象层104包括灯光服务(LightsService)1041,用于对电子设备的光设备进行控制,内核层105包括显示驱动电路1051。其中,光设备包括,但不局限于显示屏背光光源、指示灯。
在本申请的一实施例中,基于所述第三亮度范围内的显示屏亮度驱动显示屏进行显示包括:在框架层,获取显示屏支持的最大显示亮度,基于最大显示亮度建立第三亮度范围的亮度值与显示屏显示亮度之间的映射关系,基于映射关系确定所述第三亮度范围内的显示屏亮度对应的显示亮度,将所述第三亮度范围内的显示屏亮度和对应的显示亮度传递至硬件抽象层;在硬件抽象层,由灯光服务将确定的所述第三亮度范围内的显示屏亮度设置为内核层中显示屏的背光亮度;在内核层,显示驱动电路基于设置的背光亮度驱动显示屏进行显示,使得显示屏的实际显示亮度达到显示屏亮度对应的显示亮度。
需要说明的是,第一亮度范围、第二亮度范围及第三亮度范围内的显示屏亮度用于表示显示屏的背光亮度等级,单位是阶(level),显示屏的显示亮度为显示屏在显示过程中实际呈现的光强度,单位为nit(尼特)。
在本申请的另一实施例中,在电子设备的默认使用场景(即,除以上实施例中的预设使用场景之外的其他使用场景)下,响应于自动亮度设置指令,设置显示屏亮度的细化流程参阅图6所示,具体包括:
S601,在显示屏亮屏时,通过环境光传感器感测电子设备所处环境的环境光亮度。
在本申请的一实施例中,显示屏亮屏为显示屏从灭屏状态变换为亮屏状态。在显示屏亮屏时,通过环境光传感器感测电子设备所处环境的环境光亮度由内核层执行,包括:在显示屏从灭屏状态变换为亮屏状态时,产生触发指令以触发环境光传感器开始工作,环境光传感器感测环境光,将感测的光信号转换为电信号,并将电信号转换为亮度信息,基于亮度信息产生自动亮度设置指令。其中,转换得到的亮度信息即为电子设备所处环境的环境光亮度。
在本申请的另一实施例中,显示屏亮屏为显示屏持续处于亮屏状态。在显示屏亮屏时,通过环境光传感器感测电子设备所处环境的环境光亮度包括:在显示屏处于亮屏状态时,环境光传感器以预设采样率感测环境光,将感测的光信号转换为电信号,并将电信号转换为亮度信息,在感测得到的亮度信息产生变化且持续预设时间时,基于亮度信息产生自动亮度设置指令。
S602,响应基于感测的环境光亮度产生的自动亮度设置指令,确定环境光亮度落入的预设环境光亮度区间。
在本申请的一实施例中,内核层将环境光传感器感测的环境光亮度传递至框架层,在框架层,由电源框架确定环境光亮度落入的预设环境光亮度区间。
在本申请的一实施例中,电子设备预设有多个环境光亮度区间。可选地,多个预设环境光亮度区间包括第一区间[0,200lux)、第二区间[200lux,400lux)、第三区间[400lux,1000lux)、第四区间[1000lux,3000lux)及第五区间[3000lux,∞)。
例如,若环境光传感器感测的环境光亮度为300lux,则确定环境光亮度落入的预设环境光亮度区间为第二区间。
S603,基于第二亮度范围内的亮度值和预设环境光亮度区间之间的对应关系确定环境光亮度落入的预设环境光亮度区间对应的显示屏亮度。
在本申请的一实施例中,确定环境光亮度落入的预设环境光亮度区间对应的显示屏亮度在框架层由电源框架执行。其中,所述显示屏亮度为第二亮度范围中的亮度值。可选地,第二亮度范围为0-255。
参阅图7所示,为本申请一实施例提供的第二亮度范围的亮度值与预设环境光亮度区间之间的对应关系表。在本申请的一实施例中,电子设备还设置有第二亮度范围的多个亮度值与多个预设环境光亮度区间之间的对应关系。例如,第一区间对应的亮度值为25,第二区间对应的亮度值为55,第三区间对应的亮度值为70,第四区间对应的亮度值为120,第五区间对应的亮度值为250。
在本申请的一实施例中,S602-S603的功能由getCurrentDefaultBrightness程序实现。
S604,将第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度。
在本申请的一实施例中,将第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度由框架层执行。
例如,环境光亮度落入的预设环境光亮度区间对应的第二亮度范围内的显示屏亮度为120,所述显示屏亮度映射得到第三亮度范围内的子亮度范围为4500-5000,然后可以确定所述子亮度范围4500-5000内的任一亮度值为第三亮度范围内的显示屏亮度。
S605,基于所述第三亮度范围内的显示屏亮度驱动显示屏进行显示。
在本申请的一实施例中,基于所述第三亮度范围内的显示屏亮度驱动显示屏进行显示包括:在框架层,获取显示屏支持的最大显示亮度,基于最大显示亮度建立第三亮度范围的亮度值与显示屏显示亮度之间的映射关系,基于映射关系确定所述第三亮度范围内的显示屏亮度对应的显示亮度,将所述第三亮度范围内的显示屏亮度和对应的显示亮度传递至硬件抽象层;在硬件抽象层,由灯光服务(LightsService)将确定的第三亮度范围的显示屏亮度设置为内核层中显示屏的背光亮度;在内核层,显示驱动电路基于设置的背光亮度驱动显示屏进行显示,使得显示屏的实际显示亮度达到显示屏亮度对应的显示亮度。
在本申请的另一实施例中,基于电子设备的使用场景产生的自动亮度设置指令,设置显示屏亮度还包括:基于确定的显示屏亮度设置显示屏的亮度设置动画,并在基于所述第三亮度范围内的显示屏亮度驱动显示屏进行显示时,显示所述亮度设置动画。
在本申请的所述另一实施例中,基于设置的显示屏亮度设置显示屏的亮度设置动画包括:确定显示屏从前一亮度逐渐变化至所述显示屏亮度的亮度变化过程,以及绘制亮度条以表示所述显示屏亮度。
在本申请的所述另一实施例中,设置显示屏从前一亮度逐渐变化至所述显示屏亮度的亮度变化过程包括:设置前一亮度与所述显示屏亮度之间的多个亮度值。绘制亮度条以表示所述显示屏亮度包括:绘制一实际长度与阈值长度的比例等于显示屏的实际亮度与最大亮度的比例的亮度条。其中,所述亮度条包括电子设备的设置(setting)界面的亮度条(如图8A所示)和状态栏(SystemUI)界面的亮度条(如图8B所示)。
在本申请的所述另一实施例中,在基于所述第三亮度范围内的显示屏亮度驱动显示屏进行显示的过程中,显示屏亮度基于设置的前一亮度与所述显示屏亮度之间的多个亮度值逐渐变化至所述显示屏亮度。同时,设置界面和状态栏界面的亮度条逐渐变化为当前绘制完成的亮度条。
S402,响应于用户手动调整亮度产生的亮度设置指令,调整显示屏亮度。
在本申请的一实施例中,响应于用户手动调整亮度产生的亮度设置指令,调整显示屏亮度的细化流程如图9所示,具体包括:
S4021,响应于用户手动调整亮度条的操作,对设置的第三亮度范围内的显示屏亮度进行调整。
在本申请的一实施例中,响应于用户手动调整亮度条的操作,对设置的第三亮度范围内的显示屏亮度进行调整包括:在用户向右滑动亮度条时,通过updateSaveOffsetTime程序记录显示屏亮度的增加值,在用户停止滑动亮度条时,将显示屏亮度调整为设置的第三亮度范围内的显示屏亮度与显示屏亮度的增加值相加得到的和;在用户向左滑动亮度条时,通过updateSaveOffsetTime程序记录显示屏亮度的减少值,在用户停止滑动亮度条时,将显示屏亮度调整为设置的第三亮度范围内的显示屏亮度与显示屏亮度的减少值相减得到的差。
例如,参阅图10A所示,用户向右滑动状态栏界面的亮度条22,开始记录显示屏亮度的增加值,参阅图10B所示,在用户停止滑动状态栏界面的亮度条时22,确定显示屏亮度的增加值。
例如,参阅图11A所示,用户向左滑动设置界面的亮度条21,开始记录显示屏亮度的增加值,参阅图11B所示,在用户停止滑动设置界面的亮度条时21,确定显示屏亮度的减少值。
在本申请的一实施例中,响应于用户手动调整亮度条的操作,对设置的第三亮度范围内的显示屏亮度进行调整还包括:通过updateSaveOffsetTime程序记录对设置的第三亮度范围内的显示屏亮度调整完成的时刻。
S4022,基于调整后的所述第三亮度范围内的显示屏亮度驱动显示屏进行显示。
在本申请的一实施例中,基于调整后的所述第三亮度范围内的显示屏亮度驱动显示屏进行显示包括:在框架层,基于第三亮度范围的亮度值与显示屏显示亮度之间的映射关系确定调整后的所述第三亮度范围内的显示屏亮度对应的显示亮度,将调整后的所述第三亮度范围内的显示屏亮度和对应的显示亮度传递至硬件抽象层;在硬件抽象层,由灯光服务(LightsService)将调整后的所述第三亮度范围内的显示屏亮度设置为内核层中显示屏的背光亮度;在内核层,显示驱动电路基于设置的背光亮度驱 动显示屏进行显示,使得显示屏的实际显示亮度达到调整后的所述第三亮度范围内的显示屏亮度对应的显示亮度。
在本申请的另一实施例中,响应于用户手动调整亮度产生的亮度设置指令,调整显示屏亮度还包括:基于调整后的显示屏亮度设置显示屏的亮度调整动画,并在基于调整后的所述第三亮度范围内的显示屏亮度驱动显示屏进行显示时,显示所述亮度调整动画。
在本申请的所述另一实施例中,基于调整后的显示屏亮度设置显示屏的亮度调整动画包括:设置显示屏从设置的显示屏亮度逐渐变化至调整后的所述显示屏亮度的亮度变化过程,以及绘制亮度条以表示调整后的所述显示屏亮度。
在本申请的所述另一实施例中,设置显示屏从设置的显示屏亮度逐渐变化至调整后的所述显示屏亮度的亮度变化过程包括:确定设置的显示屏亮度与调整后的所述显示屏亮度之间的多个亮度值。绘制亮度条以表示调整后的所述显示屏亮度包括:绘制一实际长度与阈值长度的比例等于调整后的显示屏亮度与最大亮度的比例的亮度条。
在本申请的所述另一实施例中,在基于调整后的所述第三亮度范围内的显示屏亮度驱动显示屏进行显示的过程中,显示屏亮度基于设置的显示屏亮度与调整后的所述显示屏亮度之间的多个亮度值从设置的显示屏亮度逐渐变化至调整后的所述显示屏亮度。同时,设置界面和状态栏界面的亮度条逐渐变化至当前绘制完成的亮度条。
S403,在显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制。
在本申请的一实施例中,在显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制包括:在显示屏灭屏后重新亮屏时,判断是否满足如下所述的至少一个预设条件:当前时刻与用户上一次手动调整显示屏亮度时刻之间的时间间隔大于或等于第一预设时间间隔、显示屏亮屏且亮屏时刻与上一次灭屏时刻之间的时间间隔大于或等于第二预设时间间隔以及用户上一次手动调整显示屏亮度时的环境光亮度大于或等于预设亮度。若满足上述至少一预设条件,确定触发清空用户手动调整的显示屏亮度的机制。若上述所有预设条件都不满足,确定不触发清空用户手动调整的显示屏亮度的机制。
在本申请的一实施例中,第一预设时间间隔小于第二预设时间间隔。可选地,第一预设时间间隔为4小时,第二预设时间间隔为8小时,预设亮度为45lux。
在显示屏灭屏后重新亮屏时,若当前时刻与用户上一次手动调整显示屏亮度时刻之间的时间间隔大于或等于第一预设时间间隔,说明当前时刻与用户上一次手动调整显示屏亮度的时刻之间的时间间隔较长,可以忽略用户手动调整的显示屏亮度,因此,触发清空用户手动调整的显示屏亮度的机制。若当前时刻与用户上一次手动调整显示屏亮度时刻之间的时间间隔小于第一预设时间间隔,说明当前时刻与用户上一次手动调整显示屏亮度的时刻之间的时间间隔较短,继续采用用户手动调整的显示屏亮度,因此,不触发清空用户手动调整的显示屏亮度的机制。
在显示屏灭屏后重新亮屏时,若显示屏亮屏且亮屏时刻与上一次灭屏时刻之间的时间间隔大于或等于第二预设时间间隔,说明亮屏时刻与上一次灭屏时刻之间的时间间隔较长,可以忽略用户手动调整的显示屏亮度,因此,触发清空用户手动调整的 显示屏亮度的机制。若显示屏亮屏且亮屏时刻与上一次灭屏时刻之间的时间间隔小于第二预设时间间隔,说明亮屏时刻与上一次灭屏时刻之间的时间间隔较短,继续采用用户手动调整的显示屏亮度,因此,不触发清空用户手动调整的显示屏亮度的机制。
在显示屏灭屏后重新亮屏时,若用户上一次手动调整显示屏亮度时的环境光亮度大于或等于预设亮度,说明用户可能只习惯在环境光亮度较大时手动调整显示屏亮度,因此,在重新亮屏后触发清空用户手动调整的显示屏亮度的机制。若用户上一次手动调整显示屏亮度时的环境光亮度小于预设亮度,说明用户习惯在任意环境光亮度下手动调整显示屏亮度,因此,在重新亮屏后不触发清空用户手动调整的显示屏亮度的机制。
在本申请的一实施例中,用户上一次手动调整显示屏亮度时刻为通过updateSaveOffsetTime程序记录的对第三亮度范围内的显示屏亮度调整完成的时刻,显示屏每次亮屏的时刻由updatebrightScreenTime()程序记录,显示屏每次灭屏的时刻由updateoffScreenTime()程序记录。
S404,若清空用户手动调整的显示屏亮度的机制触发,响应于自动亮度设置指令,再次设置显示屏亮度。
在本申请的一实施例中,若清空用户手动调整的显示屏亮度的机制触发,忽略用户上一次手动调整的显示屏亮度,响应于自动亮度设置指令,再次设置默认的显示屏亮度。
S405,响应于用户再次手动调整显示屏亮度的操作,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同。
在本申请的一实施例中,响应于用户再次手动调整显示屏亮度的操作指令,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同包括:在触控显示屏侦测到用户再次手动调整亮度条的操作时,判断用户再次手动调整亮度条的操作是否与上一次手动调整亮度条的操作相同。若确定用户再次手动调整亮度条的操作与上一次手动调整亮度条的操作相同,例如,若用户再次手动调整亮度条的操作和上一次手动调整亮度条的操作均为向右滑动亮度条,确定用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同。若确定用户再次手动调整亮度条的操作与上一次手动调整亮度条的操作不同,例如,若用户再次手动调整亮度条的操作为向左滑动亮度条,上一次手动调整亮度条的操作为向右滑动亮度条,确定用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同。
S406,若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同,响应于用户再次手动调整显示屏亮度产生的亮度设置指令,对再次设置的显示屏亮度进行调整。
在本申请的一实施例中,若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同,说明用户连续两次手动调整显示屏亮度的习惯相同,确认用户有再次通过手动调整显示屏亮度的需求,因此响应于用户再次手动调整显示屏亮度产生的亮度设置指令,再次调整显示屏亮度,即,对再次设置的显示屏亮度进行调整。
S407,若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同,保持再次设置的显示屏亮度不变。
在本申请的一实施例中,若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同,说明用户连续两次手动调整显示屏亮度的习惯不同,确认用户没有再次手动调整显示屏亮度的需求,并确认用户再次手动调整显示屏亮度的操作为误操作,因此保持再次自动设置的显示屏亮度不变。
S408,若清空用户手动调整的显示屏亮度的机制未触发,保持上一次调整的显示屏亮度不变。
在本申请的一实施例中,若清空用户手动调整的显示屏亮度的机制未触发,继续采用用户上一次手动调整的显示屏亮度,因此,保持上一次手动调整的显示屏亮度不变。
参阅图12所示,为本申请另一实施例提供的显示屏亮度调整方法的流程图。所述方法应用于电子设备中,所述显示屏亮度调整方法包括:
S701,响应于自动亮度设置指令,设置显示屏亮度。
S702,响应于用户手动调整亮度产生的亮度设置指令,调整显示屏亮度。
S703,在显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制。
S704,若清空用户手动调整的显示屏亮度的机制触发,响应于自动亮度设置指令,再次设置显示屏亮度。
S705,响应于用户再次手动调整显示屏亮度的操作,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同。
若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同,S706,响应于用户再次手动调整显示屏亮度产生的亮度设置指令,对再次设置的显示屏亮度进行调整。
若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同,S707,保持再次设置的显示屏亮度不变。
S708,若清空用户手动调整的显示屏亮度的机制未触发,保持上一次调整的显示屏亮度不变。
S709,响应于电子设备重启或自动亮度调整选项重启产生的自动亮度设置指令,重新设置显示屏亮度。
在本申请的一实施例中,在电子设备重启后,忽略用户上一次手动调整的显示屏亮度,产生自动亮度设置指令,重新自动设置显示屏亮度,然后返回S702。
在本申请的一实施例中,如图11A所示,电子设备在设置界面设置有自动亮度调整选项23,在自动亮度调整选项23由关闭再重新开启后,忽略用户上一次手动调整的显示屏亮度,产生自动亮度设置指令,重新自动设置显示屏亮度。
参阅图13所示,为本申请另一实施例提供的显示屏亮度调整方法的流程图。所述方法应用于电子设备中,所述显示屏亮度调整方法包括:
S801,响应于自动亮度设置指令,设置显示屏亮度。
S802,响应于用户手动调整亮度产生的亮度设置指令,调整显示屏亮度。
S803,在显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制。
若清空用户手动调整的显示屏亮度的机制触发,S804,响应于自动亮度设置指令,再次设置显示屏亮度。
S805,响应于用户再次手动调整显示屏亮度的操作,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同。
若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同,S806,响应于用户再次手动调整显示屏亮度产生的亮度设置指令,对再次设置的显示屏亮度进行调整。
若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同,S807,保持再次设置的显示屏亮度不变。
若清空用户手动调整的显示屏亮度的机制未触发,S808,保持上一次调整的显示屏亮度不变。
S809,响应于电子设备使用环境的变化产生的亮度调整指令,对上一次调整后的显示屏亮度进行调整。
在本申请的一实施例中,响应于电子设备使用环境的变化产生的亮度调整指令,对上一次调整后显示屏亮度进行调整包括:通过环境光传感器感测电子设备所处环境的环境光亮度,在环境光传感器感测到的环境光亮度产生变化,确定电子设备的使用环境产生变化,产生亮度调整指令,并响应于亮度调整指令,对用户上一次手动调整后的显示屏亮度进行调整。
具体地,若环境光传感器感测到的环境光亮度变大,提高上一次调整后的显示屏亮度,若环境光传感器感测到的环境光亮度变小,降低上一次调整后的显示屏亮度。
在本申请的一实施例中,若环境光传感器感测到的环境光亮度变大,提高上一次调整后的显示屏亮度包括:确定当前环境光亮度对应的默认显示屏亮度,计算当前环境光亮度对应的默认显示屏亮度相较于以上一环境光亮度为基础自动设置的默认显示屏亮度的提高比例,基于所述提高比例提高上一次调整后的显示屏亮度。其中,提高比例=(当前环境光亮度对应的默认显示屏亮度-上一环境光亮度自动设置的默认显示屏亮度)/上一环境光亮度自动设置的默认显示屏亮度。
例如,若当前环境光亮度对应的默认显示屏亮度为150,基于上一环境光亮度自动设置的默认显示屏亮度为120,提高比例=(当前环境光亮度对应的默认显示屏亮度-上一环境光亮度自动设置的默认显示屏亮度)/上一环境光亮度自动设置的默认显示屏亮度=25%,若上一次调整后的显示屏亮度为140,则提高上一次调整后的显示屏亮度至175。
在本申请的一实施例中,若环境光传感器感测到的环境光亮度变小,降低上一次调整后的显示屏亮度包括:确定当前环境光亮度对应的默认显示屏亮度,计算当前环境光亮度对应的默认显示屏亮度相较于以上一环境光亮度为基础自动设置的默认显示屏亮度的降低比例,基于所述降低比例降低上一次调整后的显示屏亮度。其中,降低比例=(上一环境光亮度自动设置的默认显示屏亮度-当前环境光亮度对应的默认显示屏亮度)/上一环境光亮度自动设置的默认显示屏亮度。
例如,若当前环境光亮度对应的默认显示屏亮度为150,基于上一环境光亮度自动设置的默认显示屏亮度为180,提高比例=(当前环境光亮度对应的默认显示屏亮度-上一环境光亮度自动设置的默认显示屏亮度)/上一环境光亮度自动设置的默认显示屏亮度=16.7%,若上一次调整后的显示屏亮度为200,则降低上一次调整后的显示屏亮度至166.7。
在本申请的一实施例中,在S809之后,执行S803-S808的流程,即,执行清空用户手动调整的显示屏亮度的机制触发或未触发的亮度调整逻辑。
参阅图14所示,为本申请一实施例提供的显示屏亮度传递的框架图。电子设备的亮度范围包括第一亮度范围0-1、第二亮度范围0-255、第三亮度范围0-10000、第四亮度范围0-硬件实际支持的最大亮度。其中,第一亮度范围、第二亮度范围及第三亮度范围均为显示屏背光亮度等级的阶数范围,第四亮度范围为显示屏的显示亮度范围,单位为尼特。亮度范围不以上述为限,还可以设置其他范围。
在应用程序层,可以调整显示屏亮度的应用包括视频应用程序、二维码软件、摄像程序、系统设置及状态栏设置。其中,视频应用程序、二维码软件、摄像程序基于第一亮度范围0-1进行显示屏亮度设置和调整,系统设置及状态栏设置基于第三亮度范围0-10000进行显示屏亮度设置和调整。
在框架层,通过电源框架进行自动亮度设置和手动亮度设置。其中,自动亮度设置为基于电子设备的预设使用场景或电子设备所处环境的环境光亮度进行显示屏亮度的自动设置,手动亮度设置是基于用户在系统设置或状态栏设置中对亮度条的操作进行显示屏亮度的手动设置。可选地,电子设备的预设使用场景包括,但不局限于热限制、前置摄像头亮度限制、低电量模式、人脸解锁、场景识别。在以上预设使用场景下,基于第二亮度范围的亮度值进行显示屏亮度的设置和调整。
在框架层,在设置显示屏亮度后,设置亮度动画,其中,亮度动画包括从亮度0或上一次设置的显示屏亮度逐渐变换至当前设置的显示屏亮度所需的多个亮度值,以及亮度条的长度变化。
在框架层,对第一亮度范围和第二亮度范围的显示屏亮度进行映射,得到第三亮度范围的显示屏亮度,并进一步建立第三亮度范围的显示屏亮度与第四亮度范围的显示亮度的映射关系,将映射得到的第三亮度范围的显示屏亮度和对应的第四亮度范围的显示亮度传递至硬件抽象层。
在硬件抽象层,由灯光服务LightsService将第三亮度范围的显示屏亮度设置为内核层的显示屏背光亮度。
在内核层,由显示驱动电路基于设置的显示屏背光亮度驱动硬件层的显示屏进行显示。
在硬件层,显示屏显示用户界面时的背光亮度为设置的背光亮度,显示屏呈现的光亮度(单位为尼特)为设置的背光亮度对应显示亮度。
参阅图15所示,为本申请另一实施例提供的显示屏亮度调整方法的流程图。
S901,基于当前自动设置的显示屏亮度,根据用户拖动亮度条产生的喜好亮度对显示屏进行设置。
S902,在显示屏灭屏后亮屏时,若亮度喜好清空机制未触发,显示屏保持喜好亮度不变。
S903,在显示屏灭屏后亮屏时,若亮度喜好清空机制触发,基于环境光亮度重新设置显示屏亮度。
S904,若用户再次拖动亮度条,且拖动亮度条的方向与上一次相同,根据用户再次拖动亮度条产生的喜好亮度对显示屏进行设置。
S905,若用户再次拖动亮度条,且拖动亮度条的方向与上一次不同,显示屏保持基于环境光亮度重新设置的显示屏亮度不变。
S906,在电子设备的使用环境产生变化时,基于显示屏当前设置的喜好亮度进行调整。
S907,在显示屏灭屏后亮屏时,若亮度喜好清空机制未触发,显示屏保持调整后的喜好亮度不变,调整后的喜好亮度相对于第一次设置的喜好亮度变低或变高。
S908,在显示屏灭屏后亮屏时,若亮度喜好清空机制触发,基于环境光亮度重新设置显示屏亮度。
在S908之后,执行S904-S905的流程。
参阅图16所示,所述电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(Personal Digital Assistant,PDA)、增强现实(Augmented Reality,AR)设备、虚拟现实(Virtual Reality,VR)设备、人工智能(Artificial Intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备100的具体类型不作特殊限制。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(Universal Serial Bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(Subscriber Identification Module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(Application Processor,AP),调制解调处理器,图形处理器(Graphics Processing Unit,GPU),图像信号处理器(Image Signal Processor,ISP),控制器,视频编解码器,数字信号处理器(Digital Signal Processor,DSP),基带处理器,和/或神经网络 处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(Inter-integrated Circuit,I2C)接口,集成电路内置音频(Inter-integrated Circuit Sound,I2S)接口,脉冲编码调制(Pulse Code Modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(Mobile Industry Processor Interface,MIPI),通用输入输出(General-Purpose Input/Output,GPIO)接口,用户标识模块(Subscriber Identity Module,SIM)接口,和/或通用串行总线(Universal Serial Bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(Serial Data Line,SDA)和一根串行时钟线(Derail Clock Line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(Camera Serial Interface,CSI),显示屏串行接口(Display Serial Interface,DSI)等。在一些实施例中,处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何 计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(Liquid Crystal Display,LCD),有机发光二极管(Organic Light-Emitting Diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(Active-Matrix Organic Light Emitting Diode的,AMOLED),柔性发光二极管(Flex Light-Emitting Diode,FLED),Miniled,Microled,Micro-OLED,量子点发光二极管(Quantum Dot Light Emitting Diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
内部存储器121可以包括一个或多个随机存取存储器(Random Access Memory,RAM)和一个或多个非易失性存储器(Non-Volatile Memory,NVM)。
随机存取存储器可以包括静态随机存储器(Static Random-Access Memory,SRAM)、动态随机存储器(Dynamic Random Access Memory,DRAM)、同步动态随机存储器(Synchronous Dynamic Random Access Memory,SDRAM)、双倍资料率同步动态随机存取存储器(Double Data Rate Synchronous Dynamic Random Access Memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;
非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。
快闪存储器按照运作原理划分可以包括NOR FLASH、NAND FLASH、3D NAND FLASH等,按照存储单元电位阶数划分可以包括单阶存储单元(Single-Level Cell,SLC)、多阶存储单元(Multi-Level Cell,MLC)、三阶储存单元(Triple-Level Cell,TLC)、四阶储存单元(Quad-Level Cell,QLC)等,按照存储规范划分可以包括通用闪存存储(Universal Flash Storage,UFS)、嵌入式多媒体存储卡(embedded Multi Media Card,eMMC)等。
随机存取存储器可以由处理器110直接进行读写,可以用于存储操作系统或其他正在运行中的程序的可执行程序(例如机器指令),还可以用于存储用户及应用程序的数据等。
非易失性存储器也可以存储可执行程序和存储用户及应用程序的数据等,可以提前加载到随机存取存储器中,用于处理器110直接进行读写。
外部存储器接口120可以用于连接外部的非易失性存储器,实现扩展电子设备100的存储能力。外部的非易失性存储器通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部的非易失性存储器中。
内部存储器121或外部存储器接口120用于存储一个或多个计算机程序。一个或多个计算机程序被配置为被该处理器110执行。该一个或多个计算机程序包括多个指令,多个指令被处理器110执行时,可实现上述实施例中在电子设备100上执行的显示屏亮度调整方法,以实现电子设备100的手写输入显示功能。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备100上运行时,使得电子设备100执行上述相关方法步骤,实现上述实施例中的显示屏亮度调整方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的显示屏亮度调整方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的显示屏亮度调整方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (21)

  1. 一种显示屏亮度调整方法,其特征在于,所述方法包括:
    响应于自动亮度设置指令,设置显示屏亮度;
    响应于用户手动调整亮度产生的亮度设置指令,调整所述显示屏亮度;
    在所述显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的所述显示屏亮度的机制;
    若触发清空用户手动调整的所述显示屏亮度的机制,响应于所述自动亮度设置指令,再次设置所述显示屏亮度;
    响应于用户再次手动调整显示屏亮度的操作,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同;
    若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同,响应于用户再次手动调整显示屏亮度产生的亮度设置指令,对再次设置的所述显示屏亮度进行调整。
  2. 如权利要求1所述的显示屏亮度调整方法,其特征在于,所述响应于自动亮度设置指令,设置显示屏亮度包括:
    判断电子设备的使用场景是否为预设的第一使用场景或第二使用场景;
    若确定所述电子设备的使用场景为预设的所述第一使用场景,将第一亮度范围内的亮度值确定为所述显示屏亮度;
    若确定所述电子设备的使用场景为预设的所述第二使用场景,基于第二亮度范围内的亮度值确定所述显示屏亮度;
    将确定的所述第一亮度范围或所述第二亮度范围内的显示屏亮度映射为第三亮度范围内的显示屏亮度;
    基于所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示。
  3. 如权利要求2所述的显示屏亮度调整方法,其特征在于:预设的所述第一使用场景包括所述电子设备运行视频应用程序、所述电子设备运行二维码软件及所述电子设备处于前置摄像头补光状态,预设的所述第二使用场景包括所述电子设备处于热限制状态、所述电子设备处于前置摄像头亮度限制状态、所述电子设备处于低电量模式、所述电子设备处于人脸解锁状态、所述电子设备处于场景识别状态。
  4. 如权利要求2所述的显示屏亮度调整方法,其特征在于,所述响应于自动亮度设置指令,设置显示屏亮度包括:
    在所述显示屏亮屏时,通过环境光传感器感测所述电子设备所处环境的环境光亮度;
    响应基于所述环境光亮度产生的自动亮度设置指令,确定所述环境光亮度落入的预设环境光亮度区间;
    基于所述第二亮度范围内的亮度值和所述预设环境光亮度区间之间的对应关系确定所述环境光亮度落入的预设环境光亮度区间对应的显示屏亮度;
    将所述第二亮度范围内的显示屏亮度映射为所述第三亮度范围内的显示屏亮度;
    基于所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示。
  5. 如权利要求4所述的显示屏亮度调整方法,其特征在于,所述在所述显示屏亮屏时,通过环境光传感器感测所述电子设备所处环境的环境光亮度包括:
    在所述显示屏从灭屏状态变换为亮屏状态时,产生触发指令以触发所述环境光传感器感测环境光,将感测的光信号转换为电信号,并将电信号转换为亮度信息,基于所述亮度信息产生所述自动亮度设置指令。
  6. 如权利要求4所述的显示屏亮度调整方法,其特征在于,所述在所述显示屏亮屏时,通过环境光传感器感测所述电子设备所处环境的环境光亮度包括:
    在所述显示屏处于亮屏状态时,所述环境光传感器以预设采样率感测环境光,将感测的光信号转换为电信号,并将电信号转换为亮度信息,在所述亮度信息产生变化且持续预设时间时,基于所述亮度信息产生所述自动亮度设置指令。
  7. 如权利要求4所述的显示屏亮度调整方法,其特征在于:所述第一亮度范围、所述第二亮度范围及所述第三亮度范围内的亮度值的映射关系包括所述第一亮度范围内的亮度值对应所述第二亮度范围的一亮度值或一子亮度范围,所述第二亮度范围的子亮度范围对应所述第三亮度范围的一子亮度范围,所述第二亮度范围内的亮度值对应第三亮度范围的一亮度值或一子亮度范围。
  8. 如权利要求4所述的显示屏亮度调整方法,其特征在于:所述第一亮度范围为0-1,所述第二亮度范围为0-255,所述第三亮度范围为0-10000。
  9. 如权利要求4所述的显示屏亮度调整方法,其特征在于,所述基于所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示包括:
    获取所述显示屏支持的最大显示亮度;
    基于所述最大显示亮度建立所述第三亮度范围的亮度值与所述显示屏的显示亮度之间的映射关系;
    基于所述映射关系确定所述第三亮度范围内的显示屏亮度对应的显示亮度;
    将所述第三亮度范围内的显示屏亮度设置为所述显示屏的背光亮度;
    显示驱动电路基于所述背光亮度驱动所述显示屏进行显示,使得所述显示屏的实际显示亮度达到所述第三亮度范围内的显示屏亮度对应的显示亮度。
  10. 如权利要求9所述的显示屏亮度调整方法,其特征在于,所述响应于用户手动调整亮度产生的亮度设置指令,调整所述显示屏亮度包括:
    响应于用户手动调整亮度条的操作,对设置的所述第三亮度范围内的显示屏亮度进行调整;
    基于调整后的所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示。
  11. 如权利要求10所述的显示屏亮度调整方法,其特征在于,所述响应于用户手动调整亮度产生的亮度设置指令,调整所述显示屏亮度还包括:
    基于所述调整后的显示屏亮度设置所述显示屏的亮度调整动画,并在基于调整后的所述第三亮度范围内的显示屏亮度驱动所述显示屏进行显示时,显示所述亮度调整动画。
  12. 如权利要求11所述的显示屏亮度调整方法,其特征在于,所述基于调整后的显示屏亮度设置所述显示屏的亮度调整动画包括:
    设置所述显示屏从设置的所述显示屏亮度逐渐变化至调整后的所述显示屏亮度的亮度变化过程,及绘制亮度条以表示调整后的所述显示屏亮度。
  13. 如权利要求1所述的显示屏亮度调整方法,其特征在于,所述在所述显示屏灭屏后重新亮屏时,判断是否触发清空用户手动调整的显示屏亮度的机制包括:
    在所述显示屏灭屏后重新亮屏时,判断是否满足以下至少一个预设条件:当前时刻与用户上一次手动调整显示屏亮度时刻之间的时间间隔大于或等于第一预设时间间隔、所述显示屏亮屏且亮屏时刻与上一次灭屏时刻之间的时间间隔大于或等于第二预设时间间隔及用户上一次手动调整显示屏亮度时的环境光亮度大于或等于预设亮度;
    若满足所述至少一预设条件,确定触发清空用户手动调整的显示屏亮度的机制;
    若所述预设条件都不满足,确定不触发清空用户手动调整的显示屏亮度的机制。
  14. 如权利要求1所述的显示屏亮度调整方法,其特征在于,响应于用户再次手动调整显示屏亮度的操作指令,判断用户再次手动调整显示屏亮度的操作是否与上一次手动调整显示屏亮度的操作相同包括:
    在所述显示屏侦测到用户再次手动调整亮度条的操作时,判断用户再次手动调整亮度条的操作是否与上一次手动调整亮度条的操作相同;
    若确定用户再次手动调整亮度条的操作与上一次手动调整亮度条的操作相同,确定用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作相同;
    若确定用户再次手动调整亮度条的操作与上一次手动调整亮度条的操作不同,确定用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同。
  15. 如权利要求1所述的显示屏亮度调整方法,其特征在于,所述方法还包括:
    若用户再次手动调整显示屏亮度的操作与上一次手动调整显示屏亮度的操作不同,保持再次设置的所述显示屏亮度不变。
  16. 如权利要求1所述的显示屏亮度调整方法,其特征在于,所述方法还包括:
    若未触发清空用户手动调整的显示屏亮度的机制,保持上一次调整的所述显示屏亮度不变。
  17. 如权利要求1、15、16中任一项所述的显示屏亮度调整方法,其特征在于,所述方法还包括:
    响应于电子设备重启或自动亮度调整选项重启产生的自动亮度设置指令,重新设置显示屏亮度。
  18. 如权利要求1、15、16中任一项所述的显示屏亮度调整方法,其特征在于,所述方法还包括:
    响应于电子设备使用环境的变化产生的亮度调整指令,对上一次调整后的显示屏亮度进行调整。
  19. 如权利要求18所述的显示屏亮度调整方法,其特征在于,所述响应于电子设备使用环境的变化产生的亮度调整指令,对上一次调整后的显示屏亮度进行调整包括:
    通过环境光传感器感测所述电子设备所处环境的环境光亮度;
    在所述环境光传感器感测到的环境光亮度产生变化时,确定所述电子设备的使用环境产生变化,并产生所述亮度调整指令;
    响应于所述亮度调整指令,对用户上一次手动调整后的显示屏亮度进行调整。
  20. 一种电子设备,其特征在于,所述电子设备包括存储器和处理器:
    其中,所述存储器,用于存储程序指令;
    所述处理器,用于读取并执行所述存储器中存储的所述程序指令,当所述程序指令被所述处理器执行时,使得所述电子设备执行如权利要求1至19中任一项所述的显示屏亮度调整方法。
  21. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1至19中任一项所述的显示屏亮度调整方法。
PCT/CN2022/142061 2022-02-28 2022-12-26 显示屏亮度调整方法、电子设备及存储介质 WO2023160207A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22928449.2A EP4322144A1 (en) 2022-02-28 2022-12-26 Display screen brightness adjustment method, electronic device and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210191716.9 2022-02-28
CN202210191716.9A CN116704927A (zh) 2022-02-28 2022-02-28 显示屏亮度调整方法、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2023160207A1 true WO2023160207A1 (zh) 2023-08-31

Family

ID=87764639

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/142061 WO2023160207A1 (zh) 2022-02-28 2022-12-26 显示屏亮度调整方法、电子设备及存储介质

Country Status (3)

Country Link
EP (1) EP4322144A1 (zh)
CN (1) CN116704927A (zh)
WO (1) WO2023160207A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000137474A (ja) * 1998-11-02 2000-05-16 Hitachi Ltd データ処理システム
CN105049625A (zh) * 2015-07-23 2015-11-11 深圳市万普拉斯科技有限公司 移动终端的显示屏的亮度调节方法、装置及移动终端
CN106302977A (zh) * 2015-06-24 2017-01-04 小米科技有限责任公司 一种亮度调节按钮的显示方法及装置
CN108401078A (zh) * 2018-06-01 2018-08-14 Oppo(重庆)智能科技有限公司 一种背光亮度调节方法、背光亮度调节装置及移动终端
CN112992100A (zh) * 2021-04-19 2021-06-18 Oppo广东移动通信有限公司 屏幕亮度调节方法、装置、电子设备及存储介质
CN113192464A (zh) * 2020-01-14 2021-07-30 华为技术有限公司 一种背光调节方法及电子设备
CN113421532A (zh) * 2021-07-09 2021-09-21 海信视像科技股份有限公司 背光调整方法及显示设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010020072A (ja) * 2008-07-10 2010-01-28 Canon Inc 表示装置
CN108540638A (zh) * 2018-01-31 2018-09-14 努比亚技术有限公司 屏幕亮度调整控制方法、终端及计算机存储介质
CN108550353B (zh) * 2018-04-20 2020-03-24 Oppo广东移动通信有限公司 亮度调节方法及相关产品
CN109272970A (zh) * 2018-10-30 2019-01-25 维沃移动通信有限公司 一种屏幕亮度调节方法及移动终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000137474A (ja) * 1998-11-02 2000-05-16 Hitachi Ltd データ処理システム
CN106302977A (zh) * 2015-06-24 2017-01-04 小米科技有限责任公司 一种亮度调节按钮的显示方法及装置
CN105049625A (zh) * 2015-07-23 2015-11-11 深圳市万普拉斯科技有限公司 移动终端的显示屏的亮度调节方法、装置及移动终端
CN108401078A (zh) * 2018-06-01 2018-08-14 Oppo(重庆)智能科技有限公司 一种背光亮度调节方法、背光亮度调节装置及移动终端
CN113192464A (zh) * 2020-01-14 2021-07-30 华为技术有限公司 一种背光调节方法及电子设备
CN112992100A (zh) * 2021-04-19 2021-06-18 Oppo广东移动通信有限公司 屏幕亮度调节方法、装置、电子设备及存储介质
CN113421532A (zh) * 2021-07-09 2021-09-21 海信视像科技股份有限公司 背光调整方法及显示设备

Also Published As

Publication number Publication date
CN116704927A (zh) 2023-09-05
EP4322144A1 (en) 2024-02-14

Similar Documents

Publication Publication Date Title
CN113805743B (zh) 切换显示窗口的方法和电子设备
WO2023226455A1 (zh) 应用图标的显示方法、电子设备及可读存储介质
WO2023040666A1 (zh) 键盘显示方法、折叠屏设备和计算机可读存储介质
CN113805744A (zh) 窗口的显示方法和电子设备
WO2023001163A1 (zh) 一种可提升动效性能的屏幕刷新方法及设备
WO2023160207A1 (zh) 显示屏亮度调整方法、电子设备及存储介质
CN117707716A (zh) 线程调度方法、电子设备及计算机可读存储介质
WO2023066165A1 (zh) 动画效果显示方法及电子设备
US20240212635A1 (en) Method for adjusting display screen brightness, electronic device, and storage medium
WO2022057663A1 (zh) 一种生成文件的方法及电子设备
WO2023160209A1 (zh) 帧数据显示方法、电子设备及存储介质
WO2022057563A1 (zh) 一种双系统中用户界面的显示方法及电子设备
CN116704944B (zh) 一种屏幕亮度调节方法
WO2023045695A1 (zh) 基于帧数据的显示驱动方法、电子设备及存储介质
WO2023207178A1 (zh) 通话服务的引导方法、电子设备及存储介质
WO2023124908A1 (zh) 图标拼接方法及相关设备
WO2021253922A1 (zh) 字体切换方法及电子设备
CN117129085B (zh) 环境光的检测方法、电子设备及可读存储介质
CN116662222A (zh) 缓存管理方法及相关设备
WO2024109220A1 (zh) 显示卡片的方法、电子设备及可读存储介质
CN115016714B (zh) 电子设备控制方法、系统、电子设备及存储介质
WO2024001871A1 (zh) 一种操控方法和电子设备
WO2023198103A1 (zh) 进程间通信方法和电子设备
WO2023016011A1 (zh) 应用程序的切换方法、图形界面及相关装置
CN115576477A (zh) 手写输入显示方法、电子设备及存储介质

Legal Events

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

Ref document number: 22928449

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 18288874

Country of ref document: US

WWE Wipo information: entry into national phase

Ref document number: 2022928449

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2022928449

Country of ref document: EP

Effective date: 20231106