Home
last modified time | relevance | path

Searched refs:addTile (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSHostAdapter.kt130 override fun addTile(spec: String, position: Int) { in addTile() method
132 interactor.addTile(TileSpec.create(spec), position) in addTile()
134 qsTileHost.addTile(spec, position) in addTile()
138 override fun addTile(component: ComponentName, end: Boolean) { in addTile() method
140 interactor.addTile(TileSpec.create(component), if (end) POSITION_AT_END else 0) in addTile()
142 qsTileHost.addTile(component, end) in addTile()
182 override fun addTile(spec: String) { in addTile() method
183 return addTile(spec, QSHost.POSITION_AT_END) in addTile()
186 override fun addTile(tile: ComponentName) { in addTile() method
187 return addTile(tile, false) in addTile()
DQSHost.java71 void addTile(String spec); in addTile() method
79 void addTile(String spec, int requestPosition); in addTile() method
80 void addTile(ComponentName tile); in addTile() method
87 void addTile(ComponentName tile, boolean end); in addTile() method
DQSTileHost.java407 public void addTile(String spec) { in addTile() method in QSTileHost
408 addTile(spec, POSITION_AT_END); in addTile()
412 public void addTile(String spec, int requestPosition) { in addTile() method in QSTileHost
453 public void addTile(ComponentName tile) { in addTile() method in QSTileHost
454 addTile(tile, /* end */ false); in addTile()
458 public void addTile(ComponentName tile, boolean end) { in addTile() method in QSTileHost
460 addTile(spec, end ? POSITION_AT_END : 0); in addTile()
DQSPanelControllerBase.java326 addTile(tile, collapsedView); in setTiles()
347 private void addTile(final QSTile tile, boolean collapsedView) { in addTile() method in QSPanelControllerBase
367 mView.addTile(r); in addTile()
DQSPanel.java567 final void addTile(QSPanelControllerBase.TileRecord tileRecord) { in addTile() method in QSPanel
581 mTileLayout.addTile(tileRecord); in addTile()
750 void addTile(QSPanelControllerBase.TileRecord tile); in addTile() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileLayoutTest.java87 mTileLayout.addTile(tileRecord); in testAddTile_CallsSetListeningOnTile()
95 mTileLayout.addTile(tileRecord); in testAddTile_SetsRightSquishiness()
102 mTileLayout.addTile(tileRecord); in testSetListening_CallsSetListeningOnTile()
110 mTileLayout.addTile(tileRecord); in testSetListening_SameValueIsNoOp()
119 mTileLayout.addTile(tileRecord); in testSetListening_ChangesValueForAddingFutureTiles()
127 mTileLayout.addTile(tileRecord); in testRemoveTile_CallsSetListeningFalseOnTile()
137 mTileLayout.addTile(tileRecord1); in testRemoveAllViews_CallsSetListeningFalseOnAllTiles()
138 mTileLayout.addTile(tileRecord2); in testRemoveAllViews_CallsSetListeningFalseOnAllTiles()
147 mTileLayout.addTile(tileRecord); in testMeasureLayout_CallsLayoutOnTile()
157 mTileLayout.addTile(tileRecord1); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
[all …]
DQSTileHostTest.java336 mQSTileHost.addTile("spec1"); in testNoRepeatedSpecs_addTile()
349 mQSTileHost.addTile("spec2", 1); in testAddTileAtValidPosition()
364 mQSTileHost.addTile("spec2", 100); in testAddTileAtInvalidPositionAddsToEnd()
379 mQSTileHost.addTile("spec2", QSTileHost.POSITION_AT_END); in testAddTileAtEnd()
392 mQSTileHost.addTile(CUSTOM_TILE, /* end */ false); in testNoRepeatedSpecs_customTile()
403 mQSTileHost.addTile(CUSTOM_TILE); in testAddedAtBeginningOnDefault_customTile()
414 mQSTileHost.addTile(CUSTOM_TILE, /* end */ false); in testAddedAtBeginning_customTile()
425 mQSTileHost.addTile(CUSTOM_TILE, /* end */ true); in testAddedAtEnd_customTile()
494 mQSTileHost.addTile("spec3"); in testAddTileInMainThread()
DQSPanelControllerBaseTest.java495 verify(mQSPanel, never()).addTile(any()); in setTiles_sameTiles_doesntRemoveAndReaddViews()
531 verify(mQSPanel, never()).addTile(any()); in setTiles_differentTiles_extraTileRemoved()
545 verify(mQSPanel, never()).addTile(any()); in detachAndReattach_sameTiles_doesntRemoveAndReAddViews()
559 verify(mQSPanel, times(2)).addTile(any()); in setTiles_sameTilesDifferentOrder_removesAndReads()
DQSPanelTest.kt119 qsPanel.tileLayout?.addTile( in testTilesFooterVisibleLandscapeMedia()
194 qsPanel.addTile(record) in addTile_callbackAdded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java370 verify(mQsHost).addTile("night"); in nightTileAdded_whenActivated()
379 verify(mQsHost, never()).addTile("night"); in nightTileNotAdded_whenDeactivated()
389 verify(mQsHost).addTile("night"); in nightTileAdded_whenNightModeTwilight()
399 verify(mQsHost).addTile("night"); in nightTileAdded_whenNightModeCustom()
409 verify(mQsHost, never()).addTile("night"); in nightTileNotAdded_whenNightModeDisabled()
415 verify(mQsHost).addTile("reduce_brightness"); in reduceBrightColorsTileAdded_whenActivated()
421 verify(mQsHost, never()).addTile("reduce_brightness"); in reduceBrightColorsTileNotAdded_whenDeactivated()
434 verify(mQsHost).addTile("cast"); in castTileAdded_whenDeviceIsCasting()
441 verify(mQsHost, never()).addTile("cast"); in castTileNotAdded_whenDeviceIsNotCasting()
448 verify(mQsHost).addTile(TEST_SPEC); in testSettingTileAdded_onChanged()
[all …]
DCentralSurfacesCommandQueueCallbacksTest.java210 verify(mQSHost).addTile(c); in addQsTile_delegateCallToQsHost()
219 verify(mQSHost).addTile(c, true); in addQsTileToFrontOrEnd_toTheEnd_delegateCallToQsHost()
228 verify(mQSHost).addTile(c, false); in addQsTileToFrontOrEnd_toTheFront_delegateCallToQsHost()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java296 mHost.addTile(WORK, position);
315 mHost.addTile(SAVER);
327 mHost.addTile(HOTSPOT);
340 mHost.addTile(DEVICE_CONTROLS, position);
368 mHost.addTile(WALLET, position); in initWalletController()
377 mHost.addTile(CustomTile.getComponentFromSpec(mSafetySpec), true); in initSafetyTile()
401 mHost.addTile(NIGHT);
419 mHost.addTile(BRIGHTNESS);
441 mHost.addTile(CAST);
504 mHost.addTile(CustomTile.getComponentFromSpec(mSpec), /* end */ true); in handleValueChanged()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DAutoAddInteractorTest.kt85 verify(currentTilesInteractor).addTile(SPEC, position) in autoAddable_alwaysTrack_addSignal_tileAddedAndMarked()
104 inOrder.verify(currentTilesInteractor).addTile(SPEC, position) in autoAddable_alwaysTrack_addThenRemoveSignal_tileAddedAndRemoved()
122 verify(currentTilesInteractor, never()).addTile(SPEC, position) in autoAddable_alwaysTrack_addSignalWhenAddedPreviously_noop()
139 verify(currentTilesInteractor, never()).addTile(any(), anyInt()) in autoAddable_disabled_noInteractionsWithCurrentTilesInteractor()
155 verify(currentTilesInteractor, never()).addTile(any(), anyInt()) in autoAddable_trackIfNotAdded_removeSignal_noop()
171 verify(currentTilesInteractor, never()).addTile(any(), anyInt()) in autoAddable_trackIfNotAdded_addSignalWhenPreviouslyAdded_noop()
187 verify(currentTilesInteractor).addTile(SPEC, position) in autoAddable_trackIfNotAdded_addSignal_addedAndMarked()
DCurrentTilesInteractorImplTest.kt279 tileSpecRepository.addTile(USER_INFO_0.id, TileSpec.create("b")) in tilesChange_platformTileNotRecreated()
323 tileSpecRepository.addTile(USER_INFO_0.id, TileSpec.create("b")) in tileBecomesNotAvailable_destroyed()
419 fun addTile() = in addTile() method
430 underTest.addTile(spec, position = 1) in addTile()
456 underTest.addTile(spec, position = 1) in addTile_currentUser()
669 underTest.addTile(newTile) in tileAddedOnEmptyList_blocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DTileSpecRepository.kt53 suspend fun addTile(@UserIdInt userId: Int, tile: TileSpec, position: Int = POSITION_AT_END) in <lambda>() method
125 override suspend fun addTile(userId: Int, tile: TileSpec, position: Int) { in addTile() method in com.android.systemui.qs.pipeline.data.repository.TileSpecSettingsRepository
132 userTileRepositories.get(userId)?.addTile(tile, position) in addTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceRequestController.kt98 private fun addTile(componentName: ComponentName) { in addTile() method
99 qsHost.addTile(componentName, true) in addTile()
120 addTile(componentName) in requestTileAdd()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileQueryHelper.java196 addTile(tile.getTileSpec(), null, state, true); in onStateChanged()
224 addTile(spec, appLabel, state, false); in addPackageTiles()
272 private void addTile( in addTile() method in TileQueryHelper
293 addTile(spec, appLabel, state, false); in createStateAndAddTile()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DUserTileSpecRepositoryTest.kt130 underTest.addTile(TileSpec.create("b")) in addTileAtEnd()
144 underTest.addTile(TileSpec.create("d"), position = 1) in addTileAtPosition()
159 underTest.addTile(TileSpec.Invalid) in addInvalidTile_noop()
173 underTest.addTile(TileSpec.create("d"), position = 100) in addTileAtPosition_tooLarge_addedAtEnd()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/scroll/
DImageTileSet.java83 void addTile(ImageTile tile) { in addTile() method in ImageTileSet
85 mHandler.post(() -> addTile(tile)); in addTile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/viewmodel/
DEditModeViewModel.kt153 fun addTile(tileSpec: TileSpec, position: Int = POSITION_AT_END) { in <lambda>() method
154 currentTilesInteractor.addTile(tileSpec, position) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/
DEditMode.kt44 viewModel::addTile, in EditMode()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServiceRequestControllerTest.kt142 verify(qsHost, never()).addTile(any(ComponentName::class.java), anyBoolean()) in tileAlreadyAdded_correctResult()
207 verify(qsHost, never()).addTile(any(ComponentName::class.java), anyBoolean()) in cancelListener_dismissResult()
248 verify(qsHost).addTile(TEST_COMPONENT, /* end */ true) in positiveActionListener_tileAddedResult()
289 verify(qsHost, never()).addTile(any(ComponentName::class.java), anyBoolean()) in negativeActionListener_tileNotAddedResult()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DCurrentTilesInteractor.kt98 fun addTile(spec: TileSpec, position: Int = TileSpecRepository.POSITION_AT_END) in <lambda>() method
301 override fun addTile(spec: TileSpec, position: Int) { in addTile() method
305 tileSpecRepository.addTile(userRepository.getSelectedUserInfo().id, spec, position) in addTile()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/
DFakeTileSpecRepository.kt36 override suspend fun addTile(userId: Int, tile: TileSpec, position: Int) { in addTile() method in com.android.systemui.qs.pipeline.data.repository.FakeTileSpecRepository
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/
DDashboardCategory.java75 public synchronized void addTile(Tile tile) { in addTile() method in DashboardCategory

12