/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | FlashlightTile.java | 27 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()
|
D | WorkModeTile.java | 26 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()
|
D | ColorInversionTile.java | 28 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()
|
D | RotationLockTile.java | 28 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()
|
D | BatterySaverTile.java | 26 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()
|
D | NfcTile.java | 33 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()
|
D | ScreenRecordTile.java | 38 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()
|
D | LocationTile.java | 28 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()
|
D | DataSaverTile.java | 26 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()
|
D | AirplaneModeTile.java | 37 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()
|
D | HotspotTile.java | 29 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()
|
D | NightDisplayTile.java | 38 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()
|
D | UiModeNightTile.java | 47 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()
|
D | CastTile.java | 40 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()
|
D | BluetoothTile.java | 42 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()
|
D | DndTile.java | 59 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/ |
D | CustomTileTest.kt | 109 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/ |
D | QSTile.java | 213 @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/ |
D | QSTileBaseView.java | 51 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()
|
D | QSTileImpl.java | 286 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/ |
D | QSTileImplTest.java | 353 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/ |
D | CustomTile.java | 263 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/ |
D | qs-tiles.md | 55 … 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…
|