Loading packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +4 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.TelephonyIntents; import com.android.internal.widget.LockPatternUtils; import com.android.settingslib.WirelessUtils; import com.android.systemui.DejankUtils; import com.android.systemui.R; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.TaskStackChangeListener; Loading Loading @@ -1437,6 +1438,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } private void handleScreenTurnedOff() { final String tag = "KeyguardUpdateMonitor#handleScreenTurnedOff"; DejankUtils.startDetectingBlockingIpcs(tag); checkIsHandlerThread(); mHardwareFingerprintUnavailableRetryCount = 0; mHardwareFaceUnavailableRetryCount = 0; Loading @@ -1446,6 +1449,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { cb.onScreenTurnedOff(); } } DejankUtils.stopDetectingBlockingIpcs(tag); } private void handleDreamingStateChanged(int dreamStart) { Loading packages/SystemUI/src/com/android/systemui/DependencyProvider.java +6 −2 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.DevicePolicyManagerWrapper; import com.android.systemui.shared.system.PackageManagerWrapper; import com.android.systemui.statusbar.NavigationBarController; import com.android.systemui.statusbar.NotificationRemoteInputManager; import com.android.systemui.statusbar.phone.AutoHideController; import com.android.systemui.statusbar.phone.ConfigurationControllerImpl; import com.android.systemui.statusbar.policy.ConfigurationController; Loading Loading @@ -204,8 +205,11 @@ public class DependencyProvider { @Singleton @Provides public AutoHideController provideAutoHideController(Context context, @Named(MAIN_HANDLER_NAME) Handler mainHandler) { return new AutoHideController(context, mainHandler); @Named(MAIN_HANDLER_NAME) Handler mainHandler, NotificationRemoteInputManager notificationRemoteInputManager, IWindowManager iWindowManager) { return new AutoHideController(context, mainHandler, notificationRemoteInputManager, iWindowManager); } @Singleton Loading packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarController.java +3 −1 Original line number Diff line number Diff line Loading @@ -152,7 +152,9 @@ public class NavigationBarController implements Callbacks { // Dependency problem. AutoHideController autoHideController = isOnDefaultDisplay ? Dependency.get(AutoHideController.class) : new AutoHideController(context, mHandler); : new AutoHideController(context, mHandler, Dependency.get(NotificationRemoteInputManager.class), Dependency.get(IWindowManager.class)); navBar.setAutoHideController(autoHideController); navBar.restoreSystemUiVisibilityState(); mNavigationBars.append(displayId, navBar); Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −4 Original line number Diff line number Diff line Loading @@ -473,8 +473,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private int mHeadsUpInset; private HeadsUpAppearanceController mHeadsUpAppearanceController; private NotificationIconAreaController mIconAreaController; private final NotificationLockscreenUserManager mLockscreenUserManager = Dependency.get(NotificationLockscreenUserManager.class); private final NotificationLockscreenUserManager mLockscreenUserManager; private final Rect mTmpRect = new Rect(); private final NotificationEntryManager mEntryManager = Dependency.get(NotificationEntryManager.class); Loading @@ -497,8 +496,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private NotificationPanelView mNotificationPanel; private final ShadeController mShadeController = Dependency.get(ShadeController.class); private final NotificationGutsManager mNotificationGutsManager = Dependency.get(NotificationGutsManager.class); private final NotificationGutsManager mNotificationGutsManager; private final NotificationSectionsManager mSectionsManager; private boolean mAnimateBottomOnLayout; private float mLastSentAppear; Loading @@ -518,6 +516,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd HeadsUpManagerPhone headsUpManager, KeyguardBypassController keyguardBypassController, FalsingManager falsingManager, NotificationLockscreenUserManager notificationLockscreenUserManager, NotificationGutsManager notificationGutsManager, NotificationSectionsFeatureManager sectionsFeatureManager) { super(context, attrs, 0, 0); Resources res = getResources(); Loading @@ -526,6 +526,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd mRoundnessManager = notificationRoundnessManager; mLockscreenUserManager = notificationLockscreenUserManager; mNotificationGutsManager = notificationGutsManager; mHeadsUpManager = headsUpManager; mHeadsUpManager.addListener(mRoundnessManager); mHeadsUpManager.setAnimationStateHandler(this::setHeadsUpGoingAwayAnimationsAllowed); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/AutoHideController.java +5 −4 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ import android.view.MotionEvent; import android.view.View; import com.android.internal.annotations.VisibleForTesting; import com.android.systemui.Dependency; import com.android.systemui.SysUiServiceProvider; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.NotificationRemoteInputManager; Loading Loading @@ -68,12 +67,14 @@ public class AutoHideController implements CommandQueue.Callbacks { }; @Inject public AutoHideController(Context context, @Named(MAIN_HANDLER_NAME) Handler handler) { public AutoHideController(Context context, @Named(MAIN_HANDLER_NAME) Handler handler, NotificationRemoteInputManager notificationRemoteInputManager, IWindowManager iWindowManager) { mCommandQueue = SysUiServiceProvider.getComponent(context, CommandQueue.class); mCommandQueue.addCallback(this); mHandler = handler; mRemoteInputManager = Dependency.get(NotificationRemoteInputManager.class); mWindowManagerService = Dependency.get(IWindowManager.class); mRemoteInputManager = notificationRemoteInputManager; mWindowManagerService = iWindowManager; mDisplayId = context.getDisplayId(); } Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +4 −0 Original line number Diff line number Diff line Loading @@ -99,6 +99,7 @@ import com.android.internal.telephony.PhoneConstants; import com.android.internal.telephony.TelephonyIntents; import com.android.internal.widget.LockPatternUtils; import com.android.settingslib.WirelessUtils; import com.android.systemui.DejankUtils; import com.android.systemui.R; import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.TaskStackChangeListener; Loading Loading @@ -1437,6 +1438,8 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { } private void handleScreenTurnedOff() { final String tag = "KeyguardUpdateMonitor#handleScreenTurnedOff"; DejankUtils.startDetectingBlockingIpcs(tag); checkIsHandlerThread(); mHardwareFingerprintUnavailableRetryCount = 0; mHardwareFaceUnavailableRetryCount = 0; Loading @@ -1446,6 +1449,7 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { cb.onScreenTurnedOff(); } } DejankUtils.stopDetectingBlockingIpcs(tag); } private void handleDreamingStateChanged(int dreamStart) { Loading
packages/SystemUI/src/com/android/systemui/DependencyProvider.java +6 −2 Original line number Diff line number Diff line Loading @@ -49,6 +49,7 @@ import com.android.systemui.shared.system.ActivityManagerWrapper; import com.android.systemui.shared.system.DevicePolicyManagerWrapper; import com.android.systemui.shared.system.PackageManagerWrapper; import com.android.systemui.statusbar.NavigationBarController; import com.android.systemui.statusbar.NotificationRemoteInputManager; import com.android.systemui.statusbar.phone.AutoHideController; import com.android.systemui.statusbar.phone.ConfigurationControllerImpl; import com.android.systemui.statusbar.policy.ConfigurationController; Loading Loading @@ -204,8 +205,11 @@ public class DependencyProvider { @Singleton @Provides public AutoHideController provideAutoHideController(Context context, @Named(MAIN_HANDLER_NAME) Handler mainHandler) { return new AutoHideController(context, mainHandler); @Named(MAIN_HANDLER_NAME) Handler mainHandler, NotificationRemoteInputManager notificationRemoteInputManager, IWindowManager iWindowManager) { return new AutoHideController(context, mainHandler, notificationRemoteInputManager, iWindowManager); } @Singleton Loading
packages/SystemUI/src/com/android/systemui/statusbar/NavigationBarController.java +3 −1 Original line number Diff line number Diff line Loading @@ -152,7 +152,9 @@ public class NavigationBarController implements Callbacks { // Dependency problem. AutoHideController autoHideController = isOnDefaultDisplay ? Dependency.get(AutoHideController.class) : new AutoHideController(context, mHandler); : new AutoHideController(context, mHandler, Dependency.get(NotificationRemoteInputManager.class), Dependency.get(IWindowManager.class)); navBar.setAutoHideController(autoHideController); navBar.restoreSystemUiVisibilityState(); mNavigationBars.append(displayId, navBar); Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/NotificationStackScrollLayout.java +6 −4 Original line number Diff line number Diff line Loading @@ -473,8 +473,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private int mHeadsUpInset; private HeadsUpAppearanceController mHeadsUpAppearanceController; private NotificationIconAreaController mIconAreaController; private final NotificationLockscreenUserManager mLockscreenUserManager = Dependency.get(NotificationLockscreenUserManager.class); private final NotificationLockscreenUserManager mLockscreenUserManager; private final Rect mTmpRect = new Rect(); private final NotificationEntryManager mEntryManager = Dependency.get(NotificationEntryManager.class); Loading @@ -497,8 +496,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd private NotificationPanelView mNotificationPanel; private final ShadeController mShadeController = Dependency.get(ShadeController.class); private final NotificationGutsManager mNotificationGutsManager = Dependency.get(NotificationGutsManager.class); private final NotificationGutsManager mNotificationGutsManager; private final NotificationSectionsManager mSectionsManager; private boolean mAnimateBottomOnLayout; private float mLastSentAppear; Loading @@ -518,6 +516,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd HeadsUpManagerPhone headsUpManager, KeyguardBypassController keyguardBypassController, FalsingManager falsingManager, NotificationLockscreenUserManager notificationLockscreenUserManager, NotificationGutsManager notificationGutsManager, NotificationSectionsFeatureManager sectionsFeatureManager) { super(context, attrs, 0, 0); Resources res = getResources(); Loading @@ -526,6 +526,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd mRoundnessManager = notificationRoundnessManager; mLockscreenUserManager = notificationLockscreenUserManager; mNotificationGutsManager = notificationGutsManager; mHeadsUpManager = headsUpManager; mHeadsUpManager.addListener(mRoundnessManager); mHeadsUpManager.setAnimationStateHandler(this::setHeadsUpGoingAwayAnimationsAllowed); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/AutoHideController.java +5 −4 Original line number Diff line number Diff line Loading @@ -29,7 +29,6 @@ import android.view.MotionEvent; import android.view.View; import com.android.internal.annotations.VisibleForTesting; import com.android.systemui.Dependency; import com.android.systemui.SysUiServiceProvider; import com.android.systemui.statusbar.CommandQueue; import com.android.systemui.statusbar.NotificationRemoteInputManager; Loading Loading @@ -68,12 +67,14 @@ public class AutoHideController implements CommandQueue.Callbacks { }; @Inject public AutoHideController(Context context, @Named(MAIN_HANDLER_NAME) Handler handler) { public AutoHideController(Context context, @Named(MAIN_HANDLER_NAME) Handler handler, NotificationRemoteInputManager notificationRemoteInputManager, IWindowManager iWindowManager) { mCommandQueue = SysUiServiceProvider.getComponent(context, CommandQueue.class); mCommandQueue.addCallback(this); mHandler = handler; mRemoteInputManager = Dependency.get(NotificationRemoteInputManager.class); mWindowManagerService = Dependency.get(IWindowManager.class); mRemoteInputManager = notificationRemoteInputManager; mWindowManagerService = iWindowManager; mDisplayId = context.getDisplayId(); } Loading