/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServicesTest.java | 160 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 …]
|
D | CustomTileTest.kt | 103 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 …]
|
D | TileServiceRequestControllerTest.kt | 129 `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/ |
D | QSFactoryImpl.java | 26 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/ |
D | TileSpec.kt | 21 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/ |
D | TileStateToProto.kt | 23 import com.android.systemui.qs.external.CustomTile 30 if (spec.startsWith(CustomTile.PREFIX)) { in QSTile() 32 val tileComponentName = CustomTile.getComponentFromSpec(spec) in QSTile()
|
D | QSTileHost.java | 41 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()
|
D | QSPanelControllerBase.java | 41 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/ |
D | QSFactoryImplTest.kt | 24 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/ |
D | AutoTileManager.java | 38 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/ |
D | TileStateToProtoTest.kt | 10 import com.android.systemui.qs.external.CustomTile 51 spec = CustomTile.toSpec(TEST_COMPONENT) in componentTile_UNAVAILABLE()
|
D | QSTileHostTest.java | 61 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/ |
D | TileQueryHelper.java | 41 import com.android.systemui.qs.external.CustomTile; 123 if (spec.startsWith(CustomTile.PREFIX)) continue; in addCurrentAndStockTiles() 221 String spec = CustomTile.toSpec(componentName); in addPackageTiles()
|
D | TileAdapter.java | 57 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/ |
D | AutoTileManagerTest.java | 61 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/ |
D | CustomTile.java | 77 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()
|
D | TileServiceRequestController.kt | 170 val spec = CustomTile.toSpec(componentName) in isTileAlreadyAdded()
|
D | TileServiceManager.java | 316 mServices.getHost().removeTile(CustomTile.toSpec(component));
|
/frameworks/base/packages/SystemUI/docs/ |
D | qs-tiles.md | 62 * [`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/ |
D | CurrentTilesInteractor.kt | 32 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/ |
D | CloseShadeRightAfterClickTestB339290820.kt | 123 return CustomTile.toSpec(component) in getTileSpec()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/ |
D | CurrentTilesInteractorImplTest.kt | 36 import com.android.systemui.qs.external.CustomTile 178 assertThat(tile1.tile).isInstanceOf(CustomTile::class.java) in correctTiles() 691 mock<CustomTile> { in tileCreator()
|