Home
last modified time | relevance | path

Searched refs:isKeyguardLocked (Results 1 – 25 of 39) sorted by relevance

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/development/qstile/
DWirelessDebuggingTest.java96 doReturn(false).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_false_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
111 doReturn(true).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_false_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi()
126 doReturn(false).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_false_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi()
141 doReturn(true).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_false_keyguardLocked_WifiConnected_shouldDisableAdbWifi()
158 doReturn(false).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_true_keyguardUnlocked_WifiDisconnected_shouldDisableAdbWifi()
180 doReturn(true).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_true_keyguardLocked_WifiDisconnected_shouldDisableAdbWifi()
196 doReturn(false).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_true_keyguardUnlocked_WifiConnected_shouldDisableAdbWifi()
211 doReturn(true).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_true_keyguardLocked_WifiConnected_shouldDisableAdbWifi()
DSensorsOffTest.java67 doReturn(true).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_trueWithKeyguardLocked_sensorPrivacyNotModified()
78 doReturn(false).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_trueWithKeyguardUnlocked_sensorPrivacyModified()
89 doReturn(true).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_falseWithKeyguardLocked_sensorPrivacyNotModified()
100 doReturn(false).when(mKeyguardManager).isKeyguardLocked(); in setIsEnabled_falseWithKeyguardUnlocked_sensorPrivacyModified()
/packages/apps/LegacyCamera/src/com/android/camera/
DActivityBase.java73 if (mCameraDevice == null && isKeyguardLocked()) { in onResume()
134 private boolean isKeyguardLocked() { in isKeyguardLocked() method in ActivityBase
138 Log.v(TAG, "kgm.isKeyguardLocked()="+kgm.isKeyguardLocked() in isKeyguardLocked()
143 return (kgm != null) && kgm.isKeyguardLocked() && kgm.isKeyguardSecure(); in isKeyguardLocked()
/packages/apps/Camera2/src/com/android/camera/util/
DQuickActivity.java139 Log.v(TAG, "onResume(): isKeyguardLocked() = " + isKeyguardLocked()); in onResume()
141 if (isKeyguardLocked() && mSkippedFirstOnResume == false) { in onResume()
207 protected boolean isKeyguardLocked() { in isKeyguardLocked() method in QuickActivity
212 return mKeyguardManager.isKeyguardLocked(); in isKeyguardLocked()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/
DKeyguardManagerHelper.java41 public static boolean isKeyguardLocked() { in isKeyguardLocked() method in KeyguardManagerHelper
44 locked = WindowManagerGlobal.getWindowManagerService().isKeyguardLocked(); in isKeyguardLocked()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/userswitcher/
DUserSwitchTransitionViewController.java259 if (mWindowManagerService.isKeyguardLocked()) { in setupKeyguardShownTimeout()
274 public void onKeyguardLockedStateChanged(boolean isKeyguardLocked) { in setupKeyguardShownTimeout()
276 Log.d(TAG, "Keyguard state change keyguardLocked=" + isKeyguardLocked); in setupKeyguardShownTimeout()
278 if (isKeyguardLocked) { in setupKeyguardShownTimeout()
/packages/apps/Nfc/src/com/android/nfc/
DScreenStateHelper.java32 if (mKeyguardManager.isKeyguardLocked()) { in checkScreenState()
37 } else if (mKeyguardManager.isKeyguardLocked()) { in checkScreenState()
/packages/apps/Camera2/src/com/android/camera/
DPermissionsActivity.java72 if (isKeyguardLocked()) { in onCreateTasks()
112 if (!isKeyguardLocked() && !mSettingsManager.getBoolean(SettingsManager.SCOPE_GLOBAL, in checkPermissions()
/packages/services/Car/car-lib/src/android/car/
DIExperimentalCarKeyguardLockedStateListener.aidl27 void onKeyguardLockedStateChanged(boolean isKeyguardLocked); in onKeyguardLockedStateChanged() argument
DIExperimentalCarKeyguardService.aidl32 boolean isKeyguardLocked(int userId); in isKeyguardLocked() method
/packages/services/Car/service/src/com/android/car/systemui/keyguard/
DExperimentalCarKeyguardService.java189 public boolean isKeyguardLocked(int userId) { in isKeyguardLocked() method in ExperimentalCarKeyguardService
430 mLockedStateCallback = isKeyguardLocked -> { in KeyguardState()
436 listener.onKeyguardLockedStateChanged(isKeyguardLocked); in KeyguardState()
/packages/apps/Dialer/java/com/android/dialer/precall/impl/
DPreCallActivity.java35 if (getSystemService(KeyguardManager.class).isKeyguardLocked()) { in onCreate()
/packages/apps/Settings/src/com/android/settings/development/qstile/
DDevelopmentTiles.java232 if (mKeyguardManager.isKeyguardLocked()) { in setIsEnabled()
290 if (isEnabled && mKeyguardManager.isKeyguardLocked()) { in setIsEnabled()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarDevicePolicyManagerTest.java284 assertWithMessage("keyguard is locked").that(mKeyguardManager.isKeyguardLocked()).isFalse(); in assertUnlocked()
295 assertWithMessage("keyguard is unlocked").that(mKeyguardManager.isKeyguardLocked()) in assertLocked()
/packages/apps/Camera2/src_pd/com/android/camera/stats/
DUsageStatistics.java51 public void foregrounded(int source, int mode, boolean isKeyguardLocked, in foregrounded() argument
/packages/modules/AdServices/adservices/apk/tests/util/java/com/android/adservices/ui/util/
DAdServicesUiTestCase.java58 if (keyguardManager.isKeyguardLocked()) { in setUpDevice()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userswitcher/
DUserSwitchTransitionViewControllerTest.java302 when(mWindowManagerService.isKeyguardLocked()).thenReturn(true); in setupKeyguardShownTimeout_keyguardLocked_doNothing()
312 when(mWindowManagerService.isKeyguardLocked()).thenReturn(false); in setupKeyguardShownTimeout_keyguardNotLocked_addTimeout()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DHostEmulationManagerTest.java558 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testOnHostEmulationData_stateW4Select_defaultServiceExists_requiresUnlock()
588 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testOnHostEmulationData_stateW4Select_defaultServiceExists_secureNfcEnabled()
619 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testOnHostEmulationData_stateW4Select_defaultServiceExists_requiresScreenOn()
650 when(mKeyguardManager.isKeyguardLocked()).thenReturn(true); in testOnHostEmulationData_stateW4Select_defaultServiceExists_notOnHost()
713 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testOnHostEmulationData_stateW4Select_noDefaultService_matchingActiveService()
759 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testOnHostEmulationData_stateW4Select_noDefaultService_noBoundActiveService()
857 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testOnHostEmulationData_stateXfer_selectAid_activeService()
898 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in testOnHostEmulationData_stateXfer_selectAid_noActiveService()
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java472 public void onKeyguardLockedStateChanged(boolean isKeyguardLocked) { in onKeyguardLockedStateChanged() argument
473 if (!isKeyguardLocked) return; in onKeyguardLockedStateChanged()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseActivity.java91 ? getSystemService(KeyguardManager.class).isKeyguardLocked() in onCreate()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/keyguard/
DKeyguardServiceDelegate.java278 void onKeyguardLockedStateChanged(boolean isKeyguardLocked); in onKeyguardLockedStateChanged() argument
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java158 .when(() -> KeyguardManagerHelper.isKeyguardLocked()); in setUpMocks()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java256 boolean locked = KeyguardManagerHelper.isKeyguardLocked(); in checkKeyguardLockedWithPolling()
/packages/apps/CellBroadcastReceiver/tests/compliancetests/src/com/android/cellbroadcastreceiver/compliancetests/
DCellBroadcastUiTest.java92 if (keyguardManager != null && keyguardManager.isKeyguardLocked()) { in beforeTest()
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/
DCarHeadsUpNotificationManagerTest.java147 when(mKeyguardManager.isKeyguardLocked()).thenReturn(false); in setup()

12