/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/domain/interactor/ |
D | MobileIconInteractorTest.kt | 94 var latest: Int? = null in gsm_usesGsmLevel() variable 95 val job = underTest.signalLevelIcon.onEach { latest = it.level }.launchIn(this) in gsm_usesGsmLevel() 97 assertThat(latest).isEqualTo(GSM_LEVEL) in gsm_usesGsmLevel() 110 var latest: Int? = null in gsm_alwaysShowCdmaTrue_stillUsesGsmLevel() variable 111 val job = underTest.signalLevelIcon.onEach { latest = it.level }.launchIn(this) in gsm_alwaysShowCdmaTrue_stillUsesGsmLevel() 113 assertThat(latest).isEqualTo(GSM_LEVEL) in gsm_alwaysShowCdmaTrue_stillUsesGsmLevel() 123 var latest: Int? = null in notGsm_level_default_unknown() variable 124 val job = underTest.signalLevelIcon.onEach { latest = it.level }.launchIn(this) in notGsm_level_default_unknown() 126 assertThat(latest).isEqualTo(CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN) in notGsm_level_default_unknown() 138 var latest: Int? = null in notGsm_alwaysShowCdmaTrue_usesCdmaLevel() variable [all …]
|
D | MobileIconsInteractorTest.kt | 117 val latest by collectLastValue(underTest.filteredSubscriptions) in filteredSubscriptions_default() constant 119 assertThat(latest).isEqualTo(listOf<SubscriptionModel>()) in filteredSubscriptions_default() 129 val latest by collectLastValue(underTest.filteredSubscriptions) in filteredSubscriptions_moreThanTwo_doesNotFilter() constant 131 assertThat(latest).isEqualTo(listOf(SUB_1, SUB_3_OPP, SUB_4_OPP)) in filteredSubscriptions_moreThanTwo_doesNotFilter() 139 val latest by collectLastValue(underTest.filteredSubscriptions) in filteredSubscriptions_nonOpportunistic_updatesWithMultipleSubs() constant 141 assertThat(latest).isEqualTo(listOf(SUB_1, SUB_2)) in filteredSubscriptions_nonOpportunistic_updatesWithMultipleSubs() 150 val latest by collectLastValue(underTest.filteredSubscriptions) in filteredSubscriptions_opportunistic_differentGroups_doesNotFilter() constant 152 assertThat(latest).isEqualTo(listOf(SUB_3_OPP, SUB_4_OPP)) in filteredSubscriptions_opportunistic_differentGroups_doesNotFilter() 167 val latest by collectLastValue(underTest.filteredSubscriptions) in filteredSubscriptions_opportunistic_nonGrouped_doesNotFilter() constant 169 assertThat(latest).isEqualTo(listOf(sub1, sub2)) in filteredSubscriptions_opportunistic_nonGrouped_doesNotFilter() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/ |
D | MobileConnectionRepositoryTest.kt | 179 var latest: Boolean? = null in emergencyOnly() variable 180 val job = underTest.isEmergencyOnly.onEach { latest = it }.launchIn(this) in emergencyOnly() 187 assertThat(latest).isEqualTo(true) in emergencyOnly() 195 var latest: Boolean? = null in emergencyOnly_toggles() variable 196 val job = underTest.isEmergencyOnly.onEach { latest = it }.launchIn(this) in emergencyOnly_toggles() 200 assertThat(latest).isTrue() in emergencyOnly_toggles() 204 assertThat(latest).isFalse() in emergencyOnly_toggles() 212 var latest: Int? = null in cdmaLevelUpdates() variable 213 val job = underTest.cdmaLevel.onEach { latest = it }.launchIn(this) in cdmaLevelUpdates() 219 assertThat(latest).isEqualTo(2) in cdmaLevelUpdates() [all …]
|
D | CarrierMergedConnectionRepositoryTest.kt | 119 var latest: Int? = null in carrierMergedWifi_isValidAndFieldsComeFromWifiNetwork() variable 120 val job = underTest.primaryLevel.onEach { latest = it }.launchIn(this) in carrierMergedWifi_isValidAndFieldsComeFromWifiNetwork() 133 assertThat(latest).isEqualTo(3) in carrierMergedWifi_isValidAndFieldsComeFromWifiNetwork() 141 var latest: DataActivityModel? = null in activity_comesFromWifiActivity() variable 142 val job = underTest.dataActivityDirection.onEach { latest = it }.launchIn(this) in activity_comesFromWifiActivity() 160 assertThat(latest!!.hasActivityIn).isTrue() in activity_comesFromWifiActivity() 161 assertThat(latest!!.hasActivityOut).isFalse() in activity_comesFromWifiActivity() 170 assertThat(latest!!.hasActivityIn).isFalse() in activity_comesFromWifiActivity() 171 assertThat(latest!!.hasActivityOut).isTrue() in activity_comesFromWifiActivity() 203 var latest: Int? = null in carrierMergedButNotEnabled_isDefault() variable [all …]
|
D | MobileConnectionsRepositoryTest.kt | 274 val latest by collectLastValue(underTest.subscriptions) in <lambda>() constant 280 assertThat(latest).isEqualTo(listOf(MODEL_1, MODEL_2)) in <lambda>() 286 val latest by collectLastValue(underTest.subscriptions) in <lambda>() constant 299 assertThat(latest).isEqualTo(listOf(MODEL_2)) in <lambda>() 305 val latest by collectLastValue(underTest.subscriptions) in <lambda>() constant 320 assertThat(latest).hasSize(1) in <lambda>() 321 assertThat(latest!![0].isExclusivelyNonTerrestrial).isTrue() in <lambda>() 327 val latest by collectLastValue(underTest.subscriptions) in <lambda>() constant 342 assertThat(latest).hasSize(1) in <lambda>() 343 assertThat(latest!![0].isExclusivelyNonTerrestrial).isFalse() in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/domain/interactor/ |
D | WifiInteractorImplTest.kt | 69 var latest: String? = "default" in ssid_unavailableNetwork_outputsNull() variable 70 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_unavailableNetwork_outputsNull() 73 assertThat(latest).isNull() in ssid_unavailableNetwork_outputsNull() 83 var latest: String? = "default" in ssid_inactiveNetwork_outputsNull() variable 84 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_inactiveNetwork_outputsNull() 87 assertThat(latest).isNull() in ssid_inactiveNetwork_outputsNull() 99 var latest: String? = "default" in ssid_carrierMergedNetwork_outputsNull() variable 100 val job = underTest.ssid.onEach { latest = it }.launchIn(this) in ssid_carrierMergedNetwork_outputsNull() 103 assertThat(latest).isNull() in ssid_carrierMergedNetwork_outputsNull() 120 var latest: String? = null in ssid_isPasspointAccessPoint_outputsPasspointName() variable [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/domain/interactor/ |
D | DeviceBasedSatelliteInteractorTest.kt | 77 val latest by collectLastValue(underTest.isSatelliteAllowed) in isSatelliteAllowed_falseWhenNotAllowed() constant 83 assertThat(latest).isFalse() in isSatelliteAllowed_falseWhenNotAllowed() 90 val latest by collectLastValue(underTest.isSatelliteAllowed) in isSatelliteAllowed_trueWhenAllowed() constant 96 assertThat(latest).isTrue() in isSatelliteAllowed_trueWhenAllowed() 115 val latest by collectLastValue(underTest.isSatelliteAllowed) in isSatelliteAllowed_offWhenFlagIsOff() constant 121 assertThat(latest).isFalse() in isSatelliteAllowed_offWhenFlagIsOff() 128 val latest by collectLastValue(underTest.connectionState) in connectionState_matchesRepositoryValue() constant 132 assertThat(latest).isEqualTo(SatelliteConnectionState.Off) in connectionState_matchesRepositoryValue() 136 assertThat(latest).isEqualTo(SatelliteConnectionState.On) in connectionState_matchesRepositoryValue() 140 assertThat(latest).isEqualTo(SatelliteConnectionState.Connected) in connectionState_matchesRepositoryValue() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/ |
D | InternetTileViewModelTest.kt | 130 val latest by collectLastValue(underTest.tileModel) in noDefault_noNetworksAvailable() constant 134 assertThat(latest?.secondaryLabel) in noDefault_noNetworksAvailable() 136 assertThat(latest?.iconId).isEqualTo(R.drawable.ic_qs_no_internet_unavailable) in noDefault_noNetworksAvailable() 148 val latest by collectLastValue(underTest.tileModel) in wifiDefaultAndActive() constant 164 assertThat(latest?.secondaryTitle).isEqualTo("test ssid") in wifiDefaultAndActive() 165 assertThat(latest?.secondaryLabel).isNull() in wifiDefaultAndActive() 166 assertThat(latest?.icon) in wifiDefaultAndActive() 168 assertThat(latest?.iconId).isNull() in wifiDefaultAndActive() 169 assertThat(latest?.contentDescription.loadContentDescription(context)) in wifiDefaultAndActive() 172 assertThat(latest?.stateDescription).isEqualTo(expectedSd) in wifiDefaultAndActive() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/haptics/slider/ |
D | SliderStateProducerTest.kt | 37 val latest by collectLastValue(eventFlow) in <lambda>() constant 41 assertEquals(SliderEvent(SliderEventType.STARTED_TRACKING_TOUCH, 0F), latest) in <lambda>() 46 val latest by collectLastValue(eventFlow) in <lambda>() constant 50 assertEquals(SliderEvent(SliderEventType.STOPPED_TRACKING_TOUCH, 0F), latest) in <lambda>() 55 val latest by collectLastValue(eventFlow) in <lambda>() constant 59 assertEquals(SliderEvent(SliderEventType.STARTED_TRACKING_PROGRAM, 0F), latest) in <lambda>() 64 val latest by collectLastValue(eventFlow) in <lambda>() constant 68 assertEquals(SliderEvent(SliderEventType.STOPPED_TRACKING_PROGRAM, 0F), latest) in <lambda>() 74 val latest by collectLastValue(eventFlow) in <lambda>() constant 78 assertEquals(SliderEvent(SliderEventType.PROGRESS_CHANGE_BY_USER, progress), latest) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/wifi/data/repository/prod/ |
D | WifiRepositoryImplTest.kt | 124 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_enabled_true() constant 129 assertThat(latest).isTrue() in isWifiEnabled_enabled_true() 135 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_enabling_false() constant 140 assertThat(latest).isFalse() in isWifiEnabled_enabling_false() 146 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_disabling_true() constant 151 assertThat(latest).isFalse() in isWifiEnabled_disabling_true() 157 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_disabled_false() constant 162 assertThat(latest).isFalse() in isWifiEnabled_disabled_false() 168 val latest by collectLastValue(underTest.isWifiEnabled) in isWifiEnabled_respondsToUpdates() constant 174 assertThat(latest).isTrue() in isWifiEnabled_respondsToUpdates() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/ |
D | MobileIconViewModelTest.kt | 162 var latest: Boolean? = null in isVisible_notDataCapable_alwaysFalse() variable 163 val job = underTest.isVisible.onEach { latest = it }.launchIn(this) in isVisible_notDataCapable_alwaysFalse() 165 assertThat(latest).isFalse() in isVisible_notDataCapable_alwaysFalse() 173 var latest: Boolean? = null in isVisible_notAirplane_notForceHidden_true() variable 174 val job = underTest.isVisible.onEach { latest = it }.launchIn(this) in isVisible_notAirplane_notForceHidden_true() 178 assertThat(latest).isTrue() in isVisible_notAirplane_notForceHidden_true() 186 var latest: Boolean? = null in isVisible_airplaneAndNotAllowed_false() variable 187 val job = underTest.isVisible.onEach { latest = it }.launchIn(this) in isVisible_airplaneAndNotAllowed_false() 193 assertThat(latest).isFalse() in isVisible_airplaneAndNotAllowed_false() 202 var latest: Boolean? = null in isVisible_airplaneButAllowed_true() variable [all …]
|
D | MobileIconsViewModelTest.kt | 102 var latest: List<Int>? = null in subscriptionIdsFlow_matchesInteractor() variable 103 val job = underTest.subscriptionIdsFlow.onEach { latest = it }.launchIn(this) in subscriptionIdsFlow_matchesInteractor() 114 assertThat(latest).isEqualTo(listOf(1)) in subscriptionIdsFlow_matchesInteractor() 137 assertThat(latest).isEqualTo(listOf(2, 5, 7)) in subscriptionIdsFlow_matchesInteractor() 140 assertThat(latest).isEmpty() in subscriptionIdsFlow_matchesInteractor() 196 var latest: Boolean? = null in firstMobileSubShowingNetworkTypeIcon_noSubs_false() variable 198 underTest.firstMobileSubShowingNetworkTypeIcon.onEach { latest = it }.launchIn(this) in firstMobileSubShowingNetworkTypeIcon_noSubs_false() 202 assertThat(latest).isFalse() in firstMobileSubShowingNetworkTypeIcon_noSubs_false() 210 var latest: Boolean? = null in firstMobileSubShowingNetworkTypeIcon_oneSub_notShowingRat_false() variable 212 underTest.firstMobileSubShowingNetworkTypeIcon.onEach { latest = it }.launchIn(this) in firstMobileSubShowingNetworkTypeIcon_oneSub_notShowingRat_false() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/ui/viewmodel/ |
D | OngoingActivityChipsViewModelTest.kt | 65 val latest by collectLastValue(underTest.chip) in chip_allHidden_hidden() constant 67 assertThat(latest).isEqualTo(OngoingActivityChipModel.Hidden) in chip_allHidden_hidden() 77 val latest by collectLastValue(underTest.chip) in chip_screenRecordShow_restHidden_screenRecordShown() constant 79 assertIsScreenRecordChip(latest) in chip_screenRecordShow_restHidden_screenRecordShown() 89 val latest by collectLastValue(underTest.chip) in chip_screenRecordShowAndCallShow_screenRecordShown() constant 91 assertIsScreenRecordChip(latest) in chip_screenRecordShowAndCallShow_screenRecordShown() 102 val latest by collectLastValue(underTest.chip) in chip_screenRecordShowAndShareToAppShow_screenRecordShown() constant 104 assertIsScreenRecordChip(latest) in chip_screenRecordShowAndShareToAppShow_screenRecordShown() 115 val latest by collectLastValue(underTest.chip) in chip_shareToAppShowAndCallShow_shareToAppShown() constant 117 assertIsShareToAppChip(latest) in chip_shareToAppShowAndCallShow_shareToAppShown() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/internet/domain/interactor/ |
D | InternetTileDataInteractorTest.kt | 160 val latest by in <lambda>() constant 167 assertThat(latest?.secondaryLabel) in <lambda>() 169 assertThat(latest?.iconId).isEqualTo(R.drawable.ic_qs_no_internet_unavailable) in <lambda>() 181 val latest by in <lambda>() constant 200 assertThat(latest?.secondaryTitle).isEqualTo("test ssid") in <lambda>() 201 assertThat(latest?.secondaryLabel).isNull() in <lambda>() 205 val actualIcon = latest?.icon in <lambda>() 207 assertThat(latest?.iconId).isNull() in <lambda>() 208 assertThat(latest?.contentDescription.loadContentDescription(context)) in <lambda>() 211 assertThat(latest?.stateDescription).isEqualTo(expectedSd) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/satellite/ui/viewmodel/ |
D | DeviceBasedSatelliteViewModelTest.kt | 88 val latest by collectLastValue(underTest.icon) in icon_nullWhenShouldNotShow_satelliteNotAllowed() constant 102 assertThat(latest).isNull() in icon_nullWhenShouldNotShow_satelliteNotAllowed() 108 val latest by collectLastValue(underTest.icon) in icon_nullWhenShouldNotShow_notAllOos() constant 122 assertThat(latest).isNull() in icon_nullWhenShouldNotShow_notAllOos() 129 val latest by collectLastValue(underTest.icon) in icon_nullWhenShouldNotShow_isEmergencyOnly() constant 146 assertThat(latest).isInstanceOf(Icon::class.java) in icon_nullWhenShouldNotShow_isEmergencyOnly() 152 assertThat(latest).isNull() in icon_nullWhenShouldNotShow_isEmergencyOnly() 158 val latest by collectLastValue(underTest.icon) in icon_nullWhenShouldNotShow_apmIsEnabled() constant 172 assertThat(latest).isNull() in icon_nullWhenShouldNotShow_apmIsEnabled() 179 val latest by collectLastValue(underTest.icon) in icon_satelliteIsOn() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/data/repository/ |
D | ConnectivityRepositoryImplTest.kt | 89 var latest: Set<ConnectivitySlot>? = null in forceHiddenSlots_initiallyGetsDefault() variable 90 val job = underTest.forceHiddenSlots.onEach { latest = it }.launchIn(this) in forceHiddenSlots_initiallyGetsDefault() 92 assertThat(latest).containsExactly(ConnectivitySlot.ETHERNET, ConnectivitySlot.WIFI) in forceHiddenSlots_initiallyGetsDefault() 102 var latest: Set<ConnectivitySlot>? = null in forceHiddenSlots_slotNamesAdded_flowHasSlots() variable 103 val job = underTest.forceHiddenSlots.onEach { latest = it }.launchIn(this) in forceHiddenSlots_slotNamesAdded_flowHasSlots() 107 assertThat(latest).containsExactly(ConnectivitySlot.MOBILE) in forceHiddenSlots_slotNamesAdded_flowHasSlots() 117 var latest: Set<ConnectivitySlot>? = null in forceHiddenSlots_wrongKey_doesNotUpdate() variable 118 val job = underTest.forceHiddenSlots.onEach { latest = it }.launchIn(this) in forceHiddenSlots_wrongKey_doesNotUpdate() 127 assertThat(latest).containsExactly(ConnectivitySlot.MOBILE) in forceHiddenSlots_wrongKey_doesNotUpdate() 143 var latest: Set<ConnectivitySlot>? = null in forceHiddenSlots_slotNamesAddedThenNull_flowHasDefault() variable [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/data/repository/ |
D | WallpaperRepositoryImplTest.kt | 73 val latest by collectLastValue(underTest.wallpaperInfo) in wallpaperInfo_nullInfo() constant 82 assertThat(latest).isNull() in wallpaperInfo_nullInfo() 88 val latest by collectLastValue(underTest.wallpaperInfo) in wallpaperInfo_hasInfoFromManager() constant 97 assertThat(latest).isEqualTo(UNSUPPORTED_WP) in wallpaperInfo_hasInfoFromManager() 118 val latest by collectLastValue(underTest.wallpaperInfo) in wallpaperInfo_updatesOnUserChanged() constant 134 assertThat(latest).isEqualTo(user3Wp) in wallpaperInfo_updatesOnUserChanged() 140 assertThat(latest).isEqualTo(user4Wp) in wallpaperInfo_updatesOnUserChanged() 146 val latest by collectLastValue(underTest.wallpaperInfo) in wallpaperInfo_doesNotUpdateOnUserChanging() constant 162 assertThat(latest).isEqualTo(user3Wp) in wallpaperInfo_doesNotUpdateOnUserChanging() 169 assertThat(latest).isEqualTo(user3Wp) in wallpaperInfo_doesNotUpdateOnUserChanging() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/ |
D | DemoMobileConnectionsRepositoryTest.kt | 117 var latest: List<SubscriptionModel>? = null in <lambda>() variable 118 val job = underTest.subscriptions.onEach { latest = it }.launchIn(this) in <lambda>() 120 assertThat(latest).isEmpty() in <lambda>() 124 assertThat(latest).hasSize(1) in <lambda>() 125 assertThat(latest!![0].subscriptionId).isEqualTo(1) in <lambda>() 133 var latest: List<SubscriptionModel>? = null in <lambda>() variable 134 val job = underTest.subscriptions.onEach { latest = it }.launchIn(this) in <lambda>() 136 assertThat(latest).isEmpty() in <lambda>() 140 assertThat(latest).hasSize(1) in <lambda>() 141 assertThat(latest!![0].subscriptionId).isEqualTo(5) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/data/repository/ |
D | StatusBarModeRepositoryImplTest.kt | 230 val latest by collectLastValue(underTest.isInFullscreenMode) in isInFullscreenMode_visibleTypesHasStatusBar_false() constant 236 assertThat(latest).isFalse() in isInFullscreenMode_visibleTypesHasStatusBar_false() 242 val latest by collectLastValue(underTest.isInFullscreenMode) in isInFullscreenMode_visibleTypesDoesNotHaveStatusBar_true() constant 248 assertThat(latest).isTrue() in isInFullscreenMode_visibleTypesDoesNotHaveStatusBar_true() 254 val latest by collectLastValue(underTest.isInFullscreenMode) in isInFullscreenMode_wrongDisplayId_notUpdated() constant 259 assertThat(latest).isTrue() in isInFullscreenMode_wrongDisplayId_notUpdated() 266 assertThat(latest).isTrue() in isInFullscreenMode_wrongDisplayId_notUpdated() 272 val latest by collectLastValue(underTest.statusBarAppearance) in statusBarAppearance_navBarColorManaged_matchesCallbackValue() constant 276 assertThat(latest!!.navbarColorManagedByIme).isTrue() in statusBarAppearance_navBarColorManaged_matchesCallbackValue() 280 assertThat(latest!!.navbarColorManagedByIme).isFalse() in statusBarAppearance_navBarColorManaged_matchesCallbackValue() [all …]
|
D | KeyguardStatusBarRepositoryImplTest.kt | 57 val latest by collectLastValue(underTest.isKeyguardUserSwitcherEnabled) in isKeyguardUserSwitcherEnabled_switcherNotEnabled_false() constant 61 assertThat(latest).isFalse() in isKeyguardUserSwitcherEnabled_switcherNotEnabled_false() 67 val latest by collectLastValue(underTest.isKeyguardUserSwitcherEnabled) in isKeyguardUserSwitcherEnabled_keyguardConfigNotEnabled_false() constant 72 assertThat(latest).isFalse() in isKeyguardUserSwitcherEnabled_keyguardConfigNotEnabled_false() 78 val latest by collectLastValue(underTest.isKeyguardUserSwitcherEnabled) in isKeyguardUserSwitcherEnabled_switchEnabledAndKeyguardConfigEnabled_true() constant 83 assertThat(latest).isTrue() in isKeyguardUserSwitcherEnabled_switchEnabledAndKeyguardConfigEnabled_true() 89 val latest by collectLastValue(underTest.isKeyguardUserSwitcherEnabled) in isKeyguardUserSwitcherEnabled_refetchedOnSmallestWidthChanged() constant 92 assertThat(latest).isTrue() in isKeyguardUserSwitcherEnabled_refetchedOnSmallestWidthChanged() 97 assertThat(latest).isFalse() in isKeyguardUserSwitcherEnabled_refetchedOnSmallestWidthChanged() 103 val latest by collectLastValue(underTest.isKeyguardUserSwitcherEnabled) in isKeyguardUserSwitcherEnabled_refetchedOnDensityChanged() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/call/ui/viewmodel/ |
D | CallChipViewModelTest.kt | 63 val latest by collectLastValue(underTest.chip) in chip_noCall_isHidden() constant 67 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_noCall_isHidden() 73 val latest by collectLastValue(underTest.chip) in chip_inCall_isShown() constant 77 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_inCall_isShown() 83 val latest by collectLastValue(underTest.chip) in chip_inCall_startTimeConvertedToElapsedRealtime() constant 94 assertThat((latest as OngoingActivityChipModel.Shown).startTimeMs).isEqualTo(398_000) in chip_inCall_startTimeConvertedToElapsedRealtime() 100 val latest by collectLastValue(underTest.chip) in chip_inCall_iconIsPhone() constant 104 assertThat(((latest as OngoingActivityChipModel.Shown).icon as Icon.Resource).res) in chip_inCall_iconIsPhone() 111 val latest by collectLastValue(underTest.chip) in chip_resetsCorrectly() constant 117 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_resetsCorrectly() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/viewmodel/ |
D | CastToOtherDeviceChipViewModelTest.kt | 85 val latest by collectLastValue(underTest.chip) in chip_notProjectingState_isHidden() constant 89 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_notProjectingState_isHidden() 95 val latest by collectLastValue(underTest.chip) in chip_singleTaskState_otherDevicesPackage_isShown() constant 103 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_singleTaskState_otherDevicesPackage_isShown() 104 val icon = (latest as OngoingActivityChipModel.Shown).icon in chip_singleTaskState_otherDevicesPackage_isShown() 111 val latest by collectLastValue(underTest.chip) in chip_entireScreenState_otherDevicesPackage_isShown() constant 116 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_entireScreenState_otherDevicesPackage_isShown() 117 val icon = (latest as OngoingActivityChipModel.Shown).icon in chip_entireScreenState_otherDevicesPackage_isShown() 124 val latest by collectLastValue(underTest.chip) in chip_singleTaskState_normalPackage_isHidden() constant 129 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_singleTaskState_normalPackage_isHidden() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/viewmodel/ |
D | ShareToAppChipViewModelTest.kt | 85 val latest by collectLastValue(underTest.chip) in chip_notProjectingState_isHidden() constant 89 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_notProjectingState_isHidden() 95 val latest by collectLastValue(underTest.chip) in chip_singleTaskState_otherDevicesPackage_isHidden() constant 103 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_singleTaskState_otherDevicesPackage_isHidden() 109 val latest by collectLastValue(underTest.chip) in chip_entireScreenState_otherDevicesPackage_isHidden() constant 114 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_entireScreenState_otherDevicesPackage_isHidden() 120 val latest by collectLastValue(underTest.chip) in chip_singleTaskState_normalPackage_isShown() constant 128 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_singleTaskState_normalPackage_isShown() 129 val icon = (latest as OngoingActivityChipModel.Shown).icon in chip_singleTaskState_normalPackage_isShown() 136 val latest by collectLastValue(underTest.chip) in chip_entireScreenState_normalPackage_isShown() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/screenrecord/ui/viewmodel/ |
D | ScreenRecordChipViewModelTest.kt | 82 val latest by collectLastValue(underTest.chip) in chip_doingNothingState_isHidden() constant 86 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_doingNothingState_isHidden() 92 val latest by collectLastValue(underTest.chip) in chip_startingState_isHidden() constant 96 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Hidden::class.java) in chip_startingState_isHidden() 102 val latest by collectLastValue(underTest.chip) in chip_recordingState_isShownWithIcon() constant 106 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_recordingState_isShownWithIcon() 107 val icon = (latest as OngoingActivityChipModel.Shown).icon in chip_recordingState_isShownWithIcon() 114 val latest by collectLastValue(underTest.chip) in chip_timeResetsOnEachNewRecording() constant 119 assertThat(latest).isInstanceOf(OngoingActivityChipModel.Shown::class.java) in chip_timeResetsOnEachNewRecording() 120 assertThat((latest as OngoingActivityChipModel.Shown).startTimeMs).isEqualTo(1234) in chip_timeResetsOnEachNewRecording() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/pipeline/wifi/ui/viewmodel/ |
D | WifiViewModelTest.kt | 128 val latest by collectLastValue(underTest.wifiIcon) in wifiIcon_validHotspot_hotspotIconNotShown() constant 142 assertThat(latest).isInstanceOf(WifiIcon.Visible::class.java) in wifiIcon_validHotspot_hotspotIconNotShown() 143 assertThat((latest as WifiIcon.Visible).res).isEqualTo(WifiIcons.WIFI_FULL_ICONS[1]) in wifiIcon_validHotspot_hotspotIconNotShown() 145 (latest as WifiIcon.Visible).contentDescription.loadContentDescription(context) in wifiIcon_validHotspot_hotspotIconNotShown() 270 val latest by collectLastValue(underTest.isActivityInViewVisible) in activityIn_hasActivityInTrue_outputsTrue() constant 275 assertThat(latest).isTrue() in activityIn_hasActivityInTrue_outputsTrue() 285 val latest by collectLastValue(underTest.isActivityInViewVisible) in activityIn_hasActivityInFalse_outputsFalse() constant 290 assertThat(latest).isFalse() in activityIn_hasActivityInFalse_outputsFalse() 300 val latest by collectLastValue(underTest.isActivityOutViewVisible) in activityOut_hasActivityOutTrue_outputsTrue() constant 305 assertThat(latest).isTrue() in activityOut_hasActivityOutTrue_outputsTrue() [all …]
|