Display device and background processing method
By monitoring the running status of resource-sensitive applications, the display device and background processing methods can filter and close related applications, thus resolving the lag issue caused by insufficient display device resources and improving the user experience.
Patent Information
- Application Number
- CN202211156001.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2042-09-22
AI Technical Summary
Display devices are prone to lag when resources are insufficient, especially when running resource-sensitive applications, which affects the user experience.
This paper provides a display device and background processing method by monitoring the running status of resource-sensitive applications. The method monitors the running status of resource-sensitive applications, filters and closes associated applications based on a mapping table, records their running data, and restores the closed associated applications when resource-sensitive applications are started or restored to the foreground, based on whether the running status of the resource-sensitive applications is closed or in the background.
It improves the user experience, ensures the smooth operation of resource-sensitive applications when they are launched or brought back to the foreground, and ensures the normal use of other background applications after they are closed or brought to the background.
Smart Images

Figure CN115469823B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display, in particular to a display device and a background processing method. BACKGROUND
[0002] With the development of technology, the functions of display devices are increasingly diversified, and the functions that can be provided for users are increasingly rich.
[0003] At present, display devices include smart televisions, smart phones, laser projection devices, and products with display screens. Taking a smart television as an example, the smart television provides more and more use functions, and can not only be used as a device for watching video programs, but also can experience games, fitness, learning and other projects.
[0004] However, in the application process of some display devices, taking a karaoke application program as an example, when the resources of the display device are insufficient, the phenomenon of voice lag will be caused, which affects the user experience. SUMMARY
[0005] The present application provides a display device and a background processing method, which can be used to solve the technical problem of poor user experience caused by insufficient resources of the display device.
[0006] In a first aspect, some embodiments of the present application provide a display device, comprising a display and a controller, the controller is configured to:
[0007] monitor the running state of a resource-sensitive application;
[0008] when the running state of the resource-sensitive application is starting or resuming to the foreground, based on a mapping table of the resource-sensitive application, screening out an associated application from the started background applications, closing the associated application, and recording the running data of the associated application; wherein the mapping table is a mapping relationship between the resource-sensitive application and the associated application;
[0009] when the running state of the resource-sensitive application is closing or entering the background, based on the running data of the associated application, restoring the closed associated application.
[0010] In a second aspect, some embodiments of the present application provide a background processing method, comprising the following steps:
[0011] monitoring the running state of a resource-sensitive application;
[0012] when the running state of the resource-sensitive application is starting or resuming to the foreground, based on a mapping table of the resource-sensitive application, screening out an associated application from the started background applications, closing the associated application, and recording the running data of the associated application; wherein the mapping table is a mapping relationship between the resource-sensitive application and the associated application;
[0013] When the running state of the resource-sensitive application is closed or enters the background, based on the running data of the associated application, the closed associated application is recovered.
[0014] Some embodiments of the present application provide a display device and a background processing method, wherein the background processing method comprises: listening to the running state of a resource-sensitive application; when the running state of the resource-sensitive application is started or recovered to the foreground, based on a mapping table of the resource-sensitive application, an associated application is screened out from the started background application, the associated application is closed, and running data of the associated application is recorded; wherein the mapping table is a mapping relationship between the resource-sensitive application and the associated application; and when it is detected that the running state of the resource-sensitive application is closed or enters the background, based on the running data of the associated application, the closed associated application is recovered. The embodiments of the present application determine the associated application that can be closed in the background based on the mapping table of the resource-sensitive application after the resource-sensitive application is started, close the associated application in the process of starting or recovering to the foreground of the resource-sensitive application, ensure the use of the resource-sensitive application, and make the associated application closed in the background after the resource-sensitive application is closed or recovered, so that the normal use of other background applications after the resource-sensitive application is closed or enters the background, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0016] Figure 1 The operation scenario between the display device and the control device of some embodiments of the present application is shown;
[0017] Figure 2 The hardware configuration block diagram of the display device 200 of some embodiments of the present application is shown;
[0018] Figure 3 The hardware configuration block diagram of the display device 300 of some embodiments of the present application is shown;
[0019] Figure 4 The software configuration diagram in the display device of some embodiments of the present application is shown;
[0020] Figure 5 The background processing method flow chart in the display device of some embodiments of the present application is shown;
[0021] Figure 6An information interaction diagram of resource management of an application is shown;
[0022] Figure 7 A flow diagram showing the process of screening and closing an associated application from an opened background application in the background processing method of some embodiments of the present application is shown;
[0023] Figure 8 A flow diagram showing the process of listening after closing an associated application in the background processing method of some embodiments of the present application is shown;
[0024] Figure 9 A first flow diagram showing the process of a resource-sensitive application starting or resuming to the foreground in the background processing method in a display device of some embodiments of the present application is shown;
[0025] Figure 10 A second flow diagram showing the process of a resource-sensitive application starting or resuming to the foreground in the background processing method in a display device of some embodiments of the present application is shown;
[0026] Figure 11 A third flow diagram showing the process of a resource-sensitive application starting or resuming to the foreground in the background processing method in a display device of some embodiments of the present application is shown;
[0027] Figure 12 An interaction diagram of the background processing method of a K-song application in a display device of some embodiments is shown. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the example embodiments of the present application more clear, the technical solutions in the example embodiments of the present application will be described clearly and completely below with reference to the drawings in the example embodiments of the present application. Obviously, the described example embodiments are only some of the embodiments of the present application, but not all the embodiments.
[0029] Based on the example embodiments shown in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative efforts are within the scope of protection of the present application. In addition, although the disclosure in the present application is introduced according to one or more examples, it should be understood that each aspect of the disclosure can also constitute a complete technical solution independently.
[0030] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, for example, those other than the order given in the embodiment illustration or description of the present application can be implemented.
[0031] Furthermore, the terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclusively include, for example, a product or device that includes a series of components is not necessarily limited to those that are explicitly listed, but may include other components that are not explicitly listed or that are inherent to such product or device.
[0032] Figure 1 This is a schematic diagram illustrating the operational scenario between the display device and the control unit according to the embodiment. Figure 1 As shown, the user can operate the display device 200 through the control device 100.
[0033] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0034] In some embodiments, a smart device (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the smart device may be used to control the display device 200.
[0035] In some embodiments, the display device may receive instructions not through the aforementioned smart devices or control devices, but through touch or gestures.
[0036] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the smart device. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0037] like Figure 1 As shown, the display device 200 also communicates with the server 400 via various communication methods. The display device 200 can communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 can provide various content and interactive features to the display device 200. The server 400 can be a cluster or multiple clusters, and may include one or more types of servers.
[0038] The display device can have various forms of implementation, for example, can be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 2 An exemplary hardware configuration block diagram of a display device according to one of the exemplary embodiments is shown.
[0039] As Figure 2 The display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a storage, a power supply, a user interface.
[0040] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, a first interface to an n-th interface for input / output.
[0041] The display 260 includes a display screen component for presenting a picture, and a driving component for driving the image display, a component for receiving an image signal originated from the controller output, and a component for displaying video content, image content, and a menu control interface, and a user control UI interface.
[0042] The display 260 can be a liquid crystal display, an OLED display, and a projection display, and can also be a projection device and a projection screen.
[0043] The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator can include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
[0044] The user interface can be used to receive control signals of the control device 100 (such as an infrared remote controller, etc.).
[0045] The detector 230 is used to collect signals of external environment or interaction with the outside. For example, the detector 230 includes a light receiver, a sensor for collecting ambient light intensity, or the detector 230 includes an image collector such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures, or the detector 230 includes a sound collector such as a microphone, etc., for receiving external sound.
[0046] The external device interface 240 can include, but is not limited to, any one or more of a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It can also be a composite input / output interface formed by a plurality of the above interfaces.
[0047] The tuner and demodulator 210 receives broadcast television signals through wired or wireless reception, and demodulates audio / video signals and EPG data signals from a plurality of wireless or wired broadcast television signals.
[0048] In some embodiments, the controller 250 and the tuner and demodulator 210 can be located in different separate devices, i.e., the tuner and demodulator 210 can also be in an external device of the main device where the controller 250 is located, such as an external set-top box, etc.
[0049] The controller 250 controls the operation of the display device and responds to user operations by storing various software control programs in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.
[0050] In some embodiments, the controller includes at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), a RAM (Random Access Memory), a ROM (Read-Only Memory), a first to nth interface for input / output, a communication bus, etc.
[0051] The user can input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.
[0052] A user interface is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes conversion between internal forms of information and forms acceptable by the user. A commonly used form of a user interface is a graphic user interface (GUI), which refers to a user interface related to computer operation displayed in a graphic manner. The user interface can be an icon, a window, a control element, and the like interface elements displayed in a display screen of an electronic device, wherein the control element can include an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a widget, and the like visible interface elements.
[0053] The display device can have various implementation forms, for example, can be a mobile phone, a tablet computer, a computer, a notebook computer, and the like, Figure 3 An exemplary hardware configuration block diagram of still another display device according to an exemplary embodiment is shown.
[0054] As shown in Figure 3 The display device 300 includes a radio frequency (RF) circuit 310, a memory 320, a display 330, a camera 340, a sensor 350, an audio circuit 360, a Wireless Fidelity (Wi-Fi) module 370, a controller 380, a Bluetooth module 381, and a power supply 390, and the like.
[0055] The RF circuit 310 can be used for receiving and sending signals in the process of receiving information or calling, and can receive downlink data of a base station and hand over to the controller 380 for processing; can send uplink data to the base station. Generally, the RF circuit includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low-noise amplifier, a duplexer, and the like.
[0056] The memory 320 can be used to store software programs and data. The controller 380 executes various functions and data processing of the display device 300 by running the software programs or data stored in the memory 320. The memory 320 can include a high-speed random access memory, and can also include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. The memory 320 stores an operating system that enables the display device 300 to run. In the present application, the memory 320 can store an operating system and various application programs, and can also store codes for executing the methods described in the embodiments of the present application.
[0057] The display 330 can be used to receive inputted digital or character information, generate signal input related to user settings and function controls of the display device 300, and specifically, the display 330 can include a touch screen disposed on the front of the display device 300, and can collect touch operations of a user on or near the touch screen, such as clicking a button, dragging a scroll bar, and the like.
[0058] The display 330 can also be used to display information inputted by a user or provided to the user, and a graphical user interface (GUI) of various menus of the display device 300. Specifically, the display 330 can include a display screen disposed on the front of the display device 300. The display screen can be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display 330 can be used to display various graphical user interfaces described in the present application.
[0059] The touch screen can be overlaid on the display screen, or the touch screen can be integrated with the display screen to implement input and output functions of the display device 300, and after integration, the touch screen and the display screen can be simply referred to as a touch display screen. The display 330 in the present application can display an application program and corresponding operation steps.
[0060] The audio circuit 360, the speaker 361, and the microphone 362 can provide an audio interface between a user and the display device 300. The audio circuit 360 can convert received audio data into an electrical signal, and transmit the electrical signal to the speaker 361 to be converted into a sound signal and output. The display device 300 can also be configured with a volume button to adjust the volume of the sound signal. On the other hand, the microphone 362 converts a sound signal collected into an electrical signal, which is received by the audio circuit 360 and converted into audio data, and then the audio data is output to the RF circuit 310 to be transmitted to another terminal, for example, or the audio data is output to the memory 320 for further processing. The microphone 362 in the present application can acquire a voice of a user.
[0061] The controller 380 is a control center of the display device 300, and connects various parts of the entire terminal through various interfaces and lines, and performs various functions of the display device 300 and processes data by running or executing software programs stored in the memory 320 and calling data stored in the memory 320. In some embodiments, the controller 380 can include one or more processing units; the controller 380 can also integrate an application processor and a baseband processor, in which the application processor mainly processes an operating system, a user interface, and an application program, and the baseband processor mainly processes wireless communication. It can be understood that the above-mentioned baseband processor can also not be in the controller 380. The controller 380 in the present application can run an operating system, an application program, a user interface display and touch response, and a processing method described in the embodiments of the present application.
[0062] The display device 300 also communicates data with the server through various communication means. The display device 300 can be allowed to be communicatively connected through a local area network (LAN), a wireless local area network (WLAN), and other networks. The server can provide various contents and interactions to the display device 300.
[0063] Figure 4 An exemplary software configuration diagram in a display device according to an exemplary embodiment is shown as follows: Figure 4 In some embodiments, the system is divided into four layers, from top to bottom, an Applications layer (referred to as "application layer" for short), an Application Framework layer (referred to as "framework layer" for short), an Android runtime and system library layer (referred to as "system runtime library layer" for short), and a kernel layer.
[0064] In some embodiments, at least one application program is running in the application layer, which can be a window program, a system setting program, or a clock program, etc. provided by the operating system; or an application program developed by a third-party developer. In a specific implementation, the application program package in the application layer is not limited to the above examples.
[0065] The framework layer provides an application programming interface (API) and a programming framework for the application program. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center, which decides the actions of the application program in the application layer. The application program can access the resources in the system and obtain the services of the system through the API interface in the execution.
[0066] As shown in Figure 4 The application framework layer in the embodiments of the present application includes managers (Managers) and content providers (Content Provider), wherein the managers include at least one of the following modules: an activity manager (ActivityManager) for interacting with all activities running in the system; a location manager (Location Manager) for providing access to system location services for system services or applications; a package manager (Package Manager) for retrieving various information related to the application program package currently installed on the device; a notification manager (NotificationManager) for controlling the display and clearing of notification messages; and a window manager (Window Manager) for managing icons, windows, toolbars, wallpapers, and desktop components on the user interface.
[0067] In some embodiments, the system runtime layer provides support for the upper layer, i.e., the framework layer. When the framework layer is used, the Android operating system runs the C / C++ libraries contained in the system runtime layer to implement the functions implemented by the framework layer.
[0068] In some embodiments, the kernel layer is a layer between hardware and software. As shown in Figure 4 The kernel layer at least contains at least one of the following drivers: an audio driver, a display driver, a Bluetooth driver, a camera driver, a WIFI driver, a USB driver, an HDMI driver, a sensor driver (such as a fingerprint sensor, a temperature sensor, a pressure sensor, etc.), and a power supply driver, etc.
[0069] The functions of display devices are increasingly diversified, and the functions that can be provided for users are increasingly rich. Taking a smart television as an example, the smart television provides more and more use functions, and can not only be used as a device for watching video programs, but also can experience games, fitness, learning, etc. Taking a K song application program as an example, the K song application program belongs to a resource sensitive type of business, and when resources are insufficient, a sound will be stuck, affecting the use experience of users.
[0070] In the system of a display device, the processes of basic function applications have priority scheduling processing. For example, when the display device is a smart television, the basic function corresponding applications can include video applications, television live broadcast applications, etc. For another example, when the display device is a smart phone, the basic function applications include voice calls, etc. With the diversified development of functions of display devices, the processes of non-basic function applications such as fitness, audio, games, and learning need to wait for the unified scheduling strategy of the CPU, so that part of the resource sensitive type of applications in the non-basic functions will have a stuck phenomenon in the use process when resources are insufficient, resulting in poor user experience.
[0071] In order to improve the experience of users, an embodiment of the present application provides a background processing method, which is applied to a display device, Figure 5A flow chart of a background processing method in a display device is shown; the background processing method monitors the running state of a resource-sensitive application; when the running state of the resource-sensitive application is starting or resuming to the foreground, the method screens out an associated application from the opened background applications based on a mapping table of the resource-sensitive application, closes the associated application, and records the running data of the associated application; the mapping table is the mapping relationship between the resource-sensitive application and the associated application; further, when the running state of the resource-sensitive application is closing or entering the background, the method resumes the closed associated application based on the running data of the associated application. The embodiments of the present application determine the associated application that can be closed in the background based on the mapping table of the resource-sensitive application after the resource-sensitive application is started, close the associated application during the process of starting or resuming to the foreground of the resource-sensitive application, ensure the use of the resource-sensitive application, and close the associated application after the resource-sensitive application is closed or resumes to the background, so that the normal use of other background applications after the resource-sensitive application is closed or enters the background, and improve the user experience.
[0072] In order to further understand the technical solutions in the embodiments of the present application, the steps of the background processing method in the display device are described in detail below in combination with some embodiments and the drawings.
[0073] S110, monitor the running state of the resource-sensitive application.
[0074] It should be understood that the applications provided in the display device can be divided according to their functions, such as basic function applications and entertainment function applications. After the applications are divided by function, the entertainment function applications are scheduled by the unified strategy of the CPU, and the requirements of each entertainment function for resources are different, which is also different in the case of insufficient resources.
[0075] For example, if there is insufficient resource during the use of a small video application, video lag will occur, and users can easily understand and accept the video lag. However, if there is insufficient resource during the use of a karaoke application, sound lag will occur, such as continuous lag sound of "aaa" when the sound "a" lags, which will result in poor user experience.
[0076] The application of the present application is called a resource-sensitive application, such as a karaoke application.
[0077] Taking the Android system as an example, each application in the display device is responsible for scheduling through an application management system (AMS). The AMS is an application management layer sequence of a Mobile Information Device Profile (MIDP), responsible for managing the applications installed in the current display device. The application can be a J2ME application, and its functions include the running, installation, display, updating and deletion of MIDP applications (MIDlets).
[0078] Figure 6 An information interaction diagram of resource management of an application is shown as Figure 6
[0079] The AMS is mainly responsible for the startup, switching, scheduling of four components in the system, and the management and scheduling of application processes, similar to the process management and scheduling module in the Windows operating system. The four components include Activity, Service, Content Provider and Broadcast Receiver. The specific functions are: unified scheduling of the life cycle of all application programs Activity; starting or killing the process of the application program; starting and scheduling the life cycle of the Service; registering the Broadcast Receiver, and receiving and distributing the broadcast.
[0080] The resource monitor detects the CPU content and other resources of the system, and each type of resource has a threshold. When the threshold is reached, the resource management system is notified to schedule and clean up the resources.
[0081] The kernel process list displays the list of currently surviving applications.
[0082] That is, in response to the user's request for the resource-sensitive application, the resource-sensitive application is started, and other started applications enter the background, but both the resource-sensitive application and the other started applications are scheduled through the AMS; the other started applications can be resource-sensitive applications or non-resource-sensitive applications. For other started applications existing in the background, the embodiments of the present application are not limited.
[0083] As shown in Figure 5 S120, when the running state of the resource-sensitive application is started or restored to the foreground, the associated applications are selected from the started background applications based on the mapping table of the resource-sensitive application, and the associated applications are closed, and the running data of the associated applications is recorded.
[0084] The mapping table is used to reflect the mapping relationship between the resource-sensitive application and the associated application which is not affected by the resource-sensitive application, that is, the resource-sensitive application and the associated application can not appear in the same scenario.
[0085] Table 1 is a parameter description involved in the mapping table in some embodiments, which can include the following parameters:
[0086] Table 1: Parameter description of the mapping table
[0087] Parameter name Parameter description Remark App RS Resource-sensitive application App C Associated application May not appear in the same scenario as the resource-sensitive application
[0088] It should be noted that the associated application corresponding to each resource-sensitive application can be one or multiple, which is related to the specific business involved by the resource-sensitive application and the associated application. For a certain associated application, there can be a business association with a certain resource-sensitive application, or there can be a business association with multiple resource-sensitive applications. Table 2 is the specific content of the mapping table in some embodiments, which can include the following content:
[0089] Table 2: Mapping table 1
[0090]
[0091] The mapping table containing each resource-sensitive application is used to filter the associated application from the started background application, and the associated application is closed. At this time, all the associated applications existing in the started background application can be closed, or one or more of the associated applications existing in the started background application can be selected and closed.
[0092] In some embodiments, the parameters involved in the mapping table can also include the priority of each associated application, and the associated applications can be closed in order according to the order of the priority of each associated application. Figure 7 FIG. 2 shows a flowchart of the process of filtering the associated application from the started background application and closing the associated application in the background processing method of some embodiments of the present application, as shown in FIG. 2, the associated application is filtered from the started background application and closed, specifically including the following steps: Figure 7
[0093] S201, obtaining the priority of each associated application.
[0094] The priority of each associated application can be determined by the mapping table, or can be directly obtained by the application management system.
[0095] S202, closing the application to be closed in order based on the priority order of each associated application.
[0096] According to the priority order of the associated applications, the associated applications can be closed in sequence based on the priority order in the process of closing the associated applications. Table 3 is the specific content of the mapping table in some embodiments, which can include the following content:
[0097] Table 3: Mapping table 2
[0098]
[0099] For example, when the detected resource-sensitive application is a K-song application, the associated applications obtained from the mapping table 2 include a chat application, a voice assistant application and a voice learning application, and the corresponding priorities are 1, 2 and 3 respectively; at this time, the associated applications screened from the started background applications can include the chat application, the voice assistant application and the voice learning application, and the chat application, the voice assistant application and the voice learning application are closed in sequence according to the priority order of the chat application, the voice assistant application and the voice learning application.
[0100] Alternatively, after step 201, the to-be-closed applications can be screened from the associated applications based on the priority order of the associated applications through S203, and the to-be-closed applications are closed.
[0101] The number of the to-be-closed applications is less than or equal to the number of the associated applications, and the number of the to-be-closed applications is determined by the space required by the system.
[0102] For example, for the mapping table 2 of table 3, when the detected resource-sensitive application is a K-song application, the associated applications obtained from the mapping table 2 include a chat application, a voice assistant application and a voice learning application, and the corresponding priorities are 1, 2 and 3 respectively; at this time, the associated applications screened from the started background applications can include the chat application and the voice learning application, and the chat application and the voice learning application are closed in sequence according to the priority order of the chat application and the voice learning application.
[0103] The associated applications screened from the started background applications can include all the associated applications or only part of the associated applications.
[0104] Therefore, in the above example, the associated applications screened from the started background applications can include the voice assistant application and the voice learning application, and the voice assistant application and the voice learning application are closed in sequence according to the priority order of the voice assistant application and the voice learning application.
[0105] In addition, the priority of the associated applications can be sorted in the mapping table, or the priority can be obtained only through the mapping table, and then the priority is sorted and deleted according to the priority order.
[0106] In some embodiments, the associated application described above can also be an associated process, and the associated process is filtered from the started background processes based on the mapping table of the resource-sensitive application, and the associated process is closed. Whether it is an application or a process, it depends on the system software of the display device and the different processing methods.
[0107] In some embodiments, the relevant data of the mapping table in the embodiments of the present application can also be stored in other data storage forms, which are not limited in the embodiments of the present application.
[0108] For the closed associated application, its running data is recorded and saved, including window state, data content, configuration information, etc. The storage method of the running data can be stored by file, stored by database, or stored by network (i.e. saving the running data in the server).
[0109] After the associated application is filtered from the started background application and the associated application is closed, the running state of the resource-sensitive application can also be monitored by the way of timing monitoring, Figure 8 The flowchart of the monitoring after the associated application is closed in the background processing method of some embodiments of the present application is shown, as shown in Figure 8 The monitoring after the associated application is closed specifically includes the following steps:
[0110] S211, based on the preset time interval, the running state of the resource-sensitive application is monitored cyclically.
[0111] The running state of the resource-sensitive application is monitored once every preset time interval, and whether the running state of the resource-sensitive application changes is monitored, so as to avoid that the closed associated application cannot be recovered after the resource-sensitive application is terminated unexpectedly.
[0112] For example, the started resource-sensitive application suddenly exits, or the device problem causes the resource-sensitive application to crash, etc.
[0113] In some embodiments, the cyclic query can be realized by a timer, and the timer monitors the running state of the resource-sensitive application according to the preset time interval, so as to avoid that the closed associated application cannot be recovered after the resource-sensitive application is terminated unexpectedly.
[0114] S212, if the running state of the resource-sensitive application maintains the starting state, the associated application maintains the closed state.
[0115] It also includes S213, if the running state of the resource-sensitive application is terminated, the closed associated application is recovered based on the running data of the associated application.
[0116] At this time, the termination of the running state of the resource-sensitive application mainly includes the abnormal situation of unexpected termination.
[0117] As Figure 5 shown, S130, when the running state of the resource-sensitive application is closed or enters the background, the associated application that has been closed is recovered based on the running data of the associated application.
[0118] For example, when the user actively exits the K-song application, at this time, the state of the K-song application is closed or enters the background, the state is synchronized to the associated application, and the associated application that has been closed is pulled up based on the running data, so as to ensure that the display device can quickly recover the background application.
[0119] In some embodiments, if the associated application is a background application before being closed, it is still a background application after being recovered.
[0120] The embodiments of the present application provide that by listening to the running state of the resource-sensitive application, when the running state of the resource-sensitive application is started or recovered to the foreground, the associated application is selected from the started background application based on the mapping table of the resource-sensitive application, the associated application is closed, and the running data of the associated application is recorded; wherein the mapping table is the mapping relationship between the resource-sensitive application and the associated application; further, when it is detected that the running state of the resource-sensitive application is closed or enters the background, the associated application that has been closed is recovered based on the running data of the associated application. The embodiments of the present application determine the associated application that can be closed in the background based on the mapping table of the resource-sensitive application after the resource-sensitive application is started, close the associated application in the process of starting or recovering to the foreground of the resource-sensitive application, ensure the use of the resource-sensitive application, and make the associated application that has been closed in the background of the resource-sensitive application after being closed or recovered, so that the normal use of other background applications after the resource-sensitive application is closed or enters the background, and improve the user experience.
[0121] Figure 9 A first flowchart of a background processing method in a display device according to some embodiments of the present application is shown, as shown in Figure 9 After the running state of the resource-sensitive application is started or recovered to the foreground, the priority of the resource-sensitive application is improved, and then the processing flow of the resource-sensitive application in the system is improved, that is, the step 120 is improved, that is, when the running state of the resource-sensitive application is started or recovered to the foreground, the associated application is selected from the started background application based on the mapping table of the resource-sensitive application, the associated application is closed, and the running data of the associated application is recorded; after the resource-sensitive application is started or recovered to the foreground, the specific steps include the following steps:
[0122] S221, detecting the initial priority of the resource-sensitive application.
[0123] In the application management system, after the resource-sensitive application is started or restored to the foreground, the resource-sensitive application is registered in the AMS first, and the AMS receives the resource-sensitive application, judges the priority of the process corresponding to the resource-sensitive application, and performs resource scheduling according to the priority.
[0124] The initial priority of each application installed in the display device for resource allocation is determined by system configuration.
[0125] For the resource-sensitive application, if it is not an application of basic function, the initial priority configured by the system for the resource-sensitive application is generally not high. For example, the initial priority of the application is generally divided into four levels from high to low, and the levels are first level, second level, third level and fourth level. When the display device is a smart phone, the initial priority of the call is the first level, and the initial priority of the K song application may be the fourth level.
[0126] S222, when the initial priority is lower than the preset level, determining a target priority of the resource-sensitive application, the target priority being higher than the initial priority.
[0127] The preset level is used to determine whether the initial priority of the resource-sensitive application meets the level of limited resource allocation.
[0128] If the initial priority of the resource-sensitive application is lower than the preset level, that is, the initial priority of the resource-sensitive application does not meet the limited resource allocation, at this time, a new priority of the resource-sensitive application, that is, a target priority, is determined, and the target priority is higher than the initial priority.
[0129] By setting a new priority for the resource-sensitive application, the target priority of the resource-sensitive application can be higher than other applications or other processes, so that the resource-sensitive application can obtain the resources released by the system in priority when the resources are scarce.
[0130] For example, the initial priority of the K song application is the fourth level, and the preset level is the second level. At this time, a new priority of the K song application, that is, a target priority, is determined, and the target priority is the second level. Of course, in some embodiments, the target priority can be the first level.
[0131] In some embodiments, after the target priority of the resource-sensitive application is determined, the method further includes:
[0132] S223, determining a preset first threshold of resource use of each started background application.
[0133] Each background application has a preset first threshold of resource use, and the preset first threshold gives the system sufficient space for the application or process with high priority.
[0134] For the preset first threshold of each background application, when the preset first threshold is reached, the system will perform resource scheduling and cleaning based on the preset first threshold.
[0135] S224, detecting the current resource usage of the system, and determining the system available resource required by the resource sensitive application according to the current resource usage and the preset first threshold of each background application, wherein the system available resource meets the preset second threshold of the application resource usage of the target priority.
[0136] The system available resource required by the resource sensitive application is different under different current resource usage of the system. In order to provide sufficient resource space for the resource sensitive application, different preset second thresholds of the application resource usage of the target priority are set for different applications or processes according to the system load. The preset second threshold of the application resource usage of the target priority is the system available resource required by the resource sensitive application.
[0137] For example, if the system load is less than 60%, the preset CPU of the process of the target priority (high or higher priority) is less than 5%, if the system load is 80%, the CPU of the process of the target priority (high or higher priority) is less than 3%, and the limit of the target priority (high or higher priority) is more stringent with the increase of the system load.
[0138] The limit of the target priority can be based on the system load, and in some embodiments, the preset first threshold of each background application is also required.
[0139] S225, screening the associated application from the started background application based on the mapping table of the resource sensitive application, and closing the associated application, and recording the running data of the associated application.
[0140] It should be understood that the process is the same as the above-mentioned process principle, and will not be repeated here.
[0141] Figure 10 The second flowchart of the background processing method in the display device of some embodiments of the application is shown, as shown in Figure 10 When the running state of the resource sensitive application is started or recovered to the foreground, the current resource usage of the system is detected, and the processing flow of the resource sensitive application in the system is improved, that is, when the running state of the resource sensitive application is started or recovered to the foreground, the associated application is screened from the started background application based on the mapping table of the resource sensitive application, and the associated application is closed, and the running data of the associated application is recorded; when the running state of the resource sensitive application is started or recovered to the foreground, the specific steps include:
[0142] S231, detecting the current resource usage of the system.
[0143] After the running state of the resource-sensitive application is started or recovered to the foreground, the current resource usage of the system is detected.
[0144] If the current resource usage at this time is lower than or equal to the third threshold value, it can be explained that there are few background applications or processes in the system at this time, and the resource-sensitive application running in the foreground will not appear the phenomenon of lag.
[0145] S232, if the current resource usage is higher than the third threshold value, the mapping table of the resource-sensitive application is obtained.
[0146] If the current resource usage at this time is lower than or equal to the third threshold value, it can be explained that there are few background applications or processes in the system at this time, and the resource-sensitive application running in the foreground will not appear the phenomenon of lag.
[0147] The mapping table of the resource-sensitive application can only include the associated application corresponding to the resource-sensitive application, or can include the associated application corresponding to all resource-sensitive applications.
[0148] In some embodiments, when there is a shortage of system resources, there can be a business, application or process that has a release space, and such business can be preferentially responded. It should be understood that the business, application or process has not been closed, but there is a releasable space, which can be released first.
[0149] S233, based on the mapping table of the resource-sensitive application, the associated application is selected from the started background application, and the associated application is closed, and the running data of the associated application is recorded.
[0150] It should be understood that the process is the same as the above-mentioned processing principle, and will not be repeated here.
[0151] It should be understood that the associated application at this time is the application in the background which is not related to the resource-sensitive application, and the closing order of the associated application can also be determined by the size of the occupied resources of each associated application.
[0152] Figure 11 The third flowchart of the background processing method in the display device of some embodiments of the present application is shown, which shows the third flowchart of the background processing method in the display device of some embodiments of the present application after the resource-sensitive application is started or recovered to the foreground. Figure 11As shown, after the running state of the resource-sensitive application is started or restored to the foreground, the current resource usage of the system is detected, and the processing flow of the resource-sensitive application in the system is improved, that is, when the running state of the resource-sensitive application is started or restored to the foreground, the mapping table of the resource-sensitive application is used to screen out the associated application from the started background application, and the associated application is closed, and the running data of the associated application is recorded; when the running state of the resource-sensitive application is started or restored to the foreground, the following steps are specifically included:
[0153] S241, detecting the initial priority of the resource-sensitive application.
[0154] In the application management system, after the resource-sensitive application is started or restored to the foreground, the resource-sensitive application is registered in the AMS first, and after the AMS receives the resource-sensitive application, the priority of the process corresponding to the resource-sensitive application is judged, and the resource scheduling is performed according to the priority.
[0155] The initial priority of each application installed in the display device for resource allocation is determined by the system configuration. For the resource-sensitive application, if it is not an application of basic function, the initial priority configured by the system for the resource-sensitive application is usually not high.
[0156] S242, when the initial priority is lower than the preset level, determining the target priority of the resource-sensitive application, and the target priority is higher than the initial priority.
[0157] The preset level is used to determine whether the initial priority of the resource-sensitive application meets the level of limited resource allocation.
[0158] If the initial priority of the resource-sensitive application is lower than the preset level, that is, the initial priority of the resource-sensitive application does not meet the limited resource allocation, at this time, a new priority of the resource-sensitive application, that is, the target priority, is determined, and the target priority is higher than the initial priority.
[0159] By setting a new priority for the resource-sensitive application, the target priority of the resource-sensitive application can be higher than other applications or other processes, so that the resource-sensitive application can obtain the system released resources preferentially when the resource is scarce.
[0160] In some embodiments, after the target priority of the resource-sensitive application is determined, the following steps are further included:
[0161] S243, detecting the current resource usage of the system, and determining the system available resource required by the resource-sensitive application according to the current resource usage and the preset first threshold of the resource usage of each background application, wherein the system available resource meets the preset second threshold of the application resource usage of the target priority.
[0162] The preset first threshold of resource usage of each background application leaves sufficient space for the system to be used by applications or processes with high priority.
[0163] The system available resources required by the source-sensitive application are different at different current resource usage of the system. In order to provide sufficient resources for the resource-sensitive application, the preset second threshold of application resource usage of the target priority needs to be set according to the load of the system for different applications or processes. The preset second threshold of application resource usage of the target priority is the system available resources required by the resource-sensitive application.
[0164] The target priority limit can be based on the system load, and in some embodiments, the preset first threshold of each background application also needs to be considered.
[0165] S244, detecting the current resource usage of the system.
[0166] After the resource-sensitive application is started or restored to the foreground, the current resource usage of the system is detected first.
[0167] If the current resource usage at this time is lower than or equal to the third threshold, it can be explained that there are few background applications or processes in the system at this time, and the resource-sensitive application running in the foreground will not appear the phenomenon of lag.
[0168] S245, if the current resource usage is higher than the third threshold, obtaining the mapping table of the resource-sensitive application.
[0169] If the current resource usage at this time is lower than or equal to the third threshold, it can be explained that there are many background applications or processes in the system at this time, and the resource-sensitive application running in the foreground may appear the phenomenon of lag. In order to avoid the occurrence of the lag phenomenon, the mapping table of the resource-sensitive application is obtained.
[0170] The mapping table of the resource-sensitive application can only include the associated application corresponding to the resource-sensitive application, or can include all associated applications corresponding to all resource-sensitive applications.
[0171] S246, based on the mapping table of the resource-sensitive application, screening the associated application from the started background applications, closing the associated application, and recording the running data of the associated application.
[0172] It should be understood that the process is the same as the above-mentioned processing principle, and will not be repeated here.
[0173] In some embodiments, the display device further comprises a detector for collecting signals of the external environment or interaction with the outside. At this time, the running state of the resource-sensitive application can be determined in advance by whether the detector is connected or turned on, and sufficient resources can be provided for the resource-sensitive application in advance to improve the user experience.
[0174] When the detector is detected to be turned on, the running state of the resource-sensitive application is started or restored to the foreground. At this time, the technical solutions of Figure 9 、 Figure 10 or Figure 11 can be used to improve the user experience.
[0175] For example, the resource-sensitive application is a karaoke application. In some application scenarios, the display device has a microphone. By detecting that the microphone has been connected, it can be determined that the running state of the resource-sensitive application is started or restored to the foreground, and sufficient resources can be provided for the karaoke application in advance to avoid the occurrence of a lag phenomenon.
[0176] The embodiments of the present application provide that by listening to the running state of the resource-sensitive application, when the running state of the resource-sensitive application is started or restored to the foreground, the associated application is selected from the background application that has been started based on the mapping table of the resource-sensitive application, and the associated application is closed, and the running data of the associated application is recorded; wherein the mapping table is the mapping relationship between the resource-sensitive application and the associated application; further, when the running state of the resource-sensitive application is closed or enters the background, the associated application that has been closed is restored based on the running data of the associated application. The embodiments of the present application determine the associated application that can be closed in the background based on the mapping table of the resource-sensitive application after the resource-sensitive application is started, and ensure the use of the resource-sensitive application by closing the associated application during the process of starting or restoring the resource-sensitive application to the foreground, and make the background application normally used by other background applications after the resource-sensitive application is closed or enters the background, thereby improving the user experience.
[0177] Figure 12 Some embodiments of the display device in the background processing method of the karaoke application are shown in the interaction diagram as shown in Figure 12 The background processing method of the karaoke application is shown. In the embodiments of the present application, the associated application of the karaoke application is a far-field voice. Based on this, if the microphone is found to be linked when entering the karaoke application (at this time, the user is likely to sing karaoke), it is determined that the current is in the karaoke mode. The resource-sensitive application includes the following interaction process:
[0178] The system detects that a microphone is connected to the smart TV and notifies the user to enter the karaoke mode of the karaoke app via the Provider component. The Provider component also listens for changes in the running status of the karaoke app. If it detects a karaoke service scenario corresponding to the karaoke app, it closes the associated far-field voice application and records the running data of the far-field voice application at this time. Closing the far-field voice application reduces resource consumption.
[0179] Set a timer to perform a loop query. The timer ensures that other related applications are restored after the karaoke application is unexpectedly terminated, preventing the far-field voice application from being unavailable for a long time due to the unexpected crash of the karaoke application during use.
[0180] If, during the timer's loop query, the karaoke app is detected to remain running, the far-field voice app will remain closed and not started. If the karaoke app is detected to be closed or exiting the foreground and entering the background, the far-field voice app will be restored promptly based on the recorded running data, ensuring that the user can quickly restore the far-field voice app service. Note that the far-field voice app is a background app before it is closed and remains a background app after it is restored.
[0181] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0182] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that, include: monitor; The controller is configured to: Monitor the running status of resource-sensitive applications; When the resource-sensitive application is running in the start-up or resumed to the foreground state, the initial priority of the resource-sensitive application is detected; When the initial priority is lower than the preset level, the target priority of the resource-sensitive application is determined. The preset level is used to determine whether the initial priority of the resource-sensitive application meets the level of resource priority allocation. The target priority is higher than the initial priority. Determine the preset first threshold for the use of resources by each enabled background application; The system detects the current resource utilization rate of the system and determines the available system resources required by the resource-sensitive application based on the current resource utilization rate and a preset first threshold for each background application, wherein the available system resources meet the preset second threshold for the use of application resources of the target priority. Based on the mapping table of the resource-sensitive applications and the preset second threshold, related applications are filtered out from the already opened background applications, and the related applications are closed, and the running data of the related applications are recorded; wherein, the mapping table is the mapping relationship between the resource-sensitive applications and the related applications, and when the resource-sensitive application is a karaoke application, the related application is a far-field voice application; When the resource-sensitive application is in a closed or background running state, the closed application is restored based on the running data of the associated application.
2. The display device according to claim 1, characterized in that, Before filtering out associated applications from the already started background applications based on the mapping table of the resource-sensitive applications, and before closing the associated applications, the controller is configured as follows: The current resource utilization rate of the detection system; If the current resource utilization rate is higher than the third threshold, obtain the mapping table of the resource-sensitive application.
3. The display device according to claim 1, characterized in that, The controller is configured to: filter out associated applications from already running background applications and close the associated applications. Get the priority of each associated application; Based on the priority order of the associated applications, applications to be closed are selected from the associated applications, and the applications to be closed are closed.
4. The display device according to claim 1, characterized in that, After filtering out associated applications from already running background applications and closing the associated applications, the controller is further configured to: Based on a preset time interval, the running status of the resource-sensitive application is monitored cyclically; If the resource-sensitive application remains running, then the associated application remains closed.
5. The display device according to claim 1, characterized in that, It also includes a detector, which is used to collect signals from the external environment or to interact with the outside world; The controller is also configured to: The system detects whether the detector is enabled. When the detector is enabled, the resource-sensitive application is either running in the foreground or in the startup / resumption state.
6. A background processing method, characterized in that, include: Monitor the running status of resource-sensitive applications; When the resource-sensitive application is running in the start-up or resumed to the foreground state, the initial priority of the resource-sensitive application is detected; When the initial priority is lower than the preset level, the target priority of the resource-sensitive application is determined. The preset level is used to determine whether the initial priority of the resource-sensitive application meets the level of resource priority allocation. The target priority is higher than the initial priority. The system detects the current resource utilization rate of the system and provides the available resources required by the resource-sensitive application based on the current resource utilization rate and a preset first threshold for the resource utilization of each background application, wherein the available resources meet the preset second threshold for the resource utilization of the application with the target priority. Based on the mapping table of the resource-sensitive applications and the preset second threshold, related applications are filtered out from the already opened background applications and the related applications are closed, and the running data of the related applications are recorded; wherein, the mapping table is the mapping relationship between the resource-sensitive applications and the related applications, and when the resource-sensitive application is a karaoke application, the related application is a far-field voice application. When the resource-sensitive application is in a closed or background running state, the closed application is restored based on the running data of the associated application.
7. The background processing method according to claim 6, characterized in that, After filtering out related applications from already enabled background applications and closing the related applications, the process further includes: Based on a preset time interval, the running status of the resource-sensitive application is monitored cyclically; If the resource-sensitive application remains running, then the associated application remains closed.
Citation Information
Patent Citations
Application management method and device
CN107766139A
Application program processing method and device, electronic equipment and computer readable storage medium
CN109992369A
Information processing method and device, computer device and computer readable storage medium
CN110018904A