Home
last modified time | relevance | path

Searched refs:CustomTile (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServices.java58 private final ArrayMap<CustomTile, TileServiceManager> mServices = new ArrayMap<>();
59 private final ArrayMap<ComponentName, CustomTile> mTiles = new ArrayMap<>();
60 private final ArrayMap<IBinder, CustomTile> mTokenMap = new ArrayMap<>();
94 public TileServiceManager getTileWrapper(CustomTile tile) { in getTileWrapper()
114 public void freeService(CustomTile tile, TileServiceManager service) { in freeService()
160 private void verifyCaller(CustomTile tile) { in verifyCaller()
175 CustomTile customTile = getTileForComponent(component); in requestListening()
194 CustomTile customTile = getTileForToken(token); in updateQsTile()
214 CustomTile customTile = getTileForToken(token); in onStartSuccessful()
234 CustomTile customTile = getTileForToken(token); in onShowDialog()
[all …]
DCustomTile.java71 public class CustomTile extends QSTileImpl<State> implements TileChangeListener { class
101 private CustomTile( in CustomTile() method in CustomTile
493 public static CustomTile create(Builder builder, String spec, Context userContext) { in create()
547 CustomTile build() { in build()
552 return new CustomTile( in build()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DCustomTileTest.kt66 val TILE_SPEC = CustomTile.toSpec(componentName)
83 private lateinit var customTile: CustomTile
85 private lateinit var customTileBuilder: CustomTile.Builder
96 `when`(tileServices.getTileWrapper(any(CustomTile::class.java))) in setUp()
106 customTileBuilder = CustomTile.Builder( in setUp()
118 customTile = CustomTile.create(customTileBuilder, TILE_SPEC, mContext) in setUp()
131 val tile = CustomTile.create(customTileBuilder, TILE_SPEC, userContext) in testCorrectUser()
141 customTile = CustomTile.create(customTileBuilder, TILE_SPEC, mContext) in testToggleableTileHasBooleanState()
158 customTile = CustomTile.create(customTileBuilder, TILE_SPEC, mContext) in testValueUpdatedInBooleanTile()
228 val tile = CustomTile.create(customTileBuilder, TILE_SPEC, mContext) in testPersistedStateRetrieved()
[all …]
DTileServicesTest.java145 mTileService.getTileWrapper(mock(CustomTile.class)); in testRecalculateBindAllowance()
180 mTileService.getTileWrapper(mock(CustomTile.class)); in testCalcFew()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSFactoryImpl.java27 import com.android.systemui.qs.external.CustomTile;
95 private final Provider<CustomTile.Builder> mCustomTileBuilderProvider;
100 Provider<CustomTile.Builder> customTileBuilderProvider, in QSFactoryImpl()
227 if (tileSpec.startsWith(CustomTile.PREFIX)) { in createTileInternal()
228 return CustomTile.create( in createTileInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSTileHost.java46 import com.android.systemui.qs.external.CustomTile;
286 if (tile != null && (!(tile instanceof CustomTile) in onTuningChanged()
287 || ((CustomTile) tile).getUser() == currentUser)) { in onTuningChanged()
291 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged()
408 String spec = CustomTile.toSpec(tile); in addTile()
422 newSpecs.remove(CustomTile.toSpec(tile)); in removeTile()
436 if (!tileSpec.startsWith(CustomTile.PREFIX)) continue; in changeTiles()
438 ComponentName component = CustomTile.getComponentFromSpec(tileSpec); in changeTiles()
DQSPanelControllerBase.java37 import com.android.systemui.qs.external.CustomTile;
228 final String spec = CustomTile.toSpec(tile); in clickTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java41 import com.android.systemui.qs.external.CustomTile;
124 if (spec.startsWith(CustomTile.PREFIX)) continue; in addCurrentAndStockTiles()
233 String spec = CustomTile.toSpec(componentName); in addPackageTiles()
DTileAdapter.java53 import com.android.systemui.qs.external.CustomTile;
536 if (spec.startsWith(CustomTile.PREFIX)) { in strip()
537 ComponentName component = CustomTile.getComponentFromSpec(spec); in strip()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java35 import com.android.systemui.qs.external.CustomTile;
423 if (mSpec.startsWith(CustomTile.PREFIX)) { in handleValueChanged()
424 mHost.addTile(CustomTile.getComponentFromSpec(mSpec), /* end */ true); in handleValueChanged()
/frameworks/base/packages/SystemUI/docs/
Dqs-tiles.md40CustomTile`](/packages/SystemUI/src/com/android/systemui/qs/external/CustomTile.java): Equivalent …
196 #### CustomTile subsubsection
202 …current `TileService` components and dispatches them to SystemUI or the corresponding `CustomTile`.
235 …it and collapse it. And a way for the StatusBar service to add tiles (only works for `CustomTile`).
259 …gnized but it has the `custom(` prefix, the factory tries to create a `CustomTile` for the compone…
273 …entation of `QSTile` (either a SystemUI subclass of `QSTileImpl` or a `CustomTile`). If the tile i…
282 #### Lifecycle of a CustomTile
284 In step 3 of the previous process, when a `CustomTile` is created, additional steps are taken to en…
286CustomTile` obtains the `TileServices` class from the `QSTileHost` and request the creation of a `…
288 3. `TileServices` creates maps between the token, the `CustomTile`, the `TileServiceManager`, the t…
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java59 import com.android.systemui.qs.external.CustomTile;
95 private static final String CUSTOM_TILE_SPEC = CustomTile.toSpec(CUSTOM_TILE);
118 private CustomTile mCustomTile;