Home
last modified time | relevance | path

Searched refs:BroadcastRecord (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/core/java/com/android/server/am/
DBroadcastProcessQueue.java20 import static com.android.server.am.BroadcastRecord.deliveryStateToString;
21 import static com.android.server.am.BroadcastRecord.isReceiverEquals;
147 private @Nullable BroadcastRecord mActive;
246 private final ArrayList<BroadcastRecord> mOutgoingBroadcasts = new ArrayList<>();
255 private @NonNull ArrayDeque<SomeArgs> getQueueForBroadcast(@NonNull BroadcastRecord record) { in getQueueForBroadcast()
265 public void enqueueOutgoingBroadcast(@NonNull BroadcastRecord record) { in enqueueOutgoingBroadcast()
302 public BroadcastRecord enqueueOrReplaceBroadcast(@NonNull BroadcastRecord record, in enqueueOrReplaceBroadcast()
308 final BroadcastRecord replacedBroadcastRecord = replaceBroadcast(record, recordIndex); in enqueueOrReplaceBroadcast()
312 == BroadcastRecord.DELIVERY_PENDING)) { in enqueueOrReplaceBroadcast()
335 && (record.getDeliveryState(recordIndex) == BroadcastRecord.DELIVERY_PENDING)) { in enqueueOrReplaceBroadcast()
[all …]
DBroadcastHistory.java45 mBroadcastHistory = new BroadcastRecord[MAX_BROADCAST_HISTORY]; in BroadcastHistory()
55 private final ArrayList<BroadcastRecord> mFrozenBroadcasts = new ArrayList<>();
60 private final ArrayList<BroadcastRecord> mPendingBroadcasts = new ArrayList<>();
66 final BroadcastRecord[] mBroadcastHistory;
85 void onBroadcastFrozenLocked(@NonNull BroadcastRecord r) { in onBroadcastFrozenLocked()
89 void onBroadcastEnqueuedLocked(@NonNull BroadcastRecord r) { in onBroadcastEnqueuedLocked()
94 void onBroadcastFinishedLocked(@NonNull BroadcastRecord r) { in onBroadcastFinishedLocked()
99 public void addBroadcastToHistoryLocked(@NonNull BroadcastRecord original) { in addBroadcastToHistoryLocked()
102 final BroadcastRecord historyRecord = original.maybeStripForHistory(); in addBroadcastToHistoryLocked()
124 final BroadcastRecord r = mPendingBroadcasts.get(i); in dumpDebug()
[all …]
DProcessReceiverRecord.java35 private final ArraySet<BroadcastRecord> mCurReceivers = new ArraySet<BroadcastRecord>();
61 BroadcastRecord getCurReceiverAt(int index) { in getCurReceiverAt()
70 boolean hasCurReceiver(BroadcastRecord receiver) { in hasCurReceiver()
79 void addCurReceiver(BroadcastRecord receiver) { in addCurReceiver()
89 void removeCurReceiver(BroadcastRecord receiver) { in removeCurReceiver()
DBroadcastQueueModernImpl.java40 import static com.android.server.am.BroadcastRecord.DELIVERY_DEFERRED;
41 import static com.android.server.am.BroadcastRecord.deliveryStateToString;
42 import static com.android.server.am.BroadcastRecord.getReceiverClassName;
43 import static com.android.server.am.BroadcastRecord.getReceiverPackageName;
44 import static com.android.server.am.BroadcastRecord.getReceiverProcessName;
45 import static com.android.server.am.BroadcastRecord.getReceiverUid;
46 import static com.android.server.am.BroadcastRecord.isDeliveryStateTerminal;
97 import com.android.server.am.BroadcastRecord.DeliveryState;
232 private final AtomicReference<ArraySet<BroadcastRecord>> mReplacedBroadcastsCache =
239 private final AtomicReference<ArrayMap<BroadcastRecord, Boolean>> mRecordsLookupCache =
[all …]
DBroadcastRecord.java78 final class BroadcastRecord extends Binder { class
156 private ArrayMap<BroadcastRecord, Boolean> mMatchingRecordsCache;
406 BroadcastRecord(BroadcastQueue queue, in BroadcastRecord() method in BroadcastRecord
428 BroadcastRecord(BroadcastQueue _queue, in BroadcastRecord() method in BroadcastRecord
498 private BroadcastRecord(BroadcastRecord from, Intent newIntent) { in BroadcastRecord() method in BroadcastRecord
644 void copyEnqueueTimeFrom(@NonNull BroadcastRecord replacedBroadcast) { in copyEnqueueTimeFrom()
943 public BroadcastRecord maybeStripForHistory() { in maybeStripForHistory()
947 return new BroadcastRecord(this, intent.maybeStripForHistory()); in maybeStripForHistory()
1044 boolean matchesDeliveryGroup(@NonNull BroadcastRecord other) { in matchesDeliveryGroup()
1048 private static boolean matchesDeliveryGroup(@NonNull BroadcastRecord newRecord, in matchesDeliveryGroup()
[all …]
DBroadcastSkipPolicy.java74 public @Nullable String shouldSkipMessage(@NonNull BroadcastRecord r, @NonNull Object target) { in shouldSkipMessage()
89 private @Nullable String shouldSkipMessage(@NonNull BroadcastRecord r, in shouldSkipMessage()
351 public boolean disallowBackgroundStart(@NonNull BroadcastRecord r) { in disallowBackgroundStart()
367 private @Nullable String shouldSkipMessage(@NonNull BroadcastRecord r, in shouldSkipMessage()
629 private static String broadcastDescription(BroadcastRecord r, ComponentName component) { in broadcastDescription()
635 private boolean noteOpForManifestReceiver(int appOp, BroadcastRecord r, ResolveInfo info, in noteOpForManifestReceiver()
650 private boolean noteOpForManifestReceiverInner(int appOp, BroadcastRecord r, ResolveInfo info, in noteOpForManifestReceiverInner()
700 BroadcastRecord receiverRecord, String receivingPackageName, in requestStartTargetPermissionsReviewIfNeededLocked()
DBroadcastQueue.java118 public abstract void enqueueBroadcastLocked(@NonNull BroadcastRecord r); in enqueueBroadcastLocked()
DReceiverList.java43 BroadcastRecord curBroadcast = null;
DBroadcastConstants.java440 BroadcastRecord.CORE_DEFER_UNTIL_ACTIVE = CORE_DEFER_UNTIL_ACTIVE; in updateDeviceConfigConstants()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DBroadcastRecordTest.java21 import static com.android.server.am.BroadcastRecord.DELIVERY_DEFERRED;
22 import static com.android.server.am.BroadcastRecord.DELIVERY_DELIVERED;
23 import static com.android.server.am.BroadcastRecord.DELIVERY_PENDING;
24 import static com.android.server.am.BroadcastRecord.DELIVERY_SKIPPED;
25 import static com.android.server.am.BroadcastRecord.DELIVERY_TIMEOUT;
26 import static com.android.server.am.BroadcastRecord.calculateBlockedUntilBeyondCount;
27 import static com.android.server.am.BroadcastRecord.calculateDeferUntilActive;
28 import static com.android.server.am.BroadcastRecord.calculateUrgent;
29 import static com.android.server.am.BroadcastRecord.isReceiverEquals;
170 final BroadcastRecord r = createBroadcastRecord( in testSetDeliveryState_Single()
[all …]
DBroadcastQueueModernImplTest.java34 import static com.android.server.am.BroadcastRecord.isReceiverEquals;
193 private BroadcastRecord makeBroadcastRecord(Intent intent) { in makeBroadcastRecord()
198 private BroadcastRecord makeBroadcastRecord(Intent intent, List receivers) { in makeBroadcastRecord()
202 private BroadcastRecord makeBroadcastRecord(Intent intent, BroadcastOptions options) { in makeBroadcastRecord()
207 private BroadcastRecord makeBroadcastRecord(Intent intent, BroadcastOptions options, in makeBroadcastRecord()
212 private BroadcastRecord makeBroadcastRecord(Intent intent, BroadcastOptions options, in makeBroadcastRecord()
214 return new BroadcastRecord(mImpl, intent, mProcess, PACKAGE_RED, null, 21, TEST_UID, false, in makeBroadcastRecord()
221 BroadcastRecord record, int recordIndex) { in enqueueOrReplaceBroadcast()
226 BroadcastRecord record, int recordIndex, long enqueueTime) { in enqueueOrReplaceBroadcast()
375 final BroadcastRecord airplaneRecord = makeBroadcastRecord(airplane, options, in testRunnableAt_Normal_Deferrable()
[all …]
DBroadcastQueueTest.java26 import static com.android.server.am.BroadcastRecord.deliveryStateToString;
27 import static com.android.server.am.BroadcastRecord.isReceiverEquals;
412 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord()
418 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord()
424 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord()
430 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord()
436 private BroadcastRecord makeOrderedBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeOrderedBroadcastRecord()
442 private BroadcastRecord makeBroadcastRecord(Intent intent, ProcessRecord callerApp, in makeBroadcastRecord()
445 return new BroadcastRecord(mQueue, intent, callerApp, callerApp.info.packageName, null, in makeBroadcastRecord()
510 private void enqueueBroadcast(BroadcastRecord r) {
[all …]
DBaseBroadcastQueueTest.java145 public void addBroadcastToHistoryLocked(BroadcastRecord original) { in setUp()
DMockingOomAdjusterTests.java3260 receivers.addCurReceiver(mock(BroadcastRecord.class)); in build()
/frameworks/base/services/
Dart-profile464 …anagerService;->notifyBroadcastFinishedLocked(Lcom/android/server/am/BroadcastRecord;)V+]Landroid/…
617BroadcastRecord;)V+]Lcom/android/server/am/BroadcastHistory;Lcom/android/server/am/BroadcastHistor…
618 …/BroadcastHistory;->onBroadcastEnqueuedLocked(Lcom/android/server/am/BroadcastRecord;)V+]Ljava/uti…
619 …/BroadcastHistory;->onBroadcastFinishedLocked(Lcom/android/server/am/BroadcastRecord;)V+]Lcom/andr…
622 …Ljava/util/ArrayDeque;)V+]Lcom/android/server/am/BroadcastRecord;Lcom/android/server/am/BroadcastR…
623BroadcastRecord;ILcom/android/server/am/BroadcastProcessQueue$BroadcastConsumer;)Lcom/android/serv…
626 HSPLcom/android/server/am/BroadcastProcessQueue;->getActive()Lcom/android/server/am/BroadcastRecord;
632 …ndroid/server/am/BroadcastRecord;)Ljava/util/ArrayDeque;+]Lcom/android/server/am/BroadcastRecord;L…
643 …am/BroadcastProcessQueue;]Lcom/android/server/am/BroadcastRecord;Lcom/android/server/am/BroadcastR…
644BroadcastRecord;I)V+]Lcom/android/server/am/BroadcastProcessQueue;Lcom/android/server/am/Broadcast…
[all …]
Dart-wear-profile247 Lcom/android/server/am/BroadcastRecord;
1498 [Lcom/android/server/am/BroadcastRecord;
4730 …am/ActivityManagerService;->notifyBroadcastFinishedLocked(Lcom/android/server/am/BroadcastRecord;)V
5732 …/server/am/BroadcastHistory;->addBroadcastToHistoryLocked(Lcom/android/server/am/BroadcastRecord;)V
5733 …id/server/am/BroadcastHistory;->onBroadcastEnqueuedLocked(Lcom/android/server/am/BroadcastRecord;)V
5734 …id/server/am/BroadcastHistory;->onBroadcastFinishedLocked(Lcom/android/server/am/BroadcastRecord;)V
5739 …m/BroadcastProcessQueue$$ExternalSyntheticLambda0;->test(Lcom/android/server/am/BroadcastRecord;I)Z
5741 …m/BroadcastProcessQueue$$ExternalSyntheticLambda1;->test(Lcom/android/server/am/BroadcastRecord;I)Z
5742 …astProcessQueue;->$r8$lambda$7jvfHufVyE3JdVe4Li1zoeZOhgw(Lcom/android/server/am/BroadcastRecord;I)Z
5743 …astProcessQueue;->$r8$lambda$uTkPoca9PFx_MiK361g77-Nbtxk(Lcom/android/server/am/BroadcastRecord;I)Z
[all …]
Dart-profile-boot636 …castQueue;->deliverToRegisteredReceiverLocked(Lcom/android/server/am/BroadcastRecord;Lcom/android/…
652 …estStartTargetPermissionsReviewIfNeededLocked(Lcom/android/server/am/BroadcastRecord;Ljava/lang/St…
704 …dActivityStartsToken(Lcom/android/server/am/ProcessRecord;Lcom/android/server/am/BroadcastRecord;)V