CN106851014B - Method, device and terminal for adjusting broadcast message queue - Google Patents

Method, device and terminal for adjusting broadcast message queue Download PDF

Info

Publication number
CN106851014B
CN106851014B CN201710140649.7A CN201710140649A CN106851014B CN 106851014 B CN106851014 B CN 106851014B CN 201710140649 A CN201710140649 A CN 201710140649A CN 106851014 B CN106851014 B CN 106851014B
Authority
CN
China
Prior art keywords
broadcast
broadcast message
message queue
current
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710140649.7A
Other languages
Chinese (zh)
Other versions
CN106851014A (en
Inventor
裴润升
付亮晶
林志泳
吴汝煜
张俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710140649.7A priority Critical patent/CN106851014B/en
Publication of CN106851014A publication Critical patent/CN106851014A/en
Priority to PCT/CN2017/106770 priority patent/WO2018161580A1/en
Application granted granted Critical
Publication of CN106851014B publication Critical patent/CN106851014B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a method, a device and a terminal for adjusting a broadcast message queue. The method comprises the following steps: determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue; counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue; and when the number of the same broadcast messages exceeds a preset threshold value, carrying out deletion adjustment on the same broadcast messages in the current broadcast message queue. The method for adjusting the broadcast message queue provided by the embodiment of the invention judges whether the broadcast message is received in an over-frequency mode or not by counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue, and deletes and adjusts the same broadcast messages, thereby effectively avoiding the broadcast blocking phenomenon and the system pause phenomenon caused by the high-frequency reception of the broadcast messages and reducing the influence of the broadcast on the system performance.

Description

Method, device and terminal for adjusting broadcast message queue
Technical Field
The present invention relates to system broadcast technologies, and in particular, to a method, an apparatus, and a terminal for adjusting a broadcast message queue.
Background
The Android (Android) system is an operating system of a mobile phone and other terminals which are widely applied at present. In the Android system, a plurality of different application programs exist, in order to rapidly transmit information in the different application programs, the Android system is realized by using a broadcasting mechanism, and when a message needs to be notified to the different application programs, the message is sent to the different application programs through broadcasting.
In the Android system, the broadcast messages sent by broadcast senders are not limited, so that one broadcast sender can send any number of broadcasts at will or send broadcasts very frequently, and the broadcast messages to be processed in a broadcast message queue are very much, so that the processing speed is slowed down, the broadcast messages are blocked, and the normal operation of the system is influenced.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a terminal for adjusting a broadcast message queue, which can avoid the blockage of broadcast messages and reduce the influence of broadcasting on the system performance.
In a first aspect, an embodiment of the present invention provides a method for adjusting a broadcast message queue, where the method includes:
determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
and when the number of the same broadcast messages exceeds a preset threshold value, carrying out deletion adjustment on the same broadcast messages in the current broadcast message queue.
In a second aspect, an embodiment of the present invention further provides an apparatus for adjusting a broadcast message queue, where the apparatus includes:
a receiver determining module, configured to determine a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
the quantity counting module is used for counting the quantity of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
and the message adjusting module is used for deleting and adjusting the same broadcast messages in the current broadcast message queue when the number of the same broadcast messages exceeds a preset threshold value.
In a third aspect, an embodiment of the present invention further provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the following steps when executing the computer program:
determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
and when the number of the same broadcast messages exceeds a preset threshold value, carrying out deletion adjustment on the same broadcast messages in the current broadcast message queue.
The method for adjusting the broadcast message queue provided by the embodiment of the invention judges whether the broadcast message is received in an over-frequency mode or not by counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue, and deletes and adjusts the same broadcast messages, thereby effectively avoiding the broadcast blocking phenomenon and the system pause phenomenon caused by the high-frequency reception of the broadcast messages and reducing the influence of the broadcast on the system performance.
Drawings
Fig. 1 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for adjusting a queue of broadcast messages according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method for adjusting a queue of broadcast messages according to an embodiment of the present invention;
FIG. 4 is a flow chart of a method for adjusting a queue of broadcast messages according to an embodiment of the present invention;
fig. 5 is a block diagram illustrating an apparatus for adjusting a broadcast message queue according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method is applicable to a case of adjusting a broadcast message queue, and the method may be implemented by a device for adjusting a broadcast message queue, where the device may be implemented by software and/or hardware, the device may be integrated in a terminal, and the terminal may be a smart phone, a tablet computer, or the like, as shown in fig. 1, where the method includes:
step 101, determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue.
The broadcast mechanism is essentially a communication method between components in the operating system of the terminal, and is a mechanism widely used for transmitting messages between application programs. For example, under the android system of the terminal, after some operations are completed, a broadcast message is sent. The broadcast message may be a variety of event message data generated in the operating system. For example, a short message is sent or a call is made, both of which send a broadcast, and when an application receives the broadcast, corresponding processing can be performed. The broadcast mechanism includes three basic elements: the system includes a broadcast for sending the broadcast, a broadcast receiver for receiving the broadcast, and intention content, wherein the broadcast receiver can tell the system what type of broadcast is interested in by calling a function, and register the broadcast receiver with the system in order to have permission to receive the type of broadcast message. The intention content is used for a medium that holds broadcast-related information. The broadcast is called broadcast because it has some similarities with the broadcast of a radio station in the conventional sense, because the sender is responsible for sending only, and does not care whether the receiver receives the message data or not, nor does it care how the receiver processes the message data. In addition, the broadcast may be received by more than one application or may not be received by any application.
The broadcast message queue refers to a queue form formed by sequentially enqueuing the broadcast messages according to the sequence of the broadcast time. The broadcast message queue may be a default broadcast queue or a third party application broadcast queue. Illustratively, the broadcast message queue may be a queue formed by system broadcasts including a bright screen broadcast, an unlock broadcast, a network status change broadcast, a bluetooth status change broadcast, a switching language broadcast, a switching theme broadcast, and the like, or a queue formed by broadcasts sent by third-party application software. A current broadcast message queue may be understood as a broadcast message queue that is formed by all non-distributed broadcast messages before a time node, which is the current point in time. The broadcast receivers corresponding to the broadcast messages may be determined in sequence in the current broadcast message queue. The broadcast receiver may be determined, for example, by looking up a receiver list of broadcast receivers for which the broadcast message has been registered.
In the Android system, the activityManagerservice is a broadcast center in a broadcast mechanism of the Android system and is responsible for registration and release operations of all broadcasts in the system, wherein the registration of the broadcasts refers to a process of registering a broadcast receiver in the activityManagerservice by an application program. The distribution of the broadcast includes the broadcast sender sending the broadcast to an activiymanagervice, which, after receiving the broadcast, checks in its own registry which broadcast receivers subscribe to the broadcast, and then sends the broadcast one by one to the broadcast receivers.
Step 102, counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue.
The broadcast messages may be named when the broadcast messages are established, and the same broadcast messages may be broadcast messages with the same name. For example, a plurality of broadcast messages each named "bright screen broadcast" may be referred to as the same broadcast message. Over a period of time, there may be multiple broadcast messages, some of which are identical, for the same broadcast recipient. Counting the number of the same broadcast messages received by the same broadcast receiver can determine whether the broadcast is frequently transmitted.
And 103, when the number of the same broadcast messages exceeds a preset threshold value, performing deletion adjustment on the same broadcast messages in the current broadcast message queue.
The number of the same broadcast messages to be received by the same broadcast receiver can be obtained through statistics, and the number is compared with a preset threshold value to judge whether the same broadcast messages are frequently received by the same broadcast receiver. It may be determined that the broadcast message is frequently transmitted to the broadcast receiver when the counted number is greater than a preset threshold. And further, the broadcast which is frequently received can be subjected to deletion adjustment processing, so that the condition that the broadcast is blocked due to excessive broadcast and the transmission of other broadcast messages is influenced is avoided. While infrequently received broadcasts may not be processed.
The method for adjusting the broadcast message queue provided by the embodiment of the invention judges whether the broadcast message is received in an over-frequency mode or not by counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue, and deletes and adjusts the same broadcast messages, thereby effectively avoiding the broadcast blocking phenomenon and the system pause phenomenon caused by the high-frequency reception of the broadcast messages and reducing the influence of the broadcast on the system performance.
Fig. 2 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention. The method of the embodiment comprises the following steps:
step 201, determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue.
Step 202, counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue.
Step 203, when the number of the same broadcast messages exceeds a preset threshold, reserving a preset number of later enqueued broadcast messages in the same broadcast messages in the current broadcast message queue according to the enqueuing sequence, and removing the broadcast messages before the preset number of broadcast messages.
And judging whether the same broadcast messages corresponding to the same broadcast receiver are transmitted in an overclocking mode or not according to the number of the same broadcast messages. For broadcast messages that are transmitted over-frequently, only a preset number of broadcast messages that are enqueued later are retained, with reference to the order of initial enqueuing, to reduce the frequency of such broadcast messages. Illustratively, the preset number threshold is set to 2, and taking application a as a broadcast receiver, the number of the same broadcast messages is 4, and according to the enqueue order, the 2 broadcast messages enqueued later are retained, and all the remaining broadcast messages are removed, so as to reduce the frequency of the broadcast messages. The preset number can be set by considering relevant parameters such as the response speed of the terminal, the size of the memory space and the like, and is used for representing the measurement standard of the broadcast message overclocking.
Preferably, the preset number is determined according to the length of the current broadcast message queue.
The preset number can be a number value which can avoid the problem of broadcast message blocking, can be determined by referring to the length of the broadcast message queue, and can be adjusted at any time according to the number of all queued broadcast messages in the current broadcast message queue, so that the system can be ensured to avoid the pause phenomenon, the number of the broadcast messages received by the broadcast receiver can be ensured to the maximum extent, and the loss of the broadcast messages is properly reduced.
The method for adjusting the broadcast message queue provided by the embodiment of the invention judges whether the broadcast message is transmitted in an over-frequency mode or not by counting the number of the same broadcast messages corresponding to the same broadcast receiver, and adjusts the broadcast message by adopting an adjusting method of only reserving a preset number of the broadcast messages queued later in the broadcast message queue corresponding to the same broadcast message receiver when the broadcast message is transmitted in the over-frequency mode. Meanwhile, the method ensures that the late-enqueued broadcast messages are smoothly distributed, reserves the latest broadcast messages in the same broadcast messages, and avoids the loss of new broadcast messages.
Fig. 3 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention.
The method of the embodiment comprises the following steps:
step 301, determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue.
Step 302, count the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue.
Step 303, when the number of the same broadcast messages exceeds a preset threshold, performing a deletion adjustment on the same broadcast messages in the current broadcast message queue.
And step 304, identifying the broadcast receiver of the current broadcast message according to the adjusted queuing sequence of the broadcast messages in the current broadcast message queue.
Step 305, distributing the current broadcast message to a corresponding broadcast receiver.
The same broadcast messages in the broadcast message queue are adjusted to form a new queuing sequence, and the broadcast receivers of the current broadcast messages can be sequentially identified according to the queuing sequence of the new queue. Or, the broadcast receiver corresponding to the adjusted broadcast message to be distributed may be identified from the broadcast receivers determined in step 301, and then the current broadcast message may be sequentially distributed to the corresponding broadcast receivers. Illustratively, the adjusted queues are a1, a4, B1 and C in sequence, the broadcast message to be distributed currently is a1, and the broadcast receivers of the broadcast message are identified as application D, application E and application F, then a1 is distributed to application D, application E and application F, respectively, so that the distribution process of the broadcast message a1 is completed, and then a4 is distributed.
The method for adjusting the broadcast message queue provided by the embodiment of the invention judges whether the broadcast message is received in an over-frequency mode or not by counting the number of the same broadcast messages corresponding to the same broadcast receiver, and performs deletion adjustment on the same broadcast message, thereby effectively avoiding the broadcast blocking phenomenon and the system pause phenomenon caused by the high-frequency reception of the broadcast message and reducing the influence of the broadcast on the system performance. After the broadcast receiver of the broadcast message to be distributed currently is identified, the broadcast messages in the adjusted broadcast message queue are distributed in sequence according to the queuing sequence, so that the ordered distribution of the broadcast messages is ensured. The broadcast receiver can be ensured to respond to the broadcast message in time, and the phenomenon that important broadcast messages are not responded by people can be avoided.
Fig. 4 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention. The method of the embodiment comprises the following steps:
step 401, determining broadcast receivers registered to receive the broadcast messages in the broadcast message queue respectively;
step 402, determining a corresponding broadcast receiver according to the broadcast receiver.
If the broadcast receiver wants to have the authority of receiving a broadcast message of a certain broadcast, the broadcast receiver corresponding to the broadcast message needs to be registered with the system, so that the broadcast receiver corresponding to the broadcast message can be determined by determining the broadcast receiver which is registered to receive the broadcast message in the broadcast message queue.
Step 403, counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue.
And step 404, when the number of the same broadcast messages exceeds a preset threshold, performing deletion adjustment on the same broadcast messages in the current broadcast message queue.
The method for adjusting the broadcast message queue provided by the embodiment of the invention can more accurately determine the broadcast receiver corresponding to the broadcast message by determining the mode of registering the broadcast receiver for receiving the broadcast message in the broadcast message queue. The method can more accurately count the number of the same broadcast messages corresponding to the same broadcast receiver, delete and adjust the over-frequency same broadcast messages, effectively avoid the broadcast blocking phenomenon and the system pause phenomenon caused by receiving the broadcast messages at high frequency, and reduce the influence of the broadcast on the system performance.
Fig. 5 is a block diagram of an apparatus for adjusting a broadcast message queue according to an embodiment of the present invention, which may be implemented by software and/or hardware, and may be generally integrated in a terminal, and may control a broadcast message in the terminal by performing a method for adjusting the broadcast message queue. As shown in fig. 5, the apparatus includes a recipient determination module 501, a quantity statistics module 502, and a message adjustment module 503.
A receiver determining module 501, configured to determine a broadcast receiver corresponding to a broadcast message in a current broadcast message queue;
a quantity counting module 502, configured to count the quantity of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
a message adjusting module 503, configured to perform a pruning adjustment on the same broadcast message in the current broadcast message queue when the number of the same broadcast messages exceeds a preset threshold.
The device for adjusting the broadcast message queue provided by the embodiment of the invention judges whether the broadcast message is transmitted in an over-frequency mode or not by counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue, and deletes and adjusts the same broadcast messages, thereby effectively avoiding the broadcast blocking phenomenon and the system pause phenomenon caused by transmitting the broadcast messages in a high frequency mode, and reducing the influence of the broadcast on the system performance.
Optionally, the message adjusting module 503 is specifically configured to:
in the current broadcast message queue, reserving a preset number of later enqueued broadcast messages in the same broadcast message according to the enqueuing order, and removing the broadcast messages before the preset number of broadcast messages.
Optionally, the preset number is determined according to the length of the current broadcast message queue.
Optionally, the method further includes:
a broadcast receiver identification module, configured to identify a broadcast receiver of the current broadcast message according to the queue order of the broadcast messages in the adjusted current broadcast message queue after adjusting the same broadcast message in the current broadcast message queue;
and the broadcast message distribution module is used for distributing the current broadcast message to a corresponding broadcast receiver.
Optionally, the receiver determining module 501 includes:
a broadcast receiver determining unit for determining broadcast receivers registered to receive the broadcast messages in the broadcast message queue, respectively;
a broadcast receiver determining unit for determining a corresponding broadcast receiver according to the broadcast receiver.
The device for adjusting the broadcast message queue can execute the method for adjusting the broadcast message queue provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method for adjusting the broadcast message queue. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
This embodiment provides a terminal, which may include the apparatus for adjusting a broadcast message queue according to any embodiment of the present invention. Fig. 6 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention, and as shown in fig. 6, the terminal may include: a housing (not shown), a memory 601, a Central Processing Unit (CPU) 602 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 601 and operable on the processor 602, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU602 and the memory 601 are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 601 is used for storing a computer program which can run on the processor; the CPU602 reads and executes the computer program stored in the memory 601.
The terminal further includes: peripheral interfaces 603, RF (Radio Frequency) circuitry 605, audio circuitry 606, speakers 611, power management chip 608, input/output (I/O) subsystem 609, touch screen 612, other input/control devices 610, and external ports 604, which communicate via one or more communication buses or signal lines 607.
It should be understood that the illustrated terminal 600 is merely one example of a terminal and that the terminal 600 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may 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 following describes in detail a terminal for adjusting a broadcast message queue provided in this embodiment, where the terminal is a mobile phone as an example.
A memory 601, the memory 601 being accessible by the CPU602, the peripheral interface 603, and the like, the memory 601 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 603, said peripheral interface 603 may connect input and output peripherals of the device to the CPU602 and the memory 601.
An I/O subsystem 609, the I/O subsystem 609 may connect input and output peripherals on the device, such as a touch screen 612 and other input/control devices 610, to the peripheral interface 603. The I/O subsystem 609 may include a display controller 6091 and one or more input controllers 6092 for controlling other input/control devices 610. Where one or more input controllers 6092 receive electrical signals from or transmit electrical signals to other input/control devices 610, the other input/control devices 610 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is noted that the input controller 6092 may be connected to any one of: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 612, which touch screen 612 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 6091 in the I/O subsystem 609 receives electrical signals from the touch screen 612 or transmits electrical signals to the touch screen 612. The touch screen 612 detects a contact on the touch screen, and the display controller 6091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 612, that is, to implement a human-computer interaction, where the user interface object displayed on the touch screen 612 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 605 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 605 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 605 converts electrical signals to or from electromagnetic signals and communicates with a communication network and other devices. RF circuitry 605 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 606 is mainly used to receive audio data from the peripheral interface 603, convert the audio data into an electric signal, and transmit the electric signal to the speaker 611.
The speaker 611 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 605 into sound and play the sound to the user.
And a power management chip 608 for supplying power and managing power to the hardware connected to the CPU602, the I/O subsystem, and the peripheral interface.
The CPU602 provided in the embodiment of the present invention implements the following steps when executing the computer program stored in the memory 601:
determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
and when the number of the same broadcast messages exceeds a preset threshold value, carrying out deletion adjustment on the same broadcast messages in the current broadcast message queue.
The terminal can execute the method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of the execution method.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A method for adjusting a queue of broadcast messages, the method comprising:
determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
when the number of the same broadcast messages exceeds a preset threshold value, carrying out deletion adjustment on the same broadcast messages in the current broadcast message queue;
the current broadcast message queue is a broadcast message queue which takes a current time point as a time node and is formed by all undistributed broadcast messages before the time node; the broadcast message queue is positioned in a broadcast center, and the broadcast messages are sequentially enqueued according to the sequence of broadcast time to form a queue form;
the performing pruning adjustment on the same broadcast message in the current broadcast message queue includes:
in the current broadcast message queue, reserving a preset number of later enqueued broadcast messages in the same broadcast message according to the enqueuing sequence, and removing the broadcast messages before the preset number of broadcast messages; the preset number is a number value capable of avoiding a broadcast message blocking problem.
2. The method of claim 1, wherein the predetermined number is determined according to a length of the current broadcast message queue.
3. The method of any of claims 1-2, further comprising, after pruning the same broadcast message in the current broadcast message queue:
identifying the broadcast receiver of the current broadcast message according to the adjusted queuing sequence of the broadcast messages in the current broadcast message queue;
distributing the current broadcast message to a corresponding broadcast receiver.
4. The method of any of claims 1-2, wherein determining broadcast recipients corresponding to broadcast messages in the current broadcast message queue comprises:
respectively determining broadcast receivers registered to receive the broadcast messages in the broadcast message queue;
and determining a corresponding broadcast receiver according to the broadcast receiver.
5. An apparatus for adjusting a queue of broadcast messages, the apparatus comprising:
a receiver determining module, configured to determine a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
the quantity counting module is used for counting the quantity of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
the message adjusting module is used for deleting and adjusting the same broadcast messages in the current broadcast message queue when the number of the same broadcast messages exceeds a preset threshold value;
the current broadcast message queue is a broadcast message queue which takes a current time point as a time node and is formed by all undistributed broadcast messages before the time node; the broadcast message queue is positioned in a broadcast center, and the broadcast messages are sequentially enqueued according to the sequence of broadcast time to form a queue form;
the message adjustment module is specifically configured to:
in the current broadcast message queue, reserving a preset number of later enqueued broadcast messages in the same broadcast message according to the enqueuing sequence, and removing the broadcast messages before the preset number of broadcast messages; the preset number is a number value capable of avoiding a broadcast message blocking problem.
6. The apparatus of claim 5, wherein the predetermined number is determined according to a length of the current broadcast message queue.
7. The apparatus of any of claims 5-6, further comprising:
a broadcast receiver identification module, configured to identify a broadcast receiver of the current broadcast message according to the queue order of the broadcast messages in the adjusted current broadcast message queue after adjusting the same broadcast message in the current broadcast message queue;
and the broadcast message distribution module is used for distributing the current broadcast message to a corresponding broadcast receiver.
8. The apparatus of any of claims 5-6, wherein the recipient determination module comprises:
a broadcast receiver determining unit for determining broadcast receivers registered to receive the broadcast messages in the broadcast message queue, respectively;
a broadcast receiver determining unit for determining a corresponding broadcast receiver according to the broadcast receiver.
9. A terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program performs the steps of:
determining a broadcast receiver corresponding to the broadcast message in the current broadcast message queue;
counting the number of the same broadcast messages corresponding to the same broadcast receiver in the current broadcast message queue;
when the number of the same broadcast messages exceeds a preset threshold value, carrying out deletion adjustment on the same broadcast messages in the current broadcast message queue;
the current broadcast message queue is a broadcast message queue which takes a current time point as a time node and is formed by all undistributed broadcast messages before the time node; the broadcast message queue is positioned in a broadcast center, and the broadcast messages are sequentially enqueued according to the sequence of broadcast time to form a queue form;
the performing pruning adjustment on the same broadcast message in the current broadcast message queue includes:
in the current broadcast message queue, reserving a preset number of later enqueued broadcast messages in the same broadcast message according to the enqueuing sequence, and removing the broadcast messages before the preset number of broadcast messages; the preset number is a number value capable of avoiding a broadcast message blocking problem.
CN201710140649.7A 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue Expired - Fee Related CN106851014B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710140649.7A CN106851014B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue
PCT/CN2017/106770 WO2018161580A1 (en) 2017-03-10 2017-10-18 Broadcast control method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710140649.7A CN106851014B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Publications (2)

Publication Number Publication Date
CN106851014A CN106851014A (en) 2017-06-13
CN106851014B true CN106851014B (en) 2020-06-30

Family

ID=59143919

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710140649.7A Expired - Fee Related CN106851014B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Country Status (2)

Country Link
CN (1) CN106851014B (en)
WO (1) WO2018161580A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899943B (en) * 2017-03-10 2019-12-06 Oppo广东移动通信有限公司 Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106844069A (en) * 2017-03-10 2017-06-13 广东欧珀移动通信有限公司 Adjust method, device and the terminal of broadcast message queue
CN106921947B (en) * 2017-03-10 2020-09-29 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN108093385B (en) * 2017-12-26 2021-06-01 海信视像科技股份有限公司 Method for processing broadcast packet by Bluetooth controller, Bluetooth controller and Bluetooth equipment
CN109150753B (en) * 2018-08-01 2022-04-22 新华三技术有限公司 Message distribution method and device
CN110633161B (en) * 2019-09-19 2022-09-02 北京安云世纪科技有限公司 Broadcast processing method and device
CN116088714B (en) * 2022-05-26 2024-05-28 荣耀终端有限公司 Message prompt box processing method and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010036642A (en) * 1999-10-11 2001-05-07 윤종용 Inter-task Communication Method under Multitasking Environment
WO2014100452A1 (en) * 2012-12-20 2014-06-26 Georgia State University Research Foundation, Inc. Paraller priority queue utilizing parallel heap on many-core processors for accelerating priority-queue-based applications
CN105611046A (en) * 2015-12-17 2016-05-25 福建六壬网安股份有限公司 Strategy customization-based Android mobile phone security protection system and protection method thereof
CN105786973A (en) * 2016-02-02 2016-07-20 重庆秒盈电子商务有限公司 Concurrent data processing method and system based on big data technology
CN106293964A (en) * 2016-07-29 2017-01-04 青岛海信移动通信技术股份有限公司 The call method of a kind of application program and device

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728722B1 (en) * 2000-08-28 2004-04-27 Sun Microsystems, Inc. General data structure for describing logical data spaces
US8595748B1 (en) * 2007-12-21 2013-11-26 Ibiquity Digital Corporation Systems and methods for transmitting and receiving large objects via digital radio broadcast
EP3634001A1 (en) * 2011-05-26 2020-04-08 LG Electronics Inc. Display apparatus for processing multiple applications and method for controlling the same
CN103425225B (en) * 2012-05-16 2015-08-19 腾讯科技(深圳)有限公司 Application programmer in portable data device operating system and operation method thereof
CN102855148A (en) * 2012-08-02 2013-01-02 广东欧珀移动通信有限公司 Android-based startup management method
CN104994481B (en) * 2015-07-10 2018-09-28 上海斐讯数据通信技术有限公司 The receiving/transmission method and system to broadcast the message between application program in a kind of android system
CN105208590B (en) * 2015-08-17 2018-07-06 广东欧珀移动通信有限公司 The detection restoration methods and mobile terminal of mobile terminal operating system interim card exception
CN105357648A (en) * 2015-10-10 2016-02-24 上海斐讯数据通信技术有限公司 Method and Android system for sending broadcast message to application program
CN106201740A (en) * 2016-06-29 2016-12-07 北京金山安全软件有限公司 Broadcast message management method, device and equipment
CN106407021A (en) * 2016-07-01 2017-02-15 厦门易名科技股份有限公司 Queue-based business request processing method
CN106937258B (en) * 2017-03-10 2019-07-12 Oppo广东移动通信有限公司 A kind of control method of broadcast, device and mobile terminal
CN106844070B (en) * 2017-03-10 2020-07-31 Oppo广东移动通信有限公司 Broadcast control method and device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010036642A (en) * 1999-10-11 2001-05-07 윤종용 Inter-task Communication Method under Multitasking Environment
WO2014100452A1 (en) * 2012-12-20 2014-06-26 Georgia State University Research Foundation, Inc. Paraller priority queue utilizing parallel heap on many-core processors for accelerating priority-queue-based applications
CN105611046A (en) * 2015-12-17 2016-05-25 福建六壬网安股份有限公司 Strategy customization-based Android mobile phone security protection system and protection method thereof
CN105786973A (en) * 2016-02-02 2016-07-20 重庆秒盈电子商务有限公司 Concurrent data processing method and system based on big data technology
CN106293964A (en) * 2016-07-29 2017-01-04 青岛海信移动通信技术股份有限公司 The call method of a kind of application program and device

Also Published As

Publication number Publication date
WO2018161580A1 (en) 2018-09-13
CN106851014A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
CN106921947B (en) Method, device and terminal for adjusting broadcast message queue
CN106851015B (en) Method, device and terminal for adjusting broadcast message queue
EP3373138B1 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
US11051272B2 (en) Method for arranging broadcast message in operating system and electronic device
US20180262284A1 (en) Method, apparatus and terminal device for sending broadcast
US10908976B2 (en) Broadcast queue adjustment method, terminal, and storage medium
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
US11086697B2 (en) Broadcast-controlling method in operating system and mobile terminal
CN109165114B (en) Application program no-response processing method and device, storage medium and intelligent terminal
EP3588993B1 (en) Broadcast sending method and terminal
US10990460B2 (en) Method of generating broadcast queue, storage medium, and terminal
WO2018161607A1 (en) Broadcasting control method and apparatus, and mobile terminal and storage medium
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN106844070B (en) Broadcast control method and device and mobile terminal
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
WO2018161955A1 (en) Method and device for controlling broadcast recipient, and mobile terminal
CN106936826B (en) Registration method and device of broadcast receiver and terminal equipment
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN106936828B (en) Method, device and terminal for adjusting broadcast receiver queue
CN106708637B (en) Method, device and terminal for sending startup broadcast
CN106851594B (en) A kind of broadcast transmission method, apparatus and terminal
CN109614248B (en) Message compression method, device, storage medium and terminal equipment
CN106850458A (en) Broadcast the message method, device and the terminal queued up
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200630