/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 258 private TestableKeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardUpdateMonitorTest 332 mKeyguardUpdateMonitor = new TestableKeyguardUpdateMonitor(mContext); in setup() 339 mHandler = spy(mKeyguardUpdateMonitor.getHandler()); in setup() 341 FieldSetter.setField(mKeyguardUpdateMonitor, in setup() 348 mKeyguardUpdateMonitor.registerCallback(mTestCallback); in setup() 388 assertThat(mKeyguardUpdateMonitor.mBatteryStatus).isNotNull(); in testInitialBatteryLevelRequested() 394 eq(mKeyguardUpdateMonitor.mBroadcastReceiver), in testReceiversRegistered() 397 eq(mKeyguardUpdateMonitor.mBroadcastAllReceiver), in testReceiversRegistered() 422 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast() 425 mKeyguardUpdateMonitor.hasSimStateJustChanged()); in testIgnoresSimStateCallback_rebroadcast() [all …]
|
D | CarrierTextManagerTest.java | 98 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManagerTest 134 mDependency.injectTestDependency(KeyguardUpdateMonitor.class, mKeyguardUpdateMonitor); in setUp() 136 doAnswer(this::checkMainThread).when(mKeyguardUpdateMonitor) in setUp() 138 doAnswer(this::checkMainThread).when(mKeyguardUpdateMonitor) in setUp() 149 mBgExecutor, mKeyguardUpdateMonitor) in setUp() 173 when(mKeyguardUpdateMonitor.getFilteredSubscriptionInfo()).thenReturn(list); in testAirplaneMode() 174 when(mKeyguardUpdateMonitor.getSimState(0)).thenReturn(TelephonyManager.SIM_STATE_READY); in testAirplaneMode() 175 mKeyguardUpdateMonitor.mServiceStates = new HashMap<>(); in testAirplaneMode() 193 when(mKeyguardUpdateMonitor.getFilteredSubscriptionInfo()).thenReturn(list); in testCardIOError() 194 when(mKeyguardUpdateMonitor.getSimState(0)).thenReturn(TelephonyManager.SIM_STATE_READY); in testCardIOError() [all …]
|
D | LockIconViewControllerTest.java | 77 when(mKeyguardUpdateMonitor.isUdfpsSupported()).thenReturn(false); in testUpdateLockIconLocationOnAuthenticatorsRegistered() 98 when(mKeyguardUpdateMonitor.isUdfpsSupported()).thenReturn(false); in testUpdateLockIconLocationOnUdfpsLocationChanged() 131 when(mKeyguardUpdateMonitor.isUdfpsSupported()).thenReturn(false); in testLockIconViewBackgroundDisabledWhenUdfpsIsNotSupported() 150 when(mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(anyInt())).thenReturn(true); in testUnlockIconShows_biometricUnlockedTrue() 195 when(mKeyguardUpdateMonitor.isUdfpsEnrolled()).thenReturn(false); in testLockIcon_clearsIconOnAod_whenUdfpsNotEnrolled() 216 when(mKeyguardUpdateMonitor.isUdfpsEnrolled()).thenReturn(true); in testLockIcon_updateToAodLock_whenUdfpsEnrolled() 237 when(mKeyguardUpdateMonitor.isUdfpsEnrolled()).thenReturn(true); in testBurnInOffsetsUpdated_onDozeAmountChanged() 275 when(mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(anyInt())).thenReturn(true); in lockIconShows_afterBiometricsCleared() 281 when(mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(anyInt())).thenReturn(false); in lockIconShows_afterBiometricsCleared() 297 when(mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(anyInt())).thenReturn(true); in lockIconShows_afterUnlockStateChanges() [all …]
|
D | KeyguardMessageAreaControllerTest.java | 49 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaControllerTest 58 mKeyguardUpdateMonitor, mConfigurationController).create( in setUp() 81 verify(mKeyguardUpdateMonitor).registerCallback( in onAttachedToWindow_registersKeyguardUpdateMontiorCallback() 85 verify(mKeyguardUpdateMonitor).removeCallback( in onAttachedToWindow_registersKeyguardUpdateMontiorCallback()
|
D | KeyguardSecurityContainerControllerTest.java | 107 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSecurityContainerControllerTest 199 (KeyguardPasswordView) mKeyguardPasswordView, mKeyguardUpdateMonitor, in setup() 206 mKeyguardUpdateMonitor, mKeyguardSecurityModel, mMetricsLogger, mUiEventLogger, in setup() 375 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(false); in showNextSecurityScreenOrFinish_setsSecurityScreenToPinAfterSimPinUnlock() 376 when(mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(TARGET_USER_ID)).thenReturn(false); in showNextSecurityScreenOrFinish_setsSecurityScreenToPinAfterSimPinUnlock() 409 verify(mKeyguardUpdateMonitor, never()).getUserHasTrust(anyInt()); in showNextSecurityScreenOrFinish_ignoresCallWhenSecurityMethodHasChanged() 416 when(mKeyguardUpdateMonitor.isFaceDetectionRunning()).thenReturn(false); in onSwipeUp_whenFaceDetectionIsNotRunning_initiatesFaceAuth() 421 verify(mKeyguardUpdateMonitor).requestFaceAuth( in onSwipeUp_whenFaceDetectionIsNotRunning_initiatesFaceAuth() 429 when(mKeyguardUpdateMonitor.isFaceDetectionRunning()).thenReturn(true); in onSwipeUp_whenFaceDetectionIsRunning_doesNotInitiateFaceAuth() 433 verify(mKeyguardUpdateMonitor, never()) in onSwipeUp_whenFaceDetectionIsRunning_doesNotInitiateFaceAuth() [all …]
|
D | LockIconViewControllerWithCoroutinesTest.kt | 47 whenever(mKeyguardUpdateMonitor.isUdfpsEnrolled()).thenReturn(false) in testLockIcon_clearsIconOnAod_whenUdfpsNotEnrolled() 69 whenever(mKeyguardUpdateMonitor.isUdfpsEnrolled()).thenReturn(true) in testLockIcon_updateToAodLock_whenUdfpsEnrolled() 91 whenever(mKeyguardUpdateMonitor.isUdfpsEnrolled()).thenReturn(true) in testBurnInOffsetsUpdated_onDozeAmountChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardMessageAreaController.java | 45 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaController 81 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardMessageAreaController() 89 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 90 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onViewAttached() 97 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached() 140 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaController.Factory 146 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 153 view, mKeyguardUpdateMonitor, mConfigurationController); in create()
|
D | EmergencyButtonController.java | 58 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyButtonController 102 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in EmergencyButtonController() 121 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 128 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached() 150 /* simLocked= */ mKeyguardUpdateMonitor.isSimPinVoiceSecure(), in updateEmergencyCallButton() 180 mKeyguardUpdateMonitor.reportEmergencyCallAction(true /* bypassHandler */); in takeEmergencyCallAction() 210 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyButtonController.Factory 233 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 248 mKeyguardUpdateMonitor, mTelephonyManager, mPowerManager, mActivityTaskManager, 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 | KeyguardInputViewController.java | 155 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardInputViewController.Factory 180 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 204 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 210 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 217 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 223 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 229 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create()
|
D | CarrierTextController.java | 28 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextController 57 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in CarrierTextController() 63 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onInit()
|
D | KeyguardPinViewController.java | 30 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardPinViewController 47 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardPinViewController() 75 mKeyguardUpdateMonitor.needsSlowUnlockTransition(), finishRunnable); in startDisappearAnimation()
|
D | KeyguardSimPinViewController.java | 50 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSimPinViewController 88 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSimPinViewController() 119 mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback); in onResume() 126 mKeyguardUpdateMonitor.removeCallback(mUpdateMonitorCallback); in onPause() 163 mKeyguardUpdateMonitor.reportSimUnlocked(mSubId); in verifyPasswordAndUnlock() 322 SubscriptionInfo info = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(mSubId); in setLockedSimMessage() 340 int subId = mKeyguardUpdateMonitor in handleSubInfoChangeIfNeeded()
|
D | CarrierTextManager.java | 66 protected KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManager 190 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in CarrierTextManager() 265 mKeyguardUpdateMonitor.registerCallback(mCallback); in handleSetListening() 278 mKeyguardUpdateMonitor.removeCallback(mCallback); in handleSetListening() 296 return mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(); in getSubscriptionInfo() 321 int simState = mKeyguardUpdateMonitor.getSimState(subId); in updateCarrierText() 332 ServiceState ss = mKeyguardUpdateMonitor.mServiceStates.get(subId); in updateCarrierText() 532 !mKeyguardUpdateMonitor.isDeviceProvisioned() in getStatusForIccState() 642 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManager.Builder 666 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Builder() [all …]
|
D | KeyguardSimPukViewController.java | 47 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSimPukViewController 92 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSimPukViewController() 100 mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback); in onViewAttached() 106 mKeyguardUpdateMonitor.removeCallback(mUpdateMonitorCallback); in onViewDetached() 206 SubscriptionInfo info = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(mSubId); in showDefaultMessage() 276 mKeyguardUpdateMonitor.reportSimUnlocked(mSubId); in updateSim() 343 int subId = mKeyguardUpdateMonitor.getNextSubIdForState( in handleSubInfoChangeIfNeeded()
|
D | KeyguardStatusViewController.java | 49 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStatusViewController 68 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardStatusViewController() 82 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 88 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | OperatorNameViewController.java | 49 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in OperatorNameViewController 64 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in OperatorNameViewController() 73 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in onViewAttached() 81 mKeyguardUpdateMonitor.removeCallback(mKeyguardUpdateMonitorCallback); in onViewDetached() 95 SubscriptionInfo sI = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(defaultSubId); in getDefaultSubInfo() 99 mKeyguardUpdateMonitor.getSimState(defaultSubId), in getDefaultSubInfo() 100 mKeyguardUpdateMonitor.getServiceState(defaultSubId)); in getDefaultSubInfo() 109 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in OperatorNameViewController.Factory 123 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 134 mKeyguardUpdateMonitor, in create()
|
D | KeyguardIndicationController.java | 145 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardIndicationController 259 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardIndicationController() 319 mKeyguardUpdateMonitor.registerCallback(getKeyguardCallback()); in init() 520 if (!mKeyguardUpdateMonitor.isUserUnlocked(userId) in updateLockScreenUserLockedMsg() 521 || mKeyguardUpdateMonitor.isEncryptedOrLockdown(userId)) { in updateLockScreenUserLockedMsg() 586 final boolean userHasTrust = mKeyguardUpdateMonitor.getUserHasTrust(userId); in updateLockScreenTrustMsg() 597 && mKeyguardUpdateMonitor.getUserTrustIsManaged(userId) in updateLockScreenTrustMsg() 641 final boolean shouldShowLogout = mKeyguardUpdateMonitor.isLogoutEnabled() in updateLockScreenLogoutView() 959 && !mKeyguardUpdateMonitor.getUserCanSkipBouncer( in showActionToUnlock() 967 } else if (mKeyguardUpdateMonitor.isFaceEnrolled() in showActionToUnlock() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeAuthRemover.java | 30 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in DozeAuthRemover 34 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in DozeAuthRemover() 41 if (mKeyguardUpdateMonitor.getUserUnlockedWithBiometric(currentUser)) { in transitionTo() 42 mKeyguardUpdateMonitor.clearBiometricRecognized(); in transitionTo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 161 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardIndicationControllerTest 237 when(mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(anyBoolean())).thenReturn(true); in setUp() 239 when(mKeyguardUpdateMonitor.isUserUnlocked(anyInt())).thenReturn(true); in setUp() 278 mKeyguardStateController, mStatusBarStateController, mKeyguardUpdateMonitor, in createController() 301 verify(mKeyguardUpdateMonitor).registerCallback( in createController() 601 when(mKeyguardUpdateMonitor.getCachedIsUnlockWithFingerprintPossible(anyInt())) in onBiometricHelp_coEx_faceFailure() 628 when(mKeyguardUpdateMonitor.getCachedIsUnlockWithFingerprintPossible(anyInt())) in onBiometricHelp_coEx_faceUnavailable() 655 when(mKeyguardUpdateMonitor.getUserUnlockedWithFace(anyInt())).thenReturn(true); in onBiometricHelp_coEx_fpFailure_faceAlreadyUnlocked() 681 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in onBiometricHelp_coEx_fpFailure_trustAgentAlreadyUnlocked() 707 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in onBiometricHelp_coEx_fpFailure_trustAgentUnlocked_emptyTrustGrantedMessage() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 53 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStateControllerTest 69 mKeyguardUpdateMonitor, in setup() 78 verify(mKeyguardUpdateMonitor).registerCallback(any()); in testAddCallback_registersListener() 115 when(mKeyguardUpdateMonitor.getUserCanSkipBouncer(anyInt())).thenReturn(true); in testCanSkipLockScreen() 136 when(mKeyguardUpdateMonitor.getUserCanSkipBouncer(anyInt())).thenReturn(true); in testIsUnlocked() 145 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in testIsTrusted() 156 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in testCallbacksAreInvoked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerImpl.java | 59 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStateControllerImpl 116 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardStateControllerImpl() 118 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in KeyguardStateControllerImpl() 184 mKeyguardUpdateMonitor.setKeyguardShowing(showing, occluded); in notifyKeyguardState() 239 boolean canDismissLockScreen = !secure || mKeyguardUpdateMonitor.getUserCanSkipBouncer(user) in update() 241 boolean trustManaged = mKeyguardUpdateMonitor.getUserTrustIsManaged(user); in update() 242 boolean trusted = mKeyguardUpdateMonitor.getUserHasTrust(user); in update() 243 boolean faceAuthEnabled = mKeyguardUpdateMonitor.isFaceAuthEnabledForUser(user); in update() 430 if (mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(isStrongBiometric)) { in onBiometricAuthenticated()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | ViewConfigCoordinator.kt | 43 private val mKeyguardUpdateMonitor: KeyguardUpdateMonitor in <lambda>() constant in com.android.systemui.statusbar.notification.collection.coordinator.ViewConfigCoordinator 75 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateCallback) in <lambda>() 80 val keyguardIsSwitchingUser = mKeyguardUpdateMonitor.isSwitchingUser in <lambda>() 96 val keyguardIsSwitchingUser = mKeyguardUpdateMonitor.isSwitchingUser in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/ |
D | WalletActivity.java | 73 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in WalletActivity 103 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in WalletActivity() 136 mKeyguardUpdateMonitor, in onCreate() 201 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in onStart() 271 mKeyguardUpdateMonitor.removeCallback(mKeyguardUpdateMonitorCallback); in onDestroy()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeServiceHostTest.java | 78 @Mock private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in DozeServiceHostTest 103 mKeyguardUpdateMonitor, mPulseExpansionHandler, in setup() 191 reset(mKeyguardUpdateMonitor); in testPulseWhileDozing_notifyAuthInterrupt() 194 verify(mKeyguardUpdateMonitor).onAuthInterruptDetected(eq(true)); in testPulseWhileDozing_notifyAuthInterrupt() 196 verify(mKeyguardUpdateMonitor, never()).onAuthInterruptDetected(eq(true)); in testPulseWhileDozing_notifyAuthInterrupt()
|