Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerTest.java161 private TestNotificationLockscreenUserManager mLockscreenUserManager; field in NotificationLockscreenUserManagerTest
238 mLockscreenUserManager = new TestNotificationLockscreenUserManager(mContext); in setUp()
239 mLockscreenUserManager.setUpWithPresenter(mPresenter); in setUp()
253 mLockscreenUserManager.getLockscreenSettingsObserverForTest().onChange(false, in changeSetting()
261 mLockscreenUserManager = new TestNotificationLockscreenUserManager(mContext); in testInit()
262 mLockscreenUserManager.setUpWithPresenter(mPresenter); in testInit()
266 assertTrue(mLockscreenUserManager.needsRedaction(mCurrentUserNotif)); in testInit()
267 assertTrue(mLockscreenUserManager.needsRedaction(mSecondaryUserNotif)); in testInit()
278 assertTrue(mLockscreenUserManager.getCurrentProfiles().contentEquals(expectedCurProfiles)); in testGetCurrentProfiles()
280 mLockscreenUserManager.mUserChangedCallback.onUserChanging(mSecondaryUser.id, mContext); in testGetCurrentProfiles()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHideNotifsForOtherUsersCoordinator.java43 private final NotificationLockscreenUserManager mLockscreenUserManager; field in HideNotifsForOtherUsersCoordinator
48 mLockscreenUserManager = lockscreenUserManager; in HideNotifsForOtherUsersCoordinator()
54 mLockscreenUserManager.addUserChangedListener(mUserChangedListener); in attach()
60 return !mLockscreenUserManager
71 sb.append(" user=").append(mLockscreenUserManager.getCurrentUserId());
DViewConfigCoordinator.kt43 private val mLockscreenUserManager: NotificationLockscreenUserManager, in <lambda>() constant in com.android.systemui.statusbar.notification.collection.coordinator.ViewConfigCoordinator
79 mLockscreenUserManager.addUserChangedListener(mUserChangedListener) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DDynamicPrivacyController.java38 private final NotificationLockscreenUserManager mLockscreenUserManager; field in DynamicPrivacyController
49 mLockscreenUserManager = notificationLockscreenUserManager; in DynamicPrivacyController()
80 return mLockscreenUserManager.userAllowsNotificationsInPublic( in isDynamicPrivacyEnabled()
81 mLockscreenUserManager.getCurrentUserId()); in isDynamicPrivacyEnabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarNotificationPresenter.java85 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationPresenter
149 mLockscreenUserManager = lockscreenUserManager; in StatusBarNotificationPresenter()
188 mLockscreenUserManager.setUpWithPresenter(this); in StatusBarNotificationPresenter()
192 onUserSwitched(mLockscreenUserManager.getCurrentUserId()); in StatusBarNotificationPresenter()
299 boolean devicePublic = mLockscreenUserManager
300 .isLockscreenPublicMode(mLockscreenUserManager.getCurrentUserId());
302 || mLockscreenUserManager.isLockscreenPublicMode(sbn.getUserId());
303 boolean needsRedaction = mLockscreenUserManager.needsRedaction(entry);
356 if (!mLockscreenUserManager.needsRedaction(entry)) {
360 final int currentUserId = mLockscreenUserManager.getCurrentUserId();
[all …]
DStatusBarRemoteInputCallback.java68 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarRemoteInputCallback
105 mLockscreenUserManager = notificationLockscreenUserManager; in StatusBarRemoteInputCallback()
143 mLockscreenUserManager.updatePublicMode(); in onWorkChallengeChanged()
145 && !mLockscreenUserManager.isAnyProfilePublicMode()) { in onWorkChallengeChanged()
281 mLockscreenUserManager.getCurrentUserId()); in handleRemoteViewClick()
314 if (userId != mLockscreenUserManager.getCurrentUserId() in onReceive()
315 && mLockscreenUserManager.isCurrentProfile(userId)) { in onReceive()
DStatusBarNotificationActivityStarter.java130 private final NotificationLockscreenUserManager mLockscreenUserManager; field in StatusBarNotificationActivityStarter
202 mLockscreenUserManager = lockscreenUserManager; in StatusBarNotificationActivityStarter()
291 mLockscreenUserManager.getCurrentUserId()); in performActionAfterKeyguardDismissed()
296 mLockscreenUserManager.getCurrentUserId()); in performActionAfterKeyguardDismissed()
DCentralSurfacesImpl.java528 private final NotificationLockscreenUserManager mLockscreenUserManager; field in CentralSurfacesImpl
744 mLockscreenUserManager = lockScreenUserManager; in CentralSurfacesImpl()
1891 if (mLockscreenUserManager.isCurrentProfile(getSendingUserId())) {
2188 mLockscreenUserManager.updatePublicMode(); in hideKeyguardImpl()
2621 mLockscreenUserManager.updatePublicMode();
2701 mLockscreenUserManager.getCurrentUserId())) { in isCameraAllowedByAdmin()
2707 mLockscreenUserManager.getCurrentUserId()) in isCameraAllowedByAdmin()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/coordinator/
DHideNotifsForOtherUsersCoordinatorTest.java53 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in HideNotifsForOtherUsersCoordinatorTest
70 new HideNotifsForOtherUsersCoordinator(mLockscreenUserManager); in setUp()
73 verify(mLockscreenUserManager).addUserChangedListener(mUserChangedListenerCaptor.capture()); in setUp()
85 when(mLockscreenUserManager.isCurrentProfile(anyInt())).thenReturn(false); in testFilterOutNotifsFromOtherProfiles()
94 when(mLockscreenUserManager.isCurrentProfile(anyInt())).thenReturn(true); in testPreserveNotifsFromThisProfile()
DPreparationCoordinatorTest.java111 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in PreparationCoordinatorTest
136 mLockscreenUserManager, in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DDreamMediaEntryComplicationTest.java82 private NotificationLockscreenUserManager mLockscreenUserManager; field in DreamMediaEntryComplicationTest
121 mLockscreenUserManager, in testClickToOpenUMO()
150 mLockscreenUserManager, in testOnViewDetached()
169 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaOverLockscreen()
180 mLockscreenUserManager, in testClickToOpenMediaOverLockscreen()
206 when(mLockscreenUserManager.getCurrentUserId()).thenReturn(mCurrentUserId); in testClickToOpenMediaDismissingLockscreen()
217 mLockscreenUserManager, in testClickToOpenMediaDismissingLockscreen()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DKeyguardNotificationVisibilityProviderTest.java96 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in KeyguardNotificationVisibilityProviderTest
118 mLockscreenUserManager, in setup()
413 when(mLockscreenUserManager.shouldShowLockscreenNotifications()).thenReturn(false); in doNotShowLockscreenNotifications()
438 when(mLockscreenUserManager.isLockscreenPublicMode(NOTIF_USER_ID)).thenReturn(true); in publicMode_settingsDisallow()
439 when(mLockscreenUserManager.userAllowsNotificationsInPublic(NOTIF_USER_ID)) in publicMode_settingsDisallow()
458 when(mLockscreenUserManager.isLockscreenPublicMode(CURR_USER_ID)).thenReturn(true); in publicMode_nullChannel_allowed()
476 when(mLockscreenUserManager.isLockscreenPublicMode(CURR_USER_ID)).thenReturn(true); in publicMode_notifDisallowed()
573 when(mLockscreenUserManager.isLockscreenPublicMode(CURR_USER_ID)).thenReturn(true); in notificationChannelVisibilitySecret()
574 when(mLockscreenUserManager.isLockscreenPublicMode(NOTIF_USER_ID)).thenReturn(true); in notificationChannelVisibilitySecret()
666 when(mLockscreenUserManager.shouldShowLockscreenNotifications()).thenReturn(true); in setupUnfilteredState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/complication/
DDreamMediaEntryComplication.java108 private final NotificationLockscreenUserManager mLockscreenUserManager; field in DreamMediaEntryComplication.DreamMediaEntryViewController
133 mLockscreenUserManager = lockscreenUserManager; in DreamMediaEntryViewController()
162 mLockscreenUserManager.getCurrentUserId()); in onClickMediaEntry()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationRemoteInputManagerTest.java70 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationRemoteInputManagerTest
82 mLockscreenUserManager, in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DNotificationGutsManager.java101 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationGutsManager
181 mLockscreenUserManager = notificationLockscreenUserManager; in NotificationGutsManager()
395 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeNotificationInfo()
441 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializePartialConversationNotificationInfo()
495 || mLockscreenUserManager.getCurrentUserId() == UserHandle.USER_SYSTEM) { in initializeConversationNotificationInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java97 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationRemoteInputManager
276 mLockscreenUserManager = lockscreenUserManager; in NotificationRemoteInputManager()
512 if ((mLockscreenUserManager.isLockscreenPublicMode(userId) in showBouncerForRemoteInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayoutController.java197 private final NotificationLockscreenUserManager mLockscreenUserManager; field in NotificationStackScrollLayoutController
431 boolean isAnyProfilePublic = mLockscreenUserManager.isAnyProfilePublicMode(); in updateSensitivenessWithAnimation()
440 mView.updateSensitiveness(animate, mLockscreenUserManager.isAnyProfilePublicMode()); in updateSensitivenessWithAnimation()
773 mLockscreenUserManager = lockscreenUserManager; in NotificationStackScrollLayoutController()
873 mLockscreenUserManager.addUserChangedListener(mLockscreenUserChangeListener); in setUpView()
1675 mLockscreenUserManager.getCurrentUserId());
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/
DMediaControlPanel.java239 private final NotificationLockscreenUserManager mLockscreenUserManager; field in MediaControlPanel
336 mLockscreenUserManager = lockscreenUserManager; in MediaControlPanel()
578 mLockscreenUserManager.getCurrentUserId()); in bindPlayer()
755 deviceIntent, mLockscreenUserManager.getCurrentUserId()); in bindOutputSwitcherAndBroadcastButton()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DBubblesTest.java232 private NotificationLockscreenUserManager mLockscreenUserManager; field in BubblesTest
527 mLockscreenUserManager, in setUp()
1276 when(mLockscreenUserManager.isCurrentProfile(firstUserId)).thenReturn(true); in testOnUserChanged_bubblesRestored()
1277 when(mLockscreenUserManager.isCurrentProfile(secondUserId)).thenReturn(false); in testOnUserChanged_bubblesRestored()
2478 when(mLockscreenUserManager.isCurrentProfile(anyInt())).thenAnswer( in switchUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DCentralSurfacesImplTest.java264 @Mock private NotificationLockscreenUserManager mLockscreenUserManager; field in CentralSurfacesImplTest
528 mLockscreenUserManager, in createCentralSurfaces()
968 when(mLockscreenUserManager.getCurrentProfiles()).thenReturn(new SparseArray<>()); in testShowKeyguardImplementation_setsState()