Home
last modified time | relevance | path

Searched refs:isKeyguardLocked (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskControllerTest.kt171 val expectedInfo = NOTE_TASK_INFO.copy(isKeyguardLocked = false) in <lambda>()
186 val expectedInfo = NOTE_TASK_INFO.copy(isKeyguardLocked = false) in <lambda>()
201 val expectedInfo = NOTE_TASK_INFO.copy(isKeyguardLocked = true) in <lambda>()
215 val expectedInfo = NOTE_TASK_INFO.copy(isKeyguardLocked = true) in <lambda>()
256 isKeyguardLocked = true, in <lambda>()
259 whenever(keyguardManager.isKeyguardLocked).thenReturn(expectedInfo.isKeyguardLocked) in <lambda>()
283 val expectedInfo = NOTE_TASK_INFO.copy(entryPoint = TAIL_BUTTON, isKeyguardLocked = true) in <lambda>()
284 whenever(keyguardManager.isKeyguardLocked).thenReturn(expectedInfo.isKeyguardLocked) in <lambda>()
307 val expectedInfo = NOTE_TASK_INFO.copy(entryPoint = TAIL_BUTTON, isKeyguardLocked = true) in <lambda>()
308 whenever(keyguardManager.isKeyguardLocked).thenReturn(expectedInfo.isKeyguardLocked) in <lambda>()
[all …]
DNoteTaskEventLoggerTest.kt82 isKeyguardLocked = false, in onNoteTaskBubbleExpanded_entryPointTailButtonAndIsKeyguardUnlocked_noteOpenedViaTailButtonUnlocked()
97 isKeyguardLocked = true, in onNoteTaskBubbleExpanded_entryPointTailButtonAndIsKeyguardLocked_noteOpenedViaTailButtonLocked()
123 isKeyguardLocked = false, in logNoteTaskClosed_entryPointTailButton_noteClosedViaTailButtonUnlocked()
138 isKeyguardLocked = true, in logNoteTaskClosed_entryPointTailButtonAndKeyguardLocked_noteClosedViaTailButtonLocked()
DNoteTaskInfoTest.kt34 val underTest = DEFAULT_INFO.copy(isKeyguardLocked = true) in launchMode_keyguardLocked_launchModeActivity()
48 val underTest = DEFAULT_INFO.copy(isKeyguardLocked = false) in launchMode_keyguardUnlocked_launchModeAppBubble()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/
DNoteTaskInfoResolver.kt39 isKeyguardLocked: Boolean = false, in resolveInfo()
51 isKeyguardLocked = isKeyguardLocked, in resolveInfo()
DNoteTaskInfo.kt27 val isKeyguardLocked: Boolean = false, constant in com.android.systemui.notetask.NoteTaskInfo
31 if (isKeyguardLocked || entryPoint == WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE) {
DNoteTaskController.kt197 val isKeyguardLocked = keyguardManager.isKeyguardLocked in awaitShowNoteTaskAsUser() constant
202 isKeyguardLocked && in awaitShowNoteTaskAsUser()
209 val info = resolver.resolveInfo(entryPoint, isKeyguardLocked, user) in awaitShowNoteTaskAsUser()
232 if (info.isKeyguardLocked && activityManager.isInForeground(info.packageName)) { in awaitShowNoteTaskAsUser()
DNoteTaskEventLogger.kt48 if (info.isKeyguardLocked) { in logNoteTaskOpened()
71 if (info.isKeyguardLocked) { in logNoteTaskClosed()
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/app/
DKeyguardLockController.kt51 keyguardManager?.let { locked = it.isKeyguardLocked } in <lambda>()
83 fun updateLockState() = keyguardManager?.let { onChange(it.isKeyguardLocked) } in <lambda>()
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DLockStateTrackingRule.kt63 wait("keyguard locked") { windowManager.isKeyguardLocked } in assertLocked()
71 wait("keyguard locked") { windowManager.isKeyguardLocked } in assertUnlockedButNotReally()
DScreenLockRule.kt106 !windowManager.isKeyguardLocked in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DPhoneStateMonitor.java148 } else if (isKeyguardLocked()) { in getPhoneLockscreenState()
188 private boolean isKeyguardLocked() { in isKeyguardLocked() method in PhoneStateMonitor
191 return keyguardManager != null && keyguardManager.isKeyguardLocked(); in isKeyguardLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/adaptiveauth/
DAdaptiveAuthServiceTest.java171 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyLocked()
187 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyNotLocked()
223 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyLocked()
240 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyNotLocked()
/frameworks/base/core/java/com/android/internal/policy/
DIKeyguardLockedStateListener.aidl20 void onKeyguardLockedStateChanged(boolean isKeyguardLocked); in onKeyguardLockedStateChanged() argument
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/tests/src/com/android/systemui/accessibility/accessibilitymenu/tests/
DAccessibilityMenuServiceTest.java205 "Screen is locked", () -> sKeyguardManager.isKeyguardLocked()); in closeScreen()
465 assertThat(sKeyguardManager.isKeyguardLocked()).isTrue(); in testOnScreenLock_closesMenu()
477 assertThat(sKeyguardManager.isKeyguardLocked()).isTrue(); in testOnScreenLock_cannotOpenMenu()
490 if (sKeyguardManager.isKeyguardLocked()) { in unlockSignal()
495 () -> isScreenOn() && !sKeyguardManager.isKeyguardLocked()); in unlockSignal()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DTestActivity.java46 if (keyguardManager != null && keyguardManager.isKeyguardLocked()) { in onCreate()
DCommonUtils.java89 if (keyguardManager == null || !keyguardManager.isKeyguardLocked()) { in dismissKeyguard()
/frameworks/base/core/java/android/app/
DKeyguardManager.java246 public void onKeyguardLockedStateChanged(boolean isKeyguardLocked) {
249 () -> listener.onKeyguardLockedStateChanged(isKeyguardLocked));
673 public boolean isKeyguardLocked() { in isKeyguardLocked() method in KeyguardManager
675 return mWM.isKeyguardLocked(); in isKeyguardLocked()
718 return isKeyguardLocked(); in inKeyguardRestrictedInputMode()
1324 void onKeyguardLockedStateChanged(boolean isKeyguardLocked); in onKeyguardLockedStateChanged() argument
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSurfaceViewSyncContinuousTest.java53 if (km != null && km.isKeyguardLocked() || !Objects.requireNonNull( in setup()
DActivityTaskManagerServiceTests.java239 assertFalse(displayContent.isKeyguardLocked()); in testSetLockScreenShownWithVirtualDisplay()
246 assertTrue(displayContent.isKeyguardLocked()); in testSetLockScreenShownWithVirtualDisplay()
253 assertFalse(displayContent.isKeyguardLocked()); in testSetLockScreenShownWithVirtualDisplay()
273 assertFalse(displayContent.isKeyguardLocked()); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay()
280 assertTrue(mDefaultDisplay.isKeyguardLocked()); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay()
286 assertFalse(virtualDisplay.isKeyguardLocked()); in testSetLockScreenShownWithAlwaysUnlockedVirtualDisplay()
310 doReturn(false).when(record).isKeyguardLocked(); in testEnterPipModeWhenRecordParentChangesToNull()
/frameworks/base/core/java/com/android/internal/app/
DLaunchAfterAuthenticationActivity.java63 if (km.isKeyguardLocked()) { in requestDismissKeyguardIfNeeded()
/frameworks/base/services/core/java/com/android/server/wm/
DWallpaperController.java160 if (mService.mPolicy.isKeyguardLocked()) {
703 target.canShowWhenLocked() && mService.isKeyguardLocked()); in getTokenForTarget()
746 mFindResults.getTopWallpaper(mDisplayContent.isKeyguardLocked())); in findWallpaperTarget()
914 updateWallpaperTokens(visible, mDisplayContent.isKeyguardLocked()); in adjustWallpaperWindows()
918 mDisplayContent.getDisplayId(), visible, mDisplayContent.isKeyguardLocked()); in adjustWallpaperWindows()
1231 WindowState getTopWallpaper(boolean isKeyguardLocked) { in getTopWallpaper() argument
1232 if (!isKeyguardLocked && hasTopHideWhenLockedWallpaper()) { in getTopWallpaper()
DKeyguardController.java143 boolean isKeyguardLocked(int displayId) { in isKeyguardLocked() method in KeyguardController
397 } else if (isKeyguardLocked(r.getDisplayId())) { in checkKeyguardVisibility()
441 final boolean performTransition = isKeyguardLocked(displayId); in handleOccludedChanged()
447 if (isKeyguardLocked(displayId)) { in handleOccludedChanged()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/trust/
DTrustManagerServiceTest.java209 when(mWindowManager.isKeyguardLocked()).thenReturn(true); in setUp()
426 when(mWindowManager.isKeyguardLocked()).thenReturn(false); in testLockDeviceForManagedProfileWithUnifiedChallenge_usesParentBiometricSids()
431 when(mWindowManager.isKeyguardLocked()).thenReturn(true); in testLockDeviceForManagedProfileWithUnifiedChallenge_usesParentBiometricSids()
572 when(mWindowManager.isKeyguardLocked()).thenReturn(false); in setUpRenewableTrust()
790 when(mWindowManager.isKeyguardLocked()).thenReturn(false); in verifyWeakUnlockValue()
794 when(mWindowManager.isKeyguardLocked()).thenReturn(true); in verifyWeakUnlockValue()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DWindowPerfTestBase.java55 || context.getSystemService(KeyguardManager.class).isKeyguardLocked()) { in setUpOnce()
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/
DAccessibilityShortcutChooserActivityTest.java153 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in setUp()
300 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in createDialog_onLockscreen_hasExpectedContent()

123