/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSPanelControllerBaseTest.java | 109 private QSHost mQSHost; field in QSPanelControllerBaseTest 203 when(mQSHost.getTiles()).thenReturn(Collections.singleton(mQSTile)); in setup() 216 mController = new TestableQSPanelControllerBase(mQSPanel, mQSHost, in setup() 234 mQSHost, mQSCustomizerController, mMediaHost, in testSetRevealExpansion_preAttach() 332 mController = new TestableQSPanelControllerBase(mQSPanel, mQSHost, in testShouldUseHorizontalLayout_falseForSplitShade() 341 mController = new TestableQSPanelControllerBase(mQSPanel, mQSHost, in testShouldUseHorizontalLayout_falseForSplitShade() 399 when(mQSHost.getTiles()).thenReturn(List.of(mQSTile, mOtherTile)); in testRefreshAllTilesDoesntRefreshListeningTiles() 441 when(mQSHost.getTiles()).thenReturn(List.of(mOtherTile)); in changeTiles_callbackRemovedOnOldOnes() 471 verify(mQSHost).addCallback(any()); in onInit_qsHostCallbackAdded() 477 verify(mQSHost, never()).removeCallback(any()); in onViewDettached_qsHostCallbackNotRemoved() [all …]
|
D | AutoAddTrackerTest.java | 68 private QSHost mQSHost; field in AutoAddTrackerTest 207 verify(mQSHost, never()).removeTiles(any()); in testSettingRestoredWithTilesNotRemovedInSource_noAutoAddedInTarget() 231 verify(mQSHost).removeTiles(List.of("work")); in testSettingRestoredWithTilesRemovedInSource_noAutoAddedInTarget() 256 verify(mQSHost).removeTiles(List.of("work")); in testSettingRestoredWithTilesRemovedInSource_sameAutoAddedinTarget() 281 verify(mQSHost).removeTiles(List.of("work")); in testSettingRestoredWithTilesRemovedInSource_othersAutoAddedinTarget() 304 mQSHost, in createAutoAddTracker()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/ |
D | TileQueryHelperTest.java | 103 private QSHost mQSHost; field in TileQueryHelperTest 133 ).when(mQSHost).createTile(anyString()); in setup() 149 mTileQueryHelper.queryTiles(mQSHost); in testIsFinished_trueAfterQuerying() 158 mTileQueryHelper.queryTiles(mQSHost); in testQueryTiles_callsListenerTwice() 172 mTileQueryHelper.queryTiles(mQSHost); in testQueryTiles_isFinishedFalseOnListenerCalls_thenTrueAfterCompletion() 186 mTileQueryHelper.queryTiles(mQSHost); in testQueryTiles_correctTilesAndOrderOnlyStockTiles() 206 mTileQueryHelper.queryTiles(mQSHost); in testQueryTiles_correctTilesAndOrderOtherFactoryTiles() 226 mTileQueryHelper.queryTiles(mQSHost); in testQueryTiles_otherTileNotIncluded() 242 mTileQueryHelper.queryTiles(mQSHost); in testCustomTileNotCreated() 244 verify(mQSHost, never()).createTile(CUSTOM_TILE); in testCustomTileNotCreated() [all …]
|
D | TileAdapterTest.java | 47 private QSHost mQSHost; field in TileAdapterTest 57 new TileAdapter(mContext, mQSHost, new UiEventLoggerFake(), fakeFeatureFlags)); in setup() 63 verify(mQSHost).changeTilesByUser(any(), any()); in testResetNotifiesHost()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | CentralSurfacesCommandQueueCallbacksTest.java | 103 @Mock private QSHost mQSHost; field in CentralSurfacesCommandQueueCallbacksTest 141 mQSHost, in setup() 210 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/ |
D | CentralSurfacesCommandQueueCallbacks.java | 111 private final QSHost mQSHost; field in CentralSurfacesCommandQueueCallbacks 178 mQSHost = qsHost; in CentralSurfacesCommandQueueCallbacks() 189 mQSHost.addTile(tile); in addQsTile() 194 mQSHost.addTile(tile, end); in addQsTileToFrontOrEnd() 199 mQSHost.removeTileByUser(tile); in remQsTile() 204 mQSHost.changeTilesByUser(mQSHost.getSpecs(), Arrays.stream(tiles).toList()); in setQsTiles()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/ |
D | TileQueryHelper.java | 149 private final QSHost mQSHost; field in TileQueryHelper.TileCollector 156 mQSHost = host; in TileCollector() 164 addPackageTiles(mQSHost); in finished()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServiceManagerTest.java | 84 private QSHost mQSHost; field in TileServiceManagerTest 110 when(mTileServices.getHost()).thenReturn(mQSHost); in setUp()
|
D | TileServicesTest.java | 117 private QSHost mQSHost; field in TileServicesTest 140 when(mQSHost.getContext()).thenReturn(mContext); in setUp() 144 mTileService = new TestTileServices(mQSHost, provider, mBroadcastDispatcher, in setUp()
|