Home
last modified time | relevance | path

Searched refs:uiEventLoggerFake (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopModeUiEventLoggerTest.kt40 private lateinit var uiEventLoggerFake: UiEventLoggerFake variable in com.android.wm.shell.desktopmode.DesktopModeUiEventLoggerTest
47 uiEventLoggerFake = UiEventLoggerFake() in setUp()
48 logger = DesktopModeUiEventLogger(uiEventLoggerFake, instanceIdSequence) in setUp()
54 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(0) in log_invalidUid_eventNotLogged()
60 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(0) in log_emptyPackageName_eventNotLogged()
68 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in log_eventLogged()
69 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo(event.id) in log_eventLogged()
70 assertThat(uiEventLoggerFake[0].instanceId).isNull() in log_eventLogged()
71 assertThat(uiEventLoggerFake[0].uid).isEqualTo(UID) in log_eventLogged()
72 assertThat(uiEventLoggerFake[0].packageName).isEqualTo(PACKAGE_NAME) in log_eventLogged()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/
DTemporaryViewUiEventLoggerTest.kt29 private lateinit var uiEventLoggerFake: UiEventLoggerFake variable in com.android.systemui.temporarydisplay.TemporaryViewUiEventLoggerTest
34 uiEventLoggerFake = UiEventLoggerFake() in setup()
35 logger = TemporaryViewUiEventLogger(uiEventLoggerFake) in setup()
42 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in testViewAdded()
43 assertThat(uiEventLoggerFake.eventId(0)) in testViewAdded()
52 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(2) in testMultipleViewsAdded_differentInstanceIds()
53 assertThat(uiEventLoggerFake.eventId(0)) in testMultipleViewsAdded_differentInstanceIds()
55 assertThat(uiEventLoggerFake.eventId(1)) in testMultipleViewsAdded_differentInstanceIds()
57 assertThat(uiEventLoggerFake.logs[0].instanceId.id) in testMultipleViewsAdded_differentInstanceIds()
58 .isNotEqualTo(uiEventLoggerFake.logs[1].instanceId.id) in testMultipleViewsAdded_differentInstanceIds()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ongoingcall/
DOngoingCallLoggerTest.kt27 private val uiEventLoggerFake = UiEventLoggerFake() constant in com.android.systemui.statusbar.phone.ongoingcall.OngoingCallLoggerTest
28 private val ongoingCallLogger = OngoingCallLogger(uiEventLoggerFake)
34 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logChipClicked_clickEventLogged()
35 assertThat(uiEventLoggerFake.eventId(0)) in logChipClicked_clickEventLogged()
44 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logChipVisibilityChanged_changeFromInvisibleToVisible_visibleEventLogged()
45 assertThat(uiEventLoggerFake.eventId(0)) in logChipVisibilityChanged_changeFromInvisibleToVisible_visibleEventLogged()
53 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logChipVisibilityChanged_changeFromVisibleToInvisible_eventNotLogged()
58 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logChipVisibilityChanged_changeFromVisibleToInvisible_eventNotLogged()
65 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logChipVisibilityChanged_visibleThenVisibleAgain_eventNotLogged()
70 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logChipVisibilityChanged_visibleThenVisibleAgain_eventNotLogged()
DOngoingCallControllerTest.kt90 private val uiEventLoggerFake = UiEventLoggerFake() constant in com.android.systemui.statusbar.phone.ongoingcall.OngoingCallControllerTest
127 OngoingCallLogger(uiEventLoggerFake), in setUp()
554 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in chipClicked_clickEventLogged()
555 assertThat(uiEventLoggerFake.eventId(0)) in chipClicked_clickEventLogged()
577 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in notifyChipVisibilityChanged_visibleEventLogged()
578 assertThat(uiEventLoggerFake.eventId(0)) in notifyChipVisibilityChanged_visibleEventLogged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/sender/
DMediaTttSenderUiEventLoggerTest.kt13 private lateinit var uiEventLoggerFake: UiEventLoggerFake variable in com.android.systemui.media.taptotransfer.sender.MediaTttSenderUiEventLoggerTest
18 uiEventLoggerFake = UiEventLoggerFake() in setUp()
19 logger = MediaTttSenderUiEventLogger(uiEventLoggerFake) in setUp()
27 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logSenderStateChange_eventAssociatedWithStateIsLogged()
28 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo(state.uiEvent.id) in logSenderStateChange_eventAssociatedWithStateIsLogged()
29 assertThat(uiEventLoggerFake.get(0).instanceId).isEqualTo(instanceId) in logSenderStateChange_eventAssociatedWithStateIsLogged()
38 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logUndoClicked_undoEventLogged()
39 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo(undoEvent.id) in logUndoClicked_undoEventLogged()
40 assertThat(uiEventLoggerFake.get(0).instanceId).isEqualTo(instanceId) in logUndoClicked_undoEventLogged()
49 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(0) in logUndoClicked_notUndoEvent_eventNotLogged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverUiEventLoggerTest.kt13 private lateinit var uiEventLoggerFake: UiEventLoggerFake variable in com.android.systemui.media.taptotransfer.receiver.MediaTttReceiverUiEventLoggerTest
18 uiEventLoggerFake = UiEventLoggerFake() in setUp()
19 logger = MediaTttReceiverUiEventLogger(uiEventLoggerFake) in setUp()
29 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in logReceiverStateChange_eventAssociatedWithStateIsLogged()
30 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo(state.uiEvent.id) in logReceiverStateChange_eventAssociatedWithStateIsLogged()
31 assertThat(uiEventLoggerFake.logs[0].instanceId).isEqualTo(instanceId) in logReceiverStateChange_eventAssociatedWithStateIsLogged()
DMediaTttChipControllerReceiverTest.kt93 private lateinit var uiEventLoggerFake: UiEventLoggerFake variable in com.android.systemui.media.taptotransfer.receiver.MediaTttChipControllerReceiverTest
117 uiEventLoggerFake = UiEventLoggerFake() in setUp()
118 receiverUiEventLogger = MediaTttReceiverUiEventLogger(uiEventLoggerFake) in setUp()
119 temporaryViewUiEventLogger = TemporaryViewUiEventLogger(uiEventLoggerFake) in setUp()
191 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo( in commandQueueCallback_closeToSender_triggersChip()
194 assertThat(uiEventLoggerFake.logs[0].instanceId).isNotNull() in commandQueueCallback_closeToSender_triggersChip()
207 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo( in commandQueueCallback_farFromSender_noChipShown()
210 assertThat(uiEventLoggerFake.logs[0].instanceId).isNotNull() in commandQueueCallback_farFromSender_noChipShown()
223 assertThat(uiEventLoggerFake.eventId(0)).isEqualTo( in commandQueueCallback_transferToReceiverSucceeded_noChipShown()
226 assertThat(uiEventLoggerFake.logs[0].instanceId).isNotNull() in commandQueueCallback_transferToReceiverSucceeded_noChipShown()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DBouncerInteractorTest.kt21 import com.android.internal.logging.uiEventLoggerFake in <lambda>()
59 private val uiEventLoggerFake = kosmos.uiEventLoggerFake in <lambda>() constant in com.android.systemui.bouncer.domain.interactor.BouncerInteractorTest
90 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(0) in <lambda>()
112 assertThat(uiEventLoggerFake[0].eventId) in <lambda>()
123 assertThat(uiEventLoggerFake[1].eventId) in <lambda>()
125 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(2) in <lambda>()
161 assertThat(uiEventLoggerFake[0].eventId) in <lambda>()
180 assertThat(uiEventLoggerFake[1].eventId) in <lambda>()
182 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(2) in <lambda>()
205 assertThat(uiEventLoggerFake[0].eventId) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/internal/logging/
DUiEventLoggerKosmos.kt22 var Kosmos.uiEventLogger: UiEventLogger by Kosmos.Fixture { uiEventLoggerFake } in <lambda>()
23 var Kosmos.uiEventLoggerFake by Kosmos.Fixture { UiEventLoggerFake() } in <lambda>() variable
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/domain/startable/
DAudioModeLoggerStartableTest.kt23 import com.android.internal.logging.uiEventLoggerFake
73 assertThat(uiEventLoggerFake.eventId(0)) in audioMode_inCall()
88 assertThat(uiEventLoggerFake.eventId(0)) in audioMode_notInCall()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/volume/ui/navigation/
DVolumeNavigatorKosmos.kt19 import com.android.internal.logging.uiEventLoggerFake
39 uiEventLoggerFake, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/ui/navigation/
DVolumeNavigatorTest.kt21 import com.android.internal.logging.uiEventLoggerFake
63 uiEventLoggerFake, in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/component/bottombar/ui/viewmodel/
DBottomBarViewModelTest.kt25 import com.android.internal.logging.uiEventLoggerFake
107 assertThat(uiEventLoggerFake.eventId(0)) in onSettingsClicked_dismissesPanelAndNavigatesToSettings()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/
DQuickSettingsKosmos.kt25 import com.android.internal.logging.uiEventLoggerFake
49 QsEventLoggerFake(uiEventLoggerFake, instanceIdSequenceFake) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/
DChipbarCoordinatorTest.kt92 private lateinit var uiEventLoggerFake: UiEventLoggerFake variable in com.android.systemui.temporarydisplay.chipbar.ChipbarCoordinatorTest
107 uiEventLoggerFake = UiEventLoggerFake() in setUp()
108 uiEventLogger = TemporaryViewUiEventLogger(uiEventLoggerFake) in setUp()
658 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(2) in swipeToDismiss_swipeOccurs_viewDismissed_manuallyDismissedLogged()
659 assertThat(uiEventLoggerFake.eventId(1)) in swipeToDismiss_swipeOccurs_viewDismissed_manuallyDismissedLogged()
678 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in swipeToDismiss_viewUpdatedToFalse_swipeOccurs_viewNotDismissed()
679 assertThat(uiEventLoggerFake.eventId(0)) in swipeToDismiss_viewUpdatedToFalse_swipeOccurs_viewNotDismissed()
700 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in swipeToDismiss_viewUpdatedToFalse_swipeOccurs_viewNotDismissed()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/
DSceneContainerStartableTest.kt28 import com.android.internal.logging.uiEventLoggerFake in <lambda>()
105 private val uiEventLoggerFake = kosmos.uiEventLoggerFake in <lambda>() constant
1338 assertThat(uiEventLoggerFake[0].eventId) in <lambda>()
1340 assertThat(uiEventLoggerFake.numLogs()).isEqualTo(1) in <lambda>()