Home
last modified time | relevance | path

Searched refs:Projecting (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/mediaprojection/domain/interactor/
DMediaProjectionChipInteractorTest.kt73 MediaProjectionState.Projecting.SingleTask( in projection_singleTaskState_otherDevicesPackage_isCastToOtherDeviceType()
78 assertThat(latest).isInstanceOf(ProjectionChipModel.Projecting::class.java) in projection_singleTaskState_otherDevicesPackage_isCastToOtherDeviceType()
79 assertThat((latest as ProjectionChipModel.Projecting).type) in projection_singleTaskState_otherDevicesPackage_isCastToOtherDeviceType()
89 MediaProjectionState.Projecting.EntireScreen( in projection_entireScreenState_otherDevicesPackage_isCastToOtherDeviceChipType()
93 assertThat(latest).isInstanceOf(ProjectionChipModel.Projecting::class.java) in projection_entireScreenState_otherDevicesPackage_isCastToOtherDeviceChipType()
94 assertThat((latest as ProjectionChipModel.Projecting).type) in projection_entireScreenState_otherDevicesPackage_isCastToOtherDeviceChipType()
104 MediaProjectionState.Projecting.SingleTask(NORMAL_PACKAGE, createTask(taskId = 1)) in projection_singleTaskState_normalPackage_isShareToAppChipType()
106 assertThat(latest).isInstanceOf(ProjectionChipModel.Projecting::class.java) in projection_singleTaskState_normalPackage_isShareToAppChipType()
107 assertThat((latest as ProjectionChipModel.Projecting).type) in projection_singleTaskState_normalPackage_isShareToAppChipType()
117 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in projection_entireScreenState_normalPackage_isShareToAppChipType()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/data/model/
DMediaProjectionState.kt32 sealed class Projecting(open val hostPackage: String) : MediaProjectionState { class
34 data class EntireScreen(override val hostPackage: String) : Projecting(hostPackage)
38 Projecting(hostPackage)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/data/repository/
DMediaProjectionManagerRepositoryTest.kt62 assertThat(state).isInstanceOf(MediaProjectionState.Projecting.SingleTask::class.java) in switchProjectedTask_stateIsUpdatedWithNewTask()
63 assertThat((state as MediaProjectionState.Projecting.SingleTask).task).isEqualTo(task) in switchProjectedTask_stateIsUpdatedWithNewTask()
105 assertThat(state).isInstanceOf(MediaProjectionState.Projecting.EntireScreen::class.java) in mediaProjectionState_onSessionSet_contentToRecordDisplay_emitsEntireScreen()
118 assertThat(state).isInstanceOf(MediaProjectionState.Projecting.EntireScreen::class.java) in mediaProjectionState_sessionSet_taskWithToken_noMatchingRunningTask_emitsEntireScreen()
137 assertThat((state as MediaProjectionState.Projecting.EntireScreen).hostPackage) in mediaProjectionState_entireScreen_hasHostPackage()
153 assertThat(state).isInstanceOf(MediaProjectionState.Projecting.SingleTask::class.java) in mediaProjectionState_sessionSet_taskWithToken_matchingRunningTask_emitsSingleTask()
154 assertThat((state as MediaProjectionState.Projecting.SingleTask).task).isEqualTo(task) in mediaProjectionState_sessionSet_taskWithToken_matchingRunningTask_emitsSingleTask()
177 assertThat((state as MediaProjectionState.Projecting.SingleTask).hostPackage) in mediaProjectionState_singleTask_hasHostPackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/viewmodel/
DShareToAppChipViewModelTest.kt98 MediaProjectionState.Projecting.SingleTask( in chip_singleTaskState_otherDevicesPackage_isHidden()
112 MediaProjectionState.Projecting.EntireScreen(CAST_TO_OTHER_DEVICES_PACKAGE) in chip_entireScreenState_otherDevicesPackage_isHidden()
123 MediaProjectionState.Projecting.SingleTask( in chip_singleTaskState_normalPackage_isShown()
139 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_entireScreenState_normalPackage_isShown()
153 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_timeResetsOnEachNewShare()
163 MediaProjectionState.Projecting.SingleTask( in chip_timeResetsOnEachNewShare()
177 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_entireScreen_clickListenerShowsShareDialog()
196 MediaProjectionState.Projecting.SingleTask( in chip_singleTask_clickListenerShowsShareDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/viewmodel/
DCastToOtherDeviceChipViewModelTest.kt98 MediaProjectionState.Projecting.SingleTask( in chip_singleTaskState_otherDevicesPackage_isShown()
114 MediaProjectionState.Projecting.EntireScreen(CAST_TO_OTHER_DEVICES_PACKAGE) in chip_entireScreenState_otherDevicesPackage_isShown()
127 MediaProjectionState.Projecting.SingleTask(NORMAL_PACKAGE, createTask(taskId = 1)) in chip_singleTaskState_normalPackage_isHidden()
138 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_entireScreenState_normalPackage_isHidden()
150 MediaProjectionState.Projecting.EntireScreen(CAST_TO_OTHER_DEVICES_PACKAGE) in chip_timeResetsOnEachNewShare()
160 MediaProjectionState.Projecting.SingleTask( in chip_timeResetsOnEachNewShare()
174 MediaProjectionState.Projecting.EntireScreen(CAST_TO_OTHER_DEVICES_PACKAGE) in chip_entireScreen_clickListenerShowsCastDialog()
194 MediaProjectionState.Projecting.SingleTask( in chip_singleTask_clickListenerShowsCastDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/mediaprojection/domain/model/
DProjectionChipModel.kt30 data class Projecting( class in com.android.systemui.statusbar.chips.mediaprojection.domain.model.ProjectionChipModel
32 val projectionState: MediaProjectionState.Projecting,
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/view/
DEndShareToAppDialogDelegateTest.kt93 MediaProjectionState.Projecting.SingleTask( in message_singleTask()
142 private fun createAndSetDelegate(state: MediaProjectionState.Projecting) { in createAndSetDelegate()
147 ProjectionChipModel.Projecting(ProjectionChipModel.Type.SHARE_TO_APP, state), in createAndSetDelegate()
153 private val ENTIRE_SCREEN = MediaProjectionState.Projecting.EntireScreen(HOST_PACKAGE)
155 MediaProjectionState.Projecting.SingleTask(HOST_PACKAGE, createTask(taskId = 1))
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/view/
DEndCastToOtherDeviceDialogDelegateTest.kt94 MediaProjectionState.Projecting.SingleTask( in message_singleTask()
143 private fun createAndSetDelegate(state: MediaProjectionState.Projecting) { in createAndSetDelegate()
148 ProjectionChipModel.Projecting( in createAndSetDelegate()
157 private val ENTIRE_SCREEN = MediaProjectionState.Projecting.EntireScreen(HOST_PACKAGE)
159 MediaProjectionState.Projecting.SingleTask(HOST_PACKAGE, createTask(taskId = 1))
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/sharetoapp/ui/viewmodel/
DShareToAppChipViewModel.kt59 is ProjectionChipModel.Projecting -> { in <lambda>()
76 state: ProjectionChipModel.Projecting, in <lambda>()
90 private fun createShareToAppDialogDelegate(state: ProjectionChipModel.Projecting) = in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/viewmodel/
DCastToOtherDeviceChipViewModel.kt63 is ProjectionChipModel.Projecting -> { in <lambda>()
80 state: ProjectionChipModel.Projecting, in <lambda>()
97 private fun createCastToOtherDeviceDialogDelegate(state: ProjectionChipModel.Projecting) = in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/mediaprojection/ui/view/
DEndMediaProjectionDialogHelperTest.kt62 MediaProjectionState.Projecting.EntireScreen("host.package"), in getDialogMessage_entireScreen_isGenericMessage()
78 MediaProjectionState.Projecting.SingleTask( in getDialogMessage_singleTask_cannotFindPackage_isGenericMessage()
103 MediaProjectionState.Projecting.SingleTask( in getDialogMessage_singleTask_findsPackage_isSpecificMessageWithAppLabel()
180 MediaProjectionState.Projecting.SingleTask( in getDialogMessage_appLabelHasSpecialCharacters_isEscaped()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/data/repository/
DMediaProjectionManagerRepository.kt114 return MediaProjectionState.Projecting.EntireScreen(hostPackage) in stateForSession()
119 ) ?: return MediaProjectionState.Projecting.EntireScreen(hostPackage) in stateForSession()
120 return MediaProjectionState.Projecting.SingleTask(hostPackage, matchingTask) in stateForSession()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/mediaprojection/domain/interactor/
DMediaProjectionChipInteractor.kt54 is MediaProjectionState.Projecting -> { in <lambda>()
61 ProjectionChipModel.Projecting(type, state) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/ui/viewmodel/
DOngoingActivityChipsViewModelTest.kt99 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_screenRecordShowAndShareToAppShow_screenRecordShown()
112 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_shareToAppShowAndCallShow_shareToAppShown()
148 MediaProjectionState.Projecting.SingleTask( in chip_higherPriorityChipAdded_lowerPriorityChipReplaced()
169 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in chip_highestPriorityChipRemoved_showsNextPriorityChip()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/mediaprojection/ui/view/
DEndMediaProjectionDialogHelper.kt47 state: MediaProjectionState.Projecting, in getDialogMessage()
52 if (state is MediaProjectionState.Projecting.SingleTask) { in getDialogMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/domain/interactor/
DTaskSwitchInteractor.kt60 is MediaProjectionState.Projecting.SingleTask -> { in <lambda>()
70 is MediaProjectionState.Projecting.EntireScreen, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/screenrecord/domain/interactor/
DScreenRecordChipInteractorTest.kt93 MediaProjectionState.Projecting.EntireScreen("host.package") in screenRecordState_projectionIsEntireScreen_recordedTaskNull()
106 MediaProjectionState.Projecting.SingleTask("host.package", task) in screenRecordState_projectionIsSingleTask_recordedTaskMatches()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/sharetoapp/ui/view/
DEndShareToAppDialogDelegate.kt30 private val state: ProjectionChipModel.Projecting, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/view/
DEndCastToOtherDeviceDialogDelegate.kt30 private val state: ProjectionChipModel.Projecting, in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/screenrecord/domain/interactor/
DScreenRecordChipInteractor.kt59 mediaProjectionState is MediaProjectionState.Projecting.SingleTask in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/screenrecord/ui/viewmodel/
DScreenRecordChipViewModelTest.kt158 MediaProjectionState.Projecting.EntireScreen("host.package") in chip_projectingEntireScreen_clickListenerShowsDialog()
179 MediaProjectionState.Projecting.SingleTask( in chip_projectingSingleTask_clickListenerShowsDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/
DCollapsedStatusBarViewModelImplTest.kt421 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in ongoingActivityChip_matchesViewModel()