WO2018161607A1 - 广播控制方法、装置及移动终端、存储介质 - Google Patents

广播控制方法、装置及移动终端、存储介质 Download PDF

Info

Publication number
WO2018161607A1
WO2018161607A1 PCT/CN2017/107971 CN2017107971W WO2018161607A1 WO 2018161607 A1 WO2018161607 A1 WO 2018161607A1 CN 2017107971 W CN2017107971 W CN 2017107971W WO 2018161607 A1 WO2018161607 A1 WO 2018161607A1
Authority
WO
WIPO (PCT)
Prior art keywords
queue
receiver
recipient
broadcast
access level
Prior art date
Application number
PCT/CN2017/107971
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 WO2018161607A1 publication Critical patent/WO2018161607A1/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/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling
    • 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/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues

Definitions

  • the embodiments of the present application relate to an application technology of an electronic device, and in particular, to a broadcast control method and apparatus, and a mobile terminal and a storage medium.
  • the present application provides a broadcast control method and apparatus, and a mobile terminal and a storage medium, which can improve system performance and security of the mobile terminal, and reduce power consumption of the system.
  • an embodiment of the present application provides a broadcast control method, where the broadcast control method includes:
  • the target broadcast is transmitted according to the second recipient queue.
  • the embodiment of the present application further provides a broadcast control apparatus, where the broadcast control apparatus includes:
  • a first receiver queue obtaining module configured to acquire a first receiver queue of the target broadcast
  • An access level obtaining module configured to acquire an access level of the target broadcast
  • a second receiver queue determining module configured to determine a second receiver queue of the target broadcast according to the access level and the first receiver queue
  • a target broadcast sending module configured to send the target broadcast according to the second receiver queue.
  • an embodiment of the present application further provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the following steps when executing the computer program :
  • the target broadcast is transmitted according to the second recipient queue.
  • the embodiment of the present application further provides a storage medium, wherein the storage medium stores a computer program, and the computer program causes the computer to execute the broadcast control method as described above.
  • FIG. 3 is a flowchart of another broadcast control method in the embodiment of the present application.
  • FIG. 5 is a flowchart of another broadcast control method in the embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a broadcast control apparatus in an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a mobile terminal in an embodiment of the present application.
  • a broadcast control method includes:
  • the target broadcast is transmitted according to the second recipient queue.
  • the obtaining an access level of the target broadcast includes:
  • the access level of the target broadcast is determined according to the frequency with which the target broadcast is received by the third party application.
  • the obtaining an access level of the target broadcast includes:
  • the access level of the target broadcast is determined according to the historical timeout period.
  • the determining, according to the access level and the first receiver queue, the second receiver queue of the target broadcast comprises:
  • the access level of the target broadcast is the first access level, deleting all third-party applications in the first receiver queue;
  • the access level of the target broadcast is the second access level, deleting some third-party applications in the first receiver queue
  • the first receiver queue Determining the first receiver queue as a second receiver queue if the access level of the target broadcast is a third access level; wherein the first access level, the second access level, the first The three access levels are lowered in turn.
  • the method further includes:
  • the first receiver is any one of the first receiver queues, and the operating parameter includes at least one of the following parameters One: start parameters, front and back parameters, historical delay parameters;
  • the target broadcast is sent according to the adjusted second recipient queue.
  • the second recipient queue is based on an operating parameter of the first recipient Make adjustments, including:
  • the second recipient queue includes the first recipient, and the first recipient's startup parameter is not activated, then the first recipient is removed from the second recipient queue; or
  • the sending the target broadcast according to the second receiver queue comprises:
  • the target broadcast is sent according to the second receiver queue.
  • the step of obtaining a first receiver queue of the target broadcast includes:
  • the broadcast management module When the broadcast management module detects that the target broadcast is to be issued, before the target broadcast broadcast is issued, the broadcast management module identifies the type of the target broadcast, and acquires its corresponding first recipient queue according to the type of the target broadcast.
  • the step of transmitting a target broadcast according to the second receiver queue includes:
  • the target broadcasts are sequentially sent to third party applications in the second recipient queue.
  • the first receiver queue of the target broadcast is obtained first, and the access level of the target broadcast is obtained, and then the second receiver queue of the target broadcast is determined according to the access level and the first receiver queue, and finally according to the second receiver.
  • the queue sends the target broadcast.
  • the target broadcast can determine the receiver according to its access level, can improve the system performance and security of the mobile terminal, and reduce the power consumption of the system.
  • FIG. 1 is a flowchart of a broadcast control method according to an embodiment of the present disclosure.
  • the present embodiment is applicable to a situation in which a receiver of a broadcast is controlled.
  • the method may be performed by a mobile terminal, where the mobile terminal may be a smart phone or a tablet. Etc.
  • the broadcast control method specifically includes the following steps:
  • Step 110 Acquire a first receiver queue of the target broadcast.
  • the target broadcast may include a system broadcast and a third party broadcast, and the system broadcast may include a bright screen broadcast, a blackout broadcast, an unlock broadcast, a network state change broadcast, a Bluetooth state change broadcast, a switch language broadcast, a switch theme broadcast, and the like, and a third party broadcast. It can be a broadcast made by a third-party application.
  • the first receiver queue may be a team of all application software broadcast by the receiving target in the mobile terminal. Column. Each target broadcast has a corresponding first receiver queue, and the number of recipients in the first receiver queue is at least one. Illustratively, Table 1 lists the correspondence between the four sets of target broadcasts and the first recipient queue.
  • the process of obtaining the first receiver queue of the target broadcast may be: when the broadcast management module detects that the target broadcast is to be sent, the broadcast management module (such as ActivityManagerService) identifies the target broadcast before the target broadcast broadcast is sent. The type then gets its corresponding first receiver queue according to the type of the target broadcast.
  • the broadcast management module detects that the broadcast 1 is to be sent, and acquires its corresponding first receiver queue according to the broadcast 1 as the application A, the application B, the application C, the application D, and the application.
  • ActivityManagerService plays the role of broadcast center in the broadcast mechanism of Android system, and is responsible for all broadcast registration and release operations in the system.
  • the registration of broadcast refers to the process of registering the broadcast receiver to ActivityManagerService.
  • the broadcast release includes the broadcast sender sending the broadcast to the ActivityManagerService.
  • the ActivityManagerService checks which broadcast receivers subscribe to the broadcast in its own registry, and then sends the broadcast to the broadcast receivers one by one.
  • Step 120 Acquire an access level of the target broadcast.
  • the access level may include a first access level, a second access level, and a third access level, where the first access level, the second access level, and the third access level indicate that the access level of the target broadcast is sequentially decreased.
  • the method for obtaining the access level of the target broadcast in the application scenario may be: determining the access level of the target broadcast according to the frequency of the target broadcast being received by the third-party application in a fixed period of time, for example, one day, two days, or one week; Or determining, within a fixed period of time, an access level of the target broadcast according to a historical timeout period corresponding to the target broadcast; or during a peak usage period of the user within a day, The access level of the target broadcast is determined according to the frequency of the target broadcast being received by the third-party application; or the access level of the target broadcast is determined according to the historical timeout period corresponding to the target broadcast during the peak usage period of the user within one day.
  • Step 130 Determine a second receiver queue of the target broadcast according to the access level and the first receiver queue.
  • the method for determining the second receiver queue of the target broadcast according to the access level and the first receiver queue may be: if the access level of the target broadcast is the first access level, in the first receiver queue Deleting all third-party applications; if the access level of the target broadcast is the second access level, deleting some third-party applications in the first recipient queue; if the target broadcast access level is the third access level, the first recipient is The queue is determined to be the second recipient queue.
  • the method of deleting a part of the third-party application in the first receiver queue may be: deleting a certain percentage of the front or the back of the first receiver queue.
  • a certain percentage may be any percentage between 40% and 60%. exemplarily, taking the broadcast 3 in Table 1 as an example, assuming that the access level of the broadcast 3 is the second access level, the first reception needs to be deleted.
  • Step 140 Send a target broadcast according to the second receiver queue.
  • the process of sending a target broadcast according to the second receiver queue may be that the target broadcast is sequentially sent to a third-party application in the second receiver queue.
  • the second receiver queue of the broadcast 3 is the application F, the application G and the application H, and the broadcast 3 will be sent to the application F, the application G and the application H in sequence.
  • the technical solution provided in this embodiment first acquires a first receiver queue of the target broadcast and acquires an access level of the target broadcast, and then determines a second receiver queue of the target broadcast according to the access level and the first receiver queue, and finally according to the The second receiver queue sends the target broadcast.
  • the target broadcast can determine the receiver according to its access level, can improve the system performance and security of the mobile terminal, and reduce the power consumption of the system.
  • the access level of the target broadcast is determined according to the frequency with which the target broadcast is received by the third party application.
  • the frequency can be used to target broadcasts in fixed weeks.
  • the range of times received by a third-party application during the period (one day, two days, or one week) or during peak hours is measured.
  • the method of determining the access level of the target broadcast according to the frequency of the target broadcast being received by the third-party application may be, if the target broadcast is received by the third-party application more than 100 times in a day, The access level is the first access level. If the target broadcast is received by the third-party application within 30-100 times, the access level is the second access level, if the target broadcast is received by the third-party application in one day. The number of times is less than 30, and the access level is the third access level.
  • step 120 includes:
  • Step 121 The historical timeout duration of the process corresponding to the receiver of the target broadcast is counted.
  • the timeout period of the process may be longer than the preset duration of the process.
  • the preset duration of the target broadcast process is 0.3 seconds
  • the actual time is 0.5 seconds
  • the timeout period is 0.2S.
  • the method for counting the historical timeout period of the corresponding process of the target broadcast may be that, for a certain type of mobile terminal of a certain brand, a certain number of mobile terminal samples are extracted in different usage time of the mobile terminal, and the sample is taken in the sample.
  • the target broadcast corresponding process of each mobile terminal accumulates the historical timeout duration of each receiver in the first receiver queue to obtain the historical timeout period of the target broadcast corresponding process in one mobile terminal, and then obtains the history of all the samples.
  • the timeout period is averaged to obtain the historical timeout period of the target broadcast corresponding process.
  • 100 units are selected in a mobile phone that has been used for less than 6 months, and 100 units are used in a mobile phone that is used for 6-12 months, and are extracted in a mobile phone using 1-2 years.
  • the broadcast time 2 in Table 1 is used as an example to calculate the historical timeout period of the broadcast 2 corresponding process in 300 mobile phones. It is assumed that the preset duration of the broadcast 2 corresponding process is 0.2 seconds, and the broadcast 2 of a mobile phone is in the application.
  • the duration of the process in A is 0.4 seconds
  • the duration of the process in application C is 0.25 seconds
  • the duration of the process in application E is 0.31 seconds
  • the duration of the process in application F is 0.35 seconds.
  • Broadcast 2 is in the mobile phone.
  • the historical timeout period is 0.61 seconds.
  • the historical timeout period of the broadcast 2 corresponding process in the remaining 299 mobile phones can be calculated.
  • the average value of the historical timeout period of the broadcast 2 corresponding process in 300 mobile phones is calculated, which is OPPO- The history timeout period of the broadcast 2 corresponding process in the R9 mobile phone.
  • Step 122 Determine an access level of the target broadcast according to the historical timeout period.
  • the method for determining the access level of the target broadcast according to the historical timeout period may be The access level of the target broadcast is determined according to the duration of the historical timeout period. For example, if the historical timeout period is greater than 1 second, the access level is the first access level, and if the history timeout is between 0.5-1 seconds, The access level is the second access level. If the history timeout period is less than 0.5 seconds, the access level is the third access level.
  • the access level of the target broadcast is determined according to the historical timeout period, and the historical broadcast timeout period can determine the situation that the target broadcast occupies the system resources, thereby determining the access level, which can effectively reduce the system time delay.
  • FIG. 3 is a flowchart of a broadcast control method according to an embodiment of the present application. As shown in FIG. 3, in some embodiments, after step 130, the method further includes:
  • Step 150 Adjust a second receiver queue according to an operation parameter of the first receiver, where the first receiver is any one of the first receiver queues, and the running parameter includes at least one of the following parameters: a startup parameter, Front and back parameters, historical delay parameters.
  • the first recipient may be a third party application.
  • Startup parameters can include both started and not started.
  • the front and back background parameters can include foreground execution and background execution.
  • the historical delay parameter may include that the historical delay exceeds the preset delay threshold and the historical delay does not exceed the preset delay threshold, or the historical delay parameter may include a historical delay. If the historical delay parameter includes a historical delay, it is determined whether the historical delay exceeds a preset delay threshold according to the historical delay and the preset delay threshold.
  • the historical delay may be a historical delay duration of the process delay caused by the first receiver due to the execution of the target.
  • the process delay may be the delay duration of executing the target broadcast message, or may be caused by other process delays caused by executing the target broadcast message. The delay time.
  • the method for determining the preset delay threshold may be: counting the historical delay duration of the same first receiver in the N mobile terminals in receiving the target broadcast corresponding process, and obtaining the average value of the N historical delay durations as the preset delay.
  • a threshold wherein N is an integer greater than or equal to 2.
  • the preset delay threshold can also be customized by the user to preset the delay threshold.
  • the preset delay threshold is greater than 0 seconds and less than 60 seconds, and in some embodiments, 10 seconds is taken as an example.
  • the method of adjusting the second receiver queue according to the operating parameter of the first receiver may be: if the second receiver queue includes the first receiver, and the first receiver The startup parameter is not activated, then the first recipient is removed from the second recipient queue. If the second recipient queue includes the first recipient, and the first recipient's startup parameter is activated, the first recipient is retained in the second recipient queue, exemplarily, in Table 1, for example, broadcasting First of 3
  • the receiver queues are Application B, Application D, Application F, Application G, and Application H. Assuming that the second receiver queue is Application B, Application G, and Application F, the startup parameters of Application F are not started.
  • the method for adjusting the second receiver queue according to the operating parameter of the first receiver may be: if the second receiver queue does not include the first receiver, and the front receiver parameter of the first receiver is performed by the foreground, A recipient is added to the second recipient queue. If the second recipient queue does not include the first recipient and the front receiver's front-end parameters are performed in the background, the first recipient is not added to the second recipient queue.
  • the method for adjusting the second receiver queue according to the operating parameter of the first receiver may further be: if the second receiver queue includes the first receiver, and the historical delay parameter of the first receiver exceeds a preset delay threshold , the first recipient is removed from the second recipient queue. If the second recipient queue includes the first recipient and the historical delay parameter of the first recipient does not exceed the preset delay threshold, then the first recipient is retained in the second recipient queue.
  • the method for adjusting the second receiver queue according to the operating parameter of the first receiver may be: acquiring the first receiver from the first receiver queue of the target broadcast, if The second receiver queue of the target broadcast includes the first receiver, and acquires the startup parameter of the first receiver. If the startup parameter of the first recipient is not activated, the first receiver is removed from the second receiver queue. If the start parameter of the first receiver is activated, the front and back parameters of the first receiver are obtained, and if the front and back parameters of the first receiver are performed by the foreground, the first receiver is retained in the second receiver queue.
  • the front-end parameter of the first receiver is executed in the background, the historical delay parameter of the first receiver is obtained, and if the historical delay parameter of the first receiver exceeds the preset delay threshold, the first receiver is Removed from the second receiver queue, if the first receiver's historical delay parameter does not exceed the preset delay threshold, the first recipient is retained in the second receiver queue. If the second receiver queue of the target broadcast does not include the first receiver, the front and back parameters of the first receiver are obtained, and if the front and back parameters of the first receiver are performed by the foreground, the first receiver is added to the second receiver. In the queue, if the front and back parameters of the first receiver are executed in the background, the first receiver is not added to the second receiver queue.
  • Step 160 Send a target broadcast according to the adjusted second receiver queue.
  • step 150 the adjusted second receiver queue of the broadcast 3 is the application B and the application G, and the broadcast 3 is sequentially sent to the application B and the application G.
  • the second receiver queue is first adjusted according to the operating parameter of the first receiver, and then the target broadcast is sent according to the adjusted second receiver queue.
  • the first queue can be optimized according to the actual operation of the first receiver, and the reliability of the receiver queue (second receiver queue) of the target broadcast is improved.
  • FIG. 4 is a flowchart of a broadcast control method according to an embodiment of the present application. As shown in FIG. 4, in some embodiments, step 140 includes:
  • step 141 the peak usage period is determined according to the user behavior record.
  • the peak usage period may be a peak period in which the user uses the mobile terminal in a preset period, and the preset period may be one day, one week, or one month.
  • the mobile terminal statistically analyzes In the most recent month, when the user continuously uses the mobile terminal for more than one hour between 19:00 and 21:00, the time between 19 and 21 points is determined as the peak usage period.
  • the mobile terminal statistically analyzes that in the past six months, when the user continuously uses the mobile terminal for more than 5 hours every Thursday, Thursday is determined to be the peak usage period.
  • Step 142 If the current time belongs to the peak usage period, the target broadcast is sent according to the second receiver queue.
  • the current time is greater than the start time of the use peak period and less than the end time of the use peak period, it is determined that the current time belongs to the peak usage period.
  • the preset period of the statistical peak period is 1 day
  • the determined peak period is 19 points - 21 points
  • the time when the user currently uses the mobile terminal is 20 points
  • the target broadcast is sent according to the second receiver queue. If the time at which the user currently uses the mobile terminal is not between 19:00 and 21:00, the target broadcast is transmitted according to the first recipient queue.
  • the usage peak period is determined according to the user behavior record, and if the current time belongs to the usage peak period, the target broadcast is sent according to the second receiver queue.
  • the solution can realize that the user controls the broadcast during the peak hours of using the mobile terminal, and can improve the resource utilization of the mobile terminal.
  • FIG. 5 is a flowchart of a broadcast control method according to an embodiment of the present application. As a further description of the foregoing embodiment, the method includes:
  • Step 201 Acquire a first receiver queue of the target broadcast.
  • the system performs broadcast transmission and reception at all times, and broadcast management
  • the module monitors the dynamics of all broadcasts. Before a target broadcast is sent, the broadcast management module first obtains its first receiver queue, thereby distributing the target broadcast to the receivers in the first receiver queue.
  • Step 202 Determine an access level of the target broadcast according to the frequency of the target broadcast being received by the third-party application.
  • the access level of the target broadcast is determined according to the historical timeout period.
  • the broadcast level of the target broadcast is determined according to the frequency of the target broadcast received by the third-party application or the historical timeout period.
  • the broadcasts of different access levels may be saved as different access level broadcast lists according to the level of the broadcast. Used directly in the middle.
  • Step 204 If the access level of the target broadcast is the first access level, delete all third-party applications in the first receiver queue to form a second receiver queue; if the access level of the target broadcast is the second access level, then A part of the third party application is deleted from a receiver queue to form a second receiver queue; if the access level of the target broadcast is the third access level, the first receiver queue is determined as the second receiver queue.
  • Step 205 Adjust the second receiver queue according to the operating parameters of the first receiver.
  • Step 206 determining a peak usage period based on the user behavior record.
  • the peak usage period of the mobile terminal is determined according to the usage habit of the mobile terminal user, that is, the behavior record.
  • Step 207 If the current time belongs to the usage peak period, send the target broadcast according to the second receiver queue.
  • the broadcast management module distributes the target broadcast in accordance with the determined second recipient queue.
  • FIG. 6 is a schematic structural diagram of a broadcast control apparatus according to an embodiment of the present application. As shown in FIG. 5, the apparatus includes: a first receiver queue acquisition module 310, an access level acquisition module 320, and a second receiver queue determination module 330. And target broadcast sending module 340.
  • the first receiver queue obtaining module 310 is configured to acquire a first receiver queue of the target broadcast
  • An access level obtaining module 320 configured to acquire an access level of the target broadcast
  • a second receiver queue determining module 330 configured to determine a second receiver queue of the target broadcast according to the access level and the first receiver queue
  • the target broadcast sending module 340 is configured to send a target broadcast according to the second receiver queue.
  • the access level obtaining module 320 is further configured to:
  • the access level of the target broadcast is determined according to the frequency with which the target broadcast is received by the third party application.
  • the access level obtaining module 320 is further configured to:
  • the access level of the target broadcast is determined according to the historical timeout period.
  • the second receiver queue determination module 330 is further configured to:
  • the access level of the target broadcast is the first access level, all third-party applications are deleted in the first receiver queue;
  • the access level of the target broadcast is the second access level, deleting some third-party applications in the first receiver queue
  • the access level of the target broadcast is the third access level
  • the first receiver queue is determined as the second receiver queue; wherein the first access level, the second access level, and the third access level are sequentially decreased.
  • the method further includes:
  • a second receiver queue adjustment module configured to adjust a second receiver queue according to an operating parameter of the first receiver, where the first receiver is any one of the first receiver queues, and the running parameters include the following parameters At least one of: start parameters, front and back parameters, historical delay parameters;
  • the target broadcast sending module is further configured to send the target broadcast according to the adjusted second receiver queue.
  • the second receiver queue adjustment module is further configured to:
  • the second recipient queue includes the first recipient, and the first recipient's startup parameter is not activated, the first recipient is removed from the second recipient queue; or,
  • the first recipient is added to the second receiver queue
  • the second recipient queue includes the first recipient and the historical delay parameter of the first recipient exceeds a preset delay threshold, the first recipient is removed from the second recipient queue.
  • the target broadcast sending module 340 is further configured to:
  • the target broadcast is sent according to the second receiver queue.
  • the foregoing apparatus may perform the methods provided by all the foregoing embodiments of the present application, and have corresponding functional modules and advantageous effects for performing the foregoing methods. For technical details not described in detail in this embodiment, see this section. The methods provided by all of the foregoing examples are applied.
  • FIG. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present disclosure.
  • the mobile terminal may include: a casing (not shown), a memory 801, and a central processing unit (Central Processing Unit, A CPU 802 (also referred to as a processor, hereinafter referred to as a CPU), a computer program stored on the memory 801 and operable on the processor 802, a circuit board (not shown), and a power supply circuit (not shown) .
  • a CPU 802 also referred to as a processor, hereinafter referred to as a CPU
  • a computer program stored on the memory 801 and operable on the processor 802
  • a circuit board not shown
  • a power supply circuit not shown
  • the circuit board is disposed inside a space enclosed by the casing; the CPU 802 and the memory 801 are disposed on the circuit board; and the power circuit is configured to supply power to each circuit or device of the mobile terminal
  • the memory 801 is configured to store executable program code; the CPU 802 runs a program corresponding to the executable program code by reading executable program code stored in the memory 801 for execution: acquiring a first receiver queue of the target broadcast; obtaining an access level of the target broadcast; determining a second recipient queue of the target broadcast according to the access level and the first recipient queue; and transmitting the target broadcast according to the second recipient queue.
  • the mobile terminal further includes: a peripheral interface 803, an RF (Radio Frequency) circuit 805, an audio circuit 806, a speaker 811, a power management chip 808, an input/output (I/O) subsystem 809, a touch screen 812, and others.
  • Input/control device 810 and external port 804 are communicated via one or more communication buses or signal lines 807.
  • the illustrated mobile terminal 800 is merely one example of a mobile terminal, and that the mobile terminal 800 may have more or fewer components than those shown in the figures, and two or more components may be combined. Or it can have different component configurations.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the mobile terminal for implementing the broadcast control function provided in this embodiment is described in detail below.
  • the mobile terminal takes a mobile phone as an example.
  • the memory 801 can be accessed by the CPU 802, the peripheral interface 803, etc., and the memory 801 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 803, which can connect the input and output peripherals of the device to CPU 802 and memory 801.
  • the I/O subsystem 809 can input and output peripherals on the device, for example, touch screen 812 and other input/control devices 810 are coupled to peripheral interface 803.
  • the I/O subsystem 809 can include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810.
  • one or more input controllers 8092 receive electrical signals from other input/control devices 810 or transmit electrical signals to other input/control devices 810, and other input/control devices 810 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 8092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 812 can be a resistive type, a capacitive inductive type, an infrared type or a surface acoustic wave type.
  • the touch screen 812 can be: external, built-in or integrated.
  • the touch screen 812 can be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen or a surface acoustic wave technology touch screen.
  • the touch screen 812 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • the touch screen 812 sends an electrical signal (such as an electrical signal of the contact surface) triggered by the user on the touch screen to the processor 802.
  • Display controller 8091 in I/O subsystem 809 receives an electrical signal from touch screen 812 or an electrical signal to touch screen 812.
  • the touch screen 812 detects the contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 812, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 812 may be running.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may also include a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • the RF circuit 805 is mainly used for establishing communication between the mobile phone and the wireless network (ie, the network side), and realizing data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like.
  • the audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 811.
  • the speaker 811 is configured to restore the voice signal received by the mobile phone from the wireless network through the RF circuit 805 to sound and play the sound to the user.
  • Power management chip 808 for hardware connected to CPU 802, I/O subsystem, and peripheral interfaces Power and power management.
  • the central processing unit 802 is configured to:
  • the target broadcast is sent according to the second recipient queue.
  • obtaining the access level of the target broadcast includes:
  • the access level of the target broadcast is determined according to the frequency with which the target broadcast is received by the third party application.
  • obtaining the access level of the target broadcast includes:
  • the access level of the target broadcast is determined according to the historical timeout period.
  • determining a second receiver queue of the target broadcast according to the access level and the first receiver queue including:
  • the access level of the target broadcast is the first access level, all third-party applications are deleted in the first receiver queue;
  • the access level of the target broadcast is the second access level, deleting some third-party applications in the first receiver queue
  • the access level of the target broadcast is the third access level
  • the first receiver queue is determined as the second receiver queue; wherein the first access level, the second access level, and the third access level are sequentially decreased.
  • the method further includes:
  • the first receiver is any one of the first receiver queues, and the running parameter includes at least one of the following parameters: a startup parameter, a front-end parameter Historical delay parameters;
  • the target broadcast is sent according to the adjusted second receiver queue.
  • the second receiver queue is adjusted according to the operating parameters of the first receiver, including:
  • the second recipient queue includes the first recipient, and the first recipient's startup parameter is not activated, the first recipient is removed from the second recipient queue; or,
  • the first recipient is added to the second receiver queue
  • the second recipient queue includes the first recipient and the historical delay parameter of the first recipient exceeds a preset delay threshold, the first recipient is removed from the second recipient queue.
  • sending the target broadcast according to the second receiver queue includes:
  • the target broadcast is sent according to the second receiver queue.
  • the mobile terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein.
  • the embodiment of the present application further provides a storage medium, where the computer program stores a computer program, wherein the computer program causes the computer to execute the broadcast control method described in any of the above embodiments.
  • the medium may include: a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.

Abstract

一种广播控制方法、装置及移动终端、存储介质。所述方法包括:获取目标广播的第一接收者队列(S110);获取所述目标广播的访问级别(S120);根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列(S130);根据所述第二接收者队列发送所述目标广播(S140)。该方案可以提高移动终端的系统性能及安全性,并降低系统的耗电量。

Description

广播控制方法、装置及移动终端、存储介质
本申请要求于2017年03月10日提交中国专利局、申请号为201710144317.6、发明名称为“一种广播控制方法、装置及移动终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子设备应用技术,尤其涉及一种广播控制方法、装置及移动终端、存储介质。
背景技术
随着互联网及智能终端的快速发展,各种应用程序(Application,APP)被开发出来并安装于智能终端上。一些流氓软件作为广播接收者,能够在后台通过接收广播进行自启动以进行不正当的操作。
发明内容
本申请提供一种广播的控制方法、装置及移动终端、存储介质,可以提高移动终端的系统性能及安全性,降低系统的耗电量。
第一方面,本申请实施例提供了一种广播控制方法,该广播控制方法包括:
获取目标广播的第一接收者队列;
获取所述目标广播的访问级别;
根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
根据所述第二接收者队列发送所述目标广播。
第二方面,本申请实施例还提供了一种广播控制装置,该广播控制装置包括:
第一接收者队列获取模块,用于获取目标广播的第一接收者队列;
访问级别获取模块,用于获取所述目标广播的访问级别;
第二接收者队列确定模块,用于根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
目标广播发送模块,用于根据所述第二接收者队列发送所述目标广播。
第三方面,本申请实施例还提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
获取目标广播的第一接收者队列;
获取所述目标广播的访问级别;
根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
根据所述第二接收者队列发送所述目标广播。
第四方面,本申请实施例还提供了一种存储介质,其中,所述存储介质中存储有计算机程序,所述计算机程序使得计算机执行如上面所述的广播控制方法。
附图说明
图1是本申请实施例中的一种广播控制方法的流程图;
图2是本申请实施例中的另一种广播控制方法的流程图;
图3是本申请实施例中的另一种广播控制方法的流程图;
图4是本申请实施例中的另一种广播控制方法的流程图;
图5是本申请实施例中的另一种广播控制方法的流程图;
图6是本申请实施例中的一种广播控制装置的结构示意图;
图7是本申请实施例中的一种移动终端的结构示意图。
具体实施方式
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本申请,而非对本申请的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本申请相关的部分而非全部结构。
由于目前系统后台运行的应用数量增多导致系统耗电量增加,浪费资源, 多个应用同时启动或活动,降低系统的性能及安全性。本申请可以采用如下的实现方式来克服。
一种广播控制方法,其中,包括:
获取目标广播的第一接收者队列;
获取所述目标广播的访问级别;
根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
根据所述第二接收者队列发送所述目标广播。
在一些实施例中,所述获取所述目标广播的访问级别,包括:
根据所述目标广播被第三方应用接收的频繁程度确定所述目标广播的访问级别。
在一些实施例中,所述获取所述目标广播的访问级别,包括:
统计所述目标广播的接收者对应进程的历史超时时长;
根据所述历史超时时长确定所述目标广播的访问级别。
在一些实施例中,所述根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列,包括:
若所述目标广播的访问级别为第一访问级别,则在所述第一接收者队列中删除全部第三方应用;
若所述目标广播的访问级别为第二访问级别,则在所述第一接收者队列中删除部分第三方应用;
若所述目标广播的访问级别为第三访问级别,则将所述第一接收者队列确定为第二接收者队列;其中,所述第一访问级别、所述第二访问级别、所述第三访问级别依次降低。
在一些实施例中,在确定所述目标广播的第二接收者队列之后,还包括:
根据第一接收者的运行参数对所述第二接收者队列进行调整,所述第一接收者为所述第一接收者队列中任意一个接收者,所述运行参数包括下述参数中的至少一个:启动参数、前后台参数、历史延时参数;
根据调整后的第二接收者队列发送所述目标广播。
在一些实施例中,所述根据第一接收者的运行参数对所述第二接收者队列 进行调整,包括:
如果第二接收者队列包含第一接收者,且所述第一接收者的启动参数为未启动,则将所述第一接收者从所述第二接收者队列中移除;或者,
如果第二接收者队列未包含第一接收者,且所述第一接收者的前后台参数为前台执行,则将所述第一接收者添加到所述第二接收者队列中;或者,
如果第二接收者队列包含第一接收者,且所述第一接收者的历史延时参数超过预设延时阈值,则将所述第一接收者从所述第二接收者队列中移除。
在一些实施例中,所述根据所述第二接收者队列发送所述目标广播,包括:
根据用户行为记录确定使用高峰时段;
如果当前时刻属于所述使用高峰时段,则根据所述第二接收者队列发送所述目标广播。
在一些实施例中,所述获取目标广播的第一接收者队列的步骤,包括:
当广播管理模块检测到目标广播要发出时,在目标广播广播发出前,广播管理模块识别目标广播的类型,根据目标广播的类型获取其对应的第一接收者队列。
在一些实施例中,所述根据第二接收者队列发送目标广播的步骤,包括:
将所述目标广播依次发送至第二接收者队列中的第三方应用。
本申请实施例,首先获取目标广播的第一接收者队列并获取目标广播的访问级别,然后根据访问级别和第一接收者队列,确定目标广播的第二接收者队列,最后根据第二接收者队列发送目标广播。使得目标广播可以根据其访问级别确定接收者,可以提高移动终端的系统性能及安全性,并降低系统的耗电量。
图1为本申请实施例提供的一种广播控制方法的流程图,本实施例可适用于控制广播的接收者的情况,该方法可以由移动终端来执行,移动终端可以是智能手机、平板电脑等,如图1所示,该广播控制方法具体包括如下步骤:
步骤110,获取目标广播的第一接收者队列。
其中,目标广播可以包括系统广播和第三方广播,系统广播可以包括亮屏广播、熄屏广播、解锁广播、网络状态变化广播、蓝牙状态变化广播、切换语言广播、切换主题广播等,第三方广播可以是由第三方应用软件发出的广播。第一接收者队列可以是移动终端中由接收目标广播的所有应用软件组成的队 列。每一个目标广播都有对应的第一接收者队列,第一接收者队列中的接收者个数为至少一个。示例性的,表1列出了四组目标广播与第一接收者队列的对应关系。
表1
Figure PCTCN2017107971-appb-000001
在本应用场景下,获取目标广播的第一接收者队列的过程可以是,当广播管理模块检测到目标广播要发出时,在目标广播广播发出前,广播管理模块(如ActivityManagerService)识别目标广播的类型,然后根据目标广播的类型获取其对应的第一接收者队列。示例性的,以表1中的信息为例,广播管理模块检测到广播1将要发出,则根据广播1获取其对应的第一接收者队列为应用A、应用B、应用C、应用D和应用E。其中,ActivityManagerService在Android系统的广播机制中扮演着广播中心的角色,负责系统中所有广播的注册和发布操作,其中,广播的注册是指应用程序把广播接收器注册到ActivityManagerService的过程。广播的发布包括广播发送者将广播发送到ActivityManagerService,ActivityManagerService接收到这个广播以后在自己的注册中心查看有哪些广播接收器订阅了该广播,然后把这个广播逐一发送到这些广播接收器中。
步骤120,获取目标广播的访问级别。
其中,访问级别可以包括第一访问级别、第二访问级别和第三访问级别,第一访问级别、第二访问级别和第三访问级别指示目标广播的访问级别依次降低。在本应用场景下获取目标广播的访问级别的方法可以是:在固定周期时间段内,例如一天、两天或一周等,根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别;或者在固定周期时间段内,根据目标广播对应的历史超时时长确定目标广播的访问级别;或者在用户一天内的使用高峰时段中, 根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别;或者在用户一天内的使用高峰时段中,根据目标广播对应的历史超时时长确定目标广播的访问级别。
步骤130,根据访问级别和第一接收者队列,确定目标广播的第二接收者队列。
在本应用场景下,根据访问级别和第一接收者队列,确定目标广播的第二接收者队列的方法可以是:若目标广播的访问级别为第一访问级别,则在第一接收者队列中删除全部第三方应用;若目标广播的访问级别为第二访问级别,则在第一接收者队列中删除部分第三方应用;若目标广播的访问级别为第三访问级别,则将第一接收者队列确定为第二接收者队列。
在一些实施例中,若目标广播的访问级别为第二访问级别,则在第一接收者队列中删除部分第三方应用的方法可以是,删除第一接收者队列中前面或后面一定百分比数量的第三方应用,一定百分比可以是40%-60%之间的任意百分数,示例性的,以表1中的广播3为例,假设广播3的访问级别为第二访问级别,需要删除第一接收者队列中前40%的第三方应用,即将应用B和应用D删去,广播3将不发送至应用B和应用D,得到广播3的第二接收者队列为应用F、应用G和应用H。
步骤140,根据第二接收者队列发送目标广播。
本应用场景下,根据第二接收者队列发送目标广播的过程可以是,将目标广播依次发送至第二接收者队列中的第三方应用。示例性的,在步骤130中,得到广播3的第二接收者队列为应用F、应用G和应用H,则广播3将依次发送至应用F、应用G和应用H。
本实施例提供的技术方案,首先获取目标广播的第一接收者队列并获取目标广播的访问级别,然后根据访问级别和第一接收者队列,确定目标广播的第二接收者队列,最后根据第二接收者队列发送目标广播。使得目标广播可以根据其访问级别确定接收者,可以提高移动终端的系统性能及安全性,并降低系统的耗电量。
在一些实施例中,在本应用场景下,根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别。其中,频繁程度可以利用目标广播在固定周 期时间段内(一天、两天或者一周)或使用高峰时段内被第三方应用接收的次数范围进行衡量。示例性的,假如固定时间段为一天,根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别的方法可以是,如果目标广播在一天中被第三方应用接收的次数超过100次,则访问级别为第一访问级别,如果目标广播在一天中被第三方应用接收的次数在30-100次之间,则访问级别为第二访问级别,如果目标广播在一天中被第三方应用接收的次数小于30次,则访问级别为第三访问级别。
图2为本申请实施例提供的一种广播控制方法的流程图,如图2所示,在一些实施例中,步骤120包括:
步骤121,统计目标广播的接收者对应进程的历史超时时长。
其中进程的超时时长可以是超过进程预设时长的时间,例如目标广播对应进程的预设时长为0.3秒,而实际用时为0.5秒,则超时时长为0.2S。在本应用场景下,统计目标广播对应进程的历史超时时长的方法可以是,针对某一品牌某一型号的移动终端,在移动终端不同的使用时间内抽取一定数量的移动终端样本,将样本中每一台移动终端的目标广播对应进程在其第一接收者队列中每个接收者的历史超时时长累加得到一台移动终端中目标广播对应进程的历史超时时长,然后对所有样本求得的历史超时时长求平均值得到目标广播对应进程的历史超时时长。示例性的,针对OPPO-R9型号智能手机,在已经使用6个月以内的手机中抽取100台,在使用6-12个月的手机中抽取100台,在使用1-2年的手机中抽取100台,以表1中的广播2为例,分别计算着300台手机中广播2对应进程的历史超时时长,假设广播2对应进程的预设时长为0.2秒,某台手机中广播2在应用A中的进程时长为0.4秒、在应用C中的进程时长为0.25秒、在应用E中的进程时长为0.31秒、在应用F中的进程时长为0.35秒,则广播2在该台手机中的历史超时时长为0.61秒,同理,可计算出剩余299台手机中广播2对应进程的历史超时时长,最后计算300台手机中广播2对应进程的历史超时时长的平均值,即为OPPO-R9手机中广播2对应进程的历史超时时长。
步骤122,根据历史超时时长确定目标广播的访问级别。
在本应用场景下,根据历史超时时长确定目标广播的访问级别的方法可以 是,根据历史超时时长所在的时长范围确定目标广播的访问级别,示例性的,若历史超时时长大于1秒,则访问级别为第一访问级别,若历史超时时长在0.5-1秒之间,则访问级别为第二访问级别,若历史超时时长小于0.5秒,则访问级别为第三访问级别。
本实施例提供的技术方案,根据历史超时时长确定目标广播的访问级别,通过历史超时时长可判断目标广播占用系统资源的情况,从而确定其访问级别,可有效的减少系统时间延迟。
图3为本申请实施例提供的一种广播控制方法的流程图,如图3所示,在一些实施例中,在步骤130之后,还包括:
步骤150,根据第一接收者的运行参数对第二接收者队列进行调整,第一接收者为第一接收者队列中任意一个接收者,运行参数包括下述参数中的至少一个:启动参数、前后台参数、历史延时参数。
其中,第一接收者可以是第三方应用。启动参数可以包括已启动和未启动。前后台参数可以包括前台执行和后台执行。历史延时参数可以包括历史延时超过预设延时阈值和历史延时未超过预设延时阈值,或者,历史延时参数可以包括历史延时。如果历史延时参数包括历史延时,则根据历史延时和预设延时阈值确定历史延时是否超过预设延时阈值。其中,历史延时可以是第一接收者由于执行目标造成进程延迟的历史延时时长,该进程延迟可以是执行目标广播消息的延时时长,也可以是由于执行目标广播消息造成其他进程延时的延时时长。预设延时阈值的确定方法可以是,统计N个移动终端中相同第一接收者在接收目标广播对应进程的历史延时时长,求取N个历史延时时长的平均值作为预设延时阈值,其中,N为大于等于2的整数。预设延时阈值还可以由用户自定义预设延时阈值。可选的,预设延时阈值大于0秒小于60秒,在一些实施例中以10秒为例。
在一些实施例中,在本应用场景下,根据第一接收者的运行参数对第二接收者队列进行调整的方法可以是,如果第二接收者队列包含第一接收者,且第一接收者的启动参数为未启动,则将第一接收者从第二接收者队列中移除。如果第二接收者队列包含第一接收者,且第一接收者的启动参数为已启动,则将第一接收者保留在第二接收者队列中,示例性的,以表1为例,广播3的第一 接收者队列为应用B、应用D、应用F、应用G和应用H,假设第二接收者队列为应用B、应用G和应用F,应用F的启动参数是未启动。由于应用F位于第二接收者队列且未启动,因此将应用F从广播3的第二接收者队列中移除,调整后的第二接收者队列为应用B和应用G。根据第一接收者的运行参数对第二接收者队列进行调整的方法可以是,如果第二接收者队列未包含第一接收者,且第一接收者的前后台参数为前台执行,则将第一接收者添加到第二接收者队列中。如果第二接收者队列未包含第一接收者,且第一接收者的前后台参数为后台执行,则第一接收者不添加到第二接收者队列中。根据第一接收者的运行参数对第二接收者队列进行调整的方法还可以是,如果第二接收者队列包含第一接收者,且第一接收者的历史延时参数超过预设延时阈值,则将第一接收者从第二接收者队列中移除。如果第二接收者队列包含第一接收者,且第一接收者的历史延时参数未超过预设延时阈值,则将第一接收者保留在第二接收者队列中。
在一些实施例中,在本应用场景下,根据第一接收者的运行参数对第二接收者队列进行调整的方法可以是,从目标广播的第一接收者队列中获取第一接收者,如果目标广播的第二接收者队列包含第一接收者,获取第一接收者的启动参数,若第一接收者的启动参数为未启动,则将第一接收者从第二接收者队列中移除,若第一接收者的启动参数为已启动,获取第一接收者的前后台参数,若第一接收者的前后台参数为前台执行,则将第一接收者保留在第二接收者队列中,若第一接收者的前后台参数为后台执行,则获取第一接收者的历史延时参数,若第一接收者的历史延时参数为超过预设延时阈值,则将第一接收者从第二接收者队列中移除,若第一接收者的历史延时参数为未超过预设延时阈值,则将第一接收者保留在第二接收者队列中。如果目标广播的第二接收者队列未包含第一接收者,获取第一接收者的前后台参数,若第一接收者的前后台参数为前台执行,则将第一接收者添加到第二接收者队列中,若第一接收者的前后台参数为后台执行,则第一接收者不添加到第二接收者队列中。
步骤160,根据调整后的第二接收者队列发送目标广播。
示例性的,在步骤150中,广播3调整后的第二接收者队列为应用B和应用G,则广播3依次发送至应用B和应用G。
本实施例的技术方案,首先根据第一接收者的运行参数对第二接收者队列进行调整,然后根据调整后的第二接收者队列发送目标广播。能够根据第一接收者的实际运行情况对第一队列进行优化,提高目标广播的接收者队列(第二接收者队列)的可靠性。
图4为本申请实施例提供的一种广播控制方法的流程图,如图4所示,在一些实施例中,步骤140包括:
步骤141,根据用户行为记录确定使用高峰时段。
其中,使用高峰时段可以是在预设周期内用户使用移动终端的高峰时段,预设周期可以是1天、一周或一个月,示例性的,假设预设周期是1天,移动终端统计分析出在最近一个月内用户每天在19点-21点之间连续使用移动终端的时间超过1个小时,则将19点-21点确定为使用高峰时段。假设预设周期是一周,移动终端统计分析出在最近半年内,用户每周四连续使用移动终端的时间超过5个小时,则将周四确定为使用高峰时段。
步骤142,如果当前时刻属于使用高峰时段,则根据第二接收者队列发送目标广播。
如果当前时刻大于使用高峰时段的起始时间,且小于使用高峰时段的结束时间,则确定当前时刻属于使用高峰时段。
示例性的,统计高峰时段的预设周期为1天,确定的使用高峰段为19点-21点,用户当前使用移动终端的时刻为20点,则目标广播根据第二接收者队列进行发送,如果用户当前使用移动终端的时刻不在19点-21点之间,则目标广播根据第一接收者队列进行发送。
本实施例的技术方案,根据用户行为记录确定使用高峰时段,如果当前时刻属于使用高峰时段,则根据第二接收者队列发送目标广播。本方案可以实现用户在使用移动终端的高峰时段对广播进行控制,可以提高移动终端的资源利用率。
图5为本申请实施例提供的一种广播控制方法的流程图,作为对上述实施例的进一步说明,包括:
步骤201,获取目标广播的第一接收者队列。
移动终端在运行过程中,系统中时刻进行着广播的发送与接收,广播管理 模块监控着所有广播的收发动态,当一个目标广播发送之前,广播管理模块首先获取其第一接收者队列,从而将目标广播分发至第一接收者队列中的接收者.
步骤202,根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别。
或者,步骤203,根据历史超时时长确定目标广播的访问级别。
在使用高峰时段中,根据目标广播被第三方应用接收的频繁程度或者历史超时时长确定目标广播的访问级别,可以将不同访问级别的广播按照级别高低保存为不同访问级别广播名单,以在后续步骤中直接使用。
步骤204,若目标广播的访问级别为第一访问级别,则在第一接收者队列中删除全部第三方应用形成第二接收者队列;若目标广播的访问级别为第二访问级别,则在第一接收者队列中删除部分第三方应用形成第二接收者队列;若目标广播的访问级别为第三访问级别,则将第一接收者队列确定为第二接收者队列。
步骤205,根据第一接收者的运行参数对第二接收者队列进行调整。
步骤206,根据用户行为记录确定使用高峰时段。
根据移动终端用户的使用习惯即行为记录确定该移动终端的使用高峰时段。
步骤207,如果当前时刻属于所述使用高峰时段,则根据第二接收者队列发送所述目标广播。
广播管理模块按照确定的第二接收者队列将目标广播分发出去。
图6本申请实施例提供的一种广播控制装置的结构示意图,如图5所示,该装置包括:第一接收者队列获取模块310,访问级别获取模块320,第二接收者队列确定模块330和目标广播发送模块340。
第一接收者队列获取模块310,用于获取目标广播的第一接收者队列;
访问级别获取模块320,用于获取目标广播的访问级别;
第二接收者队列确定模块330,用于根据访问级别和第一接收者队列,确定目标广播的第二接收者队列;
目标广播发送模块340,用于根据第二接收者队列发送目标广播。
在一些实施例中,访问级别获取模块320,还用于:
根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别。
在一些实施例中,访问级别获取模块320,还用于:
统计目标广播的接收者对应进程的历史超时时长;
根据历史超时时长确定目标广播的访问级别。
在一些实施例中,第二接收者队列确定模块330,还用于:
若目标广播的访问级别为第一访问级别,则在第一接收者队列中删除全部第三方应用;
若目标广播的访问级别为第二访问级别,则在第一接收者队列中删除部分第三方应用;
若目标广播的访问级别为第三访问级别,则将第一接收者队列确定为第二接收者队列;其中,第一访问级别、第二访问级别、第三访问级别依次降低。
在一些实施例中,还包括:
第二接收者队列调整模块,用于根据第一接收者的运行参数对第二接收者队列进行调整,第一接收者为第一接收者队列中任意一个接收者,运行参数包括下述参数中的至少一个:启动参数、前后台参数、历史延时参数;
目标广播发送模块,还用于根据调整后的第二接收者队列发送目标广播。
在一些实施例中,第二接收者队列调整模块,还用于:
如果第二接收者队列包含第一接收者,且第一接收者的启动参数为未启动,则将第一接收者从第二接收者队列中移除;或者,
如果第二接收者队列未包含第一接收者,且第一接收者的前后台参数为前台执行,则将第一接收者添加到第二接收者队列中;或者,
如果第二接收者队列包含第一接收者,且第一接收者的历史延时参数超过预设延时阈值,则将第一接收者从第二接收者队列中移除。
在一些实施例中,目标广播发送模块340,还用于:
根据用户行为记录确定使用高峰时段;
如果当前时刻属于使用高峰时段,则根据第二接收者队列发送目标广播。
上述装置可执行本申请前述所有实施例所提供的方法,具备执行上述方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本 申请前述所有实施例所提供的方法。
图7为本申请实施例提供的一种移动终端的结构示意图,如图7所示,该移动终端可以包括:壳体(图中未示出)、存储器801、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、存储在存储器801上并可在处理器802上运行的计算机程序、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器801,用于存储可执行程序代码;所述CPU802通过读取所述存储器801中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行:获取目标广播的第一接收者队列;获取目标广播的访问级别;根据访问级别和第一接收者队列,确定目标广播的第二接收者队列;根据第二接收者队列发送目标广播。
所述移动终端还包括:外设接口803、RF(Radio Frequency,射频)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(I/O)子系统809、触摸屏812、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。
应该理解的是,图示移动终端800仅仅是移动终端的一个范例,并且移动终端800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于实现广播控制功能的移动终端进行详细的描述,该移动终端以手机为例。
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例 如触摸屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
其中,按照触摸屏的工作原理和传输信息的介质分类,触摸屏812可以为电阻式、电容感应式、红外线式或表面声波式。按照安装方式分类,触摸屏812可以为:外挂式、内置式或整体式。按照技术原理分类,触摸屏812可以为:矢量压力传感技术触摸屏、电阻技术触摸屏、电容技术触摸屏、红外线技术触摸屏或表面声波技术触摸屏。
触摸屏812,所述触摸屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。可选的,触摸屏812将用户在触屏幕上触发的电信号(如接触面的电信号),发送给处理器802。
I/O子系统809中的显示控制器8091从触摸屏812接收电信号或者向触摸屏812发送电信号。触摸屏812检测触摸屏上的接触,显示控制器8091将检测到的接触转换为与显示在触摸屏812上的用户界面对象的交互,即实现人机交互,显示在触摸屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路805,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。
音频电路806,主要用于从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。
扬声器811,用于将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片808,用于为CPU802、I/O子系统及外设接口所连接的硬件 进行供电及电源管理。
在本实施例中,中央处理器802用于:
获取目标广播的第一接收者队列;
获取目标广播的访问级别;
根据访问级别和第一接收者队列,确定目标广播的第二接收者队列;
根据第二接收者队列发送目标广播。
进一步地,获取目标广播的访问级别,包括:
根据目标广播被第三方应用接收的频繁程度确定目标广播的访问级别。
进一步地,获取目标广播的访问级别,包括:
统计目标广播的接收者对应进程的历史超时时长;
根据历史超时时长确定目标广播的访问级别。
进一步地,根据访问级别和第一接收者队列,确定目标广播的第二接收者队列,包括:
若目标广播的访问级别为第一访问级别,则在第一接收者队列中删除全部第三方应用;
若目标广播的访问级别为第二访问级别,则在第一接收者队列中删除部分第三方应用;
若目标广播的访问级别为第三访问级别,则将第一接收者队列确定为第二接收者队列;其中,第一访问级别、第二访问级别、第三访问级别依次降低。
进一步地,在确定目标广播的第二接收者队列之后,还包括:
根据第一接收者的运行参数对第二接收者队列进行调整,第一接收者为第一接收者队列中任意一个接收者,运行参数包括下述参数中的至少一个:启动参数、前后台参数、历史延时参数;
根据调整后的第二接收者队列发送目标广播。
进一步地,根据第一接收者的运行参数对第二接收者队列进行调整,包括:
如果第二接收者队列包含第一接收者,且第一接收者的启动参数为未启动,则将第一接收者从第二接收者队列中移除;或者,
如果第二接收者队列未包含第一接收者,且第一接收者的前后台参数为前台执行,则将第一接收者添加到第二接收者队列中;或者,
如果第二接收者队列包含第一接收者,且第一接收者的历史延时参数超过预设延时阈值,则将第一接收者从第二接收者队列中移除。
进一步地,根据第二接收者队列发送目标广播,包括:
根据用户行为记录确定使用高峰时段;
如果当前时刻属于使用高峰时段,则根据第二接收者队列发送目标广播。
需要说明的是,移动终端还可以包括摄像头、蓝牙模块等,在此不再赘述。
本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序使得计算机执行上述任一实施例所述的广播控制方法。
需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于计算机可读存储介质中,存储介质可以包括:只读存储器(ROM,Read Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。
注意,上述仅为本申请的较佳实施例及所运用技术原理。本领域技术人员会理解,本申请不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本申请的保护范围。因此,虽然通过以上实施例对本申请进行了较为详细的说明,但是本申请不仅仅限于以上实施例,在不脱离本申请构思的情况下,还可以包括更多其他等效实施例,而本申请的范围由所附的权利要求范围决定。

Claims (20)

  1. 一种广播控制方法,其中,包括:
    获取目标广播的第一接收者队列;
    获取所述目标广播的访问级别;
    根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
    根据所述第二接收者队列发送所述目标广播。
  2. 根据权利要求1所述的广播控制方法,其中,所述获取所述目标广播的访问级别,包括:
    根据所述目标广播被第三方应用接收的频繁程度确定所述目标广播的访问级别。
  3. 根据权利要求1所述的广播控制方法,其中,所述获取所述目标广播的访问级别,包括:
    统计所述目标广播的接收者对应进程的历史超时时长;
    根据所述历史超时时长确定所述目标广播的访问级别。
  4. 根据权利要求1所述的广播控制方法,其中,所述根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列,包括:
    若所述目标广播的访问级别为第一访问级别,则在所述第一接收者队列中删除全部第三方应用;
    若所述目标广播的访问级别为第二访问级别,则在所述第一接收者队列中删除部分第三方应用;
    若所述目标广播的访问级别为第三访问级别,则将所述第一接收者队列确定为第二接收者队列;其中,所述第一访问级别、所述第二访问级别、所述第三访问级别依次降低。
  5. 根据权利要求1或4所述的广播控制方法,其中,在确定所述目标广播的第二接收者队列之后,还包括:
    根据第一接收者的运行参数对所述第二接收者队列进行调整,所述第一接收者为所述第一接收者队列中任意一个接收者,所述运行参数包括下述参数中 的至少一个:启动参数、前后台参数、历史延时参数;
    根据调整后的第二接收者队列发送所述目标广播。
  6. 根据权利要求5所述的广播控制方法,其中,所述根据第一接收者的运行参数对所述第二接收者队列进行调整,包括:
    如果第二接收者队列包含第一接收者,且所述第一接收者的启动参数为未启动,则将所述第一接收者从所述第二接收者队列中移除;或者,
    如果第二接收者队列未包含第一接收者,且所述第一接收者的前后台参数为前台执行,则将所述第一接收者添加到所述第二接收者队列中;或者,
    如果第二接收者队列包含第一接收者,且所述第一接收者的历史延时参数超过预设延时阈值,则将所述第一接收者从所述第二接收者队列中移除。
  7. 根据权利要求1所述的广播控制方法,其中,所述根据所述第二接收者队列发送所述目标广播,包括:
    根据用户行为记录确定使用高峰时段;
    如果当前时刻属于所述使用高峰时段,则根据所述第二接收者队列发送所述目标广播。
  8. 根据权利要求1所述的广播控制方法,其中,所述获取目标广播的第一接收者队列的步骤,包括:
    当广播管理模块检测到目标广播要发出时,在目标广播广播发出前,广播管理模块识别目标广播的类型,根据目标广播的类型获取其对应的第一接收者队列。
  9. 根据权利要求1所述的广播控制方法,其中,所述根据第二接收者队列发送目标广播的步骤,包括:
    将所述目标广播依次发送至第二接收者队列中的第三方应用。
  10. 一种广播控制装置,其中,包括:
    第一接收者队列获取模块,用于获取目标广播的第一接收者队列;
    访问级别获取模块,用于获取所述目标广播的访问级别;
    第二接收者队列确定模块,用于根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
    目标广播发送模块,用于根据所述第二接收者队列发送所述目标广播。
  11. 根据权利要求10所述的广播控制装置,其中,所述访问级别获取模块,还用于:
    根据所述目标广播被第三方应用接收的频繁程度确定所述目标广播的访问级别。
  12. 根据权利要求10所述的广播控制装置,其中,所述访问级别获取模块,还用于:
    统计所述目标广播的接收者对应进程的历史超时时长;
    根据所述历史超时时长确定所述目标广播的访问级别。
  13. 根据权利要求10所述的广播控制装置,其中,所述第二接收者队列确定模块,还用于:
    若所述目标广播的访问级别为第一访问级别,则在所述第一接收者队列中删除全部第三方应用;
    若所述目标广播的访问级别为第二访问级别,则在所述第一接收者队列中删除部分第三方应用;
    若所述目标广播的访问级别为第三访问级别,则将所述第一接收者队列确定为第二接收者队列;其中,所述第一访问级别、所述第二访问级别、所述第三访问级别依次降低。
  14. 根据权利要求10所述的广播控制装置,其中,还包括:
    第二接收者队列调整模块,用于根据第一接收者的运行参数对所述第二接收者队列进行调整,所述第一接收者为所述第一接收者队列中任意一个接收者,所述运行参数包括下述参数中的至少一个:启动参数、前后台参数、历史延时参数;
    所述目标广播发送模块,还用于根据调整后的第二接收者队列发送所述目标广播。
  15. 根据权利要求14所述的广播控制装置,其中,所述第二接收者队列调整模块,还用于:
    如果第二接收者队列包含第一接收者,且所述第一接收者的启动参数为未启动,则将所述第一接收者从所述第二接收者队列中移除;或者,
    如果第二接收者队列未包含第一接收者,且所述第一接收者的前后台参数 为前台执行,则将所述第一接收者添加到所述第二接收者队列中;或者,
    如果第二接收者队列包含第一接收者,且所述第一接收者的历史延时参数超过预设延时阈值,则将所述第一接收者从所述第二接收者队列中移除。
  16. 根据权利要求10所述的广播控制装置,其中,所述目标广播发送模块,还用于:
    根据用户行为记录确定使用高峰时段;
    如果当前时刻属于所述使用高峰时段,则根据所述第二接收者队列发送所述目标广播。
  17. 一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:
    获取目标广播的第一接收者队列;
    获取所述目标广播的访问级别;
    根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列;
    根据所述第二接收者队列发送所述目标广播。
  18. 根据权利要求17所述的移动终端,其中,所述根据所述访问级别和所述第一接收者队列,确定所述目标广播的第二接收者队列,包括:
    若所述目标广播的访问级别为第一访问级别,则在所述第一接收者队列中删除全部第三方应用;
    若所述目标广播的访问级别为第二访问级别,则在所述第一接收者队列中删除部分第三方应用;
    若所述目标广播的访问级别为第三访问级别,则将所述第一接收者队列确定为第二接收者队列;其中,所述第一访问级别、所述第二访问级别、所述第三访问级别依次降低。
  19. 根据权利要求17所述的移动终端,其中,在确定所述目标广播的第二接收者队列之后,还包括:
    根据第一接收者的运行参数对所述第二接收者队列进行调整,所述第一接收者为所述第一接收者队列中任意一个接收者,所述运行参数包括下述参数中的至少一个:启动参数、前后台参数、历史延时参数;
    根据调整后的第二接收者队列发送所述目标广播。
  20. 一种存储介质,其中,所述存储介质中存储有计算机程序,所述计算机程序使得计算机执行如权利要求1至9任一项所述的广播控制方法。
PCT/CN2017/107971 2017-03-10 2017-10-27 广播控制方法、装置及移动终端、存储介质 WO2018161607A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710144317.6A CN106951333A (zh) 2017-03-10 2017-03-10 一种广播控制方法、装置及移动终端
CN201710144317.6 2017-03-10

Publications (1)

Publication Number Publication Date
WO2018161607A1 true WO2018161607A1 (zh) 2018-09-13

Family

ID=59466804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107971 WO2018161607A1 (zh) 2017-03-10 2017-10-27 广播控制方法、装置及移动终端、存储介质

Country Status (2)

Country Link
CN (1) CN106951333A (zh)
WO (1) WO2018161607A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951333A (zh) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 一种广播控制方法、装置及移动终端
WO2019028680A1 (zh) * 2017-08-08 2019-02-14 华为技术有限公司 一种广播事件处理方法及设备
CN107968881A (zh) * 2017-11-22 2018-04-27 珠海市魅族科技有限公司 终端设备广播处理方法及装置、终端设备及存储介质
CN110213443B (zh) * 2019-05-30 2021-11-02 努比亚技术有限公司 防止第三方桌面应用自启动方法、移动终端及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595547A (zh) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 智能设备的广播拦截方法和装置
CN105208590A (zh) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 移动终端操作系统卡顿异常的检测恢复方法及移动终端
CN106095064A (zh) * 2016-06-16 2016-11-09 惠州Tcl移动通信有限公司 一种移动终端禁止应用接收特定广播的方法及系统
CN106201740A (zh) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 一种广播消息管理方法、装置及设备
CN106951333A (zh) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 一种广播控制方法、装置及移动终端

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601341B (zh) * 2014-12-30 2018-01-19 广东欧珀移动通信有限公司 一种广播拦截方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595547A (zh) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 智能设备的广播拦截方法和装置
CN105208590A (zh) * 2015-08-17 2015-12-30 广东欧珀移动通信有限公司 移动终端操作系统卡顿异常的检测恢复方法及移动终端
CN106095064A (zh) * 2016-06-16 2016-11-09 惠州Tcl移动通信有限公司 一种移动终端禁止应用接收特定广播的方法及系统
CN106201740A (zh) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 一种广播消息管理方法、装置及设备
CN106951333A (zh) * 2017-03-10 2017-07-14 广东欧珀移动通信有限公司 一种广播控制方法、装置及移动终端

Also Published As

Publication number Publication date
CN106951333A (zh) 2017-07-14

Similar Documents

Publication Publication Date Title
WO2019120028A1 (zh) 屏幕亮度的智能调节方法、装置、存储介质及移动终端
WO2018161607A1 (zh) 广播控制方法、装置及移动终端、存储介质
CN107835033B (zh) 天线调谐开关的控制方法、装置、终端设备及存储介质
US11849399B2 (en) Method for reducing power consumption of terminal, and terminal
CN106851014B (zh) 调整广播消息队列的方法、装置及终端
CN111447074A (zh) 群组会话中的提醒方法、装置、设备及介质
EP3592004A1 (en) Broadcast processing method, device, storage medium and terminal device
CN106936825B (zh) 一种控制广播发送的方法、装置及移动终端
US11086697B2 (en) Broadcast-controlling method in operating system and mobile terminal
CN106817753B (zh) 一种切换背景灰阶进行省电的方法、装置及移动终端
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
WO2021208626A1 (zh) 一种应用保活方法、装置和电子设备
US20210120118A1 (en) Method for establishing communication connection and related products
CN107070670B (zh) 控制广播发送者发送广播消息的方法、装置和终端设备
CN106921947B (zh) 调整广播消息队列的方法、装置及终端
WO2018161963A1 (zh) 广播接收者的管理方法、装置及终端
CN106851015B (zh) 调整广播消息队列的方法、装置及终端
CN109165114B (zh) 应用程序无响应的处理方法、装置、存储介质及智能终端
CN106776259B (zh) 一种移动终端帧率检测方法、装置及移动终端
EP3591947A1 (en) Broadcast receiver queue adjustment method, apparatus, storage medium, and electronic device
WO2018161966A1 (zh) 广播发送方法、装置、终端及存储介质
WO2018161956A1 (zh) 广播接收者的调整方法、装置及终端
CN107479744B (zh) 调整触摸屏调度优先级的方法、装置、终端及存储介质
WO2018161609A1 (zh) 一种广播接收者的控制方法、装置及移动终端、存储介质
WO2018161955A1 (zh) 一种广播接收者的控制方法、装置及移动终端

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: 17899329

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17899329

Country of ref document: EP

Kind code of ref document: A1