Home
last modified time | relevance | path

Searched refs:BooleanState (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileViewImplTest.kt77 val state = QSTile.BooleanState() in testSecondaryLabelNotModified_booleanInactive()
89 val state = QSTile.BooleanState() in testSecondaryLabelNotModified_booleanActive()
136 val state = QSTile.BooleanState() in testSecondaryLabelDescription_booleanInactive_default()
149 val state = QSTile.BooleanState() in testSecondaryLabelDescription_booleanActive_default()
162 val state = QSTile.BooleanState() in testShowCustomDrawableViewBooleanState()
184 val state = QSTile.BooleanState() in testShowCustomDrawableViewBooleanStateForceChevron()
206 val state = QSTile.BooleanState() in testShowChevronBooleanStateForcheShow()
217 val state = QSTile.BooleanState() in testNoImageShown()
227 val state = QSTile.BooleanState() in testUseStateStringsForKnownSpec_Boolean()
DQSTileImplTest.java385 private static class TileImpl extends QSTileImpl<QSTile.BooleanState> {
404 public BooleanState newTileState() { in newTileState()
405 return new BooleanState(); in newTileState()
414 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DFlashlightTile.java37 import com.android.systemui.plugins.qs.QSTile.BooleanState;
47 public class FlashlightTile extends QSTileImpl<BooleanState> implements
77 public BooleanState newTileState() { in newTileState()
78 BooleanState state = new BooleanState(); in newTileState()
118 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DWorkModeTile.java36 import com.android.systemui.plugins.qs.QSTile.BooleanState;
46 public class WorkModeTile extends QSTileImpl<BooleanState> implements
71 public BooleanState newTileState() { in newTileState()
72 return new BooleanState(); in newTileState()
107 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DRotationLockTile.java38 import com.android.systemui.plugins.qs.QSTile.BooleanState;
49 public class RotationLockTile extends QSTileImpl<BooleanState> {
73 public BooleanState newTileState() { in newTileState()
74 return new BooleanState(); in newTileState()
95 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DBatterySaverTile.java36 import com.android.systemui.plugins.qs.QSTile.BooleanState;
47 public class BatterySaverTile extends QSTileImpl<BooleanState> implements
94 public BooleanState newTileState() { in newTileState()
95 return new BooleanState(); in newTileState()
139 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DScreenRecordTile.java49 public class ScreenRecordTile extends QSTileImpl<QSTile.BooleanState>
78 public BooleanState newTileState() { in newTileState()
79 BooleanState state = new BooleanState(); in newTileState()
98 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DNfcTile.java43 import com.android.systemui.plugins.qs.QSTile.BooleanState;
52 public class NfcTile extends QSTileImpl<BooleanState> {
80 public BooleanState newTileState() { in newTileState()
81 return new BooleanState(); in newTileState()
134 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DDataSaverTile.java36 import com.android.systemui.plugins.qs.QSTile.BooleanState;
46 public class DataSaverTile extends QSTileImpl<BooleanState> implements
70 public BooleanState newTileState() { in newTileState()
71 return new BooleanState(); in newTileState()
112 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DColorInversionTile.java39 import com.android.systemui.plugins.qs.QSTile.BooleanState;
51 public class ColorInversionTile extends QSTileImpl<BooleanState> {
95 public BooleanState newTileState() { in newTileState()
96 return new BooleanState(); in newTileState()
131 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DLocationTile.java37 import com.android.systemui.plugins.qs.QSTile.BooleanState;
49 public class LocationTile extends QSTileImpl<BooleanState> {
79 public BooleanState newTileState() { in newTileState()
80 return new BooleanState(); in newTileState()
108 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DReduceBrightColorsTile.java49 public class ReduceBrightColorsTile extends QSTileImpl<QSTile.BooleanState>
88 public BooleanState newTileState() { in newTileState()
89 return new BooleanState(); in newTileState()
108 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DAirplaneModeTile.java45 import com.android.systemui.plugins.qs.QSTile.BooleanState;
57 public class AirplaneModeTile extends QSTileImpl<BooleanState> {
93 public BooleanState newTileState() { in newTileState()
94 return new BooleanState(); in newTileState()
124 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DSensorPrivacyToggleTile.java51 public abstract class SensorPrivacyToggleTile extends QSTileImpl<QSTile.BooleanState> implements
90 public BooleanState newTileState() { in newTileState()
91 return new BooleanState(); in newTileState()
108 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DHotspotTile.java38 import com.android.systemui.plugins.qs.QSTile.BooleanState;
49 public class HotspotTile extends QSTileImpl<BooleanState> {
105 public BooleanState newTileState() { in newTileState()
106 return new BooleanState(); in newTileState()
126 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DNightDisplayTile.java45 import com.android.systemui.plugins.qs.QSTile.BooleanState;
61 public class NightDisplayTile extends QSTileImpl<BooleanState> implements
106 public BooleanState newTileState() { in newTileState()
107 return new BooleanState(); in newTileState()
144 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DUiModeNightTile.java59 public class UiModeNightTile extends QSTileImpl<QSTile.BooleanState> implements
102 public BooleanState newTileState() { in newTileState()
103 return new BooleanState(); in newTileState()
117 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DCastTile.java47 import com.android.systemui.plugins.qs.QSTile.BooleanState;
69 public class CastTile extends QSTileImpl<BooleanState> {
115 public BooleanState newTileState() { in newTileState()
116 BooleanState state = new BooleanState(); in newTileState()
202 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DBluetoothTile.java48 import com.android.systemui.plugins.qs.QSTile.BooleanState;
64 public class BluetoothTile extends QSTileImpl<BooleanState> {
95 public BooleanState newTileState() { in newTileState()
96 return new BooleanState(); in newTileState()
132 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DDndTile.java61 import com.android.systemui.plugins.qs.QSTile.BooleanState;
73 public class DndTile extends QSTileImpl<BooleanState> {
132 public BooleanState newTileState() { in newTileState()
133 return new BooleanState(); in newTileState()
227 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java247 @ProvidesInterface(version = BooleanState.VERSION)
248 public static class BooleanState extends State { class
255 final BooleanState o = (BooleanState) other; in copyTo()
274 BooleanState state = new BooleanState(); in copy()
281 public static final class SignalState extends BooleanState {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt145 assertTrue(customTile.state is QSTile.BooleanState) in testToggleableTileHasBooleanState()
146 assertTrue(customTile.newTileState() is QSTile.BooleanState) in testToggleableTileHasBooleanState()
151 assertFalse(customTile.state is QSTile.BooleanState) in testRegularTileHasNotBooleanState()
152 assertFalse(customTile.newTileState() is QSTile.BooleanState) in testRegularTileHasNotBooleanState()
167 assertTrue(state is QSTile.BooleanState) in testValueUpdatedInBooleanTile()
171 assertFalse((state as QSTile.BooleanState).value) in testValueUpdatedInBooleanTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt47 import com.android.systemui.plugins.qs.QSTile.BooleanState in <lambda>()
383 if (state is BooleanState) { in <lambda>()
483 } else if (state !is BooleanState || state.forceExpandIcon) { in <lambda>()
499 return if (state.state == Tile.STATE_UNAVAILABLE || state is BooleanState) { in <lambda>()
DQSTileImpl.java323 if (mState instanceof BooleanState) { in populate()
324 logMaker.addTaggedData(FIELD_QS_VALUE, ((BooleanState) mState).value ? 1 : 0); in populate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java337 return new BooleanState(); in newTileState()
436 if (state instanceof BooleanState) { in handleUpdateState()
438 ((BooleanState) state).value = (state.state == Tile.STATE_ACTIVE); in handleUpdateState()

12