Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DFlashlightTile.java27 import com.android.systemui.plugins.qs.QSTile.BooleanState;
35 public class FlashlightTile extends QSTileImpl<BooleanState> implements
54 public BooleanState newTileState() { in newTileState()
55 BooleanState state = new BooleanState(); in newTileState()
95 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DWorkModeTile.java26 import com.android.systemui.plugins.qs.QSTile.BooleanState;
34 public class WorkModeTile extends QSTileImpl<BooleanState> implements
48 public BooleanState newTileState() { in newTileState()
49 return new BooleanState(); in newTileState()
84 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DColorInversionTile.java28 import com.android.systemui.plugins.qs.QSTile.BooleanState;
36 public class ColorInversionTile extends QSTileImpl<BooleanState> {
63 public BooleanState newTileState() { in newTileState()
64 return new BooleanState(); in newTileState()
95 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DRotationLockTile.java28 import com.android.systemui.plugins.qs.QSTile.BooleanState;
37 public class RotationLockTile extends QSTileImpl<BooleanState> {
50 public BooleanState newTileState() { in newTileState()
51 return new BooleanState(); in newTileState()
72 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DBatterySaverTile.java26 import com.android.systemui.plugins.qs.QSTile.BooleanState;
34 public class BatterySaverTile extends QSTileImpl<BooleanState> implements
64 public BooleanState newTileState() { in newTileState()
65 return new BooleanState(); in newTileState()
109 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DNfcTile.java33 import com.android.systemui.plugins.qs.QSTile.BooleanState;
40 public class NfcTile extends QSTileImpl<BooleanState> {
54 public BooleanState newTileState() { in newTileState()
55 return new BooleanState(); in newTileState()
107 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DScreenRecordTile.java38 public class ScreenRecordTile extends QSTileImpl<QSTile.BooleanState>
56 public BooleanState newTileState() { in newTileState()
57 BooleanState state = new BooleanState(); in newTileState()
76 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DLocationTile.java28 import com.android.systemui.plugins.qs.QSTile.BooleanState;
38 public class LocationTile extends QSTileImpl<BooleanState> {
59 public BooleanState newTileState() { in newTileState()
60 return new BooleanState(); in newTileState()
88 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DDataSaverTile.java26 import com.android.systemui.plugins.qs.QSTile.BooleanState;
35 public class DataSaverTile extends QSTileImpl<BooleanState> implements
48 public BooleanState newTileState() { in newTileState()
49 return new BooleanState(); in newTileState()
88 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DAirplaneModeTile.java37 import com.android.systemui.plugins.qs.QSTile.BooleanState;
45 public class AirplaneModeTile extends QSTileImpl<BooleanState> {
69 public BooleanState newTileState() { in newTileState()
70 return new BooleanState(); in newTileState()
102 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DHotspotTile.java29 import com.android.systemui.plugins.qs.QSTile.BooleanState;
38 public class HotspotTile extends QSTileImpl<BooleanState> {
83 public BooleanState newTileState() { in newTileState()
84 return new BooleanState(); in newTileState()
104 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DNightDisplayTile.java38 import com.android.systemui.plugins.qs.QSTile.BooleanState;
52 public class NightDisplayTile extends QSTileImpl<BooleanState> implements
82 public BooleanState newTileState() { in newTileState()
83 return new BooleanState(); in newTileState()
118 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DUiModeNightTile.java47 public class UiModeNightTile extends QSTileImpl<QSTile.BooleanState> implements
79 public BooleanState newTileState() { in newTileState()
80 return new BooleanState(); in newTileState()
94 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DCastTile.java40 import com.android.systemui.plugins.qs.QSTile.BooleanState;
58 public class CastTile extends QSTileImpl<BooleanState> {
92 public BooleanState newTileState() { in newTileState()
93 BooleanState state = new BooleanState(); in newTileState()
184 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DBluetoothTile.java42 import com.android.systemui.plugins.qs.QSTile.BooleanState;
56 public class BluetoothTile extends QSTileImpl<BooleanState> {
80 public BooleanState newTileState() { in newTileState()
81 return new BooleanState(); in newTileState()
117 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
DDndTile.java59 import com.android.systemui.plugins.qs.QSTile.BooleanState;
69 public class DndTile extends QSTileImpl<BooleanState> {
137 public BooleanState newTileState() { in newTileState()
138 return new BooleanState(); in newTileState()
232 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt109 assertTrue(customTile.state is QSTile.BooleanState) in testToggleableTileHasBooleanState()
110 assertTrue(customTile.newTileState() is QSTile.BooleanState) in testToggleableTileHasBooleanState()
115 assertFalse(customTile.state is QSTile.BooleanState) in testRegularTileHasNotBooleanState()
116 assertFalse(customTile.newTileState() is QSTile.BooleanState) in testRegularTileHasNotBooleanState()
128 assertTrue(state is QSTile.BooleanState) in testValueUpdatedInBooleanTile()
132 assertFalse((state as QSTile.BooleanState).value) in testValueUpdatedInBooleanTile()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java213 @ProvidesInterface(version = BooleanState.VERSION)
214 public static class BooleanState extends State { class
220 final BooleanState o = (BooleanState) other; in copyTo()
235 BooleanState state = new BooleanState(); in copy()
242 public static final class SignalState extends BooleanState {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileBaseView.java51 import com.android.systemui.plugins.qs.QSTile.BooleanState;
255 if (state instanceof QSTile.BooleanState) { in handleStateChanged()
260 if (state instanceof QSTile.BooleanState) { in handleStateChanged()
275 if (state instanceof QSTile.BooleanState) { in handleStateChanged()
276 boolean newState = ((BooleanState) state).value; in handleStateChanged()
DQSTileImpl.java286 if (mState instanceof BooleanState) { in populate()
287 logMaker.addTaggedData(FIELD_QS_VALUE, ((BooleanState) mState).value ? 1 : 0); in populate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java353 private static class TileImpl extends QSTileImpl<QSTile.BooleanState> {
360 public BooleanState newTileState() { in newTileState()
361 return new BooleanState(); in newTileState()
370 protected void handleUpdateState(BooleanState state, Object arg) { in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java263 return new BooleanState(); in newTileState()
362 if (state instanceof BooleanState) { in handleUpdateState()
364 ((BooleanState) state).value = (state.state == Tile.STATE_ACTIVE); in handleUpdateState()
/frameworks/base/packages/SystemUI/docs/
Dqs-tiles.md55 … the tile as well as the new state when it's toggled. For this, the Tile has to use `BooleanState`.
60 Additionally. `BooleanState` has a `value` boolean field that usually would be set to `state == Til…
317 … provides `State`, `BooleanState` (has an on and off state and provides this as a content descript…