Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A DNotificationLockscreenUserManagerTest.java106 private TestNotificationLockscreenUserManager mLockscreenUserManager; field in NotificationLockscreenUserManagerTest
143 mLockscreenUserManager.setUpWithPresenter(mPresenter); in setUp()
208 assertTrue(mLockscreenUserManager.needsRedaction(mCurrentUserNotif)); in testCurrentUserPrivateNotificationsNotRedacted()
230 assertTrue(mLockscreenUserManager.needsRedaction(mWorkProfileNotif)); in testWorkPrivateNotificationsRedacted()
303 mLockscreenUserManager.getSettingsObserverForTest().onChange(false); in testSettingsObserverUpdatesNotifications()
335 assertTrue(mLockscreenUserManager.shouldShowOnKeyguard(entry)); in testShowSilentNotifications_settingSaysShow()
352 assertFalse(mLockscreenUserManager.shouldShowOnKeyguard(entry)); in testShowSilentNotifications_settingSaysHide()
369 assertFalse(mLockscreenUserManager.shouldShowOnKeyguard(entry)); in testShowSilentNotificationsPeopleBucket_settingSaysHide()
387 assertTrue(mLockscreenUserManager.shouldShowOnKeyguard(entry)); in testShowSilentNotificationsMediaBucket_settingSaysHide()
405 assertFalse(mLockscreenUserManager.shouldShowOnKeyguard(entry)); in testKeyguardNotificationSuppressors()
[all …]
H A DNotificationViewHierarchyManagerTest.java81 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationViewHierarchyManagerTest
100 mLockscreenUserManager); in setUp()
112 mHandler, mFeatureFlags, mLockscreenUserManager, mGroupManager, in setUp()
H A DNotificationRemoteInputManagerTest.java86 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationRemoteInputManagerTest
102 mLockscreenUserManager, in setUp()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A 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 …]
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
H A DHideNotifsForOtherUsersCoordinator.java43 private final NotificationLockscreenUserManager mLockscreenUserManager; field in HideNotifsForOtherUsersCoordinator
50 mLockscreenUserManager = lockscreenUserManager; in HideNotifsForOtherUsersCoordinator()
57 mLockscreenUserManager.addUserChangedListener(mUserChangedListener); in attach()
63 return !mLockscreenUserManager
74 mLockscreenUserManager.getCurrentUserId(),
H A 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(
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationViewHierarchyManager.java77 protected final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationViewHierarchyManager
128 mLockscreenUserManager = notificationLockscreenUserManager; in NotificationViewHierarchyManager()
180 int currentUserId = mLockscreenUserManager.getCurrentUserId(); in updateNotificationViews()
181 boolean devicePublic = mLockscreenUserManager.isLockscreenPublicMode(currentUserId); in updateNotificationViews()
183 || mLockscreenUserManager.isLockscreenPublicMode(userId); in updateNotificationViews()
186 || !mLockscreenUserManager.needsSeparateWorkChallenge(userId))) { in updateNotificationViews()
189 boolean needsRedaction = mLockscreenUserManager.needsRedaction(ent); in updateNotificationViews()
192 && !mLockscreenUserManager.userAllowsPrivateNotificationsInPublic( in updateNotificationViews()
478 boolean showOnKeyguard = mLockscreenUserManager.shouldShowOnKeyguard(entry); in updateRowStatesInternal()
483 if (summary != null && mLockscreenUserManager.shouldShowOnKeyguard(summary)) { in updateRowStatesInternal()
[all …]
H A DNotificationRemoteInputManager.java96 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationRemoteInputManager
277 mLockscreenUserManager = lockscreenUserManager; in NotificationRemoteInputManager()
529 if (mLockscreenUserManager.shouldAllowLockscreenRemoteInput()) { in showBouncerForRemoteInput()
548 if ((mLockscreenUserManager.isLockscreenPublicMode(userId) in showBouncerForRemoteInput()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A 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()
H A DKeyguardEnvironmentImpl.java36 private final NotificationLockscreenUserManager mLockscreenUserManager = field in KeyguardEnvironmentImpl
55 mLockscreenUserManager.getCurrentUserId(), notificationUserId)); in isNotificationForCurrentProfiles()
57 return mLockscreenUserManager.isCurrentProfile(notificationUserId); in isNotificationForCurrentProfiles()
H A DStatusBarNotificationPresenter.java87 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationPresenter
160 mLockscreenUserManager = lockscreenUserManager; in StatusBarNotificationPresenter()
206 mLockscreenUserManager.setUpWithPresenter(this); in StatusBarNotificationPresenter()
216 onUserSwitched(mLockscreenUserManager.getCurrentUserId()); in StatusBarNotificationPresenter()
427 if (mLockscreenUserManager.isLockscreenPublicMode(sbn.getUser().getIdentifier())
461 boolean devicePublic = mLockscreenUserManager
462 .isLockscreenPublicMode(mLockscreenUserManager.getCurrentUserId());
464 || mLockscreenUserManager.isLockscreenPublicMode(sbn.getUserId());
465 boolean needsRedaction = mLockscreenUserManager.needsRedaction(entry);
H A DStatusBarNotificationActivityStarter.java113 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationActivityStarter
187 mLockscreenUserManager = lockscreenUserManager; in StatusBarNotificationActivityStarter()
259 mLockscreenUserManager.getCurrentUserId()); in onNotificationClicked()
264 mLockscreenUserManager.getCurrentUserId()); in onNotificationClicked()
699 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationActivityStarter.Builder
767 mLockscreenUserManager = lockscreenUserManager; in Builder()
831 mLockscreenUserManager, in build()
H A DStatusBar.java629 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBar
825 mLockscreenUserManager = lockScreenUserManager; in StatusBar()
1440 mLockscreenUserManager, in setUpPresenter()
2474 mLockscreenUserManager.getCurrentUserId()); in startActivityDismissingKeyguard()
2643 if (mLockscreenUserManager.isCurrentProfile(getSendingUserId())) {
3091 mLockscreenUserManager.updatePublicMode(); in hideKeyguardImpl()
3700 mLockscreenUserManager.getCurrentUserId())) { in isCameraAllowedByAdmin()
3706 mLockscreenUserManager.getCurrentUserId()) in isCameraAllowedByAdmin()
3961 mLockscreenUserManager.getCurrentUserId()); in startPendingIntentDismissingKeyguard()
H A DNotificationPanelViewController.java488 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationPanelViewController
803 mLockscreenUserManager = notificationLockscreenUserManager; in NotificationPanelViewController()
1508 if (!mLockscreenUserManager.shouldShowOnKeyguard(row.getEntry())) { in canShowRowOnLockscreen()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotificationGutsManager.java103 private final NotificationLockscreenUserManager mLockscreenUserManager = field in NotificationGutsManager
376 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeNotificationInfo()
422 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializePartialConversationNotificationInfo()
477 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeConversationNotificationInfo()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
H A DNotificationStackScrollLayoutController.java176 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationStackScrollLayoutController
322 mLockscreenUserManager.isAnyProfilePublicMode());
331 mView.updateSensitiveness(false, mLockscreenUserManager.isAnyProfilePublicMode());
668 mLockscreenUserManager = lockscreenUserManager; in NotificationStackScrollLayoutController()
773 mLockscreenUserManager.addUserChangedListener(mLockscreenUserChangeListener); in attach()
1449 mLockscreenUserManager.getCurrentUserId());
1480 mLockscreenUserManager.getCurrentUserId());
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
H A DNotificationEntryManagerInflationTest.java132 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationEntryManagerInflationTest
286 mLockscreenUserManager, in setUp()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
H A DStatusBarTest.java201 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarTest
394 mLockscreenUserManager, in setup()
884 when(mLockscreenUserManager.getCurrentProfiles()).thenReturn(new SparseArray<>()); in testShowKeyguardImplementation_setsState()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
H A DNewNotifPipelineBubblesTest.java149 private NotificationLockscreenUserManager mLockscreenUserManager; field in NewNotifPipelineBubblesTest
324 mLockscreenUserManager, in setUp()
H A DBubblesTest.java168 private NotificationLockscreenUserManager mLockscreenUserManager; field in BubblesTest
359 mLockscreenUserManager, in setUp()