/frameworks/base/packages/SettingsLib/AvatarPicker/src/ |
D | PhotoCapabilityUtils.java | 53 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/ |
D | LockStateTrackingRule.kt | 61 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/ |
D | InternetDialogDelegate.java | 369 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 …]
|
D | InternetDialogController.java | 397 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/ |
D | WalletView.java | 174 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/ |
D | WorkLockActivity.java | 87 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/ |
D | AdaptiveAuthServiceTest.java | 170 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/ |
D | ITrustManager.aidl | 37 boolean isDeviceLocked(int userId, int deviceId); in isDeviceLocked() method
|
/frameworks/base/core/java/android/app/ |
D | KeyguardManager.java | 750 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/ |
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/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/ |
D | ClipboardListenerTest.java | 202 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/ |
D | PlatformKeyManager.java | 137 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in PlatformKeyManager 138 return mContext.getSystemService(KeyguardManager.class).isDeviceLocked(userId); in isDeviceLocked()
|
D | KeySyncTask.java | 192 if (mPlatformKeyManager.isDeviceLocked(mUserId) && mUserId == UserHandle.USER_SYSTEM) { in syncKeys()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | QuickAccessWalletTile.java | 159 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/ |
D | InternetDialogDelegateTest.java | 464 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/ |
D | ClipboardListener.java | 101 if ((clipboardNoninteractiveOnLockscreen() && mKeyguardManager.isDeviceLocked()) in onPrimaryClipChanged()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 670 || 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/ |
D | PinStorageTest.java | 115 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/ |
D | SceneContainerStartable.kt | 590 .flatMapLatest { isDeviceLocked -> in <lambda>() method 591 if (isDeviceLocked) { in <lambda>()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | PinStorage.java | 185 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/ |
D | AdaptiveAuthService.java | 231 if (mKeyguardManager.isDeviceLocked(userId) && mKeyguardManager.isKeyguardLocked()) { in reportAuthAttempt()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | NotificationRemoteInputManager.java | 501 && mKeyguardManager.isDeviceLocked(userId); in showBouncerForRemoteInput() 507 && mKeyguardManager.isDeviceLocked(profileParent.id); in showBouncerForRemoteInput()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/ |
D | UserSwitcherInteractor.kt | 172 ) { _, userInfos, settings, isDeviceLocked -> in <lambda>() method 175 !isDeviceLocked || settings.isAddUsersFromLockscreen in <lambda>()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | CarrierKeyDownloadManager.java | 169 if (mKeyguardManager.isDeviceLocked()) { in CarrierKeyDownloadManager() 303 mIsRequiredToHandleUnlock = mKeyguardManager.isDeviceLocked(); in handleAlarmOrConfigChange()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationAttentionHelperTest.java | 208 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()
|