Home
last modified time | relevance | path

Searched refs:ResourceIcon (Results 1 – 25 of 59) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest_311121830.kt57 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()
DResourceIconTest.kt35 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/
DInternetTile.java520 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 …]
DRotationLockTile.java66 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()
DBluetoothTile.java205 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()
DFlashlightTile.java131 state.icon = ResourceIcon.get(R.drawable.qs_flashlight_icon_off); in handleUpdateState()
146 state.icon = ResourceIcon.get(state.value in handleUpdateState()
DRecordIssueTile.kt186 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/
DInternetTileViewModelTest.kt29 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/
DFlashlightTileTest.kt91 .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()
DHotspotTileTest.java147 .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()
DDataSaverTileTest.kt104 .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()
DBluetoothTileTest.kt113 .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()
DNightDisplayTileTest.kt118 .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()
DAirplaneModeTileTest.kt121 .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()
DLocationTileTest.kt116 .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()
DColorInversionTileTest.java136 .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()
DCameraToggleTileTest.kt113 .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()
DUiModeNightTileTest.kt116 .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()
DMicrophoneToggleTileTest.kt113 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()
DBatterySaverTileTest.kt154 .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()
DReduceBrightColorsTileTest.java155 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()
DScreenRecordTileTest.java272 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/
DTileRequestDialog.kt30 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/
DQSTileImpl.java696 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/
DInternetTileViewModel.kt27 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>()

123