Work on issue #29422027: APR: Runtime restarts in system_server

More debugability.

Change-Id: I93b8e2ac63a25ca43d0eaedfcf8262ba92bc15d5
This commit is contained in:
Dianne Hackborn
2016-09-29 10:55:10 -07:00
parent e422b0b29f
commit 448489a991
2 changed files with 5 additions and 1 deletions

View File

@@ -227,7 +227,8 @@ public final class BroadcastQueue {
public final boolean replaceParallelBroadcastLocked(BroadcastRecord r) {
for (int i = mParallelBroadcasts.size() - 1; i >= 0; i--) {
if (r.intent.filterEquals(mParallelBroadcasts.get(i).intent)) {
final Intent curIntent = mParallelBroadcasts.get(i).intent;
if (r.intent.filterEquals(curIntent)) {
if (DEBUG_BROADCAST) Slog.v(TAG_BROADCAST,
"***** DROPPING PARALLEL ["
+ mQueueName + "]: " + r.intent);

View File

@@ -219,6 +219,9 @@ final class BroadcastRecord extends Binder {
int _resultCode, String _resultData, Bundle _resultExtras, boolean _serialized,
boolean _sticky, boolean _initialSticky,
int _userId) {
if (_intent == null) {
throw new NullPointerException("Can't construct with a null intent");
}
queue = _queue;
intent = _intent;
targetComp = _intent.getComponent();