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

Commit 552f63f6 authored by Etienne Ruffieux's avatar Etienne Ruffieux
Browse files

Adding @SystemApi annotation to Bluetooth energy stats.

As setUidTraffic parameter was replaced to a List, updated
this call.

Tag: #feature
Bug: 200201373
Test: Manual
Change-Id: Ifbebc5282345a33e2dd08a9a20691202b7e7dcad
parent 25abc096
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3394,12 +3394,12 @@ public class AdapterService extends Service {
            }

            // Copy the traffic objects whose byte counts are > 0
            final UidTraffic[] result = arrayLen > 0 ? new UidTraffic[arrayLen] : null;
            final List<UidTraffic> result = new ArrayList<>();
            int putIdx = 0;
            for (int i = 0; i < mUidTraffic.size(); i++) {
                final UidTraffic traffic = mUidTraffic.valueAt(i);
                if (traffic.getTxBytes() != 0 || traffic.getRxBytes() != 0) {
                    result[putIdx++] = traffic.clone();
                    result.add(traffic.clone());
                }
            }