/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskControllerTest.kt | 171 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 …]
|
D | NoteTaskEventLoggerTest.kt | 82 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()
|
D | NoteTaskInfoTest.kt | 34 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/ |
D | NoteTaskInfoResolver.kt | 39 isKeyguardLocked: Boolean = false, in resolveInfo() 51 isKeyguardLocked = isKeyguardLocked, in resolveInfo()
|
D | NoteTaskInfo.kt | 27 val isKeyguardLocked: Boolean = false, constant in com.android.systemui.notetask.NoteTaskInfo 31 if (isKeyguardLocked || entryPoint == WIDGET_PICKER_SHORTCUT_IN_MULTI_WINDOW_MODE) {
|
D | NoteTaskController.kt | 197 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()
|
D | NoteTaskEventLogger.kt | 48 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/ |
D | KeyguardLockController.kt | 51 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/ |
D | LockStateTrackingRule.kt | 63 wait("keyguard locked") { windowManager.isKeyguardLocked } in assertLocked() 71 wait("keyguard locked") { windowManager.isKeyguardLocked } in assertUnlockedButNotReally()
|
D | ScreenLockRule.kt | 106 !windowManager.isKeyguardLocked in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ |
D | PhoneStateMonitor.java | 148 } 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/ |
D | AdaptiveAuthServiceTest.java | 171 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/ |
D | IKeyguardLockedStateListener.aidl | 20 void onKeyguardLockedStateChanged(boolean isKeyguardLocked); in onKeyguardLockedStateChanged() argument
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/tests/src/com/android/systemui/accessibility/accessibilitymenu/tests/ |
D | AccessibilityMenuServiceTest.java | 205 "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/ |
D | TestActivity.java | 46 if (keyguardManager != null && keyguardManager.isKeyguardLocked()) { in onCreate()
|
D | CommonUtils.java | 89 if (keyguardManager == null || !keyguardManager.isKeyguardLocked()) { in dismissKeyguard()
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 246 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/ |
D | SurfaceViewSyncContinuousTest.java | 53 if (km != null && km.isKeyguardLocked() || !Objects.requireNonNull( in setup()
|
D | ActivityTaskManagerServiceTests.java | 239 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/ |
D | LaunchAfterAuthenticationActivity.java | 63 if (km.isKeyguardLocked()) { in requestDismissKeyguardIfNeeded()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WallpaperController.java | 160 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()
|
D | KeyguardController.java | 143 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/ |
D | TrustManagerServiceTest.java | 209 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/ |
D | WindowPerfTestBase.java | 55 || context.getSystemService(KeyguardManager.class).isKeyguardLocked()) { in setUpOnce()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
D | AccessibilityShortcutChooserActivityTest.java | 153 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in setUp() 300 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in createDialog_onLockscreen_hasExpectedContent()
|