/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSIconViewImplTest_311121830.kt | 57 icon = QSTileImpl.ResourceIcon.get(R.drawable.ic_qs_no_internet_available) in alwaysLastIcon() 62 icon = QSTileImpl.ResourceIcon.get(WifiIcons.WIFI_NO_INTERNET_ICONS[4]) in alwaysLastIcon() 67 icon = QSTileImpl.ResourceIcon.get(WifiIcons.WIFI_FULL_ICONS[4]) in alwaysLastIcon() 97 icon = QSTileImpl.ResourceIcon.get(WifiIcons.WIFI_FULL_ICONS[4]) in alwaysLastIcon_twoStateChanges() 102 icon = QSTileImpl.ResourceIcon.get(WifiIcons.WIFI_NO_INTERNET_ICONS[4]) in alwaysLastIcon_twoStateChanges() 107 icon = QSTileImpl.ResourceIcon.get(WifiIcons.WIFI_FULL_ICONS[3]) in alwaysLastIcon_twoStateChanges() 112 icon = QSTileImpl.ResourceIcon.get(WifiIcons.WIFI_NO_NETWORK) in alwaysLastIcon_twoStateChanges()
|
D | ResourceIconTest.kt | 35 QSTileImpl.ResourceIcon.get(it) in testMultipleThreadedPut() 38 assertEquals(it, (QSTileImpl.ResourceIcon.get(it) as QSTileImpl.ResourceIcon).mResId) in testMultipleThreadedPut()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | InternetTile.java | 520 state.icon = ResourceIcon.get(R.drawable.ic_qs_no_internet_unavailable); in handleUpdateWifiState() 523 state.icon = ResourceIcon.get(R.drawable.ic_qs_no_internet_unavailable); in handleUpdateWifiState() 532 state.icon = ResourceIcon.get(cb.mWifiSignalIconId); in handleUpdateWifiState() 536 state.icon = ResourceIcon.get(R.drawable.ic_qs_no_internet_unavailable); in handleUpdateWifiState() 539 state.icon = ResourceIcon.get(R.drawable.ic_qs_no_internet_available); in handleUpdateWifiState() 543 state.icon = ResourceIcon.get( in handleUpdateWifiState() 547 state.icon = ResourceIcon.get(WifiIcons.QS_WIFI_DISABLED); in handleUpdateWifiState() 549 state.icon = ResourceIcon.get(cb.mWifiSignalIconId); in handleUpdateWifiState() 551 state.icon = ResourceIcon.get(WifiIcons.QS_WIFI_NO_NETWORK); in handleUpdateWifiState() 553 state.icon = ResourceIcon.get(WifiIcons.QS_WIFI_NO_NETWORK); in handleUpdateWifiState() [all …]
|
D | RotationLockTile.java | 66 private final Icon mIcon = ResourceIcon.get(com.android.internal.R.drawable.ic_qs_auto_rotate); 156 state.icon = ResourceIcon.get(R.drawable.qs_auto_rotate_icon_off); in handleUpdateState() 162 state.icon = ResourceIcon.get(R.drawable.qs_auto_rotate_icon_on); in handleUpdateState()
|
D | BluetoothTile.java | 205 state.icon = ResourceIcon.get(R.drawable.qs_bluetooth_icon_on); in handleUpdateState() 213 state.icon = ResourceIcon.get( in handleUpdateState() 218 ResourceIcon.get(R.drawable.qs_bluetooth_icon_off); in handleUpdateState() 223 state.icon = ResourceIcon.get(R.drawable.qs_bluetooth_icon_off); in handleUpdateState()
|
D | FlashlightTile.java | 131 state.icon = ResourceIcon.get(R.drawable.qs_flashlight_icon_off); in handleUpdateState() 146 state.icon = ResourceIcon.get(state.value in handleUpdateState()
|
D | RecordIssueTile.kt | 186 icon = ResourceIcon.get(R.drawable.qs_record_issue_icon_on) in getLongClickIntent() 192 icon = ResourceIcon.get(R.drawable.qs_record_issue_icon_off) in getLongClickIntent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/ |
D | InternetTileViewModelTest.kt | 29 import com.android.systemui.qs.tileimpl.QSTileImpl.ResourceIcon 167 .isEqualTo(ResourceIcon.get(WifiIcons.WIFI_NO_INTERNET_ICONS[4])) in wifiDefaultAndActive() 193 .isEqualTo(ResourceIcon.get(WifiIcons.WIFI_NO_INTERNET_ICONS[4])) in wifiDefaultAndActive_hotspotNone() 206 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_tablet)) in wifiDefaultAndActive_hotspotTablet() 219 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_laptop)) in wifiDefaultAndActive_hotspotLaptop() 232 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_watch)) in wifiDefaultAndActive_hotspotWatch() 245 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_auto)) in wifiDefaultAndActive_hotspotAuto() 258 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_phone)) in wifiDefaultAndActive_hotspotPhone() 271 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_phone)) in wifiDefaultAndActive_hotspotUnknown() 284 .isEqualTo(ResourceIcon.get(com.android.settingslib.R.drawable.ic_hotspot_phone)) in wifiDefaultAndActive_hotspotInvalid()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | FlashlightTileTest.kt | 91 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_flashlight_icon_on)) in testIcon_whenFlashlightEnabled_isOnState() 103 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_flashlight_icon_off)) in testIcon_whenFlashlightDisabled_isOffState() 114 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_flashlight_icon_off)) in testIcon_whenFlashlightUnavailable_isOffState()
|
D | HotspotTileTest.java | 147 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_hotspot_icon_off)); in testIcon_whenDisabled_isOffState() 159 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_hotspot_icon_search)); in testIcon_whenTransient_isSearchState() 171 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_hotspot_icon_on)); in testIcon_whenEnabled_isOnState()
|
D | DataSaverTileTest.kt | 104 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_data_saver_icon_on)) in testIcon_whenDataSaverEnabled_isOnState() 114 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_data_saver_icon_off)) in testIcon_whenDataSaverDisabled_isOffState()
|
D | BluetoothTileTest.kt | 113 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_bluetooth_icon_off)) in testIcon_whenDisabled_isOffState() 125 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_bluetooth_icon_off)) in testIcon_whenDisconnected_isOffState() 137 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_bluetooth_icon_on)) in testIcon_whenConnected_isOnState() 149 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_bluetooth_icon_search)) in testIcon_whenConnecting_isSearchState()
|
D | NightDisplayTileTest.kt | 118 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_nightlight_icon_off)) in testIcon_whenDisabled_showsOffState() 129 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_nightlight_icon_on)) in testIcon_whenEnabled_showsOnState()
|
D | AirplaneModeTileTest.kt | 121 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_airplane_icon_off)) in testIcon_whenDisabled_showsOffState() 131 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_airplane_icon_on)) in testIcon_whenEnabled_showsOnState()
|
D | LocationTileTest.kt | 116 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_location_icon_off)) in testIcon_whenDisabled_isOffState() 127 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_location_icon_on)) in testIcon_whenEnabled_isOnState()
|
D | ColorInversionTileTest.java | 136 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_invert_colors_icon_off)); in testIcon_whenColorInversionDisabled_isOffState() 146 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_invert_colors_icon_on)); in testIcon_whenColorInversionEnabled_isOnState()
|
D | CameraToggleTileTest.kt | 113 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_camera_access_icon_on)) in testIcon_whenCameraAccessEnabled_isOnState() 123 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_camera_access_icon_off)) in testIcon_whenCameraAccessDisabled_isOffState()
|
D | UiModeNightTileTest.kt | 116 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_light_dark_theme_icon_on)) in testIcon_whenNightModeOn_isOnState() 127 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_light_dark_theme_icon_off)) in testIcon_whenNightModeOn_isOffState()
|
D | MicrophoneToggleTileTest.kt | 113 assertThat(state.icon).isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_mic_access_on)) in testIcon_whenMicrophoneAccessEnabled_isOnState() 122 assertThat(state.icon).isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_mic_access_off)) in testIcon_whenMicrophoneAccessDisabled_isOffState()
|
D | BatterySaverTileTest.kt | 154 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_battery_saver_icon_off)) in testIcon_whenBatterySaverDisabled_isOffState() 165 .isEqualTo(QSTileImpl.ResourceIcon.get(R.drawable.qs_battery_saver_icon_on)) in testIcon_whenBatterySaverEnabled_isOnState()
|
D | ReduceBrightColorsTileTest.java | 155 assertEquals(state.icon, QSTileImpl.ResourceIcon.get(drawable.qs_extra_dim_icon_on)); in testIcon_whenTileEnabled_isOnState() 166 assertEquals(state.icon, QSTileImpl.ResourceIcon.get(drawable.qs_extra_dim_icon_off)); in testIcon_whenTileDisabled_isOffState()
|
D | ScreenRecordTileTest.java | 272 assertEquals(state.icon, QSTileImpl.ResourceIcon.get(R.drawable.qs_screen_record_icon_on)); in testIcon_whenRecording_isOnState() 283 assertEquals(state.icon, QSTileImpl.ResourceIcon.get(R.drawable.qs_screen_record_icon_on)); in testIcon_whenStarting_isOnState() 294 assertEquals(state.icon, QSTileImpl.ResourceIcon.get(R.drawable.qs_screen_record_icon_off)); in testIcon_whenRecordingOff_isOffState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileRequestDialog.kt | 30 import com.android.systemui.qs.tileimpl.QSTileImpl.ResourceIcon 85 } ?: ResourceIcon.get(R.drawable.android) in createTileView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 696 public static class ResourceIcon extends Icon { class in QSTileImpl 701 private ResourceIcon(int resId) { in ResourceIcon() method in QSTileImpl.ResourceIcon 708 icon = new ResourceIcon(resId); in get() 730 return o instanceof ResourceIcon && ((ResourceIcon) o).mResId == mResId; in equals() 740 protected static class AnimationIcon extends ResourceIcon {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/viewmodel/ |
D | InternetTileViewModel.kt | 27 import com.android.systemui.qs.tileimpl.QSTileImpl.ResourceIcon in <lambda>() 80 icon = ResourceIcon.get(wifiIcon.icon.res), in <lambda>() 205 icon = ResourceIcon.get(R.drawable.ic_qs_no_internet_unavailable), in <lambda>()
|