/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardUpdateMonitorTest.java | 180 private TestableKeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardUpdateMonitorTest 251 mKeyguardUpdateMonitor = new TestableKeyguardUpdateMonitor(mSpiedContext); in setup() 260 mKeyguardUpdateMonitor.destroy(); in tearDown() 267 assertThat(mKeyguardUpdateMonitor.mBatteryStatus).isNotNull(); in testInitialBatteryLevelRequested() 273 eq(mKeyguardUpdateMonitor.mBroadcastReceiver), in testReceiversRegistered() 276 eq(mKeyguardUpdateMonitor.mBroadcastAllReceiver), in testReceiversRegistered() 300 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast() 303 mKeyguardUpdateMonitor.hasSimStateJustChanged()); in testIgnoresSimStateCallback_rebroadcast() 306 mKeyguardUpdateMonitor.mBroadcastReceiver.onReceive(getContext(), intent); in testIgnoresSimStateCallback_rebroadcast() 309 mKeyguardUpdateMonitor.hasSimStateJustChanged()); in testIgnoresSimStateCallback_rebroadcast() [all …]
|
D | CarrierTextManagerTest.java | 99 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManagerTest 135 mDependency.injectTestDependency(KeyguardUpdateMonitor.class, mKeyguardUpdateMonitor); in setUp() 137 doAnswer(this::checkMainThread).when(mKeyguardUpdateMonitor) in setUp() 139 doAnswer(this::checkMainThread).when(mKeyguardUpdateMonitor) in setUp() 150 mBgExecutor, mKeyguardUpdateMonitor) in setUp() 174 when(mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(anyBoolean())).thenReturn(list); in testAirplaneMode() 175 when(mKeyguardUpdateMonitor.getSimState(0)).thenReturn(TelephonyManager.SIM_STATE_READY); in testAirplaneMode() 176 mKeyguardUpdateMonitor.mServiceStates = new HashMap<>(); in testAirplaneMode() 194 when(mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(anyBoolean())).thenReturn(list); in testCardIOError() 195 when(mKeyguardUpdateMonitor.getSimState(0)).thenReturn(TelephonyManager.SIM_STATE_READY); in testCardIOError() [all …]
|
D | KeyguardMessageAreaControllerTest.java | 42 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaControllerTest 52 mKeyguardUpdateMonitor, mConfigurationController).create(mKeyguardMessageArea); in setUp() 74 verify(mKeyguardUpdateMonitor).registerCallback( in onAttachedToWindow_registersKeyguardUpdateMontiorCallback() 78 verify(mKeyguardUpdateMonitor).removeCallback( in onAttachedToWindow_registersKeyguardUpdateMontiorCallback()
|
D | KeyguardStatusViewControllerTest.java | 53 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStatusViewControllerTest 78 mKeyguardUpdateMonitor, in setup() 102 verify(mKeyguardUpdateMonitor).registerCallback( in timeFormatUpdateNotifiesClockSwitchController() 113 verify(mKeyguardUpdateMonitor).registerCallback( in userChangeNotifiesClockSwitchController()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardMessageAreaController.java | 29 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaController 66 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardMessageAreaController() 73 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 74 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onViewAttached() 81 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached() 112 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardMessageAreaController.Factory 118 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 125 view, mKeyguardUpdateMonitor, mConfigurationController); in create()
|
D | EmergencyButtonController.java | 50 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyButtonController 88 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in EmergencyButtonController() 104 mKeyguardUpdateMonitor.registerCallback(mInfoCallback); in onViewAttached() 111 mKeyguardUpdateMonitor.removeCallback(mInfoCallback); in onViewDetached() 120 mKeyguardUpdateMonitor.isSimPinVoiceSecure()); in updateEmergencyCallButton() 143 mKeyguardUpdateMonitor.reportEmergencyCallAction(true /* bypassHandler */); in takeEmergencyCallAction() 171 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyButtonController.Factory 188 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 200 mKeyguardUpdateMonitor, mTelephonyManager, mPowerManager, mActivityTaskManager, in create()
|
D | KeyguardInputViewController.java | 158 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardInputViewController.Factory 179 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Factory() 201 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 206 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 213 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 218 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, in create() 224 mKeyguardUpdateMonitor, securityMode, mLockPatternUtils, 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 57 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in CarrierTextController() 63 mView.setSelected(mKeyguardUpdateMonitor.isDeviceInteractive()); in onInit()
|
D | KeyguardPinViewController.java | 29 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardPinViewController 42 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardPinViewController() 73 mKeyguardUpdateMonitor.needsSlowUnlockTransition(), finishRunnable); in startDisappearAnimation()
|
D | KeyguardSimPinViewController.java | 48 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSimPinViewController 86 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSimPinViewController() 117 mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback); in onResume() 124 mKeyguardUpdateMonitor.removeCallback(mUpdateMonitorCallback); in onPause() 161 mKeyguardUpdateMonitor.reportSimUnlocked(mSubId); in verifyPasswordAndUnlock() 320 SubscriptionInfo info = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(mSubId); in setLockedSimMessage() 338 int subId = mKeyguardUpdateMonitor in handleSubInfoChangeIfNeeded()
|
D | CarrierTextManager.java | 66 protected KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManager 190 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in CarrierTextManager() 264 mMainExecutor.execute(() -> mKeyguardUpdateMonitor.registerCallback(mCallback)); in handleSetListening() 275 mMainExecutor.execute(() -> mKeyguardUpdateMonitor.removeCallback(mCallback)); in handleSetListening() 292 return mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(false); in getSubscriptionInfo() 317 int simState = mKeyguardUpdateMonitor.getSimState(subId); in updateCarrierText() 328 ServiceState ss = mKeyguardUpdateMonitor.mServiceStates.get(subId); in updateCarrierText() 528 !mKeyguardUpdateMonitor.isDeviceProvisioned() in getStatusForIccState() 638 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in CarrierTextManager.Builder 662 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in Builder() [all …]
|
D | KeyguardSimPukViewController.java | 48 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardSimPukViewController 92 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardSimPukViewController() 100 mKeyguardUpdateMonitor.registerCallback(mUpdateMonitorCallback); in onViewAttached() 106 mKeyguardUpdateMonitor.removeCallback(mUpdateMonitorCallback); in onViewDetached() 199 SubscriptionInfo info = mKeyguardUpdateMonitor.getSubscriptionInfoForSubId(mSubId); in showDefaultMessage() 272 mKeyguardUpdateMonitor.reportSimUnlocked(mSubId); in updateSim() 338 int subId = mKeyguardUpdateMonitor.getNextSubIdForState( in handleSubInfoChangeIfNeeded()
|
D | AnimatableClockController.java | 47 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in AnimatableClockController 76 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in AnimatableClockController() 148 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in onViewAttached() 161 mKeyguardUpdateMonitor.removeCallback(mKeyguardUpdateMonitorCallback); in onViewDetached()
|
/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/src/com/android/systemui/statusbar/policy/ |
D | EmergencyCryptkeeperText.java | 39 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in EmergencyCryptkeeperText 68 mKeyguardUpdateMonitor = Dependency.get(KeyguardUpdateMonitor.class); in onAttachedToWindow() 69 mKeyguardUpdateMonitor.registerCallback(mCallback); in onAttachedToWindow() 78 if (mKeyguardUpdateMonitor != null) { in onDetachedFromWindow() 79 mKeyguardUpdateMonitor.removeCallback(mCallback); in onDetachedFromWindow() 110 List<SubscriptionInfo> subs = mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(false); in update() 114 int simState = mKeyguardUpdateMonitor.getSimState(subId); in update()
|
D | KeyguardStateControllerImpl.java | 56 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStateControllerImpl 107 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardStateControllerImpl() 109 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); in KeyguardStateControllerImpl() 219 boolean canDismissLockScreen = !secure || mKeyguardUpdateMonitor.getUserCanSkipBouncer(user) in update() 221 boolean trustManaged = mKeyguardUpdateMonitor.getUserTrustIsManaged(user); in update() 222 boolean trusted = mKeyguardUpdateMonitor.getUserHasTrust(user); in update() 223 boolean faceAuthEnabled = mKeyguardUpdateMonitor.isFaceAuthEnabledForUser(user); in update() 394 if (mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(isStrongBiometric)) { in onBiometricAuthenticated()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyguardStateControllerTest.java | 49 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardStateControllerTest 60 mKeyguardUpdateMonitor, mLockPatternUtils, mSmartSpaceTransitionController); in setup() 65 verify(mKeyguardUpdateMonitor).registerCallback(any()); in testAddCallback_registersListener() 102 when(mKeyguardUpdateMonitor.getUserCanSkipBouncer(anyInt())).thenReturn(true); in testCanSkipLockScreen() 123 when(mKeyguardUpdateMonitor.getUserCanSkipBouncer(anyInt())).thenReturn(true); in testIsUnlocked() 132 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in testIsTrusted() 143 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in testCallbacksAreInvoked()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | OperatorNameView.java | 48 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in OperatorNameView 73 mKeyguardUpdateMonitor = Dependency.get(KeyguardUpdateMonitor.class); in onAttachedToWindow() 74 mKeyguardUpdateMonitor.registerCallback(mCallback); in onAttachedToWindow() 83 mKeyguardUpdateMonitor.removeCallback(mCallback); in onDetachedFromWindow() 140 List<SubscriptionInfo> subs = mKeyguardUpdateMonitor.getFilteredSubscriptionInfo(false); in updateText() 144 int simState = mKeyguardUpdateMonitor.getSimState(subId); in updateText() 147 ServiceState ss = mKeyguardUpdateMonitor.getServiceState(subId); in updateText()
|
D | KeyguardIndicationController.java | 112 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardIndicationController 187 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardIndicationController() 210 mKeyguardUpdateMonitor.registerCallback(getKeyguardCallback()); in init() 211 mKeyguardUpdateMonitor.registerCallback(mTickReceiver); in init() 371 if (!mKeyguardUpdateMonitor.isUserUnlocked(userId)) { in updateUserLocked() 396 && mKeyguardUpdateMonitor.getUserHasTrust(userId)) { in updateTrust() 405 && mKeyguardUpdateMonitor.getUserTrustIsManaged(userId) in updateTrust() 406 && !mKeyguardUpdateMonitor.getUserHasTrust(userId)) { in updateTrust() 450 final boolean shouldShowLogout = mKeyguardUpdateMonitor.isLogoutEnabled() in updateLogoutView() 809 } else if (mKeyguardUpdateMonitor.isFaceEnrolled()) { in showActionToUnlock() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/ |
D | WMShellTest.java | 66 @Mock KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in WMShellTest 86 mKeyguardUpdateMonitor, mNavigationModeController, in setUp() 102 verify(mKeyguardUpdateMonitor).registerCallback(any(KeyguardUpdateMonitorCallback.class)); in initSplitScreen_registersCallbacks() 109 verify(mKeyguardUpdateMonitor).registerCallback(any(KeyguardUpdateMonitorCallback.class)); in initOneHanded_registersCallbacks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | KeyguardIndicationControllerTest.java | 133 private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardIndicationControllerTest 191 when(mKeyguardUpdateMonitor.isUnlockingWithBiometricAllowed(anyBoolean())).thenReturn(true); in setUp() 192 when(mKeyguardUpdateMonitor.isScreenOn()).thenReturn(true); in setUp() 193 when(mKeyguardUpdateMonitor.isUserUnlocked(anyInt())).thenReturn(true); in setUp() 220 mKeyguardStateController, mStatusBarStateController, mKeyguardUpdateMonitor, in createController() 514 when(mKeyguardUpdateMonitor.isFaceEnrolled()).thenReturn(true); in transientIndication_swipeUpToRetry() 527 reset(mKeyguardUpdateMonitor); in updateMonitor_listenerUpdatesIndication() 534 when(mKeyguardUpdateMonitor.getUserHasTrust(anyInt())).thenReturn(true); in updateMonitor_listenerUpdatesIndication() 535 when(mKeyguardUpdateMonitor.isUserUnlocked(anyInt())).thenReturn(true); in updateMonitor_listenerUpdatesIndication() 541 reset(mKeyguardUpdateMonitor); in updateMonitor_listenerUpdatesIndication() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | KeyguardCoordinator.java | 63 private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in KeyguardCoordinator 84 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in KeyguardCoordinator() 114 if (mKeyguardUpdateMonitor.isUserInLockdown(currUserId) 115 || mKeyguardUpdateMonitor.isUserInLockdown(notifUserId)) { 163 mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateCallback); in setupInvalidateNotifListCallbacks()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
D | UdfpsKeyguardViewController.java | 48 @NonNull private final KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in UdfpsKeyguardViewController 85 mKeyguardUpdateMonitor = keyguardUpdateMonitor; in UdfpsKeyguardViewController() 127 mKeyguardUpdateMonitor.requestFaceAuthOnOccludingApp(false); in onViewDetached() 165 mKeyguardUpdateMonitor.requestFaceAuthOnOccludingApp(true); in showUdfpsBouncer() 171 mKeyguardUpdateMonitor.requestFaceAuthOnOccludingApp(false); in showUdfpsBouncer()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeServiceHostTest.java | 76 @Mock private KeyguardUpdateMonitor mKeyguardUpdateMonitor; field in DozeServiceHostTest 100 mKeyguardUpdateMonitor, mPulseExpansionHandler, in setup() 193 reset(mKeyguardUpdateMonitor); in testPulseWhileDozing_notifyAuthInterrupt() 196 verify(mKeyguardUpdateMonitor).onAuthInterruptDetected(eq(true)); in testPulseWhileDozing_notifyAuthInterrupt() 198 verify(mKeyguardUpdateMonitor, never()).onAuthInterruptDetected(eq(true)); in testPulseWhileDozing_notifyAuthInterrupt()
|