/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/ |
H A D | InternetDialog.java | 325 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 D | InternetDialogController.java | 332 if (isDeviceLocked()) { in getSubtitleText() 783 public boolean isDeviceLocked() {
|
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
H A D | KeyguardManagerCompat.java | 29 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 D | WalletView.java | 172 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 D | WorkLockActivity.java | 85 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 D | WalletPluginService.java | 78 boolean isDeviceLocked, in onPanelShown() argument 86 mSysuiContext, mPluginContext, client, callbacks, isDeviceLocked); in onPanelShown()
|
H A D | WalletPanelViewController.java | 82 boolean isDeviceLocked) { in WalletPanelViewController() argument 88 mIsDeviceLocked = isDeviceLocked; in WalletPanelViewController()
|
/aosp12/frameworks/base/core/java/android/app/ |
H A D | KeyguardManager.java | 537 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 D | InternetDialogTest.java | 380 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 D | InternetDialogControllerTest.java | 404 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 D | ITrustManager.aidl | 35 boolean isDeviceLocked(int userId); in isDeviceLocked() method
|
/aosp12/frameworks/base/services/core/java/com/android/server/clipboard/ |
H A D | ClipboardService.java | 378 || 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 D | CarDevicePolicyManagerTest.java | 237 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 D | QuickAccessWalletTile.java | 160 boolean isDeviceLocked = !mKeyguardStateController.isUnlocked(); in handleUpdateState() 164 if (isDeviceLocked) { in handleUpdateState()
|
/aosp12/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
H A D | PlatformKeyManager.java | 138 public boolean isDeviceLocked(int userId) { in isDeviceLocked() method in PlatformKeyManager 139 return mContext.getSystemService(KeyguardManager.class).isDeviceLocked(userId); in isDeviceLocked()
|
H A D | KeySyncTask.java | 185 if (mPlatformKeyManager.isDeviceLocked(mUserId) && mUserId == UserHandle.USER_SYSTEM) { in syncKeys()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
H A D | PinStorageTest.java | 90 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 D | RedactNotificationPreferenceController.java | 142 if (mKm.isDeviceLocked(mProfileUserId)) { in getAvailabilityStatus()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
H A D | PinStorage.java | 188 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 D | BuzzBeepBlinkTest.java | 163 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 D | RestrictedListPreference.java | 88 if (manager.isDeviceLocked(mProfileUserId)) { in performClick()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
H A D | RecentTasksList.java | 173 put(key, mKeyguardManager.isDeviceLocked(key)); in loadTasksInBackground()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationRemoteInputManager.java | 537 && 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 D | RedactNotificationPreferenceControllerTest.java | 244 when(mKm.isDeviceLocked(10)).thenReturn(true); in getAvailabilityStatus_workProfileLocked()
|