Home
last modified time | relevance | path

Searched refs:capture (Results 1 – 25 of 384) sorted by relevance

12345678910>>...16

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackHandlerTest.java75 Mockito.verify(mEmengencyListener).setEmergencyCallsOnly(captor.capture()); in testEmergencyListener()
99 Mockito.verify(mSignalCallback).setWifiIndicators(enableArg.capture(), in testSignalCallback_setWifiIndicators()
100 statusArg.capture(), qsArg.capture(), inArg.capture(), outArg.capture(), in testSignalCallback_setWifiIndicators()
101 descArg.capture(), isTransient.capture(), secondary.capture()); in testSignalCallback_setWifiIndicators()
142 Mockito.verify(mSignalCallback).setMobileDataIndicators(statusArg.capture(), in testSignalCallback_setMobileDataIndicators()
143 qsArg.capture(), typeIconArg.capture(), qsTypeIconArg.capture(), inArg.capture(), in testSignalCallback_setMobileDataIndicators()
144 outArg.capture(), typeContentArg.capture(), typeContentHtmlArg.capture(), in testSignalCallback_setMobileDataIndicators()
145 descArg.capture(), wideArg.capture(), subIdArg.capture(), eq(roaming)); in testSignalCallback_setMobileDataIndicators()
167 Mockito.verify(mSignalCallback).setSubs(subsArg.capture()); in testSignalCallback_setSubs()
188 Mockito.verify(mSignalCallback).setEthernetIndicators(iconArg.capture()); in testSignalCallback_setEthernetIndicators()
[all …]
DNetworkControllerBaseTest.java227 .registerDefaultNetworkCallback(callbackArg.capture(), isA(Handler.class)); in setupNetworkController()
401 iconArg.capture(), in verifyLastQsMobileDataIndicators()
403 typeIconArg.capture(), dataInArg.capture(), dataOutArg.capture(), in verifyLastQsMobileDataIndicators()
434 iconArg.capture(), in verifyLastMobileDataIndicators()
436 typeIconArg.capture(), in verifyLastMobileDataIndicators()
480 iconArg.capture(), in verifyLastMobileDataIndicators()
481 qsIconArg.capture(), in verifyLastMobileDataIndicators()
482 typeIconArg.capture(), in verifyLastMobileDataIndicators()
483 qsTypeIconArg.capture(), in verifyLastMobileDataIndicators()
484 dataInArg.capture(), in verifyLastMobileDataIndicators()
[all …]
/frameworks/base/tests/utils/testutils/java/android/os/test/
DTestLooperTest.java88 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
90 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
92 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
94 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement()
146 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove()
148 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove()
175 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce()
177 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce()
179 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce()
209 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeTwice()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java174 verify(mMockContext, times(3)).registerReceiver(bcastRxCaptor.capture(), in setUp()
262 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testRequestMacAddresses()
270 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses()
284 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
288 inOrder.verify(mockSessionCallback1).onSessionStarted(sessionId.capture()); in testRequestMacAddresses()
292 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
296 inOrder.verify(mockSessionCallback2).onSessionStarted(sessionId.capture()); in testRequestMacAddresses()
303 inOrder.verify(mockSessionCallback1).onMatch(peerIdCaptor.capture(), isNull(), in testRequestMacAddresses()
305 inOrder.verify(mockSessionCallback1).onMatchWithDistance(peerIdCaptor.capture(), isNull(), in testRequestMacAddresses()
312 inOrder.verify(mockSessionCallback2).onMatch(peerIdCaptor.capture(), isNull(), isNull()); in testRequestMacAddresses()
[all …]
DWifiAwareNativeManagerTest.java107 mManagerStatusListenerCaptor.capture(), any()); in setUp()
131 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface()
149 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testControlFlowWithoutInterface()
179 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testReferenceCounting()
187 mInOrder.verify(mHalDeviceManager).createNanIface(mDestroyedListenerCaptor.capture(), in testReferenceCounting()
201 mInOrder.verify(mHalDeviceManager).createNanIface(mDestroyedListenerCaptor.capture(), in testReferenceCounting()
240 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testRequestFlowWithAsyncDeletes()
248 mInOrder.verify(mHalDeviceManager).createNanIface(mDestroyedListenerCaptor.capture(), in testRequestFlowWithAsyncDeletes()
282 eq(IfaceType.NAN), mAvailListenerCaptor.capture(), any(Handler.class)); in testBasicFlowHal12()
290 mInOrder.verify(mHalDeviceManager).createNanIface(mDestroyedListenerCaptor.capture(), in testBasicFlowHal12()
DWifiAwareDataPathStateManagerTest.java210 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces()
218 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
219 interfaceName.capture()); in testCreateDeleteAllInterfaces()
233 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
234 interfaceName.capture()); in testCreateDeleteAllInterfaces()
254 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
255 interfaceName.capture()); in testCreateDeleteAllInterfaces()
261 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces()
262 interfaceName.capture()); in testCreateDeleteAllInterfaces()
413 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testDestroyNdiDuringNdpSetupResponder()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierActionAgentTest.java98 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
99 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
105 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
108 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
119 verify(mDataActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
123 verify(mRadioActionHandler, times(2)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPM()
140 verify(mDataActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
141 verify(mRadioActionHandler, times(0)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
148 verify(mDataActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
152 verify(mRadioActionHandler, times(1)).sendMessageAtTime(message.capture(), anyLong()); in testCarrierActionResetOnAPNChange()
[all …]
DCarrierSignalAgentTest.java91 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
100 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
108 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyManifestReceivers()
133 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
142 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
152 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotifyRuntimeReceivers()
181 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
189 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
200 verify(mContext, times(++count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
204 verify(mContext, times(count)).sendBroadcast(mCaptorIntent.capture()); in testNotify()
[all …]
DRILTest.java343 verify(mRadioProxy, atLeast(1)).getIccCardStatus(mSerialNumberCaptor.capture()); in testRadioErrorWithContinuousSystemErr()
356 verify(mRadioProxy).getIccCardStatus(mSerialNumberCaptor.capture()); in testGetIccCardStatus()
367 verify(mRadioProxy).supplyIccPinForApp(mSerialNumberCaptor.capture(), eq(pin), eq(aid)); in testSupplyIccPinForApp()
379 .supplyIccPukForApp(mSerialNumberCaptor.capture(), eq(puk), eq(newPin), eq(aid)); in testSupplyIccPukForApp()
390 mSerialNumberCaptor.capture(), eq(pin), eq(aid)); in testSupplyIccPin2ForApp()
403 .supplyIccPuk2ForApp(mSerialNumberCaptor.capture(), eq(puk), eq(newPin), eq(aid)); in testSupplyIccPuk2ForApp()
416 mSerialNumberCaptor.capture(), eq(oldPin), eq(newPin), eq(aid)); in testChangeIccPinForApp()
429 mSerialNumberCaptor.capture(), eq(oldPin2), eq(newPin2), eq(aid)); in testChangeIccPin2ForApp()
440 mSerialNumberCaptor.capture(), eq(netpin)); in testSupplyNetworkDepersonalization()
451 verify(mRadioProxy).getCurrentCalls(mSerialNumberCaptor.capture()); in testGetCurrentCalls()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiMonitorTest.java86 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
104 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
122 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigAuthError()
140 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
158 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigError()
175 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventSuccess()
190 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventOverlap()
205 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventTimeout()
221 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastAnqpDoneEvent()
242 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastIconDoneEvent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest11.java70 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts()
97 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
101 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
138 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
162 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts()
194 eq(CALLING_PACKAGE_1), changedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
198 eq(CALLING_PACKAGE_1), removedShortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
229 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts()
261 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_cacheShortcuts_alreadyCached()
289 eq(CALLING_PACKAGE_1), shortcuts.capture(), eq(HANDLE_USER_0)); in testShortcutChangeCallback_uncacheShortcuts()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMotionEventInjectorTest.java189 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(FLAG_PASS_TO_USER)); in testInjectEvents_shouldEmergeInOrderWithCorrectTiming()
254 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureUnderway_shouldCancelRealAndPassInjected()
274 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealMouseGestureUnderway_shouldContinueRealAndPassInjected()
286 verify(next, times(2)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
292 verify(next).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), eq(FLAG_PASS_TO_USER)); in testInjectEvents_withRealGestureFinished_shouldJustPassInjected()
305 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_openInjectedGestureInProgress_shouldCancelAndNotifyAndPassReal()
322 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_fromMouseWithInjectedGestureInProgress_shouldNotCancelAndPassReal()
349 verify(next, times(4)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testOnMotionEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassReal()
369 verify(next, times(3)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_openInjectedGestureInProgress_shouldCancelAndNotifyAndPassNew()
396 verify(next, times(4)).onMotionEvent(mCaptor1.capture(), mCaptor2.capture(), anyInt()); in testInjectEvents_closedInjectedGestureInProgress_shouldOnlyNotifyAndPassNew()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsBindingControllerImplTest.kt55 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method
124 verify(providers[0]).maybeBindAndLoad(capture(loadSubscriberCaptor)) in testBindAndLoad_cancel()
142 verify(providers[0]).maybeBindAndLoad(capture(loadSubscriberCaptor)) in testBindAndLoad_noCancelAfterOnComplete()
162 verify(providers[0]).maybeBindAndLoad(capture(subscriberCaptor)) in testLoad_onCompleteRemovesTimeout()
181 verify(providers[0]).maybeBindAndLoad(capture(subscriberCaptor)) in testLoad_onErrorRemovesTimeout()
200 verify(providers[0]).maybeBindAndLoad(capture(loadSubscriberCaptor)) in testBindAndLoad_noCancelAfterOnError()
232 verify(providers[0]).maybeBindAndLoadSuggested(capture(subscriberCaptor)) in testLoadSuggested_onCompleteRemovesTimeout()
251 verify(providers[0]).maybeBindAndLoadSuggested(capture(subscriberCaptor)) in testLoadSuggested_onErrorRemovesTimeout()
280 capture(listStringCaptor), capture(subscriberCaptor)) in testSubscribe()
309 capture(listStringCaptor), capture(subscriberCaptor)) in testUnsubscribe_refreshing()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRemoteAnimationControllerTest.java112 verify(mMockRunner).onAnimationStart(appsCaptor.capture(), wallpapersCaptor.capture(), in testRun()
113 finishedCaptor.capture()); in testRun()
226 verify(mMockRunner).onAnimationStart(appsCaptor.capture(), wallpapersCaptor.capture(), in testOneNotStarted()
227 finishedCaptor.capture()); in testOneNotStarted()
268 verify(mMockRunner).onAnimationStart(appsCaptor.capture(), wallpapersCaptor.capture(), in testChange()
269 finishedCaptor.capture()); in testChange()
316 verify(mMockRunner).onAnimationStart(appsCaptor.capture(), wallpapersCaptor.capture(), in testWallpaperIncluded_expectTarget()
317 finishedCaptor.capture()); in testWallpaperIncluded_expectTarget()
345 verify(mMockRunner).onAnimationStart(appsCaptor.capture(), wallpapersCaptor.capture(), in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning()
346 finishedCaptor.capture()); in testWallpaperAnimatorCanceled_expectAnimationKeepsRunning()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileLayoutTest.java143 .layout(left1.capture(), top1.capture(), right1.capture(), bottom1.capture()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
149 .layout(left2.capture(), top2.capture(), right2.capture(), bottom2.capture()); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java223 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
230 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
267 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
274 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
313 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
320 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
361 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete()
368 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOnInteractiveSetupComplete()
407 eq("power_double_tap_interval"), intervalCaptor.capture()); in testInterceptPowerKeyDown_longpress()
413 eq("power_consecutive_short_tap_count"), tapCountCaptor.capture()); in testInterceptPowerKeyDown_longpress()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/plugins/
DPluginInstanceManagerTest.java137 verify(sMockPlugin).onCreate(ArgumentCaptor.forClass(Context.class).capture(), in testPluginCreate()
138 ArgumentCaptor.forClass(Context.class).capture()); in testPluginCreate()
152 verify(mMockListener).onPluginDisconnected(ArgumentCaptor.forClass(Plugin.class).capture()); in testPluginDestroy()
183 verify(mMockListener).onPluginDisconnected(ArgumentCaptor.forClass(Plugin.class).capture()); in testReloadOnChange()
187 ArgumentCaptor.forClass(Context.class).capture(), in testReloadOnChange()
188 ArgumentCaptor.forClass(Context.class).capture()); in testReloadOnChange()
223 verify(sMockPlugin).onCreate(ArgumentCaptor.forClass(Context.class).capture(), in testNonDebuggable_whitelist()
224 ArgumentCaptor.forClass(Context.class).capture()); in testNonDebuggable_whitelist()
264 ArgumentCaptor.forClass(ComponentName.class).capture(), in testDisableWhitelisted()
265 ArgumentCaptor.forClass(int.class).capture(), in testDisableWhitelisted()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java690 intentCaptor.capture(), permissionCaptor.capture()); in checkSendThisDeviceChangedBroadcast()
727 intentCaptor.capture(), eq(UserHandle.ALL)); in checkSendP2pPersistentGroupsChangedBroadcast()
800 verify(mContext, times(3)).registerReceiver(mBcastRxCaptor.capture(), in setUpWifiP2pServiceImpl()
806 mAvailListenerCaptor.capture(), any(Handler.class)); in setUpWifiP2pServiceImpl()
1428 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenNoChannelUpdated()
1447 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenChannelUpdateWrongPkgName()
1466 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenPermissionDenied()
1490 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenLocationModeDisabled()
1511 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersSuccess()
1529 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestGroupInfoFailureWhenNoChannelUpdated()
[all …]
DWifiP2pMonitorTest.java69 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastSupplicantDisconnectionEvent()
85 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
87 verify(mSecondHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
101 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceIsNull()
115 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceHandlerIsNull()
/frameworks/base/wifi/tests/src/android/net/wifi/aware/
DWifiAwareManagerTest.java170 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), in testConnectFlow()
171 clientProxyCallback.capture(), isNull(), eq(false)); in testConnectFlow()
174 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFlow()
193 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), any(), isNull(), in testConnectFlow()
215 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure()
223 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure()
227 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFailure()
253 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testInvalidConnectSequence()
261 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testInvalidConnectSequence()
308 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testPublishFlow()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/assist/
DAssistHandleLikeHomeBehaviorTest.java137 verify(mMockStatusBarStateController).addCallback(stateListener.capture()); in onModeDeactivated_stopsObserving()
138 verify(mMockWakefulnessLifecycle).addObserver(observer.capture()); in onModeDeactivated_stopsObserving()
139 verify(mMockSysUiState).addCallback(sysUiStateCallback.capture()); in onModeDeactivated_stopsObserving()
213 verify(mMockStatusBarStateController).addCallback(stateListener.capture()); in onBothAwakeAndUnDoze_handlesShow()
214 verify(mMockWakefulnessLifecycle).addObserver(observer.capture()); in onBothAwakeAndUnDoze_handlesShow()
270 verify(mMockStatusBarStateController).addCallback(stateListener.capture()); in onSleepOrDoze_handlesHide()
271 verify(mMockWakefulnessLifecycle).addObserver(observer.capture()); in onSleepOrDoze_handlesHide()
314 verify(mMockSysUiState).addCallback(sysUiStateCallback.capture()); in onHomeHandleHide_handlesHide()
343 verify(mMockSysUiState).addCallback(sysUiStateCallback.capture()); in onHomeHandleUnhide_handlesShow()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNotificationShadeWindowControllerTest.java97 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays()
104 verify(mWindowManager).updateViewLayout(any(), captor.capture()); in testSetDozing_hidesSystemOverlays()
132 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in attach_visibleWithWallpaper()
151 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setBouncerShowing_isFocusable_whenNeedsInput()
162 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setKeyguardShowing_focusable_notAltFocusable_whenNeedsInput()
173 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setPanelExpanded_notFocusable_altFocusable_whenPanelIsOpen()
182 verify(mWindowManager).updateViewLayout(any(), mLayoutParameters.capture()); in setKeyguardShowing_notFocusable_byDefault()
/frameworks/opt/net/wifi/libs/WifiTrackerLib/tests/src/com/android/wifitrackerlib/
DSavedNetworkTrackerTest.java140 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testWifiStateChangeBroadcast_updatesWifiState()
165 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testWifiStateChangeBroadcast_notifiesListener()
183 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testConfiguredNetworksChanged_notifiesListener()
205 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetSavedWifiEntries_onStart_entryForEachConfiguredNetwork()
224 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetSavedWifiEntries_configuredNetworksChanged_addsEntry()
254 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetSavedWifiEntries_configuredNetworksChanged_removesEntry()
276 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testScanResultsAvailableAction_notifiesListener()
296 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetSavedWifiEntries_scanResultsAvailableAction_changesLevel()
330 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetSubscriptionWifiEntries_returnsPasspointEntries()
DWifiPickerTrackerTest.java135 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testWifiStateChangeBroadcast_updatesWifiState()
161 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testWifiStateChangeBroadcast_notifiesListener()
179 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testConfiguredNetworksChanged_notifiesListener()
219 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testScanResultsAvailableAction_notifiesListener()
236 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetWifiEntries_noScans_emptyList()
256 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetWifiEntries_wifiNetworkEntries_createdForEachSsidAndSecurityPair()
289 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetWifiEntries_wifiNetworkEntries_oldEntriesTimedOut()
326 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetWifiEntries_wifiNetworkEntries_useOldEntriesOnFailedScan()
366 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetWifiEntries_configuredNetworksChanged_unsavedToSaved()
400 verify(mMockContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in testGetWifiEntries_configuredNetworksChanged_savedToUnsaved()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsListingControllerImplTest.kt55 fun <T> capture(argumentCaptor: ArgumentCaptor<T>): T = argumentCaptor.capture() in capture() method
97 verify(mockSL).addCallback(capture(serviceListingCallbackCaptor)) in capture()
163 verify(mockCallback).onServicesUpdated(capture(captor)) in testCallbackGetsList()
167 verify(mockCallbackOther).onServicesUpdated(capture(captor)) in testCallbackGetsList()
200 verify(mockCallback).onServicesUpdated(capture(captor)) in testChangeUserSendsCorrectServiceUpdate()
219 verify(mockCallback).onServicesUpdated(capture(captor)) in testChangeUserSendsCorrectServiceUpdate()

12345678910>>...16