Home
last modified time | relevance | path

Searched refs:mockConsumer (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManagerTest.kt61 private var mockConsumer: NotificationDrawableConsumer = mock() variable in com.android.systemui.statusbar.notification.row.BigPictureIconManagerTest
107 iconManager.updateIcon(mockConsumer, supportedIcon).run() in onIconUpdated_supportedType_placeholderLoaded()
110 verify(mockConsumer).setImageDrawable(drawableCaptor.capture()) in onIconUpdated_supportedType_placeholderLoaded()
119 iconManager.updateIcon(mockConsumer, unsupportedIcon).run() in onIconUpdated_unsupportedType_fullImageLoaded()
122 verify(mockConsumer).setImageDrawable(drawableCaptor.capture()) in onIconUpdated_unsupportedType_fullImageLoaded()
131 iconManager.updateIcon(mockConsumer, null).run() in onIconUpdated_withNull_drawableIsNull()
134 verify(mockConsumer).setImageDrawable(null) in onIconUpdated_withNull_drawableIsNull()
141 iconManager.updateIcon(mockConsumer, invalidIcon).run() in onIconUpdated_invalidIcon_drawableIsNull()
144 verify(mockConsumer).setImageDrawable(null) in onIconUpdated_invalidIcon_drawableIsNull()
151 iconManager.updateIcon(mockConsumer, supportedIcon).run() in onIconUpdated_consumerAlreadySet_newConsumerIsUpdatedWithPlaceholder()
[all …]
/frameworks/native/libs/gui/tests/
DSurface_test.cpp136 sp<MockConsumer> mockConsumer(new MockConsumer); in testSurfaceListener() local
137 consumer->consumerConnect(mockConsumer, false); in testSurfaceListener()
345 sp<MockConsumer> mockConsumer(new MockConsumer); in TEST_F() local
346 consumer->consumerConnect(mockConsumer, false); in TEST_F()
361 sp<MockConsumer> mockConsumer(new MockConsumer); in TEST_F() local
362 consumer->consumerConnect(mockConsumer, false); in TEST_F()
392 sp<MockConsumer> mockConsumer(new MockConsumer); in TEST_F() local
393 consumer->consumerConnect(mockConsumer, false); in TEST_F()
416 sp<MockConsumer> mockConsumer(new MockConsumer); in TEST_F() local
417 consumer->consumerConnect(mockConsumer, false); in TEST_F()
[all …]