A floating window management method and related device

By controlling the permissions of the application and the display of the floating window in the locking state of the electronic device, the problem of the floating window in the locking state cannot be closed, and the locking effect and user experience are improved.

CN118394242BActive Publication Date: 2025-01-17HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410444897.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-12
Publication Date
2025-01-17
Estimated Expiration
2044-04-12

AI Technical Summary

Technical Problem

Electronic devices cannot completely close the floating window when locked, which affects the user experience. The existing locking solution is incompatible with the bottom logic of the floating window, which makes it impossible to handle the floating window.

Method used

By determining the permissions of the application in the locked state, controlling the display of the floating window, including displaying or hiding the floating window, adjusting the position of the floating window in the window stack, and enlarging the floating window to the full screen size to close the floating window properties.

Benefits of technology

It realizes effective locking of electronic devices in the locking state, improves user experience, ensures that the locking interface covers the floating window, responds to user operations, and completes the locking effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394242B_ABST
    Figure CN118394242B_ABST
Patent Text Reader

Abstract

The present application provides a floating window management method and related device, which are applied to electronic devices. When the electronic device is in a locked state and does not allow access to the first application, a first lock interface is displayed, and the first lock interface does not include the floating window of the first application; when the electronic device is in a locked state and allows access to the first application, a second lock interface is displayed, and the second lock interface includes the floating window of the first application. In the case where the electronic device is restricted from accessing the application, the floating window of the application can be processed accordingly, so as to achieve the locking effect that should be achieved in the locked state, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a floating window management method and related devices. Background Art

[0002] After an electronic device (e.g., a mobile phone) is locked for some reason (e.g., installment payment for a mobile phone is overdue and payment is not made), when the electronic device opens a floating window in response to a user operation in the locked state, or when the electronic device has displayed a floating window before the locked state, there may be a problem that the electronic device cannot completely close the above-mentioned floating window. Summary of the invention

[0003] The embodiments of the present application provide a floating window management method and related devices, which can perform corresponding processing on the floating window of an application when the permission of an electronic device to access the application is restricted.

[0004] In a first aspect, an embodiment of the present application provides a method for managing a floating window, the method comprising:

[0005] Determining a first permission for the electronic device to access a first application in a locked state;

[0006] According to the first permission, a display control method of the floating window of the first application in the locked state is determined.

[0007] It can be seen that the electronic device will still perform subsequent processing on the first application in the locked state, so that the display mode of the floating window of the first application can be processed according to the first permission for accessing the first application, thereby achieving the effect of locking the electronic device according to the locked state and improving the user experience.

[0008] In a possible implementation of the first aspect, the method further includes:

[0009] When in the locked state, and the first permission allows access to the first application, displaying a first locked interface, wherein the first locked interface includes a floating window of the first application;

[0010] When in the locked state and the first permission does not allow access to the first application, a second locked interface is displayed, and the second locked interface does not include a floating window of the first application.

[0011] It can be seen that in the locked state, the floating window of the first application can be displayed in the first locked interface only when the first application can be accessed. When the first application cannot be accessed, the floating window of the first application cannot be displayed in the first locked interface. In this way, the locking effect that the electronic device should have in the locked state can be achieved, and the user experience can be improved.

[0012] In a possible implementation of the first aspect, when the device is in the locked state and the first permission allows access to the first application, displaying a first locked interface includes:

[0013] When in the locked state, receiving a first operation of accessing the first application;

[0014] When the first permission allows access to the first application, the first lock interface and a floating window of the first application are displayed.

[0015] It can be seen that when the first application can be accessed in the locked state, the electronic device can respond normally to the first operation on the first application, so that the floating window of the first application can be displayed in the locked state, the display effect is normal, and the user experience is improved.

[0016] In a possible implementation of the first aspect, when the device is in the locked state and the first permission does not allow access to the first application, displaying the second locked interface includes:

[0017] Displaying a floating window of the first application;

[0018] Receiving a lock command, and entering the lock state according to the lock command;

[0019] When the first permission does not allow access to the first application, the floating window of the first application is closed and the second lock interface is displayed.

[0020] It can be seen that before the electronic device is locked, the floating window of the first application is displayed. After the lock state, the floating window of the first application is closed because the first application is not allowed to be accessed, and the floating window of the first application is not displayed on the second lock interface. The locking effect that the electronic device should have in the locked state can be achieved, and the user experience is improved.

[0021] In a possible implementation of the first aspect, determining, according to the first permission, a display control mode of the floating window of the first application in the locked state includes:

[0022] When the first permission does not allow access to the first application, when a first persistent floating window is detected, the window size of the first persistent floating window in the locked state is enlarged to a full-screen size, wherein the first persistent floating window is the interface window of the first application before the electronic device is in the locked state.

[0023] It is understandable that when the window size of the floating window is full-screen size, it will become a full-screen window, so it no longer has the floating window attribute (i.e., it always remains on the top layer). Therefore, the corresponding interface window can be displayed according to the sorting rules of the application window, so the lock interface corresponding to the lock scheme will cover the interface window corresponding to the above one or more applications, and be displayed at the top of the interface window corresponding to the above one or more applications. Therefore, the effect of locking the electronic device according to the locking scheme can be achieved, and the display effect of the electronic device is normal, which improves the user experience.

[0024] In a possible implementation of the first aspect, determining, according to the first permission, a display control mode of the floating window of the first application in the locked state includes:

[0025] In the locked state, receiving a first operation for accessing the first application;

[0026] When the first permission allows access to the first application, the position of the floating window of the first application in the window stack is adjusted to the head of the window stack.

[0027] It is understandable that the floating window at the head of the window stack has the highest priority and can be displayed at the top of the interface, so that the floating window can be displayed in the locked state. Therefore, in the locked state, the electronic device can still respond according to the permissions it has to achieve the desired effect (for example, in response to the operation of starting the floating window, the floating window is displayed), thereby improving the user experience.

[0028] In a possible implementation of the first aspect, determining, according to the first permission, a display control mode of the floating window of the first application in the locked state includes:

[0029] In the locked state, if the first permission allows access to the first application, displaying the first locked interface and a floating window of the first application;

[0030] A second operation of closing the floating window of the first application is received, and a position of the floating window of the first application in the window stack is adjusted to the bottom of the window stack.

[0031] It is understandable that the floating window at the bottom of the window stack has a lower priority and will not be displayed at the top of the interface, so that the floating window can be closed in the locked state. Therefore, in the locked state, the electronic device can still respond according to the permissions it has to achieve the desired effect (for example, responding to the operation of closing the floating window to achieve the effect of not displaying the floating window), thereby improving the user experience.

[0032] In a second aspect, an electronic device is provided by an embodiment of the present application, and the electronic device includes: one or more processors; a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute the method for managing floating windows described in the first aspect or any possible implementation of the first aspect.

[0033] In a third aspect, the present application provides a chip or a chip system, which includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected through a line, and the at least one processor is used to run a computer program or instruction to execute the floating window management method described in the first aspect or any possible implementation of the first aspect. Among them, the communication interface in the chip can be an input / output interface, a pin or a circuit, etc.

[0034] In a possible implementation, the chip or chip system described above in the embodiment of the present application further includes at least one memory, in which instructions are stored. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).

[0035] In a fourth aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, the computer executes the floating window management method described in the first aspect or any possible implementation of the first aspect.

[0036] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a communication device, enables the communication device to execute a floating window management method as described in the first aspect or any possible implementation of the first aspect.

[0037] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The following is an introduction to the drawings used in the embodiments of the present application.

[0039] Figure 1A This is a schematic diagram of a locking interface provided by an embodiment of the present application;

[0040] Figure 1B This is another schematic diagram of a lock interface provided in an embodiment of the present application;

[0041] Figure 2 is a structural diagram of an electronic device 100 provided in an embodiment of the present application;

[0042] Figure 3 is a schematic diagram of a software architecture of an electronic device 100 provided in an embodiment of the present application;

[0043] Figure 4A This is a schematic diagram of a scenario for managing a floating window provided in an embodiment of the present application;

[0044] Figure 4B It is a user interface for managing floating windows in a locked state provided by an embodiment of the present application;

[0045] Figure 5A This is a timing diagram of a method for managing floating windows provided in an embodiment of the present application;

[0046] Figure 5B This is a timing diagram of another method for managing floating windows provided in an embodiment of the present application;

[0047] Figure 6 It is a flowchart of a floating window management method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0048] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0049] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0050] At present, there are two commonly used locking solutions. The first is The second is to provide Google Device Lock (DLC) as a third party of financial services. PayJoy Lock provided. It is understandable that in some scenarios, such as installment payment scenarios, where the electronic device is purchased by installment payment, the DLC solution and PayJoy Lock solution can provide device management for the electronic device and remotely restrict (or lock) the access rights of the electronic device. After the electronic device is restricted (or locked), the electronic device based on the DLC solution can use applications including whitelisted ones, while the electronic device based on the PayJoy Lock solution cannot use any applications.

[0051] See also Figure 1A , Figure 1A This is a schematic diagram of a locking interface provided by an embodiment of the present application. Figure 1A It can be seen that after locking the electronic device based on the DLC solution, the electronic device 100 can open the applications in the whitelist (including address book / telephone applications, etc.). In the locked state, after the electronic device starts the address book application through the floating window mode in response to the user operation, the floating window 101 of the address book application can be displayed. However, if the user wants to close the floating window 101 of the address book application by clicking the close button 1011, because the underlying logic for implementing the floating window is incompatible with the underlying logic for implementing the DLC solution, the electronic device 100 cannot process the floating window in the locked state, and thus cannot respond to the user operation to close the floating window, so the floating window is still displayed on the display screen, and a large area of ​​black display may appear on the display screen, affecting the user experience.

[0052] See also Figure 1B , Figure 1B This is another schematic diagram of the locking interface provided by the embodiment of the present application. Figure 1B It can be seen that if the electronic device 100 displays a floating window / floating ball / mini window before the device is locked, after the electronic device 100 is locked based on the PayJoy Lock solution, the underlying logic for implementing the floating window / floating ball / mini window is incompatible with the underlying logic for implementing the PayJoy Lock solution, resulting in the electronic device 100 being unable to process the floating window / floating ball / mini window during the locking process. Therefore, in the locked state, the electronic device can still display a floating window / floating ball / mini window ( Figure 1B Taking the multiple floating windows 1021 in the sidebar 102 as an example), the user can still operate it (i.e., the floating window 1021) (for example, open a link or document in the application with the floating window), resulting in a scene omission problem and failure to completely lock the electronic device in the locked state.

[0053] Among them, the window of an application of an electronic device (also referred to as an application window, or an interface window) can include multiple display modes, such as full-screen window display, split-screen window display, floating window display, mini window display, floating ball display, etc. A floating window is a display mode of a window. A mini window is a special form of a floating window, and a mini window is a display mode in which the floating window is scaled to the smallest form. A floating ball can be understood as a display mode in which the window is minimized. Floating windows, floating balls, and mini windows can have specific properties, such as always being displayed on the top layer.

[0054] Based on this, the present application provides a floating window management method, which is applied to electronic devices. The method includes: when the electronic device receives a lock command to execute a lock scheme, if it is detected that the electronic device displays a floating window of one or more applications, the floating window can be closed by enlarging the window size of the floating window of the one or more applications to the full screen size. It can be understood that when the window size of the floating window is the full screen size, it will become a full screen window, so it no longer has the floating window attribute (that is, it always remains on the top layer). Therefore, the corresponding interface window can be displayed according to the sorting rules of the application windows, so the lock interface corresponding to the lock scheme will cover the interface window corresponding to the one or more applications, and be displayed at the top of the interface window corresponding to the one or more applications. Therefore, the effect of locking the electronic device according to the lock scheme can be achieved, and the display effect of the electronic device is normal, which improves the user experience.

[0055] In one implementation, after the electronic device is in a locked state, if the locking scheme allows access to applications in the whitelist, the electronic device responds to a user operation on a first application (i.e., an application in the whitelist), and if it is determined that the user operation is for starting a floating window, the position of the floating window of the first application in the window stack is adjusted to the head of the window stack. If it is determined that the user operation is for closing the floating window, the position of the floating window of the first application in the window stack is adjusted to the bottom of the window stack.

[0056] The application window in the embodiment of the present application can be an application activity (Activity) or a view (View) included in the application activity. For the convenience of explanation, the application activity will be referred to as activity in the following description. Among them, an application of an electronic device can include at least one Activity, and an Activity can include at least one View. In one embodiment, Activity is an interface for interaction between a user and an application. Activity is for the application to draw an interface in it. Activity can fill the screen (expressed as a full-screen window display), or it can be smaller than the screen and float on top of other Activities (expressed as a floating window, mini window, floating ball, for example). In one embodiment, an Activity is something that a user can interact with intuitively, which can be expressed as a user interface, and can be understood as one Activity corresponding to one user interface (which can include at least one control). In one embodiment, View is an abstraction of a control of a user interface, and a View can be a control or a group of controls composed of multiple controls.

[0057] First of all, the electronic device in the embodiments of the present application can be a smart screen device, a smart television (television, TV), a mobile phone, a tablet computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (personal digital assistant, PDA), a wearable device (such as: a smart watch, a smart bracelet), and other devices with display functions. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0058] For example, taking the electronic device as a mobile phone, Figure 2 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application. That is, exemplary, Figure 2 The electronic device shown may be a mobile phone.

[0059] like Figure 2As shown, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 221, 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. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0060] It is to be understood that the structure illustrated in the embodiment of the present invention does 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0061] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0062] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0063] The processor 110 may also be provided with a memory for storing instructions and data. In one embodiment, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0064] In one embodiment, the processor 110 may include one or more interfaces. The interface may include 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 SIM interface, and / or a universal serial bus (USB) interface, etc.

[0065] 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.

[0066] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0067] The display screen 194 is used to display images, videos, etc. The 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In one embodiment, the electronic device 100 may include N display screens 194, where N is a positive integer greater than 1.

[0068] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0069] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0070] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0071] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0072] 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 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0073] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may 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 may store data created during the use of the electronic device 100 (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. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0074] The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. The electronic device 100 can also implement audio functions through a connected Bluetooth device, such as music playback, recording, etc.

[0075] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In one embodiment, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0076] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A. The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, the voice can be answered by placing the receiver 170B close to the human ear. The microphone 170C, also called a "microphone" or "microphone", is used to convert sound signals into electrical signals. The electronic device 100 can be provided with at least one microphone 170C. In another embodiment, 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 another embodiment, the electronic device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, and can also identify the source of sound, realize directional recording function, etc.

[0077] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In one embodiment, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In one embodiment, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0078] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. The air pressure sensor 180C is used to measure the air pressure. The magnetic sensor 180D includes a Hall sensor. The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). The distance sensor 180F is used to measure the distance. The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector. The ambient light sensor 180L is used to sense the brightness of the ambient light. The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering calls, etc. The temperature sensor 180J is used to detect temperature. The bone conduction sensor 180M can obtain vibration signals.

[0079] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In another embodiment, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0080] The button 190 includes a power button, a volume button, etc. The button 190 can be a mechanical button. It can also be a touch button. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging status, power changes, messages, missed calls, notifications, etc. The SIM card interface 195 is used to connect the SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0081] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. For example, the software system of the layered architecture may be an Android system, or a Harmony operating system (OS), or other software systems. The embodiment of the present application takes the Android system of the layered architecture as an example to illustrate the software structure of the electronic device 100.

[0082] Figure 3 It is a schematic diagram of the software architecture of an electronic device 100 provided in an embodiment of the present application.

[0083] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In one embodiment, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0084] The application layer can include a series of application packages.

[0085] like Figure 3 As shown, the application package may include system UI, lock application, call, address book, navigation, Bluetooth, music, video, settings and other applications. The application in this application may also be replaced by other software such as mini-programs and atomic services. The application in the embodiment of this application may also be replaced by other software such as mini-programs and atomic services.

[0086] Among them, the system UI runs in the form of an application, which provides the basic display interface for the system, such as the status bar at the top of the screen, the navigation bar at the bottom of the screen, the quick settings bar in the drop-down interface, the notification bar, the lock screen interface, the volume adjustment dialog box, the screenshot display interface, the power interface, the recent task interface, etc. Therefore, the system UI can obtain change information related to the display interface.

[0087] Exemplarily, the lock application is a third-party application that is used to lock the electronic device and provide permission to restrict (or lock) the electronic device's access to applications. In some implementations, in the locked state (for example, after the electronic device receives a lock instruction and is locked), the lock application can provide permission to restrict (or lock) the electronic device's access to all applications. In still other implementations, in the locked state, the lock application can provide permission for the electronic device to access applications in the whitelist, that is, the electronic device can start the applications in the whitelist.

[0088] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0089] like Figure 3 As shown, the application framework layer may include a window manager service (WMS), content providers (content providers), a view system (view system), a phone manager, a resource manager (resource manager), a notification manager (notification manager), a surface flinger, and the like.

[0090] The window manager (also called the window management service) is used to manage window programs. It is responsible for controlling and managing various properties and operations of windows, as well as handling communication and task management between windows. For example, the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc. The window manager can also adjust the position and size of the floating window layer. For example, the window manager can adjust the size of the task layer of the floating window layer to control the display area of ​​the floating window layer.

[0091] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0092] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0093] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0094] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0095] The notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the top status bar of the system in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, the electronic device 100 vibrates, an indicator light flashes, etc.

[0096] The layer manager can also be called an interface synthesis. The function of the layer manager is to accept the layer display data provided by the window manager, synthesize them, and input them to the display device for display. The layer management module can use the open graphics library (OpenGL) hardware synthesizer (HWC) to synthesize the interface (surface). For example, in some embodiments of the present application, the layer management module can receive the floating window layer adjusted by the window manager, and then display the floating window layer on the display screen of the electronic device.

[0097] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0098] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0099] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0100] The system library may 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.

[0101] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0102] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0103] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0104] A 2D graphics engine is a drawing engine for 2D drawings.

[0105] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0106] The following is an example of the workflow of the software and hardware of the electronic device 100, combined with the display lock status scenario.

[0107] When the electronic device is in the locked state, when the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, timestamp of the touch operation and other information). The original input event is stored in the kernel layer. The application framework layer obtains the original input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation, and the control corresponding to the single-click operation is, for example, a floating window control of an address book application, and the address book application is an application in the whitelist, then the address book application calls the interface for the program framework layer, and then controls the display driver by calling the kernel layer, and displays the floating window of the address book application through the display screen 194.

[0108] Next, an application scenario involved in an embodiment of the present application and a user interface diagram in this scenario are introduced.

[0109] See also Figure 4A , Figure 4AIt is a schematic diagram of a scenario for managing a floating window provided in an embodiment of the present application. In this scenario. Among them, a communication connection is established between the electronic device 100 and the server 200, and the communication connection can be, for example, any wireless communication method based on a communication technology standard, such as wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi)), satellite, cellular communication, vehicle to everything (V2X), such as long term evolution (LTE) communication, the fifth generation mobile communication technology (5G) and possible communication methods in the future.

[0110] The electronic device 100 is a device with data processing capability and data transmission and reception capability. Or portable terminal devices of other operating systems, such as mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPC), netbooks, as well as cellular phones, personal digital assistants (PDA), augmented reality (AR) devices, virtual reality (VR) devices, artificial intelligence (AI) devices, wearable devices (such as smart watches, smart bracelets), vehicle-mounted devices, smart home devices and / or smart city devices, and other devices with display functions, etc. The embodiments of the present application do not impose any special restrictions on the specific types of electronic devices.

[0111] The server 200 may be a network device with data transceiving capability, data storage capability and data processing capability, and is referred to as a cloud side, cloud side, cloud server, etc. The server 200 may be a physical device such as a host, a rack server, a blade server, etc., or a virtual device such as a virtual machine, a container, etc. Further, the server 200 may be a server, or a server cluster composed of multiple servers. Further, the server 200 includes a physical storage device, such as a memory (including random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), etc.), and a disk (including portable random access memory (CD-RAM), a hard disk, etc.), or other electronic devices with data storage capability, such as a network attached storage (NAS) server, etc., or a virtual storage device, such as a virtual machine, a container, etc.

[0112] like Figure 4A As shown, the main interface 400 of the electronic device 100 may include a status bar 401, a page indicator 402, multiple application icons, and a floating window 403 of an information application. Among them, the status bar 401 may include one or more signal strength indicators of a mobile communication signal (also known as a cellular signal), a wireless high fidelity (wireless fidelity, Wi-Fi) signal strength indicator, a battery status indicator, a time indicator, etc. The page indicator 402 can be used to indicate the positional relationship between the currently displayed page and other pages. Multiple application icons may include a setting application icon 113A, a lock application icon 113B, a browser application icon 113C, a gallery application icon 113D, a camera application icon 113F, an address book application icon 113G, a phone application icon 113H, an information application icon 113J, etc. Not limited to the above icons, the main interface 500 may also include other application icons, which are not listed one by one here. Multiple application icons can be distributed on multiple pages. The page indicator 502 can be used to indicate which page the user is currently browsing is one of the multiple pages carrying multiple applications. The user can browse other pages by sliding left and right. The floating window 403 of the information application can be understood. Figure 4A The user interface described below merely illustrates a possible user interface style of an electronic device taking a mobile phone as an example and should not constitute a limitation on the embodiments of the present application.

[0113] According to the property of the floating window, the floating window 403 of the information application is displayed on the upper layer of the main interface 400. It can be understood that the floating window 403 of the information application can be displayed on the upper layer of any application window.

[0114] like Figure 4A As shown, the server 200 can be used as an application server of the lock application of the electronic device 100, and is used to manage the lock application, so as to achieve the purpose of remotely controlling (or locking) the electronic device 100 to access the application program by managing the lock application. In some scenarios, such as the installment payment scenario, the electronic device 100 is a device purchased by installment payment. If the current payment is not completed within the specified period, the server 200 can send a lock instruction to the electronic device 100. In response to the lock instruction, the electronic device 100 can start the lock solution through the lock application, thereby locking the electronic device 100, so that the electronic device 100 enters the locked state and displays the first lock interface 404. When the electronic device 100 is in the process of responding to the lock instruction, if the electronic device 100 displays a floating window 403 of an information application, according to the processing logic provided by the existing lock solution (that is, the electronic device 100 in the locked state will not perform any processing on the floating window 403), due to the properties of the floating window (always displayed on the upper layer of the application window), in the locked state, the floating window 403 of the information application will still be displayed above the first lock interface 404 of the electronic device 100.

[0115] In the embodiment of the present application, when the electronic device 100 responds to the lock instruction and starts the lock application to execute the lock solution, the interface presentation form of the information application is first enlarged from the floating window display to the full screen display ( Figure 4A (not shown), when the interface of the information application is displayed in full screen, it no longer has the attributes of a floating window. Therefore, according to the sequence of application activities, the information application is started first, and the lock application is started later, so the first lock interface 404 of the lock application can be displayed above the full-screen display interface of the information application. Therefore, in the locked state, the electronic device 100 achieves the effect of closing the floating window 403 of the information application. That is, the implementation method of displaying the first lock interface 404 of the lock application on the upper layer of the full-screen interface of the information application can be regarded as an implementation method of closing the floating window 403 of the information application.

[0116] Please refer to Figure 4B , Figure 4B This is a user interface for managing floating windows in a locked state provided by an embodiment of the present application. Figure 4BAs shown, the electronic device 100 is in a locked state, and the lock application displays a first lock interface 404. The first lock interface 404 includes a text description of "Due to XXXX reasons, the electronic device has been remotely locked, please pay the current payment before XX / XX / XXXX", and one or more essential function controls such as a payment control, an emergency contact control, and a help and customer control.

[0117] In one implementation, the locking solution provided by the locking application in the electronic device 100 allows the electronic device 100 to still access the applications in the white list (e.g., the address book application) in the locked state. Therefore, in the locked state, after the electronic device 100 starts the application in the white list (e.g., the address book application) in response to the user operation, the second locking interface 405 can be displayed. The second locking interface 405 displays an application window in the form of a floating window (i.e., Figure 4B It can be considered that the second lock interface 405 includes the floating window 4051 and the first lock interface 404.

[0118] like Figure 4B As shown, due to the inherent properties of the floating window, the floating window 4051 of the address book application is always displayed above the second lock interface 405. In one implementation, the user can close the floating window 4051 through the close control 4052 provided by the floating window 4051, but according to the processing logic provided by the existing lock solution (that is, the electronic device 100 in the locked state will not perform any processing on the floating window 4051), the electronic device 100 cannot close the floating window 4051 in the locked state.

[0119] In the embodiment of the present application, in the locked state, the electronic device 100 can still process the floating window, so that the floating window 4051 can be closed in response to the user operation of the close control 4052. After closing the floating window 4051, the electronic device 100 displays the first locked interface 404, that is, the floating window 4051 is not displayed above.

[0120] It should be noted that it is not limited to Figure 4A and Figure 4B As for the scenario shown, the floating window management method provided in the present application can also be applied to other scenarios. For example, the electronic device 100 starts the locking scheme in response to the user operation on the locking application, thereby putting the electronic device 100 into a locked state.

[0121] Based on the software and hardware architecture of the electronic device 100 described above, a floating window management method provided in an embodiment of the present application is introduced.

[0122] Figure 5AThis is a timing diagram of a method for managing floating windows provided by an embodiment of the present application. The implementation of the method can be based on the interaction and cooperation between the application layer (such as the system user interface, the lock application, etc.) and the application framework layer (framework) (such as the window manager, etc.) in the electronic device, such as Figure 5A As shown, the method may include:

[0123] S11, the locking application executes the locking solution.

[0124] Specifically, the locking application is a third-party application installed in the electronic device 100, which is used to lock the electronic device in certain circumstances and restrict the electronic device's access to application programs. For example, if the electronic device is a device purchased on installment payment, the electric locking application is an application provided by the installment payment provider. When the installment payment for the electronic device is not paid within the prescribed period, the locking application executes the locking scheme, causing the electronic device to enter a locked state. For another example, the locking application is a type of efficiency used to improve work efficiency. The locking application responds to user operations and executes a corresponding locking scheme, so that the electronic device can be locked within a preset time, so that the electronic device can enter a locked state. Among them, the preset time is pre-set by the user. This application does not impose any restrictions on the locking application and the locking scheme executed by the locking application.

[0125] S12, the locking application sends locking information to the system user interface.

[0126] Among them, the lock information is used to indicate the lock scheme executed by the lock application. The lock scheme includes a first type of scheme and a second type of scheme. The first type of scheme does not allow the electronic device to access any application in the locked state, and the second type of scheme allows the electronic device to access the applications in the whitelist (for example, address book, phone and other applications) in the locked state.

[0127] S13, the system user interface collects interface information, including the logo of the floating window and the lock information.

[0128] Specifically, the system user interface receives the lock information transmitted by the lock application, and can determine the currently used lock scheme through the lock information. The system user interface can sense the changes in the display interface, and thus collect information related to the changes in the display interface. For example, the recent task interface is displayed as a floating window, and the lock information indicates that the electronic device has entered the locked state, and the lock interface in the locked state needs to be displayed.

[0129] In one implementation, if there is no remaining floating window in the electronic device before the lock application executes the lock solution, that is, no floating window of any application is displayed in the electronic device, the floating window identifier is used to indicate that there is no floating window.

[0130] In one implementation, if there is a remaining floating window in the electronic device before the lock application executes the lock solution, that is, a floating window of one or more applications is displayed in the electronic device, the identifier of the floating window is used to indicate the existence of the floating window.

[0131] Among them, before the lock application executes the lock solution, the floating window displayed by the electronic device is called a retained floating window.

[0132] S14, the system user interface sends interface information to the window manager.

[0133] S15, the window manager determines whether the device is in a locked state.

[0134] Specifically, the window manager receives interface information, and the interface information includes the identifier of the floating window and the lock information. The window manager determines whether the electronic device is locked based on the lock information, that is, whether the electronic device is in a locked state. It is understandable that if the lock information can indicate a certain lock scheme, it means that the lock application is executing the lock scheme and the electronic device is in a locked state. If the lock information cannot indicate a certain lock scheme, it means that the lock application is not executing the lock scheme and the electronic device is not in a locked state.

[0135] In one implementation, if the window manager determines that the electronic device is in a locked state, S16 is executed.

[0136] In one implementation, the window manager determines that the electronic device is not in a locked state and processes the device according to a normal process. That is, if the floating window identifier indicates that a floating window exists, no processing is performed on the floating window. If the floating window identifier indicates that a floating window of the first application is started, the floating window is displayed according to a preset size and display animation.

[0137] S16, the window manager determines whether to allow access to the application.

[0138] Specifically, the window manager determines whether to allow access to the application based on the locking scheme specifically indicated by the locking information. Among them, when the locking scheme is the first type of scheme, the electronic device is not allowed to access any application in the locked state, that is, it is not allowed to operate or display the floating window. When the locking scheme is the second type of scheme, the electronic device can access the applications in the whitelist in the locked state, that is, it is allowed to operate or display the floating window. When the locking scheme is the second type of scheme, the electronic device cannot access the applications outside the whitelist in the locked state, that is, it is not allowed to operate or display the floating windows of the applications outside the whitelist.

[0139] In one implementation, the window manager determines that access to the application is not allowed, and executes S17.

[0140] Among them, not allowing access to applications includes the following situations: Case 1, when the locking solution is the first type of solution, the electronic device is not allowed to access any application in the locked state, that is, it is not allowed to display floating windows; Case 2, when the locking solution is the second type of solution, the electronic device is not allowed to access applications other than the whitelist in the locked state, that is, it is not allowed to display floating windows of applications other than the whitelist.

[0141] In one implementation, if the window manager determines that access to the application is allowed, it does not need to process the floating window of the application, and the lock interface can be directly displayed. At this time, a floating window can be displayed above the lock interface, and the floating window is a floating window of an application in the whitelist displayed on the display screen before the electronic device 100 is locked.

[0142] Among them, allowing access to applications includes the following situations: when the locking scheme is the second type of scheme, the electronic device allows access to applications in the whitelist when in the locked state.

[0143] It should be noted that S15 and S16 can be executed simultaneously.

[0144] S17, the window manager determines whether there is a floating window.

[0145] Specifically, the window manager determines whether there is a floating window (i.e., a retained floating window) according to the identifier of the floating window, that is, whether there is a floating window before the lock application executes the lock solution. If it is determined that there is a floating window, S18 is executed.

[0146] If it is determined that there is no remaining floating window, the normal process is followed, that is, the lock interface is displayed. After the electronic device displays the lock interface, the lock interface occupies the entire display screen of the electronic device. In the locked state, the electronic device cannot access any application until the lock state is unlocked.

[0147] S18, the window manager sends a command to close the floating window to the system user interface.

[0148] Specifically, the window manager enters the processing flow of the retained floating window and calls the capability of the system user interface through the Binder mechanism to close the retained floating window.

[0149] S19, the system user interface processes the floating window.

[0150] Specifically, the system user interface receives the instruction to close the floating window transmitted by the window manager through the Binder mechanism, determines the floating windows corresponding to one or more applications that need to be closed according to the floating window instruction, and enlarges the interface presentation of one or more applications from the floating window display to the full screen display. At this time, the interface presentation of one or more applications is full screen display, and before starting the lock application, the above-mentioned one or more lock applications have been started, so according to the order of application activities, the lock interface of the lock application can be displayed above the full-screen display interface of the above-mentioned one or more lock applications. Therefore, the floating window will not be displayed above the lock interface, which can achieve the effect of closing the floating window.

[0151] It should be noted that S18 and S19 can be understood as: the window manager processes the existing floating window through the interface exposed by the system user interface based on the cross-process communication method provided by the Binder mechanism, thereby achieving the effect of closing the remaining floating window.

[0152] To sum up, in the process of the lock application executing the lock plan, the electronic device enters the locked state. If it is determined that the lock plan does not allow the operation of the floating window, and it is determined that there is a remaining floating window, then after the remaining floating window is enlarged to full screen display, the lock interface of the lock application can be displayed, thereby achieving the effect of closing the existing floating window in the locked state.

[0153] Figure 5B , which is another method for managing floating windows provided by an embodiment of the present application. The implementation of the method can be based on the interaction and cooperation between the application layer (such as the system user interface, the lock application, the application in the whitelist, etc.) and the application framework layer (framework) (such as the window manager, etc.) in the electronic device. Figure 5B As shown, the method may include:

[0154] S21, the system user interface collects interface information, including information of the first application and lock information.

[0155] The electronic device 100 is in a locked state and displays a locked interface. The lock application transmits lock information to the system user interface, and the lock information is used to indicate that the lock scheme executed by the lock application is the second type of scheme, which allows the electronic device 100 to access the applications in the whitelist in the locked state.

[0156] At this time, if the user wants to operate the first application after the electronic device enters the locked state, the electronic device 100 starts the first application in response to the first operation on the first application, and the first application sends the information of the first application to the system user interface. The first application may be an application in the whitelist.

[0157] S22, the system user interface sends interface information to the window manager.

[0158] S23, the window manager determines whether the device is in a locked state.

[0159] Specifically, if it is determined to be in the locked state, S24 is executed. If it is determined not to be in the locked state, the normal process is followed. Figure 5A The S15 shown will not be described in detail this time.

[0160] S24, the window manager determines whether to allow access to the application.

[0161] Specifically, the window manager determines whether to allow access to the application according to the locking scheme indicated by the locking information, and determines whether the first application is an application in the white list according to the information of the first application. If the locking scheme is the second type of scheme and the first application is an application in the white list, it is determined that access to the application is allowed, and S25 is executed. If it is determined that access to the application is not allowed, no processing is performed, and the display screen of the electronic device 100 does not change.

[0162] S25, the window manager determines whether it is a floating window.

[0163] Specifically, the window manager determines whether the display form of the first application is a floating window through the window container. It can be understood that the size of the floating window is not fixed and can be changed. Therefore, if the window container changes, it means it is a floating window, and step S26 is executed; if the window container does not change, it means it is not a floating window, and no processing is performed.

[0164] Among them, the window container is a component in the system used to manage windows. It can create, update and delete curtains, and provide some window management functions, such as window hierarchy, window size, window position, window animation, etc.

[0165] S26, the window manager adjusts the order of the floating window in the window stack.

[0166] Among them, the window stack is a data structure used to manage windows and maintain the order and status of all currently open windows. Each window in the window stack has a unique identifier to indicate the position and status of the window. When a new window is created, it is added to the top of the window stack and is called the currently active window. When the user presses the return key or closes the window, the window is removed from the window stack and the previous window becomes the currently active window. The order of the window stack determines the hierarchical relationship of the windows, that is, which window is in front and which window is in the back. In the window stack, the window closer to the front has a higher level and will cover the windows behind, such as dialog windows and floating windows.

[0167] To summarize, the electronic device 100 is in a locked state, and displays the locked interface. If the user wants to access an application in the whitelist, the electronic device starts the application in the whitelist (i.e., the first application) in response to the user's startup operation. If the user wants to display the floating window of the first application, the window manager adjusts the order of the floating window in the window stack to the front in response to the user's operation. In this way, the floating window has the highest priority and can be displayed at the top of the interface. If the user wants to close the floating window of the first application after the floating window of the first application is displayed above the locked interface, the window manager adjusts the order of the floating window in the window stack to the back in response to the user's operation. In this way, the floating window does not have the highest priority and will not be displayed at the top of the interface, thereby achieving the effect of "closing the floating window".

[0168] See also Figure 6 , Figure 6 This is a flow chart of a floating window management method provided by an embodiment of the present application, which is applied to Figure 2 The hardware architecture shown and Figure 3 The software architecture is shown in Figure 1. Figure 6 As shown, including but not limited to the following steps:

[0169] Step S601: Determine a first permission for the electronic device to access a first application in a locked state.

[0170] In one implementation, a locking application is installed in the electronic device, and the locking application may be a third-party application. The locking application is used to limit the permission of the electronic device to access the application program. When the locking schemes corresponding to the locking application are different, the permission to access the application program is also different.

[0171] In a possible implementation, the electronic device (or the locking application in the electronic device) initiates the first type of locking scheme in response to the locking instruction, wherein the first type of locking scheme is used to set the locking state of the electronic device. Then, the electronic device determines that the electronic device is not allowed to access any application in the locked state according to the first type of locking scheme.

[0172] In a possible implementation, the electronic device (or the locking application in the electronic device) initiates the second type of locking scheme in response to the locking instruction, wherein the second type of locking scheme is used to set the locking state of the electronic device. Then, the electronic device determines that the electronic device is allowed to access the applications in the whitelist in the locked state according to the second type of locking scheme.

[0173] In summary, when the electronic device is in a locked state based on the first type of locking scheme, the first permission is that access to the first application is not allowed in the locked state. When the electronic device is in a locked state based on the second type of locking scheme, the first permission is that access to applications outside the whitelist is not allowed in the locked state. Therefore, if the first application is an application in the whitelist, the first permission is to allow access to the first application in the locked state; if the first application is an application outside the whitelist, the first permission is not to allow access to the first application in the locked state.

[0174] Step S602: The electronic device determines, according to the first permission, a display control method for the floating window of the first application in the locked state.

[0175] Specifically, "locking the device" means that the functions of the electronic device will be limited in the locked state. If the electronic device is not completely locked in the locked state, for example, the floating window is still displayed on the locked interface, there will be a scene legacy problem. Therefore, the electronic device processes the floating window of the first application according to the first permission.

[0176] For example, when the device is in a locked state, and the first permission is to allow access to the first application (such as Figure 4B The second lock screen is displayed (for example Figure 4B The first lock interface includes a floating window of the first application (eg, Figure 4B The floating window 4051 of the address book is shown).

[0177] For example, when the device is in a locked state and the first permission is not allowed to access the first application (for example Figure 4A When the information application shown is displayed, the first lock interface is displayed (for example Figure 4A The first lock interface 404 shown in FIG. 4 does not include a floating window of the first application (for example, Figure 4A The floating window 403 is shown).

[0178] In one implementation, when the device is in a locked state, a first operation (for example, Figure 4B ), when the first permission is to allow access to the first application (such as Figure 4BThe second lock screen is displayed (for example Figure 4B The second lock interface 405 shown) and the floating window of the first application (such as Figure 4B The floating window 4051 of the address book is shown).

[0179] In one implementation, a floating window (eg, Figure 4A 403); receiving a lock command, and entering a lock state according to the lock command; when the first permission does not allow access to the first application (for example Figure 4A When the information application shown in the figure is opened, the floating window of the first application is closed and the first lock interface (such as Figure 4A The first lock interface 404 is shown).

[0180] In one possible implementation, when the first permission does not allow access to the first application, when a first persistent floating window is detected, the window size of the first persistent floating window in the locked state is enlarged to a full-screen size, wherein the first persistent floating window is an interface window of the first application displayed in the electronic device before the electronic device is in the locked state.

[0181] In one implementation, the display screen of the electronic device displays the lock interface corresponding to the first type of lock scheme. It is understandable that, because the floating window mode of the first application has been changed to full screen size, the application window of the first application will no longer have the attributes of a floating window, so it will not always be displayed at the top of the interface. Therefore, according to the order of the application windows, because the first application has been started before the electronic device is locked, the lock interface corresponding to the first type of lock scheme will be displayed above the full screen display window of the first application.

[0182] In one implementation, when the first permission is to allow access to the first application (i.e., the first application is an application in the whitelist) in the locked state, if a second persistent floating window is detected, the window size of the second persistent floating window in the locked state is enlarged to the full screen size, wherein the second persistent floating window is an interface window of an application outside the whitelist displayed in the electronic device before the electronic device is in the locked state. In other words, if a third persistent floating window is detected, the third persistent floating window is not processed, wherein the third persistent floating window is an interface window of an application in the whitelist displayed in the electronic device before the electronic device is in the locked state.

[0183] In one implementation, the display screen of the electronic device displays the lock interface corresponding to the second type of lock scheme, wherein the interface window of the application outside the whitelist is displayed below the lock interface corresponding to the second type of lock scheme, and the interface window of the application in the whitelist is displayed above the lock interface corresponding to the second type of lock scheme.

[0184] In a possible implementation, when the electronic device is in a locked state, the electronic device displays a lock interface provided by the lock solution. Afterwards, the electronic device receives a first operation to access the first application and obtains a window container, wherein the first user operation is used to start the display interface of the first application, and the first application window belongs to an application in the whitelist. The electronic device determines that the display interface of the first application window is a floating window based on the window container, and adjusts the position of the floating window of the first application window in the window stack to the head of the window stack. It can be understood that the floating window at the head of the window stack has the highest priority, so it can be displayed at the top, so that the floating window can be displayed in the locked state.

[0185] The first application belongs to a whitelist of applications that are started by the electronic device after the device is locked.

[0186] In one implementation, when the electronic device is in a locked state, when the first permission is to allow access to the first application, the first lock interface and the floating window of the first application are displayed. The electronic device receives a second operation to close the floating window of the first application and obtains a window container. The display interface is determined to be the floating window of the first application window according to the window container, and the position of the floating window of the first application window in the window stack is adjusted to the bottom of the window stack. It can be understood that the floating window at the bottom of the window stack has a lower priority and will not be displayed at the top of the interface, thereby achieving the effect of "closing the floating window" in the locked state.

[0187] The first application may be an application in a whitelist that is started by the electronic device after the device is locked, or may be an application in a whitelist that is started by the electronic device before the device is locked.

[0188] The term "user interface (UI)" in the specification, claims and drawings of this application refers to the medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface of an application is source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on the terminal device, and finally presented as content that the user can recognize, such as pictures, text, buttons and other controls. Controls, also known as widgets, are the basic elements of the user interface. Typical controls include toolbars, menu bars, text boxes, buttons, scroll bars, pictures and text. The properties and contents of controls in the interface are defined by tags or nodes, such as XML through <textview> 、 <imgview> 、 <videoview>The controls contained in the interface are specified by nodes such as . A node corresponds to a control or attribute in the interface. After parsing and rendering, the node is presented as user-visible content. In addition, many applications, such as hybrid applications, usually also contain web pages in their interfaces. A web page, also known as a page, can be understood as a special control embedded in the application interface. A web page is source code written in a specific computer language, such as hypertext markup language (HTML), cascading style sheets (CSS), JavaScript (JS), etc. The web page source code can be loaded and displayed as user-recognizable content by a browser or a web page display component with similar functions to a browser. The specific content contained in a web page is also defined by tags or nodes in the web page source code. For example, HTML is defined by 、 、 <video> 、 <canvas>To define the elements and attributes of a web page.

[0189] The most common form of user interface is graphical user interface (GUI), which refers to a user interface related to computer operation that is displayed in a graphical manner. It can be an icon, window, control or other interface element displayed on the display screen of an electronic device, where a control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.

[0190] It should be understood that each step in the above method embodiment provided by the present application can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0191] The present application also provides an electronic device, which may include: a memory and a processor, wherein the memory may be used to store a computer program; and the processor may be used to call the computer program in the memory so that the electronic device executes the method in any one of the above embodiments.

[0192] The present application also provides a chip system, which includes at least one processor for implementing the functions involved in the method executed by the electronic device in any of the above embodiments.

[0193] In one possible design, the chip system also includes a memory, which is used to store program instructions and data, and the memory is located inside or outside the processor.

[0194] The chip system may be composed of the chip, or may include the chip and other discrete devices.

[0195] Optionally, the processor in the chip system may be one or more. The processor may be implemented by hardware or by software. When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented by software, the processor may be a general-purpose processor implemented by reading software code stored in a memory.

[0196] Optionally, the memory in the chip system may also be one or more. The memory may be integrated with the processor or may be separately arranged with the processor, which is not limited in the embodiments of the present application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory ROM, which may be integrated with the processor on the same chip or may be arranged on different chips respectively. The embodiments of the present application do not specifically limit the type of memory and the arrangement of the memory and the processor.

[0197] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0198] The present application also provides a computer program product, which includes: a computer program (also referred to as code, or instruction), which enables a computer to execute the method executed by the electronic device in any of the above embodiments when the computer program is executed.

[0199] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program (also referred to as code or instruction). When the computer program is executed, the computer executes the method executed by the electronic device in any of the above embodiments.

[0200] The various implementation modes of the present application can be combined arbitrarily to achieve different technical effects.

[0201] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in this application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk), etc.

[0202] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be implemented by a computer program to instruct the relevant hardware to complete the process, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes. In short, the above is only an embodiment of the technical solution of the present invention, and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made according to the disclosure of the present invention should be included in the scope of protection of the present invention.< / canvas> < / video> < / videoview> < / imgview> < / textview>

Claims

1. A floating window management method, characterized in that: The method comprises: Receiving a lock instruction from a server, and in response to the lock instruction, causing the electronic device to enter a locked state through a lock application, wherein the server is an application server of the lock application, and the lock application is used to provide a permission for limiting or locking the electronic device to access an application program; Determining a first permission for the electronic device to access a first application in the locked state; According to the first permission, determining the display control mode of the floating window of the first application in the locked state; wherein, When the first permission is not to allow access to the first application, if a floating window of the first application is displayed before the electronic device enters the locked state, the display control method of the floating window of the first application in the locked state includes closing the floating window of the first application, wherein the method of closing the floating window of the first application includes enlarging the window size of the floating window of the first application to a full screen size; When the first permission is to allow access to the first application, if a first operation to access the first application is received after the electronic device enters the locked state, the display control method of the floating window of the first application in the locked state includes displaying the floating window of the first application.

2. The method according to claim 1, characterized in that The method further comprises: When the device is in the locked state and the first permission does not allow access to the first application, a first locked interface is displayed, and the first locked interface does not include a floating window of the first application; When in the locked state and the first permission allows access to the first application, a second lock interface is displayed, and the second lock interface includes a floating window of the first application.

3. The method according to claim 1 or 2, characterized in that: The determining, according to the first permission, a display control method of the floating window of the first application in the locked state includes: In the locked state, receiving a first operation for accessing the first application; When the first permission allows access to the first application, the position of the floating window of the first application in the window stack is adjusted to the head of the window stack.

4. The method according to claim 1 or 2, characterized in that: The determining, according to the first permission, a display control method of the floating window of the first application in the locked state includes: In the locked state, if the first permission allows access to the first application, displaying a first locked interface and a floating window of the first application; A second operation of closing the floating window of the first application is received, and a position of the floating window of the first application in the window stack is adjusted to the bottom of the window stack.

5. An electronic device, characterized in that: The electronic device comprises: one or more processors; a memory; wherein the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code comprises computer instructions, and the one or more processors call the computer instructions so that the electronic device executes the method as described in any one of claims 1-4.

6. A chip system, characterized in that: The chip system is applied to an electronic device, and the chip system includes one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-4.

7. A computer program product comprising instructions, characterized in that When the computer program product is run on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 4.

8. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Information display method and device of lock screen interfaces

    CN103412751A

  • Authority control method and apparatus

    CN106471513A