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

Commit 92e2e6bd authored by Siim Sammul's avatar Siim Sammul Committed by Android (Google) Code Review
Browse files

Merge "Initialize binder latency histograms collection via BinderCallsStats...

Merge "Initialize binder latency histograms collection via BinderCallsStats for the Wifi process. The same collection is already active for system_server, Bluetooth, and Telephony."
parents 3abebb1c 3a127427
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -107,6 +107,7 @@ import android.net.ConnectivityManager;
import android.net.Proxy;
import android.net.TrafficStats;
import android.net.Uri;
import android.net.wifi.WifiFrameworkInitializer;
import android.os.AsyncTask;
import android.os.Binder;
import android.os.BluetoothServiceManager;
@@ -7900,6 +7901,8 @@ public final class ActivityThread extends ClientTransactionHandler
        BluetoothFrameworkInitializer.setBluetoothServiceManager(new BluetoothServiceManager());
        BluetoothFrameworkInitializer.setBinderCallsStatsInitializer(context -> {
            BinderCallsStats.startForBluetooth(context); });
        WifiFrameworkInitializer.setBinderCallsStatsInitializer(context -> {
            BinderCallsStats.startForWifi(context); });
    }

    private void purgePendingResources() {
+8 −0
Original line number Diff line number Diff line
@@ -1169,7 +1169,15 @@ public class BinderCallsStats implements BinderInternal.Observer {

    }

    /** @hide */
    public static void startForWifi(Context context) {
        new BinderCallsStats.SettingsObserver(
            context,
            new BinderCallsStats(
                new BinderCallsStats.Injector(),
                com.android.internal.os.BinderLatencyProto.Dims.WIFI));

    }

    /**
     * Settings observer for other processes (not system_server).