Home
last modified time | relevance | path

Searched refs:isUserUnlocked (Results 1 – 25 of 79) sorted by relevance

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/quickaffordance/
DNoteTaskQuickAffordanceConfig.kt90 isUserUnlocked, in <lambda>() method
94 logDebug { "lockScreenState:isUserUnlocked=$isUserUnlocked" } in <lambda>()
101 isUserUnlocked && in <lambda>()
151 trySendBlocking(isUserUnlocked) in createUserUnlockedFlow()
155 trySendBlocking(isUserUnlocked) in createUserUnlockedFlow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskInitializerTest.kt74 whenever(keyguardMonitor.isUserUnlocked(userTracker.userId)).thenReturn(true) in setUp()
102 whenever(keyguardMonitor.isUserUnlocked(userTracker.userId)).thenReturn(true) in createUnderTest()
114 whenever(keyguardMonitor.isUserUnlocked(userTracker.userId)).thenReturn(false) in initialize_withUserLocked()
176 whenever(keyguardMonitor.isUserUnlocked(userTracker.userId)).thenReturn(false) in initialize_userUnlocked_shouldUpdateNoteTask()
180 whenever(keyguardMonitor.isUserUnlocked(userTracker.userId)).thenReturn(true) in initialize_userUnlocked_shouldUpdateNoteTask()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskController.kt195 if (!userManager.isUserUnlocked) return in awaitShowNoteTaskAsUser()
267 if (!userManager.isUserUnlocked(user)) { in setNoteTaskShortcutEnabled()
321 if (!userManager.isUserUnlocked(user)) { in updateNoteTaskAsUser()
346 if (!userManager.isUserUnlocked(user)) { in launchUpdateNoteTaskAsUser()
DNoteTaskInitializer.kt97 if (keyguardUpdateMonitor.isUserUnlocked(userTracker.userId)) { in initializeOnUserUnlocked()
/frameworks/base/packages/StatementService/src/com/android/statementservice/
DStatementServiceApplication.kt29 if (userManager.isUserUnlocked) { in onCreate()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationHistoryManagerTest.java131 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isFalse(); in testOnUserUnlocked()
134 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isTrue(); in testOnUserUnlocked()
282 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isTrue(); in testOnUserUnlocked_cleansUpRemovedPackages()
293 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isFalse(); in testOnUserStopped_userExists()
301 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isFalse(); in testOnUserStopped_userDoesNotExist()
310 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isFalse(); in testOnUserRemoved_userExists()
319 assertThat(mHistoryManager.isUserUnlocked(USER_SYSTEM)).isFalse(); in testOnUserRemoved_userDoesNotExist()
DShortcutHelperTest.java103 when(mUserManager.isUserUnlocked(any(UserHandle.class))).thenReturn(true); in setUp()
337 when(mUserManager.isUserUnlocked(any(UserHandle.class))).thenReturn(false); in testGetValidShortcutInfo_isValidButUserLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/start/
DControlsStartable.kt156 if (userManager.isUserUnlocked(userTracker.userId)) { in <lambda>()
162 if (userManager.isUserUnlocked(userTracker.userId)) { in <lambda>()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowUserManager.java39 public boolean isUserUnlocked(@UserIdInt int userId) { in isUserUnlocked() method in ShadowUserManager
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java104 when(mUserManager.isUserUnlocked()).thenReturn(true); in setUp()
377 when(mUserManager.isUserUnlocked()).thenReturn(false); in testCarrierConfigChangedWithUserLocked()
400 when(mUserManager.isUserUnlocked()).thenReturn(false); in testUserLockedAfterCarrierConfigChanged()
420 when(mUserManager.isUserUnlocked()).thenReturn(true); in testUserLockedAfterCarrierConfigChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/start/
DControlsStartableTest.kt98 whenever(userManager.isUserUnlocked(anyInt())).thenReturn(true) in setUp()
243 whenever(userManager.isUserUnlocked(anyInt())).thenReturn(false) in testPreferredSelectionIsPanel_userNotUnlocked_notBind()
257 whenever(userManager.isUserUnlocked(anyInt())).thenReturn(false) in testPreferredSelectionIsPanel_userNotUnlocked_broadcastRegistered_broadcastSentBinds()
281 whenever(userManager.isUserUnlocked(anyInt())).thenReturn(true) in testPreferredSelectionIsPanel_userNotUnlocked_broadcastRegistered_broadcastSentBinds()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DTakeScreenshotServiceTest.kt55 private val userManager = mock<UserManager> { on { isUserUnlocked } doReturn (true) } in <lambda>()
113 whenever(userManager.isUserUnlocked).doReturn(false) in takeScreenshotFullscreen_userLocked()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DChooserWrapperActivity.java287 protected boolean isUserUnlocked(UserHandle userHandle) { in isUserUnlocked() method in ChooserWrapperActivity
289 return super.isUserUnlocked(userHandle); in isUserUnlocked()
/frameworks/base/packages/StatementService/src/com/android/statementservice/domain/
DDomainVerificationReceiverV2.kt66 if (context.getSystemService(UserManager::class.java)?.isUserUnlocked == true) { in <lambda>()
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/
DPacService.java70 if (um.isUserUnlocked()) { in checkPacProcessorLocked()
/frameworks/base/core/java/android/provider/
DCallLog.java259 Uri baseUri = userManager.isUserUnlocked(realUser) ? CALL_COMPOSER_PICTURE_URI in storeCallComposerPicture()
277 if (!userManager.isUserUnlocked(UserHandle.SYSTEM)) { in storeCallComposerPicture()
331 && userManager.isUserUnlocked(userHandle)) { in storeCallComposerPicture()
1922 if (userManager.isUserUnlocked(UserHandle.SYSTEM)) { in addCall()
1971 && userManager.isUserUnlocked(userHandle)) { in addCall()
1993 && userManager.isUserUnlocked(targetUserHandle)) { in addCall()
2055 userManager.isUserUnlocked(user) ? CONTENT_URI : SHADOW_CONTENT_URI, in addEntryAndRemoveExpiredEntries()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotPersister.java115 if (!userManagerInternal.isUserUnlocked(mRunningUserIds[i])) { in isReady()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStartInterceptorTest.java296 when(mUserManager.isUserUnlocked(eq(TEST_USER_ID))).thenReturn(true); in testLockedManagedProfileShowWhenLocked()
311 when(mUserManager.isUserUnlocked(eq(TEST_USER_ID))).thenReturn(false); in testLockedManagedProfileShowWhenLockedEncryptedStorage()
328 when(mUserManager.isUserUnlocked(eq(TEST_USER_ID))).thenReturn(false); in testLockedManagedProfileShowWhenLockedEncryptedStorageDirectBootAware()
DTaskSnapshotPersisterTestBase.java101 when(userManagerInternal.isUserUnlocked(mTestUserId)).thenReturn(true); in setUp()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryManager.java344 if (mUserManager.isUserUnlocked(userId)) { in getUserHistoryAndInitializeIfNeededLocked()
364 boolean isUserUnlocked(@UserIdInt int userId) { in isUserUnlocked() method in NotificationHistoryManager
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java172 doReturn(true).when(userManager).isUserUnlocked(); in setUp()
354 doReturn(false).when(userManager).isUserUnlocked(); in testNewSmsWithUserLocked_notificationShown()
383 doReturn(false).when(userManager).isUserUnlocked(); in testNewSmsFromBlockedNumberWithUserLocked_noNotificationShown()
1046 doReturn(false).when(userManager).isUserUnlocked(); in testBroadcastUndeliveredUserLocked()
1064 doReturn(true).when(userManager).isUserUnlocked(); in testBroadcastUndeliveredUserLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java178 boolean isUserUnlocked = mUserManager.isUserUnlocked(); in CarrierKeyDownloadManager()
180 if (isUserUnlocked && slotIndex == mPhone.getPhoneId()) { in CarrierKeyDownloadManager()
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerInternal.java303 public abstract boolean isUserUnlocked(int userId); in isUserUnlocked() method in UserManagerInternal
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java186 userManager.isUserUnlocked(); in initializeBenchmarks()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java285 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(true); in installChildProfile()
298 when(mUserManager.isUserUnlocked(eq(profileId))).thenReturn(false); in installAndTurnOffChildProfile()

1234