WO2015058619A1 - 控制任务速度的方法、装置和终端设备 - Google Patents

控制任务速度的方法、装置和终端设备 Download PDF

Info

Publication number
WO2015058619A1
WO2015058619A1 PCT/CN2014/088262 CN2014088262W WO2015058619A1 WO 2015058619 A1 WO2015058619 A1 WO 2015058619A1 CN 2014088262 W CN2014088262 W CN 2014088262W WO 2015058619 A1 WO2015058619 A1 WO 2015058619A1
Authority
WO
WIPO (PCT)
Prior art keywords
task
acceleration
deceleration
progress
resource
Prior art date
Application number
PCT/CN2014/088262
Other languages
English (en)
French (fr)
Inventor
沈艳慧
刘晓刚
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015058619A1 publication Critical patent/WO2015058619A1/zh

Links

Images

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/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Definitions

  • the present invention relates to the field of terminal technologies, and in particular, to a method, an apparatus, and a terminal device for controlling a task speed.
  • the progress of the task can be displayed in the form of a progress bar.
  • the terminal device determines the completion ratio of the current task according to the completion status of the current task, and displays it in the progress bar according to the completion ratio, so that the user can know the running status of the current task.
  • the user may want the task to run at the original running speed, or hope that the task runs slowly, avoid affecting other tasks, or hope that the task runs faster, so that the task runs as soon as possible.
  • the existing method does not control the running speed of the task. Therefore, in order to meet the different requirements of the user for the running speed of the task, it is necessary to provide a method for controlling the speed of the task.
  • an embodiment of the present invention provides a method, an apparatus, and a terminal device for controlling a task speed.
  • the technical solution is as follows:
  • a method of controlling a task speed comprising:
  • the operation is an acceleration operation or a deceleration operation, adjusting a resource size occupied by the task according to the type of the operation;
  • the task is continuously run according to the adjusted resource size, so that the running speed of the task changes.
  • an apparatus for controlling a speed of a task comprising:
  • a progress display module configured to display the progress of the task during the running of the task
  • An operation determining module configured to determine whether the operation is an acceleration operation or a deceleration operation when an operation of the display area of the task progress is detected
  • a resource adjustment module configured to: when the operation is an acceleration operation or a deceleration operation, adjust a resource size occupied by the task according to the type of the operation;
  • the running module is configured to continue to run the task according to the adjusted resource size, so that the running speed of the task changes.
  • a terminal device including a processor, a memory, an input unit, and a display unit;
  • the display unit is configured to display the progress of the task during the running of the task
  • the input unit is configured to receive an operation of a display area of the progress of the task by a user
  • the memory stores computer readable instructions that are executed by the processor to:
  • the operation is an acceleration operation or a deceleration operation, adjusting a resource size occupied by the task according to the type of the operation;
  • the task is continuously run according to the adjusted resource size, so that the running speed of the task changes.
  • the method, the device, and the terminal device provided by the embodiment of the present invention adjust the resource size occupied by the task when the acceleration operation or the deceleration operation of the display area of the task progress is detected, so that the running speed of the task changes accordingly. It can intelligently control the running speed of tasks, and is convenient for users to manage running tasks.
  • FIG. 1 is a flowchart of a method for controlling a task speed according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for controlling a task speed according to an embodiment of the present invention
  • Figure 3a is a schematic view of a display area of a task schedule
  • 3b is a schematic diagram of a first preset trajectory and a second preset trajectory
  • Figure 3c is a schematic view of the display area of the task progress
  • FIG. 4 is a schematic structural diagram of an apparatus for controlling a task speed according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for controlling a task speed according to an embodiment of the present invention.
  • the execution subject of the embodiment of the present invention is a terminal device (for example, a personal computer, a mobile phone, etc.). Referring to FIG. 1, the method includes:
  • the method provided by the embodiment of the present invention adjusts the resource size occupied by the task when the acceleration operation or the deceleration operation of the display area of the task progress is detected, so that the running speed of the task is fast.
  • the corresponding change in degree can intelligently control the running speed of the task, and is convenient for the user to manage the running task.
  • adjusting the resource size occupied by the task according to the type of the operation includes:
  • the resource size occupied by the task is adjusted according to the resource adjustment value and the type of the operation.
  • acquiring resource adjustment values includes:
  • the operation is an acceleration operation or a deceleration operation
  • obtaining a ratio between a movement distance determined by the acceleration operation or the movement trajectory of the deceleration operation and a preset distance and acquiring the resource adjustment according to the ratio and the first preset threshold Value; or,
  • the second preset threshold is acquired as the resource adjustment value.
  • adjusting the resource size occupied by the task according to the resource adjustment value and the type of the operation includes:
  • the resource size occupied by the task is reduced according to the resource adjustment value.
  • 80% of the second preset threshold may be used as the resource adjustment value
  • an acceleration operation is detected when the completion ratio of the task is 80%.
  • the 20% of the second preset threshold may be used as the resource adjustment value.
  • the method further includes:
  • the resource size currently occupied by the task is restored to the resource size occupied by the task before the acceleration operation or the deceleration operation is detected.
  • the recovery operation is a double click operation of the display area of the progress of the task.
  • the method when the operation is an acceleration operation or a deceleration operation, after the resource size occupied by the task is adjusted according to the type of the operation, the method further includes:
  • the acceleration operation or the identification corresponding to the deceleration operation is displayed in the display area of the task progress.
  • displaying the acceleration operation or the identifier corresponding to the deceleration operation in the display area of the task progress comprises:
  • an acceleration identifier is displayed in a display area of the task progress
  • a deceleration flag is displayed in the display area of the task progress.
  • the operation when the movement track of the operation conforms to the first preset track, the operation is an acceleration operation; when the movement track of the operation conforms to the second preset track, the operation is a deceleration operation.
  • FIG. 2 is a flowchart of a method for controlling a task speed according to an embodiment of the present invention.
  • the execution body of the embodiment of the present invention is a terminal device. Referring to FIG. 2, the method includes:
  • the task is a task that can display the progress of the task according to the completion status.
  • the task can be installed software, download files, transfer files, load pages, file copy or move, etc., which is not limited by the embodiment of the present invention.
  • the display form of the task progress may be a linear progress bar or a circle-shaped progress bar; when the progress of the task is displayed, the completion ratio (such as a percentage) and the running speed (such as the download speed and the installation speed) of the task may also be displayed.
  • the parameters of the present invention are not limited in the display form of the task progress.
  • the progress of the task may be displayed in a display area corresponding to the task, and the display area may be a software installation interface, a task window, or the like.
  • the display area may be a fixed area in the display screen, and may also be an area that changes position and/or size as the user sets or adjusts.
  • a plurality of tasks may be simultaneously run, and each task in the running process may display a corresponding task progress.
  • the display screen of the terminal device may be divided into multiple display areas, respectively displaying the task progress of the multiple tasks; and the task list currently running may be displayed, when a click command for a certain task is detected, The progress of the task is displayed, which is not limited by the embodiment of the present invention.
  • the progress of the task may be displayed on the display screen of the terminal device, or may be displayed only when entering the progress display interface of the task.
  • the display area of the task progress may be a task progress bar, an area where the task progress itself is located, or a lower area of the task progress, and may also be an area displayed after entering the progress display interface, which is not limited by the embodiment of the present invention. .
  • the operation of the display area of the task progress may be a mouse operation or a gesture operation or the like.
  • the mouse operation may be a click operation or a drag operation, etc.
  • the gesture operation may also be a click operation or a slide operation.
  • Figure 3a is a schematic view of the display area of the task progress.
  • the task progress bar 302 of the download task 2 "movie B download” is displayed in the display area 301 of the task progress by clicking "movie B download” 304 in the current task list 303.
  • the mouse drag operation in the display area 301 is detected, the movement trajectory 305 of the mouse drag operation is acquired.
  • the operation is an acceleration operation; when the movement track of the operation conforms to the second preset track, the operation is a deceleration operation.
  • the operation is an acceleration operation.
  • the operation is a deceleration operation.
  • the first preset track and the second preset track may have various forms.
  • the first preset track may be in any of the following forms:
  • the second preset track is in any of the following forms:
  • the difference between the first preset track and the second preset track is that the first preset track and the second preset track are opposite to each other, or the first preset track and the second preset track are
  • the embodiment of the present invention is not limited in this regard.
  • the first preset trajectory may be a linear trajectory 31 on the task progress bar, or a linear trajectory 32 with a slope greater than 0 and less than 1, or an arc where both the moving starting point and the moving end point are on the task progress bar.
  • the second preset track may be a straight track 35 on the task progress bar, or a straight track 36 having a slope greater than -1 and less than 0,
  • the moving start point and the moving end point are both the arc track 37 on the task progress bar, or the arc track 38 in the area above the task progress bar.
  • the track 31 is determined to be the first preset track
  • the track 35 is the second preset track
  • the track 32 is the first preset track
  • the track 36 is the second preset track
  • the track 33 is the first.
  • the preset track and the track 37 are the second preset track; according to the area where the moving track is located, the track 34 can be determined as the first preset track, and the track 38 is the second preset track.
  • the sliding direction of the sliding/dragging operation is obtained, and when the sliding/dragging direction is the progress of the task In the direction, the sliding/dragging operation is an acceleration operation, and when the sliding/dragging direction is the reverse direction of the progress of the task, the sliding/dragging operation is a deceleration operation.
  • the mouse drag operation is a rightward drag operation, and the drag direction is the progress direction of the task progress, it is determined that the mouse drag operation is an acceleration operation.
  • the embodiment of the present invention is described by taking the operation as an acceleration operation, and the operation is similar to that in the deceleration operation.
  • the first preset trajectory and the second preset trajectory may be set by a technician during development, and may also be set by the user during use, which is not limited by the embodiment of the present invention.
  • the operation of the acceleration operation or the deceleration operation matching may be set in advance, and when the operation is detected, it is determined whether the operation matches the preset acceleration operation or the deceleration operation, and when the operation matches the preset acceleration operation At the time, the operation is an acceleration operation, and when the operation is matched with a preset deceleration operation, the operation is a deceleration operation.
  • the operation of presetting the acceleration operation matching is a panning operation on the terminal device, and when the panning operation of the terminal device is detected when the task progress is displayed, it is determined that the operation is an acceleration operation.
  • obtaining a ratio between a moving distance determined by a movement trajectory of the acceleration operation and a preset distance, and obtaining a product of the ratio and the first preset threshold Adjust the value for this resource.
  • the preset distance and the first preset threshold may be preset by a technician, which is not limited by the embodiment of the present invention.
  • the preset distance is 5 mm
  • the first preset threshold is 1 M.
  • the obtained resource adjustment value is 4M.
  • the step 204 includes: obtaining a ratio between a movement distance determined by a movement trajectory of the deceleration operation and a preset distance, and obtaining a product of the ratio and the first preset threshold as the resource. Adjust the value.
  • the embodiment of the present invention controls the resource adjustment value by controlling the acceleration trajectory of the acceleration operation or the deceleration operation, so as to facilitate adjustment of the resource size occupied by the task.
  • the step 204 includes: acquiring the second preset threshold as the resource adjustment value.
  • the second preset threshold may be preset, that is, the resource adjustment value is preset to the second preset threshold, and when any acceleration operation or any deceleration operation is detected, according to the second preset threshold.
  • the size of the resource occupied by the task is adjusted without obtaining the moving distance of the detected operation.
  • the process of acquiring the resource adjustment value is not limited to the foregoing two methods, and may be determined according to the second preset threshold and the current completion ratio of the task.
  • the resource adjustment value is correspondingly reduced.
  • the completion ratio of the task is low, the resource adjustment value may be correspondingly increased. It is assumed that when an acceleration operation is detected when the completion ratio of the task is 20%, 80% of the second preset threshold is acquired as the resource adjustment value, and acceleration is detected when the completion ratio of the task is 80%. If the operation is performed, 20% of the second preset threshold is obtained as the resource adjustment value.
  • the manner in which the resource adjustment value is obtained is not limited in the embodiment of the present invention.
  • the step 203 is used to determine whether the operation is an acceleration operation or a deceleration operation, and the step 204 is used to obtain a resource adjustment value corresponding to the operation.
  • the step 204 can be directly performed, that is, the step 203 and the step 204 can be performed at the same time, or can be performed one after the other, which is not limited by the embodiment of the present invention.
  • the step 205 includes: increasing the resource size occupied by the task according to the resource adjustment value.
  • the step 205 includes: reducing the resource size occupied by the task according to the resource adjustment value.
  • the resource size occupied by the task is adjusted according to the resource adjustment value, and the acceleration operation of the display area for triggering the task progress is triggered, and the resource size occupied by the task is increased, and the task progress is triggered by triggering
  • the deceleration operation of the display area reduces the size of resources occupied by the task.
  • the step 206 includes displaying an acceleration identification in a display area of the progress of the task.
  • the step 206 includes displaying a deceleration flag in a display area of the task progress.
  • the acceleration identifier may be an arrow identifier indicating a direction of progress of the task progress.
  • the deceleration identifier may be an arrow indication in a reverse direction pointing to the progress of the task, and the acceleration identifier or the deceleration identifier may also be in the form of other icons. The embodiment does not limit this.
  • the resource size occupied by the task is adjusted according to the mouse drag operation, and the adjusted display area is displayed in the display area of the task progress.
  • the acceleration logo is indicated by an arrow 307 as shown in Figure 3c.
  • the task when the task is run according to the resource size before the adjustment, the task can be considered to be in a normal running state; when the task is run according to the increased resource size, the task can be considered to be in an accelerated running state; according to the reduced resource.
  • you run the task at the size you can assume that the task is in a decelerating state.
  • the acceleration indicator or the deceleration flag is displayed, so that the user can know the current state of the task.
  • the task continues to run according to the adjusted resource size. Since the running speed of the task can be determined by the resource size occupied by the task, the running speed of the task changes accordingly. That is, before the resource size occupied by the task is adjusted, the running speed of the task is a normal speed.
  • the acceleration operation is detected, the resource size occupied by the task is increased, so that the running speed of the task changes from the normal speed to the first speed;
  • the deceleration operation is detected, the resource size occupied by the task is reduced, so that the running speed of the task is changed from the normal speed to the second speed.
  • the first speed is greater than the normal speed
  • the second speed is less than the normal speed.
  • step 206 and the step 207 may be performed at the same time, or may be performed in any order, which is not limited by the present invention.
  • the acceleration or deceleration operation of the display area of the task progress is triggered, and the resource size occupied by the task is adjusted, thereby realizing the control of the running speed of the task, which is convenient and quick.
  • the recovery operation can also be used to restore the running speed of the task to the normal speed. Therefore, after the step 207, the method further includes:
  • Step 208 When the recovery operation of the display area of the task progress is detected, the resource size currently occupied by the task is restored to the resource size occupied by the task before the acceleration operation is detected.
  • the recovery operation may be a double-click operation or a click operation on the display area of the progress of the task, which is not limited by the embodiment of the present invention.
  • the resource size occupied by the task before the acceleration operation is detected is the resource size occupied by the task before the resource size occupied by the task is adjusted, that is, the resource size automatically allocated by the system for the task.
  • the resource size currently occupied by the task is restored to the resource size automatically allocated by the system for the task before the acceleration operation is detected, so that the running speed of the task is restored to the Normal speed.
  • the method further includes: when the recovery operation of the display area of the progress of the task is detected, canceling the display of the acceleration identifier, or The deceleration flag is displayed, which is convenient for prompting the user that the task is in normal operation.
  • the running speed of the task is normal.
  • the method provided by the embodiment of the present invention adjusts the resource size occupied by the task when the acceleration operation or the deceleration operation of the display area of the task progress is detected, so that the running speed of the task changes correspondingly, and can be intelligently controlled.
  • the running speed of the task is convenient for the user to manage the running task.
  • FIG. 4 is a schematic structural diagram of an apparatus for controlling a task speed according to an embodiment of the present invention.
  • the apparatus includes: a progress display module 401, an operation determination module 402, a resource adjustment module 403, and an operation module 404.
  • the progress display module 401 is configured to display the progress of the task during the running of the task; the operation determining module 402 is configured to determine whether the operation is an acceleration operation or a deceleration operation when the operation of the display area of the task progress is detected.
  • the resource adjustment module 403 is configured to adjust the resource size occupied by the task according to the type of the operation when the operation is an acceleration operation or a deceleration operation; the operation module 404 is configured to continue to run the task according to the adjusted resource size. Make the speed of the task change.
  • the resource adjustment module 403 includes:
  • the adjustment value obtaining unit 4032 is configured to acquire a resource adjustment value when the operation is an acceleration operation or a deceleration operation;
  • a resource adjustment unit 4034 configured to occupy the task according to the resource adjustment value and the type of the operation Adjust the size of the resources used.
  • the adjustment value obtaining unit 4032 is configured to acquire, between the moving distance determined by the moving track of the acceleration operation or the deceleration operation, and the preset distance when the operation is an acceleration operation or a deceleration operation. a ratio, according to the ratio and the first preset threshold, obtaining the resource adjustment value; or
  • the adjustment value acquisition unit is configured to acquire the second preset threshold as the resource adjustment value when the operation is an acceleration operation or a deceleration operation.
  • the resource adjustment unit 4034 is configured to: when the operation is an acceleration operation, increase a resource size occupied by the task according to the resource adjustment value;
  • the resource size occupied by the task is reduced according to the resource adjustment value.
  • the device further comprises:
  • the recovery module 405 is configured to restore, when the recovery operation of the display area of the task progress is detected, the resource size currently occupied by the task to the resource size occupied by the task before detecting the acceleration operation or the deceleration operation.
  • the recovery operation is a double click operation of the display area of the progress of the task.
  • the device further comprises:
  • the identifier display module 406 is configured to display the acceleration operation or the identifier corresponding to the deceleration operation in the display area of the task progress according to the acceleration operation or the deceleration operation.
  • the identifier display module is configured to display an acceleration identifier in a display area of the task progress when the operation is an acceleration operation;
  • a deceleration flag is displayed in the display area of the task progress.
  • the operation when the movement track of the operation conforms to the first preset track, the operation is an acceleration operation; or, when the movement track of the operation conforms to the second preset track, the operation is a deceleration operation.
  • the device provided by the embodiment of the present invention adjusts the resource size occupied by the task when the acceleration operation or the deceleration operation of the display area of the progress of the task is detected, so that the running speed of the task is fast.
  • the corresponding change in degree can intelligently control the running speed of the task, and is convenient for the user to manage the running task.
  • the device for controlling the task speed provided by the foregoing embodiment is only illustrated by dividing the foregoing functional modules when controlling the task speed. In actual applications, the functions may be allocated by different functional modules according to requirements. Upon completion, the internal structure of the terminal device is divided into different functional modules to complete all or part of the functions described above.
  • the apparatus for controlling the speed of the task provided by the foregoing embodiment is the same as the method embodiment for controlling the speed of the task. For the specific implementation process, refer to the method embodiment, and details are not described herein again.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • the terminal device can be used to implement the method for controlling the speed of the task provided in the above embodiment. Specifically:
  • the terminal device 500 may include a processor 510, a memory 520, an input unit 530, and a display unit 540. It will be understood by those skilled in the art that the terminal device structure shown in FIG. 5 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the input unit 530 is configured to receive a user's operation on a display area of a task progress, such as a mouse drag operation, a sliding operation of a finger, and the like.
  • the display unit 540 is configured to display the progress of the task during the running of the task. Further, the acceleration operation indicator or the deceleration operation indicator may also be displayed in the display area of the task progress.
  • Computer readable instructions are stored in memory 520, and processor 510 executes instructions in memory 520 to perform the following steps:
  • the input unit 530 When the input unit 530 receives the user's operation on the display area of the task progress, it is determined whether the operation is an acceleration operation or a deceleration operation;
  • the operation is an acceleration operation or a deceleration operation, adjusting a resource size occupied by the task according to the type of the operation;
  • the task is continuously run according to the adjusted resource size, so that the running speed of the task changes.
  • FIG. 6 is a schematic structural diagram of another terminal device according to an embodiment of the present invention.
  • the terminal device 600 includes a communication unit 110, and a storage including one or more computer readable storage media.
  • the terminal device structure shown in FIG. 6 does not constitute a limitation of the terminal device, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements.
  • the communication unit 110 can be used for transmitting and receiving information and receiving and transmitting signals during a call.
  • the communication unit 110 can be a network communication device such as an RF (Radio Frequency) circuit, a router, or a modem.
  • RF Radio Frequency
  • the communication unit 110 is an RF circuit, the downlink information of the base station is received, and then processed by one or more processors 180; in addition, data related to the uplink is transmitted to the base station.
  • the communication unit 110 can also communicate with the network and other devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access). , Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), e-mail, SMS (Short Messaging Service), and the like.
  • the memory 120 can be used to store software programs and modules, and the processor 180 executes various functional applications and data processing by running software programs and modules stored in the memory 120.
  • the memory 120 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal device 600 (such as audio data, phone book, etc.) and the like.
  • memory 120 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 120 may also include a memory controller to provide access to memory 120 by processor 180 and input unit 130.
  • the input unit 130 can be configured to receive input numeric or character information, and generate and user settings to And keyboard, mouse, joystick, optical or trackball signal input related to function control.
  • the display unit 140 can be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 600, which can be composed of graphics, text, icons, video, and any combination thereof.
  • the display unit 140 may include a display panel 141.
  • the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like.
  • the touch-sensitive surface 131 may cover the display panel 141, and when the touch-sensitive surface 131 detects a touch operation thereon or nearby, it is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 according to the touch event The type provides a corresponding visual output on display panel 141.
  • touch-sensitive surface 131 and display panel 141 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 131 can be integrated with display panel 141 for input. And output function.
  • Terminal device 600 may also include at least one type of sensor 150, such as a light sensor, motion sensor, and other sensors.
  • sensor 150 such as a light sensor, motion sensor, and other sensors.
  • the audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 600.
  • the terminal device may be configured with a wireless communication unit 170, which may be a WiFi module.
  • the processor 180 is the control center of the terminal device 600, which connects various portions of the entire handset using various interfaces and lines, by running or executing software programs and/or modules stored in the memory 120, and recalling data stored in the memory 120.
  • the various functions and processing data of the terminal device 600 are executed to perform overall monitoring of the mobile phone.
  • the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It can be understood that the above modem processor may not be integrated into the processor 180.
  • the terminal device 600 also includes a power source 190 (such as a battery) that supplies power to the various components.
  • a power source 190 such as a battery
  • the terminal device 600 may further include a camera, a Bluetooth module, etc., and no longer ⁇ Said.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

在本发明的一个实施例中,在任务的运行过程中,显示所述任务进度;当检测到对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;当所述操作为加速操作或减速操作时,根据所述操作的类型,对所述任务占用的资源大小进行调整;根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。

Description

控制任务速度的方法、装置和终端设备 技术领域
本发明涉及终端技术领域,特别涉及一种控制任务速度的方法、装置和终端设备。
发明背景
在终端设备中,对于下载文件、加载页面等任务,均可以进度条的形式显示任务进度。具体地,终端设备根据当前任务的完成情况确定当前任务的完成比例,并按照完成比例显示在进度条中,以便于用户获知当前任务的运行情况。
对于运行中的任务,用户可能会希望该任务按照原有的运行速度运行,或者希望该任务缓慢地运行,避免影响到其他任务,又或者希望该任务加快运行,使得该任务尽快运行完成。但现有的方法并不能对任务的运行速度进行控制,因此为了满足用户对于任务运行速度的不同需求,需要提供一种控制任务速度的方法。
发明内容
为了解决现有技术的问题,本发明实施例提供了一种控制任务速度的方法、装置和终端设备。所述技术方案如下:
第一方面,提供了一种控制任务速度的方法,所述方法包括:
在任务的运行过程中,显示所述任务进度;
当检测到对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小;
根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
另一方面,提供了一种控制任务速度的装置,所述装置包括:
进度显示模块,用于在任务的运行过程中,显示所述任务进度;
操作判断模块,用于当检测到对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
资源调整模块,用于当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小;
运行模块,用于根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
另一方面,提供了一种终端设备,包括有处理器、存储器、输入单元和显示单元;:
所述显示单元用于在任务的运行过程中,显示所述任务进度;
所述输入单元用于接收用户对所述任务进度的显示区域的操作;
所述存储器中存储有计算机可读指令,由所述处理器执行以进行以下操作:
当输入单元接收到用户对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小;
根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
本发明实施例提供的方法、装置和终端设备,通过当检测到对该任务进度的显示区域的加速操作或减速操作时,对该任务占用的资源大小进行调整,使得该任务的运行速度相应变化,能够智能地控制任务的运行速度,便于用户对运行任务的管理。
附图简要说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种控制任务速度的方法的流程图;
图2是本发明实施例提供的一种控制任务速度的方法的流程图;
图3a是任务进度的显示区域示意图;
图3b是第一预设轨迹和第二预设轨迹示意图;
图3c是任务进度的显示区域示意图;
图4是本发明实施例提供的一种控制任务速度的装置结构示意图;
图5是本发明实施例提供的一种终端设备结构示意图;
图6是本发明实施例提供的另一种终端设备结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1是本发明实施例提供的一种控制任务速度的方法的流程图。该发明实施例的执行主体为终端设备(例如个人计算机、手机等等),参见图1,所述方法包括:
101:在任务的运行过程中,显示该任务进度;
102:当检测到对该任务进度的显示区域的操作时,判断该操作是否为加速操作或减速操作;
103:当该操作为加速操作或减速操作时,根据该操作的类型,对该任务占用的资源大小进行调整;
104:根据调整后的资源大小继续运行该任务,使得该任务的运行速度变化。
本发明实施例提供的方法,通过当检测到对该任务进度的显示区域的加速操作或减速操作时,对该任务占用的资源大小进行调整,使得该任务的运行速 度相应变化,能够智能地控制任务的运行速度,便于用户对运行任务的管理。
在本发明一个实施例中,当该操作为加速操作或减速操作时,根据该操作的类型,对该任务占用的资源大小进行调整包括:
当该操作为加速操作或减速操作时,获取资源调整值;
根据该资源调整值和该操作的类型,对该任务占用的资源大小进行调整。
在本发明一个实施例中,当该操作为加速操作或减速操作时,获取资源调整值包括:
当该操作为加速操作或减速操作时,获取该加速操作或该减速操作的移动轨迹所确定的移动距离与预设距离之间的比例,根据该比例以及第一预设阈值,获取该资源调整值;或,
当该操作为加速操作或减速操作时,将第二预设阈值获取为该资源调整值。
在本发明一个实施例中,根据该资源调整值和该操作的类型,对该任务占用的资源大小进行调整包括:
当该操作为加速操作时,根据该资源调整值增加该任务占用的资源大小;
当该操作为减速操作时,根据该资源调整值减少该任务占用的资源大小。
例如,当在该任务的完成比例为20%时检测到加速操作,可以将该第二预设阈值的80%作为该资源调整值,当在该任务的完成比例为80%时检测到加速操作,可以将该第二预设阈值的20%作为该资源调整值。
在本发明一个实施例中,根据调整后的资源大小继续运行该任务,使得该任务的运行速度变化之后,该方法还包括:
当检测到对该任务进度的显示区域的恢复操作时,将该任务当前占用的资源大小恢复为检测到该加速操作或该减速操作之前该任务占用的资源大小。
在本发明一个实施例中,该恢复操作为对该任务进度的显示区域的双击操作。
在本发明一个实施例中,当该操作为加速操作或减速操作时,根据该操作的类型,对该任务占用的资源大小进行调整之后,该方法还包括:
根据该加速操作或该减速操作,在该任务进度的显示区域中显示该加速操作或该减速操作对应的标识。
在本发明一个实施例中,根据该加速操作或该减速操作,在该任务进度的显示区域中显示该加速操作或该减速操作对应的标识包括:
当该操作为加速操作时,在该任务进度的显示区域中显示加速标识;
当该操作为减速操作时,在该任务进度的显示区域中显示减速标识。
在本发明一个实施例中,当该操作的移动轨迹符合第一预设轨迹时,该操作为加速操作;当该操作的移动轨迹符合第二预设轨迹时,该操作为减速操作。
图2是本发明实施例提供的一种控制任务速度的方法的流程图。该发明实施例的执行主体为终端设备,参见图2,所述方法包括:
201:在任务的运行过程中,显示该任务进度。
其中,该任务是指能够根据完成情况显示任务进度的任务,该任务可以为安装软件、下载文件、传输文件、加载页面、文件复制或移动等,本发明实施例对此不做限定。
具体地,该任务进度的显示形式可以为直线型进度条或圆圈型进度条;在显示该任务进度时,还可以显示该任务的完成比例(如百分比)和运行速度(如下载速度、安装速度)等参数,本发明实施例对该任务进度的显示形式均不做限定。
该任务进度可以显示在该任务对应的显示区域中,该显示区域可以为软件安装界面、任务窗口等。该显示区域可以是该显示屏幕中的一个固定区域,还可以是随用户设置或调整改变位置和/或大小的区域。
本发明实施例中可能会有多个任务同时运行,对于运行过程中的每个任务,均可以显示对应的任务进度。具体地,可以将该终端设备的显示屏幕划分为多个显示区域,分别显示该多个任务的任务进度;还可以显示当前正在运行的任务列表,在检测到对某一任务的点击指令时,显示该任务的进度,本发明实施例对此不做限定。
另外,在该任务运行过程中,该任务进度可以一直显示在该终端设备的显示屏幕上,还可以仅在进入该任务的进度显示界面时显示。
202:当检测到对该任务进度的显示区域的操作时,获取该操作的移动轨迹。
其中,该任务进度的显示区域可以为任务进度条、该任务进度本身所在区域或该任务进度的下方区域等,还可以为进入进度显示界面后显示的区域,本发明实施例对此不做限定。
本发明实施例中,对该任务进度的显示区域的操作可以为鼠标操作或手势操作等。
对于具有鼠标外设的终端设备来说,该鼠标操作可以为单击操作或拖动操作等,而对于具有触摸屏的终端设备来说,该手势操作也可以为单击操作或滑动操作等。
图3a是任务进度的显示区域示意图。通过点击当前任务列表303中的“电影B下载”304,在任务进度的显示区域301显示下载任务2“电影B下载”的任务进度条302。当检测到在该显示区域301的鼠标拖动操作时,获取该鼠标拖动操作的移动轨迹305。
203:当该操作的移动轨迹符合第一预设轨迹时,该操作为加速操作;当该操作的移动轨迹符合第二预设轨迹时,该操作为减速操作。
具体地,在获取到该操作的移动轨迹后,根据该操作的移动轨迹,判断该操作是否为加速操作或减速操作,当该操作的移动轨迹符合第一预设轨迹时,该操作为加速操作,当该操作的移动轨迹符合第二预设轨迹时,该操作为减速操作。
本发明实施例中,该第一预设轨迹和该第二预设轨迹可以有多种形式。该第一预设轨迹可以为以下任一种形式:
(1)在该任务进度所在进度条上的直线轨迹;或,
(2)斜率属于第一预设范围的直线轨迹;或,
(3)在该任务进度的第一区域的弧线轨迹。
相应的,该第二预设轨迹为以下任一种形式:
(4)在该任务进度所在进度条上的直线轨迹;或,
(5)斜率属于第二预设范围的直线轨迹;或,
(6)在该任务进度的第二区域的弧线轨迹。
其中,该第一预设轨迹和该第二预设轨迹的不同在于该第一预设轨迹和该第二预设轨迹的移动方向相反,或者该第一预设轨迹和该第二预设轨迹所在区域不同,本发明实施例对此不做限定。
参见图3b,该第一预设轨迹可以为在该任务进度条上的直线轨迹31,或斜率大于0且小于1的直线轨迹32,或移动起点和移动终点均在该任务进度条上的弧线轨迹33,或在该任务进度条下方区域的弧线轨迹34;该第二预设轨迹可以为在该任务进度条上的直线轨迹35,或斜率大于-1且小于0的直线轨迹36,或移动起点和移动终点均在该任务进度条上的弧线轨迹37,或在该任务进度条上方区域的弧线轨迹38。其中,根据移动轨迹的方向可以确定轨迹31为第一预设轨迹、轨迹35为第二预设轨迹,轨迹32为第一预设轨迹、轨迹36为第二预设轨迹,轨迹33为第一预设轨迹、轨迹37为第二预设轨迹;根据移动轨迹所在区域可以确定轨迹34为第一预设轨迹,轨迹38为第二预设轨迹。
在本发明一个实施例中,当检测到对该任务进度的显示区域的滑动/拖动操作时,获取该滑动/拖动操作的滑动方向,当该滑动/拖动方向为该任务进度的进行方向时,该滑动/拖动操作为加速操作,当该滑动/拖动方向为该任务进度的进行反方向时,该滑动/拖动操作为减速操作。
参见图3a,当检测到该鼠标拖动操作为向右拖动操作,该拖动方向为该任务进度的进行方向,则确定该鼠标拖动操作为加速操作。
本发明实施例以该操作为加速操作为例进行说明,该操作为减速操作时与此类似。
其中,该第一预设轨迹和该第二预设轨迹可以由技术人员在开发时设定,还可以由用户在使用过程中设定,本发明实施例对此不做限定。
实际上,判断该操作是否为加速操作或减速操作时,并不限于以该移动轨迹为判断标准。具体地,可以预先设定加速操作或减速操作匹配的操作,在检测到该操作时,判断该操作是否与预先设定的加速操作或减速操作匹配,当该操作与预先设定的加速操作匹配时,该操作为加速操作,当该操作与预先设定的减速操作匹配时,该操作为减速操作。如,预先设定加速操作匹配的操作为对终端设备的摇一摇操作,则当检测到在显示该任务进度时该终端设备的摇一摇操作时,确定该操作为加速操作。
204:获取该加速或减速操作的移动轨迹所确定的移动距离与预设距离之间的比例,根据该比例以及第一预设阈值,获取该资源调整值。
在本发明一个实施例中,当该操作为加速操作时,获取该加速操作的移动轨迹所确定的移动距离与预设距离之间的比例,将该比例与该第一预设阈值的乘积获取为该资源调整值。其中,该预设距离和该第一预设阈值可以由技术人员预先设定,本发明实施例对此不做限定。
假设,该预设距离为5mm,第一预设阈值为1M,则当该加速操作的移动轨迹所确定的移动距离为20mm时,该移动距离与该预设距离的比例为20/5=4,则获取到的资源调整值为4M。
当该操作为减速操作时,该步骤204包括:获取该减速操作的移动轨迹所确定的移动距离与预设距离之间的比例,将该比例与该第一预设阈值的乘积获取为该资源调整值。
本发明实施例通过控制该加速操作或该减速操作的移动轨迹,控制该资源调整值,便于对该任务占用的资源大小进行调整。
在本发明的另一实施例中,该步骤204包括:将第二预设阈值获取为该资源调整值。其中,该第二预设阈值可以预先设定,即预先设定该资源调整值为该第二预设阈值,当检测到任一加速操作或任一减速操作时,根据该第二预设阈值,对该任务占用的资源大小进行调整,而无需获取该检测到的操作的移动距离。
本发明实施例中,该资源调整值的获取过程并不限于上述两种方式,还可以根据该第二预设阈值和当前该任务的完成比例确定,当该任务的完成比例较高时,可以相应减小该资源调整值,当该任务的完成比例较低时,可以相应增加该资源调整值。假设,当在该任务的完成比例为20%时检测到加速操作,则将该第二预设阈值的80%获取为该资源调整值,当在该任务的完成比例为80%时检测到加速操作,则将该第二预设阈值的20%获取为该资源调整值。本发明实施例对获取该资源调整值的方式不做限定。
需要说明的是,该步骤203用于判断该操作是否为加速操作或减速操作,该步骤204用于获取该操作对应的资源调整值。而对于加速操作和减速操作,均可以直接执行步骤204,也即是该步骤203和步骤204可以同时执行,也可以一前一后执行,本发明实施例对此不做限定。
205:根据该资源调整值,增加或者减少该任务占用的资源大小。
当该操作为加速操作时,该步骤205包括:根据该资源调整值,增加该任务占用的资源大小。当该操作为减速操作时,该步骤205包括:根据该资源调整值,减少该任务占用的资源大小。
本发明实施例中,根据该资源调整值对该任务占用的资源大小进行调整,实现了通过触发对该任务进度的显示区域的加速操作,增加该任务占用的资源大小,通过触发对该任务进度的显示区域的减速操作,减小该任务占用的资源大小。
206:在该任务进度的显示区域中显示加速或者减速标识。
当该操作为加速操作时,该步骤206包括:在该任务进度的显示区域中显示加速标识。当该操作为减速操作时,该步骤206包括:在该任务进度的显示区域中显示减速标识。
该加速标识可以为指向该任务进度的进行方向的箭头标识,相应的,该减速标识可以为指向该任务进度的进行反方向的箭头标识,加速标识或减速标识还可以为其他图标形式,本发明实施例对此不做限定。
参见图3a和图3c,当检测到图3a所示的鼠标拖动操作305时,根据该鼠标拖动操作对该任务占用的资源大小进行调整,调整后在该任务进度的显示区域中显示该加速标识,如图3c所示的箭头标识307。
需要说明的是,根据调整前的资源大小运行该任务时,可以认为该任务处于正常运行状态;根据增加后的资源大小运行该任务时,可以认为该任务处于加速运行状态;根据减少后的资源大小运行该任务时,可以认为该任务处于减速运行状态。在该任务根据调整后的资源大小运行的过程中,显示该加速标识或者减速标识,便于用户获知该任务当前所处的状态。
207:根据调整后的资源大小继续运行该任务,使得该任务的运行速度变化。
具体地,根据调整后的资源大小继续运行该任务,由于该任务的运行速度可以由该任务占用的资源大小确定,则调整后该任务的运行速度也相应发生变化。即在调整该任务占用的资源大小之前,该任务的运行速度为正常速度,当检测到加速操作时,增加该任务占用的资源大小,使得该任务的运行速度由正常速度变化为第一速度;当检测到减速操作时,减小该任务占用的资源大小,使得该任务的运行速度由正常速度变化为第二速度。其中,该第一速度大于该正常速度,该第二速度小于该正常速度。
需要注意的是,步骤206和步骤207可以同时执行,也可以任意顺序执行,本发明不做限定。
在本发明实施例中,通过触发对该任务进度的显示区域的加速操作或减速操作,对该任务占用的资源大小进行调整,进而实现了控制该任务的运行速度,方便快捷。
在本发明一个实施例中,为了提供灵活的调整任务进度,避免对其他程序运行的影响,还可以利用恢复操作将任务的运行速度恢复成正常速度。因此,该步骤207之后,该方法还包括:
步骤208:当检测到对该任务进度的显示区域的恢复操作时,将该任务当前占用的资源大小恢复为检测到该加速操作之前该任务占用的资源大小。
其中,该恢复操作可以为对该任务进度的显示区域的双击操作或单击操作,本发明实施例对此不做限定。
此外,检测到该加速操作之前该任务占用的资源大小是指在对该任务占用的资源大小进行调整之前,该任务占用的资源大小,也即是系统自动为该任务分配的资源大小。当检测到对该任务进度的显示区域的恢复操作时,将该任务当前占用的资源大小恢复为检测到该加速操作之前系统自动为该任务分配的资源大小,使得该任务的运行速度恢复为该正常速度。
在本发明一个实施例中,为了与恢复操作同步,更准确的显示任务进度,所述方法还包括:当检测到对该任务进度的显示区域的恢复操作时,取消显示该加速标识,或,取消显示该减速标识,便于提示用户当前该任务处于正常运行状态,该任务的运行速度为正常速度。
本发明实施例提供的方法,通过当检测到对该任务进度的显示区域的加速操作或减速操作时,对该任务占用的资源大小进行调整,使得该任务的运行速度相应变化,能够智能地控制任务的运行速度,便于用户对运行任务的管理。
图4是本发明实施例提供的一种控制任务速度的装置结构示意图,参见图4,所述装置包括:进度显示模块401、操作判断模块402、资源调整模块403、运行模块404。
其中,进度显示模块401用于在任务的运行过程中,显示该任务进度;操作判断模块402用于当检测到对该任务进度的显示区域的操作时,判断该操作是否为加速操作或减速操作;资源调整模块403用于当该操作为加速操作或减速操作时,根据该操作的类型,对该任务占用的资源大小进行调整;运行模块404用于根据调整后的资源大小继续运行该任务,使得该任务的运行速度变化。
在本发明一个实施例中,该资源调整模块403包括:
调整值获取单元4032,用于当该操作为加速操作或减速操作时,获取资源调整值;
资源调整单元4034,用于根据该资源调整值和该操作的类型,对该任务占 用的资源大小进行调整。
在本发明一个实施例中,该调整值获取单元4032用于当该操作为加速操作或减速操作时,获取该加速操作或该减速操作的移动轨迹所确定的移动距离与预设距离之间的比例,根据该比例以及第一预设阈值,获取该资源调整值;或,
该调整值获取单元用于当该操作为加速操作或减速操作时,将第二预设阈值获取为该资源调整值。
在本发明一个实施例中,该资源调整单元4034用于当该操作为加速操作时,将根据该资源调整值增加该任务占用的资源大小;
当该操作为减速操作时,根据该资源调整值减少该任务占用的资源大小。
在本发明一个实施例中,该装置还包括:
恢复模块405,用于当检测到对该任务进度的显示区域的恢复操作时,将该任务当前占用的资源大小恢复为检测到该加速操作或该减速操作之前该任务占用的资源大小。
在本发明一个实施例中,该恢复操作为对该任务进度的显示区域的双击操作。
在本发明一个实施例中,该装置还包括:
标识显示模块406,用于根据该加速操作或该减速操作,在该任务进度的显示区域中显示该加速操作或该减速操作对应的标识。
在本发明一个实施例中,该标识显示模块用于当该操作为加速操作时,在该任务进度的显示区域中显示加速标识;
当该操作为减速操作时,在该任务进度的显示区域中显示减速标识。
在本发明一个实施例中,当该操作的移动轨迹符合第一预设轨迹时,该操作为加速操作;或,当该操作的移动轨迹符合第二预设轨迹时,该操作为减速操作。
本发明实施例提供的装置,通过当检测到对该任务进度的显示区域的加速操作或减速操作时,对该任务占用的资源大小进行调整,使得该任务的运行速 度相应变化,能够智能地控制任务的运行速度,便于用户对运行任务的管理。
需要说明的是:上述实施例提供的控制任务速度的装置在控制任务速度时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将终端设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的控制任务速度的装置与控制任务速度的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
图5是本发明实施例提供的一种终端设备结构示意图。参见图5,该终端设备可以用于实施上述实施例中提供的控制任务速度的方法。具体来讲:
终端设备500可以包括处理器510、存储器520、输入单元530和显示单元540。本领域技术人员可以理解,图5中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。输入单元530用于接收用户对于任务进度的显示区域的操作,例如鼠标拖动操作、手指的滑动操作等。
显示单元540用于在任务的运行过程中,显示任务进度。进一步的,还可以在任务进度的显示区域中显示加速操作标识或者减速操作标识。
存储器520中存储有计算机可读指令,处理器510执行存储器520中的指令以完成以下步骤:
当输入单元530接收到用户对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
当所述操作为加速操作或减速操作时,根据所述操作的类型,对所述任务占用的资源大小进行调整;
根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
其具体实现过程详见方法实施例,这里不再赘述。
图6是本发明实施例提供的另一种终端设备结构示意图。参见图6,该终端设备600包括通信单元110、包括有一个或一个以上计算机可读存储介质的存储 器120、输入单元130、显示单元140、传感器150、音频电路160、无线通信单元170、包括有一个或者一个以上处理核心的处理器180、以及电源190等部件。本领域技术人员可以理解,图6中示出的终端设备结构并不构成对终端设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
通信单元110可用于收发信息或通话过程中,信号的接收和发送,该通信单元110可以为RF(Radio Frequency,射频)电路、路由器、调制解调器等网络通信设备。特别地,当通信单元110为RF电路时,将基站的下行信息接收后,交由一个或者一个以上处理器180处理;另外,将涉及上行的数据发送给基站。此外,通信单元110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于GSM(Global System of Mobile communication,全球移动通讯系统)、GPRS(General Packet Radio Service,通用分组无线服务)、CDMA(Code Division Multiple Access,码分多址)、WCDMA(Wideband Code Division Multiple Access,宽带码分多址)、LTE(Long Term Evolution,长期演进)、电子邮件、SMS(Short Messaging Service,短消息服务)等。
存储器120可用于存储软件程序以及模块,处理器180通过运行存储在存储器120的软件程序以及模块,从而执行各种功能应用以及数据处理。存储器120可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端设备600的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器120还可以包括存储器控制器,以提供处理器180和输入单元130对存储器120的访问。
输入单元130可用于接收输入的数字或字符信息,以及产生与用户设置以 及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。
显示单元140可用于显示由用户输入的信息或提供给用户的信息以及终端设备600的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示单元140可包括显示面板141,可选的,可以采用LCD(Liquid Crystal Display,液晶显示器)、OLED(Organic Light-Emitting Diode,有机发光二极管)等形式来配置显示面板141。进一步的,触敏表面131可覆盖显示面板141,当触敏表面131检测到在其上或附近的触摸操作后,传送给处理器180以确定触摸事件的类型,随后处理器180根据触摸事件的类型在显示面板141上提供相应的视觉输出。虽然在图5中,触敏表面131与显示面板141是作为两个独立的部件来实现输入和输入功能,但是在某些实施例中,可以将触敏表面131与显示面板141集成而实现输入和输出功能。
终端设备600还可包括至少一种传感器150,比如光传感器、运动传感器以及其他传感器。
音频电路160、扬声器161,传声器162可提供用户与终端设备600之间的音频接口。
为了实现无线通信,该终端设备上可以配置有无线通信单元170,该无线通信单元170可以为WiFi模块。
处理器180是终端设备600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器120内的软件程序和/或模块,以及调用存储在存储器120内的数据,执行终端设备600的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器180可包括一个或多个处理核心;优选的,处理器180可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器180中。
终端设备600还包括给各个部件供电的电源190(比如电池)
尽管未示出,终端设备600还可以包括摄像头、蓝牙模块等,在此不再赘 述。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (19)

  1. 一种控制任务速度的方法,其特征在于,所述方法包括:
    在任务的运行过程中,显示所述任务进度;
    当检测到对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
    当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小;
    根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
  2. 根据权利要求1所述的方法,其特征在于,当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小包括:
    当所述操作为加速操作或减速操作时,获取资源调整值;
    根据所述资源调整值和所述操作的类型,调整所述任务占用的资源大小。
  3. 根据权利要求1所述的方法,其特征在于,当所述操作为加速操作或减速操作时,获取资源调整值包括:
    当所述操作为加速操作或减速操作时,获取所述加速操作或所述减速操作的移动轨迹所确定的移动距离与预设距离之间的比例,根据所述比例以及第一预设阈值,获取所述资源调整值;或,
    当所述操作为加速操作或减速操作时,将第二预设阈值获取为所述资源调整值。
  4. 根据权利要求1所述的方法,其特征在于,根据所述资源调整值和所述操作的类型,调整所述任务占用的资源大小包括:
    当所述操作为加速操作时,根据所述资源调整值增加所述任务占用的资源大小;
    当所述操作为减速操作时,根据所述资源调整值减少所述任务占用的资源大小。
  5. 根据权利要求1所述的方法,其特征在于,根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化之后,所述方法还包括:
    当检测到对所述任务进度的显示区域的恢复操作时,将所述任务当前占用的资源大小恢复为检测到所述加速操作或所述减速操作之前所述任务占用的资源大小。
  6. 根据权利要求5所述的方法,其特征在于,所述恢复操作为对所述任务进度的显示区域的双击操作。
  7. 根据权利要求1所述的方法,其特征在于,当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小之后,所述方法还包括:
    根据所述加速操作或所述减速操作,在所述任务进度的显示区域中显示所述加速操作或所述减速操作对应的标识。
  8. 根据权利要求7所述的方法,其特征在于,根据所述加速操作或所述减速操作,在所述任务进度的显示区域中显示所述加速操作或所述减速操作对应的标识包括:
    当所述操作为加速操作时,在所述任务进度的显示区域中显示加速标识;
    当所述操作为减速操作时,在所述任务进度的显示区域中显示减速标识。
  9. 根据权利要求1-8中任一项所述的方法,其特征在于,当所述操作的移动轨迹符合第一预设轨迹时,所述操作为加速操作;当所述操作的移动轨迹符合第二预设轨迹时,所述操作为减速操作。
  10. 一种控制任务速度的装置,其特征在于,所述装置包括:
    进度显示模块,用于在任务的运行过程中,显示所述任务进度;
    操作判断模块,用于当检测到对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
    资源调整模块,用于当所述操作为加速操作或减速操作时,根据所述操作的类型,调整所述任务占用的资源大小;
    运行模块,用于根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
  11. 根据权利要求10所述的装置,其特征在于,所述资源调整模块包括:
    调整值获取单元,用于当所述操作为加速操作或减速操作时,获取资源调整值;
    资源调整单元,用于根据所述资源调整值和所述操作的类型,调整所述任务占用的资源大小。
  12. 根据权利要求10所述的装置,其特征在于,所述调整值获取单元用于当所述操作为加速操作或减速操作时,获取所述加速操作或所述减速操作的移动轨迹所确定的移动距离与预设距离之间的比例,根据所述比例以及第一预设阈值,获取所述资源调整值;或,
    所述调整值获取单元用于当所述操作为加速操作或减速操作时,将第二预设阈值获取为所述资源调整值。
  13. 根据权利要求10所述的装置,其特征在于,所述资源调整单元用于当所述操作为加速操作时,根据所述资源调整值增加所述任务占用的资源大小;
    所述资源调整单元用于当所述操作为减速操作时,根据所述资源调整值减 少所述任务占用的资源大小。
  14. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    恢复模块,用于当检测到对所述任务进度的显示区域的恢复操作时,将所述任务当前占用的资源大小恢复为检测到所述加速操作或所述减速操作之前所述任务占用的资源大小。
  15. 根据权利要求14所述的装置,其特征在于,所述恢复操作为对所述任务进度的显示区域的双击操作。
  16. 根据权利要求10所述的装置,其特征在于,所述装置还包括:
    标识显示模块,用于根据所述加速操作或所述减速操作,在所述任务进度的显示区域中显示所述加速操作或所述减速操作对应的标识。
  17. 根据权利要求16所述的装置,其特征在于,所述标识显示模块用于当所述操作为加速操作时,在所述任务进度的显示区域中显示加速标识;
    所述标识显示模块用于当所述操作为减速操作时,在所述任务进度的显示区域中显示减速标识。
  18. 根据权利要求10-17中任一项所述的装置,其特征在于,当所述操作的移动轨迹符合第一预设轨迹时,所述操作为加速操作;或,当所述操作的移动轨迹符合第二预设轨迹时,所述操作为减速操作。
  19. 一种终端设备,其特征在于,包括有处理器、存储器、输入单元和显示单元,其中,
    所述显示单元用于在任务的运行过程中,显示所述任务进度;
    所述输入单元用于接收用户对所述任务进度的显示区域的操作;
    所述存储器中存储有计算机可读指令,由所述处理器执行以进行以下操作:
    当输入单元接收到用户对所述任务进度的显示区域的操作时,判断所述操作是否为加速操作或减速操作;
    当所述操作为加速操作或减速操作时,根据所述操作的类型,对所述任务占用的资源大小进行调整;
    根据调整后的资源大小继续运行所述任务,使得所述任务的运行速度变化。
PCT/CN2014/088262 2013-10-23 2014-10-10 控制任务速度的方法、装置和终端设备 WO2015058619A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310503260.6A CN103544056B (zh) 2013-10-23 2013-10-23 控制任务速度的方法、装置和终端设备
CN201310503260.6 2013-10-23

Publications (1)

Publication Number Publication Date
WO2015058619A1 true WO2015058619A1 (zh) 2015-04-30

Family

ID=49967531

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088262 WO2015058619A1 (zh) 2013-10-23 2014-10-10 控制任务速度的方法、装置和终端设备

Country Status (2)

Country Link
CN (1) CN103544056B (zh)
WO (1) WO2015058619A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324404A (zh) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 信息获取进度的显示方法、装置、电子设备及可读介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544056B (zh) * 2013-10-23 2017-08-01 腾讯科技(武汉)有限公司 控制任务速度的方法、装置和终端设备
CN103995771B (zh) * 2014-05-30 2017-12-01 北京安兔兔科技有限公司 任务进度展示方法及系统
CN104683857B (zh) * 2015-01-23 2018-05-29 华为技术有限公司 用于数据预加载的可视化呈现的方法和设备
CN106155809A (zh) * 2015-04-16 2016-11-23 北京智谷睿拓技术服务有限公司 资源调整方法及装置
CN106874024A (zh) * 2016-07-22 2017-06-20 阿里巴巴集团控股有限公司 加载对象的显示方法、装置及电子设备
CN107436716A (zh) * 2017-07-14 2017-12-05 珠海格力电器股份有限公司 文件传输方法、装置及电子设备
CN111506382B (zh) * 2020-04-26 2022-11-04 网易(杭州)网络有限公司 进度条曲线确定方法及装置、存储介质、电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1695378A (zh) * 2001-12-12 2005-11-09 皇家飞利浦电子股份有限公司 处理媒体系统上的媒体信号
JP2011123701A (ja) * 2009-12-11 2011-06-23 Nec Corp 進捗情報表示装置、進捗情報表示方法、及び進捗情報表示プログラム
CN102591720A (zh) * 2011-12-19 2012-07-18 北京瑞星信息技术有限公司 变频杀毒技术
CN102681904A (zh) * 2011-03-16 2012-09-19 中国电信股份有限公司 数据同步调度方法和装置
CN103544056A (zh) * 2013-10-23 2014-01-29 腾讯科技(武汉)有限公司 控制任务速度的方法、装置和终端设备

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020194251A1 (en) * 2000-03-03 2002-12-19 Richter Roger K. Systems and methods for resource usage accounting in information management environments
CN101945082B (zh) * 2009-07-09 2014-08-13 联想(北京)有限公司 一种自动调整网络下载速度的方法及网络下载设备
CN101646139A (zh) * 2009-09-07 2010-02-10 深圳市五巨科技有限公司 一种移动终端资源下载的方法和装置
CN102141880A (zh) * 2010-11-29 2011-08-03 华为终端有限公司 移动终端的解锁方法及移动终端
CN102790925B (zh) * 2011-05-20 2015-04-29 深圳市云帆世纪科技有限公司 一种在线流媒体播放的方法及点播终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1695378A (zh) * 2001-12-12 2005-11-09 皇家飞利浦电子股份有限公司 处理媒体系统上的媒体信号
JP2011123701A (ja) * 2009-12-11 2011-06-23 Nec Corp 進捗情報表示装置、進捗情報表示方法、及び進捗情報表示プログラム
CN102681904A (zh) * 2011-03-16 2012-09-19 中国电信股份有限公司 数据同步调度方法和装置
CN102591720A (zh) * 2011-12-19 2012-07-18 北京瑞星信息技术有限公司 变频杀毒技术
CN103544056A (zh) * 2013-10-23 2014-01-29 腾讯科技(武汉)有限公司 控制任务速度的方法、装置和终端设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111324404A (zh) * 2020-01-20 2020-06-23 北京无限光场科技有限公司 信息获取进度的显示方法、装置、电子设备及可读介质
CN111324404B (zh) * 2020-01-20 2023-11-24 北京有竹居网络技术有限公司 信息获取进度的显示方法、装置、电子设备及可读介质

Also Published As

Publication number Publication date
CN103544056A (zh) 2014-01-29
CN103544056B (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
WO2015058619A1 (zh) 控制任务速度的方法、装置和终端设备
EP3739437B1 (en) Icon control method and terminal
RU2616536C2 (ru) Способ, устройство и терминальное устройство для отображения сообщений
WO2018188289A1 (zh) 信息显示方法、装置及终端
US20170371678A1 (en) Method and apparatus for running game client
US20200183574A1 (en) Multi-Task Operation Method and Electronic Device
US10186244B2 (en) Sound effect processing method and device, plug-in unit manager and sound effect plug-in unit
EP2530923A1 (en) Method and apparatus for displaying home screen in mobile terminal
WO2016029642A1 (zh) 后台应用程序的控制方法、装置及终端设备
WO2016066092A1 (zh) 多媒体播放控制方法、装置以及存储介质
EP2843511A1 (en) Mobile terminal and controlling method thereof
CN108470571B (zh) 一种音频检测方法、装置及存储介质
CN109710139B (zh) 一种页面处理方法、装置、终端以及存储介质
US10474507B2 (en) Terminal application process management method and apparatus
WO2016045226A1 (zh) 信息处理方法和装置
KR102110971B1 (ko) 액세스 포인트 네트워크에서의 전력 절감 방법 및 장치
KR20150080446A (ko) 무선네트워크 온오프 제어방법, 장치, 이동단말기, 무선액세스설비, 무선네트워크 온오프 제어시스템, 프로그램 및 기록매체
EP3232323A1 (en) Method and apparatus for displaying status information of application
WO2015131768A1 (en) Video processing method, apparatus and system
CN106951143B (zh) 隐藏应用图标的方法及装置
EP2846296A1 (en) Method, apparatus and terminal device for displaying messages
KR20140008643A (ko) 이동 단말기 및 이동 단말기의 제어 방법
WO2015014135A1 (zh) 鼠标指针的控制方法、装置及终端设备
CN110622105B (zh) 基于设备上下文执行至少一个操作的方法和装置
CN109511139B (zh) Wifi控制方法、装置、移动设备、计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14855187

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205N DATED 29/06/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14855187

Country of ref document: EP

Kind code of ref document: A1