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

Commit 44900ab5 authored by Cole Faust's avatar Cole Faust Committed by Android (Google) Code Review
Browse files

Merge "Fix array-related errorprone warnings"

parents d3a31fc3 13ab84ec
Loading
Loading
Loading
Loading
+16 −6
Original line number Diff line number Diff line
@@ -6813,20 +6813,31 @@ public class BatteryStatsImpl extends BatteryStats {
        synchronized (mModemNetworkLock) {
            if (displayTransport == TRANSPORT_CELLULAR) {
                mModemIfaces = includeInStringArray(mModemIfaces, iface);
                if (DEBUG) Slog.d(TAG, "Note mobile iface " + iface + ": " + mModemIfaces);
                if (DEBUG) {
                    Slog.d(TAG, "Note mobile iface " + iface + ": "
                            + Arrays.toString(mModemIfaces));
                }
            } else {
                mModemIfaces = excludeFromStringArray(mModemIfaces, iface);
                if (DEBUG) Slog.d(TAG, "Note non-mobile iface " + iface + ": " + mModemIfaces);
                if (DEBUG) {
                    Slog.d(TAG, "Note non-mobile iface " + iface + ": "
                            + Arrays.toString(mModemIfaces));
                }
            }
        }
        synchronized (mWifiNetworkLock) {
            if (displayTransport == TRANSPORT_WIFI) {
                mWifiIfaces = includeInStringArray(mWifiIfaces, iface);
                if (DEBUG) Slog.d(TAG, "Note wifi iface " + iface + ": " + mWifiIfaces);
                if (DEBUG) {
                    Slog.d(TAG, "Note wifi iface " + iface + ": " + Arrays.toString(mWifiIfaces));
                }
            } else {
                mWifiIfaces = excludeFromStringArray(mWifiIfaces, iface);
                if (DEBUG) Slog.d(TAG, "Note non-wifi iface " + iface + ": " + mWifiIfaces);
                if (DEBUG) {
                    Slog.d(TAG, "Note non-wifi iface " + iface + ": "
                            + Arrays.toString(mWifiIfaces));
                }
            }
        }
    }
@@ -12622,8 +12633,7 @@ public class BatteryStatsImpl extends BatteryStats {
    private void updateCpuMeasuredEnergyStatsLocked(@NonNull long[] clusterChargeUC,
            @NonNull CpuDeltaPowerAccumulator accumulator) {
        if (DEBUG_ENERGY) {
            Slog.d(TAG,
                    "Updating cpu cluster stats: " + clusterChargeUC.toString());
            Slog.d(TAG, "Updating cpu cluster stats: " + Arrays.toString(clusterChargeUC));
        }
        if (mGlobalMeasuredEnergyStats == null) {
            return;