Loading packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +5 −0 Original line number Diff line number Diff line Loading @@ -708,6 +708,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { return mStrongAuthTracker.isUnlockingWithFingerprintAllowed(); } public boolean isUserInLockdown(int userId) { return mStrongAuthTracker.getStrongAuthForUser(userId) == LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_AFTER_USER_LOCKDOWN; } public boolean needsSlowUnlockTransition() { return mNeedsSlowUnlockTransition; } Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManager.java +2 −4 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ import android.widget.Toast; import com.android.internal.statusbar.IStatusBarService; import com.android.internal.statusbar.NotificationVisibility; import com.android.internal.widget.LockPatternUtils; import com.android.keyguard.KeyguardUpdateMonitor; import com.android.systemui.Dependency; import com.android.systemui.Dumpable; import com.android.systemui.OverviewProxyService; Loading Loading @@ -68,7 +68,6 @@ public class NotificationLockscreenUserManager implements Dumpable { Dependency.get(DeviceProvisionedController.class); private final UserManager mUserManager; private final IStatusBarService mBarService; private final LockPatternUtils mLockPatternUtils; private boolean mShowLockscreenNotifications; private boolean mAllowLockscreenRemoteInput; Loading Loading @@ -162,7 +161,6 @@ public class NotificationLockscreenUserManager implements Dumpable { mCurrentUserId = ActivityManager.getCurrentUser(); mBarService = IStatusBarService.Stub.asInterface( ServiceManager.getService(Context.STATUS_BAR_SERVICE)); mLockPatternUtils = new LockPatternUtils(mContext); } public void setUpWithPresenter(NotificationPresenter presenter, Loading Loading @@ -274,7 +272,7 @@ public class NotificationLockscreenUserManager implements Dumpable { if (userId == UserHandle.USER_ALL) { userId = mCurrentUserId; } return mLockPatternUtils.isUserInLockdown(userId); return KeyguardUpdateMonitor.getInstance(mContext).isUserInLockdown(userId); } /** Loading packages/SystemUI/src/com/android/systemui/statusbar/NotificationViewHierarchyManager.java +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.systemui.statusbar; import android.content.Context; import android.content.res.Resources; import android.os.Trace; import android.service.notification.NotificationListenerService; import android.util.Log; import android.view.View; Loading Loading @@ -283,6 +284,7 @@ public class NotificationViewHierarchyManager { * Updates expanded, dimmed and locked states of notification rows. */ public void updateRowStates() { Trace.beginSection("NotificationViewHierarchyManager#updateRowStates"); final int N = mListContainer.getContainerChildCount(); int visibleNotifications = 0; Loading Loading @@ -352,6 +354,9 @@ public class NotificationViewHierarchyManager { row.showAppOpsIcons(entry.mActiveAppOps); } Trace.beginSection("NotificationPresenter#onUpdateRowStates"); mPresenter.onUpdateRowStates(); Trace.endSection(); Trace.endSection(); } } packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +11 −10 Original line number Diff line number Diff line Loading @@ -3888,7 +3888,6 @@ public class StatusBar extends SystemUI implements DemoMode, mKeyguardIndicationController.setDozing(mDozing); mNotificationPanel.setDozing(mDozing, animate); updateQsExpansionEnabled(); mViewHierarchyManager.updateRowStates(); Trace.endSection(); } Loading Loading @@ -4676,6 +4675,7 @@ public class StatusBar extends SystemUI implements DemoMode, FingerprintUnlockController.MODE_WAKE_AND_UNLOCK) { dozing = false; } if (mDozing != dozing) { mDozing = dozing; mKeyguardViewMediator.setAodShowing(mDozing && alwaysOn); mStatusBarWindowManager.setDozing(mDozing); Loading @@ -4686,6 +4686,7 @@ public class StatusBar extends SystemUI implements DemoMode, mEntryManager.updateNotifications(); updateDozingState(); updateReportRejectedTouchVisibility(); } Trace.endSection(); } Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardUpdateMonitor.java +5 −0 Original line number Diff line number Diff line Loading @@ -708,6 +708,11 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener { return mStrongAuthTracker.isUnlockingWithFingerprintAllowed(); } public boolean isUserInLockdown(int userId) { return mStrongAuthTracker.getStrongAuthForUser(userId) == LockPatternUtils.StrongAuthTracker.STRONG_AUTH_REQUIRED_AFTER_USER_LOCKDOWN; } public boolean needsSlowUnlockTransition() { return mNeedsSlowUnlockTransition; } Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationLockscreenUserManager.java +2 −4 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ import android.widget.Toast; import com.android.internal.statusbar.IStatusBarService; import com.android.internal.statusbar.NotificationVisibility; import com.android.internal.widget.LockPatternUtils; import com.android.keyguard.KeyguardUpdateMonitor; import com.android.systemui.Dependency; import com.android.systemui.Dumpable; import com.android.systemui.OverviewProxyService; Loading Loading @@ -68,7 +68,6 @@ public class NotificationLockscreenUserManager implements Dumpable { Dependency.get(DeviceProvisionedController.class); private final UserManager mUserManager; private final IStatusBarService mBarService; private final LockPatternUtils mLockPatternUtils; private boolean mShowLockscreenNotifications; private boolean mAllowLockscreenRemoteInput; Loading Loading @@ -162,7 +161,6 @@ public class NotificationLockscreenUserManager implements Dumpable { mCurrentUserId = ActivityManager.getCurrentUser(); mBarService = IStatusBarService.Stub.asInterface( ServiceManager.getService(Context.STATUS_BAR_SERVICE)); mLockPatternUtils = new LockPatternUtils(mContext); } public void setUpWithPresenter(NotificationPresenter presenter, Loading Loading @@ -274,7 +272,7 @@ public class NotificationLockscreenUserManager implements Dumpable { if (userId == UserHandle.USER_ALL) { userId = mCurrentUserId; } return mLockPatternUtils.isUserInLockdown(userId); return KeyguardUpdateMonitor.getInstance(mContext).isUserInLockdown(userId); } /** Loading
packages/SystemUI/src/com/android/systemui/statusbar/NotificationViewHierarchyManager.java +5 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ package com.android.systemui.statusbar; import android.content.Context; import android.content.res.Resources; import android.os.Trace; import android.service.notification.NotificationListenerService; import android.util.Log; import android.view.View; Loading Loading @@ -283,6 +284,7 @@ public class NotificationViewHierarchyManager { * Updates expanded, dimmed and locked states of notification rows. */ public void updateRowStates() { Trace.beginSection("NotificationViewHierarchyManager#updateRowStates"); final int N = mListContainer.getContainerChildCount(); int visibleNotifications = 0; Loading Loading @@ -352,6 +354,9 @@ public class NotificationViewHierarchyManager { row.showAppOpsIcons(entry.mActiveAppOps); } Trace.beginSection("NotificationPresenter#onUpdateRowStates"); mPresenter.onUpdateRowStates(); Trace.endSection(); Trace.endSection(); } }
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +11 −10 Original line number Diff line number Diff line Loading @@ -3888,7 +3888,6 @@ public class StatusBar extends SystemUI implements DemoMode, mKeyguardIndicationController.setDozing(mDozing); mNotificationPanel.setDozing(mDozing, animate); updateQsExpansionEnabled(); mViewHierarchyManager.updateRowStates(); Trace.endSection(); } Loading Loading @@ -4676,6 +4675,7 @@ public class StatusBar extends SystemUI implements DemoMode, FingerprintUnlockController.MODE_WAKE_AND_UNLOCK) { dozing = false; } if (mDozing != dozing) { mDozing = dozing; mKeyguardViewMediator.setAodShowing(mDozing && alwaysOn); mStatusBarWindowManager.setDozing(mDozing); Loading @@ -4686,6 +4686,7 @@ public class StatusBar extends SystemUI implements DemoMode, mEntryManager.updateNotifications(); updateDozingState(); updateReportRejectedTouchVisibility(); } Trace.endSection(); } Loading