Home
last modified time | relevance | path

Searched refs:mLockscreenUserManager (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java105 private TestNotificationLockscreenUserManager mLockscreenUserManager; field in NotificationLockscreenUserManagerTest
141 mLockscreenUserManager = new TestNotificationLockscreenUserManager(mContext); in setUp()
142 mLockscreenUserManager.setUpWithPresenter(mPresenter); in setUp()
147 mLockscreenUserManager.getLockscreenSettingsObserverForTest().onChange(false); in testLockScreenShowNotificationsChangeUpdatesNotifications()
155 mLockscreenUserManager.getLockscreenSettingsObserverForTest().onChange(false); in testLockScreenShowNotificationsFalse()
156 assertFalse(mLockscreenUserManager.shouldShowLockscreenNotifications()); in testLockScreenShowNotificationsFalse()
163 mLockscreenUserManager.getLockscreenSettingsObserverForTest().onChange(false); in testLockScreenShowNotificationsTrue()
164 assertTrue(mLockscreenUserManager.shouldShowLockscreenNotifications()); in testLockScreenShowNotificationsTrue()
171 mLockscreenUserManager.getLockscreenSettingsObserverForTest().onChange(false); in testLockScreenAllowPrivateNotificationsTrue()
172 assertTrue(mLockscreenUserManager.userAllowsPrivateNotificationsInPublic(mCurrentUser.id)); in testLockScreenAllowPrivateNotificationsTrue()
[all …]
DNotificationViewHierarchyManagerTest.java79 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationViewHierarchyManagerTest
98 mLockscreenUserManager); in setUp()
107 mHandler, mLockscreenUserManager, mGroupManager, mVisualStabilityManager, in setUp()
DNotificationRemoteInputManagerTest.java69 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationRemoteInputManagerTest
82 mLockscreenUserManager, mSmartReplyController, mEntryManager, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DKeyguardCoordinatorTest.java68 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in KeyguardCoordinatorTest
82 mContext, mMainHandler, mKeyguardStateController, mLockscreenUserManager, in setup()
121 when(mLockscreenUserManager.shouldShowLockscreenNotifications()).thenReturn(false); in doNotShowLockscreenNotifications()
146 when(mLockscreenUserManager.isLockscreenPublicMode(NOTIF_USER_ID)).thenReturn(true); in publicMode_settingsDisallow()
147 when(mLockscreenUserManager.userAllowsNotificationsInPublic(NOTIF_USER_ID)) in publicMode_settingsDisallow()
161 when(mLockscreenUserManager.isLockscreenPublicMode(CURR_USER_ID)).thenReturn(true); in publicMode_notifDisallowed()
233 when(mLockscreenUserManager.shouldShowLockscreenNotifications()).thenReturn(true); in setupUnfilteredState()
236 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(CURR_USER_ID); in setupUnfilteredState()
241 when(mLockscreenUserManager.isLockscreenPublicMode(CURR_USER_ID)).thenReturn(false); in setupUnfilteredState()
242 when(mLockscreenUserManager.isLockscreenPublicMode(NOTIF_USER_ID)).thenReturn(false); in setupUnfilteredState()
[all …]
DHideNotifsForOtherUsersCoordinatorTest.java51 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in HideNotifsForOtherUsersCoordinatorTest
69 new HideNotifsForOtherUsersCoordinator(mLockscreenUserManager, mLogger); in setUp()
72 verify(mLockscreenUserManager).addUserChangedListener(mUserChangedListenerCaptor.capture()); in setUp()
84 when(mLockscreenUserManager.isCurrentProfile(anyInt())).thenReturn(false); in testFilterOutNotifsFromOtherProfiles()
93 when(mLockscreenUserManager.isCurrentProfile(anyInt())).thenReturn(true); in testPreserveNotifsFromThisProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHideNotifsForOtherUsersCoordinator.java41 private final NotificationLockscreenUserManager mLockscreenUserManager; field in HideNotifsForOtherUsersCoordinator
48 mLockscreenUserManager = lockscreenUserManager; in HideNotifsForOtherUsersCoordinator()
55 mLockscreenUserManager.addUserChangedListener(mUserChangedListener); in attach()
61 return !mLockscreenUserManager
72 mLockscreenUserManager.getCurrentUserId(),
DKeyguardCoordinator.java60 private final NotificationLockscreenUserManager mLockscreenUserManager; field in KeyguardCoordinator
81 mLockscreenUserManager = lockscreenUserManager; in KeyguardCoordinator()
105 if (!mLockscreenUserManager.shouldShowLockscreenNotifications()) {
109 final int currUserId = mLockscreenUserManager.getCurrentUserId();
121 if (mLockscreenUserManager.isLockscreenPublicMode(currUserId)
122 || mLockscreenUserManager.isLockscreenPublicMode(notifUserId)) {
127 if (!mLockscreenUserManager.userAllowsNotificationsInPublic(currUserId)
128 || !mLockscreenUserManager.userAllowsNotificationsInPublic(
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DDynamicPrivacyController.java40 private final NotificationLockscreenUserManager mLockscreenUserManager; field in DynamicPrivacyController
52 mLockscreenUserManager = notificationLockscreenUserManager; in DynamicPrivacyController()
83 return !mLockscreenUserManager.userAllowsPrivateNotificationsInPublic( in isDynamicPrivacyEnabled()
84 mLockscreenUserManager.getCurrentUserId()); in isDynamicPrivacyEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardEnvironmentImpl.java36 private final NotificationLockscreenUserManager mLockscreenUserManager = field in KeyguardEnvironmentImpl
55 mLockscreenUserManager.getCurrentUserId(), notificationUserId)); in isNotificationForCurrentProfiles()
57 return mLockscreenUserManager.isCurrentProfile(notificationUserId); in isNotificationForCurrentProfiles()
DStatusBarRemoteInputCallback.java65 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarRemoteInputCallback
102 mLockscreenUserManager = notificationLockscreenUserManager; in StatusBarRemoteInputCallback()
140 mLockscreenUserManager.updatePublicMode(); in onWorkChallengeChanged()
142 && !mLockscreenUserManager.isAnyProfilePublicMode()) { in onWorkChallengeChanged()
262 pendingIntent.getIntent(), mLockscreenUserManager.getCurrentUserId()); in handleRemoteViewClick()
295 if (userId != mLockscreenUserManager.getCurrentUserId() in onReceive()
296 && mLockscreenUserManager.isCurrentProfile(userId)) { in onReceive()
DStatusBarNotificationPresenter.java97 private final NotificationLockscreenUserManager mLockscreenUserManager = field in StatusBarNotificationPresenter
213 mLockscreenUserManager.setUpWithPresenter(this); in StatusBarNotificationPresenter()
223 onUserSwitched(mLockscreenUserManager.getCurrentUserId()); in StatusBarNotificationPresenter()
437 if (mLockscreenUserManager.isLockscreenPublicMode(sbn.getUser().getIdentifier())
471 boolean devicePublic = mLockscreenUserManager
472 .isLockscreenPublicMode(mLockscreenUserManager.getCurrentUserId());
474 || mLockscreenUserManager.isLockscreenPublicMode(sbn.getUserId());
475 boolean needsRedaction = mLockscreenUserManager.needsRedaction(entry);
DStatusBarNotificationActivityStarter.java111 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationActivityStarter
185 mLockscreenUserManager = lockscreenUserManager; in StatusBarNotificationActivityStarter()
258 mLockscreenUserManager.getCurrentUserId()); in onNotificationClicked()
263 mLockscreenUserManager.getCurrentUserId()); in onNotificationClicked()
652 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationActivityStarter.Builder
720 mLockscreenUserManager = lockscreenUserManager; in Builder()
784 mLockscreenUserManager, in build()
DStatusBar.java573 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBar
841 mLockscreenUserManager = lockScreenUserManager; in StatusBar()
2884 mLockscreenUserManager.getCurrentUserId()); in startActivityDismissingKeyguard()
3068 if (mLockscreenUserManager.isCurrentProfile(getSendingUserId())) {
3636 mLockscreenUserManager.updatePublicMode();
4426 mLockscreenUserManager.getCurrentUserId())) {
4432 mLockscreenUserManager.getCurrentUserId())
4732 mLockscreenUserManager.getCurrentUserId());
DNotificationPanelViewController.java506 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationPanelViewController
820 mLockscreenUserManager = notificationLockscreenUserManager; in NotificationPanelViewController()
1462 if (!mLockscreenUserManager.shouldShowOnKeyguard(row.getEntry())) { in canShowRowOnLockscreen()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationViewHierarchyManager.java75 protected final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationViewHierarchyManager
124 mLockscreenUserManager = notificationLockscreenUserManager; in NotificationViewHierarchyManager()
170 int currentUserId = mLockscreenUserManager.getCurrentUserId(); in updateNotificationViews()
171 boolean devicePublic = mLockscreenUserManager.isLockscreenPublicMode(currentUserId); in updateNotificationViews()
173 || mLockscreenUserManager.isLockscreenPublicMode(userId); in updateNotificationViews()
176 || !mLockscreenUserManager.needsSeparateWorkChallenge(userId))) { in updateNotificationViews()
179 boolean needsRedaction = mLockscreenUserManager.needsRedaction(ent); in updateNotificationViews()
182 && !mLockscreenUserManager.userAllowsPrivateNotificationsInPublic( in updateNotificationViews()
464 boolean showOnKeyguard = mLockscreenUserManager.shouldShowOnKeyguard(entry); in updateRowStatesInternal()
469 if (summary != null && mLockscreenUserManager.shouldShowOnKeyguard(summary)) { in updateRowStatesInternal()
[all …]
DNotificationRemoteInputManager.java115 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationRemoteInputManager
290 mLockscreenUserManager = lockscreenUserManager; in NotificationRemoteInputManager()
501 if (mLockscreenUserManager.shouldAllowLockscreenRemoteInput()) { in showBouncerForRemoteInput()
520 if ((mLockscreenUserManager.isLockscreenPublicMode(userId) in showBouncerForRemoteInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java99 private final NotificationLockscreenUserManager mLockscreenUserManager = field in NotificationGutsManager
367 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeNotificationInfo()
413 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializePartialConversationNotificationInfo()
468 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeConversationNotificationInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutController.java171 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationStackScrollLayoutController
293 mLockscreenUserManager.isAnyProfilePublicMode());
302 mView.updateSensitiveness(false, mLockscreenUserManager.isAnyProfilePublicMode());
632 mLockscreenUserManager = lockscreenUserManager; in NotificationStackScrollLayoutController()
722 mLockscreenUserManager.addUserChangedListener(mLockscreenUserChangeListener); in attach()
1353 mLockscreenUserManager.getCurrentUserId());
1384 mLockscreenUserManager.getCurrentUserId());
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarTest.java202 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarTest
390 mLockscreenUserManager, in setup()
794 when(mLockscreenUserManager.getCurrentProfiles()).thenReturn( in testUpdateKeyguardState_DoesNotCrash()
851 when(mLockscreenUserManager.getCurrentProfiles()).thenReturn(new SparseArray<>()); in testShowKeyguardImplementation_setsState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationEntryManagerInflationTest.java129 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationEntryManagerInflationTest
280 mLockscreenUserManager, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DNewNotifPipelineBubblesTest.java144 private NotificationLockscreenUserManager mLockscreenUserManager; field in NewNotifPipelineBubblesTest
293 mLockscreenUserManager, in setUp()
DBubblesTest.java166 private NotificationLockscreenUserManager mLockscreenUserManager; field in BubblesTest
349 mLockscreenUserManager, in setUp()