Loading packages/SystemUI/src/com/android/systemui/dagger/FrameworkServicesModule.java +16 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.app.StatsManager; import android.app.UiModeManager; import android.app.WallpaperManager; import android.app.admin.DevicePolicyManager; import android.app.ambientcontext.AmbientContextManager; import android.app.job.JobScheduler; import android.app.role.RoleManager; import android.app.smartspace.SmartspaceManager; Loading Loading @@ -79,6 +80,7 @@ import android.permission.PermissionManager; import android.safetycenter.SafetyCenterManager; import android.service.dreams.DreamService; import android.service.dreams.IDreamManager; import android.service.vr.IVrManager; import android.telecom.TelecomManager; import android.telephony.CarrierConfigManager; import android.telephony.SubscriptionManager; Loading Loading @@ -146,6 +148,13 @@ public class FrameworkServicesModule { return Optional.ofNullable(context.getSystemService(SystemUpdateManager.class)); } @Provides @Nullable @Singleton static AmbientContextManager provideAmbientContextManager(Context context) { return context.getSystemService(AmbientContextManager.class); } /** */ @Provides public AmbientDisplayConfiguration provideAmbientDisplayConfiguration(Context context) { Loading Loading @@ -258,6 +267,13 @@ public class FrameworkServicesModule { ServiceManager.getService(DreamService.DREAM_SERVICE)); } @Provides @Singleton @Nullable static IVrManager provideIVrManager() { return IVrManager.Stub.asInterface(ServiceManager.getService(Context.VR_SERVICE)); } @Provides @Singleton @Nullable Loading Loading
packages/SystemUI/src/com/android/systemui/dagger/FrameworkServicesModule.java +16 −0 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import android.app.StatsManager; import android.app.UiModeManager; import android.app.WallpaperManager; import android.app.admin.DevicePolicyManager; import android.app.ambientcontext.AmbientContextManager; import android.app.job.JobScheduler; import android.app.role.RoleManager; import android.app.smartspace.SmartspaceManager; Loading Loading @@ -79,6 +80,7 @@ import android.permission.PermissionManager; import android.safetycenter.SafetyCenterManager; import android.service.dreams.DreamService; import android.service.dreams.IDreamManager; import android.service.vr.IVrManager; import android.telecom.TelecomManager; import android.telephony.CarrierConfigManager; import android.telephony.SubscriptionManager; Loading Loading @@ -146,6 +148,13 @@ public class FrameworkServicesModule { return Optional.ofNullable(context.getSystemService(SystemUpdateManager.class)); } @Provides @Nullable @Singleton static AmbientContextManager provideAmbientContextManager(Context context) { return context.getSystemService(AmbientContextManager.class); } /** */ @Provides public AmbientDisplayConfiguration provideAmbientDisplayConfiguration(Context context) { Loading Loading @@ -258,6 +267,13 @@ public class FrameworkServicesModule { ServiceManager.getService(DreamService.DREAM_SERVICE)); } @Provides @Singleton @Nullable static IVrManager provideIVrManager() { return IVrManager.Stub.asInterface(ServiceManager.getService(Context.VR_SERVICE)); } @Provides @Singleton @Nullable Loading