Home
last modified time | relevance | path

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

12

/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/
H A DInternetDialog.java325 final boolean isDeviceLocked = mInternetDialogController.isDeviceLocked(); in updateDialog()
328 updateWifiToggle(isWifiEnabled, isDeviceLocked); in updateDialog()
329 updateConnectedWifi(isWifiEnabled, isDeviceLocked); in updateDialog()
330 updateWifiListAndSeeAll(isWifiEnabled, isDeviceLocked); in updateDialog()
337 && !mInternetDialogController.isDeviceLocked()) { in setOnClickListener()
437 if (isDeviceLocked) { in updateWifiToggle()
448 if (!isWifiEnabled || mConnectedWifiEntry == null || isDeviceLocked) { in updateConnectedWifi()
463 if (!isWifiEnabled || isDeviceLocked) { in updateWifiListAndSeeAll()
506 boolean isDeviceLocked) { in updateWifiScanNotify() argument
507 if (isWifiEnabled || !isWifiScanEnabled || isDeviceLocked) { in updateWifiScanNotify()
[all …]
H A DInternetDialogController.java332 if (isDeviceLocked()) { in getSubtitleText()
783 public boolean isDeviceLocked() {
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DKeyguardManagerCompat.java29 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in KeyguardManagerCompat
30 return mKeyguardManager.isDeviceLocked(userId); in isDeviceLocked()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/wallet/ui/
H A DWalletView.java172 boolean isDeviceLocked, in showCardCarousel() argument
175 mCardCarousel.setData(data, selectedIndex, mIsDeviceLocked != isDeviceLocked); in showCardCarousel()
176 mIsDeviceLocked = isDeviceLocked; in showCardCarousel()
185 renderActionButton(data.get(selectedIndex), isDeviceLocked, mIsUdfpsEnabled); in showCardCarousel() local
290 WalletCardViewInfo walletCard, boolean isDeviceLocked, boolean isUdfpsEnabled) { in renderActionButton() argument
296 isDeviceLocked in renderActionButton()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
H A DWorkLockActivity.java85 if (!getKeyguardManager().isDeviceLocked(getTargetUserId())) { in onCreate()
140 if (userId == targetUserId && !getKeyguardManager().isDeviceLocked(targetUserId)) {
147 if (isFinishing() || !getKeyguardManager().isDeviceLocked(getTargetUserId())) { in showConfirmCredentialActivity()
/aosp12/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
H A DWalletPluginService.java78 boolean isDeviceLocked, in onPanelShown() argument
86 mSysuiContext, mPluginContext, client, callbacks, isDeviceLocked); in onPanelShown()
H A DWalletPanelViewController.java82 boolean isDeviceLocked) { in WalletPanelViewController() argument
88 mIsDeviceLocked = isDeviceLocked; in WalletPanelViewController()
/aosp12/frameworks/base/core/java/android/app/
H A DKeyguardManager.java537 public boolean isDeviceLocked() { in isDeviceLocked() method in KeyguardManager
538 return isDeviceLocked(mContext.getUserId()); in isDeviceLocked()
547 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in KeyguardManager
549 return mTrustManager.isDeviceLocked(userId); in isDeviceLocked()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/dialog/
H A DInternetDialogTest.java380 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in updateDialog_deviceLockedAndNoConnectedWifi_showWifiToggle()
397 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in updateDialog_deviceLockedAndHasConnectedWifi_showWifiToggleWithBackground()
433 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in updateDialog_wifiOffAndWifiScanOnAndDeviceLocked_hideWifiScanNotify()
444 when(mInternetDialogController.isDeviceLocked()).thenReturn(false); in updateDialog_wifiOffAndWifiScanOnAndDeviceUnlocked_showWifiScanNotify()
475 when(mInternetDialogController.isDeviceLocked()).thenReturn(true); in showProgressBar_deviceLocked_hideProgressBar()
H A DInternetDialogControllerTest.java404 assertThat(mInternetDialogController.isDeviceLocked()).isFalse(); in isDeviceLocked_keyguardIsUnlocked_returnFalse()
411 assertThat(mInternetDialogController.isDeviceLocked()).isTrue(); in isDeviceLocked_keyguardIsLocked_returnTrue()
/aosp12/frameworks/base/core/java/android/app/trust/
H A DITrustManager.aidl35 boolean isDeviceLocked(int userId); in isDeviceLocked() method
/aosp12/frameworks/base/services/core/java/com/android/server/clipboard/
H A DClipboardService.java378 || isDeviceLocked(intendingUserId)) { in getPrimaryClip()
405 || isDeviceLocked(intendingUserId)) { in getPrimaryClipDescription()
421 || isDeviceLocked(intendingUserId)) { in hasPrimaryClip()
455 || isDeviceLocked(intendingUserId)) { in hasClipboardText()
476 || isDeviceLocked(intendingUserId)) { in getPrimaryClipSource()
740 private boolean isDeviceLocked(@UserIdInt int userId) { in isDeviceLocked() method in ClipboardService
745 return keyguardManager != null && keyguardManager.isDeviceLocked(userId); in isDeviceLocked()
/aosp12/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
H A DCarDevicePolicyManagerTest.java237 assertWithMessage("device is locked").that(mKeyguardManager.isDeviceLocked()).isFalse(); in assertUnlocked()
247 assertWithMessage("device is unlocked").that(mKeyguardManager.isDeviceLocked()) in assertLocked()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DQuickAccessWalletTile.java160 boolean isDeviceLocked = !mKeyguardStateController.isUnlocked(); in handleUpdateState()
164 if (isDeviceLocked) { in handleUpdateState()
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
H A DPlatformKeyManager.java138 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in PlatformKeyManager
139 return mContext.getSystemService(KeyguardManager.class).isDeviceLocked(userId); in isDeviceLocked()
H A DKeySyncTask.java185 if (mPlatformKeyManager.isDeviceLocked(mUserId) && mUserId == UserHandle.USER_SYSTEM) { in syncKeys()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DPinStorageTest.java90 when(mKeyguardManager.isDeviceLocked()).thenReturn(false); in setUp()
160 when(mKeyguardManager.isDeviceLocked()).thenReturn(true); in storePin_unattendedReboot_deviceIsLocked()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DRedactNotificationPreferenceController.java142 if (mKm.isDeviceLocked(mProfileUserId)) { in getAvailabilityStatus()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DPinStorage.java188 mIsDeviceLocked = mIsDeviceSecure ? isDeviceLocked() : false; in PinStorage()
621 private boolean isDeviceLocked() { in isDeviceLocked() method in PinStorage
624 ? keyguardManager.isDeviceSecure() && keyguardManager.isDeviceLocked() in isDeviceLocked()
/aosp12/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DBuzzBeepBlinkTest.java163 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(false); in setUp()
517 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(true); in testLockedPrivateA11yRedaction()
539 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(true); in testLockedOverridePrivateA11yRedaction()
561 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(true); in testLockedPublicA11yNoRedaction()
583 when(mKeyguardManager.isDeviceLocked(anyInt())).thenReturn(false); in testUnlockedPrivateA11yNoRedaction()
/aosp12/packages/apps/Settings/src/com/android/settings/
H A DRestrictedListPreference.java88 if (manager.isDeviceLocked(mProfileUserId)) { in performClick()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DRecentTasksList.java173 put(key, mKeyguardManager.isDeviceLocked(key)); in loadTasksInBackground()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationRemoteInputManager.java537 && mKeyguardManager.isDeviceLocked(userId); in showBouncerForRemoteInput()
543 && mKeyguardManager.isDeviceLocked(profileParent.id); in showBouncerForRemoteInput()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DRedactNotificationPreferenceControllerTest.java244 when(mKm.isDeviceLocked(10)).thenReturn(true); in getAvailabilityStatus_workProfileLocked()

12