mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Merge "Log sub event type to latency logger." into tm-qpr-dev am: c5f43eb9f7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/20296334 Change-Id: Ib77b601b328cdc102beb57cb8c4c0674e9a4cd30 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -473,6 +473,7 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
private int mPackageId = 0;
|
||||
private long mLatencyInMillis;
|
||||
private int mQueryLength = -1;
|
||||
private int mSubEventType = 0;
|
||||
|
||||
StatsCompatLatencyLogger(Context context, ActivityContext activityContext) {
|
||||
mContext = context;
|
||||
@@ -509,6 +510,12 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public StatsLatencyLogger withSubEventType(int type) {
|
||||
this.mSubEventType = type;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void log(EventEnum event) {
|
||||
if (IS_VERBOSE) {
|
||||
@@ -526,7 +533,8 @@ public class StatsLogCompatManager extends StatsLogManager {
|
||||
mPackageId, // package_id
|
||||
mLatencyInMillis, // latency_in_millis
|
||||
mType.getId(), //type
|
||||
mQueryLength // query_length
|
||||
mQueryLength, // query_length
|
||||
mSubEventType // sub_event_type
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -781,7 +781,6 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
public int getId() {
|
||||
return mId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -813,6 +812,13 @@ public class StatsLogManager implements ResourceBasedOverride {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets sub event type.
|
||||
*/
|
||||
default StatsLatencyLogger withSubEventType(int type) {
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets packageId of log message.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user