diff options
author | Dave Mankoff <mankoff@google.com> | 2019-12-18 16:59:49 -0500 |
---|---|---|
committer | Dave Mankoff <mankoff@google.com> | 2019-12-20 16:35:42 -0500 |
commit | 00e8a2fa8ddebfd3db6de7f4fee89623c026c894 (patch) | |
tree | dda0810c78c307484b6ef5ec633b1373611e01b1 /packages/SystemUI/src/com/android/systemui/Dependency.java | |
parent | d9c43431d6ac9f5159dd91d9ce1634194d106938 (diff) |
Conslidate @MainHandler and similar to @Main (and similar).
@MainHandler, @MainLooper, @MainResources -> @Main
@BgHandler, @BgLooper -> @Background.
Also, move the providers for Handlers and Loopers into the
ConcurrencyModule.
Bug: 146510722
Test: atest SystemUITests
Change-Id: I991735e1fdca397784427409a2ae696a7374f584
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/Dependency.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/Dependency.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/Dependency.java b/packages/SystemUI/src/com/android/systemui/Dependency.java index 94e7c68c831d..a9ca04b499a5 100644 --- a/packages/SystemUI/src/com/android/systemui/Dependency.java +++ b/packages/SystemUI/src/com/android/systemui/Dependency.java @@ -39,10 +39,8 @@ import com.android.systemui.assist.AssistManager; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.bubbles.BubbleController; import com.android.systemui.colorextraction.SysuiColorExtractor; -import com.android.systemui.dagger.qualifiers.BgHandler; -import com.android.systemui.dagger.qualifiers.BgLooper; -import com.android.systemui.dagger.qualifiers.MainHandler; -import com.android.systemui.dagger.qualifiers.MainLooper; +import com.android.systemui.dagger.qualifiers.Background; +import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.dock.DockManager; import com.android.systemui.fragments.FragmentService; import com.android.systemui.keyguard.ScreenLifecycle; @@ -297,10 +295,10 @@ public class Dependency { @Inject Lazy<SensorPrivacyManager> mSensorPrivacyManager; @Inject Lazy<AutoHideController> mAutoHideController; @Inject Lazy<ForegroundServiceNotificationListener> mForegroundServiceNotificationListener; - @Inject @BgLooper Lazy<Looper> mBgLooper; - @Inject @BgHandler Lazy<Handler> mBgHandler; - @Inject @MainLooper Lazy<Looper> mMainLooper; - @Inject @MainHandler Lazy<Handler> mMainHandler; + @Inject @Background Lazy<Looper> mBgLooper; + @Inject @Background Lazy<Handler> mBgHandler; + @Inject @Main Lazy<Looper> mMainLooper; + @Inject @Main Lazy<Handler> mMainHandler; @Inject @Named(TIME_TICK_HANDLER_NAME) Lazy<Handler> mTimeTickHandler; @Nullable @Inject @Named(LEAK_REPORT_EMAIL_NAME) Lazy<String> mLeakReportEmail; |