CN106851015B - 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
CN106851015B
CN106851015B CN201710140650.XA CN201710140650A CN106851015B CN 106851015 B CN106851015 B CN 106851015B CN 201710140650 A CN201710140650 A CN 201710140650A CN 106851015 B CN106851015 B CN 106851015B
Authority
CN
China
Prior art keywords
broadcast
broadcast message
same
message
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
CN201710140650.XA
Other languages
Chinese (zh)
Other versions
CN106851015A (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 CN201710140650.XA priority Critical patent/CN106851015B/en
Publication of CN106851015A publication Critical patent/CN106851015A/en
Application granted granted Critical
Publication of CN106851015B publication Critical patent/CN106851015B/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)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a method, a device and a terminal for adjusting a broadcast message queue. The method comprises the following steps: acquiring current load information; judging whether the terminal is in a busy state at present according to the load information; and if the terminal is in a busy state at present, deleting the same broadcast message to be received by the same broadcast receiver in the broadcast message queue. According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message to be received by the same broadcast receiver in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.

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 reduced, the broadcast messages are blocked, the system overhead is increased, 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 broadcast message blockage and reduce system overhead.
In a first aspect, an embodiment of the present invention provides a method for adjusting a broadcast message queue, where the method includes:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the load information;
and if the terminal is in a busy state at present, deleting the same broadcast message to be received by the same broadcast receiver in the 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:
the information acquisition module is used for acquiring current load information;
the busy state judging module is used for judging whether the terminal is in a busy state at present according to the current load information;
and the message processing module is used for deleting the same broadcast message to be received by the same broadcast receiver in the broadcast message queue if the terminal is in a busy state at present.
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:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the load information;
and if the terminal is in a busy state at present, deleting the same broadcast message to be received by the same broadcast receiver in the broadcast message queue.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message to be received by the same broadcast receiver in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.
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.
Fig. 1 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the embodiment is applicable to a case where an adjustment is performed on a broadcast message sending queue, and the method may be performed 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 mobile phone, a tablet computer, or the like, and the method includes:
step 101, obtaining current load information.
The load information may be understood as parameter information capable of characterizing the terminal operation condition, for example, the number of currently operating programs, the number of loaded applications, the usage of the CPU, or the size of the occupied memory. The load information may represent the high or low load of the terminal, with respect to the computing power of the CPU. Too high a load will cause many processes to slow down, and it will take a long time to open a new process, causing the system to jam, so it is generally recommended not to make the load too high. Preferably, the load information includes at least one of: CPU utilization rate, memory utilization rate and occupation rate of file IO resources.
The CPU utilization is a CPU resource occupied by the running program, and indicates a situation of the running program at a certain time point by the terminal. The higher the usage rate, the more programs the terminal runs at this time. Memory usage, also known as memory occupancy, refers to the memory consumed by the process. A file IO (Input-Output) may be referred to as an IO without a cache, where the IO without a cache refers to that each read/write operation calls one system call in a kernel. The load can be represented by the size of any one or more of the CPU utilization rate, the memory utilization rate and the occupation rate of the file IO resources.
And 102, judging whether the terminal is in a busy state at present according to the load information.
The current CPU load can be judged according to the current load information, and whether the terminal is busy at present can be identified according to a preset algorithm.
And 103, if the terminal is in a busy state at present, deleting the same broadcast message to be received by the same broadcast receiver in the broadcast message queue.
The broadcast mechanism is essentially a communication method between components in an operating system of the mobile terminal, and is a mechanism widely used for transmitting messages between application programs. For example, under the android system of the mobile 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. 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.
The Android system broadcast has some similarities with the broadcast station broadcast in the traditional meaning, and is called as broadcast because the sender is only responsible for sending, and does not care whether the receiver receives the message data or not, and does not care how the receiver processes the message data. In addition, the broadcast message 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.
The broadcast messages may be named when they are created, and the same broadcast message may be broadcast messages of the same name. For example, a plurality of broadcast messages each named "bright screen broadcast" may be referred to as the same broadcast message. The broadcast recipients for each broadcast message may be determined in turn in the order in the 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. When the terminal is busy, the same broadcast message to be received by the same broadcast receiver in the broadcast message queue can be deleted, so that the broadcast jam can be reduced. Illustratively, taking a switching language type broadcast as an example, the broadcast message to be received by the same broadcast receiver includes multiple switching language broadcasts. When the terminal is busy, the broadcast message can be processed, for example, a part of the switching language broadcast information can be removed, or only a proper amount of newly listed switching language broadcast messages in the broadcast message queue can be reserved, so that the broadcast congestion is reduced. If the terminal is not busy, no other processing is required. And according to the queuing sequence in the broadcast message queue, the broadcast messages are distributed in sequence.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message to be received by the same broadcast receiver in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.
Fig. 2 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method of the embodiment includes:
step 201, obtaining current load information.
Step 202, when the current load information meets a preset condition, determining that the terminal is in a busy state at present.
The preset condition may be set according to some parameters of the performance of the terminal CPU, and the preset condition may limit at least one type of load information, for example, the preset condition may be that the CPU utilization is higher than 80%, or the CPU utilization is higher than 80% and the memory utilization is higher than 80%, or the CPU utilization is higher than 75%, the memory utilization is higher than 80% and the occupancy of the file IO resource is higher than 85%.
Step 203, the same broadcast message to be received by the same broadcast receiver in the broadcast message queue is pruned.
The embodiment of the invention judges whether the terminal is in a busy state or not by setting the preset condition of the load information, can simply and accurately judge the state of the terminal, and delete the same broadcast message to be received by the same broadcast receiver in the broadcast message queue in the busy state, thereby avoiding the blockage of the broadcast message, avoiding the blockage phenomenon of the system and reducing the system overhead.
Fig. 3 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method of the embodiment includes:
step 301, obtaining current load information.
Step 302, judging whether the terminal is in a busy state at present according to the load information.
Step 303, if the terminal is currently in a busy state, counting the same broadcast messages to be received by the same broadcast receivers in the broadcast message queue.
The broadcast receiver can be determined by searching a receiver list of the broadcast receiver corresponding to the registered broadcast message, and the like, and the type of the broadcast message can be determined according to the characteristics of the broadcast message, and the same broadcast message is counted. For example, in the Android system, a broadcast receiver registered for the broadcast message may be queried through ActivityManagerService, thereby determining a broadcast receiver of the broadcast message.
And step 304, reserving a preset number of broadcast messages according to the enqueue sequence of the same broadcast messages.
The preset number can be set according to the response speed of the terminal and the like, and can also be determined according to the length of the current broadcast message queue. The preset number of broadcast messages are reserved, and the rest broadcast messages are deleted, so that the broadcast message blockage is reduced, and the system is prevented from being blocked.
Optionally, reserving a preset number of broadcast messages according to the enqueue order of the same broadcast message, including: removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or removing the broadcast messages enqueued later in the same broadcast message, and reserving a preset number of broadcast messages enqueued earlier.
For the same broadcast message, according to the sequence of enqueue in the broadcast message queue, reserving the preset number of broadcast messages enqueued later, and removing other broadcast messages. For example, if the preset number is 2, the number of the same broadcast messages to be received by the broadcast receiver as application a is counted as 4, and the same broadcast messages are named as a1, a2, A3 and a4 in order of enqueuing, and then the 2 broadcast messages that are enqueued later, i.e., A3 and a4, are reserved, and all the broadcast messages of the type before A3 and a4 are removed. Whether the terminal is in a busy state or not is judged according to the load information, the same broadcast messages to be received by the same broadcast receivers in the broadcast message queue in the busy state are counted, the broadcast messages which are queued first are removed, and the preset number of the broadcast messages which are queued later are reserved, so that the number of the broadcast messages can be reduced, the broadcast message blockage is avoided, the system jamming phenomenon is avoided, and the system overhead is reduced. Meanwhile, the smooth distribution of the late-enqueue broadcast messages is ensured, and the loss of new broadcast messages is avoided.
And for the same broadcast message, reserving a preset number of the broadcast messages enqueued first according to the order of enqueuing in the broadcast message queue, and removing other broadcast messages. For example, if the preset number is 2, the number of the same broadcast messages to be received by the broadcast receiver as application a is counted as 4, and the same broadcast messages are named as a1, a2, A3 and a4 in the order of enqueuing, and at this time, the 2 broadcast messages enqueued first, i.e., a1 and a2, are retained, and all the broadcast messages after a1 and a2 are removed. Whether the terminal is in a busy state or not is judged according to the load information, the same broadcast messages to be received by the same broadcast receivers in the broadcast message queue in the busy state are counted, the broadcast messages which are queued after being removed are queued, the preset number of broadcast messages which are queued first are reserved, the number of the broadcast messages can be reduced, the broadcast message blockage is avoided, the system jamming phenomenon is avoided, and the system overhead is reduced. Meanwhile, the method ensures that the first-in broadcast message is smoothly distributed, and avoids the loss of the first-in broadcast message with longer waiting time.
Fig. 4 is a flowchart of a method for adjusting a broadcast message queue according to an embodiment of the present invention, where the method of this embodiment includes:
step 401, obtaining current load information.
And 402, judging whether the terminal is in a busy state at present according to the load information.
Step 403, if the terminal is currently in a busy state, performing a deletion process on the same broadcast message to be received by the same broadcast receiver in the broadcast message queue.
Step 404, after receiving a broadcast message sending request, identifying a broadcast receiver of the broadcast message requested to be sent by the broadcast message sending request;
step 405, extracting the broadcast message to be received by the broadcast receiver in the current broadcast message queue;
step 406, determining whether there is a broadcast message identical to the broadcast message requested to be sent by the broadcast message sending request in the broadcast message to be received by the broadcast receiver; if so, step 407 is performed, otherwise step 408 is performed.
Step 407, replacing the broadcast message requested to be sent by the broadcast message sending request with the same broadcast message in the current broadcast message queue;
step 408, allowing the broadcast message requested to be sent by the broadcast message sending request to enter the current broadcast message queue.
The current broadcast message queue may be understood as a broadcast message queue formed by all the undistributed broadcast messages before a time node, which is a current time point. When a new broadcast message transmission request is received, the broadcast receiver of the broadcast message is identified, for example, the broadcast receiver may be determined by searching a receiver list of the broadcast receiver to which the broadcast message is registered. And matching the broadcast message with the broadcast message in the broadcast message queue before the broadcast message is received. If the current broadcast message queue contains the broadcast message which is the same as the broadcast message, the existing same broadcast message can be replaced by the broadcast message, and if the current broadcast message queue does not contain the broadcast message, the broadcast message is added into the broadcast message queue to wait for subsequent processing.
It should be noted that, in the embodiment of the present invention, the above-mentioned process of determining whether the terminal is busy and performing deletion processing on the same broadcast message to be received by the same broadcast receiver in the broadcast message team when the terminal is busy and the process of processing the newly received broadcast message are not limited in sequence, that is, there is no strict sequence between steps 401 and 404 and 408, and the sequence is not limited, and the sequence is within the protection scope of the embodiment of the present invention.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message to be received by the same broadcast receiver in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced. Meanwhile, the system can avoid large cost caused by frequent receiving of the same broadcast message, and can not cause the loss of certain type of broadcast message, thereby providing guarantee for orderly broadcast message distribution.
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 an information acquiring module 501, a busy state determining module 502, and a message processing module 503.
An information obtaining module 501, configured to obtain current load information;
a busy state determining module 502, configured to determine whether the terminal is currently in a busy state according to the current load information;
the message processing module 503, if the terminal is currently in a busy state, performs a deletion process on the same broadcast message to be received by the same broadcast receiver in the broadcast message queue.
According to the embodiment of the invention, whether the terminal is in a busy state is judged according to the load information, and the same broadcast message to be received by the same broadcast receiver in the broadcast message queue in the busy state is deleted, so that the broadcast message can be prevented from being blocked, the system can be prevented from being blocked, and the system overhead can be reduced.
Preferably, the busy state determining module 502 includes:
and the busy state determining unit is used for determining that the terminal is in a busy state currently when the current load information meets a preset condition.
Preferably, the message processing module 503 includes:
the message counting unit is used for counting the same broadcast messages sent by the same broadcast sender in the broadcast message queue;
and the message retaining unit is used for retaining the preset number of broadcast messages according to the enqueue sequence of the same broadcast message.
Preferably, the message reserving unit is specifically configured to:
removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or
And removing the broadcast messages which are queued later in the same broadcast message, and reserving a preset number of broadcast messages which are queued earlier.
Preferably, the method further comprises the following steps:
the message identification module is used for identifying a broadcast receiver of the broadcast message requested to be sent by the broadcast message sending request after receiving the broadcast message sending request;
the message extraction module is used for extracting the broadcast message to be received by the broadcast receiver in the current broadcast message queue;
a message judging module, configured to judge whether there is a broadcast message that is the same as the broadcast message requested to be sent by the broadcast message sending request in the broadcast message to be received by the broadcast receiver;
and the queue adjusting module is used for replacing the broadcast message requested to be sent by the broadcast message sending request with the same broadcast message in the current broadcast message queue if the broadcast message is requested to be sent by the broadcast message sending request.
Preferably, the load information includes at least one of: CPU utilization rate, memory utilization rate and occupation rate of file IO resources.
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.
The embodiment of the invention also provides a terminal which can comprise the device for adjusting the broadcast message queue provided by any embodiment of the invention. Fig. 6 is a schematic structural diagram of a terminal according to an 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 according to an embodiment of the present invention, where the terminal is a mobile phone.
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:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the load information;
and if the terminal is in a busy state at present, deleting the same broadcast message to be received by the same broadcast receiver in the 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:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the load information;
if the terminal is in a busy state at present, deleting the same broadcast messages to be received by the same broadcast receivers in a broadcast message queue, wherein the broadcast message queue is a broadcast message queue formed by sequentially enqueuing all the undistributed broadcast messages according to the sequence of broadcast time; the broadcast message queue is positioned in a broadcast center;
identifying a broadcast receiver of a broadcast message requested to be transmitted by a broadcast message transmission request after receiving the broadcast message transmission request;
extracting the broadcast message to be received by the broadcast receiver in the current broadcast message queue;
judging whether the broadcast message to be received by the broadcast receiver has the broadcast message same as the broadcast message requested to be sent by the broadcast message sending request;
and if so, replacing the broadcast message requested to be transmitted by the broadcast message transmission request with the same broadcast message in the current broadcast message queue.
2. The method of claim 1, wherein determining whether the terminal is currently in a busy state according to the current load information comprises:
and when the current load information meets a preset condition, determining that the terminal is in a busy state at present.
3. The method of claim 1, wherein pruning the same broadcast message to be received by the same broadcast receiver in the broadcast message queue comprises:
counting the same broadcast messages to be received by the same broadcast receivers in the broadcast message queue;
and reserving a preset number of broadcast messages according to the queuing sequence of the same broadcast messages.
4. The method of claim 3, wherein reserving a preset number of broadcast messages according to the enqueue order of the same broadcast message comprises:
removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or
And removing the broadcast messages which are queued later in the same broadcast message, and reserving a preset number of broadcast messages which are queued earlier.
5. An apparatus for adjusting a queue of broadcast messages, the apparatus comprising:
the information acquisition module is used for acquiring current load information;
the busy state judging module is used for judging whether the terminal is in a busy state at present according to the current load information;
the message processing module is used for deleting the same broadcast messages to be received by the same broadcast receivers in a broadcast message queue if the terminal is in a busy state currently, wherein the broadcast message queue is a broadcast message queue formed by sequentially enqueuing all the undistributed broadcast messages according to the sequence of broadcast time; the broadcast message queue is positioned in a broadcast center;
the message identification module is used for identifying a broadcast receiver of the broadcast message requested to be sent by the broadcast message sending request after receiving the broadcast message sending request;
the message extraction module is used for extracting the broadcast message to be received by the broadcast receiver in the current broadcast message queue;
a message judging module, configured to judge whether there is a broadcast message that is the same as the broadcast message requested to be sent by the broadcast message sending request in the broadcast message to be received by the broadcast receiver;
and the queue adjusting module is used for replacing the broadcast message requested to be sent by the broadcast message sending request with the same broadcast message in the current broadcast message queue if the broadcast message is requested to be sent by the broadcast message sending request.
6. The apparatus of claim 5, wherein the busy status determining module comprises:
and the busy state determining unit is used for determining that the terminal is in a busy state currently when the current load information meets a preset condition.
7. The apparatus of claim 5, wherein the message processing module comprises:
the message counting unit is used for counting the same broadcast messages sent by the same broadcast sender in the broadcast message queue;
and the message retaining unit is used for retaining the preset number of broadcast messages according to the enqueue sequence of the same broadcast message.
8. The apparatus according to claim 7, wherein the message reservation unit is specifically configured to:
removing the broadcast messages which are queued first in the same broadcast messages, and reserving a preset number of broadcast messages which are queued later; or
And removing the broadcast messages which are queued later in the same broadcast message, and reserving a preset number of broadcast messages which are queued earlier.
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:
acquiring current load information;
judging whether the terminal is in a busy state at present according to the load information;
if the terminal is in a busy state at present, deleting the same broadcast messages to be received by the same broadcast receivers in a broadcast message queue, wherein the broadcast message queue is a broadcast message queue formed by sequentially enqueuing all the undistributed broadcast messages according to the sequence of broadcast time; the broadcast message queue is positioned in a broadcast center;
identifying a broadcast receiver of a broadcast message requested to be transmitted by a broadcast message transmission request after receiving the broadcast message transmission request;
extracting the broadcast message to be received by the broadcast receiver in the current broadcast message queue;
judging whether the broadcast message to be received by the broadcast receiver has the broadcast message same as the broadcast message requested to be sent by the broadcast message sending request;
and if so, replacing the broadcast message requested to be transmitted by the broadcast message transmission request with the same broadcast message in the current broadcast message queue.
CN201710140650.XA 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue Expired - Fee Related CN106851015B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710140650.XA CN106851015B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710140650.XA CN106851015B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Publications (2)

Publication Number Publication Date
CN106851015A CN106851015A (en) 2017-06-13
CN106851015B true CN106851015B (en) 2020-09-22

Family

ID=59144084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710140650.XA Expired - Fee Related CN106851015B (en) 2017-03-10 2017-03-10 Method, device and terminal for adjusting broadcast message queue

Country Status (1)

Country Link
CN (1) CN106851015B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921947B (en) * 2017-03-10 2020-09-29 Oppo广东移动通信有限公司 Method, device and terminal for adjusting broadcast message queue
CN107729158B (en) * 2017-09-20 2022-01-11 惠州Tcl移动通信有限公司 Method for simplifying application program register, storage medium and electronic equipment
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
CN116701008A (en) * 2022-09-23 2023-09-05 荣耀终端有限公司 Broadcasting method and apparatus

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549108A (en) * 2003-05-07 2004-11-24 中兴通讯股份有限公司 Method for realizing communication process zero copy information queue
CN1829340A (en) * 2005-03-03 2006-09-06 中兴通讯股份有限公司 Method for transmitting broadcast channel assignment message in CDMA standard group communication system
KR20070098191A (en) * 2006-03-31 2007-10-05 한국비주얼 주식회사 Radio frequency identification middleware with event queue and method for control thereof
WO2006050616A8 (en) * 2004-11-15 2007-11-15 Zi Corp Canada Inc Organizing pointers to objects
CN101782891A (en) * 2010-03-26 2010-07-21 中兴通讯股份有限公司 Method and system for communication of distributed system
CN101835043A (en) * 2010-03-23 2010-09-15 熔点网讯(北京)科技有限公司 Adaptive bandwidth desktop sharing method based on block encoding
CN103019866A (en) * 2012-10-24 2013-04-03 北京京东世纪贸易有限公司 Distributed method and system based on message queue
US8836974B2 (en) * 2010-02-22 2014-09-16 Canon Kabushiki Kaisha Image processing system and control method for managing a job related to image processing in a distributed environment
CN104680060A (en) * 2014-11-25 2015-06-03 北京奇虎科技有限公司 Procedure self-starting management method and procedure self-starting management device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8595748B1 (en) * 2007-12-21 2013-11-26 Ibiquity Digital Corporation Systems and methods for transmitting and receiving large objects via digital radio broadcast
CN104375861B (en) * 2014-11-04 2017-06-09 北京奇虎科技有限公司 Application program based on Android platform exempts from method, device and the terminal of installation and operation
CN105208590B (en) * 2015-08-17 2018-07-06 广东欧珀移动通信有限公司 The detection restoration methods and mobile terminal of mobile terminal operating system interim card exception

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1549108A (en) * 2003-05-07 2004-11-24 中兴通讯股份有限公司 Method for realizing communication process zero copy information queue
WO2006050616A8 (en) * 2004-11-15 2007-11-15 Zi Corp Canada Inc Organizing pointers to objects
CN1829340A (en) * 2005-03-03 2006-09-06 中兴通讯股份有限公司 Method for transmitting broadcast channel assignment message in CDMA standard group communication system
KR20070098191A (en) * 2006-03-31 2007-10-05 한국비주얼 주식회사 Radio frequency identification middleware with event queue and method for control thereof
US8836974B2 (en) * 2010-02-22 2014-09-16 Canon Kabushiki Kaisha Image processing system and control method for managing a job related to image processing in a distributed environment
CN101835043A (en) * 2010-03-23 2010-09-15 熔点网讯(北京)科技有限公司 Adaptive bandwidth desktop sharing method based on block encoding
CN101782891A (en) * 2010-03-26 2010-07-21 中兴通讯股份有限公司 Method and system for communication of distributed system
CN103019866A (en) * 2012-10-24 2013-04-03 北京京东世纪贸易有限公司 Distributed method and system based on message queue
CN104680060A (en) * 2014-11-25 2015-06-03 北京奇虎科技有限公司 Procedure self-starting management method and procedure self-starting management device

Also Published As

Publication number Publication date
CN106851015A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
CN106851015B (en) Method, device and terminal for adjusting broadcast message queue
CN106851014B (en) Method, device and terminal for adjusting broadcast message queue
CN106921947B (en) Method, device and terminal for adjusting broadcast message queue
US10097292B2 (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
CN106936825B (en) Method and device for controlling broadcast transmission and mobile terminal
US11086697B2 (en) Broadcast-controlling method in operating system and mobile terminal
CN107070670B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
EP3486770A1 (en) Processing method, device and storage medium for implementing automatic startup
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
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
US10863521B1 (en) Broadcast receiver control method and apparatus, and mobile terminal
CN106844070B (en) Broadcast control method and device 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
CN106919461B (en) Method and device for adjusting broadcast receiver queue and terminal equipment
CN106850458A (en) Broadcast the message method, device and the terminal queued up

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200922

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