From 37d8f5748feda8a6eb58ed9d382759f91e6cf3d7 Mon Sep 17 00:00:00 2001 From: Marcello Galhardo Date: Wed, 23 Nov 2022 14:42:28 +0000 Subject: [PATCH] Add StylusSystemUpdateNotifier Initial prototype to support Stylus updates. Test: atest SystemUITests:StylusSystemUpdateNotifierTest Fixes: b/253013763 Change-Id: If0cf51da3128232aa5cdbc04b578161cf06626de --- .../android/systemui/dagger/FrameworkServicesModule.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/dagger/FrameworkServicesModule.java b/packages/SystemUI/src/com/android/systemui/dagger/FrameworkServicesModule.java index f902252fa2e68..2260e35fd6bcb 100644 --- a/packages/SystemUI/src/com/android/systemui/dagger/FrameworkServicesModule.java +++ b/packages/SystemUI/src/com/android/systemui/dagger/FrameworkServicesModule.java @@ -71,6 +71,7 @@ import android.os.BatteryStats; import android.os.PowerExemptionManager; import android.os.PowerManager; import android.os.ServiceManager; +import android.os.SystemUpdateManager; import android.os.UserManager; import android.os.Vibrator; import android.os.storage.StorageManager; @@ -139,6 +140,12 @@ public class FrameworkServicesModule { return context.getSystemService(AlarmManager.class); } + @Provides + @Singleton + static Optional provideSystemUpdateManager(Context context) { + return Optional.ofNullable(context.getSystemService(SystemUpdateManager.class)); + } + /** */ @Provides public AmbientDisplayConfiguration provideAmbientDisplayConfiguration(Context context) {