/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopModeUiEventLoggerTest.kt | 40 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/ |
D | TemporaryViewUiEventLoggerTest.kt | 29 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/ |
D | OngoingCallLoggerTest.kt | 27 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()
|
D | OngoingCallControllerTest.kt | 90 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/ |
D | MediaTttSenderUiEventLoggerTest.kt | 13 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/ |
D | MediaTttReceiverUiEventLoggerTest.kt | 13 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()
|
D | MediaTttChipControllerReceiverTest.kt | 93 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/ |
D | BouncerInteractorTest.kt | 21 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/ |
D | UiEventLoggerKosmos.kt | 22 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/ |
D | AudioModeLoggerStartableTest.kt | 23 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/ |
D | VolumeNavigatorKosmos.kt | 19 import com.android.internal.logging.uiEventLoggerFake 39 uiEventLoggerFake, in <lambda>()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/ui/navigation/ |
D | VolumeNavigatorTest.kt | 21 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/ |
D | BottomBarViewModelTest.kt | 25 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/ |
D | QuickSettingsKosmos.kt | 25 import com.android.internal.logging.uiEventLoggerFake 49 QsEventLoggerFake(uiEventLoggerFake, instanceIdSequenceFake) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/ |
D | ChipbarCoordinatorTest.kt | 92 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/ |
D | SceneContainerStartableTest.kt | 28 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>()
|