Home
last modified time | relevance | path

Searched refs:tileRecord (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileLayoutTest.java86 QSPanelControllerBase.TileRecord tileRecord = createTileRecord(); in testAddTile_CallsSetListeningOnTile() local
87 mTileLayout.addTile(tileRecord); in testAddTile_CallsSetListeningOnTile()
88 verify(tileRecord.tile, times(1)).setListening(mTileLayout, false); in testAddTile_CallsSetListeningOnTile()
93 QSPanelControllerBase.TileRecord tileRecord = createTileRecord(); in testAddTile_SetsRightSquishiness() local
94 ((HeightOverrideable) tileRecord.tileView).setSquishinessFraction(.5f); in testAddTile_SetsRightSquishiness()
95 mTileLayout.addTile(tileRecord); in testAddTile_SetsRightSquishiness()
96 assertEquals(1f, ((HeightOverrideable) tileRecord.tileView).getSquishinessFraction()); in testAddTile_SetsRightSquishiness()
101 QSPanelControllerBase.TileRecord tileRecord = createTileRecord(); in testSetListening_CallsSetListeningOnTile() local
102 mTileLayout.addTile(tileRecord); in testSetListening_CallsSetListeningOnTile()
104 verify(tileRecord.tile, times(1)).setListening(mTileLayout, true); in testSetListening_CallsSetListeningOnTile()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSPanel.java567 final void addTile(QSPanelControllerBase.TileRecord tileRecord) { in addTile() argument
571 drawTile(tileRecord, state); in addTile()
575 tileRecord.tile.addCallback(callback); in addTile()
576 tileRecord.callback = callback; in addTile()
577 tileRecord.tileView.init(tileRecord.tile); in addTile()
578 tileRecord.tile.refreshState(); in addTile()
581 mTileLayout.addTile(tileRecord); in addTile()
585 void removeTile(QSPanelControllerBase.TileRecord tileRecord) { in removeTile() argument
586 mTileLayout.removeTile(tileRecord); in removeTile()
DQSPanelControllerBase.java408 .map(tileRecord -> tileRecord.tile.getTileSpec()) in getTilesSpecs()