CN111310632A - Terminal control method and device, terminal and storage medium - Google Patents

Terminal control method and device, terminal and storage medium Download PDF

Info

Publication number
CN111310632A
CN111310632A CN202010084860.3A CN202010084860A CN111310632A CN 111310632 A CN111310632 A CN 111310632A CN 202010084860 A CN202010084860 A CN 202010084860A CN 111310632 A CN111310632 A CN 111310632A
Authority
CN
China
Prior art keywords
backlight
display
terminal
screen
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010084860.3A
Other languages
Chinese (zh)
Other versions
CN111310632B (en
Inventor
李鹏
鲁威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010084860.3A priority Critical patent/CN111310632B/en
Publication of CN111310632A publication Critical patent/CN111310632A/en
Application granted granted Critical
Publication of CN111310632B publication Critical patent/CN111310632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/12Fingerprints or palmprints
    • G06V40/13Sensors therefor
    • G06V40/1318Sensors therefor using electro-optical elements or layers, e.g. electroluminescent sensing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • General Engineering & Computer Science (AREA)
  • Liquid Crystal Display Device Control (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

The disclosure provides a control method and apparatus of a terminal, a terminal and a storage medium. In some embodiments, the terminal includes a processor, a display buffer and a display screen, the display buffer is used for storing image frames to be displayed, and the control method of the terminal includes: generating a backlight increasing instruction in response to a first preset operation; and when a first screen refreshing signal after the backlight increasing instruction is generated is detected, drawing a preset masking layer into a display cache. The method can synchronize the increase of the screen backlight with the display of the preset masking layer, so that a user does not find that the display screen flashes too bright or too dark, and the use experience of the user is improved.

Description

Terminal control method and device, terminal and storage medium
Technical Field
The present disclosure relates to the field of intelligent devices, and in particular, to a method and an apparatus for controlling a terminal, and a storage medium.
Background
Along with the popularization and application of smart phones, the functions of smart phones are more and more powerful, wherein a fingerprint sensor becomes the standard configuration of the smart phone, the fingerprint unlocking function becomes several times of the functions of the smart phone, the fingerprint unlocking can be used for unlocking screens, mobile payment, program encryption and the like, and the functions of the smart phones are more and more extensive.
The method is characterized in that a camera is arranged below a screen, when a finger presses a designated area of the screen, the backlight brightness of the screen is improved to be higher, and a picture of a fingerprint is obtained in a picture shooting mode. After the finger is removed from the designated area of the screen, the backlight brightness of the screen is reduced. When the fingerprint identification technology under the screen is adopted, the screen is easy to flicker too dark or too bright.
Disclosure of Invention
In order to solve the existing problems, the present disclosure provides a control method and apparatus for a terminal, and a storage medium.
The present disclosure adopts the following technical solutions.
In some embodiments, the present disclosure provides a control method of a terminal, the terminal including a processor, a display buffer for storing image frames to be displayed, and a display screen, the control method of the terminal including: generating a backlight increasing instruction in response to a first preset operation;
and when a first screen refreshing signal after the backlight increasing instruction is generated is detected, drawing a preset masking layer into a display cache.
In some embodiments, the present disclosure provides a control apparatus of a terminal, including:
the response module is used for responding to the first preset operation and generating a backlight increasing instruction;
and the control module is used for drawing a preset masking layer into a display cache when detecting a first screen refreshing signal after the backlight increasing instruction is generated.
In some embodiments, the present disclosure provides a terminal comprising: at least one memory and at least one processor;
the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method.
In some embodiments, the present disclosure provides a storage medium for storing program code for performing the above-described method.
According to the control method of the terminal, synchronization of screen backlight increasing and preset masking layer displaying is achieved, the display screen does not flicker excessively bright or excessively dark, and use experience of a user is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
Fig. 1 is a flowchart of a control method of a terminal according to an embodiment of the present disclosure.
Fig. 2 is a flowchart of another terminal control method according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of a display interface of a terminal according to an embodiment of the present disclosure.
Fig. 4 is a process diagram of a control method of a terminal according to an embodiment of the present disclosure.
Fig. 5 is a block diagram of a control device of a terminal according to an embodiment of the present disclosure.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that various steps recited in method embodiments of the present disclosure may be performed in parallel and/or in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a" or "an" in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
As shown in fig. 1, fig. 1 is a flowchart of a control method of a terminal according to an embodiment of the present disclosure, where the terminal according to the embodiment of the present disclosure includes a processor, a display buffer and a display screen, where the display buffer is used to store image frames to be displayed, and the method provided in this embodiment includes the following steps:
s100: in response to a first preset operation, a backlight increasing instruction is generated.
In this embodiment, the first preset operation may be a pressing operation, for example, the display area of the display screen may include a first display area and a second display area, and the first preset operation may be, for example, pressing a biological composition with a biological texture to the second display area of the terminal. Alternatively, the first preset operation may be that the user presses a finger to the second display area of the terminal. In this embodiment, the terminal may be any device of a mobile phone, a tablet, a computer, and an intelligent wearable device, and the type of the terminal is not limited in any way. In some embodiments of the present disclosure, the backlight adding instruction is generated to a backlight control device of the display screen, the backlight control device may be a part of the terminal, for example, may be a backlight controller on the terminal, and the backlight control device may also be a separate device independent from the terminal. In the present embodiment, the backlight increasing instruction is used to increase the backlight brightness of the terminal display area. For example, the backlight increasing instruction may be used to increase the backlight brightness of the terminal display area to a preset maximum backlight brightness.
S200: and when a first screen refreshing signal after the backlight increasing instruction is generated is detected, drawing a preset masking layer into a display cache.
In this embodiment, after the backlight increasing instruction is generated to the backlight control component of the terminal, the screen refresh signal is waited, so that the backlight increasing instruction really takes effect to complete the backlight increasing. The display of the terminal has a certain screen refresh period, i.e. screen refresh time, for example, assuming that the frequency of the display is 60Hz, indicating that the display is refreshed 60 times per second, the time interval for displaying each frame, i.e. the screen refresh time, is 1/60s, which is approximately equal to 16 ms. In some embodiments of the present disclosure, the screen refresh signal is a screen vertical refresh signal (VSync). In some embodiments of the present disclosure, the preset masking layer is used to cover the first display region of the terminal and expose the second display region. In this embodiment, after the backlight increasing instruction is generated, waiting for a first screen refresh signal to appear to enable the backlight increasing instruction to actually take effect, and immediately drawing the preset mask layer into the display buffer when the backlight increasing instruction is generated and the first screen refresh signal is detected, where the display buffer is used to store the display image of the next frame of the terminal, so that drawing the preset mask layer into the display buffer can display the preset mask layer on the first display area of the terminal during screen refresh, that is, the preset mask layer drawn into the display buffer can be displayed on the first display area of the terminal as a part of the image of the next frame. In some embodiments of the present disclosure, the brightness of the first display region when the first display region of the terminal is displayed with the preset mask layer at the time of screen refresh is the same as the brightness of the first display region before responding to the first preset operation, that is, by displaying the preset mask layer on the first display region, the brightness of the first display region after the backlight brightness is increased is the same as the brightness of the first display region before the backlight brightness is increased.
In the prior art, the device for adjusting the screen backlight and the device for drawing the image frame to be displayed operate independently of each other, the screen backlight increasing is asynchronous with the display mask layer, and the synchronous display of the mask layer on the screen cannot be guaranteed after the screen backlight increasing, so when the preset mask layer needs to be displayed in the first display area, the preset mask layer to be displayed cannot be displayed in time after the backlight increasing due to the fact that the screen backlight increasing is asynchronous with the display preset mask layer, and the first display area temporarily shows the too-dark flicker, or the first display area already displays the preset mask layer but the screen backlight is not increased and the first display area temporarily shows the too-dark flicker, in the embodiment of the disclosure, the first screen refresh signal appearing after the backlight increasing instruction is generated is waited for the backlight increasing instruction to take effect, and then the preset mask layer is immediately drawn and displayed in the buffer, therefore, the preset masking layer is displayed in the first display area, the screen backlight increasing and the preset masking layer displaying can be synchronized by adopting the technical scheme, so that the time interval between the backlight increasing and the masking layer displaying is smaller than the screen refreshing time, a user cannot perceive the time interval, the user sees that the display screen does not have excessively bright or excessively dark flicker, and the use experience of the user is improved.
Some embodiments of the present disclosure further provide another terminal control method, and fig. 2 is a flowchart of the another terminal control method according to the embodiments of the present disclosure, and as shown in fig. 2, the terminal control method according to the embodiments of the present disclosure includes:
s100: in response to a first preset operation, a backlight increasing instruction is generated.
S200: and when a first screen refreshing signal after the backlight increasing instruction is generated is detected, drawing a preset masking layer into a display cache.
Steps S100 and S200 in this embodiment are the same as those with the same reference numerals in fig. 1, and the description of the steps in fig. 1 is also applicable to this embodiment, and will not be described again here.
S300: and generating a backlight reduction instruction in response to the second preset operation.
In some embodiments of the disclosure, when the first display area of the display screen displays the cover layer, the terminal sends a backlight reduction instruction to the backlight control assembly after responding to the second preset operation, and the backlight reduction instruction is used for reducing the backlight brightness of the display screen of the terminal.
S400: and when a first screen refreshing signal after the backlight reduction instruction is generated is detected, stopping drawing the preset masking layer into the display cache.
In this embodiment, after the backlight reduction instruction is generated, the first screen refresh signal is waited for the backlight reduction instruction to take effect, so that the backlight is reduced, the backlight of the display screen is not reduced immediately when the backlight reduction instruction is generated, but is reduced when the display screen is refreshed, after the first screen refresh signal is waited for, the preset masking layer is immediately stopped being drawn into the display buffer, and the terminal acquires the image frame to be displayed from the buffer when the screen is displayed, so that the preset masking layer is not drawn into the display buffer any more, and the masking layer can be removed in the first display area when the screen is refreshed. In some optional embodiments of the present disclosure, in response to the brightness of the first display region before the second preset operation, the brightness of the first display region is the same as the brightness of the first display region after the backlight brightness is reduced and the preset mask layer is removed, that is, after the backlight brightness is reduced, the brightness of the first display region before and after the backlight brightness is reduced is kept unchanged by removing the preset mask layer. In this embodiment, after the backlight reduction instruction is generated, a first screen refresh signal is waited to enable the screen backlight with reduced brightness to take effect, and then the drawing of the preset masking layer in the cache is immediately stopped, so that the preset masking layer is removed from the first display area in the next screen refresh.
In some embodiments of the present disclosure, after responding to the first preset operation, before generating the backlight increasing instruction, further comprising: pausing the drawing of the image frame into the display buffer. In this embodiment, after responding to the first preset operation, the drawing of the image into the display buffer is stopped before the backlight increasing instruction takes effect, and the drawing of the image frame into the display buffer is continued after the backlight increasing instruction takes effect, so that the image frame drawn before is stored in the display buffer, and therefore the image displayed on the display screen does not change, that is, the image displayed on the display screen remains unchanged before the screen refresh signal is received. When the image is suspended from the display cache, the screen backlight instruction is enabled to take effect, and then the preset mask layer is rendered and displayed in the display cache.
In some embodiments of the present disclosure, after responding to the second preset operation, before generating the backlight reduction instruction, further comprising: pausing the drawing of the image frame into the display buffer. In this embodiment, after the backlight reduction instruction is generated and the screen refresh time is waited, the image is continuously drawn into the display buffer, but the image drawn into the display buffer does not include the preset cover layer.
In some embodiments of the present disclosure, the backlight brightness before the backlight increasing instruction is in effect is equal to the backlight brightness after the backlight decreasing instruction is in effect. In the present embodiment, the screen backlight luminance before the backlight luminance is increased and after the backlight luminance is decreased is equal, and thus, the user does not perceive the luminance change of the screen backlight.
In some embodiments of the present disclosure, the display area of the display screen comprises the first display area and a second display area; the first preset operation is: pressing to the second display area; and/or the second preset operation is: removing the press on the second display area. Taking the terminal as an intelligent terminal with an off-screen fingerprint identification function as an example, the first preset operation may be that the user presses the second display area with a finger, and the second preset operation may be that the user removes the finger pressed on the second display area.
In order to better explain the technical solution of the present embodiment, steps S100 and S200 in the terminal control method proposed by the embodiment of the present disclosure are explained below with reference to fig. 3. In this embodiment, taking the terminal as an intelligent terminal with an off-screen fingerprint identification function as an example, the intelligent terminal may be an android mobile phone, as shown in fig. 3, a display screen of the intelligent terminal includes a first display area and a second display area, where the second display area may be an area where a fingerprint symbol in fig. 3 is located, the first display area is an area on the display screen except the second display area, the display screen may be provided with a camera below the second display area for collecting a fingerprint of a user, in this embodiment, taking a first preset operation as pressing the second display area with a finger as an example, detecting that the user presses the second display area with the finger, the terminal determines that the user wishes to unlock the screen fingerprint in response to the first preset operation, in order to collect the fingerprint of the user, backlight brightness needs to be increased to shoot a fingerprint image of the user, and at the same time, in order to prevent the user from feeling dazzling, the method includes the steps that a preset masking layer needs to be displayed in a first display area which is not covered by fingers of a user, therefore, a backlight increasing instruction is sent to a backlight control assembly, the backlight increasing instruction does not take effect immediately, a first screen refreshing signal appears after the backlight increasing instruction is generated to enable the backlight increasing instruction to take effect, then the preset masking layer is drawn into a cache, and therefore the preset masking layer is drawn into the first display area when a display screen is refreshed next time. The following description continues with reference to fig. 3 to describe steps S300 and S400 in the control method of the terminal proposed by the embodiment of the present disclosure. After the user performs the identification of the fingerprint under the screen, the finger pressed on the second display area is removed, for example, the second preset operation is the removal of the finger pressed on the second display area, the terminal responds to the second preset operation, because the user can see the second display area after removing the finger, and the backlight of the second display area is strong, the backlight brightness needs to be reduced, and the direct reduction of the backlight can cause the first display area with the preset masking layer to be too dark, a backlight reduction instruction is generated to reduce the backlight after detecting that the user removes the finger, but the backlight reduction instruction cannot be immediately effective, after the backlight reduction instruction is generated, the first screen refresh signal is waited to enable the backlight reduction instruction to be really effective, then the drawing of the preset masking layer to the cache is stopped, and thus the preset masking layer is not displayed in the first display area any more during the next screen refresh. In the embodiment of the disclosure, by adopting the above technical scheme, the screen backlight adjustment and the preset mask layer control can be synchronized, so that the time interval between the backlight increase or decrease and the display or removal of the preset mask layer is less than one screen refresh time, and thus, a user cannot perceive the time interval, and the brightness of the first display area does not change when the user sees.
To better illustrate the beneficial effects of the embodiments of the present disclosure, taking a terminal as an example of an android system, and referring to fig. 3 and fig. 4, an example of an internal control flow of the android system terminal is illustrated, where a fingerprint icon on a display screen of the terminal on fig. 3 is a second display area, an area on the display screen other than the second display area is a first display area, the terminal is a terminal with a fingerprint identification function, a camera is disposed below the second display area, when a user uses a finger to unlock the screen, the finger is pressed on the second display area, a ui (user interface) object detects the pressed finger and responds to the operation, a preset mask layer drawing request is sent to a surfafiner object in the android system, the surfafiner object sends an interrupt to a Kernel (Kernel) of the terminal, the request is to increase backlight brightness, the Kernel drives to generate a backlight increase instruction to the screen, the Kernel waits for a screen vertical refresh signal, and sending an interrupt return to the SurfaceFlinger object, drawing the preset covering layer into a display cache after the SurfaceFlinger object receives the interrupt return, and displaying the preset covering layer into a first display area of the screen when the screen is refreshed next time. When the user removes the finger from the second display area, the fingerprint UI object responds to the operation and sends a preset cover layer removing request to the SurfaceFlinger object, the SurfaceFlinger object sends an interrupt to Kernel to request to reduce the backlight, the Kernel component generates a backlight reducing instruction to be driven by the backlight and sends an interrupt return to the SurfaceFlinger object after waiting for a screen vertical refreshing signal, and the SurfaceFlinger object does not draw the preset cover layer into the display cache after receiving the interrupt return, so that the preset cover layer is removed from the first display area when the next screen is refreshed. In the embodiment of the disclosure, synchronization of backlight adjustment and preset masking layer control is realized, so that the time interval between backlight adjustment and preset masking layer adjustment is less than the vertical refreshing time of one screen, a user is prevented from noticing that the display screen flashes too bright or too dark, and the use experience of the user is improved.
As shown in fig. 5, an embodiment of the present disclosure further provides a control apparatus of a terminal, including a response module 10 and a control module 20;
the response module is used for responding to the first preset operation and generating a backlight increasing instruction;
and the control module is used for drawing a preset masking layer into a display cache when detecting a first screen refreshing signal after the backlight increasing instruction is generated.
For the embodiments of the apparatus, since they correspond substantially to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described apparatus embodiments are merely illustrative, wherein the modules described as separate modules may or may not be separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In the above, the terminal control method and apparatus according to the present disclosure have been described based on the embodiments and application examples. In addition, the present disclosure also provides a terminal and a storage medium, which are described below.
Referring now to fig. 6, a schematic diagram of an electronic device (e.g., a terminal device or server) 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 800 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 801 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM803, various programs and data necessary for the operation of the electronic apparatus 800 are also stored. The processing apparatus 801, the ROM 802, and the RAM803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
Generally, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage 808 including, for example, magnetic tape, hard disk, etc.; and a communication device 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 5 illustrates an electronic device 800 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 809, or installed from the storage means 808, or installed from the ROM 802. The computer program, when executed by the processing apparatus 801, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods of the present disclosure as described above.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, the terminal including a processor, a display buffer for storing image frames to be displayed, and a display screen, the control of the terminal including:
generating a backlight increasing instruction in response to a first preset operation;
and when a first screen refreshing signal after the backlight increasing instruction is generated is detected, drawing a preset masking layer into a display cache.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, further including:
generating a backlight reduction instruction in response to a second preset operation;
and when a first screen refreshing signal after the backlight reduction instruction is generated is detected, stopping drawing the preset masking layer into the display cache.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, after responding to a first preset operation, before generating a backlight increasing instruction, further including:
pausing the drawing of the image frame into the display buffer.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, after responding to a second preset operation, before generating a backlight-down instruction, further including:
pausing the drawing of the image frame into the display buffer.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, a display area of a display screen including the first display area and a second display area;
the preset masking layer is used for covering the first display area and exposing the second display area.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, in which the backlight luminance before the backlight increasing instruction takes effect is equal to the backlight luminance after the backlight decreasing instruction takes effect.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, a display area of a display screen including the first display area and a second display area;
the first preset operation is: pressing to the second display area;
and/or the presence of a gas in the gas,
the second preset operation is: removing the press on the second display area.
According to one or more embodiments of the present disclosure, there is provided a control method of a terminal, in which the screen refresh signal is a screen vertical refresh signal.
According to one or more embodiments of the present disclosure, there is provided a control apparatus of a terminal, including:
the response module is used for responding to the first preset operation and generating a backlight increasing instruction;
and the control module is used for waiting for the screen refreshing time and drawing the preset masking layer into the display cache.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor;
wherein the at least one memory is configured to store program code, and the at least one processor is configured to call the program code stored in the at least one memory to perform the method of any one of the above.
According to one or more embodiments of the present disclosure, there is provided a storage medium for storing program code for performing the above-described method.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (11)

1. The terminal control method is characterized by comprising a processor, a display cache and a display screen, wherein the display cache is used for storing image frames to be displayed;
the control method of the terminal comprises the following steps:
generating a backlight increasing instruction in response to a first preset operation;
and when a first screen refreshing signal after the backlight increasing instruction is generated is detected, drawing a preset masking layer into the display cache.
2. The control method according to claim 1, characterized by further comprising:
generating a backlight reduction instruction in response to a second preset operation;
and when a first screen refreshing signal after the backlight reduction instruction is generated is detected, stopping drawing the preset masking layer into the display cache.
3. The control method according to claim 1, wherein after responding to the first preset operation, before generating the backlight increasing instruction, further comprising:
pausing the drawing of the image frame into the display buffer.
4. The control method according to claim 2, wherein after responding to the second preset operation, before generating the backlight lowering instruction, further comprising:
pausing the drawing of the image frame into the display buffer.
5. The control method according to claim 1, wherein the display areas of the display screen include the first display area and a second display area;
the preset masking layer is used for covering the first display area and exposing the second display area.
6. The control method according to claim 2, wherein the backlight brightness before the backlight increase instruction is activated is equal to the backlight brightness after the backlight decrease instruction is activated.
7. The control method according to claim 2, wherein the display areas of the display screen include the first display area and a second display area;
the first preset operation is: pressing to the second display area;
and/or the presence of a gas in the gas,
the second preset operation is: removing the press on the second display area.
8. The control method according to any one of claims 1 to 7,
the screen refreshing signal is a screen vertical refreshing signal.
9. A control apparatus of a terminal, the terminal including a processor, a display buffer for storing image frames to be displayed, and a display screen, the control apparatus of the terminal comprising:
the response module is used for responding to the first preset operation and generating a backlight increasing instruction;
and the control module is used for drawing a preset masking layer into a display cache when detecting a first screen refreshing signal after the backlight increasing instruction is generated.
10. A terminal, comprising:
at least one memory and at least one processor;
wherein the at least one memory is configured to store program code and the at least one processor is configured to invoke the program code stored in the at least one memory to perform the method of any of claims 1 to 8.
11. A storage medium for storing program code for performing the method of any one of claims 1 to 8.
CN202010084860.3A 2020-02-10 2020-02-10 Terminal control method, device, terminal and storage medium Active CN111310632B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010084860.3A CN111310632B (en) 2020-02-10 2020-02-10 Terminal control method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010084860.3A CN111310632B (en) 2020-02-10 2020-02-10 Terminal control method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN111310632A true CN111310632A (en) 2020-06-19
CN111310632B CN111310632B (en) 2023-08-18

Family

ID=71158312

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010084860.3A Active CN111310632B (en) 2020-02-10 2020-02-10 Terminal control method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111310632B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083903A (en) * 2020-09-14 2020-12-15 北京字节跳动网络技术有限公司 Display device, terminal control method and device, display device, and storage medium
CN112162666A (en) * 2020-09-24 2021-01-01 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN112243219A (en) * 2020-10-15 2021-01-19 北京字节跳动网络技术有限公司 Display device, terminal control method and device, terminal and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008062544A1 (en) * 2006-11-21 2008-05-29 Hitachi, Ltd. Biometrics authentication device and portable terminal
DE102011120069A1 (en) * 2011-12-05 2013-06-06 Automate Images Gmbh Method for cropped imaging of object involves digital photographing the object in front of white backlit screen for obtaining photo in which object is cropped based on resulting mask to obtain modified third photo with cropped object
CN107798303A (en) * 2017-10-18 2018-03-13 维沃移动通信有限公司 A kind of method and mobile terminal for adjusting screen backlight
CN108319947A (en) * 2018-01-19 2018-07-24 深圳市安思科电子科技有限公司 A kind of good face recognition device of recognition effect for cold district
CN108510962A (en) * 2018-03-29 2018-09-07 联想(北京)有限公司 A kind of display control method and electronic equipment
WO2018161539A1 (en) * 2017-03-08 2018-09-13 广东欧珀移动通信有限公司 Control method and apparatus for turning on screen
CN109344589A (en) * 2018-09-12 2019-02-15 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and storage medium
US10440169B1 (en) * 2013-01-10 2019-10-08 Majen Tech, LLC Screen interface for a mobile device apparatus
US20190369868A1 (en) * 2018-05-31 2019-12-05 Beijing Xiaomi Mobile Software Co., Ltd. Terminal control method, device and computer readable storage medium
CN110765379A (en) * 2019-09-20 2020-02-07 苏州达家迎信息技术有限公司 Method and device for loading resource file, computer equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008062544A1 (en) * 2006-11-21 2008-05-29 Hitachi, Ltd. Biometrics authentication device and portable terminal
DE102011120069A1 (en) * 2011-12-05 2013-06-06 Automate Images Gmbh Method for cropped imaging of object involves digital photographing the object in front of white backlit screen for obtaining photo in which object is cropped based on resulting mask to obtain modified third photo with cropped object
US10440169B1 (en) * 2013-01-10 2019-10-08 Majen Tech, LLC Screen interface for a mobile device apparatus
WO2018161539A1 (en) * 2017-03-08 2018-09-13 广东欧珀移动通信有限公司 Control method and apparatus for turning on screen
CN107798303A (en) * 2017-10-18 2018-03-13 维沃移动通信有限公司 A kind of method and mobile terminal for adjusting screen backlight
CN108319947A (en) * 2018-01-19 2018-07-24 深圳市安思科电子科技有限公司 A kind of good face recognition device of recognition effect for cold district
CN108510962A (en) * 2018-03-29 2018-09-07 联想(北京)有限公司 A kind of display control method and electronic equipment
US20190369868A1 (en) * 2018-05-31 2019-12-05 Beijing Xiaomi Mobile Software Co., Ltd. Terminal control method, device and computer readable storage medium
CN109344589A (en) * 2018-09-12 2019-02-15 北京小米移动软件有限公司 Unlocked by fingerprint method, apparatus and storage medium
CN110765379A (en) * 2019-09-20 2020-02-07 苏州达家迎信息技术有限公司 Method and device for loading resource file, computer equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112083903A (en) * 2020-09-14 2020-12-15 北京字节跳动网络技术有限公司 Display device, terminal control method and device, display device, and storage medium
CN112162666A (en) * 2020-09-24 2021-01-01 北京字节跳动网络技术有限公司 Terminal control method and device, terminal and storage medium
CN112243219A (en) * 2020-10-15 2021-01-19 北京字节跳动网络技术有限公司 Display device, terminal control method and device, terminal and storage medium

Also Published As

Publication number Publication date
CN111310632B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN112135059B (en) Shooting method, shooting device, electronic equipment and storage medium
CN112261226B (en) Horizontal screen interaction method and device, electronic equipment and storage medium
CN111310632B (en) Terminal control method, device, terminal and storage medium
CN111510645B (en) Video processing method and device, computer readable medium and electronic equipment
CN110475065B (en) Image processing method and device, electronic equipment and storage medium
CN112256223B (en) Method and device for adjusting display fluency and electronic equipment
US10810927B2 (en) Electronic device and method for controlling display in electronic device
US20220392026A1 (en) Video transmission method, electronic device and computer readable medium
EP2892047A2 (en) Image data output control method and electronic device supporting the same
CN114579034A (en) Information interaction method and device, display equipment and storage medium
CN113521728A (en) Cloud application implementation method and device, electronic equipment and storage medium
EP4297415A1 (en) Information display method and apparatus based on video, and device and medium
CN111796827B (en) Bullet screen drawing method, device, equipment and storage medium
CN111273884A (en) Image display method and device and electronic equipment
CN115567746A (en) Playing method and device and electronic equipment
CN115114463A (en) Media content display method and device, electronic equipment and storage medium
CN111290692B (en) Picture display method and device, electronic equipment and computer readable medium
CN112241230B (en) Window display method and device of electronic equipment, terminal and storage medium
CN113127101A (en) Application program control method, device, equipment and medium
CN113766293B (en) Information display method, device, terminal and storage medium
CN112261216B (en) Terminal control method and device, terminal and storage medium
CN110489040B (en) Method and device for displaying feature model, terminal and storage medium
CN112650465A (en) Terminal control method and device, terminal and storage medium
CN111770385A (en) Card display method and device, electronic equipment and medium
CN111949325B (en) Display method and device and electronic equipment

Legal Events

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