Merge "Add a method to provide StatsManager" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4b5f4e6617
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user