Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt +4 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.hardware.face.FaceManager import android.provider.Settings import com.android.keyguard.KeyguardUpdateMonitor import com.android.systemui.plugins.statusbar.StatusBarStateController import com.android.systemui.statusbar.NotificationLockscreenUserManager import com.android.systemui.statusbar.StatusBarState import com.android.systemui.tuner.TunerService import javax.inject.Inject Loading Loading @@ -61,7 +62,8 @@ class KeyguardBypassController { @Inject constructor(context: Context, tunerService: TunerService, statusBarStateController: StatusBarStateController) { statusBarStateController: StatusBarStateController, lockscreenUserManager: NotificationLockscreenUserManager) { unlockMethodCache = UnlockMethodCache.getInstance(context) this.statusBarStateController = statusBarStateController statusBarStateController.addCallback(object : StatusBarStateController.StateListener { Loading @@ -88,6 +90,7 @@ class KeyguardBypassController { KeyguardUpdateMonitor.getCurrentUser()) != 0 } }, Settings.Secure.FACE_UNLOCK_DISMISSES_KEYGUARD) lockscreenUserManager.addUserChangedListener { pendingUnlockType = null } } /** Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/NotificationPanelViewTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -112,7 +112,8 @@ public class NotificationPanelViewTest extends SysuiTestCase { mDependency.injectMockDependency(ConfigurationController.class); mDependency.injectMockDependency(ZenModeController.class); KeyguardBypassController bypassController = new KeyguardBypassController(mContext, mock(TunerService.class), mStatusBarStateController); mock(TunerService.class), mStatusBarStateController, mock(NotificationLockscreenUserManager.class)); NotificationWakeUpCoordinator coordinator = new NotificationWakeUpCoordinator(mContext, mock(HeadsUpManagerPhone.class), Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/KeyguardBypassController.kt +4 −1 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.hardware.face.FaceManager import android.provider.Settings import com.android.keyguard.KeyguardUpdateMonitor import com.android.systemui.plugins.statusbar.StatusBarStateController import com.android.systemui.statusbar.NotificationLockscreenUserManager import com.android.systemui.statusbar.StatusBarState import com.android.systemui.tuner.TunerService import javax.inject.Inject Loading Loading @@ -61,7 +62,8 @@ class KeyguardBypassController { @Inject constructor(context: Context, tunerService: TunerService, statusBarStateController: StatusBarStateController) { statusBarStateController: StatusBarStateController, lockscreenUserManager: NotificationLockscreenUserManager) { unlockMethodCache = UnlockMethodCache.getInstance(context) this.statusBarStateController = statusBarStateController statusBarStateController.addCallback(object : StatusBarStateController.StateListener { Loading @@ -88,6 +90,7 @@ class KeyguardBypassController { KeyguardUpdateMonitor.getCurrentUser()) != 0 } }, Settings.Secure.FACE_UNLOCK_DISMISSES_KEYGUARD) lockscreenUserManager.addUserChangedListener { pendingUnlockType = null } } /** Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/NotificationPanelViewTest.java +2 −1 Original line number Diff line number Diff line Loading @@ -112,7 +112,8 @@ public class NotificationPanelViewTest extends SysuiTestCase { mDependency.injectMockDependency(ConfigurationController.class); mDependency.injectMockDependency(ZenModeController.class); KeyguardBypassController bypassController = new KeyguardBypassController(mContext, mock(TunerService.class), mStatusBarStateController); mock(TunerService.class), mStatusBarStateController, mock(NotificationLockscreenUserManager.class)); NotificationWakeUpCoordinator coordinator = new NotificationWakeUpCoordinator(mContext, mock(HeadsUpManagerPhone.class), Loading