/frameworks/base/core/tests/coretests/src/android/app/ |
D | KeyguardManagerTest.java | 58 private final KeyguardManager mKeyguardManager = spy( field in KeyguardManagerTest 80 when(mKeyguardManager.isDeviceSecure(USER_ID)).thenReturn(true); in createConfirmDeviceCredentialIntent_deviceSecure() 82 Intent intent = mKeyguardManager.createConfirmDeviceCredentialIntent(TITLE, DESCRIPTION, in createConfirmDeviceCredentialIntent_deviceSecure() 95 when(mKeyguardManager.isDeviceSecure(USER_ID)).thenReturn(false); in createConfirmDeviceCredentialIntent_deviceNotSecure() 97 Intent intent = mKeyguardManager.createConfirmDeviceCredentialIntent(TITLE, DESCRIPTION, in createConfirmDeviceCredentialIntent_deviceNotSecure() 105 when(mKeyguardManager.isDeviceSecure(USER_ID)).thenReturn(true); in createConfirmDeviceCredentialIntent() 107 Intent intent = mKeyguardManager.createConfirmDeviceCredentialIntent(TITLE, DESCRIPTION, in createConfirmDeviceCredentialIntent() 117 mKeyguardManager.setPrivateNotificationsAllowed(true); in setPrivateNotificationsAllowed_allowed() 119 assertTrue(mKeyguardManager.getPrivateNotificationsAllowed()); in setPrivateNotificationsAllowed_allowed() 124 mKeyguardManager.setPrivateNotificationsAllowed(false); in setPrivateNotificationsAllowed_notAllowed() [all …]
|
/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/ |
D | InitialLockSetupClient.java | 62 private KeyguardManager mKeyguardManager; field in InitialLockSetupClient 72 mKeyguardManager = mContext.getSystemService(KeyguardManager.class); in InitialLockSetupClient() 129 mInitialLockListener, mInitialLockSetupService, mKeyguardManager); in getLockConfigs() 145 mInitialLockSetupService, mKeyguardManager, LockTypes.PASSWORD); in checkValidPassword() 160 mInitialLockSetupService, mKeyguardManager, LockTypes.PIN); in checkValidPin() 175 mInitialLockSetupService, mKeyguardManager, LockTypes.PATTERN); in checkValidPattern() 192 mInitialLockSetupService, mKeyguardManager, LockTypes.PASSWORD); in saveLockPassword() 208 mInitialLockSetupService, mKeyguardManager, LockTypes.PIN); in saveLockPin() 225 mInitialLockSetupService, mKeyguardManager, LockTypes.PATTERN); in saveLockPattern() 290 private WeakReference<KeyguardManager> mKeyguardManager; field in InitialLockSetupClient.LockConfigsAsyncTask [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/adaptiveauth/ |
D | AdaptiveAuthServiceTest.java | 93 private KeyguardManager mKeyguardManager; field in AdaptiveAuthServiceTest 118 when(mContext.getSystemService(KeyguardManager.class)).thenReturn(mKeyguardManager); in setUp() 170 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(true); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyLocked() 171 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyLocked() 186 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(false); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyNotLocked() 187 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyNotLocked() 222 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(true); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyLocked() 223 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyLocked() 239 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(false); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyNotLocked() 240 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyNotLocked()
|
/frameworks/base/tests/ShowWhenLockedApp/src/com/android/showwhenlocked/ |
D | ShowWhenLockedActivity.java | 80 private KeyguardManager mKeyguardManager; field in ShowWhenLockedActivity 86 mKeyguardManager = (KeyguardManager) getSystemService(KEYGUARD_SERVICE); in onCreate() 159 mKeyguardManager.requestDismissKeyguard(this, null); in handleExtras()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | MockLockSettingsContext.java | 47 private final KeyguardManager mKeyguardManager; field in MockLockSettingsContext 66 mKeyguardManager = keyguardManager; in MockLockSettingsContext() 95 return mKeyguardManager; in getSystemService()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardListener.java | 62 private final KeyguardManager mKeyguardManager; field in ClipboardListener 77 mKeyguardManager = keyguardManager; in ClipboardListener() 101 if ((clipboardNoninteractiveOnLockscreen() && mKeyguardManager.isDeviceLocked()) in onPrimaryClipChanged()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardListenerTest.java | 66 private KeyguardManager mKeyguardManager; field in ClipboardListenerTest 105 mClipboardToast, mClipboardManager, mKeyguardManager, mUiEventLogger); in setup() 202 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in test_deviceLocked_showsToast() 216 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in test_deviceLocked_legacyBehavior_showsInteractiveUI()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PhoneFallbackEventHandler.java | 50 KeyguardManager mKeyguardManager; field in PhoneFallbackEventHandler 295 if (mKeyguardManager == null) { in getKeyguardManager() 296 mKeyguardManager = (KeyguardManager)mContext.getSystemService(Context.KEYGUARD_SERVICE); in getKeyguardManager() 298 return mKeyguardManager; in getKeyguardManager()
|
/frameworks/base/services/core/java/com/android/server/adaptiveauth/ |
D | AdaptiveAuthService.java | 75 private final KeyguardManager mKeyguardManager; field in AdaptiveAuthService 95 mKeyguardManager = Objects.requireNonNull(context.getSystemService(KeyguardManager.class)); in AdaptiveAuthService() 231 if (mKeyguardManager.isDeviceLocked(userId) && mKeyguardManager.isKeyguardLocked()) { in reportAuthAttempt()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 163 private @Mock KeyguardManager mKeyguardManager; field in UserManagerServiceTest 189 doReturn(mKeyguardManager).when(mSpiedContext).getSystemService(KeyguardManager.class); in setFixtures() 707 Mockito.verify(mKeyguardManager, never()).removeKeyguardLockedStateListener((any())); in testSetOrUpdateAutoLockPreference_noPrivateProfile() 708 Mockito.verify(mKeyguardManager, never()).addKeyguardLockedStateListener(any(), any()); in testSetOrUpdateAutoLockPreference_noPrivateProfile() 726 Mockito.verify(mKeyguardManager).addKeyguardLockedStateListener(any(), any()); in testSetOrUpdateAutoLockPreference() 728 Mockito.verify(mKeyguardManager, never()).removeKeyguardLockedStateListener(any()); in testSetOrUpdateAutoLockPreference() 734 Mockito.clearInvocations(mKeyguardManager); in testSetOrUpdateAutoLockPreference() 744 Mockito.verify(mKeyguardManager).removeKeyguardLockedStateListener(any()); in testSetOrUpdateAutoLockPreference() 747 Mockito.verify(mKeyguardManager, never()).addKeyguardLockedStateListener(any(), any()); in testSetOrUpdateAutoLockPreference() 749 Mockito.clearInvocations(mKeyguardManager); in testSetOrUpdateAutoLockPreference() [all …]
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/ |
D | AccessibilityMenuService.java | 90 private KeyguardManager mKeyguardManager; field in AccessibilityMenuService 220 mKeyguardManager = getSystemService(KeyguardManager.class); in onServiceConnected() 409 boolean locked = mKeyguardManager != null && mKeyguardManager.isKeyguardLocked(); in toggleVisibility()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | PinStorageTest.java | 114 when(mKeyguardManager.isDeviceSecure()).thenReturn(false); in setUp() 115 when(mKeyguardManager.isDeviceLocked()).thenReturn(false); in setUp() 183 when(mKeyguardManager.isDeviceSecure()).thenReturn(true); in storePin_unattendedReboot_deviceIsLocked() 184 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in storePin_unattendedReboot_deviceIsLocked()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/ |
D | MediaOutputControllerTest.java | 144 private KeyguardManager mKeyguardManager; field in MediaOutputControllerTest 211 mKeyguardManager, in setUp() 305 mKeyguardManager, in start_withoutPackageName_verifyMediaControllerInit() 347 mKeyguardManager, in stop_withoutPackageName_verifyMediaControllerDeinit() 603 mKeyguardManager, in getAppSourceName_packageNameIsNull_returnsNull() 637 mKeyguardManager, in getNotificationSmallIcon_packageNameIsNull_returnsNull() 684 mKeyguardManager, in addDeviceToPlayMedia_callsLocalMediaManager() 711 mKeyguardManager, in removeDeviceFromPlayMedia_callsLocalMediaManager() 991 mKeyguardManager, in getNotificationLargeIcon_withoutPackageName_returnsNull() 1194 mKeyguardManager, in setTemporaryAllowListExceptionIfNeeded_packageNameIsNull_NoAction() [all …]
|
D | MediaOutputBaseDialogTest.java | 95 private KeyguardManager mKeyguardManager = mock(KeyguardManager.class); field in MediaOutputBaseDialogTest 140 mKeyguardManager, in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarRemoteInputCallback.java | 78 private KeyguardManager mKeyguardManager; field in StatusBarRemoteInputCallback 110 mKeyguardManager = context.getSystemService(KeyguardManager.class); in StatusBarRemoteInputCallback() 236 final Intent newIntent = mKeyguardManager.createConfirmDeviceCredentialIntent(null, in startWorkChallengeIfNecessary()
|
D | StatusBarNotificationPresenter.java | 100 private final KeyguardManager mKeyguardManager; field in StatusBarNotificationPresenter 159 mKeyguardManager = context.getSystemService(KeyguardManager.class); in StatusBarNotificationPresenter()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/accessibility/ |
D | AccessibilityShortcutChooserActivityTest.java | 126 private KeyguardManager mKeyguardManager; field in AccessibilityShortcutChooserActivityTest 153 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in setUp() 157 mAccessibilityManagerService, mKeyguardManager, in setUp() 300 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in createDialog_onLockscreen_hasExpectedContent()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierKeyDownloadMgrTest.java | 105 when(mKeyguardManager.isDeviceLocked()).thenReturn(false); in setUp() 378 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in testCarrierConfigChangedWithUserLocked() 401 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in testUserLockedAfterCarrierConfigChanged() 421 when(mKeyguardManager.isDeviceLocked()).thenReturn(false); in testUserLockedAfterCarrierConfigChanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | PlatformKeyManagerTest.java | 91 @Mock private KeyguardManager mKeyguardManager; field in PlatformKeyManagerTest 112 when(mContext.getSystemService(anyString())).thenReturn(mKeyguardManager); in setUp() 114 when(mKeyguardManager.isDeviceSecure(USER_ID_FIXTURE)).thenReturn(true); in setUp() 399 when(mKeyguardManager.isDeviceSecure(USER_ID_FIXTURE)).thenReturn(false); in getEncryptKey_noScreenlock()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/ |
D | NotificationLockscreenUserManagerTest.java | 146 private KeyguardManager mKeyguardManager; field in NotificationLockscreenUserManagerTest 188 when(mKeyguardManager.getPrivateNotificationsAllowed()).thenReturn(true); in setUp() 260 when(mKeyguardManager.getPrivateNotificationsAllowed()).thenReturn(false); in testInit() 773 when(mKeyguardManager.getPrivateNotificationsAllowed()).thenReturn(false); in testShouldShowLockscreenNotifications_keyguardManagerNoPrivateNotifications_show() 795 when(mKeyguardManager.getPrivateNotificationsAllowed()).thenReturn(false); in testShouldShowLockscreenNotifications_keyguardManagerNoPrivateNotifications() 824 when(mKeyguardManager.getPrivateNotificationsAllowed()).thenReturn(false); in testUserAllowsNotificationsInPublic_keyguardManagerNoPrivateNotifications() 966 NotificationLockscreenUserManagerTest.this.mKeyguardManager, in TestNotificationLockscreenUserManager()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationRemoteInputManager.java | 107 private final KeyguardManager mKeyguardManager; field in NotificationRemoteInputManager 286 mKeyguardManager = context.getSystemService(KeyguardManager.class); in NotificationRemoteInputManager() 501 && mKeyguardManager.isDeviceLocked(userId); in showBouncerForRemoteInput() 507 && mKeyguardManager.isDeviceLocked(profileParent.id); in showBouncerForRemoteInput()
|
D | NotificationLockscreenUserManagerImpl.java | 146 protected KeyguardManager mKeyguardManager; field in NotificationLockscreenUserManagerImpl 322 mKeyguardManager = keyguardManager; in NotificationLockscreenUserManagerImpl() 544 mKeyguardAllowingNotifications = mKeyguardManager.getPrivateNotificationsAllowed(); in updateGlobalKeyguardSettings() 771 isProfilePublic = showingKeyguard || mKeyguardManager.isDeviceLocked(userId); in updatePublicMode()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/volume/ |
D | VolumeDialogControllerImplTest.java | 100 private KeyguardManager mKeyguardManager; field in VolumeDialogControllerImplTest 130 mPackageManager, mWakefullnessLifcycle, mKeyguardManager, in setup()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierKeyDownloadManager.java | 132 private KeyguardManager mKeyguardManager; field in CarrierKeyDownloadManager 148 mKeyguardManager = mContext.getSystemService(KeyguardManager.class); in CarrierKeyDownloadManager() 169 if (mKeyguardManager.isDeviceLocked()) { in CarrierKeyDownloadManager() 303 mIsRequiredToHandleUnlock = mKeyguardManager.isDeviceLocked(); in handleAlarmOrConfigChange()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStartInterceptorTest.java | 120 private KeyguardManager mKeyguardManager; field in ActivityStartInterceptorTest 162 when(mContext.getSystemService(Context.KEYGUARD_SERVICE)).thenReturn(mKeyguardManager); in setUp() 163 when(mKeyguardManager.createConfirmDeviceCredentialIntent( in setUp()
|