CN117290039A - Download control method and device and electronic equipment - Google Patents

Download control method and device and electronic equipment Download PDF

Info

Publication number
CN117290039A
CN117290039A CN202311260238.3A CN202311260238A CN117290039A CN 117290039 A CN117290039 A CN 117290039A CN 202311260238 A CN202311260238 A CN 202311260238A CN 117290039 A CN117290039 A CN 117290039A
Authority
CN
China
Prior art keywords
application
interface
update file
condition
acquiring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311260238.3A
Other languages
Chinese (zh)
Inventor
梁军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202311260238.3A priority Critical patent/CN117290039A/en
Publication of CN117290039A publication Critical patent/CN117290039A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • H04W8/245Transfer of terminal data from a network towards a terminal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a download control method, a download control device, electronic equipment and a readable storage medium, and belongs to the technical field of data processing. The method comprises the following steps: under the condition that the condition of acquiring the update file of the first application is met, acquiring the update file, and displaying a first interface of the first application on a virtual screen; the method comprises the steps that the condition of acquiring an update file of a first application is met, wherein the condition of acquiring the update file of the first application comprises the step of receiving input of a control of the first application, and the control is used for indicating to acquire the update file; or the condition of acquiring the update file of the first application is met, wherein the condition comprises that the second interface of the first application displayed on the virtual screen is identified to comprise the control.

Description

Download control method and device and electronic equipment
Technical Field
The application belongs to the technical field of data processing, and particularly relates to a download control method, a download control device and electronic equipment.
Background
Currently, when a user uses software, such as game software, new software data needs to be downloaded at random to finish updating the software, so that normal operation of the software is ensured.
In the prior art, when a user opens a certain game software, a window in which data needs to be downloaded is launched in the software, and the user agrees to download in the window, so that the data starts to be downloaded. In general, downloading data requires a lot of time, and if a user switches a downloading task to a background process, the system freezes the background process, so that the downloading cannot be continued.
It can be seen that in the prior art, the user can only wait for the completion of the data download, thereby increasing the time cost of the user.
Disclosure of Invention
The embodiment of the application aims to provide a downloading control method, which can solve the problem that in the prior art, a user can only wait for data downloading to be completed, so that the time cost of the user is increased.
In a first aspect, an embodiment of the present application provides a download control method, where the method includes: under the condition that the condition of acquiring the update file of the first application is met, acquiring the update file, and displaying a first interface of the first application on a virtual screen; the method comprises the steps that the condition of acquiring an update file of a first application is met, wherein the condition of acquiring the update file of the first application comprises the step of receiving input of a control of the first application, and the control is used for indicating to acquire the update file; or the condition of acquiring the update file of the first application is met, wherein the condition comprises that the second interface of the first application displayed on the virtual screen is identified to comprise the control.
In a second aspect, an embodiment of the present application provides a download control device, including: the first display module is used for acquiring the update file of the first application under the condition that the condition of acquiring the update file of the first application is met, and displaying a first interface of the first application on the virtual screen; the method comprises the steps that the condition of acquiring an update file of a first application is met, wherein the condition of acquiring the update file of the first application comprises the step of receiving input of a control of the first application, and the control is used for indicating to acquire the update file; or the condition of acquiring the update file of the first application is met, wherein the condition comprises that the second interface of the first application displayed on the virtual screen is identified to comprise the control.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
Thus, in embodiments of the present application, the first application has an update file, and the control is displayed for user input to obtain the update file in response to the user input; for another example, the first application has an update file, and the display control is automatically input by the system to obtain the update file in response to the system input. Based on the two conditions, the condition of acquiring the update file of the first application is met, so that the update file of the first application is acquired, and meanwhile, a first interface of the first application is displayed on the virtual screen. Therefore, according to the embodiment of the application, when the update file of the first application is obtained, the first interface of the first application is displayed on the virtual screen, so that update interruption caused by the fact that the first application is placed in the background can be avoided, and other operations can be continuously performed on the physical screen, so that a user does not need to wait for downloading the update file, and the time of the user is saved.
Drawings
FIG. 1 is a flow chart of a download control method of an embodiment of the present application;
FIG. 2 is one of the display schematic diagrams of the electronic device of the embodiment of the present application;
FIG. 3 is a second schematic diagram of an electronic device according to an embodiment of the present disclosure;
FIG. 4 is a third schematic illustration of a display of an electronic device according to an embodiment of the present application;
FIG. 5 is one of explanatory diagrams of a download control method according to an embodiment of the present application;
FIG. 6 is a second illustrative diagram of a download control method according to an embodiment of the present application;
FIG. 7 is a third illustrative diagram illustrating a download control method according to an embodiment of the present application;
FIG. 8 is a block diagram of a download control device of an embodiment of the present application;
fig. 9 is one of the hardware configuration diagrams of the electronic device according to the embodiment of the present application;
fig. 10 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
Detailed Description
Technical solutions of embodiments of the present application will be clearly described below with reference to the accompanying drawings of embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The downloading control method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 1 shows a flowchart of a download control method according to an embodiment of the present application, where the method is applied to an electronic device for example, and the method includes:
step 110: and under the condition that the condition of acquiring the update file of the first application is met, acquiring the update file, and displaying a first interface of the first application on the virtual screen.
The method comprises the steps that conditions for obtaining an update file of a first application are met, wherein the conditions comprise receiving input of a control of the first application, and the control is used for indicating to obtain the update file; alternatively, satisfying the condition of obtaining the updated file of the first application includes identifying that the second interface of the first application displayed on the virtual screen includes a control.
In this embodiment, the condition that the condition of acquiring the update file of the first application is satisfied includes at least two cases, and in one case, an input to the control of the first application is received.
The input of the control of the first application includes touch input made by the user on the screen, and is not limited to clicking, sliding, dragging and other inputs. The input to the control of the first application may also be a blank input of the user, such as a gesture action, a face action, etc., and the input to the control of the first application also includes an input of the user to a physical key on the device, not limited to a press, etc. Moreover, the input to the control of the first application includes one or more inputs, wherein the plurality of inputs may be continuous or time-spaced.
In this case, input to the control of the first application is used to trigger the acquisition of the update file at the virtual screen.
For example, referring to FIG. 2, a user opens a first application that currently needs to update data, thereby displaying a graphical interface, the user clicks on the "update" option 201, enters the interface shown in FIG. 3, and the user clicks on the "background download" option 301. Wherein a user clicks on the "background download" option 301, i.e., in this case, an input to the control.
In another case, a second interface identifying a first application displayed on the virtual screen includes a control.
Optionally, based on preset, the system automatically runs the first application on the virtual screen, and when the second interface of the first application is displayed on the virtual screen, the relevant option of update in the second interface is identified by utilizing artificial intelligence (Artificial Intelligence, AI) or optical character recognition (Optical Character Recognition, OCR) character recognition and other technologies, and the relevant option is used as a control in the case, so that a clicking event can be injected through an event injection framework interface of the system, and automatic clicking on the control is realized.
In the electronic device, the screen that the user can touch is a physical screen, but in this embodiment, the system creates a virtual screen, and the virtual screen can provide image data for applications such as screen recording, remote assistance, and the like, where the user cannot see and touch the virtual screen. Thus, in this embodiment, instead of running the first application in the background, the first application is run using a virtual screen.
Optionally, the first application is a game application, and after the application is installed, the update file is often required to be acquired, the capacity of the update file is larger, waiting time is longer, and the task of acquiring the update file on the virtual screen in the embodiment is more suitable.
Optionally, during the process of obtaining the update file by the virtual screen, the system monitors the network traffic of the virtual screen application, and when the traffic is about equal to the capacity of the update file to be obtained and no traffic is downloaded, it indicates that the obtaining of the update file is completed.
Optionally, when the acquisition of the update file is completed, a notification message is displayed on the entity screen to notify the user that the first application is available.
Optionally, a progress bar for acquiring the update file is displayed on the virtual screen so as to record the acquisition progress in real time.
Thus, in embodiments of the present application, the first application has an update file, and the control is displayed for user input to obtain the update file in response to the user input; for another example, the first application has an update file, and the display control is automatically input by the system to obtain the update file in response to the system input. Based on the two conditions, the condition of acquiring the update file of the first application is met, so that the update file of the first application is acquired, and meanwhile, a first interface of the first application is displayed on the virtual screen. Therefore, according to the embodiment of the application, when the update file of the first application is obtained, the first interface of the first application is displayed on the virtual screen, so that update interruption caused by the fact that the first application is placed in the background can be avoided, and other operations can be continuously performed on the physical screen, so that a user does not need to wait for downloading the update file, and the time of the user is saved.
In another embodiment of the present application, the method for controlling downloading includes receiving an input to a control of the first application, where the control is used to indicate that the update file is acquired.
In the flow of the present embodiment, step 110 includes:
substep A1: and canceling the third interface for rendering the first application on the entity screen, and rendering the first interface of the first application on the virtual screen.
Generally, in the process of acquiring an update file, an interface in the acquired update file is rendered in real time, so as to complete updating of the interface. In this embodiment, based on the starting of the virtual screen, the interface of the first application is not displayed on the physical screen, so that the interface of the first application is not rendered on the physical screen, but the interface of the first application is rendered on the virtual screen, and the rendered first interface is displayed on the virtual screen.
For convenience of distinction, the interface of the first application rendered on the physical screen may be defined as a third interface, and the interface of the first application rendered on the virtual screen may be defined as a first interface.
In this embodiment, in the process of obtaining the update file of the first application, the first interface of the first application is rendered on the virtual screen, so that the rendering on the physical screen is avoided, the user is ensured to normally use on the physical screen while the rendering of the interface of the first application can be ensured, and the user is not required to wait for the rendering process on the physical screen.
In another embodiment of the present application, the rendering interval duration of the third interface is smaller than the rendering interval duration of the first interface, or the display resolution of the third interface is greater than the display resolution of the first interface.
In this embodiment, after the virtual screen is started, the user may also operate on the physical screen 401 as shown in fig. 4, so as to avoid phenomena such as display blocking and screen heating of the physical screen, and perform optimization processing on the rendering task performed by the virtual screen, so as to avoid occupation of too large central processor resource due to the virtual screen rendering interface.
Optionally, in this step, based on the acquired update file, whether the application interface needs to be rendered is identified using an AI identification technique. For example, if a certain interface in the update file is the same as the current interface (the interface name is the same) of the first application, it is considered that rendering of the interface is not required; otherwise, if the size of an interface in the update file is different from the current interface (the interface name is the same) of the first application, the interface is considered to need to be rendered.
Optionally, in the first optimization process, a rendering interval duration of the first interface is set, so that the frame rate can be made smaller by setting the rendering frame rate.
For example, when the third interface of the first application is rendered on the physical screen, there is a rendering interval time so that the frame rate can reach "60FPS", and in the optimization process, a longer rendering interval time is set so that the frame rate is reduced to "1FPS", and the effect of rendering only one interface per second is achieved.
For reference, in the process of rendering the first interface of the first application by the virtual screen, the first application requests drawing to the system, the system detects the time T1 provided for the drawing buffer (GraphicBuffer) last time, compares the time T1 with the current time T2, and waits for a period of time (T- (T2-T1)) to return to the GraphicBuffer resource if the interval time (T2-T1) does not exceed the preset period T (i.e. the rendering interval duration). Therefore, the system can realize the reduction of the rendering frame rate by controlling resources to the GraphicBuffer.
In addition, in the optimization process, the actual rendering output may not be required for a certain period of time, so that the ideal frame rate may be set to "0FPS", i.e., rendering is not performed.
When the entity screen renders the interface, all the interfaces are rendered once, and the rendered interfaces are subjected to subsequent synthesizing and displaying processes, but the embodiment only performs the subsequent synthesizing and displaying processes when the rendered interfaces are provided, so that unnecessary logic such as synthesizing and displaying can be removed, and the resource consumption is reduced.
When related logic such as composition, display sending and the like is not performed, a lock (Fence) needs to be released, so that the first application is prevented from having abnormity in the availability of resources such as graphics buffer and the like.
Referring to fig. 5, as illustrated below, based on this optimization process, the number of interfaces 501 rendered at the virtual screen is significantly reduced compared to the number of interfaces 502 rendered at the physical screen.
Optionally, in the second optimization process, the display resolution of the first interface is set so that the display resolution is smaller.
For example, when the physical screen renders the third interface of the first application, there is one display resolution, and in the optimization process, when the virtual screen renders the first interface of the first application, a smaller display resolution is set.
The display resolution of the rendering is generally determined by the application itself, but generally refers to the size of the window. The larger the window size, the greater the display resolution; the smaller the window size, the smaller the display resolution. But not a linear relationship, the more the general size is exceeded, the smaller the display resolution variation is.
Optionally, when the physical screen renders the third interface of the first application, the physical screen is used as a reference window, and when the virtual screen renders the first interface of the first application, the virtual screen is used as a reference window, so that the display area of the virtual screen needs to be set smaller than the display area of the physical screen.
For example, the virtual screen is half as long and wide as the physical screen, respectively.
The optimization scheme can be provided for limiting the area size of the virtual screen, so that the display resolution is reduced, and meanwhile, the requirements of functions such as AI (analog input) diagram recognition and the like on the minimum display resolution can be met, and the subsequent display effect is ensured.
Optionally, the display area is set in the parameters of the virtual screen based on the display area of the physical screen.
For example, referring to fig. 6, at the first interface 601 rendered at the virtual screen, the display resolution is reduced, and the number of pixels and the picture accuracy to be rendered are reduced, as compared to the third interface rendered at the physical screen.
In this embodiment, considering that the rendering thread of the application interface consumes the computing resource, in an optimization scheme, the purpose of reducing the computing resource is achieved by extending the rendering interval duration; in another optimization scheme, the resource consumption of rendering each interface is reduced by reducing the display resolution. Therefore, based on at least one of the two optimization schemes, the response on the entity screen can be distributed to more resources, and further smooth use experience of the user on the entity screen is met.
In the flow of the download control method according to another embodiment of the present application, the method further includes:
step B1: the priority of the first application on the occupation of the resources is reduced.
In this embodiment, the priority of the first application on the resource occupation is reduced, so as to ensure that the priority of the application displayed on the entity screen on the resource occupation is higher.
For example, referring to fig. 7, when an entity screen (also referred to as a physical screen in the drawing) application and a virtual screen application download while applying for resources of a central processing unit (Central Processing Unit, CPU) or the like, the resources are preferentially allocated to the entity screen application so that the virtual screen application is delayed (delay) to execute.
Optionally, the means for lowering the priority comprises: the speed of acquiring the updated file by the virtual screen is reduced, and the acquisition can be stopped according to the actual situation; and reducing the frame rate and the display resolution of the virtual screen rendering interface, and stopping rendering according to actual conditions.
In this embodiment, in order to reduce the performance impact of the virtual screen application on the use of other functions of the user, in combination with the factor that the timeliness requirement of the virtual screen application running is not high, the process priority of the virtual screen application is reduced. The main bottleneck of the virtual screen for acquiring the update file is in network bandwidth, and delay acquisition does not have great influence on acquiring the update file.
In another embodiment of the present application, the method for controlling download includes identifying that the second interface of the first application displayed on the virtual screen includes a control.
In the flow of this embodiment, before step 110, the method further includes:
step C1: and displaying an operation interface of the first application on the virtual screen under the condition that the electronic equipment is in a screen-off state or a charging state, wherein the operation interface comprises a second interface.
In this embodiment, the condition that the condition of acquiring the update file of the first application is satisfied includes identifying that the second interface of the first application displayed on the virtual screen includes a control is perfected.
If the user opens the first application and the first application has a requirement for acquiring an update file, two options of 'virtual screen downloading' and 'off-screen pre-downloading' are provided, and the user can select 'virtual screen downloading', corresponding to the condition that the condition of acquiring the update file of the first application is met includes receiving input of a control of the first application. The user selects "off screen pre-download", corresponding to the condition that the condition for acquiring the update file of the first application includes identifying that the second interface of the first application displayed on the virtual screen includes a control.
After the user selects 'off-screen pre-download', the off-screen pre-download function of the first application is started. When the electronic equipment is in a screen-off state or a charging state, the system detects an application list with a pre-downloading function, opens a first application in the application list through a virtual screen, recognizes relevant 'update' options in a second interface through AI or OCR and the like, and then injects a clicking event through an event injection framework interface of the system to realize automatic clicking. In addition, if the relevant option of updating in the second interface is not identified, opening the next application in the application list on the virtual screen until detection is completed on all the applications in the application list.
Optionally, time information is defined, such as a period from ten hours in the evening to six hours in the morning of the next day, and if the electronic device is in an off-screen state or a charged state, the application list is detected.
The electronic equipment enters a bright screen state from a screen-off state, provides an option of 'continuing to acquire updated files by a virtual screen' or an option of 'acquiring updated files again by screen-off', and can be selected by a user according to requirements. Further, an option of 'no longer prompt' is provided, after the user selects the option, the system can automatically record, and the user is not disturbed by displaying the option when the electronic equipment enters a bright screen state from a dead screen state next time.
Similarly, when the electronic device stops charging, an option of 'continuing to acquire the update file by the virtual screen' or an option of 'acquiring the update file again by charging' is provided, and a user can select according to requirements. Further, a 'no longer prompt' option is also provided, after the user selects the option, the system can automatically record, and the next time the electronic equipment stops charging, the option is not displayed to disturb the user
In this embodiment, the update file may be automatically acquired on the virtual screen during the period when the user does not use the device or during the period when the device is charged, so that it may be ensured that the user will not use the physical screen during this period, or the user experience may not be greatly reduced due to the consumption of the electric power for acquiring the update file.
In summary, based on the download control method provided by the present application, when downloading application data, the application may be switched to the virtual screen to continue running, and the application running on the virtual screen is still a foreground process, and does not trigger the internal downloading stopping logic. Based on the method, an optimization scheme is also provided to reduce task resource consumption on the virtual screen, so that smooth experience of a user using other applications on the physical screen is ensured. The method mainly comprises the steps of downloading network resource packages, rendering display pictures based on the downloaded network resource packages, and realizing the optimization scheme by mainly reducing the resource consumption and the priority of the tasks on the virtual screen, wherein the resource consumption of the tasks on the virtual screen can be optimized from the following directions: reducing the frame rate of the rendered display, reducing the accuracy of the rendered display, and eliminating unnecessary logic such as composite display.
According to the download control method provided by the embodiment of the application, the execution main body can be a download control device. In the embodiment of the present application, a download control device executes a download control method by using a download control device as an example, and the download control device provided in the embodiment of the present application is described.
Fig. 8 shows a block diagram of a download control apparatus according to an embodiment of the present application, the apparatus comprising:
the first display module 10 is configured to obtain an update file if a condition for obtaining the update file of the first application is satisfied, and display a first interface of the first application on the virtual screen;
the method comprises the steps that conditions for obtaining an update file of a first application are met, wherein the conditions comprise receiving input of a control of the first application, and the control is used for indicating to obtain the update file; alternatively, satisfying the condition of obtaining the updated file of the first application includes identifying that the second interface of the first application displayed on the virtual screen includes a control.
Thus, in embodiments of the present application, the first application has an update file, and the control is displayed for user input to obtain the update file in response to the user input; for another example, the first application has an update file, and the display control is automatically input by the system to obtain the update file in response to the system input. Based on the two conditions, the condition of acquiring the update file of the first application is met, so that the update file of the first application is acquired, and meanwhile, a first interface of the first application is displayed on the virtual screen. Therefore, according to the embodiment of the application, when the update file of the first application is obtained, the first interface of the first application is displayed on the virtual screen, so that update interruption caused by the fact that the first application is placed in the background can be avoided, and other operations can be continuously performed on the physical screen, so that a user does not need to wait for downloading the update file, and the time of the user is saved.
Optionally, the meeting the condition of acquiring the update file of the first application includes receiving an input to a control of the first application, where the control is used to indicate that the update file is acquired; the first display module 10 includes:
and the rendering unit is used for canceling the rendering of the third interface of the first application on the entity screen and rendering the first interface of the first application on the virtual screen.
Optionally, the rendering interval duration of the third interface is smaller than the rendering interval duration of the first interface, or the display resolution of the third interface is greater than the display resolution of the first interface.
Optionally, the apparatus further comprises:
and the reducing module is used for reducing the priority of the first application on the occupation of the resources.
Optionally, the meeting a condition of acquiring the update file of the first application includes identifying that the second interface of the first application displayed on the virtual screen includes a control, and the apparatus further includes:
the second display module is used for displaying an operation interface of the first application on the virtual screen under the condition that the electronic equipment is in a screen-off state or a charging state, and the operation interface comprises a second interface.
The device in the embodiment of the application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The device of the embodiment of the application may be a device with an action system. The action system may be an Android (Android) action system, may be an ios action system, and may also be other possible action systems, which are not specifically limited in the embodiments of the present application.
The device provided by the embodiment of the application can realize each process realized by the embodiment of the method and realize the same technical effect, and in order to avoid repetition, the description is omitted here.
Optionally, as shown in fig. 9, the embodiment of the present application further provides an electronic device 100, including a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and capable of being executed on the processor 101, where the program or the instruction implements each step of any one of the foregoing embodiments of the download control method when executed by the processor 101, and the steps achieve the same technical effects, and for avoiding repetition, a description is omitted herein.
The electronic device of the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 10 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, display unit 1006, user input unit 1007, interface unit 1008, memory 1009, processor 1010, camera 1011, and the like.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 1010 is configured to obtain an update file of a first application if a condition for obtaining the update file is satisfied, and the display unit 1006 is configured to display a first interface of the first application on a virtual screen;
the method comprises the steps that the condition of acquiring an update file of a first application is met, wherein the condition of acquiring the update file of the first application comprises the step of receiving input of a control of the first application, and the control is used for indicating to acquire the update file; or the condition of acquiring the update file of the first application is met, wherein the condition comprises that the second interface of the first application displayed on the virtual screen is identified to comprise the control.
Thus, in embodiments of the present application, the first application has an update file, and the control is displayed for user input to obtain the update file in response to the user input; for another example, the first application has an update file, and the display control is automatically input by the system to obtain the update file in response to the system input. Based on the two conditions, the condition of acquiring the update file of the first application is met, so that the update file of the first application is acquired, and meanwhile, a first interface of the first application is displayed on the virtual screen. Therefore, according to the embodiment of the application, when the update file of the first application is obtained, the first interface of the first application is displayed on the virtual screen, so that update interruption caused by the fact that the first application is placed in the background can be avoided, and other operations can be continuously performed on the physical screen, so that a user does not need to wait for downloading the update file, and the time of the user is saved.
Optionally, the meeting the condition of acquiring the update file of the first application includes receiving an input to a control of the first application, where the control is used to indicate that the update file is acquired; the processor 1010 is further configured to cancel rendering the third interface of the first application on the physical screen, and render the first interface of the first application on the virtual screen.
Optionally, the rendering interval duration of the third interface is smaller than the rendering interval duration of the first interface, or the display resolution of the third interface is greater than the display resolution of the first interface.
Optionally, the processor 1010 is further configured to reduce a priority of the first application for resource occupation.
Optionally, the condition that the condition of obtaining the update file of the first application is met includes identifying that the second interface of the first application displayed on the virtual screen includes the control, and the display unit 1006 is further configured to display, when the electronic device is in a state of being off-screen or in a state of being charged, an operation interface of the first application on the virtual screen, where the operation interface includes the second interface.
In summary, based on the download control method provided by the present application, when downloading application data, the application may be switched to the virtual screen to continue running, and the application running on the virtual screen is still a foreground process, and does not trigger the internal downloading stopping logic. Based on the method, an optimization scheme is also provided to reduce task resource consumption on the virtual screen, so that smooth experience of a user using other applications on the physical screen is ensured. The method mainly comprises the steps of downloading network resource packages, rendering display pictures based on the downloaded network resource packages, and realizing the optimization scheme by mainly reducing the resource consumption and the priority of the tasks on the virtual screen, wherein the resource consumption of the tasks on the virtual screen can be optimized from the following directions: reducing the frame rate of the rendered display, reducing the accuracy of the rendered display, and eliminating unnecessary logic such as composite display.
It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of a still picture or a video image obtained by an image capturing device (such as a camera) in a video image capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 1009 may be used to store software programs as well as various data including, but not limited to, application programs and an action system. The processor 1010 may integrate an application processor that primarily processes an action system, user pages, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1009 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, where the program or the instruction realizes each process of the embodiment of the download control method when executed by a processor, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
The processor is a processor in the electronic device in the above embodiment. Readable storage media include computer readable storage media such as computer readable memory ROM, random access memory RAM, magnetic or optical disks, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or instructions, each process of the embodiment of the download control method can be realized, the same technical effect can be achieved, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the download control method as described above, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods of the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (11)

1. A download control method, the method comprising:
under the condition that the condition of acquiring the update file of the first application is met, acquiring the update file, and displaying a first interface of the first application on a virtual screen;
the method comprises the steps that the condition of acquiring an update file of a first application is met, wherein the condition of acquiring the update file of the first application comprises the step of receiving input of a control of the first application, and the control is used for indicating to acquire the update file; or the condition of acquiring the update file of the first application is met, wherein the condition comprises that the second interface of the first application displayed on the virtual screen is identified to comprise the control.
2. The method of claim 1, wherein satisfying the condition for obtaining the update file for the first application comprises receiving input to a control of the first application, the control being configured to indicate obtaining the update file; the displaying the first interface of the first application on the virtual screen comprises the following steps:
and canceling rendering of a third interface of the first application on the entity screen, and rendering of the first interface of the first application on the virtual screen.
3. The method of claim 2, wherein a rendering interval duration of the third interface is less than a rendering interval duration of the first interface, or wherein a display resolution of the third interface is greater than a display resolution of the first interface.
4. The method according to claim 1, wherein the method further comprises:
and reducing the priority of the first application on the occupation of the resources.
5. The method of claim 1, wherein the satisfying the condition for acquiring the update file of the first application includes identifying that the second interface of the first application displayed on the virtual screen includes the control, wherein the acquiring the update file is performed if the condition for acquiring the update file of the first application is satisfied, and wherein the method further includes, prior to the displaying the first interface of the first application on the virtual screen:
and displaying an operation interface of the first application on the virtual screen under the condition that the electronic equipment is in a screen-off state or a charging state, wherein the operation interface comprises the second interface.
6. A download control device, the device comprising:
the first display module is used for acquiring the update file of the first application under the condition that the condition of acquiring the update file of the first application is met, and displaying a first interface of the first application on the virtual screen;
the method comprises the steps that the condition of acquiring an update file of a first application is met, wherein the condition of acquiring the update file of the first application comprises the step of receiving input of a control of the first application, and the control is used for indicating to acquire the update file; or the condition of acquiring the update file of the first application is met, wherein the condition comprises that the second interface of the first application displayed on the virtual screen is identified to comprise the control.
7. The apparatus of claim 6, wherein the satisfaction of the condition for obtaining the update file for the first application comprises receiving input to a control of the first application, the control being configured to indicate obtaining the update file; the first display module includes:
and the rendering unit is used for canceling the rendering of the third interface of the first application on the entity screen and rendering the first interface of the first application on the virtual screen.
8. The apparatus of claim 7, wherein a rendering interval duration of the third interface is less than a rendering interval duration of the first interface or a display resolution of the third interface is greater than a display resolution of the first interface.
9. The apparatus of claim 6, wherein the apparatus further comprises:
and the reducing module is used for reducing the priority of the first application on the occupation of the resources.
10. The apparatus of claim 6, wherein the satisfaction of the condition to obtain the updated file of the first application comprises identifying that the second interface of the first application displayed on the virtual screen comprises the control, the apparatus further comprising:
and the second display module is used for displaying an operation interface of the first application on the virtual screen under the condition that the electronic equipment is in a screen-off state or a charging state, and the operation interface comprises the second interface.
11. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the download control method according to any one of claims 1 to 5.
CN202311260238.3A 2023-09-26 2023-09-26 Download control method and device and electronic equipment Pending CN117290039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311260238.3A CN117290039A (en) 2023-09-26 2023-09-26 Download control method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311260238.3A CN117290039A (en) 2023-09-26 2023-09-26 Download control method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117290039A true CN117290039A (en) 2023-12-26

Family

ID=89258286

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311260238.3A Pending CN117290039A (en) 2023-09-26 2023-09-26 Download control method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117290039A (en)

Similar Documents

Publication Publication Date Title
CN112099705A (en) Screen projection method and device and electronic equipment
CN112148163A (en) Screen recording method and device and electronic equipment
CN112099702A (en) Application running method and device and electronic equipment
CN115357389A (en) Memory management method and device and electronic equipment
CN115658209A (en) Notification message display method and device and electronic equipment
CN111597009B (en) Application program display method and device and terminal equipment
CN113835577A (en) Display method, display device, electronic equipment and storage medium
CN114237801A (en) Desktop display method and device, electronic equipment and medium
CN111880701B (en) Page switching method and device and electronic equipment
CN112764611A (en) Application program control method and device and electronic equipment
CN112306320A (en) Page display method, device, equipment and medium
CN117290039A (en) Download control method and device and electronic equipment
CN114416269A (en) Interface display method and display device
CN114827737A (en) Image generation method and device and electronic equipment
CN113885981A (en) Desktop editing method and device and electronic equipment
CN111880912A (en) Method and device for controlling electronic equipment and electronic equipment
CN113296849B (en) Application loading optimization method and device and electronic equipment
CN113726953B (en) Display content acquisition method and device
CN110022368B (en) Method, device and equipment for controlling overtime time of uploaded pictures and storage medium
CN116541151A (en) Thread scheduling method, device, electronic equipment and medium
CN116627683A (en) State switching method, device and equipment
CN115793920A (en) Screenshot method and screenshot device
CN116382722A (en) Application program updating method, device and equipment
CN118132177A (en) Notification processing method and electronic equipment
CN117149391A (en) Thread management method and device and electronic equipment

Legal Events

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