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

Commit cde6523f authored by Siddika Parlak Polatkan's avatar Siddika Parlak Polatkan
Browse files

Add a method to provide StatsManager

Bug: 165063691

Test: load on flame, statsd_testdrive
Change-Id: I1e2f72ca6a4f81bb4265caeaa3ee315efdafa944
parent 02a13d14
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -25,6 +25,7 @@ import android.app.IActivityTaskManager;
import android.app.IWallpaperManager;
import android.app.KeyguardManager;
import android.app.NotificationManager;
import android.app.StatsManager;
import android.app.WallpaperManager;
import android.app.admin.DevicePolicyManager;
import android.app.role.RoleManager;
@@ -319,6 +320,12 @@ public class FrameworkServicesModule {
        return context.getSystemService(ShortcutManager.class);
    }

    @Provides
    @Singleton
    static StatsManager provideStatsManager(Context context) {
        return context.getSystemService(StatsManager.class);
    }

    @Provides
    @Singleton
    @Nullable