/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | NotificationLockscreenUserManagerTest.java | 106 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 D | NotificationViewHierarchyManagerTest.java | 81 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationViewHierarchyManagerTest 100 mLockscreenUserManager); in setUp() 112 mHandler, mFeatureFlags, mLockscreenUserManager, mGroupManager, in setUp()
|
H A D | NotificationRemoteInputManagerTest.java | 86 @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 D | KeyguardCoordinatorTest.java | 68 @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 D | HideNotifsForOtherUsersCoordinatorTest.java | 51 @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 D | HideNotifsForOtherUsersCoordinator.java | 43 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 D | KeyguardCoordinator.java | 60 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 D | DynamicPrivacyController.java | 40 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 D | NotificationViewHierarchyManager.java | 77 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 D | NotificationRemoteInputManager.java | 96 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 D | StatusBarRemoteInputCallback.java | 65 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 D | KeyguardEnvironmentImpl.java | 36 private final NotificationLockscreenUserManager mLockscreenUserManager = field in KeyguardEnvironmentImpl 55 mLockscreenUserManager.getCurrentUserId(), notificationUserId)); in isNotificationForCurrentProfiles() 57 return mLockscreenUserManager.isCurrentProfile(notificationUserId); in isNotificationForCurrentProfiles()
|
H A D | StatusBarNotificationPresenter.java | 87 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 D | StatusBarNotificationActivityStarter.java | 113 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 D | StatusBar.java | 629 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 D | NotificationPanelViewController.java | 488 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 D | NotificationGutsManager.java | 103 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 D | NotificationStackScrollLayoutController.java | 176 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 D | NotificationEntryManagerInflationTest.java | 132 @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 D | StatusBarTest.java | 201 @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 D | NewNotifPipelineBubblesTest.java | 149 private NotificationLockscreenUserManager mLockscreenUserManager; field in NewNotifPipelineBubblesTest 324 mLockscreenUserManager, in setUp()
|
H A D | BubblesTest.java | 168 private NotificationLockscreenUserManager mLockscreenUserManager; field in BubblesTest 359 mLockscreenUserManager, in setUp()
|