Home
last modified time | relevance | path

Searched refs:deviceProvisionedController (Results 1 – 25 of 60) sorted by relevance

123

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/smartspace/
DLockscreenPreconditionTest.kt43 private lateinit var deviceProvisionedController: DeviceProvisionedController variable in com.android.systemui.smartspace.LockscreenPreconditionTest
61 `when`(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in testFullyEnabled()
62 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in testFullyEnabled()
63 val precondition = LockscreenPrecondition(deviceProvisionedController, execution) in testFullyEnabled()
75 `when`(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in testProvisioning()
76 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(false) in testProvisioning()
78 LockscreenPrecondition(deviceProvisionedController, execution) in testProvisioning()
86 verify(deviceProvisionedController).addCallback(argumentCaptor.capture()) in testProvisioning()
90 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in testProvisioning()
101 `when`(deviceProvisionedController.isCurrentUserSetup).thenReturn(false) in testUserSetup()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/data/repository/
DDeviceProvisioningRepositoryImplTest.kt42 @Mock lateinit var deviceProvisionedController: DeviceProvisionedController variable in com.android.systemui.statusbar.policy.data.repository.DeviceProvisioningRepositoryImplTest
51 deviceProvisionedController, in setup()
57 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in <lambda>()
66 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in <lambda>()
67 withArgCaptor { verify(deviceProvisionedController).addCallback(capture()) } in <lambda>()
76 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(false) in <lambda>()
77 withArgCaptor { verify(deviceProvisionedController).addCallback(capture()) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/data/repository/
DDeviceProvisioningRepository.kt44 private val deviceProvisionedController: DeviceProvisionedController, in bindsImpl() constant in com.android.systemui.statusbar.policy.data.repository.DeviceProvisioningRepositoryImpl
51 trySend(deviceProvisionedController.isDeviceProvisioned) in bindsImpl()
54 deviceProvisionedController.addCallback(listener) in bindsImpl()
55 trySend(deviceProvisionedController.isDeviceProvisioned) in bindsImpl()
56 awaitClose { deviceProvisionedController.removeCallback(listener) } in bindsImpl()
DUserSetupRepository.kt50 private val deviceProvisionedController: DeviceProvisionedController, constant in com.android.systemui.statusbar.policy.data.repository.UserSetupRepositoryImpl
63 deviceProvisionedController.addCallback(callback) in <lambda>()
65 awaitClose { deviceProvisionedController.removeCallback(callback) } in <lambda>()
72 withContext(bgDispatcher) { deviceProvisionedController.isCurrentUserSetup } in fetchUserSetupState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/smartspace/preconditions/
DLockscreenPrecondition.kt28 private val deviceProvisionedController: DeviceProvisionedController, constant in com.android.systemui.smartspace.preconditions.LockscreenPrecondition
45 deviceProvisionedController.addCallback(deviceProvisionedListener)
60 deviceReady = deviceProvisionedController.isDeviceProvisioned && in updateDeviceReadiness()
61 deviceProvisionedController.isCurrentUserSetup in updateDeviceReadiness()
67 deviceProvisionedController.removeCallback(deviceProvisionedListener) in updateDeviceReadiness()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/footer/domain/interactor/
DFooterActionsInteractorTest.kt104 val deviceProvisionedController = mock<DeviceProvisionedController>() in showSettings_userSetUp() constant
108 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in showSettings_userSetUp()
113 deviceProvisionedController = deviceProvisionedController, in showSettings_userSetUp()
138 val deviceProvisionedController = mock<DeviceProvisionedController>() in showSettings_userNotSetUp() constant
141 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(false) in showSettings_userNotSetUp()
146 deviceProvisionedController = deviceProvisionedController, in showSettings_userNotSetUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/policy/data/repository/
DUserSetupRepositoryTest.kt30 import com.android.systemui.statusbar.policy.deviceProvisionedController
54 private val deviceProvisionedController : DeviceProvisionedController = mock() constant in com.android.systemui.statusbar.policy.data.repository.UserSetupRepositoryTest
57 deviceProvisionedController,
76 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in userSetup_updatesOnChange()
85 verify(deviceProvisionedController).addCallback(captor.capture()) in getDeviceProvisionedListener()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractorKosmos.kt24 import com.android.systemui.statusbar.policy.deviceProvisionedController
33 deviceProvisionedController = deviceProvisionedController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractorKosmos.kt28 import com.android.systemui.statusbar.policy.deviceProvisionedController
40 deviceProvisionedController = deviceProvisionedController, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DQSSettingsRestoredBroadcastRepositoryTest.kt32 private val deviceProvisionedController = FakeDeviceProvisionedController() constant in com.android.systemui.qs.pipeline.data.repository.QSSettingsRestoredBroadcastRepositoryTest
43 deviceProvisionedController, in setup()
198 deviceProvisionedController.setUserSetup(user) in restoreAfterUserSetup_singleTilesRestoredBroadcast()
223 deviceProvisionedController.setUserSetup(user) in restoreAfterUserSetup_singleAutoAddRestoredBroadcast_noRestore()
244 deviceProvisionedController.setUserSetup(user + 1) in restoreAfterUserSetup_otherUserFinishedSetup_noRestore()
265 deviceProvisionedController.setUserSetup(user + 1) in restoreAfterUserSetup_otherUserFinishedSetup_thenCorrectUser_restored()
267 deviceProvisionedController.setUserSetup(user) in restoreAfterUserSetup_otherUserFinishedSetup_thenCorrectUser_restored()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/interruption/
DVisualInterruptionDecisionProviderTestUtil.kt42 deviceProvisionedController: DeviceProvisionedController, in createProviderByFlag()
66 deviceProvisionedController, in createProviderByFlag()
99 deviceProvisionedController, in createProviderByFlag()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/
DQuickSettingsKosmos.kt41 import com.android.systemui.statusbar.policy.deviceProvisionedController
80 deviceProvisionedController = deviceProvisionedController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractorTest.kt54 @Mock private lateinit var deviceProvisionedController: DeviceProvisionedController variable in com.android.systemui.user.domain.interactor.GuestUserInteractorTest
90 deviceProvisionedController = deviceProvisionedController, in initGuestUserInteractor()
127 verify(deviceProvisionedController, never()).addCallback(any()) in onDeviceBootCompleted_allowedToAdd_createGuest()
137 verify(deviceProvisionedController).addCallback(captor.capture()) in onDeviceBootCompleted_awaitProvisioning_andCreateGuest()
143 verify(deviceProvisionedController).removeCallback(captor.value) in onDeviceBootCompleted_awaitProvisioning_andCreateGuest()
378 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(isAllowed) in setAllowedToAdd()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/phone/
DDozeServiceHostKosmos.kt31 import com.android.systemui.statusbar.policy.deviceProvisionedController
44 deviceProvisionedController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicyTest.kt105 @Mock private lateinit var deviceProvisionedController: DeviceProvisionedController variable in com.android.systemui.statusbar.phone.PhoneStatusBarPolicyTest
155 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(false) in testDeviceNotProvisioned_alarmIconNotShown()
169 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in testDeviceProvisioned_alarmIconShown()
183 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(false) in testDeviceProvisionedChanged_alarmIconShownAfterCurrentUserSetup()
192 whenever(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in testDeviceProvisionedChanged_alarmIconShownAfterCurrentUserSetup()
295 deviceProvisionedController, in createStatusBarPolicy()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/phone/
DLegacyActivityStarterInternalImplTest.kt95 @Mock private lateinit var deviceProvisionedController: DeviceProvisionedController variable in com.android.systemui.statusbar.phone.LegacyActivityStarterInternalImplTest
128 deviceProvisionedController = deviceProvisionedController, in setUp()
142 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in startPendingIntentDismissingKeyguard_keyguardShowing_dismissWithAction()
163 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in startPendingIntentMaybeDismissingKeyguard_keyguardShowing_showOverLs_launchAnimator()
196 whenever(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in startPendingIntentDismissingKeyguard_fillInIntentAndExtraOptions_sendAndReturnResult()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/
DDeviceProvisionedCoordinator.java45 public DeviceProvisionedCoordinator(DeviceProvisionedController deviceProvisionedController, in DeviceProvisionedCoordinator() argument
47 mDeviceProvisionedController = deviceProvisionedController; in DeviceProvisionedCoordinator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DQSSettingsRestoredRepository.kt59 private val deviceProvisionedController: DeviceProvisionedController, constant
73 deviceProvisionedController.addCallback(callback) in <lambda>()
74 awaitClose { deviceProvisionedController.removeCallback(callback) } in <lambda>()
109 deviceProvisionedController.isUserSetup(userId) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsImpl.java44 DeviceProvisionedController deviceProvisionedController, in GlobalActionsImpl() argument
49 mDeviceProvisionedController = deviceProvisionedController; in GlobalActionsImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DGuestUserInteractor.kt59 private val deviceProvisionedController: DeviceProvisionedController, in <lambda>() constant in com.android.systemui.user.domain.interactor.GuestUserInteractor
92 deviceProvisionedController.removeCallback(this) in <lambda>()
96 deviceProvisionedController.addCallback(callback) in <lambda>()
343 return deviceProvisionedController.isDeviceProvisioned && in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/domain/interactor/
DPrivacyChipInteractor.kt43 private val deviceProvisionedController: DeviceProvisionedController, in <lambda>() constant
80 if (!deviceProvisionedController.isDeviceProvisioned) return in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/shade/
DShadeControllerKosmos.kt39 import com.android.systemui.statusbar.policy.deviceProvisionedController
71 deviceProvisionedController, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceControllerTest.kt130 private lateinit var deviceProvisionedController: DeviceProvisionedController in <lambda>() variable in com.android.systemui.statusbar.lockscreen.LockscreenSmartspaceControllerTest
228 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in <lambda>()
229 `when`(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in <lambda>()
258 deviceProvisionedController, in <lambda>()
274 verify(deviceProvisionedController).addCallback(capture(deviceProvisionedCaptor)) in <lambda>()
281 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(false) in <lambda>()
282 `when`(deviceProvisionedController.isCurrentUserSetup).thenReturn(false) in <lambda>()
292 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in <lambda>()
293 `when`(deviceProvisionedController.isCurrentUserSetup).thenReturn(true) in <lambda>()
788 `when`(deviceProvisionedController.isDeviceProvisioned).thenReturn(true) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/
DFullScreenIntentDecisionProvider.kt50 private val deviceProvisionedController: DeviceProvisionedController, constant in com.android.systemui.statusbar.notification.interruption.FullScreenIntentDecisionProvider
190 if (!deviceProvisionedController.isDeviceProvisioned) { in makeDecisionWithoutDnd()
194 if (!deviceProvisionedController.isCurrentUserSetup) { in makeDecisionWithoutDnd()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbAccessoryUriActivity.java55 UsbAccessoryUriActivity(DeviceProvisionedController deviceProvisionedController) { in UsbAccessoryUriActivity() argument
56 mDeviceProvisionedController = deviceProvisionedController; in UsbAccessoryUriActivity()

123