Move EventLogger.dump call to MR2ServiceImpl.dump
It's a property of dump, not the user handler. So before this change, the event logger would be dumped once per user. Bug: 243116883 Test: Manually using adb shell dumpsys media_router Change-Id: I5a36dac749dc9427e69639e12e561d56c27e63e8
This commit is contained in:
@@ -628,8 +628,9 @@ class MediaRouter2ServiceImpl {
|
||||
mUserRecords.valueAt(i).dump(pw, indent + " ");
|
||||
}
|
||||
} else {
|
||||
pw.println(indent + "<no user records>");
|
||||
pw.println(indent + " <no user records>");
|
||||
}
|
||||
mEventLogger.dump(pw, indent);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1382,8 +1383,6 @@ class MediaRouter2ServiceImpl {
|
||||
if (!mHandler.runWithScissors(() -> mHandler.dump(pw, indent), 1000)) {
|
||||
pw.println(indent + "<could not dump handler state>");
|
||||
}
|
||||
|
||||
mEventLogger.dump(pw, indent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user