IP Library Granted Patent US 11,051,272
Granted Patent B2
US 11,051,272 · App. 16/565,425 · Granted Jun 29, 2021

Method for arranging broadcast message in operating system and electronic device

Inventors: Runsheng Pei (Guangdong, CN); Liangjing Fu (Guangdong, CN); Ruyu Wu (Guangdong, CN); Zhiyong Lin (Guangdong, CN); Jun Zhang (Guangdong, CN)
Assignee: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
H04W72/005H04M1/72403H04M1/72484H04W72/10
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,051,272
App. No.
16/565,425
Granted
Jun 29, 2021
Kind
B2
Abstract

A method for arranging a broadcast message in an operating system and an electronic device are provided. The method includes determining a broadcast receiver of the broadcast message when the broadcast message is sent from the broadcast sender; determining a priority of the broadcast message according to the broadcast receiver; determining an insertion location of the broadcast message in a broadcast message queue according to the priority of the broadcast message; and arranging the broadcast message at the insertion location such that the broadcast message is inserted into the broadcast message queue.

Claims (61)

1. A method for arranging a broadcast message in an operating system, comprising:

determining a broadcast receiver of the broadcast message when the broadcast message is sent from the broadcast sender;

determining a priority of the broadcast message according to the broadcast receiver, wherein the broadcast sender and the broadcast receiver are the operation system or an application, and the broadcast message sent from the broadcast sender is monitored through ActivityManagerService;

determining an insertion location of the broadcast message in a broadcast message queue according to the priority of the broadcast message; and

arranging the broadcast message at the insertion location such that the broadcast message is inserted into the broadcast message queue,

wherein the determining the priority of the broadcast message according to the broadcast receiver comprises:

counting a use frequency of the broadcast receiver in a preset period;

determining a frequency range in which the use frequency is located; and

determining the priority of the broadcast message according to the frequency range.

2. The method of claim 1 , wherein a correspondence between frequency ranges and priorities of broadcast messages is established in advance, such that the priority of the broadcast message is determined according to the frequency range in which the use frequency is located.

3. The method of claim 1 , wherein the determining a priority of the broadcast message according to the broadcast receiver comprises:

determining that the broadcast message has a higher priority than all broadcast messages in the broadcast message queue when the broadcast receiver of the broadcast message is currently running.

4. The method of claim 1 , wherein the broadcast message queue comprises a plurality of broadcast messages, each of the plurality of broadcast messages in the broadcast message queue has a corresponding priority; and

the determining an insertion location of the broadcast message in a broadcast message queue according to the priority of the broadcast message comprises:

comparing the priority of the broadcast message with priorities of the broadcast messages in the broadcast message queue; and

determining the insertion location of the broadcast message in the broadcast message queue according to a result of the comparing.

5. The method of claim 4 , wherein a broadcast message with a first priority in the broadcast message queue is located before another broadcast message with a second priority in the broadcast message queue, wherein the first priority is higher than the second priority.

6. The method of claim 5 , wherein the determining the insertion location of the broadcast message in the broadcast message queue according to a result of the comparing comprises:

determining the insertion location of the broadcast message to be next to one broadcast message in the broadcast message queue when the one broadcast message in the broadcast message queue has a priority same to that of the broadcast message;

determining whether the priority of the broadcast message is higher than that of all broadcast messages in the broadcast message queue when no broadcast message in the broadcast message queue has a priority same to that of the broadcast message;

determining the insertion location of the broadcast message to be a head of the broadcast message queue when the priority of the broadcast message is higher than that of all broadcast messages in the broadcast message queue;

determining whether the priority of the broadcast message is lower than that of all broadcast messages in the broadcast message queue when the priority of the broadcast message is not higher than that of all broadcast messages in the broadcast message queue;

determining the insertion location of the broadcast message to be a tail of the broadcast message queue when the priority of the broadcast message is lower than that of all broadcast messages in the broadcast message queue; and

determining two adjacent broadcast messages in the broadcast message queue which have priorities adjacent to the priority of the target broadcast message, and determining the insertion location of the broadcast message to be between the two adjacent broadcast messages when the priority is not lower than that of all broadcast messages in the broadcast message queue, wherein one of the two adjacent broadcast messages has a priority higher than the priority of the broadcast message and another of the two adjacent broadcast messages has a priority lower than the priority of the broadcast message.

7. The method of claim 1 , after the inserting the broadcast message into the broadcast message queue, further comprising:

identifying broadcast receivers of a current broadcast message according to an order of broadcast messages in the broadcast message queue; and

distributing the current broadcast message to the broadcast receivers.

8. The method of claim 1 , wherein the operating system comprises Android system.

9. The method of claim 1 , wherein the broadcast receiver of the broadcast message is determined through a broadcast receiving process configured for registering to receive the broadcast message.

10. An electronic device, comprising a non-transitory memory storing a computer program, and a processor, wherein the processor is configured to execute the computer program to:

determine a broadcast receiver of a first broadcast message when the first broadcast message is sent from a broadcast sender;

determine a priority of the first broadcast message according to the broadcast receiver, wherein the broadcast sender and the broadcast receiver are the operation system or an application, and the broadcast message sent from the broadcast sender is monitored through ActivityManagerService;

determine an insertion position of the first broadcast message in a broadcast message queue according to the priority of the first broadcast message; and

arrange the first broadcast message at the insertion location such that the first broadcast message is inserted into the broadcast message queue,

wherein determining a priority of the broadcast message according to the broadcast receiver comprises:

counting a use frequency of the broadcast receiver in a preset period;

determining a frequency range in which the use frequency is located; and

determining the priority of the broadcast message according to the frequency range.

11. The electronic device of claim 10 , wherein the priority of the first broadcast message is determined according to the use frequency of the broadcast receiver in a preset period.

12. The electronic device of claim 11 , wherein the priority of the first broadcast message is determined according to a frequency range in which the use frequency is located.

13. The electronic device of claim 10 , wherein the broadcast message queue comprises a plurality of second broadcast messages;

the priority of the first broadcast message is determined according to whether the broadcast receiver of the first broadcast message is currently running, wherein the priority of the first broadcast message is higher than that of all the second broadcast messages when the broadcast receiver of the first broadcast message is currently running.

14. The electronic device of claim 10 , wherein the broadcast message queue comprises a plurality of second broadcast messages, each of the plurality of second broadcast messages has a corresponding priority; and

the insertion location of the first broadcast message in the broadcast message queue is determined according to a result of comparing the priority of the first broadcast message with priorities of the second broadcast messages.

15. The electronic device of claim 14 , wherein a second broadcast message with a first priority in the broadcast message queue is located immediately before another second broadcast message with a second priority in the broadcast message queue, wherein the first priority is higher than the second priority.

16. The electronic device of claim 15 , wherein

the insertion location of the first broadcast message is determined to be next to one second broadcast message in the broadcast message queue when the one second broadcast message and the first broadcast message have the same priority;

the insertion location of the first broadcast message is determined to be a head of the broadcast message queue when the priority of the first broadcast message is higher than that of all the second broadcast messages;

the insertion location of the first broadcast message is determined to be a tail of the broadcast message queue when the priority of the first broadcast message is lower than that of all the second broadcast messages; and

the insertion location of the first broadcast message is determined to be between two adjacent second broadcast messages which have priorities adjacent to the priority of the first broadcast message when the priority of the first broadcast message is not lower than that of all the second broadcast messages in the broadcast message queue, wherein one of the two adjacent second broadcast message has a priority higher than the priority of the first broadcast message, and another of the two adjacent second broadcast message has a priority lower than the priority of the second broadcast message.

17. The electronic device of claim 10 , wherein the operating system comprises Android system.

18. The electronic device of claim 10 , wherein the broadcast receiver of the first broadcast message is determined through a broadcast receiving process configured for registering to receive the first broadcast message.

19. A non-transitory storage medium storing a computer program, when executed, causing a processor to:

determine a broadcast receiver of a first broadcast message when the first broadcast message is transmitted by a broadcast sender;

determine a priority of the first broadcast message according to the broadcast receiver, wherein the broadcast sender and the broadcast receiver are the operation system or an application, and the broadcast message sent from the broadcast sender is monitored through ActivityManagerService;

determine an insertion position of the first broadcast message in a broadcast message queue according to the priority of the first broadcast message; and

arrange the first broadcast message at the insertion location such that the first broadcast message is inserted into the broadcast message queue,

wherein determining a priority of the broadcast message according to the broadcast receiver comprises:

counting a use frequency of the broadcast receiver in a preset period;

determining a frequency range in which the use frequency is located; and

determining the priority of the broadcast message according to the frequency range.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 24, 2025
From: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
To: NOKIA TECHNOLOGIES OY
Reel/Frame 071711/0153 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 17, 2019
From: PEI, RUNSHENG; FU, LIANGJING; WU, RUYU; LIN, ZHIYONG; ZHANG, JUN
To: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., LTD.
Reel/Frame 050408/0441 →
Priority Claims (1)
CN 201710140760.6 · Mar 10, 2017 · national
Continuity (2)
Continuation PCTCN2018078626 · Mar 9, 2018
Related Publication 20200008174A1 · Jan 2, 2020