Merge "Print out debug logging in bug report if not running test." into udc-qpr-dev
This commit is contained in:
@@ -87,6 +87,7 @@ public class StatsLogCompatManager extends StatsLogManager {
|
|||||||
private static final String LATENCY_TAG = "StatsLatencyLog";
|
private static final String LATENCY_TAG = "StatsLatencyLog";
|
||||||
private static final String IMPRESSION_TAG = "StatsImpressionLog";
|
private static final String IMPRESSION_TAG = "StatsImpressionLog";
|
||||||
private static final boolean IS_VERBOSE = Utilities.isPropertyEnabled(LogConfig.STATSLOG);
|
private static final boolean IS_VERBOSE = Utilities.isPropertyEnabled(LogConfig.STATSLOG);
|
||||||
|
private static final boolean DEBUG = !Utilities.isRunningInTestHarness();
|
||||||
private static final InstanceId DEFAULT_INSTANCE_ID = InstanceId.fakeInstanceId(0);
|
private static final InstanceId DEFAULT_INSTANCE_ID = InstanceId.fakeInstanceId(0);
|
||||||
// LauncherAtom.ItemInfo.getDefaultInstance() should be used but until launcher proto migrates
|
// LauncherAtom.ItemInfo.getDefaultInstance() should be used but until launcher proto migrates
|
||||||
// from nano to lite, bake constant to prevent robo test failure.
|
// from nano to lite, bake constant to prevent robo test failure.
|
||||||
@@ -326,6 +327,11 @@ public class StatsLogCompatManager extends StatsLogManager {
|
|||||||
if (!Utilities.ATLEAST_R) {
|
if (!Utilities.ATLEAST_R) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (DEBUG) {
|
||||||
|
String name = (event instanceof Enum) ? ((Enum) event).name() :
|
||||||
|
event.getId() + "";
|
||||||
|
Log.d(TAG, name);
|
||||||
|
}
|
||||||
LauncherAppState appState = LauncherAppState.getInstanceNoCreate();
|
LauncherAppState appState = LauncherAppState.getInstanceNoCreate();
|
||||||
|
|
||||||
if (mSlice == null && mSliceItem != null) {
|
if (mSlice == null && mSliceItem != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user