Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fc5bb60 authored by Chris Weir's avatar Chris Weir
Browse files

Don't discard ProxyBytesTransferByFgBg

ProxyBytesTransferByFgBg was being handled by an if/else that was
labeled as handing "MobileBytesTransferByFgBg atom or
WifiBytesTransferByFgBg". When refactoring in ag/34015790, I didn't
realize that ProxyBytesTransferByFgBg was handled here, and now it's
getting marked as an "unexpected atom".

Instead, expect the unexpected.

Bug: 437786090
Test: adb shell cmd stats pull-source 10200; adb logcat -s StatsPullAtomService
Flag: EXEMPT BUGFIX

Change-Id: I101537ccf48c011618a488046d606c1787a63886
parent 5828e7e6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1535,7 +1535,8 @@ public class StatsPullAtomService extends SystemService {
                            entry.getRxPackets(), entry.getTxBytes(), entry.getTxPackets()));
                }
                case FrameworkStatsLog.MOBILE_BYTES_TRANSFER_BY_FG_BG,
                        FrameworkStatsLog.WIFI_BYTES_TRANSFER_BY_FG_BG -> {
                        FrameworkStatsLog.WIFI_BYTES_TRANSFER_BY_FG_BG,
                        FrameworkStatsLog.PROXY_BYTES_TRANSFER_BY_FG_BG  -> {
                    pulledData.add(FrameworkStatsLog.buildStatsEvent(atomTag, entry.getUid(),
                                (entry.getSet() > 0), entry.getRxBytes(), entry.getRxPackets(),
                                entry.getTxBytes(), entry.getTxPackets()));