/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/mediaprojection/domain/interactor/ |
D | MediaProjectionChipInteractorTest.kt | 73 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/ |
D | MediaProjectionState.kt | 32 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/ |
D | MediaProjectionManagerRepositoryTest.kt | 62 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/ |
D | ShareToAppChipViewModelTest.kt | 98 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/ |
D | CastToOtherDeviceChipViewModelTest.kt | 98 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/ |
D | ProjectionChipModel.kt | 30 data class Projecting( dataClass 32 val projectionState: MediaProjectionState.Projecting,
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/view/ |
D | EndShareToAppDialogDelegateTest.kt | 93 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/ |
D | EndCastToOtherDeviceDialogDelegateTest.kt | 94 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/ |
D | ShareToAppChipViewModel.kt | 59 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/ |
D | CastToOtherDeviceChipViewModel.kt | 63 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/ |
D | EndMediaProjectionDialogHelperTest.kt | 62 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/ |
D | MediaProjectionManagerRepository.kt | 114 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/ |
D | MediaProjectionChipInteractor.kt | 54 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/ |
D | OngoingActivityChipsViewModelTest.kt | 99 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/ |
D | EndMediaProjectionDialogHelper.kt | 47 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/ |
D | TaskSwitchInteractor.kt | 60 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/ |
D | ScreenRecordChipInteractorTest.kt | 93 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/ |
D | EndShareToAppDialogDelegate.kt | 30 private val state: ProjectionChipModel.Projecting, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/view/ |
D | EndCastToOtherDeviceDialogDelegate.kt | 30 private val state: ProjectionChipModel.Projecting, in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/screenrecord/domain/interactor/ |
D | ScreenRecordChipInteractor.kt | 59 mediaProjectionState is MediaProjectionState.Projecting.SingleTask in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/screenrecord/ui/viewmodel/ |
D | ScreenRecordChipViewModelTest.kt | 158 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/ |
D | CollapsedStatusBarViewModelImplTest.kt | 421 MediaProjectionState.Projecting.EntireScreen(NORMAL_PACKAGE) in ongoingActivityChip_matchesViewModel()
|