Searched refs:OngoingCallModel (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/data/repository/ |
D | OngoingCallRepository.kt | 20 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 36 private val _ongoingCallState = MutableStateFlow<OngoingCallModel>(OngoingCallModel.NoCall) 38 val ongoingCallState: StateFlow<OngoingCallModel> = _ongoingCallState.asStateFlow() 44 fun setOngoingCallState(state: OngoingCallModel) { in setOngoingCallState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/call/ui/viewmodel/ |
D | CallChipViewModelTest.kt | 32 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 65 repo.setOngoingCallState(OngoingCallModel.NoCall) in chip_noCall_isHidden() 75 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 345, intent = null)) in chip_inCall_isShown() 88 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 1000, intent = null)) in chip_inCall_startTimeConvertedToElapsedRealtime() 102 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 1000, intent = null)) in chip_inCall_iconIsPhone() 116 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 1000, intent = null)) in chip_resetsCorrectly() 121 repo.setOngoingCallState(OngoingCallModel.NoCall) in chip_resetsCorrectly() 129 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 102_000, intent = null)) in chip_resetsCorrectly() 139 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 1000, intent = null)) in chip_inCall_nullIntent_clickListenerDoesNothing() 153 repo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 1000, intent = intent)) in chip_inCall_validIntent_clickListenerLaunchesIntent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ongoingcall/data/repository/ |
D | OngoingCallRepositoryTest.kt | 21 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 31 val inCallModel = OngoingCallModel.InCall(startTimeMs = 654, intent = null) in hasOngoingCall_matchesSet() 36 underTest.setOngoingCallState(OngoingCallModel.NoCall) in hasOngoingCall_matchesSet() 38 assertThat(underTest.ongoingCallState.value).isEqualTo(OngoingCallModel.NoCall) in hasOngoingCall_matchesSet()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/shared/model/ |
D | OngoingCallModel.kt | 22 sealed interface OngoingCallModel { interface 24 data object NoCall : OngoingCallModel 35 data class InCall(val startTimeMs: Long, val intent: PendingIntent?) : OngoingCallModel
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/ui/viewmodel/ |
D | OngoingActivityChipsViewModelTest.kt | 36 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 63 callRepo.setOngoingCallState(OngoingCallModel.NoCall) in chip_allHidden_hidden() 75 callRepo.setOngoingCallState(OngoingCallModel.NoCall) in chip_screenRecordShow_restHidden_screenRecordShown() 87 callRepo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 34, intent = null)) in chip_screenRecordShowAndCallShow_screenRecordShown() 100 callRepo.setOngoingCallState(OngoingCallModel.NoCall) in chip_screenRecordShowAndShareToAppShow_screenRecordShown() 113 callRepo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 34, intent = null)) in chip_shareToAppShowAndCallShow_shareToAppShown() 127 callRepo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 34, intent = null)) in chip_screenRecordAndShareToAppAndCastToOtherHideAndCallShown_callShown() 138 callRepo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 34, intent = null)) in chip_higherPriorityChipAdded_lowerPriorityChipReplaced() 171 callRepo.setOngoingCallState(OngoingCallModel.InCall(startTimeMs = 34, intent = null)) in chip_highestPriorityChipRemoved_showsNextPriorityChip()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/call/domain/interactor/ |
D | CallChipInteractorTest.kt | 25 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 42 val inCall = OngoingCallModel.InCall(startTimeMs = 1000, intent = null) in ongoingCallState_matchesRepo() 46 val noCall = OngoingCallModel.NoCall in ongoingCallState_matchesRepo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/chips/call/ui/viewmodel/ |
D | CallChipViewModel.kt | 30 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel in <lambda>() 53 is OngoingCallModel.NoCall -> OngoingActivityChipModel.Hidden in <lambda>() 54 is OngoingCallModel.InCall -> { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ongoingcall/ |
D | OngoingCallControllerTest.kt | 47 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 158 assertThat(repoState).isInstanceOf(OngoingCallModel.InCall::class.java) in onEntryUpdated_isOngoingCallNotif_listenerAndRepoNotified() 159 assertThat((repoState as OngoingCallModel.InCall).startTimeMs).isEqualTo(567) in onEntryUpdated_isOngoingCallNotif_listenerAndRepoNotified() 175 .isInstanceOf(OngoingCallModel.NoCall::class.java) in onEntryUpdated_notOngoingCallNotif_listenerAndRepoNotNotified() 190 .isInstanceOf(OngoingCallModel.InCall::class.java) in onEntryUpdated_ongoingCallNotifThenScreeningCallNotif_repoUpdated() 195 .isInstanceOf(OngoingCallModel.NoCall::class.java) in onEntryUpdated_ongoingCallNotifThenScreeningCallNotif_repoUpdated() 333 .isInstanceOf(OngoingCallModel.InCall::class.java) in onEntryRemoved_callNotifAddedThenRemoved_repoUpdated() 338 .isInstanceOf(OngoingCallModel.NoCall::class.java) in onEntryRemoved_callNotifAddedThenRemoved_repoUpdated() 382 .isInstanceOf(OngoingCallModel.NoCall::class.java) in onEntryRemoved_removedNotifHasSameKeyAsAddedNotif_repoUpdated() 402 .isInstanceOf(OngoingCallModel.InCall::class.java) in onEntryRemoved_notifKeyDoesNotMatchOngoingCallNotif_repoNotUpdated()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/ |
D | OngoingCallController.kt | 48 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel in <lambda>() 186 private fun getOngoingCallModel(): OngoingCallModel { in <lambda>() 191 ?: return OngoingCallModel.NoCall in <lambda>() 192 return OngoingCallModel.InCall( in <lambda>() 197 return OngoingCallModel.NoCall in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/data/repository/ |
D | StatusBarModeRepositoryImplTest.kt | 39 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel 395 OngoingCallModel.InCall(startTimeMs = 34, intent = null) in statusBarMode_ongoingCallAndFullscreen_semiTransparent() 410 OngoingCallModel.InCall(startTimeMs = 789, intent = null) in statusBarMode_ongoingCallButNotFullscreen_matchesAppearance() 425 ongoingCallRepository.setOngoingCallState(OngoingCallModel.NoCall) in statusBarMode_fullscreenButNotOngoingCall_matchesAppearance()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/data/repository/ |
D | StatusBarModePerDisplayRepository.kt | 41 import com.android.systemui.statusbar.phone.ongoingcall.shared.model.OngoingCallModel in <lambda>() 238 hasOngoingCall = ongoingCallState is OngoingCallModel.InCall, in isTransientShown()
|