Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServicesTest.java160 mTileService.getTileWrapper(mock(CustomTile.class)); in testRecalculateBindAllowance()
195 mTileService.getTileWrapper(mock(CustomTile.class)); in testCalcFew()
224 CustomTile mockTile = mock(CustomTile.class); in testRequestListeningStatusCommand()
244 CustomTile mockTile = mock(CustomTile.class); in testRequestListeningStatusCommand_onStartListeningFromRequest()
259 CustomTile tile = mock(CustomTile.class); in testValidCustomTileStartsActivity()
272 CustomTile tile = mock(CustomTile.class); in testInvalidCustomTileDoesNotStartActivity()
285 CustomTile tile = mock(CustomTile.class); in testOnStartActivityCollapsesPanel()
297 CustomTile tile = mock(CustomTile.class); in testOnShowDialogCollapsesPanel()
313 CustomTile tileUser0 = mock(CustomTile.class); in tileFreedForCorrectUser()
314 CustomTile tileUser1 = mock(CustomTile.class); in tileFreedForCorrectUser()
[all …]
DCustomTileTest.kt103 private lateinit var customTile: CustomTile
107 private val TILE_SPEC = CustomTile.toSpec(componentName)
109 private val customTileFactory = object : CustomTile.Factory {
110 override fun create(action: String, userContext: Context): CustomTile { in create()
111 return CustomTile( in create()
139 `when`(tileServices.getTileWrapper(any(CustomTile::class.java))) in setUp()
153 customTile = CustomTile.create(customTileFactory, TILE_SPEC, mContext) in setUp()
166 val tile = CustomTile.create(customTileFactory, TILE_SPEC, userContext) in testCorrectUser()
176 customTile = CustomTile.create(customTileFactory, TILE_SPEC, mContext) in testToggleableTileHasBooleanState()
193 customTile = CustomTile.create(customTileFactory, TILE_SPEC, mContext) in testValueUpdatedInBooleanTile()
[all …]
DTileServiceRequestControllerTest.kt129 `when`(qsHost.indexOf(CustomTile.toSpec(TEST_COMPONENT))).thenReturn(2) in tileAlreadyAdded_correctResult()
147 `when`(qsHost.indexOf(CustomTile.toSpec(TEST_COMPONENT))).thenReturn(2) in tileAlreadyAdded_logged()
344 `when`(qsHost.indexOf(CustomTile.toSpec(TEST_COMPONENT))).thenReturn(2) in commandQueueCallback_callbackCalled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSFactoryImpl.java26 import com.android.systemui.qs.external.CustomTile;
53 private final Provider<CustomTile.Factory> mCustomTileFactoryProvider;
58 Provider<CustomTile.Factory> customTileFactoryProvider, in QSFactoryImpl()
85 if (tileSpec.startsWith(CustomTile.PREFIX)) { in createTileInternal()
86 return CustomTile.create( in createTileInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/shared/
DTileSpec.kt21 import com.android.systemui.qs.external.CustomTile
75 return CustomTileSpec(CustomTile.toSpec(component), component) in create()
79 get() = startsWith(CustomTile.PREFIX)
87 val extracted = substring(CustomTile.PREFIX.length, length - 1)
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DTileStateToProto.kt23 import com.android.systemui.qs.external.CustomTile
30 if (spec.startsWith(CustomTile.PREFIX)) { in QSTile()
32 val tileComponentName = CustomTile.getComponentFromSpec(spec) in QSTile()
DQSTileHost.java41 import com.android.systemui.qs.external.CustomTile;
310 if (tile != null && (!(tile instanceof CustomTile) in onTuningChanged()
311 || ((CustomTile) tile).getUser() == currentUser)) { in onTuningChanged()
315 if (!(tile instanceof CustomTile) && mCurrentUser != currentUser) { in onTuningChanged()
383 if (spec.startsWith(CustomTile.PREFIX)) { in removeTile()
386 setTileAdded(CustomTile.getComponentFromSpec(spec), mCurrentUser, false); in removeTile()
459 String spec = CustomTile.toSpec(tile); in addTile()
471 if (newSpecs.remove(CustomTile.toSpec(tile))) { in removeTileByUser()
492 if (!tileSpec.startsWith(CustomTile.PREFIX)) continue; in changeTilesByUser()
494 ComponentName component = CustomTile.getComponentFromSpec(tileSpec); in changeTilesByUser()
DQSPanelControllerBase.java41 import com.android.systemui.qs.external.CustomTile;
374 final String spec = CustomTile.toSpec(tile); in clickTile()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSFactoryImplTest.kt24 import com.android.systemui.qs.external.CustomTile in <lambda>()
101 @Mock private lateinit var customTileFactory: CustomTile.Factory in <lambda>()
102 @Mock private lateinit var customTile: CustomTile in <lambda>()
191 val customSpec = CustomTile.toSpec(ComponentName("test", "test")) in <lambda>()
192 assertThat(factory.createTile(customSpec)).isInstanceOf(CustomTile::class.java) in <lambda>()
209 val customSpec = CustomTile.toSpec(ComponentName("test", "test")) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java38 import com.android.systemui.qs.external.CustomTile;
138 mSafetySpec = safetySpecClass != null ? CustomTile.toSpec(new ComponentName(mContext in AutoTileManager()
377 mHost.addTile(CustomTile.getComponentFromSpec(mSafetySpec), true); in initSafetyTile()
503 if (mSpec.startsWith(CustomTile.PREFIX)) { in handleValueChanged()
504 mHost.addTile(CustomTile.getComponentFromSpec(mSpec), /* end */ true); in handleValueChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileStateToProtoTest.kt10 import com.android.systemui.qs.external.CustomTile
51 spec = CustomTile.toSpec(TEST_COMPONENT) in componentTile_UNAVAILABLE()
DQSTileHostTest.java61 import com.android.systemui.qs.external.CustomTile;
104 private static final String CUSTOM_TILE_SPEC = CustomTile.toSpec(CUSTOM_TILE);
117 private CustomTile mCustomTile;
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java41 import com.android.systemui.qs.external.CustomTile;
123 if (spec.startsWith(CustomTile.PREFIX)) continue; in addCurrentAndStockTiles()
221 String spec = CustomTile.toSpec(componentName); in addPackageTiles()
DTileAdapter.java57 import com.android.systemui.qs.external.CustomTile;
601 if (spec.startsWith(CustomTile.PREFIX)) { in strip()
602 ComponentName component = CustomTile.getComponentFromSpec(spec); in strip()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java61 import com.android.systemui.qs.external.CustomTile;
104 private static final String TEST_CUSTOM_SAFETY_SPEC = CustomTile.toSpec(new ComponentName(
485 ComponentName safetyComponent = CustomTile.getComponentFromSpec(TEST_CUSTOM_SAFETY_SPEC); in testSafetyTileNotAdded_ifPreviouslyAdded()
495 ComponentName safetyComponent = CustomTile.getComponentFromSpec(TEST_CUSTOM_SAFETY_SPEC); in testSafetyTileAdded_onUserChange()
505 ComponentName safetyComponent = CustomTile.getComponentFromSpec(TEST_CUSTOM_SAFETY_SPEC); in testSafetyTileRemoved_onSafetyCenterDisable()
514 ComponentName safetyComponent = CustomTile.getComponentFromSpec(TEST_CUSTOM_SAFETY_SPEC); in testSafetyTileAdded_onSafetyCenterEnable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java77 public class CustomTile extends QSTileImpl<State> implements TileChangeListener, class
121 CustomTile( in CustomTile() method in CustomTile
589 public static CustomTile create(Factory factory, String spec, Context userContext) { in create()
595 CustomTile create(String action, Context userContext); in create()
DTileServiceRequestController.kt170 val spec = CustomTile.toSpec(componentName) in isTileAlreadyAdded()
DTileServiceManager.java316 mServices.getHost().removeTile(CustomTile.toSpec(component));
/frameworks/base/packages/SystemUI/docs/
Dqs-tiles.md62 * [`CustomTile`](/packages/SystemUI/src/com/android/systemui/qs/external/CustomTile.java):
64 to be found in [`CustomTile`](#customtile)
286 #### CustomTile subsubsection
297 corresponding `CustomTile`.
400 a `CustomTile` for the component in the spec.
420 of `QSTileImpl` or a `CustomTile`) it will be added to the current list.
436 #### Lifecycle of a CustomTile
438 In step 3 of the previous process, when a `CustomTile` is created, additional steps are taken to
442 1. The `CustomTile` obtains the `TileServices` class from the `QSTileHost` and request the creation
443 of a `TileServiceManager` with its token. As the spec for the `CustomTile` contains
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractor.kt32 import com.android.systemui.qs.external.CustomTile in <lambda>()
407 qsTile !is CustomTile -> { in processExistingTile()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/
DCloseShadeRightAfterClickTestB339290820.kt123 return CustomTile.toSpec(component) in getTileSpec()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractorImplTest.kt36 import com.android.systemui.qs.external.CustomTile
178 assertThat(tile1.tile).isInstanceOf(CustomTile::class.java) in correctTiles()
691 mock<CustomTile> { in tileCreator()