Home
last modified time | relevance | path

Searched refs:QSTile (Results 1 – 25 of 63) sorted by relevance

123

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileViewImplTest.kt31 import com.android.systemui.plugins.qs.QSTile
65 val state = QSTile.State() in testSecondaryLabelNotModified_unavailable()
77 val state = QSTile.BooleanState() in testSecondaryLabelNotModified_booleanInactive()
89 val state = QSTile.BooleanState() in testSecondaryLabelNotModified_booleanActive()
101 val state = QSTile.State() in testSecondaryLabelNotModified_availableNotBoolean_inactive()
112 val state = QSTile.State() in testSecondaryLabelNotModified_availableNotBoolean_active()
123 val state = QSTile.State() in testSecondaryLabelDescription_unavailable_default()
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()
[all …]
DQSIconViewImplTest.java35 import com.android.systemui.plugins.qs.QSTile.Icon;
36 import com.android.systemui.plugins.qs.QSTile.State;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java37 import com.android.systemui.plugins.qs.QSTile;
38 import com.android.systemui.plugins.qs.QSTile.State;
119 final ArrayList<QSTile> tilesToAdd = new ArrayList<>(); in addCurrentAndStockTiles()
125 final QSTile tile = host.createTile(spec); in addCurrentAndStockTiles()
141 QSTile mTile;
145 private class TileCollector implements QSTile.Callback {
150 TileCollector(List<QSTile> tilesToAdd, QSTileHost host) { in TileCollector()
151 for (QSTile tile: tilesToAdd) { in TileCollector()
191 QSTile tile = pair.mTile; in onStateChanged()
192 final QSTile.State state = tile.getState().copy(); in onStateChanged()
[all …]
DCustomizeTileView.kt22 import com.android.systemui.plugins.qs.QSTile
45 override fun handleStateChanged(state: QSTile.State) { in handleStateChanged()
68 fun changeState(state: QSTile.State) { in changeState()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DQuickAccessWalletTileTest.java68 import com.android.systemui.plugins.qs.QSTile;
260 QSTile.State state = new QSTile.State(); in testHandleUpdateState_updateLabelAndIcon()
272 QSTile.State state = new QSTile.State(); in testHandleUpdateState_updateLabelAndIcon_noIconFromApi()
273 QSTile.Icon icon = QSTileImpl.ResourceIcon.get(R.drawable.ic_wallet_lockscreen); in testHandleUpdateState_updateLabelAndIcon_noIconFromApi()
296 QSTile.State state = new QSTile.State(); in testHandleUpdateState_walletIsUpdating()
331 QSTile.State state = new QSTile.State(); in testHandleUpdateState_hasCard_deviceLocked_tileInactive()
347 QSTile.State state = new QSTile.State(); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive()
363 QSTile.State state = new QSTile.State(); in testHandleUpdateState_noCard_tileInactive()
379 QSTile.State state = new QSTile.State(); in testHandleUpdateState_qawServiceUnavailable_tileUnavailable()
391 QSTile.State state = new QSTile.State(); in testHandleUpdateState_qawFeatureUnavailable_tileUnavailable()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSFactory.java28 @DependsOn(target = QSTile.class)
35 QSTile createTile(String tileSpec); in createTile()
45 QSTileView createTileView(Context context, QSTile tile, boolean collapsedView); in createTileView()
DQSTileView.java23 import com.android.systemui.plugins.qs.QSTile.State;
27 @DependsOn(target = QSTile.class)
58 public abstract void init(QSTile tile); in init()
DQSTile.java29 import com.android.systemui.plugins.qs.QSTile.Callback;
30 import com.android.systemui.plugins.qs.QSTile.Icon;
31 import com.android.systemui.plugins.qs.QSTile.State;
36 @ProvidesInterface(version = QSTile.VERSION)
42 public interface QSTile { interface
DQSIconView.java22 import com.android.systemui.plugins.qs.QSTile.State;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanelControllerBase.java34 import com.android.systemui.plugins.qs.QSTile;
193 public void setTiles(Collection<QSTile> tiles, boolean collapsedView) { in setTiles()
205 for (QSTile tile : tiles) { in setTiles()
217 private void addTile(final QSTile tile, boolean collapsedView) { in addTile()
236 protected QSTile getTile(String subPanel) { in getTile()
249 QSTileView getTileView(QSTile tile) { in getTileView()
293 QSTile tile = getTile(subPanel); in openDetails()
367 QSTile tile = mRecords.get(i).tile; in logTiles()
413 public QSTile tile;
416 public QSTile.Callback callback;
DQuickQSPanel.java27 import com.android.systemui.plugins.qs.QSTile;
28 import com.android.systemui.plugins.qs.QSTile.SignalState;
29 import com.android.systemui.plugins.qs.QSTile.State;
221 QSTile tile = mRecords.get(i).tile; in setListening()
DQSTileRevealController.java10 import com.android.systemui.plugins.qs.QSTile;
58 public void updateRevealedTiles(Collection<QSTile> tiles) { in updateRevealedTiles()
60 for (QSTile tile : tiles) { in updateRevealedTiles()
DQSHost.java21 import com.android.systemui.plugins.qs.QSTile;
35 Collection<QSTile> getTiles(); in getTiles()
DQuickQSPanelController.java28 import com.android.systemui.plugins.qs.QSTile;
95 List<QSTile> tiles = new ArrayList<>(); in setTiles()
96 for (QSTile tile : mHost.getTiles()) { in setTiles()
DQSTileHost.java44 import com.android.systemui.plugins.qs.QSTile;
87 private final LinkedHashMap<String, QSTile> mTiles = new LinkedHashMap<>();
211 public Collection<QSTile> getTiles() { in getTiles()
283 final LinkedHashMap<String, QSTile> newTiles = new LinkedHashMap<>(); in onTuningChanged()
285 QSTile tile = mTiles.get(tileSpec); in onTuningChanged()
455 public QSTile createTile(String tileSpec) { in createTile()
457 QSTile t = mQsFactories.get(i).createTile(tileSpec); in createTile()
470 public QSTileView createTileView(Context themedContext, QSTile tile, boolean collapsedView) { in createTileView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DAlarmTile.kt22 import com.android.systemui.plugins.qs.QSTile in <lambda>()
43 ) : QSTileImpl<QSTile.State>( in <lambda>()
67 override fun newTileState(): QSTile.State { in <lambda>()
68 return QSTile.State().apply { in <lambda>()
87 override fun handleUpdateState(state: QSTile.State, arg: Any?) { in <lambda>()
DDeviceControlsTile.kt39 import com.android.systemui.plugins.qs.QSTile
59 ) : QSTileImpl<QSTile.State>(
92 override fun newTileState(): QSTile.State { in newTileState()
93 return QSTile.State().also { in newTileState()
132 override fun handleUpdateState(state: QSTile.State, arg: Any?) { in handleUpdateState()
DUserTile.java36 import com.android.systemui.plugins.qs.QSTile;
37 import com.android.systemui.plugins.qs.QSTile.State;
75 return new QSTile.State(); in newTileState()
DReduceBrightColorsTile.java38 import com.android.systemui.plugins.qs.QSTile;
49 public class ReduceBrightColorsTile extends QSTileImpl<QSTile.BooleanState>
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt37 import com.android.systemui.plugins.qs.QSTile
145 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.kt46 import com.android.systemui.plugins.qs.QSTile in <lambda>()
47 import com.android.systemui.plugins.qs.QSTile.BooleanState in <lambda>()
133 setColor(getBackgroundColorForState(QSTile.State.DEFAULT_STATE)) in <lambda>()
199 setLabelColor(getLabelColorForState(QSTile.State.DEFAULT_STATE)) in <lambda>()
200 setSecondaryLabelColor(getSecondaryLabelColorForState(QSTile.State.DEFAULT_STATE)) in <lambda>()
209 setChevronColor(getChevronColorForState(QSTile.State.DEFAULT_STATE)) in <lambda>()
239 override fun init(tile: QSTile) { in <lambda>()
257 override fun onStateChanged(state: QSTile.State) { in <lambda>()
348 protected open fun handleStateChanged(state: QSTile.State) { in <lambda>()
478 private fun loadSideViewDrawableIfNecessary(state: QSTile.State) { in <lambda>()
[all …]
DQSIconViewImpl.java37 import com.android.systemui.plugins.qs.QSTile;
38 import com.android.systemui.plugins.qs.QSTile.State;
52 private QSTile.Icon mLastIcon;
109 final QSTile.Icon icon = state.iconSupplier != null ? state.iconSupplier.get() : state.icon; in updateIcon()
152 protected void setIcon(ImageView iv, QSTile.State state, boolean allowAnimations) { in setIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/logging/
DQSLogger.kt26 import com.android.systemui.plugins.qs.QSTile
105 fun logTileUpdated(tileSpec: String, state: QSTile.State) { in logTileUpdated()
111 if (state is QSTile.SignalState) { in logTileUpdated()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java58 import com.android.systemui.plugins.qs.QSTile;
114 private QSTile.State mState;
124 mState = new QSTile.State(); in setup()
290 QSTile t = mock(QSTile.class); in testQueryTiles_notAvailableDestroyed_tileSpecIsSet()
304 private static class FakeQSTile implements QSTile {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQuickQSPanelControllerTest.kt26 import com.android.systemui.plugins.qs.QSTile
62 private lateinit var tile: QSTile

123