Home
last modified time | relevance | path

Searched refs:isDeviceLocked (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/packages/SettingsLib/AvatarPicker/src/
DPhotoCapabilityUtils.java53 return canPerformActivityForGetImage && !isDeviceLocked(context); in canChoosePhoto()
68 return canPerformActivityForCropping && !isDeviceLocked(context); in canCropPhoto()
71 private static boolean isDeviceLocked(Context context) { in isDeviceLocked() method in PhotoCapabilityUtils
73 return keyguardManager == null || keyguardManager.isDeviceLocked(); in isDeviceLocked()
/frameworks/base/tests/TrustTests/src/android/trust/test/lib/
DLockStateTrackingRule.kt61 wait("device locked") { keyguardManager.isDeviceLocked } in assertLocked()
69 wait("device unlocked") { !keyguardManager.isDeviceLocked } in assertUnlockedButNotReally()
75 wait("device unlocked") { !keyguardManager.isDeviceLocked } in assertUnlockedAndTrusted()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegate.java369 final boolean isDeviceLocked = mInternetDialogController.isDeviceLocked(); in updateDialog()
372 updateWifiToggle(isWifiEnabled, isDeviceLocked); in updateDialog()
373 updateConnectedWifi(isWifiEnabled, isDeviceLocked); in updateDialog()
374 updateWifiListAndSeeAll(isWifiEnabled, isDeviceLocked); in updateDialog()
375 updateWifiScanNotify(isWifiEnabled, isWifiScanEnabled, isDeviceLocked); in updateDialog()
582 private void updateWifiToggle(boolean isWifiEnabled, boolean isDeviceLocked) { in updateWifiToggle() argument
586 if (isDeviceLocked) { in updateWifiToggle()
592 (isDeviceLocked && mConnectedWifiEntry != null) ? mBackgroundOn : null); in updateWifiToggle()
604 private void updateConnectedWifi(boolean isWifiEnabled, boolean isDeviceLocked) { in updateConnectedWifi() argument
605 if (mDialog == null || !isWifiEnabled || mConnectedWifiEntry == null || isDeviceLocked) { in updateConnectedWifi()
[all …]
DInternetDialogController.java397 if (isDeviceLocked()) { in getSubtitleText()
828 if (isDeviceLocked()) {
1031 public boolean isDeviceLocked() {
1164 if (!isWifiEnabled() || isDeviceLocked()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
DWalletView.java174 boolean isDeviceLocked, in showCardCarousel() argument
177 mCardCarousel.setData(data, selectedIndex, mIsDeviceLocked != isDeviceLocked); in showCardCarousel()
178 mIsDeviceLocked = isDeviceLocked; in showCardCarousel()
187 renderActionButton(data.get(selectedIndex), isDeviceLocked, mIsUdfpsEnabled); in showCardCarousel() local
298 WalletCardViewInfo walletCard, boolean isDeviceLocked, boolean isUdfpsEnabled) { in renderActionButton() argument
304 isDeviceLocked in renderActionButton()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DWorkLockActivity.java87 if (!getKeyguardManager().isDeviceLocked(getTargetUserId())) { in onCreate()
167 if (userId == targetUserId && !getKeyguardManager().isDeviceLocked(targetUserId)) {
174 if (isFinishing() || !getKeyguardManager().isDeviceLocked(getTargetUserId())) { in showConfirmCredentialActivity()
/frameworks/base/services/tests/servicestests/src/com/android/server/adaptiveauth/
DAdaptiveAuthServiceTest.java170 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(true); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyLocked()
186 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(false); in testReportAuthAttempt_primaryAuthFailed_multiple_deviceCurrentlyNotLocked()
222 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(true); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyLocked()
239 when(mKeyguardManager.isDeviceLocked(PRIMARY_USER_ID)).thenReturn(false); in testReportAuthAttempt_biometricAuthFailed_multiple_deviceCurrentlyNotLocked()
/frameworks/base/core/java/android/app/trust/
DITrustManager.aidl37 boolean isDeviceLocked(int userId, int deviceId); in isDeviceLocked() method
/frameworks/base/core/java/android/app/
DKeyguardManager.java750 public boolean isDeviceLocked() { in isDeviceLocked() method in KeyguardManager
751 return isDeviceLocked(mContext.getUserId(), mContext.getDeviceId()); in isDeviceLocked()
760 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in KeyguardManager
761 return isDeviceLocked(userId, mContext.getDeviceId()); in isDeviceLocked()
769 public boolean isDeviceLocked(@UserIdInt int userId, int deviceId) { in isDeviceLocked() method in KeyguardManager
771 return mTrustManager.isDeviceLocked(userId, deviceId); in isDeviceLocked()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierKeyDownloadMgrTest.java105 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/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DClipboardListenerTest.java202 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in test_deviceLocked_showsToast()
216 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in test_deviceLocked_legacyBehavior_showsInteractiveUI()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DPlatformKeyManager.java137 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in PlatformKeyManager
138 return mContext.getSystemService(KeyguardManager.class).isDeviceLocked(userId); in isDeviceLocked()
DKeySyncTask.java192 if (mPlatformKeyManager.isDeviceLocked(mUserId) && mUserId == UserHandle.USER_SYSTEM) { in syncKeys()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DQuickAccessWalletTile.java159 boolean isDeviceLocked = !mKeyguardStateController.isUnlocked(); in handleUpdateState()
163 state.state = isDeviceLocked ? Tile.STATE_INACTIVE : Tile.STATE_ACTIVE; in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
DInternetDialogDelegateTest.java464 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in updateDialog_deviceLockedAndNoConnectedWifi_showWifiToggle()
481 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in updateDialog_deviceLockedAndHasConnectedWifi_showWifiToggleWithBackground()
582 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in updateDialog_wifiOffAndWifiScanOnAndDeviceLocked_hideWifiScanNotify()
593 when(mInternetDialogController.isDeviceLocked()).thenReturn(false); in updateDialog_wifiOffAndWifiScanOnAndDeviceUnlocked_showWifiScanNotify()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardListener.java101 if ((clipboardNoninteractiveOnLockscreen() && mKeyguardManager.isDeviceLocked()) in onPrimaryClipChanged()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java670 || isDeviceLocked(intendingUserId, deviceId)) { in getPrimaryClip()
710 || isDeviceLocked(intendingUserId, deviceId)) { in getPrimaryClipDescription()
734 || isDeviceLocked(intendingUserId, deviceId)) { in hasPrimaryClip()
809 || isDeviceLocked(intendingUserId, deviceId)) { in hasClipboardText()
838 || isDeviceLocked(intendingUserId, deviceId)) { in getPrimaryClipSource()
1174 private boolean isDeviceLocked(@UserIdInt int userId, int deviceId) { in isDeviceLocked() method in ClipboardService
1179 return keyguardManager != null && keyguardManager.isDeviceLocked(userId, deviceId); in isDeviceLocked()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DPinStorageTest.java115 when(mKeyguardManager.isDeviceLocked()).thenReturn(false); in setUp()
184 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in storePin_unattendedReboot_deviceIsLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartable.kt590 .flatMapLatest { isDeviceLocked -> in <lambda>() method
591 if (isDeviceLocked) { in <lambda>()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPinStorage.java185 mIsDeviceLocked = mIsDeviceSecure ? isDeviceLocked() : false; in PinStorage()
622 private boolean isDeviceLocked() { in isDeviceLocked() method in PinStorage
625 ? keyguardManager.isDeviceSecure() && keyguardManager.isDeviceLocked() in isDeviceLocked()
/frameworks/base/services/core/java/com/android/server/adaptiveauth/
DAdaptiveAuthService.java231 if (mKeyguardManager.isDeviceLocked(userId) && mKeyguardManager.isKeyguardLocked()) { in reportAuthAttempt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationRemoteInputManager.java501 && mKeyguardManager.isDeviceLocked(userId); in showBouncerForRemoteInput()
507 && mKeyguardManager.isDeviceLocked(profileParent.id); in showBouncerForRemoteInput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractor.kt172 ) { _, userInfos, settings, isDeviceLocked -> in <lambda>() method
175 !isDeviceLocked || settings.isAddUsersFromLockscreen in <lambda>()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierKeyDownloadManager.java169 if (mKeyguardManager.isDeviceLocked()) { in CarrierKeyDownloadManager()
303 mIsRequiredToHandleUnlock = mKeyguardManager.isDeviceLocked(); in handleAlarmOrConfigChange()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAttentionHelperTest.java208 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(false); in setUp()
672 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(true); in testLockedPrivateA11yRedaction()
694 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(true); in testLockedOverridePrivateA11yRedaction()
716 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(true); in testLockedPublicA11yNoRedaction()
738 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(false); in testUnlockedPrivateA11yNoRedaction()

12