CN117667229A - Display method, electronic device and storage medium - Google Patents

Display method, electronic device and storage medium Download PDF

Info

Publication number
CN117667229A
CN117667229A CN202311215009.XA CN202311215009A CN117667229A CN 117667229 A CN117667229 A CN 117667229A CN 202311215009 A CN202311215009 A CN 202311215009A CN 117667229 A CN117667229 A CN 117667229A
Authority
CN
China
Prior art keywords
screen
instruction
preset
screen area
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311215009.XA
Other languages
Chinese (zh)
Inventor
王焕府
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202311215009.XA priority Critical patent/CN117667229A/en
Publication of CN117667229A publication Critical patent/CN117667229A/en
Pending legal-status Critical Current

Links

Classifications

    • 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

Abstract

The application is applicable to the technical field of terminals, and provides a display method, electronic equipment and a storage medium, wherein the method comprises the following steps: when a current trigger instruction of a screen of the electronic equipment is acquired, determining a current screen area corresponding to the current trigger instruction; when the current screen area comprises a preset screen area and the current trigger instruction is not a preset instruction, hiding a cache display task corresponding to the preset screen area; and controlling the display state of the preset screen area according to the current trigger instruction. Therefore, when the preset screen area is triggered, and when the cache display task corresponding to the preset screen area is not required to be displayed, the cache task corresponding to the current screen area is hidden, so that the problem of indiscriminate cache display task display in an application scene without cache display task display is avoided, the screen state or display content of the preset screen area is consistent with the actual use requirement of a user, and the use experience of the user is improved.

Description

Display method, electronic device and storage medium
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a display method, electronic equipment and a computer readable storage medium.
Background
When the screen of the electronic device (such as a mobile phone with an outward folding screen) with the folding screen is in a folded state, a user can see two screens, wherein one screen is a main screen, the screen is used by the user by default, and the screen area except the main screen is a back screen area. In order to enrich the use scenes of the mobile phone, some interfaces can be displayed in the back screen to increase the usability, for example, some commonly used two-dimensional codes for payment can be displayed, and the convenience of use of a user is improved.
In the related art, a three-party application is opened by one key to specify a two-dimensional code, and a shortcut or a software development kit (software development kit, SDK) provided by the three-party application is generally used, so that the method can jump through a plurality of activities in the starting process, and the starting speed is slower. In order to improve user experience, the started back screen display task can be reserved in the cache display task corresponding to the back screen, so that the starting efficiency of the designated back screen display task is improved.
However, when the back screen wakes up, even if the back screen is not in the back screen bright code scene, the screen will default to a wakeup (wakeup) process to resume activity (resumeTopActivity) at the top layer of the cache task stack, so that in the non-back screen bright code scene, the interface (such as the appointed two-dimensional code) corresponding to the appointed back screen display task is displayed in the back screen, which does not meet the actual application requirement, and the user experience is affected.
Disclosure of Invention
The embodiment of the application provides a display method, electronic equipment and a computer readable storage medium, which can solve the problems that a started back screen display task is reserved in a cache display task corresponding to a back screen, so that the starting efficiency of a designated back screen display task is improved, and an interface corresponding to the designated back screen display task is displayed in the back screen in a non-back screen bright code scene, which does not meet the actual application requirement, and the user experience is influenced.
In a first aspect, an embodiment of the present application provides a display method, which is applied to an electronic device, including: when a current trigger instruction of a screen of the electronic equipment is acquired, determining a current screen area corresponding to the current trigger instruction; when the current screen area comprises a preset screen area and the current trigger instruction is not a preset instruction, hiding a cache display task corresponding to the preset screen area; and controlling the display state of the preset screen area according to the current trigger instruction.
In a possible implementation manner of the first aspect, before hiding a buffer display task corresponding to the preset screen area when the current screen area includes the preset screen area and the current trigger instruction is not the preset instruction, the method further includes:
And when the current trigger instruction is the preset instruction, displaying a cache display task in a preset screen area.
Optionally, in another possible implementation manner of the first aspect, the current trigger instruction includes any one of the following instructions: the display device comprises a screen-on instruction, a screen unlocking instruction, a historical display task termination instruction and a preset instruction, wherein the historical display task refers to a display task which is being displayed in a preset screen area before a current trigger instruction is acquired.
Optionally, in still another possible implementation manner of the first aspect, the above-mentioned bright screen instruction includes at least one of a screen wake-up instruction and a message notification instruction.
Optionally, in a further possible implementation manner of the first aspect, the history display task termination instruction includes a screen switch instruction.
Optionally, in a further possible implementation manner of the first aspect, the current trigger instruction is a screen unlocking instruction or a history display task termination instruction; correspondingly, the controlling the display state of the preset screen area according to the current trigger instruction includes:
and controlling a preset screen area to turn off the screen.
Optionally, in another possible implementation manner of the first aspect, the current trigger instruction is a bright screen instruction; correspondingly, the controlling the display state of the preset screen area according to the current trigger instruction includes:
And displaying the current display task corresponding to the current trigger instruction in the preset screen area.
Optionally, in still another possible implementation manner of the first aspect, the current trigger instruction is a bright screen instruction or a screen unlocking instruction; correspondingly, when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding the buffer display task corresponding to the preset screen area, including:
determining a screen type of a screen and a screen state of a preset screen area;
and hiding the cache display task corresponding to the preset screen area when the current trigger instruction is not the preset instruction, the screen type is the preset screen type, the current screen area is the preset screen area and the screen state is the awakening state.
Optionally, in still another possible implementation manner of the first aspect, the hiding a buffer display task corresponding to the preset screen area includes:
and in the process of waking up the preset screen area, skipping the method for executing the resume cache display task and the method for making the cache display task visible.
Optionally, in a further possible implementation manner of the first aspect, the current trigger instruction is a history display task termination instruction; correspondingly, when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding the buffer display task corresponding to the preset screen area, including:
When the screen type of the screen is a preset screen type, the current screen area is a preset screen area, and a stack corresponding to the cache display task is not empty, determining whether the current trigger instruction is a preset instruction;
when the current trigger instruction is not a preset instruction, hiding the cache display task corresponding to the preset screen area.
Optionally, in another possible implementation manner of the first aspect, the hiding a buffer display task corresponding to the preset screen area includes:
and executing a method for forcedly hiding the cache display task.
In a second aspect, an embodiment of the present application provides a display apparatus, which is applied to an electronic device, including: the first determining module is used for determining a current screen area corresponding to a current trigger instruction when the current trigger instruction of the screen of the electronic equipment is acquired; the first hiding module is used for hiding the cache display task corresponding to the preset screen area when the current screen area comprises the preset screen area and the current trigger instruction is not the preset instruction; the first control module is used for controlling the display state of the preset screen area according to the current trigger instruction.
In a possible implementation manner of the second aspect, the apparatus further includes:
And the first display module is used for displaying a cache display task in a preset screen area when the current trigger instruction is the preset instruction.
Optionally, in another possible implementation manner of the second aspect, the current trigger instruction includes any one of the following instructions: the display device comprises a screen-on instruction, a screen unlocking instruction, a historical display task termination instruction and a preset instruction, wherein the historical display task refers to a display task which is being displayed in a preset screen area before a current trigger instruction is acquired.
Optionally, in still another possible implementation manner of the second aspect, the above-mentioned bright screen instruction includes at least one of a screen wake-up instruction and a message notification instruction.
Optionally, in a further possible implementation manner of the second aspect, the history display task termination instruction includes a screen switch instruction.
Optionally, in a further possible implementation manner of the second aspect, the current trigger instruction is a screen unlocking instruction or a history display task termination instruction; correspondingly, the first control module includes:
the first control unit is used for controlling the screen to be turned off in the preset screen area.
Optionally, in another possible implementation manner of the second aspect, the current trigger instruction is a bright screen instruction; correspondingly, the first control module includes:
The first display unit is used for displaying a current display task corresponding to the current trigger instruction in a preset screen area.
Optionally, in still another possible implementation manner of the second aspect, the current trigger instruction is a bright screen instruction or a screen unlocking instruction; correspondingly, the first hiding module includes:
a first determining unit, configured to determine a screen type of a screen and a screen state of a preset screen area;
the first hiding unit is used for hiding the cache display task corresponding to the preset screen area when the current trigger instruction is not the preset instruction, the screen type is the preset screen type, the current screen area is the preset screen area and the screen state is the awakening state.
Optionally, in a further possible implementation manner of the second aspect, the first hiding unit is specifically configured to:
and in the process of waking up the preset screen area, skipping the method for executing the resume cache display task and the method for making the cache display task visible.
Optionally, in a further possible implementation manner of the second aspect, the current trigger instruction is a history display task termination instruction; correspondingly, the first hiding module includes:
the second determining unit is used for determining whether the current trigger instruction is a preset instruction or not when the screen type of the screen is a preset screen type, the current screen area is a preset screen area and a stack corresponding to the cache display task is not empty;
The second hiding unit is used for hiding the cache display task corresponding to the preset screen area when the current trigger instruction is not a preset instruction.
Optionally, in another possible implementation manner of the second aspect, the second hiding unit is specifically configured to:
and executing a method for forcedly hiding the cache display task.
In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the display method as described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored thereon, wherein the computer program when executed by a processor implements a display method as described above.
In a fifth aspect, embodiments of the present application provide a computer program product for, when run on an electronic device, causing the electronic device to perform a display method as described above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: when the preset screen area is triggered, and when the cache display task corresponding to the preset screen area is not required to be displayed, the cache task corresponding to the preset screen area is hidden, so that the problem of indiscriminate cache display task display in an application scene without cache display task display is avoided, the screen state or display content of the preset screen area is consistent with the actual use requirement of a user, and the use experience of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an out-folded mobile phone in an unfolded state according to an embodiment of the present application;
fig. 2 is a schematic diagram of a folding screen mobile phone in a folded state according to an embodiment of the present application;
FIG. 3 is a schematic architecture diagram of a software system of an electronic device according to an embodiment of the present application;
FIG. 4 is a flow chart of a display method according to an embodiment of the present disclosure;
fig. 5 is a schematic flow chart of an unlocking process of an electronic device screen according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a display device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in this specification and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Before introducing the method provided by the embodiment of the application, an application scenario related to the embodiment of the application is first described.
With the rapid development of terminal technology, electronic devices such as mobile phones, tablet computers, smart watches, and the like are widely used. In order to meet the use requirement of users on large screens and to consider the volume of electronic equipment, electronic equipment with folding screens is produced. Especially, the electronic equipment carrying the outer folding screen not only enlarges the screen area of the electronic equipment and reduces the volume of the electronic equipment, but also can avoid crease when the screen is in a folding state compared with the inner folding screen, and prolongs the service life of the screen of the electronic equipment. Taking an external folding screen mobile phone as an example, as shown in fig. 1, a schematic diagram of the external folding screen mobile phone in an unfolded state is shown, where the external folding screen is divided into three screen areas 101, 102 and 103; when the folding-screen mobile phone is in an unfolded state, the three screen areas 101, 102 and 103 can be combined into one screen for displaying; when the folding mobile phone is in a folded state, in some application scenarios, the screen area 101 with larger area can be independently used as the main screen of the folding mobile phone, and the screen area 102 with smaller area can together form the back screen of the folding mobile phone with the screen area 102; in other applications, screen area 101 may together with screen area 103 form the main screen of the out-turned screen phone, and screen area 102 may be used alone as the back screen of the out-turned screen phone. It should be noted that, when the folding mobile phone is in a folded state, the screen area 101 and the screen area 102 may be in opposite positions, and the screen area 103 may be located between the screen area 101 and the screen area 103, and located at a side of the folding mobile phone and perpendicular to the screen area 101 and the screen area 102, respectively. Fig. 2 is a schematic diagram of a folding mobile phone in a folded state, where the positional relationship among the screen area 101, the screen area 102 and the screen area 103 can refer to fig. 2 when the folding mobile phone is in a folded state.
Currently, various types of applications may be installed or configured in an electronic device to meet different business requirements of a user, for example, the electronic device is a mobile phone, and the mobile phone may install an application for implementing social, work, entertainment, shopping, payment, and other functions. For the folding screen mobile phone, in order to enrich the use scene of the mobile phone, a payment two-dimensional code and the like can be displayed in the back screen so as to improve the convenience of use of a user. For example, for WeChat TM Payment device TM And the application program with the payment function is needed, if the user needs to open the payment two-dimensional code during payment, the user needs to click an icon corresponding to the application program through a main interface of the mobile phone to open the application program, and click a control corresponding to the payment two-dimensional code in the application program to display the payment two-dimensional code. Therefore, in order to simplify the process of opening the two-dimension code payment by the user, the micro-letter can be triggered to be displayed in the back screen interface through a specific instruction TM Payment device TM The payment two-dimensional code of the application program with the payment function is triggered by a specific gesture (such as using a finger joint to strike a plurality of places (such as 2 places)) so as to display the payment two-dimensional code in the back screen; or triggering the back screen bright code service when detecting the scanning operation of the external scanning equipment (such as a cashing code scanner) on the back screen so as to display the payment two-dimensional code in the back screen. However, if the back screen bright code service is triggered every time, the display service is restarted, a plurality of activity jumps are performed in the starting process, the starting speed is low, and in order to improve the user experience, the started back screen bright code service can be kept in a cache display task corresponding to the back screen, so that the starting efficiency of the back screen bright code service is improved.
However, when the back screen wakes up (such as a bright screen and an unlocked screen), the screen defaults to enter a process even if the back screen is not in a bright code scene, and resumeTopAnature is performed, so that in a non-back screen bright code scene, an interface corresponding to the bright code scene of the back screen is displayed in the back screen. And when the screen is lightened or the animation is executed in the process of exiting the interface, the back screen task interface is displayed.
Therefore, in order to solve the above problem of displaying the back screen light code task in the non-back screen light code service, the embodiments of the present application provide a display method, which can hide the buffer memory task corresponding to the current screen area when the buffer memory display task corresponding to the preset screen area is not required to be displayed, thereby avoiding the problem of indiscriminate display of the buffer memory display task in the application scenario where the buffer memory display task is not required to be displayed, so that the screen state or display content of the preset screen area is kept consistent with the actual use requirement of the user, and the use experience of the user is improved.
It should be noted that the above application scenarios are only exemplary, and the application scenario configuration of the display method provided in the embodiment of the present application is not limited, that is, the method may also be applied to other application scenarios where a cache task is required to be displayed on the back screen.
In addition, it should be noted that, the foregoing is described taking a mobile phone as an example, and in addition, the display method provided in the embodiment of the present application may also be applied to electronic devices such as a motion camera (go pro), a digital camera, a tablet computer, a desktop, a laptop, a handheld computer, a notebook, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA), an augmented reality (augmented reality, AR) \virtual reality (VR) device, a wearable device (e.g., a wearable smart bracelet, etc.), a smart home device (e.g., a smart refrigerator, a smart television, etc.), which is not limited in the embodiment of the present application.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android (Android) system with a layered architecture is taken as an example, and a software system of an electronic device is illustrated.
Fig. 3 is a block diagram of a software system of an electronic device according to an embodiment of the present application. Referring to fig. 3, the layered architecture divides the software into several layers, each with a clear role and division of work. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run time) and system layer, and a kernel layer, respectively. In addition, fig. 3 also shows the relationship between the hardware layers and the software system. As one example of the present application, the hardware layer includes a display screen for displaying various display tasks in the electronic device, such as displaying a two-dimensional code in a back screen, displaying wallpaper, displaying an incoming call, and so forth.
The application layer may include a series of application packages. As shown in fig. 3, the application package may include a back screen bright code application, which is used for implementing main functions such as display interaction of the two-dimensional code on the back screen, including start-up exit control, window display control, state synchronization, event transmission, and the like. The back screen bright code application can comprise a task management module, and the task management module can comprise applications such as mask display, task switching, recommended service list, capsule display, activity pull-up and the like. The application layer may also include a third party software development kit, such as a third party application (e.g. WeChat) that can provide two-dimensional code services such as payment of two-dimensional codes TM Payment device TM Etc.). Although not shown in the figure, the application layer may further include applications such as instant messaging, call, camera, gallery, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions. As an example of the present application, as shown in fig. 3, the application framework layer may include at least a back screen bright code interface set, a window management service (window manager service, WMS), an intelligent engine, and an activity management service (activity manager servic e, AMS). The intelligent engine can comprise an intelligent perception module, when the back screen bright code service is started, the intelligent engine can display the recommended service functions in the recommended service list in the back screen preferentially according to the recommended service list in the application program layer, and when the recommended service list is empty, the service functions set by the user can be displayed in the back screen according to the setting of the user. For example, including WeChat in recommended services list TM When the corresponding payment function is triggered, the WeChat can be displayed in the back screen when the back screen bright code scene is triggered TM The corresponding payment two-dimensional code; if the recommended service list is empty, setting the user to display payment treasures in the back screen bright code scene TM The corresponding payment two-dimensional code can display the payment treasures in the back screen when the back screen bright code scene is triggered TM And the corresponding payment two-dimensional code.
The AMS module realizes embedded Activity starting and life cycle management, and the WMS module realizes embedded Task (Task) management, activity jump control in the Task, focus and visibility management of a back screen Task window scene, config update and compatibility management. The AMS and WMS modules provide a back screen Task window interface layer for system applications to use.
Android runtimes include core libraries and virtual machines. Android run time is responsible for scheduling and management of the Android system. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules, such as: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc. The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications. Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc. The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like. The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The display method, apparatus, electronic device, storage medium, and computer program provided in the present application are described in detail below with reference to the accompanying drawings.
On the basis of the software architecture of the electronic device shown in fig. 3, the display method provided in the embodiment of the application is described next. Referring to fig. 4, fig. 4 is a schematic flow chart of a display method provided in an embodiment of the present application, which may be implemented by the electronic device shown in fig. 3, and the electronic device is implemented by interaction of the above modules, and the method may include some or all of the following:
Step 401, when a current trigger instruction for a screen of the electronic device is obtained, determining a current screen area corresponding to the current trigger instruction.
The current trigger instruction may include any one of the following instructions: the display device comprises a screen-brightening instruction, a screen unlocking instruction, a historical display task termination instruction and the preset instruction, wherein the historical display task refers to a display task which is being displayed in a current screen area before a current trigger instruction is acquired.
It should be noted that, the preset instruction may refer to an instruction that triggers the display of the cache display task in the preset screen area of the electronic device. For example, in a back screen bright code scene of the out-folded screen electronic device, the preset screen area may be a back screen, the preset instruction may be an instruction for triggering a back screen bright code service (for example, when the finger joint is used to strike the back screen, the back screen bright code is tapped), and the cache display task is a display task corresponding to the back screen bright code.
The current screen area may refer to a screen area where a current trigger instruction occurs in a screen of the electronic device, or may refer to a screen area where display content or a display state changes after the current trigger instruction occurs. It should be noted that, when the current trigger instruction is different, the corresponding current screen area may also be different.
In the embodiment of the present application, a back screen bright code service of an external folding screen electronic device is taken as an example, and a display method of the embodiment of the present application is described. The display method of the embodiment of the present application may also be triggered by other cached display tasks of the back screen, which will not be described in detail herein.
In this embodiment of the present application, when a back screen light code service of an out-folded screen electronic device is turned on, if the back screen light code service is already started, a buffer display task corresponding to the back screen light code service is buffered in a task stack, so as long as a display state of the back screen is changed (for example, from light screen to off screen, from off screen to light screen, display task switching, screen switching, etc.), a problem that an interface corresponding to the back screen light code service is displayed in the back screen will occur. Therefore, the triggering instruction of the screen of the electronic device can be monitored, when the triggering instruction of the screen is monitored, the current screen area corresponding to the current triggering instruction is determined, whether the current triggering instruction can cause the display state of the preset screen area (namely, the back screen in the back screen bright code scene) to change or not is judged through the subsequent steps, so that when the current triggering instruction can cause the interface corresponding to the cache display task to be displayed in the back screen, the cache display task is hidden in time, and therefore the interface corresponding to the cache display task is prevented from being displayed when the cache display task is not required to be displayed, and the use experience of a user is improved.
In one possible implementation manner of the embodiment of the present application, since the display state or the display content of the back screen may be changed by the screen-on instruction, the screen-unlocking instruction, the history display task termination instruction, and the preset instruction for triggering the back screen-on code service, when any one of the above instructions is monitored, it may be determined that the current trigger instruction is acquired, and the current screen area corresponding to the current trigger instruction is determined.
As a possible implementation manner, a screen wake-up instruction (such as clicking a screen) actively initiated by a user when the screen is off can trigger the screen of the electronic device to lighten; in some scenarios, when the electronic device receives a new message trigger message notification of an application, the electronic device is also triggered to light up. Thus, in embodiments of the present application, the on-screen instruction may include at least one of a screen wake instruction, a message notification instruction.
It should be noted that, the types of the bright screen instructions mentioned in the embodiments of the present application are only exemplary, and should not be construed as limiting the present application. In actual use, the type of the screen-lighting instruction is related to the actual function of the electronic device, and all the instructions capable of triggering the screen of the electronic device can be used as the screen-lighting instructions in the embodiment of the application, which is not limited in the embodiment of the application.
As an example, the screen wake-up instruction may be an instruction initiated actively by a user, such as clicking an arbitrary area of the electronic device, triggering a power key of the electronic device, or lifting the electronic device, which may trigger a screen of the electronic device. When the back screen is used for displaying wallpaper, if the back screen corresponds to the cache display task, the cache display task is displayed first and then the wallpaper is displayed, so that an interface corresponding to the back screen bright code task is displayed when a user triggers the bright screen but does not trigger the back screen bright code service, and the interface does not accord with the actual use requirement of the user, and therefore, the current screen area corresponding to the screen wake-up instruction can be determined when the screen wake-up instruction input by the user is acquired.
For example, assuming that the screen wake-up operation is a user clicking on the screen, if the screen wake-up logic of the electronic device wakes up the entire screen by clicking any screen area, the entire screen area of the electronic device may be determined as the current screen area; for example, as shown in fig. 1, if the user clicks on the screen area 101 or the screen area 102 when the screen of the electronic device is off, the entire screen areas 101, 102, and 103 may be determined as the current screen area. If the screen wake-up logic of the electronic device is that only the clicked screen area is waken up, the screen area clicked by the user can be determined as the current screen area; for example, as shown in the folding screen electronic device in fig. 1, when the user clicks the screen area 101 when the screen of the electronic device is off, the screen area 101 may be determined as the current screen area; alternatively, the user clicking on the screen region 102 may determine the screen region 102 as the current screen region when the screen of the electronic device is off.
It should be noted that the above examples are only exemplary and should not be construed as limiting the present application. In actual use, the instruction type included in the screen wake-up instruction and the determination mode of the current screen area corresponding to the screen wake-up instruction can be determined according to actual needs and specific application scenarios, which is not limited in the embodiment of the present application.
As an example, the screen wake-up instruction may also be an instruction, such as a message notification instruction, that may actively trigger a screen of the electronic device to light up. For example, the message notification instruction may include various application message notification instructions, such as a short message notification instruction, an instant messaging software new message notification instruction, an incoming call instruction, and so on. Taking an incoming call instruction as an example, assuming that the electronic device starts a back screen display incoming call function, an incoming call interface can be displayed on the back screen when the electronic device is in an incoming call, but if a buffer display task corresponding to the back screen exists, the buffer display task is displayed first and then the incoming call interface is displayed, which is inconsistent with the actual use requirement of a user. Therefore, when an arbitrary message notification instruction (e.g., an incoming call instruction) is acquired, the screen area where the message notification is to be displayed can be determined as the current screen area to which the message notification instruction corresponds.
For example, assuming that the message notification instruction is an incoming call instruction and the back screen turned on by the electronic device displays an incoming call function, the back screen may be determined as the current screen area when the incoming call instruction is acquired.
As a possible implementation manner, when the screen of the electronic device is in a folded state, if the screen of the electronic device is unlocked, the back screen displays the screen locking wallpaper after the electronic device acquires the screen unlocking instruction, and the screen is turned off after the main screen is successfully unlocked. However, if the back screen corresponds to the cache display task, the back screen also displays the cache display task first and then the screen is turned off, so that an interface corresponding to the back screen bright code task is also displayed when the user does not trigger the back screen bright code service and does not accord with the actual use requirement of the user, and therefore, the back screen area can be determined to be the current screen area when the screen unlocking instruction input by the user is acquired.
It should be noted that, as shown in fig. 1, if the main screen is the screen area 101 when the main screen is unlocked according to the actual service requirement, the screen area 102 and the screen area 103 may be determined to be the back screen together, that is, the screen area 102 and the screen area 103 are determined to be the current screen area; if the main screen is the screen area 101 and the screen area 103 according to the actual service requirement, the screen area 102 can be determined as the back screen, that is, the screen area 102 is determined as the current screen area.
As one possible implementation, the back screen should be off when the task that the back screen is displaying is terminated. For example, when a task being displayed by the back screen is switched to the home screen display, the back screen should be turned off. However, if the back screen corresponds to the cache display task, the back screen also displays the cache display task first and then the back screen is turned off, so that an interface corresponding to the back screen bright code task is displayed when the user does not trigger the back screen bright code service and does not accord with the actual use requirement of the user, and therefore, the back screen area can be determined as the current screen area when the history display task termination instruction is acquired.
As one example, the history display task termination instruction may be a screen switch instruction. For example, when the back screen and the rear camera of the out-folded screen electronic device are positioned on the same plane of the electronic device, if the user wants to self-shoot through the rear camera, the user can display a camera preview interface through the back screen so as to take a picture, namely, a back screen self-shooting scene; however, if the user wishes to switch the camera preview interface to the main screen for display in the back screen self-timer scene, the user may click on the screen switch instruction in the camera preview interface to switch to the main screen, and display the animation corresponding to the switch screen in the switching process. However, as shown in fig. 1, since in the back screen self-timer scene, in order to make the camera preview interface more convenient for the user to view, only the screen area 102 may be determined as the back screen, that is, the camera preview interface is displayed in the screen area 102, the screen area 101 and the screen area 103 together constitute the main screen; when the camera preview interface is switched from the back screen to the home screen for display, only the screen area 101 may be determined as the home screen, that is, the camera preview interface may be displayed only in the screen area 101, which may cause the back screen to be switched from the screen area 102 to the screen area composed of the screen area 102 and the screen area 103. If the back screen corresponds to the buffer display task, the buffer display task is partially displayed in the screen area 103 (the rest of the buffer display task is displayed in the screen area 102 but is covered by the screen switching animation), so that an interface corresponding to the back screen bright code task is also displayed when the user does not trigger the back screen bright code service, and does not accord with the actual use requirement of the user, and therefore, the back screen area can be determined as the current screen area when the screen switching instruction is acquired.
As a possible implementation manner, the preset instruction may refer to an instruction that triggers the cache display task to be displayed in a preset screen area. For example, in a back screen bright code scene, the preset instruction may be an instruction for triggering a cache display task corresponding to the back screen bright code service to be displayed on the back screen, for example, using a finger joint to strike two places in a back screen area.
As a possible implementation manner, when the current trigger instruction is the preset instruction, the cache display task may be displayed in the preset screen area, that is, the subsequent steps in the embodiments of the present application are not executed any more.
It should be noted that if the current trigger instruction is a preset instruction, it may be determined that the buffer display task corresponding to the preset screen area needs to be displayed currently, and then the buffer display task corresponding to the preset screen area may be directly displayed in the preset screen area.
For example, in a back screen bright code scene, assuming that the preset instruction is that the finger joints strike under the back screen, and the preset screen area is the back screen, when the user operation of the finger joints striking under the back screen is detected, the back screen can be awakened, and a resumeTopAN_SNatity method is executed to display a cache display task corresponding to the back screen bright code service in the back screen.
Step 402, hiding the buffer display task corresponding to the preset screen region when the current screen region includes the preset screen region and the current trigger instruction is not the preset instruction.
In the embodiment of the application, taking the back screen bright code service as an example, presetting a screen area as a back screen, if the current trigger instruction is not the preset instruction, determining that the current trigger instruction is not the back screen bright code scene, and displaying a cache display task corresponding to the back screen bright code service is not needed; if the current screen area is determined to be the preset screen area (namely the back screen), the display state or the display content of the current back screen can be determined to be changed, so that the cache display task corresponding to the back screen bright code is displayed in the back screen; therefore, the buffer memory display task corresponding to the preset screen area, namely the buffer memory display task corresponding to the back screen bright code service, can be hidden, so that the buffer memory display task corresponding to the back screen bright code service cannot be displayed in the back screen in the process of changing the display state or the display content of the back screen.
Further, since the system performs the unlocking process when the screen is on or unlocked, and performs the resumetopactionproperty method and the ensureactionproperty method after the screen status is marked as awake, the buffer display task is displayed in the screen. Therefore, when the current trigger instruction is a bright screen instruction or a screen unlocking instruction, the resumeTopAactigraphy method and the resumeActiveVisible method corresponding to the preset screen area can be prevented from being executed in the unlocking process, so that the cache display task is prevented from being displayed in a scene which does not need to be displayed. In one possible implementation manner of the embodiment of the present application, the current trigger instruction is a screen-on instruction or a screen-unlocking instruction; accordingly, the step 402 may include:
Determining a screen type of a screen and a screen state of a preset screen area;
when the current trigger instruction is not a preset instruction, the screen type is a preset screen type, the current screen area is a preset screen area, and the screen state is an awake state, hiding the cache display task corresponding to the preset screen area.
The preset screen type can be determined according to actual needs and specific application scenes, which is not limited in the embodiment of the present application. For example, when the display method of the embodiment of the present application is applied to a back screen bright code scene, the preset screen type may be an out-folded screen.
Fig. 5 is a schematic flow chart of an unlocking process of a screen of an electronic device according to an embodiment of the present application. After the screen locking service acquires an unlocking instruction of a user, executing a keyguard GoingAway method through an active task management service (ActivityTaskManagerService) to enter an unlocking screen flow; then, a forallDisplays method is executed through a root window container (RootWindowContainer) to traverse all screen areas in the screen of the electronic equipment; then, a keyguard GoingAway method is executed through a keyguard controller, and an update keyguard sleep token method is executed so as to update the screen state of the currently traversed screen area into an awake state; further executing an applysleepcokens method to update the screen state of the currently traversed screen area to an awake state; and finally, executing a resumeTopAactigyInnerLocked method and an ensureActiviteseVicable method to display the cache display task corresponding to the screen area in the currently traversed screen area.
It can be seen that, in the above-mentioned native flow, after the bright screen instruction or the screen unlocking instruction is acquired, the resumetopactigyInnerLocked method and the ensureActiviteeVicable method are automatically executed to display the cache display task in the corresponding screen area. Therefore, in this embodiment of the present application, taking the back screen bright code service as an example, if the current trigger instruction is a bright screen instruction or a screen unlocking instruction, and it is determined that the current trigger instruction is not a preset instruction, the screen type corresponding to the screen of the electronic device is a preset screen type (such as an external folding screen), the current screen area is a preset screen area (back screen) and the screen state is a wake-up state, that is, it is determined that the current is a non-back screen bright code scene, the screen type is the external folding screen, and the back screen is currently updated to be the wake-up state, then the buffer display task corresponding to the preset screen area (back screen) can be hidden, that is, the buffer display task corresponding to the back screen bright code service is hidden, so as to prevent the display of bright screen scenes or screen unlocking scenes such as in incoming call display, and the back screen bright code is displayed.
As a possible implementation manner, when the current trigger instruction is a bright screen instruction or a screen unlocking instruction, the cache display task corresponding to the preset screen area may be hidden by the following manner:
And in the process of waking up the preset screen area, skipping the method for executing the resume cache display task and the method for making the cache display task visible.
As an example, as shown in fig. 5, when the screen is on or unlocked, when the screen is traversed to the preset screen area, after the appysleeptokens method is executed to update the screen state of the preset screen area to the awake state, the traversing process of the preset screen area can be completed, and the next screen area is continuously traversed, that is, the resumptopative insnerloned method and the ensureactive visual method are not executed, so as to prevent the buffer display task corresponding to the preset screen area from being displayed in the preset screen area.
The following is a code for hiding the cache display task corresponding to the back screen in the above manner:
if(HwFoldScreenState.isOutFoldDevice()&&display.getDisplayId()==
DisplayEx.SUB_BUILTIN_DISPLAY&&!displayShouldSleep){continue;
}
wherein, the hwfoldstate.iseutfoldservice () is used for indicating whether the screen type is an external folding screen, when the screen type of the electronic device is an external folding screen, the value of the hwfoldstate.iseutfoldservice () is 1, otherwise, the value of the hwfoldstate.iseutfoldservice () is 0; the DISPLAY, getdisplayid () = displayid () = displayix, sub_brightness_display is used to indicate whether the current screen area is a back screen, when the current screen area is a back screen, the value of displayid () = displayid, sub_brightness_display is 1, otherwise the value of displayid () = displayid, sub_brightness_display is 0; the displaysheldsleep represents a screen state of the current screen region, and if the screen state of the current screen region is a screen-off state, the displaysheldsleep has a value of 1, and if the screen state of the current screen region is an awake state, the displaysheldsleep has a value of 0. Therefore, according to the codes, when the screen type corresponding to the screen of the electronic device is an outer folding screen, the current traversed screen area is a back screen, and the screen state of the current screen area is an awake state in the non-back screen bright code scene, the resumeTopatyInnerLocked method and the ensureActiveVicable method are not executed, and the next screen area is continuously traversed, so that the cache display task is prevented from being displayed in the non-back screen bright code scene.
Furthermore, since the unlocking process is not executed when the history display task is terminated (such as screen switch, hang-up, incoming call termination, wallpaper display termination, etc.), the cache display task corresponding to the preset screen area can be forcedly hidden, so that the cache display task can be prevented from being displayed when the display is not needed, and the usability is further improved. In one possible implementation manner of the embodiment of the present application, the current trigger instruction is a history display task termination instruction; accordingly, the step 402 may include:
when the screen type of the screen is a preset screen type, the current screen area is a preset screen area, and a stack corresponding to the cache display task is not empty, determining whether the current trigger instruction is a preset instruction;
when the current trigger instruction is not a preset instruction, hiding the cache display task corresponding to the preset screen area.
As a possible implementation manner, taking the history display task termination instruction as an example of a screen switching instruction in the back screen self-timer scene, when the camera preview is switched from the back screen to the main screen display, as described above, the back screen area will change, so that during the screen switching process, the buffer display task corresponding to the back screen bright code service will be partially displayed in the newly added back screen area (such as the screen area 103 in fig. 1). In this scenario, the cache display Task may be forced to be hidden by the isForceHidden method in the Task (Task). That is, if it is determined that the screen type corresponding to the screen of the electronic device is a preset screen type (such as an out-folded screen), the current screen area is a preset screen area (a back screen), and the stack corresponding to the buffer display task is not empty (i.e., there is a buffer display task corresponding to the preset screen area currently), and the current trigger instruction is not a preset instruction (i.e., it is not a back screen bright code scene currently), the buffer display task corresponding to the preset screen area, that is, the buffer display task corresponding to the back screen bright code service is hidden, so as to prevent the display of the back screen bright code in the task termination scene such as screen switching.
As a possible implementation manner, when the current trigger instruction is a history display task termination instruction, the cache display task corresponding to the preset screen area may be hidden by the following manner:
and executing a method for forcedly hiding the cache display task.
As an example, when it is determined that the screen type corresponding to the screen of the sub device is a preset screen type (such as an out-turned screen), the current screen area is a preset screen area (back screen), and the stack corresponding to the buffer display Task is not empty (i.e., there is currently a buffer display Task corresponding to the preset screen area), and the current trigger instruction is not a preset instruction (i.e., not a back screen bright code scene), an isForceHidden method in the Task may be executed to forcedly hide the buffer display Task corresponding to the preset screen area.
The following is a code for hiding the cache display task corresponding to the back screen in the above manner:
if(!HwFoldScreenState.isOutFoldDevice()||currentTask==null
||currentTask.getDisplayId()!=DisplayEx.SUB_BUILTIN_DISPLAY){
return false;
}
return HwFoldScreenManager.getCurrentCoordinationTypeForOuter()!=
HwFoldScreenManager.CoordinationTypeEnum.COORDINATION_TYPE_QUICK_SHOW_COD E;
wherein, the hwfoldstate.iseutfoldservice () is used for indicating whether the screen type is an external folding screen, when the screen type of the electronic device is an external folding screen, the value of the hwfoldstate.iseutfoldservice () is 1, otherwise, the value of the hwfoldstate.iseutfoldservice () is 0; the currenttask= =null is used for indicating whether the stack corresponding to the buffer display task is empty, if yes, the value of currenttask= null is 1, otherwise, the value of currenttask= null is 0; currenttask. Getdisplayid () Σ! =displayex. Sub_BUILTIN_DISPLAY is used to determine if the current screen area is a back screen, if the current screen area is not a back screen, currentTask getdisplayid () Σ! =
The value of displayix. Sub_BUILTIN_DISPLAY is 1, otherwise, currentTask. Getdisplayid () ]! =
The value of displayex. Sub_BUILTIN_DISPLAY is 0;
HwFoldScreenManager.getCurrentCoordinationTypeForOuter()!=
HwFoldScreen manager, coordinationTypeEnum, COORDINATION_TYPE_QUICK_SHOW_COD E is used for indicating whether the scene is currently a back screen bright code scene, if not, then
HwFoldScreenManager.getCurrentCoordinationTypeForOuter()!=
HwFoldScreen manager COORDINATION TYPE Enum COORDINATION TYPE QUICK SHOW COD E has a value of 1, otherwise HwFoldScreen manager GetCurrentCoordinationTypeForOuter ()! =
The value of HwFoldScreen manager.CoordinationTypeEnum.COORDINATION_TYPE_QUICK_SHOW_COD E is 0.
That is, through the above codes, if it is determined that the screen type is not an out-folded screen, or the stack corresponding to the buffer display task is empty, or the current screen area is not a back screen, neither the isForceHidden method is executed, that is, the buffer display task corresponding to the back screen bright code service is not hidden; if the screen type is determined to be an out-folded screen, a stack corresponding to the cache display task is not empty, the current screen area is a back screen, and the current screen area is not a back screen bright code scene, executing an isforceHidden method to forcedly hide the cache display task corresponding to the back screen bright code service.
Step 403, controlling the display state of the preset screen area according to the current trigger instruction.
In the embodiment of the application, if the scene of the corresponding cache display task is not required to be displayed in the preset screen area, after the cache display task corresponding to the preset screen area is hidden, the display state of the preset screen area can be controlled normally according to the current trigger instruction.
As a possible implementation manner, when the current trigger instruction is a screen unlocking instruction or a history display task termination instruction, the preset screen area can be controlled to be turned off.
It should be noted that, taking the back screen bright code service as an example, if the current trigger instruction is a screen unlocking instruction, after unlocking is completed, the back screen needs to enter a screen-off state, so that after the corresponding cache display task of the back screen, the back screen can be controlled to be turned off; if the current trigger instruction is a history display task termination instruction and the back screen is not needed to be displayed by other display tasks, the back screen can enter a screen-off state, so that the back screen can be controlled to be turned off.
As a possible implementation manner, when the current trigger instruction is a bright screen instruction, displaying a current display task corresponding to the current trigger instruction in a preset screen area.
It should be noted that, taking the back screen bright code service as an example, as mentioned above, when the back screen is bright, there is a corresponding display task, for example, when the user triggers the bright screen, there is a wallpaper display task; for another example, when the incoming call instruction is acquired, a display task for displaying the incoming call interface exists. Therefore, when the current trigger instruction is a bright screen instruction, a corresponding current display task can be displayed in the back screen according to the current trigger instruction. For example, when the current trigger instruction is an incoming call instruction, an incoming call interface may be displayed in the back screen.
According to the display method, when the current trigger instruction of the screen of the electronic device is obtained, the current screen area corresponding to the current trigger instruction is determined, when the current screen area comprises the preset screen area and the current trigger instruction is not the preset instruction, the cache display task corresponding to the preset screen area is hidden, and then the display state of the preset screen area is controlled according to the current trigger instruction. Therefore, when the preset screen area is triggered, and when the cache display task corresponding to the preset screen area is not required to be displayed, the cache task corresponding to the current screen area is hidden, so that the problem of indiscriminate cache display task display in an application scene without cache display task display is avoided, the screen state or display content of the preset screen area is consistent with the actual use requirement of a user, and the use experience of the user is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Fig. 6 shows a block diagram of a display device according to an embodiment of the present application, corresponding to the display method described in the above embodiment, and only a portion related to the embodiment of the present application is shown for convenience of explanation.
Referring to fig. 6, the apparatus 60 includes:
the first determining module 61 is configured to determine, when a current trigger instruction for a screen of the electronic device is acquired, a current screen area corresponding to the current trigger instruction;
the first hiding module 62 is configured to hide a buffer display task corresponding to a preset screen area when the current screen area includes the preset screen area and the current trigger instruction is not a preset instruction;
the first control module 63 is configured to control a display state of the preset screen area according to the current trigger instruction.
In practical use, the display device provided in the embodiments of the present application may be configured in any electronic apparatus to perform the foregoing display method.
According to the display device provided by the embodiment of the application, when the current trigger instruction of the screen of the electronic equipment is obtained, the current screen area corresponding to the current trigger instruction is determined, when the current screen area comprises the preset screen area and the current trigger instruction is not the preset instruction, the cache display task corresponding to the preset screen area is hidden, and then the display state of the preset screen area is controlled according to the current trigger instruction. Therefore, when the preset screen area is triggered, and when the cache display task corresponding to the preset screen area is not required to be displayed, the cache task corresponding to the current screen area is hidden, so that the problem of indiscriminate cache display task display in an application scene without cache display task display is avoided, the screen state or display content of the preset screen area is consistent with the actual use requirement of a user, and the use experience of the user is improved.
In one possible implementation manner of the present application, the foregoing apparatus 60 further includes:
and the first display module is used for displaying a cache display task in a preset screen area when the current trigger instruction is the preset instruction.
Optionally, in another possible implementation manner of the present application, the current trigger instruction includes any one of the following instructions: the display device comprises a screen-on instruction, a screen unlocking instruction, a historical display task termination instruction and a preset instruction, wherein the historical display task refers to a display task which is being displayed in a preset screen area before a current trigger instruction is acquired.
Optionally, in still another possible implementation manner of the present application, the above-mentioned on-screen instruction includes at least one of a screen wake-up instruction and a message notification instruction.
Optionally, in another possible implementation manner of the present application, the above-mentioned history display task termination instruction includes a screen switch instruction.
Optionally, in another possible implementation manner of the present application, the current trigger instruction is a screen unlocking instruction or a history display task termination instruction; correspondingly, the first control module 63 includes:
the first control unit is used for controlling the screen to be turned off in the preset screen area.
Optionally, in another possible implementation manner of the present application, the current trigger instruction is a bright screen instruction; correspondingly, the first control module 63 includes:
the first display unit is used for displaying a current display task corresponding to the current trigger instruction in a preset screen area.
Optionally, in another possible implementation manner of the present application, the current trigger instruction is a bright screen instruction or a screen unlocking instruction; accordingly, the first hiding module 62 includes:
a first determining unit, configured to determine a screen type of a screen and a screen state of a preset screen area;
the first hiding unit is used for hiding the cache display task corresponding to the preset screen area when the current trigger instruction is not the preset instruction, the screen type is the preset screen type, the current screen area is the preset screen area and the screen state is the awakening state.
Optionally, in another possible implementation manner of the present application, the first hiding unit is specifically configured to:
and in the process of waking up the preset screen area, skipping the method for executing the resume cache display task and the method for making the cache display task visible.
Optionally, in another possible implementation manner of the present application, the current trigger instruction is a history display task termination instruction; accordingly, the first hiding module 62 includes:
The second determining unit is used for determining whether the current trigger instruction is a preset instruction or not when the screen type of the screen is a preset screen type, the current screen area is a preset screen area and a stack corresponding to the cache display task is not empty;
the second hiding unit is used for hiding the cache display task corresponding to the preset screen area when the current trigger instruction is not a preset instruction.
Optionally, in another possible implementation manner of the present application, the second hiding unit is specifically configured to:
and executing a method for forcedly hiding the cache display task.
It should be noted that, because the content of information interaction and execution process between the above devices/units is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and will not be described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In order to implement the above embodiment, the present application further proposes an electronic device.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 7, 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. 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 sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 may include one or more processing units, such as: 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), a controller, a memory, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller may be a neural hub and a command center of the electronic device 100, among others. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the 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 reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces, such as 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 receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and does not limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. Such as: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can amplify the signal modulated by the modem processor, and convert the signal into electromagnetic waves through the antenna 1 to radiate. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be provided in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs sound signals through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or video through the display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional module, independent of the processor 110.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. Wireless communication techniques may include global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is 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 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (flex), a mini, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being an integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The digital signal processor is used for processing digital signals, and can process other digital signals besides digital image signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to fourier transform the frequency bin energy, and so on.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record video in a variety of encoding formats, such as: dynamic picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, such as referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent cognition of the electronic device 100 can be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. Such as storing files of music, video, etc. in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data (e.g., audio data, phonebook, etc.) created by the electronic device 100 during use, and so forth. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
The electronic device 100 may implement audio functions such as music playing, recording, etc. through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, and application processor, etc.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, in a shooting scene, the electronic device 100 may range using the distance sensor 180F to achieve fast focus.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
It should be noted that, the implementation process and the technical principle of the electronic device in this embodiment refer to the foregoing explanation of the display method in the embodiment of the present application, and are not repeated herein.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps that may implement the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on an electronic device, causes the electronic device to perform steps that may be performed in the various method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow in the methods of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program may implement the steps of each method embodiment described above when executed by a processor. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an apparatus/electronic device, a recording medium, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other manners. For example, the apparatus/electronic device embodiments described above are merely illustrative, e.g., the division of the modules or units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection via interfaces, devices or units, which may be in electrical, mechanical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (13)

1. A display method, applied to an electronic device, comprising:
when a current trigger instruction for a screen of the electronic equipment is acquired, determining a current screen area corresponding to the current trigger instruction;
When the current screen area comprises a preset screen area and the current trigger instruction is not a preset instruction, hiding a cache display task corresponding to the preset screen area;
and controlling the display state of the preset screen area according to the current trigger instruction.
2. The method of claim 1, wherein before hiding the buffered display task corresponding to the preset screen region when the current screen region includes a preset screen region and the current trigger instruction is not a preset instruction, further comprising:
and when the current trigger instruction is the preset instruction, displaying the cache display task in the preset screen area.
3. The method of claim 1, wherein the current trigger instruction comprises any one of the following instructions: the display device comprises a screen-on instruction, a screen unlocking instruction, a historical display task termination instruction and the preset instruction, wherein the historical display task refers to a display task which is being displayed in a preset screen area before the current trigger instruction is acquired.
4. The method of claim 3, wherein the on screen instruction comprises at least one of a screen wake up instruction, a message notification instruction.
5. The method of claim 3, wherein the history display task termination instruction comprises a screen switch instruction.
6. The method of claim 3, wherein the current trigger instruction is the screen unlock instruction or the history display task termination instruction, and the controlling the display state of the preset screen area according to the current trigger instruction includes:
and controlling the preset screen area to turn off the screen.
7. The method of claim 3, wherein the current trigger instruction is the bright screen instruction, and the controlling the display state of the preset screen area according to the current trigger instruction includes:
and displaying the current display task corresponding to the current trigger instruction in the preset screen area.
8. The method of any one of claims 3-7, wherein the current trigger instruction is the screen-on instruction or the screen-unlock instruction, and when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding a cache display task corresponding to the preset screen area, including:
determining the screen type of the screen and the screen state of the preset screen area;
And hiding a cache display task corresponding to the preset screen area when the current trigger instruction is not the preset instruction, the screen type is the preset screen type, the current screen area is the preset screen area and the screen state is the awakening state.
9. The method of claim 8, wherein hiding the cache display task corresponding to the preset screen area comprises:
and in the process of waking up the preset screen area, skipping the method for executing and recovering the cache display task and the method for making the cache display task visible.
10. The method according to any one of claims 3-7, wherein the current trigger instruction is the history display task termination instruction, and when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding a cache display task corresponding to the preset screen area, including:
when the screen type of the screen is a preset screen type, the current screen area is the preset screen area, and a stack corresponding to the cache display task is not empty, determining whether the current trigger instruction is the preset instruction;
And hiding the cache display task corresponding to the preset screen area when the current trigger instruction is not the preset instruction.
11. The method of claim 10, wherein hiding the cache display task corresponding to the preset screen area comprises:
and executing a method for forcedly hiding the cache display task.
12. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of any of claims 1-11 when executing the computer program.
13. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1-11.
CN202311215009.XA 2023-09-19 2023-09-19 Display method, electronic device and storage medium Pending CN117667229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311215009.XA CN117667229A (en) 2023-09-19 2023-09-19 Display method, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311215009.XA CN117667229A (en) 2023-09-19 2023-09-19 Display method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN117667229A true CN117667229A (en) 2024-03-08

Family

ID=90079677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311215009.XA Pending CN117667229A (en) 2023-09-19 2023-09-19 Display method, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN117667229A (en)

Similar Documents

Publication Publication Date Title
WO2021000881A1 (en) Screen splitting method and electronic device
CN110543287B (en) Screen display method and electronic equipment
CN111176506A (en) Screen display method and electronic equipment
CN113805797B (en) Processing method of network resource, electronic equipment and computer readable storage medium
CN113641271B (en) Application window management method, terminal device and computer readable storage medium
CN115543159B (en) Wallpaper display method, device, equipment and storage medium
CN113703894A (en) Display method and display device of notification message
CN116055856B (en) Camera interface display method, electronic device, and computer-readable storage medium
WO2023000746A1 (en) Augmented reality video processing method and electronic device
CN116048833A (en) Thread processing method, terminal equipment and chip system
CN114500732B (en) Interface display method, electronic equipment and storage medium
CN117009005A (en) Display method, automobile and electronic equipment
CN117667229A (en) Display method, electronic device and storage medium
CN113495733A (en) Theme pack installation method and device, electronic equipment and computer readable storage medium
CN116592756B (en) Detection method for included angle of folding screen and electronic equipment
CN116028534B (en) Method and device for processing traffic information
CN116688494B (en) Method and electronic device for generating game prediction frame
CN116033341B (en) Method and device for triggering fence event
CN116048831B (en) Target signal processing method and electronic equipment
CN117170560B (en) Image transformation method, electronic equipment and storage medium
CN116723382B (en) Shooting method and related equipment
CN116795197A (en) Layer processing method and electronic equipment
CN117666810A (en) Input method and electronic equipment
CN117435309A (en) Task migration method, electronic equipment and system
CN117473578A (en) Method for controlling a component and related device

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