WO2018161969A1 - 广播队列调整方法、装置和终端设备 - Google Patents

广播队列调整方法、装置和终端设备 Download PDF

Info

Publication number
WO2018161969A1
WO2018161969A1 PCT/CN2018/078627 CN2018078627W WO2018161969A1 WO 2018161969 A1 WO2018161969 A1 WO 2018161969A1 CN 2018078627 W CN2018078627 W CN 2018078627W WO 2018161969 A1 WO2018161969 A1 WO 2018161969A1
Authority
WO
WIPO (PCT)
Prior art keywords
broadcast
queue
broadcast message
sending
message
Prior art date
Application number
PCT/CN2018/078627
Other languages
English (en)
French (fr)
Inventor
裴润升
付亮晶
吴汝煜
林志泳
张俊
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to EP18763662.6A priority Critical patent/EP3591528A4/en
Publication of WO2018161969A1 publication Critical patent/WO2018161969A1/zh
Priority to US16/565,423 priority patent/US10908976B2/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/548Queue

Definitions

  • the present disclosure relates to computer technology, for example, to a broadcast queue adjustment method, apparatus, and terminal device.
  • Broadcast is a widely used mechanism for transmitting information between applications. Taking the Android operating system as an example, it uses broadcast to realize data transmission and sharing between applications. Typically, such as Android's own text messages, telephones and other broadcasts.
  • the broadcast sender sends a broadcast message by calling the sendBroadcast function.
  • the broadcast receiver registers the broadcast receiver (Broadcast Receiver) in the management module by calling the registerReceiver function, and defines the broadcast message of interest to it. This enables the reception of the corresponding broadcast message.
  • the processing mechanism of the broadcast has defects, such that the broadcast processing efficiency is low, the system resource consumption is excessive, and the stability is poor.
  • the present disclosure provides a broadcast queue adjustment method, apparatus, and terminal device, which improves broadcast processing efficiency, reduces system resource consumption, and increases system stability.
  • the present disclosure provides a broadcast queue adjustment method, including:
  • Broadcast messages with different sending processes are removed from the first broadcast queue, and a second broadcast queue is formed according to the sending process.
  • the present disclosure further provides a broadcast queue adjusting apparatus, including:
  • the acquiring module is configured to: after monitoring the broadcast message sending instruction, acquire the first broadcast queue corresponding to the broadcast message sending instruction;
  • Traversing module configured to sequentially traverse each broadcast message to be sent in the first broadcast queue
  • Determining a module configured to determine a sending process of each of the broadcast messages to be sent
  • the adjusting module is configured to remove the broadcast message with different sending processes from the first broadcast queue, and form a second broadcast queue according to the sending process.
  • the present disclosure also provides a terminal device comprising: a processor, a memory, and a computer program stored on the memory and operable on the processor, the processor implementing the computer program to implement the following steps:
  • the broadcast messages with different sending processes are removed from the first broadcast queue, and the second broadcast queue is formed according to the sending process.
  • the present disclosure also provides a computer readable storage medium storing computer executable instructions for performing the above broadcast queue adjustment method.
  • the broadcast queue adjustment method, device and terminal device provided by the disclosure solve the defects of the related art broadcast mechanism, improve the broadcast processing efficiency, reduce the system resource consumption, and increase the system stability.
  • FIG. 1 is a flowchart of a method for adjusting a broadcast queue according to an embodiment of the present application
  • FIG. 2 is a flowchart of another method for adjusting a broadcast queue according to an embodiment of the present application
  • FIG. 3 is a flowchart of another method for adjusting a broadcast queue according to an embodiment of the present application
  • FIG. 4 is a structural block diagram of a broadcast queue adjusting apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • FIG. 1 is a flowchart of a method for adjusting a broadcast queue according to an embodiment of the present disclosure. This embodiment is applicable to a process of adjusting a broadcast queue in a broadcast sending process, and the method may be performed by the terminal device provided in this embodiment.
  • the broadcast queue adjustment apparatus of the terminal device may be implemented by using at least one of software and hardware. As shown in FIG. 1 , the broadcast queue adjustment method provided in this embodiment includes the following steps.
  • step 110 after the broadcast message sending instruction is monitored, the first broadcast queue corresponding to the broadcast message sending instruction is obtained.
  • the broadcast sender's service process sends a broadcast message to a management module (such as an activity manager service) by calling a broadcast send function (such as the sendBroadcast function), and the management module will receive the broadcast message after receiving the broadcast message.
  • a management module such as an activity manager service
  • the management module will receive the broadcast message after receiving the broadcast message.
  • the broadcast message is placed in the first broadcast queue, and the management module transmits the broadcast message in the first broadcast queue to the broadcast receiver that meets the receiving condition through a process communication mechanism (such as a Binder process communication mechanism).
  • a broadcast message refers to information transmitted by a system or an application during operation for transmission between at least one of a system and an application.
  • the broadcast message may be a system initiated broadcast message, Short message broadcast messages, telephone broadcast messages, or three-party application broadcast messages.
  • the manner in which the counter application sends a broadcast message to the management module may be as follows.
  • Intent intent new Intent(BROADCAST_COUNTER_ACTION);
  • the management module receives the broadcast message sent by the broadcast sender to form a first broadcast queue, and sequentially sends the broadcast message in the first broadcast queue.
  • the process in which the broadcast sender transmits the broadcast message and the process in which the broadcast receiver receives the broadcast message are asynchronous operation processes, and the broadcast sender and the broadcast receiver achieve low-coupling relationship matching through the management module.
  • the broadcast message can be divided into a normal broadcast message and an ordered broadcast message according to different broadcast transmission modes. After the normal broadcast message is sent by the management module, the broadcast receiver receives the broadcast message unordered, and after the broadcast message is sent by the management module, the broadcast receiver sequentially receives the broadcast message in the order, that is, the first broadcast. After the receiver receives the broadcast message and processes the processing, the second broadcast receiver can start receiving and processing the broadcast message, and so on.
  • the broadcast queue adjustment method disclosed in this embodiment can be limited to the ordered broadcast mode.
  • the first broadcast queue corresponding to the broadcast message sending instruction is acquired.
  • the broadcast message is a broadcast message in a broadcast queue maintained by the management module.
  • the first broadcast queue in which the broadcast message is located is obtained.
  • the first broadcast queue search may be performed according to the name of the broadcast message (such as BROADCAST_COUNTER_ACTION), and the queue including the name of the broadcast message is determined to be the corresponding first broadcast queue.
  • step 120 each broadcast message to be sent in the first broadcast queue is traversed in sequence, and the sending process of each broadcast message to be sent is determined.
  • the broadcast message currently to be sent in the first broadcast queue is traversed, and the sending process corresponding to the broadcast message is determined.
  • Process refers to the running activity of the program in the system about the data set. It is the basic unit of the system for resource allocation and scheduling. It is the component basis of the system structure and is the basic execution entity of the application.
  • the sending process may be a process when the broadcast sender sends the broadcast message, or may be a process occupied by the management module when the broadcast message is sent to the broadcast receiver and processed.
  • the process of determining the sending process of each broadcast message to be sent may be determining a corresponding process identification (ID) number of the broadcast message according to the name of the broadcast message (eg, BROADCAST_COUNTER_ACTION).
  • ID process identification
  • step 130 the broadcast messages with different sending processes are removed from the first broadcast queue, and the second broadcast queue is formed according to the sending process.
  • the forming a second broadcast queue according to the sending process comprises: forming a broadcast message that is consistent by the sending process into a second broadcast queue.
  • the broadcast message with different process IDs corresponding to the broadcast message sending process may be removed from the first broadcast queue according to the process ID number, and then the second broadcast queue is divided according to the process ID, and each newly formed second broadcast is configured.
  • the sending process of broadcast messages in the queue is consistent.
  • the broadcast queue adjusting method further includes: simultaneously starting to send the broadcast in the first broadcast queue corresponding to the broadcast message sending instruction. a message and a broadcast message in the second broadcast queue.
  • the sending process of the broadcast message in the original broadcast queue and the new broadcast queue is different, and the parallel transmission of the broadcast message in the ordered broadcast queue is realized by simultaneously transmitting the broadcast messages of different sending processes, so that the broadcast receiver can simultaneously Perform broadcast message processing.
  • the registration process for the broadcast recipient to receive the broadcast message may be represented as follows (taking the broadcast message sent by the counter as an example).
  • the broadcast message (BROADCAST_COUNTER_ACTION) sent by the broadcast sender is sent by the management module, since the broadcast receiver registers the corresponding broadcast receiver that receives the broadcast message, the broadcast message is received and processed by the corresponding broadcast receiver.
  • the broadcast queue adjustment method obtaineds a first broadcast queue corresponding to the broadcast message sending instruction, and sequentially traverses each broadcast message to be sent in the first broadcast queue, after receiving the broadcast message sending instruction. Determining the sending process of each broadcast message to be sent, removing the broadcast message with different sending processes from the first broadcast queue, and forming a second broadcast queue according to the sending process, thereby solving the order of related technologies In the broadcast queue, it is necessary to wait for the broadcast message that has been sent to be processed before the broadcast processing efficiency of the next broadcast message is inefficient, and the broadcast messages of different sending processes are respectively created in the respective broadcast queues and transmitted in parallel, which is shortened. The processing time of the broadcast queue.
  • FIG. 2 is a flowchart of another method for adjusting a broadcast queue according to an embodiment of the present disclosure.
  • the traversing each broadcast in the first broadcast queue is sequentially traversed.
  • the message includes: sequentially traversing each broadcast message to be sent in the first broadcast queue in a preset length.
  • the broadcast queue adjustment method provided in this embodiment includes the following steps.
  • step 210 after the broadcast message sending instruction is monitored, the first broadcast queue corresponding to the broadcast message sending instruction is obtained.
  • step 220 each broadcast message to be sent in the first broadcast queue in the preset length is traversed in sequence, and the sending process of each broadcast message to be sent is determined.
  • the broadcast queue may include a plurality of broadcast messages.
  • the broadcast message of the broadcast queue sorting test may have been sent and processed, to improve traversal efficiency and broadcast messages.
  • the accuracy of the sending process is compared, and the broadcast message to be sent in the broadcast queue in the preset length is traversed, and the preset length may be 100, 200, or 500.
  • the preset length may be a preset default value, or may be comprehensively determined according to the load of the system (CPU occupancy rate, memory occupancy rate) and the current remaining power amount, and dynamically adjusted in real time.
  • the preset length of the traversed broadcast queue is reduced (if set to 100), otherwise, increase the setting value of the preset length (such as 500).
  • step 230 the broadcast messages with different sending processes are removed from the first broadcast queue, and the second broadcast queue is formed according to the sending process.
  • the first broadcast queue corresponding to the broadcast message sending instruction is obtained, and each broadcast message to be sent in the first broadcast queue in a predetermined length is sequentially traversed. Determining, by the sending process of each broadcast message to be sent, removing the broadcast message with different sending processes from the first broadcast queue, and forming a second broadcast queue according to the sending process, and improving the sending of the comparison broadcast message. Whether the process is consistent and accurate, while reducing the system's resource consumption, optimizes the broadcast processing mechanism.
  • FIG. 3 is a flowchart of another method for adjusting a broadcast queue according to an embodiment of the present disclosure.
  • the method further includes: determining to send If the broadcast queue of the new broadcast message is the same as the broadcast queue of the new broadcast message, the new broadcast message is added to the broadcast queue that is consistent with the sending process; if it does not exist, The broadcast queue with the same broadcast process of the newly added broadcast message creates a third broadcast queue, and adds the newly added broadcast message to the newly created third broadcast queue.
  • the broadcast queue adjustment method provided in this embodiment includes the following steps.
  • step 310 after the broadcast message sending instruction is monitored, the first broadcast queue corresponding to the broadcast message sending instruction is obtained.
  • step 320 each broadcast message to be sent in the first broadcast queue is traversed in sequence, and the sending process of each broadcast message to be sent is determined.
  • step 330 the broadcast message with different sending processes is removed from the first broadcast queue, and the sending process of sending the newly added broadcast message is determined according to the sending process composing the second broadcast queue.
  • step 340 it is determined whether there is a broadcast queue that is consistent with the transmission process of the newly added broadcast message, and if so, step 350 is performed, otherwise step 360 is performed.
  • the process of determining the sending of the newly added broadcast message is determined. If the existing broadcast queue has a broadcast message consistent with the broadcast message sending process, The broadcast message is added to the corresponding broadcast queue, if not, a third broadcast queue is created, and the newly added broadcast message is added to the newly created third broadcast queue.
  • step 350 the newly added broadcast message is added to a broadcast queue that is consistent in the sending process.
  • the added broadcast message can be added to the end of the broadcast queue that is consistent with the sending process.
  • step 360 a third broadcast queue is created and the new broadcast message is added to the newly created third broadcast queue.
  • the third broadcast queue is created. Therefore, when the broadcast message is sent, the broadcast message in different broadcast queues can be simultaneously sent to implement concurrent processing of the broadcast message.
  • the embodiment provides a method for adjusting a broadcast queue.
  • it is determined that the sending process of the newly added broadcast message is sent. If there is a broadcast queue that is consistent with the sending process of the newly added broadcast message, Adding the newly added broadcast message to the broadcast queue in which the sending process is consistent. If there is no broadcast queue that is consistent with the sending process of the newly added broadcast message, creating a third broadcast queue, and creating the new broadcast queue.
  • the added broadcast message is added to the newly created third broadcast queue, so that the broadcast queue is adjusted when the broadcast message is enqueued, and the broadcast message of the same sending process is in the same sending queue, and the parallel sending of the broadcast message can be implemented, and the broadcast message is improved. Broadcast processing efficiency.
  • FIG. 4 is a structural block diagram of a broadcast sending apparatus according to an embodiment of the present disclosure.
  • the apparatus is configured to perform the broadcast queue adjustment method provided by the foregoing embodiment, and has a function module and a beneficial effect corresponding to the execution method.
  • the apparatus includes: an obtaining module 401, a traversing module 402, a determining module 403, and an adjusting module 404.
  • the obtaining module 401 is configured to acquire a first broadcast queue corresponding to the broadcast message sending instruction after the broadcast message sending instruction is monitored.
  • the traversal module 402 is arranged to traverse each of the broadcast messages to be transmitted in the first broadcast queue in sequence.
  • the determining module 403 is arranged to determine a sending process of each of the broadcast messages to be transmitted.
  • the adjustment module 404 is configured to remove broadcast messages that are different from the sending process out of the broadcast queue, and form a second broadcast queue according to the sending process.
  • the technical solution provided in this embodiment solves the defects of the related art broadcast mechanism, improves the broadcast processing efficiency, reduces system resource consumption, and increases system stability.
  • the adjusting module 404 is configured to: form a broadcast message that is consistent with the sending process to form a second broadcast queue.
  • the sending module 405 is configured to: after the broadcast message that is consistent with the sending process is formed into the second broadcast queue, start to send the broadcast message in the first broadcast queue corresponding to the broadcast message sending instruction a broadcast message in the second broadcast queue.
  • the traversing module 402 is configured to sequentially traverse each broadcast message to be sent in the first broadcast queue in a preset length.
  • the adjusting module 404 is further configured to: after the forming the second broadcast queue according to the sending process, determine, to send a sending process of the newly added broadcast message, if the sending process of the newly added broadcast message exists If the broadcast queue is consistent, the new broadcast message is added to the broadcast queue that is consistent with the sending process; if there is no broadcast queue that is consistent with the sending process of the newly added broadcast message, the third broadcast queue is created. And adding the newly added broadcast message to the newly created third broadcast queue.
  • FIG. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure.
  • the terminal device may include: a memory 501, a central processing unit (CPU) 502, a peripheral interface 503, and an RF. (Radio Frequency) circuit 505, audio circuit 506, speaker 511, power management chip 508, input/output (I/O) subsystem 509, touch screen 512, other input/control devices 510, and external port 504, these components pass One or more communication buses or signal lines 507 are in communication.
  • CPU central processing unit
  • I/O input/output subsystem
  • the illustrated terminal device 500 is merely one example of a terminal device, and the terminal device 500 may have more or fewer components than those shown in the figures, two or more components may be combined, or may have different Component configuration.
  • the various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
  • the following describes the terminal device for the rights management of the multi-open application provided by the embodiment, where the terminal device takes a smart phone as an example.
  • the memory 501 can be accessed by the CPU 502, the peripheral interface 503, etc., and the memory 501 can include a high speed random access memory, and can also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • a non-volatile memory such as one or more magnetic disk storage devices, flash memory devices. Or other volatile solid-state storage devices.
  • Peripheral interface 503 which can connect the input and output peripherals of the device to a central processing unit (CPU) 502 and memory 501.
  • CPU central processing unit
  • An input/output (I/O) subsystem 509 that can connect input and output peripherals on the device, such as touch screen 512 and other input/control devices 510, to a peripheral interface 503.
  • the I/O subsystem 509 can include a display controller 5091 and one or more input controllers 5092 for controlling other input/control devices 510.
  • one or more input controllers 5092 receive electrical signals from other input/control devices 510 or transmit electrical signals to other input/control devices 510, and other input/control devices 510 may include physical buttons (press buttons, rocker buttons, etc.) ), dial, slide switch, joystick, click wheel.
  • the input controller 5092 can be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
  • the touch screen 512 is an input interface and an output interface between the user terminal and the user, and displays the visual output to the user.
  • the visual output may include graphics, text, icons, videos, and the like.
  • Display controller 5091 in I/O subsystem 509 receives electrical signals from touch screen 512 or transmits electrical signals to touch screen 512.
  • the touch screen 512 detects the contact on the touch screen, and the display controller 5091 converts the detected contact into an interaction with the user interface object displayed on the touch screen 512, that is, realizes human-computer interaction, and the user interface object displayed on the touch screen 512 can be operated.
  • the icon of the game, the icon of the network to the corresponding network, and the like.
  • the device may further comprise a light mouse, which is a touch sensitive surface that does not display a visual output, or an extension of a touch sensitive surface formed by the touch screen.
  • a radio frequency (RF) circuit 505 is configured to establish communication between the mobile phone and the wireless network (ie, the network side) to implement data reception and transmission between the mobile phone and the wireless network. For example, sending and receiving short messages, emails, and the like.
  • the RF circuit 505 receives and transmits an RF signal, also referred to as an electromagnetic signal, and the RF circuit 505 converts the electrical signal into an electromagnetic signal or converts the electromagnetic signal into an electrical signal, and through the electromagnetic signal to the communication network and others The device communicates.
  • the RF circuit 505 can include known circuitry for performing the functions described above.
  • the RF circuit 505 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a codec (COder-DECoder, CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • an RF transceiver one or more amplifiers
  • a tuner one or more oscillators
  • a digital signal processor a codec (COder-DECoder, CODEC) chipset, Subscriber Identity Module (SIM), etc.
  • SIM Subscriber Identity Module
  • the audio circuit 506 is arranged to receive audio data from the peripheral interface 503, convert the audio data into an electrical signal, and transmit the electrical signal to the speaker 511.
  • the speaker 511 is arranged to restore the voice signal received by the handset from the wireless network via the RF circuit 505 to sound and play the sound to the user.
  • the power management chip 508 is configured to provide power and power management for the hardware connected to the CPU 502, the I/O subsystem, and the peripheral interface.
  • the CPU 502 provided in this embodiment can perform the following operations.
  • the first broadcast queue corresponding to the broadcast message sending instruction is obtained.
  • the broadcast messages with different sending processes are removed from the first broadcast queue, and the second broadcast queue is formed according to the sending process.
  • the forming the second broadcast queue according to the sending process includes: forming a broadcast message that is consistent by the sending process into a second broadcast queue.
  • the method further includes: simultaneously starting to send the broadcast message in the first broadcast queue corresponding to the broadcast message sending instruction, and the second broadcast queue Broadcast message in .
  • the traversing the broadcast message to be sent in the first broadcast queue in sequence comprises: traversing each broadcast message to be sent in the first broadcast queue in a preset length.
  • the method further includes: determining a sending process of sending the newly added broadcast message, if there is a broadcast queue that is consistent with the sending process of the newly added broadcast message, Adding the newly added broadcast message to a broadcast queue consistent with the sending process; if there is no broadcast queue that is consistent with the sending process of the newly added broadcast message, creating a third broadcast queue, and creating the new The added broadcast message is added to the newly created third broadcast queue.
  • the broadcast queue adjustment method, device and terminal device provided by the disclosure solve the defects of the related art broadcast mechanism, improve the broadcast processing efficiency, reduce the system resource consumption, and increase the system stability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种广播队列调整方法、装置和终端设备,其中方法包括:监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程;将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。

Description

广播队列调整方法、装置和终端设备 技术领域
本公开涉及计算机技术,例如涉及一种广播队列调整方法、装置和终端设备。
背景技术
广播是一种被广泛运用的在应用程序之间进行信息传输的机制,以安卓操作系统为例,其通过广播(Broadcast)来实现应用程序间数据的传输和共享。典型的,如安卓自带的短信、电话等广播。
在安卓系统中,广播发送者通过调用sendBroadcast函数进行广播消息的发送,广播接收者通过调用registerReceiver函数在管理模块中进行广播接收器(Broadcast Receiver)的注册,并定义自身感兴趣的广播消息,由此来实现对相应的广播消息的接收。
相关技术中,广播的处理机制存在缺陷,使得广播处理效率低下,系统资源消耗过多且稳定性差。
发明内容
本公开提供了一种广播队列调整方法、装置和终端设备,提高了广播处理效率,降低了系统资源消耗,增加了系统的稳定性。
第一方面,本公开提供了一种广播队列调整方法,包括:
监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;
依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程;
将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程 组成第二广播队列。
第二方面,本公开还提供了一种广播队列调整装置,包括:
获取模块,设置为监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;
遍历模块,设置为依次遍历所述第一广播队列中的每个待发送的广播消息;
确定模块,设置为确定所述每个待发送的广播消息的发送进程;
调整模块,设置为将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
第三方面,本公开还提供了一种终端设备,包括:处理器、存储器以及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:
监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;
依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程;
将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
本公开还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述广播队列调整方法。
本公开提供的广播队列调整方法、装置和终端设备,解决了相关技术的广播机制存在的缺陷,提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。
附图说明
图1是本申请实施例提供的一种广播队列调整方法的流程图;
图2是本申请实施例提供的另一种广播队列调整方法的流程图;
图3是本申请实施例提供的另一种广播队列调整方法的流程图;
图4是本申请实施例提供的一种广播队列调整装置的结构框图;
图5是本申请实施例提供的一种终端设备的结构示意图。
具体实施方式
下面结合附图和实施例对本公开进行说明。为了便于描述,附图中仅示出了与本公开相关的部分而非全部结构。
图1是本申请实施例提供的一种广播队列调整方法的流程图,本实施例可适用于广播发送过程中,对广播队列进行调整的过程,该方法可以由本实施例提供的终端设备来执行,该终端设备的广播队列调整装置可采用软件和硬件中的至少一种方式实现,如图1所示,本实施例提供的广播队列调整方法包括如下步骤。
在步骤110中,监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列。
在广播处理过程中,广播发送者的服务进程通过调用广播发送函数(如sendBroadcast函数)将广播消息发送至管理模块(如活动管理服务(Activity Manager Service)),管理模块接收到该广播消息后将广播消息放入第一广播队列,管理模块通过进程通信机制(如Binder进程通信机制)将第一广播队列中的广播消息发送至符合接收条件的广播接收者。
广播机制中,广播消息指的是系统或者应用程序在运行过程中发送的,用于在系统和应用程序中的至少一个之间传输的信息,示例性的,广播消息可以是系统启动广播消息、短信类广播消息、电话类广播消息或者三方应用类广播消息等。
在一个实施例中,以计数器应用程序作为广播发送者为例,该计数器应用程序发送广播消息至管理模块的方式可采用如下表示。
//创建一个广播消息
Intent intent=new Intent(BROADCAST_COUNTER_ACTION);
//传递计数器参数及对应的计数值
intent.putExtra(COUNTER_VALUE,counter);
//发送广播消息
sendBroadcast(intent)
在一个实施例中,管理模块接收广播发送者发送的广播消息后形成第一广播队列,对第一广播队列中的广播消息依次进行发送。广播发送者发送广播消息的过程和广播接收者接收广播消息的过程是异步操作过程,广播发送者和广播接收者通过管理模块实现低耦合的关系匹配。其中,根据广播发送方式的不同可将广播消息分为普通广播消息和有序广播消息。普通广播消息被管理模块发出后,广播接收者对该广播消息的接收是无序的,而有序广播消息被管理模块发出后,广播接收者按照广播消息的顺序依次接收,即第一个广播接收者接收到广播消息并处理完毕后,第二个广播接收者才能开始接收并处理该广播消息,依次类推,本实施例公开的广播队列调整方法可限定在有序广播方式中。
在一个实施例中,当监测到广播消息的发送指令后,获取所述广播消息发送指令对应的第一广播队列。其中,该广播消息为管理模块中维护的广播队列中的广播消息,当广播消息发送时,获取该广播消息所在的第一广播队列。示例性的,可依据该广播消息的名称(如BROADCAST_COUNTER_ACTION)进行第一广播队列查找,确定包含该广播消息名称的队列为对应的第一广播队列。
在步骤120中,依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程。
在一个实施例中,对第一广播队列中当前待发送的广播消息进行遍历,并确定该广播消息对应的发送进程。进程指系统中的程序关于数据集合上的运行活动,是系统进行资源分配和调度的基本单位,是系统结构的组成基础,为应用程序的基本执行实体。示例性的,该发送进程可以是广播发送者发送广播消 息时的进程,还可以是管理模块发送该广播消息至广播接收者并进行处理时占用的进程。
在一个实施例中,确定所述每个待发送的广播消息的发送进程的过程可以是依据广播消息的名称(如BROADCAST_COUNTER_ACTION)确定对应的执行该广播消息的进程标识(Identification,ID)号。
在步骤130中,将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
在一个实施例中,依据发送进程组成第二广播队列包括:将发送进程一致的广播消息组成第二广播队列。示例性的,可以依据进程ID号,将广播消息发送进程对应的进程ID不相同的广播消息移除出第一广播队列,再依据进程ID划分第二广播队列,每个新组成的第二广播队列中的广播消息的发送进程保持一致。
在一个实施例中,在所述将发送进程一致的广播消息组成第二广播队列之后,所述广播队列调整方法还包括:同时开始发送所述广播消息发送指令对应的第一广播队列中的广播消息和所述第二广播队列中的广播消息。该实施例中,原有广播队列和新建广播队列中的广播消息的发送进程不同,通过同时发送不同发送进程的广播消息实现了有序广播队列中广播消息的并行发送,使得广播接收者可以同时进行广播消息的处理。
在一个实施例中,广播接收者接收广播消息的注册过程可如下表示(以接收计数器发送的广播消息为例)。
//定义一个感兴趣的广播消息(订阅广播消息)
IntentFilter counterActionFilter=
new IntentFilter(CounterService.BROADCAST_COUNTER_ACTION);
//进行广播接收器的注册
registerReceiver(counterActionReceiver,counterActionFilter)
当该广播发送者发送的广播消息(BROADCAST_COUNTER_ACTION)由 管理模块发出后,由于广播接收者注册了对应的接收该广播消息的广播接收器,该广播消息即会被对应的广播接收者接收和处理。
本实施例提供的广播队列调整方法,在监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列,依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程,将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列,解决了相关技术的有序广播队列中,需要等待已发送的广播消息处理完毕才能执行下一广播消息发送带来的广播处理效率低下的问题,将不同发送进程的广播消息分别创建在各自的广播队列中并行发送,缩短了广播队列的处理时间。
图2是本申请实施例提供的另一种广播队列调整方法的流程图,在上述实施例的基础上,可选的,所述依次遍历所述第一广播队列中的每个待发送的广播消息包括:依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息。
如图2所示,本实施例提供的广播队列调整方法包括如下步骤。
在步骤210中,监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列。
在步骤220中,依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程。
在一个实施例中,广播队列中可能包含很多广播消息,遍历确认广播消息对应的发送进程的过程中,广播队列排序考前的广播消息可能已经被发送且处理完毕,为提高遍历效率以及广播消息发送进程比对的准确性,采取遍历预设长度下的广播队列中的待发送广播消息,该预设长度可以是100、200或500等。其中,该预设长度可采用预设的默认值,还可以是根据系统的负载(CPU占用率、内存占用率)以及当前剩余电量来综合确定并实时动态调整。当系统负载 较高(如CPU占用率大于80%,内存占用率大于80%)且剩余电量较低(小于20%)时,将该遍历的广播队列的预设长度进行减小(如设置为100),反之,则增大该预设长度的设置值(如500)。
在步骤230中,将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
在一个实施例中,监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列,依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程,将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列,提高了比对广播消息发送进程是否一致的准确性,同时降低了系统的资源消耗,优化了广播处理机制。
图3是本申请实施例提供的另一种广播队列调整方法的流程图,在上述实施例的基础上,可选的,在所述依据发送进程组成第二广播队列之后,还包括:确定发送新增的广播消息的发送进程,如果存在和所述新增的广播消息的发送进程一致的广播队列,则将所述新增的广播消息添加至发送进程一致的广播队列中;如果不存在和所述新增的广播消息的发送进程一致的广播队列,则创建第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
如图3所示,本实施例提供的广播队列调整方法包括如下步骤。
在步骤310中,监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列。
在步骤320中,依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程。
在步骤330中,将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列,确定发送新增的广播消息的发送进程。
在步骤340中,判断是否存在和所述新增的广播消息的发送进程一致的广 播队列,如果是,则执行步骤350,否则执行步骤360。
在一个实施例中,当广播发送者发送广播消息至管理模块时,对新增的广播消息的发送进行进程确定,如果现有的广播队列存在和该广播消息发送进程一致的广播消息,则将该广播消息添加至对应的广播队列中,如果不存在则创建第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
在步骤350中,将所述新增的广播消息添加至发送进程一致的广播队列中。
在一个实施例中,可将该新增的广播消息添加至发送进程一致的广播队列的队尾。
在步骤360中,创建第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
在一个实施例中,当S304判断得到不存在和该新增的广播消息的发送进程一致的广播队列时,创建第三广播队列。由此,在广播消息发送时,可同时发送不同广播队列中的广播消息,实现广播消息的并发处理。
本实施例提供了一种广播队列调整方法,当有新增的广播消息时,确定发送新增的广播消息的发送进程,如果存在和所述新增的广播消息的发送进程一致的广播队列,则将所述新增的广播消息添加至发送进程一致的广播队列中,如果不存在和所述新增的广播消息的发送进程一致的广播队列,则创建第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中,使得在广播消息入队时完成广播队列的调整,相同发送进程的广播消息在同一个发送队列中,可实现广播消息的并行发送,提高了广播处理效率。
图4是本申请实施例提供的一种广播发送装置的结构框图,该装置用于执行上述实施例提供的广播队列调整方法,具备执行方法相应的功能模块和有益效果。如图4所示,该装置包括:获取模块401、遍历模块402、确定模块403和调整模块404。
其中,获取模块401设置为监测到广播消息发送指令后,获取所述广播消 息发送指令对应的第一广播队列。
遍历模块402设置为依次遍历所述第一广播队列中的每个待发送的广播消息。
确定模块403设置为确定所述每个待发送的广播消息的发送进程。
调整模块404设置为将发送进程不相同的广播消息移除出所述广播队列,并依据发送进程组成第二广播队列。
本实施例提供的技术方案,解决了相关技术的广播机制存在的缺陷,提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。
可选的,所述调整模块404是设置为:将发送进程一致的广播消息组成第二广播队列。
可选的,还包括:发送模块405,设置为在所述将发送进程一致的广播消息组成第二广播队列之后,同时开始发送所述广播消息发送指令对应的第一广播队列中的广播消息和所述第二广播队列中的广播消息。
可选的,所述遍历模块402是设置为:依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息。
可选的,所述调整模块404还设置为:在所述依据发送进程组成第二广播队列之后,确定发送新增的广播消息的发送进程,如果存在和所述新增的广播消息的发送进程一致的广播队列,则将所述新增的广播消息添加至发送进程一致的广播队列中;如果不存在和所述新增的广播消息的发送进程一致的广播队列,则创建第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
本实施例在上述实施例的基础上提供了一种终端设备,该终端设备可以包括本实施例提供的广播队列调整装置。图5是本申请实施例提供的一种终端设 备的结构示意图,如图5所示,该终端设备可以包括:存储器501、中央处理器(Central Processing Unit,CPU)502、外设接口503、RF(Radio Frequency,射频)电路505、音频电路506、扬声器511、电源管理芯片508、输入/输出(I/O)子系统509、触摸屏512、其他输入/控制设备510以及外部端口504,这些部件通过一个或多个通信总线或信号线507来通信。
图示终端设备500仅仅是终端设备的一个范例,并且终端设备500可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面就本实施例提供的用于多开应用的权限管理的终端设备进行描述,该终端设备以智能手机为例。
存储器501,所述存储器501可以被CPU502、外设接口503等访问,所述存储器501可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口503,所述外设接口503可以将设备的输入和输出外设连接到中央处理器(Central Processing Unit,CPU)502和存储器501。
输入/输出(Input/Output,I/O)子系统509,所述I/O子系统509可以将设备上的输入输出外设,例如触摸屏512和其他输入/控制设备510,连接到外设接口503。I/O子系统509可以包括显示控制器5091和用于控制其他输入/控制设备510的一个或多个输入控制器5092。其中,一个或多个输入控制器5092从其他输入/控制设备510接收电信号或者向其他输入/控制设备510发送电信号,其他输入/控制设备510可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器5092可以与以下任 一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。
触摸屏512,所述触摸屏512是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。
I/O子系统509中的显示控制器5091从触摸屏512接收电信号或者向触摸屏512发送电信号。触摸屏512检测触摸屏上的接触,显示控制器5091将检测到的接触转换为与显示在触摸屏512上的用户界面对象的交互,即实现人机交互,显示在触摸屏512上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。其中,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
射频(Radio Frequency,RF)电路505,设置为建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。可选地,RF电路505接收并发送RF信号,RF信号也称为电磁信号,RF电路505将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路505可以包括用于执行上述功能的已知电路,RF电路505包括天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、编译码器(COder-DECoder,CODEC)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。
音频电路506,设置为从外设接口503接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器511。
扬声器511,设置为将手机通过RF电路505从无线网络接收的语音信号,还原为声音并向用户播放该声音。
电源管理芯片508,设置为为CPU502、I/O子系统及外设接口所连接的硬件进行供电及电源管理。
本实施例提供的CPU502可执行如下操作。
监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列。
依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程;
将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
可选的,所述依据发送进程组成第二广播队列包括:将发送进程一致的广播消息组成第二广播队列。
可选的,在所述将发送进程一致的广播消息组成第二广播队列之后,还包括:同时开始发送所述广播消息发送指令对应的第一广播队列中的广播消息和所述第二广播队列中的广播消息。
可选的,所述依次遍历所述第一广播队列中的每个待发送的广播消息包括:依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息。
可选的,在所述依据发送进程组成第二广播队列之后,还包括:确定发送新增的广播消息的发送进程,如果存在和所述新增的广播消息的发送进程一致的广播队列,则将所述新增的广播消息添加至发送进程一致的广播队列中;如果不存在和所述新增的广播消息的发送进程一致的广播队列,则创建第第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
工业实用性
本公开提供的广播队列调整方法、装置和终端设备,解决了相关技术的广播机制存在的缺陷,提高了广播处理效率,降低了系统资源消耗,使得系统稳定性增加。

Claims (12)

  1. 一种广播队列调整方法,包括:
    监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;
    依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程;
    将发送进程不相同的广播消息移除出所述广播队列,并依据发送进程组成第二广播队列。
  2. 根据权利要求1所述的方法,其中,所述依据发送进程组成第二广播队列包括:
    将发送进程一致的广播消息组成第二广播队列。
  3. 根据权利要求2所述的方法,其中,在所述将发送进程一致的广播消息组成第二广播队列之后,所述方法还包括:
    同时开始发送所述广播消息发送指令对应的第一广播队列中的广播消息和所述第二广播队列中的广播消息。
  4. 根据权利要求1-3中任一项所述的方法,其中,所述依次遍历所述第一广播队列中的每个待发送的广播消息包括:
    依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息。
  5. 根据权利要求1-3中任一项所述的方法,其中,在所述依据发送进程组成第二广播队列之后,所述方法还包括:
    确定发送新增的广播消息的发送进程,如果存在和所述新增的广播消息的发送进程一致的广播队列,则将所述新增的广播消息添加至发送进程一致的广播队列中;
    如果不存在和所述新增的广播消息的发送进程一致的广播队列,则创建第 三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
  6. 一种广播队列调整装置,包括:
    获取模块,设置为监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;
    遍历模块,设置为依次遍历所述第一广播队列中的每个待发送的广播消息;
    确定模块,设置为确定所述每个待发送的广播消息的发送进程;
    调整模块,设置为将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
  7. 根据权利要求6所述的装置,其中,所述调整模块是设置为:
    将发送进程一致的广播消息组成第二广播队列。
  8. 根据权利要求7所述的装置,还包括:
    发送模块,设置为在所述将发送进程一致的广播消息组成第二广播队列之后,同时开始发送所述广播消息发送指令对应的第一广播队列中的广播消息和所述第二广播队列中的广播消息。
  9. 根据权利要求6-8中任一项所述的装置,其中,所述遍历模块是设置为:
    依次遍历预设长度下的所述第一广播队列中的每个待发送的广播消息。
  10. 根据权利要求6-8中任一项所述的装置,其中,所述调整模块还设置为:
    在所述依据发送进程组成第二广播队列之后,确定发送新增的广播消息的发送进程,如果存在和所述新增的广播消息的发送进程一致的广播队列,则将所述新增的广播消息添加至发送进程一致的广播队列中;
    如果不存在和所述新增的广播消息的发送进程一致的广播队列,则创建第三广播队列,并将所述新增的广播消息添加至新创建的第三广播队列中。
  11. 一种终端设备,包括:处理器、存储器以及存储在存储器上并可在处 理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现以下步骤:
    监测到广播消息发送指令后,获取所述广播消息发送指令对应的第一广播队列;
    依次遍历所述第一广播队列中的每个待发送的广播消息,确定所述每个待发送的广播消息的发送进程;
    将发送进程不相同的广播消息移除出所述第一广播队列,并依据发送进程组成第二广播队列。
  12. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1-5任一项的方法。
PCT/CN2018/078627 2017-03-10 2018-03-09 广播队列调整方法、装置和终端设备 WO2018161969A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18763662.6A EP3591528A4 (en) 2017-03-10 2018-03-09 METHOD AND APPARATUS FOR ADJUSTING BROADCAST WAIT, AND TERMINAL EQUIPMENT
US16/565,423 US10908976B2 (en) 2017-03-10 2019-09-09 Broadcast queue adjustment method, terminal, and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710140902.9 2017-03-10
CN201710140902.9A CN106874131B (zh) 2017-03-10 2017-03-10 广播队列调整方法、装置和终端设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/565,423 Continuation US10908976B2 (en) 2017-03-10 2019-09-09 Broadcast queue adjustment method, terminal, and storage medium

Publications (1)

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

Family

ID=59170016

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078627 WO2018161969A1 (zh) 2017-03-10 2018-03-09 广播队列调整方法、装置和终端设备

Country Status (4)

Country Link
US (1) US10908976B2 (zh)
EP (1) EP3591528A4 (zh)
CN (1) CN106874131B (zh)
WO (1) WO2018161969A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710425A (zh) * 2018-12-19 2019-05-03 北京金山安全软件有限公司 一种消息监听方法和装置
CN116701008A (zh) * 2022-09-23 2023-09-05 荣耀终端有限公司 广播方法和设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874131B (zh) 2017-03-10 2020-06-09 Oppo广东移动通信有限公司 广播队列调整方法、装置和终端设备
CN115277557B (zh) * 2022-07-25 2024-01-05 Oppo广东移动通信有限公司 广播处理方法、装置、电子设备及存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174225A (zh) * 2006-11-02 2008-05-07 华为技术有限公司 一种实现消息通信的装置及方法
CN103051521A (zh) * 2013-01-09 2013-04-17 浪潮电子信息产业股份有限公司 一种云环境下消息的转发方法
CN103561421A (zh) * 2013-10-30 2014-02-05 上海天奕达电子科技有限公司 一种监控智能终端中多个应用程序的方法及装置
CN103595547A (zh) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 智能设备的广播拦截方法和装置
CN106339435A (zh) * 2016-08-19 2017-01-18 中国银行股份有限公司 一种数据分发方法、装置及系统
CN106874131A (zh) * 2017-03-10 2017-06-20 广东欧珀移动通信有限公司 广播队列调整方法、装置和终端设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040107240A1 (en) * 2002-12-02 2004-06-03 Globespan Virata Incorporated Method and system for intertask messaging between multiple processors
CN101448018A (zh) * 2008-12-26 2009-06-03 中兴通讯股份有限公司 进程间通信方法和装置
CN102291309B (zh) * 2011-08-26 2014-04-16 华为技术有限公司 一种基于令牌环的网络流量控制方法、节点及系统
US9436532B1 (en) * 2011-12-20 2016-09-06 Emc Corporation Method and system for implementing independent message queues by specific applications
US9344391B2 (en) * 2012-03-14 2016-05-17 Microsoft Technology Licensing, Llc High density hosting for messaging service
US10491687B2 (en) * 2013-05-20 2019-11-26 Packsize Llc Method and system for flexible node composition on local or distributed computer systems
US10251194B2 (en) * 2013-06-17 2019-04-02 Nxp Usa, Inc. Efficient scheduling in asynchronous contention-based system
CN105187282B (zh) * 2015-08-13 2018-10-26 小米科技有限责任公司 智能家居设备的控制方法、装置、系统及设备
CN105204949B (zh) 2015-08-27 2021-06-08 威盛电子股份有限公司 在手机安全数码卡加密过程中主动触发系统广播的方法与装置
US9342388B1 (en) * 2015-12-02 2016-05-17 International Business Machines Corporation Dynamic queue alias
CN105897438A (zh) 2016-03-22 2016-08-24 上海斐讯数据通信技术有限公司 一种广播发送方法及装置
US10009659B2 (en) * 2016-03-31 2018-06-26 Disney Enterprises, Inc. System and method for hybrid push-based streaming
CN106878957B (zh) * 2017-03-10 2019-05-14 Oppo广东移动通信有限公司 广播队列生成方法、装置和终端设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174225A (zh) * 2006-11-02 2008-05-07 华为技术有限公司 一种实现消息通信的装置及方法
CN103051521A (zh) * 2013-01-09 2013-04-17 浪潮电子信息产业股份有限公司 一种云环境下消息的转发方法
CN103561421A (zh) * 2013-10-30 2014-02-05 上海天奕达电子科技有限公司 一种监控智能终端中多个应用程序的方法及装置
CN103595547A (zh) * 2013-11-15 2014-02-19 北京奇虎科技有限公司 智能设备的广播拦截方法和装置
CN106339435A (zh) * 2016-08-19 2017-01-18 中国银行股份有限公司 一种数据分发方法、装置及系统
CN106874131A (zh) * 2017-03-10 2017-06-20 广东欧珀移动通信有限公司 广播队列调整方法、装置和终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3591528A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710425A (zh) * 2018-12-19 2019-05-03 北京金山安全软件有限公司 一种消息监听方法和装置
CN109710425B (zh) * 2018-12-19 2020-06-26 北京金山安全软件有限公司 一种消息监听方法和装置
CN116701008A (zh) * 2022-09-23 2023-09-05 荣耀终端有限公司 广播方法和设备

Also Published As

Publication number Publication date
CN106874131B (zh) 2020-06-09
EP3591528A4 (en) 2020-01-22
EP3591528A1 (en) 2020-01-08
US10908976B2 (en) 2021-02-02
CN106874131A (zh) 2017-06-20
US20200004613A1 (en) 2020-01-02

Similar Documents

Publication Publication Date Title
US10819455B2 (en) Broadcast processing method, non-transitory storage medium, and electronic device
WO2018161969A1 (zh) 广播队列调整方法、装置和终端设备
US10097292B2 (en) Method, device, terminal and storage medium for adjusting broadcast message queue
CN106851014B (zh) 调整广播消息队列的方法、装置及终端
CN107070670B (zh) 控制广播发送者发送广播消息的方法、装置和终端设备
EP3591949B1 (en) Broadcast message queuing method and device, and terminal
CN106921947B (zh) 调整广播消息队列的方法、装置及终端
CN106851015B (zh) 调整广播消息队列的方法、装置及终端
WO2018161963A1 (zh) 广播接收者的管理方法、装置及终端
CN106953852B (zh) 广播接收器的注册方法、装置和终端设备
US20200004612A1 (en) Method of Generating Broadcast Queue, Storage Medium, and Terminal
EP3373137B1 (en) Method, apparatus and terminal device for sending broadcast
EP3373140B1 (en) Method for processing ordered broadcast and electronic device
CN106936826B (zh) 广播接收器的注册方法、装置和终端设备
WO2018161955A1 (zh) 一种广播接收者的控制方法、装置及移动终端
CN106899943B (zh) 控制广播发送者发送广播消息的方法、装置和终端设备
CN109614248B (zh) 消息压缩方法、装置、存储介质及终端设备
US20180262358A1 (en) Method for monitoring broadcast message and terminal
CN106919461B (zh) 广播接收者队列调整方法、装置和终端设备
CN106936996B (zh) 发送关机广播的方法、装置及终端

Legal Events

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

Ref document number: 18763662

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018763662

Country of ref document: EP

Effective date: 20190930