Loading core/java/com/android/internal/os/BatteryStatsHistory.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1770,6 +1770,10 @@ public class BatteryStatsHistory { @GuardedBy("this") @GuardedBy("this") private void writeHistoryItem(long elapsedRealtimeMs, long uptimeMs, HistoryItem cur) { private void writeHistoryItem(long elapsedRealtimeMs, long uptimeMs, HistoryItem cur) { if (cur.eventCode != HistoryItem.EVENT_NONE && cur.eventTag.string == null) { Slog.wtfStack(TAG, "Event " + Integer.toHexString(cur.eventCode) + " without a name"); } if (mTracer != null && mTracer.tracingEnabled()) { if (mTracer != null && mTracer.tracingEnabled()) { recordTraceEvents(cur.eventCode, cur.eventTag); recordTraceEvents(cur.eventCode, cur.eventTag); recordTraceCounters(mTraceLastState, cur.states, STATE1_TRACE_MASK, recordTraceCounters(mTraceLastState, cur.states, STATE1_TRACE_MASK, Loading Loading @@ -2266,6 +2270,7 @@ public class BatteryStatsHistory { private int writeHistoryTag(HistoryTag tag) { private int writeHistoryTag(HistoryTag tag) { if (tag.string == null) { if (tag.string == null) { Slog.wtfStack(TAG, "writeHistoryTag called with null name"); Slog.wtfStack(TAG, "writeHistoryTag called with null name"); tag.string = ""; } } final int stringLength = tag.string.length(); final int stringLength = tag.string.length(); Loading Loading
core/java/com/android/internal/os/BatteryStatsHistory.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -1770,6 +1770,10 @@ public class BatteryStatsHistory { @GuardedBy("this") @GuardedBy("this") private void writeHistoryItem(long elapsedRealtimeMs, long uptimeMs, HistoryItem cur) { private void writeHistoryItem(long elapsedRealtimeMs, long uptimeMs, HistoryItem cur) { if (cur.eventCode != HistoryItem.EVENT_NONE && cur.eventTag.string == null) { Slog.wtfStack(TAG, "Event " + Integer.toHexString(cur.eventCode) + " without a name"); } if (mTracer != null && mTracer.tracingEnabled()) { if (mTracer != null && mTracer.tracingEnabled()) { recordTraceEvents(cur.eventCode, cur.eventTag); recordTraceEvents(cur.eventCode, cur.eventTag); recordTraceCounters(mTraceLastState, cur.states, STATE1_TRACE_MASK, recordTraceCounters(mTraceLastState, cur.states, STATE1_TRACE_MASK, Loading Loading @@ -2266,6 +2270,7 @@ public class BatteryStatsHistory { private int writeHistoryTag(HistoryTag tag) { private int writeHistoryTag(HistoryTag tag) { if (tag.string == null) { if (tag.string == null) { Slog.wtfStack(TAG, "writeHistoryTag called with null name"); Slog.wtfStack(TAG, "writeHistoryTag called with null name"); tag.string = ""; } } final int stringLength = tag.string.length(); final int stringLength = tag.string.length(); Loading