Display method, electronic device and storage medium
By monitoring screen trigger commands and hiding cached display tasks under non-preset commands, the display problem when the back screen of foldable electronic devices is awakened is solved, improving user experience and efficiency.
Patent Information
- Application Number
- CN202311215009.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-19
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2043-09-19
AI Technical Summary
When the back screen of a foldable electronic device is awakened, the cached display task is still displayed in the non-back screen light code scene, resulting in a poor user experience.
By monitoring the screen trigger command, the current screen area is determined, and the cached display tasks of the preset screen area are hidden when there is no preset command, avoiding displaying the cached tasks when they are not needed.
Improved the efficiency of starting back-screen display tasks, ensuring that the screen status is consistent with user needs and enhancing the user experience.
Smart Images

Figure CN117667229B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of terminal technology, and in particular relates to a display method, an electronic device, and a computer-readable storage medium. Background Art
[0002] When a foldable electronic device (such as a mobile phone with an outward-folding screen) is folded, the user sees two screens: one is the main screen, which is the default screen for the user, and the other is the back screen. To enrich the phone's usage scenarios, the back screen can display some interfaces to increase usability, such as displaying some commonly used payment QR codes, to improve user convenience.
[0003] In related technologies, one-click opening of a designated QR code in a third-party app typically uses shortcuts or software development kits (SDKs) provided by the third-party app. This approach involves multiple activity jumps during the startup process, resulting in a slow startup. To improve the user experience, previously launched back-screen display tasks can be retained in the corresponding cached display task for the back screen, thereby increasing the efficiency of launching designated back-screen display tasks.
[0004] However, when the back screen is woken up, even if it is not in the back screen code lighting scenario, the screen will enter the wakeup process by default and restore the activity (resumeTopActivity) at the top of the cached task stack. Therefore, in the non-back screen code lighting scenario, the interface corresponding to the specified back screen display task (such as the specified QR code) will also be displayed on the back screen, which does not meet the actual application requirements and affects the user experience. Summary of the Invention
[0005] The embodiments of the present application provide a display method, an electronic device, and a computer-readable storage medium, which can solve the problem that a started back screen display task is retained in a cached display task corresponding to the back screen to improve the startup efficiency of a specified back screen display task. In a non-back screen light code scenario, the interface corresponding to the specified back screen display task is also displayed on the back screen, which does not meet actual application requirements and affects the user experience.
[0006] In the first aspect, an embodiment of the present application provides a display method applied to an electronic device, including: when a current trigger instruction for the screen of the electronic device is obtained, determining the current screen area corresponding to the current trigger instruction; when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding the cached display task corresponding to the preset screen area; and controlling the display status of the preset screen area according to the current trigger instruction.
[0007] In a possible implementation of the first aspect, when the current screen area includes the preset screen area and the current trigger instruction is not a preset instruction, before hiding the cached display task corresponding to the preset screen area, the method further includes:
[0008] When the current trigger instruction is the preset instruction, the cache display task is displayed in the preset screen area.
[0009] Optionally, in another possible implementation of the first aspect, the above-mentioned current trigger instruction includes any one of the following instructions: a screen light instruction, a screen unlock instruction, a historical display task termination instruction and a preset instruction, wherein the historical display task refers to the display task being displayed in the preset screen area before the current trigger instruction is obtained.
[0010] Optionally, in another possible implementation of the first aspect, the above-mentioned screen light instruction includes at least one of a screen wake-up instruction and a message notification instruction.
[0011] Optionally, in yet another possible implementation of the first aspect, the history display task termination instruction includes a screen switching instruction.
[0012] Optionally, in another possible implementation of the first aspect, the current trigger instruction is a screen unlock instruction or a history display task termination instruction; accordingly, controlling the display state of the preset screen area according to the current trigger instruction includes:
[0013] Control the preset screen area to turn off the screen.
[0014] Optionally, in another possible implementation of the first aspect, the current trigger instruction is a screen-lighting instruction; accordingly, controlling the display state of the preset screen area according to the current trigger instruction includes:
[0015] The current display task corresponding to the current trigger instruction is displayed in the preset screen area.
[0016] Optionally, in another possible implementation of the first aspect, the current trigger instruction is a screen-lighting instruction or a screen-unlocking instruction; accordingly, when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding the cached display task corresponding to the preset screen area includes:
[0017] Determine the screen type of the screen and the screen status of the preset screen area;
[0018] 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 awake state, the cache display task corresponding to the preset screen area is hidden.
[0019] Optionally, in yet another possible implementation of the first aspect, the hiding of the cached display tasks corresponding to the preset screen area includes:
[0020] In the process of waking up the preset screen area, the method of restoring the cached display task and the method of making the cached display task visible are skipped.
[0021] Optionally, in yet another possible implementation of the first aspect, the current trigger instruction is a historical display task termination instruction; accordingly, when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hiding the cached display task corresponding to the preset screen area includes:
[0022] When the screen type of the screen is a preset screen type, the current screen area is a preset screen area, and the stack corresponding to the cache display task is not empty, determining whether the current trigger instruction is a preset instruction;
[0023] When the current triggering instruction is not a preset instruction, the cache display task corresponding to the preset screen area is hidden.
[0024] Optionally, in another possible implementation of the first aspect, the hiding of the cached display tasks corresponding to the preset screen area includes:
[0025] Method for executing forced hidden cache display task.
[0026] In second aspect, an embodiment of the present application provides a display device, which is applied to an electronic device, including: a first determination module, which is used to determine the current screen area corresponding to the current trigger instruction when the current trigger instruction for the screen of the electronic device is obtained; a first hiding module, which is used to hide the cached display task corresponding to the preset screen area when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction; and a first control module, which is used to control the display status of the preset screen area according to the current trigger instruction.
[0027] In a possible implementation of the second aspect, the apparatus further includes:
[0028] The first display module is configured to display the cache display task in a preset screen area when the current trigger instruction is the preset instruction.
[0029] Optionally, in another possible implementation of the second aspect, the above-mentioned current trigger instruction includes any one of the following instructions: a screen light instruction, a screen unlock instruction, a historical display task termination instruction and a preset instruction, wherein the historical display task refers to the display task being displayed in the preset screen area before the current trigger instruction is obtained.
[0030] Optionally, in another possible implementation of the second aspect, the above-mentioned screen light instruction includes at least one of a screen wake-up instruction and a message notification instruction.
[0031] Optionally, in yet another possible implementation of the second aspect, the history display task termination instruction includes a screen switching instruction.
[0032] Optionally, in another possible implementation of the second aspect, the current trigger instruction is a screen unlock instruction or a history display task termination instruction; accordingly, the first control module includes:
[0033] The first control unit is used to control the preset screen area to turn off the screen.
[0034] Optionally, in another possible implementation of the second aspect, the current trigger instruction is a screen-lighting instruction; accordingly, the first control module includes:
[0035] The first display unit is configured to display a current display task corresponding to a current trigger instruction in a preset screen area.
[0036] Optionally, in another possible implementation of the second aspect, the current trigger instruction is a screen-on instruction or a screen-unlock instruction; accordingly, the first hidden module includes:
[0037] a first determining unit, configured to determine a screen type of a screen and a screen state of a preset screen area;
[0038] The first hiding unit is used to hide 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 awake state.
[0039] Optionally, in yet another possible implementation of the second aspect, the first hiding unit is specifically configured to:
[0040] In the process of waking up the preset screen area, the method of restoring the cached display task and the method of making the cached display task visible are skipped.
[0041] Optionally, in another possible implementation of the second aspect, the current trigger instruction is a history display task termination instruction; accordingly, the first hidden module includes:
[0042] a second determining unit, configured to determine whether the current trigger instruction is a preset instruction when the screen type of the screen is a preset screen type, the current screen area is a preset screen area, and the stack corresponding to the cache display task is not empty;
[0043] The second hiding unit is configured to hide the cache display task corresponding to the preset screen area when the current triggering instruction is not a preset instruction.
[0044] Optionally, in another possible implementation of the second aspect, the second hidden unit is specifically configured to:
[0045] Method for executing forced hidden cache display task.
[0046] In a third aspect, an embodiment of the present application provides 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 display method described above when executing the computer program.
[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, wherein the computer program implements the display method as described above when executed by a processor.
[0048] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the display method as described above.
[0049] The beneficial effect of the embodiments of the present application compared with the prior art is that when the preset screen area is triggered, the cached display task corresponding to the preset screen area is hidden when there is no need to display the cached display task corresponding to the preset screen area, thereby avoiding the problem of indiscriminately displaying the cached display task in application scenarios where there is no need to display the cached display task, so that the screen state or display content of the preset screen area is consistent with the actual usage needs of the user, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0051] Figure 1 This is a schematic diagram of an outward folding screen mobile phone in an unfolded state provided by an embodiment of the present application;
[0052] Figure 2 This is a schematic diagram of a foldable screen mobile phone in a folded state provided by an embodiment of the present application;
[0053] Figure 3 This is a schematic diagram of the architecture of a software system of an electronic device provided in one embodiment of the present application;
[0054] Figure 4 This is a flow chart of a display method provided in one embodiment of the present application;
[0055] Figure 5 This is a flowchart of a screen unlocking process for an electronic device provided by an embodiment of the present application;
[0056] Figure 6 is a schematic structural diagram of a display device provided in one embodiment of the present application;
[0057] Figure 7 It is a structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0058] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0059] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0060] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0061] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0062] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0063] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0064] Before introducing the method provided in the embodiment of the present application, the application scenarios involved in the embodiment of the present application are first introduced.
[0065] With the rapid development of terminal technology, electronic devices such as mobile phones, tablet computers, and smart watches have been widely used. In order to meet users' demand for large screens and take into account the volume of electronic devices, electronic devices equipped with folding screens have emerged. In particular, electronic devices equipped with external folding screens not only expand the screen area of the electronic device and reduce the volume of the electronic device, but also, compared with internal folding screens, external folding screens can avoid creases when the screen is in the folded state, thereby increasing the service life of the electronic device screen. Taking external folding screen mobile phones as an example, such as Figure 1 As shown, it is a schematic diagram of an external folding screen mobile phone in the unfolded state, wherein the external folding screen is divided into three screen areas 101, 102, and 103; wherein, when the external folding screen mobile phone is in the unfolded state, the three screen areas 101, 102, and 103 can be combined into one screen for display; when the external folding screen mobile phone is in the folded state, in some application scenarios, the larger screen area 101 can be used alone as the main screen of the external folding screen mobile phone, and the smaller screen area 102 can be used together with the screen area 102 to constitute the back screen of the external folding screen mobile phone; in other application scenarios, the screen area 101 can be used together with the screen area 103 to constitute the main screen of the external folding screen mobile phone, and the screen area 102 can be used alone as the back screen of the external folding screen mobile phone. It should be noted that when the external folding screen mobile phone is in the folded state, the screen area 101 and the screen area 102 can be in relative positions, and the screen area 103 can be between the screen area 101 and the screen area 103, and located on the side of the folding screen mobile phone, and perpendicular to the screen area 101 and the screen area 102 respectively. Figure 2 , shown is a schematic diagram of a folding screen mobile phone in a folded state, wherein when the folding screen mobile phone is in the folded state, the positional relationship between the screen area 101, the screen area 102 and the screen area 103 can be referred to Figure 2 .
[0066] Currently, electronic devices can be installed or configured with various types of applications to meet the different business needs of users. For example, if the electronic device is a mobile phone, the mobile phone can be installed with applications for social networking, work, entertainment, shopping, payment and other functions. For foldable screen mobile phones, in order to enrich the use scenarios of mobile phones, payment QR codes can be displayed on the back screen to improve the convenience of user use. For example, for WeChat TM , Alipay TM If the user needs to open the payment QR code when making a payment in an application with a payment function, they need to click the icon corresponding to the application on the main interface of the mobile phone to open the application, and then click the control corresponding to the payment QR code in the application to display the payment QR code. Therefore, in order to simplify the process of opening the payment QR code for users, a specific command can be used to trigger the display of WeChat on the back screen interface. TM , Alipay TM For example, the back screen display QR code service can be triggered by a specific gesture (such as tapping the back screen with your knuckles several times (such as twice) to display the payment QR code on the back screen; or the back screen display QR code service can be triggered when an external scanning device (such as a cash register scanner) is detected to scan the back screen to display the payment QR code on the back screen. However, if the display service is restarted each time the back screen display service is triggered, multiple activities will jump during the startup process, resulting in a slow startup speed. To improve the user experience, the back screen display code service that has been started can be retained in the cache display task corresponding to the back screen to improve the startup efficiency of the back screen display code service.
[0067] However, since the screen will enter the process and resumeTopActivity by default when the back screen is awakened (such as turning on the screen, unlocking the screen, etc.), even if it is not in the back screen code scene, the interface corresponding to the back screen code scene will be displayed on the back screen. In addition, in some scenes that require displaying wallpaper, incoming calls, back screen selfies, etc. on the back screen, the back screen task interface will also be displayed when the screen is turned on, or when the animation is executed during the exit of the above interfaces.
[0068] Therefore, in order to solve the above-mentioned problem of displaying the back screen bright code task in the non-back screen bright code business, an embodiment of the present application provides a display method, which can hide the cached display task corresponding to the current screen area when there is no need to display the cached display task corresponding to the preset screen area, thereby avoiding the problem of indiscriminately displaying the cached display task in the application scenario where there is no need to display the cached display task, so that the screen state or display content of the preset screen area is consistent with the actual usage needs of the user, thereby improving the user experience. Its specific implementation can be found in the embodiment described below.
[0069] It should be noted that the above-mentioned application scenarios are merely exemplary and do not limit the application scenarios of the display method provided in the embodiments of the present application. That is, the method can also be applied to other application scenarios that require cached task display on the back screen.
[0070] It should also be noted that the above description is based on a mobile phone as an example. In addition, the display method provided in the embodiments of the present application can also be applied to electronic devices such as sports cameras (GoPro), digital cameras, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, vehicle-mounted equipment, ultra-mobile personal computers (UMPC), netbooks, cellular phones, personal digital assistants (PDA), augmented reality (AR) and virtual reality (VR) devices, wearable devices (such as wearable smart bracelets, etc.), smart home devices (such as smart refrigerators, smart TVs, etc.), and the embodiments of the present application are not limited to this.
[0071] The software system of the electronic device can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to exemplify the software system of the electronic device.
[0072] Figure 3 This is a block diagram of a software system for an electronic device provided in an embodiment of the present application. Figure 3 The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime (Android runtime) and the system layer, and the kernel layer. In addition, Figure 3 The relationship between the hardware layer and the software system is also shown. As an example of this application, the hardware layer includes a display screen, which is used to display various display tasks in the electronic device, such as displaying a QR code on the back screen, displaying wallpaper, displaying incoming calls, etc.
[0073] The application layer can include a series of application packages. Figure 3As shown, the application package may include a back screen code light application, which is used to implement the main functions such as the display interaction of the QR code on the back screen, including startup and exit control, window display control, state synchronization and event transmission, etc. The back screen code light application may include a task management module, which may include applications such as mask display, task switching, recommended service list, capsule display, Activity pull-up, etc. The application layer may also include third-party software development kits, such as third-party applications that can provide QR code services such as payment QR codes (such as WeChat TM , Alipay TM Although not shown in the figure, the application layer may also include instant messaging, calling, camera, gallery, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.
[0074] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As an example of this application, Figure 3 As shown, the application framework layer may include at least a back screen code interface set, a window management service (WMS), a smart engine, and an activity management service (AMS). Among them, the smart engine may include a smart perception module. When the back screen code service is turned on, the smart engine may prioritize displaying the recommended service functions in the recommended service list on the back screen based on the recommended service list in the application layer. When the recommended service list is empty, the service functions set by the user may be displayed on the back screen based on the user's settings. For example, the recommended service list includes WeChat. TM When the corresponding payment function is used, WeChat can be displayed on the back screen when the back screen code scene is triggered. TM The corresponding payment QR code; if the recommended service list is empty and the user sets Alipay to be displayed in the back screen code scene TM The corresponding payment QR code can be displayed on the back screen when the back screen code scene is triggered. TM The corresponding payment QR code.
[0075] The AMS module implements embedded activity startup and lifecycle management, while the WMS module implements embedded task management, activity transition control within a task, focus and visibility management of the back-screen task window scene, and configuration updates and compatibility management. The AMS and WMS modules provide the back-screen task window interface layer for use by system applications.
[0076] The Android runtime consists of core libraries and a virtual machine (VM). The Android runtime is responsible for scheduling and management of the Android system. The core library consists of two parts: one for Java-based functions and the other for the Android core library. The application layer and application framework layer run in the VM. The VM executes Java files from the application layer and application framework layer as binary files. The VM is responsible for performing functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0077] The system library can include multiple functional modules, such as: surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc. The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis, and layer processing. The 2D graphics engine is a drawing engine for 2D drawing.
[0078] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0079] The display method, device, electronic device, storage medium and computer program provided in this application are described in detail below with reference to the accompanying drawings.
[0080] In the above Figure 3 Based on the software architecture of the electronic device shown, the display method provided by the embodiment of the present application is introduced below. Figure 4 , Figure 4 This is a flow chart of a display method provided by an embodiment of the present application. As an example and not a limitation, the method can be performed by Figure 3 The electronic device shown in the figure is executed, and the electronic device is implemented by the interaction of the above modules. The method may include some or all of the following contents:
[0081] Step 401: When a current trigger instruction for the screen of the electronic device is obtained, a current screen area corresponding to the current trigger instruction is determined.
[0082] Among them, the current trigger instruction may include any one of the following instructions: a screen light instruction, a screen unlock instruction, a historical display task termination instruction and the preset instruction, wherein the historical display task refers to the display task being displayed in the current screen area before the current trigger instruction is obtained.
[0083] It should be noted that the preset instruction may refer to an instruction that triggers the display of a cached display task in a preset screen area of the electronic device. For example, in the back screen light-up scenario of an external foldable screen electronic device, the preset screen area may be the back screen, the preset instruction may be an instruction that triggers the back screen light-up service (such as tapping the back screen twice with a knuckle), and the cached display task is the display task corresponding to the back screen light-up code.
[0084] The current screen area may refer to the screen area of the electronic device where the current trigger instruction occurs, or may refer to the screen area where the display content or display state will change 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.
[0085] In the embodiment of the present application, the display method of the embodiment of the present application is described by taking the back screen display code service of the foldable screen electronic device as an example. The display method of the embodiment of the present application can also be triggered by other cache display tasks of the back screen, which will not be described in detail here.
[0086] In an embodiment of the present application, when the back screen bright code service of an external folding screen electronic device is turned on, if the back screen bright code service has been started, the cached display task corresponding to the back screen bright code service will be cached in the task stack. Therefore, as long as the display state of the back screen changes (such as from bright screen to off screen, from off screen to bright screen, display task switching, screen switching, etc.), the problem of the interface corresponding to the back screen bright code service being displayed on the back screen will occur. Therefore, the triggering instruction of the screen of the electronic device can be monitored, and when the triggering instruction to the screen is monitored, the current screen area corresponding to the current triggering instruction is determined, so as to determine through subsequent steps whether the current triggering instruction will cause the display state of the preset screen area (i.e., the back screen in the back screen bright code scene) to change, so as to hide the cached display task in time when the current triggering instruction causes the interface corresponding to the cached display task to be displayed on the back screen, thereby preventing the interface corresponding to the cached display task from being displayed when the cached display task is not needed, so as to improve the user experience.
[0087] In a possible implementation of an embodiment of the present application, since the screen light-up instruction, screen unlock instruction, historical display task termination instruction and preset instruction for triggering the back screen light-up code service may all cause the display state or display content of the back screen to change, when any of the above instructions is monitored, it can be determined that the current trigger instruction is obtained and the current screen area corresponding to the current trigger instruction is determined.
[0088] As a possible implementation method, a screen wake-up command initiated by the user when the screen is off (such as clicking the screen) can trigger the electronic device's screen to light up. In some scenarios, when the electronic device receives a new message from an application that triggers a message notification, it can also trigger the electronic device to light up. Therefore, in the embodiment of the present application, the screen light-up command can include at least one of a screen wake-up command and a message notification command.
[0089] It should be noted that the types of screen-lighting instructions mentioned in the embodiments of this application are merely exemplary and should not be construed as limiting this application. In actual use, the type of screen-lighting instruction is related to the actual function of the electronic device. Any instruction that can trigger the screen of the electronic device to light up can be used as the screen-lighting instruction in the embodiments of this application, and this embodiment of the application does not limit this.
[0090] As an example, the screen wake-up instruction can be an instruction that can trigger the screen of the electronic device to turn on when the user actively initiates the instruction by clicking any area of the electronic device, triggering the power button of the electronic device, or lifting the electronic device. Since when the back screen is turned on to display the wallpaper, if there is a cached display task corresponding to the back screen, the cached display task will be displayed first and then the wallpaper. Therefore, when the user triggers the screen turn-on but does not trigger the back screen light code service, the interface corresponding to the back screen light code task will be displayed, which does not meet the actual usage needs of the user. Therefore, when the screen wake-up instruction input by the user is obtained, the current screen area corresponding to the screen wake-up instruction can be determined.
[0091] For example, assuming that the screen wake-up operation is a user clicking the screen, if the screen wake-up logic of the electronic device is to wake up the entire screen by clicking any screen area, then the entire screen area of the electronic device can be determined as the current screen area; for example, Figure 1 In the foldable screen electronic device shown, if the user clicks on screen area 101 or screen area 102 when the screen of the electronic device is off, the entire screen area 101, 102 and 103 can be determined as the current screen area. If the screen wake-up logic of the electronic device is to wake up only the clicked screen area, the screen area clicked by the user can be determined as the current screen area; for example, Figure 1 In the folding screen electronic device shown, when the screen of the electronic device is off, the user clicks on screen area 101 to determine screen area 101 as the current screen area; or, when the screen of the electronic device is off, the user clicks on screen area 102 to determine screen area 102 as the current screen area.
[0092] It should be noted that the above examples are merely illustrative and should not be construed as limiting the present application. In actual use, the type of instruction included in the screen wake-up instruction and the method for determining the current screen area corresponding to the screen wake-up instruction can be determined based on actual needs and specific application scenarios, and the present application embodiments do not limit this.
[0093] As an example, the screen wake-up instruction can also be an instruction such as a message notification instruction that can actively trigger the screen of the electronic device to light up. For example, the message notification instruction can include various application message notification instructions, such as SMS notification instructions, instant messaging software new message notification instructions, incoming call instructions, and so on. Taking the incoming call instruction as an example, assuming that the electronic device has turned on the back screen display incoming call function, the incoming call interface can be displayed on the back screen when the electronic device receives an incoming call, but if there is a cached display task corresponding to the back screen, the cached display task will be displayed first and then the incoming call interface will be displayed, which is inconsistent with the user's actual usage needs. Therefore, when any message notification instruction (such as an incoming call instruction) is obtained, the screen area where the message notification is to be displayed can be determined as the current screen area corresponding to the message notification instruction.
[0094] For example, assuming that the message notification instruction is an incoming call instruction, and the electronic device has turned on the back screen display incoming call function, the back screen can be determined as the current screen area when the incoming call instruction is obtained.
[0095] As a possible implementation, when the screen of an electronic device is in the folded state and the screen is unlocked, the back screen will display the lock screen wallpaper after receiving the screen unlock command, and the screen will be turned off after the main screen is successfully unlocked. However, if there is a cached display task corresponding to the back screen, the back screen will first display the cached display task and then turn off. As a result, the interface corresponding to the back screen light-up task will be displayed even if the user has not triggered the back screen light-up service, which does not meet the user's actual usage needs. Therefore, when the screen unlock command input by the user is obtained, the back screen area can be determined as the current screen area.
[0096] It should be noted that if Figure 1 As shown in the external folding screen, if when the main screen is unlocked, according to actual business needs, the main screen is screen area 101, then the screen area 102 and the screen area 103 can be jointly determined as the back screen, that is, the screen area 102 and the screen area 103 are determined as the current screen area; if according to actual business needs, the main screen is screen area 101 and screen area 103, then the screen area 102 can be determined as the back screen, that is, the screen area 102 is determined as the current screen area.
[0097] As a possible implementation method, when the task currently being displayed on the back screen is terminated, the back screen should be turned off. For example, when the task currently being displayed on the back screen is switched to the main screen, the back screen should be turned off. However, if there is a cached display task corresponding to the back screen, the back screen will first display the cached display task and then turn off. As a result, the interface corresponding to the back screen light-up task will be displayed even when the user has not triggered the back screen light-up service, which is inconsistent with the user's actual usage needs. Therefore, when the historical display task termination instruction is obtained, the back screen area can be determined as the current screen area.
[0098] As an example, the historical display task termination instruction can be a screen switching instruction. For example, when the back screen and the rear camera of an external folding screen electronic device are on the same plane of the electronic device, if the user wants to take a selfie with the rear camera, the camera preview interface can be displayed on the back screen to facilitate taking pictures, that is, the back screen selfie scene; but if the user wants to switch the camera preview interface to the main screen for display in the back screen selfie scene, the screen switching instruction in the camera preview interface can be clicked to switch to the main screen, and the animation corresponding to the screen switching will be displayed during the switching process. However, if Figure 1 For the external folding screen shown, in the back-screen selfie scenario, to make the camera preview interface more convenient for the user to view, only screen area 102 can be determined as the back screen, that is, the camera preview interface is displayed in screen area 102, and screen area 101 and screen area 103 together constitute the main screen. Furthermore, when the camera preview interface is switched from the back screen to the main screen for display, only screen area 101 can be determined as the main screen, that is, the camera preview interface is displayed only in screen area 101. This will cause the back screen to switch from screen area 102 to the screen area composed of screen area 102 and screen area 103. If there is a cached display task corresponding to the back screen, the cached display task will be partially displayed in screen area 103 (the rest of the cached display task is displayed in screen area 102, but is covered by the screen switching animation). As a result, the interface corresponding to the back screen light code task will be displayed even if the user has not triggered the back screen light code service, which does not meet the user's actual usage needs. Therefore, when a screen switching instruction is obtained, the back screen area can be determined as the current screen area.
[0099] As a possible implementation, the preset instruction may be an instruction that triggers the cached display task to be displayed in a preset screen area. For example, in a back screen code light-up scenario, the preset instruction may be an instruction that triggers the cached display task corresponding to the back screen code light-up service to be displayed on the back screen, such as tapping the back screen area twice with a knuckle.
[0100] As a possible implementation manner, when the current trigger instruction is the preset instruction, the cache display task can be displayed in the preset screen area, that is, the subsequent steps in the embodiment of the present application are no longer executed.
[0101] It should be noted that if the current trigger instruction is a preset instruction, it can be determined that the cached display task corresponding to the preset screen area needs to be displayed currently, and the cached display task corresponding to the preset screen area can be directly displayed in the preset screen area.
[0102] For example, in the back screen code light-up scenario, assuming that the preset instruction is to tap the back screen twice with the knuckles, and the preset screen area is the back screen, when the user operation of tapping the back screen twice with the knuckles is detected, the back screen can be woken up and the resumeTopActivity method can be executed to display the cached display task corresponding to the back screen code light-up service on the back screen.
[0103] Step 402 : When the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, hide the cached display task corresponding to the preset screen area.
[0104] In an embodiment of the present application, taking the back screen bright code service as an example, the preset screen area is the back screen. If it is determined that the current trigger instruction is not the preset instruction, it can be determined that the current is not the back screen bright code scene, and there is no need to display the cached display task corresponding to the back screen bright code service; if it is determined that the current screen area is the preset screen area (that is, the back screen), it can be determined that the display state or display content of the current back screen will change, so that the cached display task corresponding to the back screen bright code is displayed in the back screen; therefore, the cached display task corresponding to the preset screen area, that is, the cached display task corresponding to the back screen bright code service, can be hidden, so that during the process of changing the display state or display content of the back screen, the cached display task corresponding to the back screen bright code service will not be displayed in the back screen.
[0105] Furthermore, since the system will execute the unlocking process when the screen is on or unlocked, and after marking the screen state as awake, it will execute the resumeTopActivity method and ensureActivitieVisible method to display the cached display task on the screen. Therefore, when the current trigger instruction is a screen-on instruction or a screen-unlock instruction, the resumeTopActivity method and ensureActivitieVisible method corresponding to the preset screen area can be avoided during the unlocking process to avoid the cached display task from being displayed in a scene that does not need to be displayed. That is, in a possible implementation method of an embodiment of the present application, the above-mentioned current trigger instruction is a screen-on instruction or a screen-unlock instruction; accordingly, the above-mentioned step 402 may include:
[0106] Determine the screen type of the screen and the screen status of the preset screen area;
[0107] 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, the cached display task corresponding to the preset screen area is hidden.
[0108] Among them, the preset screen type can be determined according to actual needs and specific application scenarios, and the embodiments of the present application do not limit this. For example, when the display method of the embodiments of the present application is applied to the back screen bright code scenario, the preset screen type can be an external folding screen.
[0109] like Figure 5 The figure shows a flow chart of the screen unlocking process of an electronic device provided by an embodiment of the present application. After the lock screen service obtains the user's unlocking instruction, the keyguardGoingAway method is executed through the activity task management service (ActivityTaskManagerService) to enter the unlocking screen process; then the forAllDisplays method is executed through the root window container (RootWindowContainer) to traverse all screen areas in the electronic device screen; then the keyguardGoingAway method is executed through the keyguard controller, and the updateKeyguardSleepToken method is executed to update the screen state of the currently traversed screen area to the awake state; then the applySleepTokens method is executed to update the screen state of the currently traversed screen area to the awake state; finally, the resumeTopActivityInnerLocked method and the ensureActivitiesVisible method are executed to display the cached display task corresponding to the screen area in the currently traversed screen area.
[0110] It can be seen that in the above native process, after obtaining the screen light instruction or the screen unlock instruction, the resumeTopActivityInnerLocked method and the ensureActivitiesVisible method will be automatically executed to display the cached display task in the corresponding screen area. Therefore, in an embodiment of the present application, taking the back screen light code service as an example, if the current trigger instruction is a screen light instruction or a screen unlock 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 the preset screen area (back screen) and the screen state is awake, that is, it is determined that the current scene is not a back screen light code scene, and the screen type is an external folding screen, and the back screen is currently updated to a wake-up state, then the cached display task corresponding to the preset screen area (back screen) can be hidden, that is, the cached display task corresponding to the back screen light code service is hidden to prevent the back screen light code from being displayed in screen light scenes such as caller ID or screen unlock scenes.
[0111] As a possible implementation method, when the current trigger command is a screen-on command or a screen-unlock command, the cached display task corresponding to the preset screen area can be hidden in the following manner:
[0112] In the process of waking up the preset screen area, the method of restoring the cached display task and the method of making the cached display task visible are skipped.
[0113] As an example, Figure 5 As shown, when the screen is on or unlocked, when traversing to the preset screen area, the applySleepTokens method can be executed to update the screen state of the preset screen area to the awake state, and then the traversal process of the preset screen area can be completed, and the traversal of the next screen area can be continued, that is, the resumeTopActivityInnerLocked method and the ensureActivitiesVisible method are not executed to prevent the cached display task corresponding to the preset screen area from being displayed in the preset screen area.
[0114] The following is the code for the cache display task corresponding to hiding the back screen in the above way:
[0115] if(HwFoldScreenState.isOutFoldDevice()&&display.getDisplayId()==
[0116] DisplayEx.SUB_BUILTIN_DISPLAY&&! displayShouldSleep){continue;
[0117] }
[0118] Among them, HwFoldScreenState.isOutFoldDevice() is used to indicate 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 HwFoldScreenState.isOutFoldDevice() is 1, otherwise the value of HwFoldScreenState.isOutFoldDevice() is 0; display.getDisplayId() == DisplayEx.SUB_BUILTIN_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 display.getDisplayId() == DisplayEx.SUB_BUILTIN_DISPLAY is 1, otherwise the value of display.getDisplayId() == DisplayEx.SUB_BUILTIN_DISPLAY is 0; displayShouldSleep represents the screen status of the current screen area. If the screen status of the current screen area is off, the value of displayShouldSleep is 1. If the screen status of the current screen area is awake, the value of displayShouldSleep is 0. Therefore, it can be seen from the above code that in the non-back screen bright code scenario, when the screen type corresponding to the screen of the electronic device is an external folding screen, the current screen area currently traversed is the back screen, and the screen status of the current screen area is awake, the resumeTopActivityInnerLocked method and the ensureActivitiesVisible method will not be executed, and the next screen area will continue to be traversed to prevent the cached display task from being displayed in the non-back screen bright code scenario.
[0119] Furthermore, since the unlocking process will not be executed when the historical display task is terminated (such as screen switching, hanging up a call, call termination, wallpaper display termination, etc.), the cached display task corresponding to the preset screen area can be forcibly hidden to prevent the cached display task from being displayed when it is not needed, thereby further improving usability. That is, in a possible implementation of the embodiment of the present application, the current trigger instruction is a historical display task termination instruction; accordingly, the above step 402 may include:
[0120] When the screen type of the screen is a preset screen type, the current screen area is a preset screen area, and the stack corresponding to the cache display task is not empty, determining whether the current trigger instruction is a preset instruction;
[0121] When the current triggering instruction is not a preset instruction, the cache display task corresponding to the preset screen area is hidden.
[0122] As a possible implementation method, take the historical display task termination instruction as an example of the screen switching instruction in the back screen selfie scene. As mentioned above, when the camera preview is switched from the back screen to the main screen display, the back screen area will change. Therefore, during the screen switching process, the cached display task corresponding to the back screen bright code service will be partially displayed in the newly added back screen area (such as Figure 1 In the screen area 103 in the task (Task). In this scenario, the isForceHidden method in the task (Task) can be used to force hiding of the cached display task. That is to say, if it is determined that 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 stack corresponding to the cached display task is not empty (that is, there is currently a cached display task corresponding to the preset screen area), and the current trigger instruction is not a preset instruction (that is, the current is not a back screen light code scene), then the cached display task corresponding to the preset screen area can be hidden, that is, the cached display task corresponding to the back screen light code service can be hidden to prevent the back screen light code from being displayed in task termination scenarios such as screen switching.
[0123] As a possible implementation method, when the current trigger instruction is a historical display task termination instruction, the cache display task corresponding to the preset screen area can be hidden in the following manner:
[0124] Method for executing forced hidden cache display task.
[0125] 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 external folding screen), the current screen area is the preset screen area (back screen), and the stack corresponding to the cached display task is not empty (that is, there is currently a cached display task corresponding to the preset screen area), and the current trigger instruction is not a preset instruction (that is, the current is not a back screen light code scene), the isForceHidden method in Task can be executed to forcibly hide the cached display task corresponding to the preset screen area.
[0126] The following is the code for the cache display task corresponding to hiding the back screen in the above way:
[0127]
[0128] Among them, HwFoldScreenState.isOutFoldDevice() is used to indicate 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 HwFoldScreenState.isOutFoldDevice() is 1, otherwise the value of HwFoldScreenState.isOutFoldDevice() is 0; currentTask==null is used to indicate whether the stack corresponding to the cached display task is empty. If so, 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 whether the current screen area is the back screen. If the current screen area is not the back screen, currentTask.getDisplayId()!=
[0129] The value of DisplayEx.SUB_BUILTIN_DISPLAY is 1, otherwise, currentTask.getDisplayId()!=
[0130] The value of DisplayEx.SUB_BUILTIN_DISPLAY is 0;
[0131] HwFoldScreenManager.getCurrentCoordinationTypeForOuter()! =
[0132] HwFoldScreenManager.CoordinationTypeEnum.COORDINATION_TYPE_QUICK_SHOW_CODE is used to indicate whether the current scene is the back screen light code scene. If not, then
[0133] HwFoldScreenManager.getCurrentCoordinationTypeForOuter()! =
[0134] The value of HwFoldScreenManager.CoordinationTypeEnum.COORDINATION_TYPE_QUICK_SHOW_COD E is 1, otherwise HwFoldScreenManager.getCurrentCoordinationTypeForOuter()! =
[0135] The value of HwFoldScreenManager.CoordinationTypeEnum.COORDINATION_TYPE_QUICK_SHOW_COD E is 0.
[0136] That is to say, through the above code, if it is determined that the screen type is not an external folding screen, or the stack corresponding to the cached display task is empty, or the current screen area is not the back screen, the isForceHidden method will not be executed, that is, the cached display task corresponding to the back screen light code business will not be hidden; if it is determined that the screen type is an external folding screen, the stack corresponding to the cached display task is not empty, the current screen area is the back screen, and the current scene is not the back screen light code, the isForceHidden method will be executed to forcibly hide the cached display task corresponding to the back screen light code business.
[0137] Step 403: Control the display state of the preset screen area according to the current trigger instruction.
[0138] In an embodiment of the present application, if the scenario is that there is no need to display the corresponding cache display task in the preset screen area, after hiding the cache display task corresponding to the preset screen area, the display status of the preset screen area can be normally controlled according to the current trigger instruction.
[0139] As a possible implementation manner, when the current trigger instruction is a screen unlock instruction or a history display task termination instruction, the preset screen area can be controlled to turn off the screen.
[0140] It should be noted that, taking the back screen code lighting service as an example, as mentioned above, if the current trigger instruction is a screen unlock instruction, the back screen needs to enter the screen-off state after the unlocking is completed. Therefore, after the cache display task corresponding to the back screen is completed, the back screen can be controlled to turn off; if the current trigger instruction is a historical display task termination instruction, and the back screen currently has no other display tasks to display, the back screen can also enter the screen-off state, so that the back screen can be controlled to turn off.
[0141] As a possible implementation manner, when the current trigger instruction is a screen-lighting instruction, the current display task corresponding to the current trigger instruction is displayed in a preset screen area.
[0142] It should be noted that, taking the back screen bright code service as an example, as mentioned above, when the back screen is brightened, there is usually a corresponding display task. For example, when the user triggers the screen brightening, there is a wallpaper display task; for another example, when an incoming call instruction is received, there is a display task of displaying the incoming call interface. Therefore, when the current trigger instruction is a screen brightening instruction, the corresponding current display task can be displayed on the back screen according to the current trigger instruction. For example, when the current trigger instruction is an incoming call instruction, the incoming call interface can be displayed on the back screen.
[0143] The display method provided in the embodiment of the present application determines the current screen area corresponding to the current trigger instruction when a current trigger instruction is obtained for the screen of the electronic device, and hides the cached display task corresponding to the preset screen area when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, thereby controlling the display state of the preset screen area according to the current trigger instruction. Thus, by hiding the cached display task corresponding to the current screen area when the preset screen area is triggered and when there is no need to display the cached display task corresponding to the preset screen area, the problem of indiscriminately displaying the cached display task in application scenarios where there is no need to display the cached display task is avoided, so that the screen state or display content of the preset screen area is consistent with the actual usage needs of the user, thereby improving the user experience.
[0144] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0145] Corresponding to the display method described in the above embodiment, Figure 6 A structural block diagram of a display device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0146] Reference Figure 6 The device 60 comprises:
[0147] A first determining module 61 is configured to, upon acquiring a current trigger instruction for the screen of the electronic device, determine a current screen area corresponding to the current trigger instruction;
[0148] A first hiding module 62 is configured to hide the cached display task corresponding to the preset screen area when the current screen area includes the preset screen area and the current triggering instruction is not a preset instruction;
[0149] The first control module 63 is configured to control the display state of a preset screen area according to a current trigger instruction.
[0150] In actual use, the display device provided in the embodiment of the present application can be configured in any electronic device to execute the aforementioned display method.
[0151] The display device provided in the embodiment of the present application determines the current screen area corresponding to the current trigger instruction when a current trigger instruction is obtained for the screen of the electronic device, and hides the cached display task corresponding to the preset screen area when the current screen area includes a preset screen area and the current trigger instruction is not a preset instruction, thereby controlling the display state of the preset screen area according to the current trigger instruction. Thus, by hiding the cached display task corresponding to the current screen area when the preset screen area is triggered and when there is no need to display the cached display task corresponding to the preset screen area, the problem of indiscriminately displaying the cached display task in application scenarios where there is no need to display the cached display task is avoided, so that the screen state or display content of the preset screen area is consistent with the actual usage needs of the user, thereby improving the user experience.
[0152] In a possible implementation of the present application, the apparatus 60 further includes:
[0153] The first display module is configured to display the cache display task in a preset screen area when the current trigger instruction is the preset instruction.
[0154] Optionally, in another possible implementation of the present application, the above-mentioned current trigger instruction includes any one of the following instructions: a screen light instruction, a screen unlock instruction, a historical display task termination instruction and a preset instruction, wherein the historical display task refers to the display task being displayed in the preset screen area before the current trigger instruction is obtained.
[0155] Optionally, in another possible implementation of the present application, the above-mentioned screen light instruction includes at least one of a screen wake-up instruction and a message notification instruction.
[0156] Optionally, in another possible implementation of the present application, the above-mentioned history display task termination instruction includes a screen switching instruction.
[0157] Optionally, in another possible implementation of the present application, the current trigger instruction is a screen unlock instruction or a history display task termination instruction; accordingly, the first control module 63 includes:
[0158] The first control unit is used to control the preset screen area to turn off the screen.
[0159] Optionally, in another possible implementation of the present application, the current trigger instruction is a screen-lighting instruction; accordingly, the first control module 63 includes:
[0160] The first display unit is configured to display a current display task corresponding to a current trigger instruction in a preset screen area.
[0161] Optionally, in another possible implementation of the present application, the current trigger instruction is a screen-on instruction or a screen-unlock instruction; accordingly, the first hidden module 62 includes:
[0162] a first determining unit, configured to determine a screen type of a screen and a screen state of a preset screen area;
[0163] The first hiding unit is used to hide 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 awake state.
[0164] Optionally, in another possible implementation of the present application, the first hiding unit is specifically configured to:
[0165] In the process of waking up the preset screen area, the method of restoring the cached display task and the method of making the cached display task visible are skipped.
[0166] Optionally, in another possible implementation of the present application, the current trigger instruction is a history display task termination instruction; accordingly, the first hidden module 62 includes:
[0167] a second determining unit, configured to determine whether the current trigger instruction is a preset instruction when the screen type of the screen is a preset screen type, the current screen area is a preset screen area, and the stack corresponding to the cache display task is not empty;
[0168] The second hiding unit is configured to hide the cache display task corresponding to the preset screen area when the current triggering instruction is not a preset instruction.
[0169] Optionally, in another possible implementation of the present application, the second hiding unit is specifically configured to:
[0170] Method for executing forced hidden cache display task.
[0171] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0172] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0173] In order to implement the above embodiments, the present application also proposes an electronic device.
[0174] Figure 7 This is a schematic structural diagram of an electronic device according to an embodiment of the present application.
[0175] See also Figure 7 The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging 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, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0176] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0177] The processor 110 may include one or more processing units, for example, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0178] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0179] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0180] In some embodiments, the processor 110 may include one or more interfaces, such as an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0181] It is understood that the interface connection relationship between the modules illustrated in the embodiments of the present application is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0182] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device 100 via the power management module 141.
[0183] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0184] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0185] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0186] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0187] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate 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. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0188] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0189] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with a network and other devices via wireless communication technology. Wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. GNSS may include the global positioning system (GPS), the global navigation satellite system (GLONASS), the Beidou navigation satellite system (BDS), the quasi-zenith satellite system (QZSS) and / or the satellite based augmentation system (SBAS).
[0190] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 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 modify display information.
[0191] Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 100 may include one or N display screens 194, where N is an integer greater than one.
[0192] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0193] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0194] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0195] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0196] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, voice recognition, and text comprehension.
[0197] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0198] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created by the electronic device 100 during use (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0199] The electronic device 100 can implement audio functions, such as music playback and recording, through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D and the application processor.
[0200] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0201] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, in a shooting scenario, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0202] The keys 190 include a power button, a volume button, etc. The keys 190 may be mechanical keys or touch keys. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0203] It should be noted that the implementation process and technical principles of the electronic device of this embodiment can be found in the aforementioned explanation of the display method of the embodiment of the present application, and will not be repeated here.
[0204] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0205] An embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0206] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / electronic device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0207] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0208] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0209] In the embodiments provided in the present application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely schematic. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0210] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0211] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A display method, characterized in that: Used in electronic equipment, including: When a current trigger instruction for the screen of the electronic device is obtained, a current screen area corresponding to the current trigger instruction is determined, wherein the screen is an external folding screen, including multiple screen areas, the current trigger instruction includes any one of the following instructions: a screen light instruction, a screen unlock instruction, a historical display task termination instruction and a preset instruction, the screen light instruction includes at least one of a screen wake-up instruction and a message notification instruction, the historical display task refers to a display task being displayed in the preset screen area before the current trigger instruction is obtained, the preset instruction refers to an instruction that triggers the display of a cached display task in the preset screen area of the electronic device, the preset screen area is any screen area of the screen, and the cached display task refers to a display task that has been started in the preset screen area and cached in the task stack 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, hiding the cache display task corresponding to the preset screen area; controlling the display state of the preset screen area according to the current trigger instruction; The step of hiding the cache display task corresponding to the preset screen area includes: When the current trigger instruction is the screen-on instruction or the screen-unlock instruction, in the process of waking up the preset screen area, skipping the method of restoring the cached display task and the method of making the cached display task visible; In a case where the current trigger instruction is the history display task termination instruction, a method for forcibly hiding the cache display task is executed.
2. The method according to claim 1, wherein When the current screen area includes the preset screen area and the current trigger instruction is not the preset instruction, before hiding the cache display task corresponding to the preset screen area, the method further includes: When the current trigger instruction is the preset instruction, the cache display task is displayed in the preset screen area.
3. The method according to claim 1, wherein The history display task termination instruction includes a screen switching instruction.
4. The method according to claim 1, wherein The current trigger instruction is the screen unlock instruction or the history display task termination instruction, and controlling the display state of the preset screen area according to the current trigger instruction includes: Control the preset screen area to turn off the screen.
5. The method according to claim 1, wherein The current trigger instruction is the screen-lighting instruction, and controlling the display state of the preset screen area according to the current trigger instruction includes: The current display task corresponding to the current trigger instruction is displayed in the preset screen area.
6. The method according to any one of claims 1 to 5, characterized in that: The current trigger instruction is the screen-lighting instruction or the screen-unlocking instruction, and when the current screen area includes the preset screen area and the current trigger instruction is not the preset instruction, hiding the cached display task corresponding to the preset screen area includes: determining a screen type of the screen and a screen state of 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 awake state, the cache display task corresponding to the preset screen area is hidden.
7. The method according to any one of claims 1 to 5, characterized in that: The method for resuming the cache display task includes a resumeTopActivityInnerLocked method, and the method for making the cache display task visible includes an ensureActivitiesVisible method.
8. The method according to any one of claims 1 to 5, characterized in that: The current trigger instruction is the historical display task termination instruction, and when the current screen area includes the preset screen area and the current trigger instruction is not the preset instruction, hiding the cached display task corresponding to the preset screen area includes: When the screen type of the screen is a preset screen type, the current screen area is the preset screen area, and the stack corresponding to the cache display task is not empty, determining whether the current trigger instruction is the preset instruction; When the current trigger instruction is not the preset instruction, the cache display task corresponding to the preset screen area is hidden.
9. The method according to any one of claims 1 to 5, characterized in that: The method for forcibly hiding the cache display task includes an isForceHidden method.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Display method, payment code recognition method and device and electronic equipment
CN112581122A