Home
last modified time | relevance | path

Searched refs:isUserUnlocked (Results 1 – 25 of 69) sorted by relevance

123

/packages/apps/Dialer/java/com/android/voicemail/impl/
DOmtpService.java60 if (!isUserUnlocked(this)) { in onCellServiceConnected()
86 if (!isUserUnlocked(this)) { in onSmsReceived()
118 if (!isUserUnlocked(this)) { in onSimRemoved()
143 if (!isUserUnlocked(this)) { in onStopped()
154 Assert.isTrue(isUserUnlocked(context)); in onBoot()
162 Assert.isTrue(isUserUnlocked(context)); in onShutdown()
194 private static boolean isUserUnlocked(@NonNull Context context) { in isUserUnlocked() method in OmtpService
196 return userManager.isUserUnlocked(); in isUserUnlocked()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DUserLockStateChangedTask.java54 boolean isUserUnlocked = UserManagerCompat.getInstance(context).isUserUnlocked(mUser); in execute()
58 if (isUserUnlocked) { in execute()
69 isUserUnlocked = false; in execute()
81 if (isUserUnlocked) { in execute()
116 if (isUserUnlocked) { in execute()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DWorkSoundPreferenceControllerTest.java97 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in isAvailable_managedProfileAndNotSingleVolume_shouldReturnTrue()
107 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in isAvailable_noManagedProfile_shouldReturnFalse()
117 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in isAvailable_singleVolume_shouldReturnFalse()
153 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in onManagedProfileRemoved_shouldHidePreferenceCategory()
173 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in displayPreference_isAvailable_shouldShowPreferenceCategory()
210 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in onResume_noVoiceCapability_shouldHidePhoneRingtone()
237 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(false); in onResume_availableButLocked_shouldRedactPreferences()
259 when(mAudioHelper.isUserUnlocked(nullable(UserManager.class), anyInt())).thenReturn(true); in onResume_shouldSetUserIdToPreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DFallbackHome.java68 if (isUserUnlocked()) { in maybeFinish()
91 if (isUserUnlocked() || !hasLockscreenSecurity(getUserId()) in maybeStartPinDialog()
104 private boolean isUserUnlocked() { in isUserUnlocked() method in FallbackHome
105 return getSystemService(UserManager.class).isUserUnlocked(); in isUserUnlocked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DAudioHelper.java49 public boolean isUserUnlocked(UserManager um, @UserIdInt int userId) { in isUserUnlocked() method in AudioHelper
50 return um.isUserUnlocked(userId); in isUserUnlocked()
/packages/apps/Settings/src/com/android/settings/notification/
DAudioHelper.java51 public boolean isUserUnlocked(UserManager um, @UserIdInt int userId) { in isUserUnlocked() method in AudioHelper
52 return um.isUserUnlocked(userId); in isUserUnlocked()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppFileProvider.java74 if (userManager.isUserUnlocked()) { in attachInfo()
112 if (!userManager.isUserUnlocked()) { in getUriForFile()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompatVNMr1.java52 public boolean isUserUnlocked(UserHandle user) { in isUserUnlocked() method in UserManagerCompatVNMr1
53 return mUserManager.isUserUnlocked(user); in isUserUnlocked()
DUserManagerCompat.java55 public abstract boolean isUserUnlocked(UserHandle user); in isUserUnlocked() method in UserManagerCompat
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapObexServer.java447 private boolean isUserUnlocked() { in isUserUnlocked() method in BluetoothMapObexServer
449 return (manager == null || manager.isUserUnlocked()); in isUserUnlocked()
494 if (!isUserUnlocked()) { in onPut()
507 if (!isUserUnlocked()) { in onPut()
519 if (!isUserUnlocked()) { in onPut()
1052 if (!isUserUnlocked()) { in onGet()
1071 if (!isUserUnlocked()) { in onGet()
1091 if (!isUserUnlocked()) { in onGet()
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbHostManagementActivity.java140 if (userManager.isUserUnlocked() || getUserId() == UserHandle.USER_SYSTEM) { in onResume()
146 if (userManager.isUserUnlocked()) { in onResume()
/packages/apps/DeskClock/src/com/android/deskclock/controller/
DShortcutController.kt58 if (!mUserManager.isUserUnlocked()) { in updateShortcuts()
158 if (!mUserManager.isUserUnlocked()) { in stopwatchUpdated()
DShortcutController.java67 if (!mUserManager.isUserUnlocked()) { in updateShortcuts()
166 if (!mUserManager.isUserUnlocked()) { in stopwatchUpdated()
/packages/apps/Dialer/java/com/android/dialer/contacts/
DContactsModule.java43 if (appContext.getSystemService(UserManager.class).isUserUnlocked()) { in provideContactDisplayPreferences()
/packages/apps/Dialer/java/com/android/dialer/strictmode/
DStrictModeUtils.java107 if (UserManagerCompat.isUserUnlocked(application)) { in warmupSharedPrefs()
/packages/apps/Dialer/java/com/android/dialer/assisteddialing/
DConcreteCreator.java65 if (!UserManagerCompat.isUserUnlocked(context)) { in createNewAssistedDialingMediator()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockedNumbersAutoMigrator.java105 if (!UserManagerCompat.isUserUnlocked(appContext)) { in doInBackground()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DPeriodicJobService.java60 if (VERSION.SDK_INT >= VERSION_CODES.N_MR1 && UserManagerCompat.isUserUnlocked(context)) { in schedulePeriodicJob()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserManager.java102 return isUserUnlocked(); in isUserUnlockingOrUnlocked()
/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/
DContactDisplayPreferencesImpl.java84 if (!appContext.getSystemService(UserManager.class).isUserUnlocked()) { in migrate()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/map/
DBluetoothMapContentObserverTest.java82 when(mockUserService.isUserUnlocked()).thenReturn(true); in testInitMsgList()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DVideoChargesAlertDialogFragment.java74 if (!UserManagerCompat.isUserUnlocked(context)) { in shouldShow()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DLegacyVoicemailNotificationReceiver.java104 && UserManagerCompat.isUserUnlocked(context) in onReceive()
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTouchInteractionService.java147 if (UserManagerCompat.getInstance(this).isUserUnlocked(Process.myUserHandle())) { in onCreate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DUserSwitchListenerService.java144 if (!UserManager.get(this).isUserUnlocked()) return; in switchToLastUserIfUnlocked()

123