Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileViewImplTest.kt34 import com.android.systemui.plugins.qs.QSTile
69 val state = QSTile.State() in testSecondaryLabelNotModified_unavailable()
81 val state = QSTile.BooleanState() in testSecondaryLabelNotModified_booleanInactive()
93 val state = QSTile.BooleanState() in testSecondaryLabelNotModified_booleanActive()
105 val state = QSTile.State() in testSecondaryLabelNotModified_availableNotBoolean_inactive()
116 val state = QSTile.State() in testSecondaryLabelNotModified_availableNotBoolean_active()
127 val state = QSTile.State() in testSecondaryLabelDescription_unavailable_default()
139 val state = QSTile.BooleanState() in testSecondaryLabelDescription_booleanInactive_default()
151 val state = QSTile.BooleanState() in testSecondaryLabelDescription_booleanActive_default()
163 val state = QSTile.BooleanState() in testShowCustomDrawableViewBooleanState()
[all …]
DQSIconViewImplTest_311121830.kt29 import com.android.systemui.plugins.qs.QSTile
55 QSTile.State().apply { in alwaysLastIcon()
60 QSTile.State().apply { in alwaysLastIcon()
65 QSTile.State().apply { in alwaysLastIcon()
95 QSTile.State().apply { in alwaysLastIcon_twoStateChanges()
100 QSTile.State().apply { in alwaysLastIcon_twoStateChanges()
105 QSTile.State().apply { in alwaysLastIcon_twoStateChanges()
110 QSTile.State().apply { in alwaysLastIcon_twoStateChanges()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/
DFakeQSTile.kt21 import com.android.systemui.plugins.qs.QSTile
26 ) : QSTile {
29 private val state = QSTile.State()
30 val callbacks = mutableListOf<QSTile.Callback>()
47 override fun addCallback(callback: QSTile.Callback) { in addCallback()
51 override fun removeCallback(callback: QSTile.Callback) { in removeCallback()
85 override fun getState(): QSTile.State { in getState()
DFakeQSFactory.kt20 import com.android.systemui.plugins.qs.QSTile
22 class FakeQSFactory(private val tileCreator: (String) -> QSTile?) : QSFactory {
23 override fun createTile(tileSpec: String): QSTile? { in createTile()
/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;
116 final ArrayList<QSTile> tilesToAdd = new ArrayList<>(); in addCurrentAndStockTiles()
124 final QSTile tile = host.createTile(spec); in addCurrentAndStockTiles()
138 private TilePair(QSTile tile) { in TilePair()
142 QSTile mTile;
146 private class TileCollector implements QSTile.Callback {
151 TileCollector(List<QSTile> tilesToAdd, QSHost host) { in TileCollector()
152 for (QSTile tile: tilesToAdd) { in TileCollector()
191 QSTile tile = pair.mTile; in onStateChanged()
[all …]
DCustomizeTileView.kt21 import com.android.systemui.plugins.qs.QSTile
39 override fun handleStateChanged(state: QSTile.State) { in handleStateChanged()
62 fun changeState(state: QSTile.State) { in changeState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/viewmodel/
DTileViewModel.kt20 import com.android.systemui.plugins.qs.QSTile
28 class TileViewModel(private val tile: QSTile, val spec: TileSpec) {
29 val state: Flow<QSTile.State> =
31 val callback = QSTile.Callback { trySend(it.copy()) } in <lambda>()
40 val currentState: QSTile.State
DTileUiState.kt19 import com.android.systemui.plugins.qs.QSTile
26 val icon: Supplier<QSTile.Icon>,
29 fun QSTile.State.toUiState(): TileUiState { in QSTile() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/shared/ui/model/
DInternetTileModel.kt27 import com.android.systemui.plugins.qs.QSTile
35 val icon: QSTile.Icon?
39 fun applyTo(state: QSTile.BooleanState, context: Context) { in applyTo()
68 override val icon: QSTile.Icon? = null,
77 override val icon: QSTile.Icon? = null,
87 data class SignalIcon(val state: Int) : QSTile.Icon() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DHotspotTileTest.java37 import com.android.systemui.plugins.qs.QSTile;
75 private QSTile.BooleanState mState = new QSTile.BooleanState();
140 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenDisabled_isOffState()
152 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenTransient_isSearchState()
164 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenEnabled_isOnState()
DQRCodeScannerTileTest.java36 import com.android.systemui.plugins.qs.QSTile;
109 QSTile.State state = new QSTile.State(); in testTileDetails()
121 QSTile.State state = new QSTile.State(); in testQRCodeTileUnavailable()
131 QSTile.State state = new QSTile.State(); in testQRCodeTileAvailable()
DQuickAccessWalletTileTest.java64 import com.android.systemui.plugins.qs.QSTile;
249 QSTile.State state = new QSTile.State(); in testHandleUpdateState_updateLabelAndIcon()
261 QSTile.State state = new QSTile.State(); in testHandleUpdateState_updateLabelAndIcon_noIconFromApi()
262 QSTile.Icon icon = QSTileImpl.ResourceIcon.get(R.drawable.ic_wallet_lockscreen); in testHandleUpdateState_updateLabelAndIcon_noIconFromApi()
285 QSTile.State state = new QSTile.State(); in testHandleUpdateState_walletIsUpdating()
318 QSTile.State state = new QSTile.State(); in testHandleUpdateState_hasCard_deviceLocked_tileInactive()
332 QSTile.State state = new QSTile.State(); in testHandleUpdateState_hasCard_deviceUnlocked_tileActive()
346 QSTile.State state = new QSTile.State(); in testHandleUpdateState_noCard_tileInactive()
362 QSTile.State state = new QSTile.State(); in testHandleUpdateState_qawServiceUnavailable_tileUnavailable()
374 QSTile.State state = new QSTile.State(); in testHandleUpdateState_qawFeatureUnavailable_tileUnavailable()
DBluetoothTileTest.kt21 import com.android.systemui.plugins.qs.QSTile
107 val state = QSTile.BooleanState() in testIcon_whenDisabled_isOffState()
118 val state = QSTile.BooleanState() in testIcon_whenDisconnected_isOffState()
130 val state = QSTile.BooleanState() in testIcon_whenConnected_isOnState()
142 val state = QSTile.BooleanState() in testIcon_whenConnecting_isSearchState()
155 val state = QSTile.BooleanState() in testSecondaryLabel_whenBatteryMetadataAvailable_isMetadataBatteryLevelState()
173 val state = QSTile.BooleanState() in testSecondaryLabel_whenBatteryMetadataUnavailable_isBluetoothBatteryLevelState()
233 val state = QSTile.BooleanState() in testMetadataListener_whenDisconnected_isUnregistered()
246 val state = QSTile.BooleanState() in testMetadataListener_whenTileNotListening_isUnregistered()
287 state: QSTile.State?, in checkIfRestrictionEnforcedByAdminOnly()
[all …]
DColorInversionTileTest.java38 import com.android.systemui.plugins.qs.QSTile;
131 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenColorInversionDisabled_isOffState()
141 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenColorInversionEnabled_isOnState()
DReduceBrightColorsTileTest.java38 import com.android.systemui.plugins.qs.QSTile;
151 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenTileEnabled_isOnState()
162 QSTile.BooleanState state = new QSTile.BooleanState(); in testIcon_whenTileDisabled_isOffState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DInternetTileNewImpl.kt30 import com.android.systemui.plugins.qs.QSTile in <lambda>()
60 QSTileImpl<QSTile.BooleanState>( in <lambda>()
83 override fun newTileState(): QSTile.BooleanState { in <lambda>()
84 return QSTile.BooleanState().also { it.forceExpandIcon = true } in <lambda>()
98 override fun handleUpdateState(state: QSTile.BooleanState, arg: Any?) { in <lambda>()
DFontScalingTile.kt32 import com.android.systemui.plugins.qs.QSTile
60 QSTileImpl<QSTile.State?>(
73 override fun newTileState(): QSTile.State { in newTileState()
74 return QSTile.State() in newTileState()
110 override fun handleUpdateState(state: QSTile.State?, arg: Any?) { in handleUpdateState()
DDeviceControlsTile.kt40 import com.android.systemui.plugins.qs.QSTile
60 ) : QSTileImpl<QSTile.State>(
75 val icon: QSTile.Icon
96 override fun newTileState(): QSTile.State { in newTileState()
97 return QSTile.State().also { in newTileState()
130 override fun handleUpdateState(state: QSTile.State, arg: Any?) { in handleUpdateState()
DAlarmTile.kt20 import com.android.systemui.plugins.qs.QSTile in <lambda>()
46 ) : QSTileImpl<QSTile.State>( in <lambda>()
70 override fun newTileState(): QSTile.State { in <lambda>()
71 return QSTile.State().apply { in <lambda>()
90 override fun handleUpdateState(state: QSTile.State, arg: Any?) { in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileStateToProtoTest.kt9 import com.android.systemui.plugins.qs.QSTile
29 QSTile.State().apply { in platformTile_INACTIVE()
50 QSTile.State().apply { in componentTile_UNAVAILABLE()
77 QSTile.AdapterState().apply { in adapterState_ACTIVE()
104 QSTile.AdapterState().apply { in adapterState_INACTIVE()
127 QSTile.State().apply { in noSpec_returnsNull()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTileView.java24 import com.android.systemui.plugins.qs.QSTile.State;
28 @DependsOn(target = QSTile.class)
59 public abstract void init(QSTile tile); in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/
DQSTileViewModelAdapter.kt28 import com.android.systemui.plugins.qs.QSTile in <lambda>()
54 ) : QSTile, Dumpable { in <lambda>()
60 private val callbacks: MutableCollection<QSTile.Callback> = mutableSetOf() in <lambda>()
113 override fun addCallback(callback: QSTile.Callback?) { in <lambda>()
121 override fun removeCallback(callback: QSTile.Callback?) { in <lambda>()
201 override fun getState(): QSTile.State? = in <lambda>()
229 ): QSTile.State = in <lambda>()
232 QSTile.AdapterState().apply { in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHost.java22 import com.android.systemui.plugins.qs.QSTile;
51 Collection<QSTile> getTiles(); in getTiles()
64 QSTile createTile(String tileSpec); in createTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/model/
DTileModel.kt19 import com.android.systemui.plugins.qs.QSTile
28 data class TileModel(val spec: TileSpec, val tile: QSTile) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSIconViewImpl.java40 import com.android.systemui.plugins.qs.QSTile;
41 import com.android.systemui.plugins.qs.QSTile.State;
60 QSTile.Icon mLastIcon;
124 final QSTile.Icon icon = state.iconSupplier != null ? state.iconSupplier.get() : state.icon; in updateIcon()
173 protected void setIcon(ImageView iv, QSTile.State state, boolean allowAnimations) { in setIcon()
195 protected int getColor(QSTile.State state) { in getColor()
252 private static int getIconColorForState(Context context, QSTile.State state) { in getIconColorForState()

12345