/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 334 private TestableKeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardUpdateMonitorTest 403 mKeyguardUpdateMonitor = new TestableKeyguardUpdateMonitor(mContext); in setup() 404 mKeyguardUpdateMonitor.mFoldGracePeriodProvider = mFoldGracePeriodProvider; in setup() 405 setupBiometrics(mKeyguardUpdateMonitor); in setup() 406 mKeyguardUpdateMonitor.setFaceAuthInteractor(mFaceAuthInteractor); in setup() 430 mKeyguardUpdateMonitor.registerCallback(mTestCallback); in setupBiometrics() 456 assertEquals(isClass3, mKeyguardUpdateMonitor.isFingerprintClass3()); in setupFingerprintAuth() 488 assertThat(mKeyguardUpdateMonitor.mBatteryStatus).isNotNull(); in testInitialBatteryLevelRequested() 494 eq(mKeyguardUpdateMonitor.mBroadcastReceiver), in testReceiversRegistered() 497 eq(mKeyguardUpdateMonitor.mBroadcastAllReceiver), in testReceiversRegistered() [all …]
|
D | CarrierTextManagerTest.java | 117 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManagerTest 160 mDependency.injectTestDependency(KeyguardUpdateMonitor.class, mKeyguardUpdateMonitor); in setUp() 162 doAnswer(this::checkMainThread).when(mKeyguardUpdateMonitor) in setUp() 164 doAnswer(this::checkMainThread).when(mKeyguardUpdateMonitor) in setUp() 186 mKeyguardUpdateMonitor, in setUp() 212 when(mKeyguardUpdateMonitor.getFilteredSubscriptionInfo()).thenReturn(list); in testAirplaneMode() 213 when(mKeyguardUpdateMonitor.getSimState(0)).thenReturn(TelephonyManager.SIM_STATE_READY); in testAirplaneMode() 214 mKeyguardUpdateMonitor.mServiceStates = new HashMap<>(); in testAirplaneMode() 234 when(mKeyguardUpdateMonitor.getFilteredSubscriptionInfo()).thenReturn(list); in testAirplaneMode_flagEnabled() 235 when(mKeyguardUpdateMonitor.getSimStateForSlotId(0)).thenReturn( in testAirplaneMode_flagEnabled() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 62 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStateControllerTest 87 mKeyguardUpdateMonitor, in setup() 99 verify(mKeyguardUpdateMonitor).registerCallback(any()); in testAddCallback_registersListener() 106 when(mKeyguardUpdateMonitor.isFaceEnabledAndEnrolled()).thenReturn(false); in testFaceAuthEnrolleddChanged_calledWhenFaceEnrollmentStateChanges() 107 verify(mKeyguardUpdateMonitor).registerCallback(mUpdateCallbackCaptor.capture()); in testFaceAuthEnrolleddChanged_calledWhenFaceEnrollmentStateChanges() 111 when(mKeyguardUpdateMonitor.isFaceEnabledAndEnrolled()).thenReturn(true); in testFaceAuthEnrolleddChanged_calledWhenFaceEnrollmentStateChanges() 153 when(mKeyguardUpdateMonitor.getUserCanSkipBouncer(anyInt())).thenReturn(true); in testCanSkipLockScreen() 160 verify(mKeyguardUpdateMonitor).registerCallback(mUpdateCallbackCaptor.capture()); in testCanSkipLockScreen_updateCalledOnFacesCleared() 168 when(mKeyguardUpdateMonitor.getUserCanSkipBouncer(anyInt())).thenReturn(true); in testCanSkipLockScreen_updateCalledOnFacesCleared() 175 verify(mKeyguardUpdateMonitor).registerCallback(mUpdateCallbackCaptor.capture()); in testCanSkipLockScreen_updateCalledOnFingerprintssCleared() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lowlightclock/ |
D | ChargingStatusProviderTest.java | 55 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in ChargingStatusProviderTest 66 mContext, mResources, mBatteryInfo, mKeyguardUpdateMonitor); in setup() 78 verify(mKeyguardUpdateMonitor).registerCallback(any()); in testStartUsingRegistersCallbackWithKeyguardUpdateMonitor() 86 verify(mKeyguardUpdateMonitor) in testCallbackNotCalledAfterStopUsing() 99 verify(mKeyguardUpdateMonitor) in testKeyguardUpdateMonitorCallbackRemovedAfterStopUsing() 102 verify(mKeyguardUpdateMonitor) in testKeyguardUpdateMonitorCallbackRemovedAfterStopUsing() 111 verify(mKeyguardUpdateMonitor) in testChargingStatusReportsHideWhenNotPluggedIn() 125 verify(mKeyguardUpdateMonitor) in testChargingStatusReportsShowWhenBatteryOverheated() 138 verify(mKeyguardUpdateMonitor) in testChargingStatusReportsShowWhenPluggedIn() 151 verify(mKeyguardUpdateMonitor) in testChargingStatusReportsChargingLimitedWhenOverheated() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardMessageAreaController.java | 51 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaController 86 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardMessageAreaController() 93 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 94 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onViewAttached() 101 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached() 179 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaController.Factory 185 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 192 view, mKeyguardUpdateMonitor, mConfigurationController); in create()
|
D | EmergencyButtonController.java | 62 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyButtonController 111 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in EmergencyButtonController() 131 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 138 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached() 160 /* simLocked= */ mKeyguardUpdateMonitor.isSimPinVoiceSecure(), in updateEmergencyCallButton() 193 mKeyguardUpdateMonitor.reportEmergencyCallAction(true /* bypassHandler */); in takeEmergencyCallAction() 223 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyButtonController.Factory 251 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 267 mKeyguardUpdateMonitor, mPowerManager, mActivityTaskManager, mShadeController, in create()
|
D | KeyguardSecurityModel.java | 51 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSecurityModel 59 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSecurityModel() 64 mKeyguardUpdateMonitor.getNextSubIdForState( in getSecurityMode() 70 mKeyguardUpdateMonitor.getNextSubIdForState( in getSecurityMode()
|
D | CarrierTextController.java | 28 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextController 58 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in CarrierTextController() 64 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onInit()
|
D | KeyguardInputViewController.java | 205 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardInputViewController.Factory 242 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 272 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 279 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 287 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 295 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 303 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create()
|
D | KeyguardSimPinViewController.java | 57 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSimPinViewController 108 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSimPinViewController() 116 mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback); in onViewAttached() 122 mKeyguardUpdateMonitor.removeCallback(mUpdateMonitorCallback); in onViewDetached() 196 mKeyguardUpdateMonitor.reportSimUnlocked(mSubId); in verifyPasswordAndUnlock() 347 SubscriptionInfo info = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(mSubId); in setLockedSimMessage() 369 int subId = mKeyguardUpdateMonitor in handleSubInfoChangeIfNeeded()
|
D | CarrierTextManager.java | 84 protected KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManager 223 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in CarrierTextManager() 231 mKeyguardUpdateMonitor.registerCallback(mCallback); in CarrierTextManager() 342 return mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(); in getSubscriptionInfo() 376 int simState = simPinUseSlotId() ? mKeyguardUpdateMonitor.getSimStateForSlotId(slotId) in updateCarrierText() 377 : mKeyguardUpdateMonitor.getSimState(subId); in updateCarrierText() 387 ServiceState ss = mKeyguardUpdateMonitor.mServiceStates.get(subId); in updateCarrierText() 595 if (!mKeyguardUpdateMonitor.isDeviceProvisioned() in getStatusForIccState() 687 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManager.Builder 718 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Builder() [all …]
|
D | KeyguardSimPukViewController.java | 53 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSimPukViewController 106 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSimPukViewController() 114 mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback); in onViewAttached() 120 mKeyguardUpdateMonitor.removeCallback(mUpdateMonitorCallback); in onViewDetached() 226 SubscriptionInfo info = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(mSubId); in showDefaultMessage() 300 mKeyguardUpdateMonitor.reportSimUnlocked(mSubId); in updateSim() 367 int subId = mKeyguardUpdateMonitor.getNextSubIdForState( in handleSubInfoChangeIfNeeded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | OperatorNameViewController.java | 48 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in OperatorNameViewController 69 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in OperatorNameViewController() 84 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in onViewAttached() 92 mKeyguardUpdateMonitor.removeCallback(mKeyguardUpdateMonitorCallback); in onViewDetached() 118 SubscriptionInfo sI = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(defaultSubId); in getDefaultSubInfo() 122 mKeyguardUpdateMonitor.getSimState(defaultSubId), in getDefaultSubInfo() 123 mKeyguardUpdateMonitor.getServiceState(defaultSubId)); in getDefaultSubInfo() 130 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in OperatorNameViewController.Factory 147 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 162 mKeyguardUpdateMonitor, in create()
|
D | KeyguardIndicationController.java | 162 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardIndicationController 322 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardIndicationController() 386 mKeyguardUpdateMonitor.registerCallback(getKeyguardCallback()); in init() 660 boolean userStorageUnlocked = mKeyguardUpdateMonitor.isUserUnlocked(userId); in updateLockScreenUserLockedMsg() 661 boolean encryptedOrLockdown = mKeyguardUpdateMonitor.isEncryptedOrLockdown(userId); in updateLockScreenUserLockedMsg() 730 final boolean userHasTrust = mKeyguardUpdateMonitor.getUserHasTrust(userId); in updateLockScreenTrustMsg() 741 && mKeyguardUpdateMonitor.getUserTrustIsManaged(userId) in updateLockScreenTrustMsg() 809 final boolean deviceLocked = mKeyguardUpdateMonitor.isDeviceLockedByAdaptiveAuth(userId); in updateLockScreenAdaptiveAuthMsg() 810 final boolean canSkipBouncer = mKeyguardUpdateMonitor.getUserCanSkipBouncer(userId); in updateLockScreenAdaptiveAuthMsg() 1191 && !mKeyguardUpdateMonitor.getUserCanSkipBouncer( in showActionToUnlock() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeAuthRemover.java | 31 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in DozeAuthRemover 37 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in DozeAuthRemover() 45 if (mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(currentUser)) { in transitionTo() 46 mKeyguardUpdateMonitor.clearFingerprintRecognized(); in transitionTo()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 460 when(mKeyguardUpdateMonitor.isUnlockingWithFingerprintAllowed()) in onBiometricHelp_coEx_faceUnavailable_fpNotAllowed() 487 when(mKeyguardUpdateMonitor.isCurrentUserUnlockedWithFace()).thenReturn(true); in onBiometricHelp_coEx_fpFailure_faceAlreadyUnlocked() 513 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in onBiometricHelp_coEx_fpFailure_trustAgentAlreadyUnlocked() 539 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in onBiometricHelp_coEx_fpFailure_trustAgentUnlocked_emptyTrustGrantedMessage() 594 when(mKeyguardUpdateMonitor.isFaceEnabledAndEnrolled()).thenReturn(true); in transientIndication_swipeUpToRetry() 595 when(mKeyguardUpdateMonitor.getIsFaceAuthenticated()).thenReturn(false); in transientIndication_swipeUpToRetry() 609 when(mKeyguardUpdateMonitor.getIsFaceAuthenticated()).thenReturn(true); in transientIndication_swipeUpToRetry_faceAuthenticated() 610 when(mKeyguardUpdateMonitor.isFaceEnabledAndEnrolled()).thenReturn(true); in transientIndication_swipeUpToRetry_faceAuthenticated() 843 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in unlockMethodCache_listenerUpdatesPluggedIndication() 1001 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in onTrustGrantedMessageDoesNotShowUntilTrustGranted() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerImpl.java | 69 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStateControllerImpl 134 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardStateControllerImpl() 137 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in KeyguardStateControllerImpl() 203 mKeyguardUpdateMonitor.setKeyguardShowing(showing, occluded); in notifyKeyguardState() 263 boolean canDismissLockScreen = !secure || mKeyguardUpdateMonitor.getUserCanSkipBouncer(user) in update() 265 boolean trustManaged = mKeyguardUpdateMonitor.getUserTrustIsManaged(user); in update() 266 boolean trusted = mKeyguardUpdateMonitor.getUserHasTrust(user); in update() 267 boolean faceEnabledAndEnrolled = mKeyguardUpdateMonitor.isFaceEnabledAndEnrolled(); in update() 467 if (mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(isStrongBiometric)) { in onBiometricAuthenticated()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | LatencyTester.java | 58 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in LatencyTester 73 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in LatencyTester() 90 mKeyguardUpdateMonitor.onFaceAuthenticated(mSelectedUserInteractor.getSelectedUserId(), in fakeWakeAndUnlock() 93 mKeyguardUpdateMonitor.onFingerprintAuthenticated( in fakeWakeAndUnlock()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | ViewConfigCoordinator.kt | 48 private val mKeyguardUpdateMonitor: KeyguardUpdateMonitor, in <lambda>() constant in com.android.systemui.statusbar.notification.collection.coordinator.ViewConfigCoordinator 88 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateCallback) in <lambda>() 94 val keyguardIsSwitchingUser = mKeyguardUpdateMonitor.isSwitchingUser in <lambda>() 111 val keyguardIsSwitchingUser = mKeyguardUpdateMonitor.isSwitchingUser in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/ |
D | KeyguardMessageAreaControllerTest.java | 51 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaControllerTest 60 mKeyguardUpdateMonitor, mConfigurationController).create( in setUp() 83 verify(mKeyguardUpdateMonitor).registerCallback( in onAttachedToWindow_registersKeyguardUpdateMontiorCallback() 87 verify(mKeyguardUpdateMonitor).removeCallback( in onAttachedToWindow_registersKeyguardUpdateMontiorCallback()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/lowlightclock/ |
D | ChargingStatusProvider.java | 49 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in ChargingStatusProvider 67 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in ChargingStatusProvider() 79 mKeyguardUpdateMonitor.registerCallback(mChargingStatusCallback); in startUsing() 90 mKeyguardUpdateMonitor.removeCallback(mChargingStatusCallback); in stopUsing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | WalletActivity.java | 75 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in WalletActivity 106 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in WalletActivity() 140 mKeyguardUpdateMonitor, in onCreate() 208 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in onStart() 277 mKeyguardUpdateMonitor.removeCallback(mKeyguardUpdateMonitorCallback); in onDestroy()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/ |
D | DozeServiceHostTest.java | 82 @Mock private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in DozeServiceHostTest 107 mKeyguardUpdateMonitor, mPulseExpansionHandler, mNotificationShadeWindowController, in setup() 196 reset(mKeyguardUpdateMonitor); in testPulseWhileDozing_notifyAuthInterrupt() 199 verify(mKeyguardUpdateMonitor).onAuthInterruptDetected(eq(true)); in testPulseWhileDozing_notifyAuthInterrupt() 201 verify(mKeyguardUpdateMonitor, never()).onAuthInterruptDetected(eq(true)); in testPulseWhileDozing_notifyAuthInterrupt()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileControllerImpl.java | 48 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in ManagedProfileControllerImpl 61 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in ManagedProfileControllerImpl() 92 mKeyguardUpdateMonitor.awakenFromDream(); in setWorkModeEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityFloatingMenuControllerTest.java | 78 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in AccessibilityFloatingMenuControllerTest 134 verify(mKeyguardUpdateMonitor).registerCallback(any(KeyguardUpdateMonitorCallback.class)); in initController_registerListeners() 358 mKeyguardUpdateMonitor = Dependency.get(KeyguardUpdateMonitor.class); in setUpController() 362 mHearingAidDeviceManager, mKeyguardUpdateMonitor, mSecureSettings, in setUpController() 379 verify(mKeyguardUpdateMonitor).registerCallback(mKeyguardCallbackCaptor.capture()); in captureKeyguardUpdateMonitorCallback()
|