/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/logging/ |
D | QSTileLogger.kt | 48 tileSpec: TileSpec, in logUserAction() 52 tileSpec in logUserAction() 55 tileSpec.getLogTag(), in logUserAction() 75 tileSpec: TileSpec, in logUserActionRejectedByFalsing() 77 tileSpec in logUserActionRejectedByFalsing() 80 tileSpec.getLogTag(), in logUserActionRejectedByFalsing() 90 tileSpec: TileSpec, in logUserActionRejectedByPolicy() 93 tileSpec in logUserActionRejectedByPolicy() 96 tileSpec.getLogTag(), in logUserActionRejectedByPolicy() 107 tileSpec: TileSpec, in logUserActionPipeline() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/shared/ |
D | TileSpecTest.kt | 37 val tileSpec = TileSpec.create(spec) in platformTile() constant 39 assertThat(tileSpec is TileSpec.PlatformTileSpec).isTrue() in platformTile() 40 assertThat(tileSpec.spec).isEqualTo(spec) in platformTile() 48 val tileSpec = TileSpec.create(spec) in customTile() constant 50 assertThat(tileSpec is TileSpec.CustomTileSpec).isTrue() in customTile() 51 assertThat(tileSpec.spec).isEqualTo(spec) in customTile() 52 assertThat((tileSpec as TileSpec.CustomTileSpec).componentName).isEqualTo(componentName) in customTile() 59 val tileSpec = TileSpec.create(spec) in emptyCustomTile_invalid() constant 61 assertThat(tileSpec).isEqualTo(TileSpec.Invalid) in emptyCustomTile_invalid() 68 val tileSpec = TileSpec.create(spec) in invalidCustomTileSpec_invalid() constant [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/viewmodel/ |
D | FakeQSTileConfigProvider.kt | 25 override fun getConfig(tileSpec: String): QSTileConfig = configs.getValue(tileSpec) in getConfig() 27 override fun hasConfig(tileSpec: String): Boolean = configs.containsKey(tileSpec) in getConfig() 29 fun putConfig(tileSpec: TileSpec, config: QSTileConfig) { in getConfig() 30 configs[tileSpec.spec] = config in getConfig() 33 fun removeConfig(tileSpec: TileSpec): QSTileConfig? = configs.remove(tileSpec.spec)
|
D | QSTileConfigTestBuilder.kt | 28 var tileSpec: TileSpec = TileSpec.create("test_spec") variable in com.android.systemui.qs.tiles.viewmodel.QSTileConfigTestBuilder.BuildingScope 31 var metricsSpec: String = tileSpec.spec 36 tileSpec,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/viewmodel/ |
D | QSTileConfigProvider.kt | 34 fun getConfig(tileSpec: String): QSTileConfig in getConfig() 36 fun hasConfig(tileSpec: String): Boolean in getConfig() 49 val configTileSpec = entry.value.tileSpec.spec in getConfig() 58 override fun hasConfig(tileSpec: String): Boolean = in getConfig() 59 when (TileSpec.create(tileSpec)) { in getConfig() 60 is TileSpec.PlatformTileSpec -> configs.containsKey(tileSpec) in getConfig() 65 override fun getConfig(tileSpec: String): QSTileConfig = in getConfig() 66 when (val spec = TileSpec.create(tileSpec)) { in getConfig() 68 configs[tileSpec] in getConfig() 69 ?: throw IllegalArgumentException("There is no config for spec=$tileSpec") in getConfig()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/logging/ |
D | QSLogger.kt | 64 fun logTileAdded(tileSpec: String) { in <lambda>() 65 buffer.log(TAG, DEBUG, { str1 = tileSpec }, { "[$str1] Tile added" }) in <lambda>() 68 fun logTileDestroyed(tileSpec: String, reason: String) { in <lambda>() 73 str1 = tileSpec in <lambda>() 80 fun logTileChangeListening(tileSpec: String, listening: Boolean) { in <lambda>() 86 str1 = tileSpec in <lambda>() 105 fun logTileClick(tileSpec: String, statusBarState: Int, state: Int, eventId: Int) { in <lambda>() 110 str1 = tileSpec in <lambda>() 119 fun logHandleClick(tileSpec: String, eventId: Int) { in <lambda>() 124 str1 = tileSpec in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSFactoryImpl.java | 67 public final QSTile createTile(String tileSpec) { in createTile() argument 68 QSTileImpl tile = createTileInternal(tileSpec); in createTile() 72 tile.setTileSpec(tileSpec); in createTile() 78 protected QSTileImpl createTileInternal(String tileSpec) { in createTileInternal() argument 80 if (mTileMap.containsKey(tileSpec)) { in createTileInternal() 81 return mTileMap.get(tileSpec).get(); in createTileInternal() 85 if (tileSpec.startsWith(CustomTile.PREFIX)) { in createTileInternal() 87 mCustomTileFactoryProvider.get(), tileSpec, mQsHostLazy.get().getUserContext()); in createTileInternal() 91 Log.w(TAG, "No stock tile spec: " + tileSpec); in createTileInternal()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/panels/domain/interactor/ |
D | EditTilesListInteractorTest.kt | 85 putConfig(internetTileConfig.tileSpec, internetTileConfig) in setUp() 86 putConfig(flashlightTileConfig.tileSpec, flashlightTileConfig) in setUp() 87 putConfig(batteryTileConfig.tileSpec, batteryTileConfig) in setUp() 108 assertThat(editTiles.stockTiles.all { it.tileSpec is TileSpec.PlatformTileSpec }) in getTilesToEdit_stockTilesAreAllPlatformSpecs() 119 assertThat(editTiles.stockTiles.map { it.tileSpec }) in getTilesToEdit_stockTiles_sameOrderAsRepository() 131 tileSpec = TileSpec.create(component), in getTilesToEdit_customTileData_matchesService() 149 editTiles.stockTiles.first { it.tileSpec == internetTileConfig.tileSpec } in getTilesToEdit_tilesInConfigProvider_correctData() 153 editTiles.stockTiles.first { it.tileSpec == flashlightTileConfig.tileSpec } in getTilesToEdit_tilesInConfigProvider_correctData() 156 assertThat(editTiles.stockTiles.first { it.tileSpec == batteryTileConfig.tileSpec }) in getTilesToEdit_tilesInConfigProvider_correctData() 168 .filterNot { qSTileConfigProvider.hasConfig(it.tileSpec.spec) } in getTilesToEdit_tilesNotInConfigProvider_useDefaultData() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/viewmodel/ |
D | EditModeViewModel.kt | 97 editTilesData.stockTiles.map { it.tileSpec } in <lambda>() 104 val allTilesMap = allTiles.associate { it.tileSpec to it } in <lambda>() 106 val nonCurrentTiles = allTiles.filter { it.tileSpec !in currentSpecs } in <lambda>() 109 .filterNot { it.tileSpec in unavailable } in <lambda>() 111 val current = it.tileSpec in currentSpecs in <lambda>() 123 it.tileSpec, in <lambda>() 148 fun moveTile(tileSpec: TileSpec, position: Int) { in <lambda>() 153 fun addTile(tileSpec: TileSpec, position: Int = POSITION_AT_END) { in <lambda>() 154 currentTilesInteractor.addTile(tileSpec, position) in <lambda>() 158 fun removeTile(tileSpec: TileSpec) { in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/ |
D | FakeQSTile.kt | 27 private var tileSpec: String? = null variable in com.android.systemui.qs.FakeQSTile 33 return tileSpec in getTileSpec() 40 override fun setTileSpec(tileSpec: String?) { in setTileSpec() 41 this.tileSpec = tileSpec in setTileSpec() 42 state.spec = tileSpec in setTileSpec()
|
D | FakeQSFactory.kt | 23 override fun createTile(tileSpec: String): QSTile? { in createTile() 24 return tileCreator(tileSpec)?.also { it.tileSpec = tileSpec } in createTile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/shared/model/ |
D | EditTileData.kt | 24 val tileSpec: TileSpec, constant in com.android.systemui.qs.panels.shared.model.EditTileData 31 (tileSpec is TileSpec.PlatformTileSpec && appName == null) || 32 (tileSpec is TileSpec.CustomTileSpec && appName != null) 34 "tileSpec: $tileSpec - appName: $appName. " + in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSTileHost.java | 308 for (String tileSpec : tileSpecs) { in onTuningChanged() 309 QSTile tile = mTiles.get(tileSpec); in onTuningChanged() 318 newTiles.put(tileSpec, tile); in onTuningChanged() 319 mQSLogger.logTileAdded(tileSpec); in onTuningChanged() 322 Log.d(TAG, "Destroying not available tile: " + tileSpec); in onTuningChanged() 323 mQSLogger.logTileDestroyed(tileSpec, "Tile not available"); in onTuningChanged() 330 Log.d(TAG, "Destroying tile for wrong user: " + tileSpec); in onTuningChanged() 331 mQSLogger.logTileDestroyed(tileSpec, "Tile for wrong user"); in onTuningChanged() 333 Log.d(TAG, "Creating tile: " + tileSpec); in onTuningChanged() 335 tile = createTile(tileSpec); in onTuningChanged() [all …]
|
D | QSHost.java | 54 void removeTile(String tileSpec); in removeTile() argument 64 QSTile createTile(String tileSpec); in createTile() argument 91 int indexOf(String tileSpec); in indexOf() argument
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/panels/ui/viewmodel/ |
D | EditModeViewModelTest.kt | 120 with(fakeQSTileConfigProvider) { configs.forEach { putConfig(it.tileSpec, it) } } in <lambda>() 173 .filter { it.tileSpec is TileSpec.PlatformTileSpec } in <lambda>() 174 .map { it.tileSpec } in <lambda>() 189 .filter { it.tileSpec is TileSpec.PlatformTileSpec } in <lambda>() 191 val data = getEditTileData(it.tileSpec) in <lambda>() 210 .filter { it.tileSpec is TileSpec.CustomTileSpec } in <lambda>() 211 .map { it.tileSpec } in <lambda>() 226 val model1 = tiles!!.first { it.tileSpec == TileSpec.create(component1) } in <lambda>() 233 val model2 = tiles!!.first { it.tileSpec == TileSpec.create(component2) } in <lambda>() 257 assertThat(tiles!!.filter { it.isCurrent }.map { it.tileSpec }) in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/ |
D | CurrentTilesInteractor.kt | 242 newTileList.forEach { tileSpec -> in startTileCollection() method 243 if (tileSpec !in newTileMap) { in startTileCollection() 245 tileSpec is TileSpec.CustomTileSpec && in startTileCollection() 246 tileSpec.componentName !in components in startTileCollection() 248 newTileMap[tileSpec] = TileOrNotInstalled.NotInstalled in startTileCollection() 253 if (tileSpec in specsToTiles) { in startTileCollection() 255 tileSpec, in startTileCollection() 256 specsToTiles.getValue(tileSpec), in startTileCollection() 260 ?: createTile(tileSpec) in startTileCollection() 262 createTile(tileSpec) in startTileCollection() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/di/ |
D | QSTileConfigModule.kt | 34 @Provides fun provideTileSpec(): TileSpec = config.tileSpec 38 config.tileSpec as TileSpec.CustomTileSpec 42 config.tileSpec as TileSpec.PlatformTileSpec
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/data/repository/ |
D | AccessibilityQsShortcutsRepository.kt | 104 tiles.forEach { tileSpec -> in notifyAccessibilityManagerTilesChanged() method 105 when (tileSpec) { in notifyAccessibilityManagerTilesChanged() 107 if (accessibilityTileServices.contains(tileSpec.componentName)) { in notifyAccessibilityManagerTilesChanged() 108 newTiles.add(tileSpec.componentName) in notifyAccessibilityManagerTilesChanged() 112 if (TILE_SPEC_TO_COMPONENT_MAPPING.containsKey(tileSpec.spec)) { in notifyAccessibilityManagerTilesChanged() 113 newTiles.add(TILE_SPEC_TO_COMPONENT_MAPPING[tileSpec.spec]!!) in notifyAccessibilityManagerTilesChanged()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/ |
D | CustomTileServiceInteractor.kt | 57 private val tileSpec: TileSpec.CustomTileSpec, constant in com.android.systemui.qs.tiles.impl.custom.domain.interactor.CustomTileServiceInteractor 92 qsTileLogger.logError(tileSpec, "Binding to the service failed", e) in bindOnStart() 106 qsTileLogger.logError(tileSpec, "Binding to the service on click failed", e) in bindOnClick() 121 qsTileLogger.logError(tileSpec, "Unbinding failed", e) in unbind() 180 override val component: ComponentName = tileSpec.componentName 185 override fun getTileSpec(): String = tileSpec.spec in getTileSpec()
|
D | CustomTileUserActionInteractor.kt | 55 private val tileSpec: TileSpec, constant in com.android.systemui.qs.tiles.impl.custom.domain.interactor.CustomTileUserActionInteractor 78 qsTileLogger.logCustomTileUserActionDelivered(tileSpec) in handleInput() 96 qsTileLogger.logError(tileSpec, "Failed to deliver click", e) in click() 106 qsTileLogger.logError(tileSpec, "Failed to remove a window token", e) in revokeToken() 137 qsTileLogger.logError(tileSpec, "Failed to grant a window token", e) in clearLastClickedView()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/di/ |
D | NewQSTileFactory.kt | 53 override fun createTile(tileSpec: String): QSTile? { in createTile() 55 when (val spec = TileSpec.create(tileSpec)) { in createTile() 59 tileMap[tileSpec]?.get()?.takeIf { it !is StubQSTileViewModel } in createTile()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/impl/custom/data/repository/ |
D | FakeCustomTileRepository.kt | 28 tileSpec: TileSpec.CustomTileSpec, 36 tileSpec, 43 require(tileSpec.componentName == packageManagerAdapterFacade.componentName)
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/viewmodel/ |
D | QSTileViewModelUserInputTest.kt | 101 .logUserAction(eq(userAction), eq(tileConfig.tileSpec), eq(true), eq(true)) in userInputTriggersData() 104 eq(tileConfig.tileSpec), in userInputTriggersData() 132 eq(tileConfig.tileSpec), in disabledByPolicyUserInputIsSkipped() 161 eq(tileConfig.tileSpec), in disabledByPolicySecondRestriction_userInputIsSkipped() 196 eq(tileConfig.tileSpec), in disabledByPolicySecondRestriction_onlyFirstIsTriggered() 202 eq(tileConfig.tileSpec), in disabledByPolicySecondRestriction_onlyFirstIsTriggered() 222 .logUserActionRejectedByFalsing(eq(userAction), eq(tileConfig.tileSpec)) in falsedUserInputIsSkipped()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/base/viewmodel/ |
D | QSTileViewModelFactory.kt | 72 tileSpec: TileSpec, in create() 74 val config = qsTileConfigProvider.getConfig(tileSpec.spec) in create() 122 tileSpec: TileSpec, in create() 128 qsTileConfigProvider.getConfig(tileSpec.spec), in create()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/tiles/di/ |
D | NewQSTileFactoryKosmos.kt | 45 val tileSpec = invocation.getArgument<TileSpec>(0) in <lambda>() constant 48 tileSpec, in <lambda>() 54 MutableStateFlow(QSTileState.build({ null }, tileSpec.spec) {}) in <lambda>()
|