Home
last modified time | relevance | path

Searched refs:mCallbackCaptor (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/hardware/display/
DDisplayManagerGlobalTest.java72 private ArgumentCaptor<IDisplayManagerCallback> mCallbackCaptor; field in DisplayManagerGlobalTest
92 .registerCallbackWithEventMask(mCallbackCaptor.capture(), anyLong()); in testDisplayListenerIsCalled_WhenDisplayEventOccurs()
93 IDisplayManagerCallback callback = mCallbackCaptor.getValue(); in testDisplayListenerIsCalled_WhenDisplayEventOccurs()
125 .registerCallbackWithEventMask(mCallbackCaptor.capture(), anyLong()); in testDisplayListenerIsNotCalled_WhenClientIsNotSubscribed()
126 IDisplayManagerCallback callback = mCallbackCaptor.getValue(); in testDisplayListenerIsNotCalled_WhenClientIsNotSubscribed()
153 .registerCallbackWithEventMask(mCallbackCaptor.capture(), eq(ALL_DISPLAY_EVENTS)); in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreNoOtherListeners()
157 .registerCallbackWithEventMask(mCallbackCaptor.capture(), eq(0L)); in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreNoOtherListeners()
169 .registerCallbackWithEventMask(mCallbackCaptor.capture(), in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreListeners()
174 .registerCallbackWithEventMask(mCallbackCaptor.capture(), in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreListeners()
179 .registerCallbackWithEventMask(mCallbackCaptor.capture(), in testDisplayManagerGlobalRegistersWithDisplayManager_WhenThereAreListeners()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallet/ui/
DWalletScreenControllerTest.java105 ArgumentCaptor<QuickAccessWalletClient.OnWalletCardsRetrievedCallback> mCallbackCaptor; field in WalletScreenControllerTest
152 verify(mWalletClient).getWalletCards(any(), any(), mCallbackCaptor.capture()); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
155 mCallbackCaptor.getValue(); in queryCards_deviceLocked_udfpsEnabled_hideUnlockButton()
176 verify(mWalletClient).getWalletCards(any(), any(), mCallbackCaptor.capture()); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
179 mCallbackCaptor.getValue(); in queryCards_deviceLocked_udfpsNotEnabled_showUnlockButton()
201 verify(mWalletClient).getWalletCards(any(), any(), mCallbackCaptor.capture()); in queryCards_hasCards_showCarousel_activeCard()
204 mCallbackCaptor.getValue(); in queryCards_hasCards_showCarousel_activeCard()
227 verify(mWalletClient).getWalletCards(any(), any(), mCallbackCaptor.capture()); in queryCards_hasCards_showCarousel_pendingActivationCard_parseLabel()
230 mCallbackCaptor.getValue(); in queryCards_hasCards_showCarousel_pendingActivationCard_parseLabel()
253 verify(mWalletClient).getWalletCards(any(), any(), mCallbackCaptor.capture()); in queryCards_hasCards_showCarousel_badCard_parseLabel_notCrash()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DQuickAccessWalletTileTest.java128 ArgumentCaptor<QuickAccessWalletClient.OnWalletCardsRetrievedCallback> mCallbackCaptor; field in QuickAccessWalletTileTest
292 verify(mController).queryWalletCards(mCallbackCaptor.capture()); in testHandleUpdateState_walletIsUpdating()
304 mCallbackCaptor.getValue().onWalletCardsRetrieved(response); in testHandleUpdateState_walletIsUpdating()
387 verify(mController).queryWalletCards(mCallbackCaptor.capture()); in testHandleSetListening_queryCards()
389 assertThat(mCallbackCaptor.getValue()).isInstanceOf( in testHandleSetListening_queryCards()
415 verify(mController).queryWalletCards(mCallbackCaptor.capture()); in testQueryCards_notCurrentUser_hasCards_noSideViewDrawable()
417 mCallbackCaptor.getValue().onWalletCardsRetrieved(response); in testQueryCards_notCurrentUser_hasCards_noSideViewDrawable()
453 verify(mController).queryWalletCards(mCallbackCaptor.capture()); in testQueryCards_error_notUpdateSideViewDrawable()
455 mCallbackCaptor.getValue().onWalletCardRetrievalError(error); in testQueryCards_error_notUpdateSideViewDrawable()
485 verify(mController).queryWalletCards(mCallbackCaptor.capture()); in setUpWalletCardWithType()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/
DConditionMonitorTest.java122 final ArgumentCaptor<Condition.Callback> mCallbackCaptor = in testOverridingCondition() local
125 verify(overridingCondition).addCallback(mCallbackCaptor.capture()); in testOverridingCondition()
127 mCallbackCaptor.getValue().onConditionChanged(overridingCondition); in testOverridingCondition()
138 mCallbackCaptor.getValue().onConditionChanged(overridingCondition); in testOverridingCondition()
173 final ArgumentCaptor<Condition.Callback> mCallbackCaptor = in testMultipleOverridingConditions() local
176 verify(overridingCondition).addCallback(mCallbackCaptor.capture()); in testMultipleOverridingConditions()
178 mCallbackCaptor.getValue().onConditionChanged(overridingCondition); in testMultipleOverridingConditions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DDreamHomeControlsComplicationTest.java89 private ArgumentCaptor<ControlsListingController.ControlsListingCallback> mCallbackCaptor; field in DreamHomeControlsComplicationTest
289 verify(mControlsListingController).addCallback(mCallbackCaptor.capture()); in triggerControlsListingCallback()
290 mCallbackCaptor.getValue().onServicesUpdated(serviceInfos); in triggerControlsListingCallback()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/ambient/statusbar/ui/
DAmbientStatusBarViewControllerTest.java114 private ArgumentCaptor<DreamOverlayStateController.Callback> mCallbackCaptor; field in AmbientStatusBarViewControllerTest
533 verify(mDreamOverlayStateController).addCallback(mCallbackCaptor.capture()); in updateEntryAnimationsFinished()
534 final DreamOverlayStateController.Callback callback = mCallbackCaptor.getValue(); in updateEntryAnimationsFinished()