Searched refs:callbackCaptor (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | SurfaceAnimatorTest.java | 82 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testRunAnimation() local 86 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in testRunAnimation() 88 callbackCaptor.getValue().onAnimationFinished(mSpec); in testRunAnimation() 104 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testOverrideAnimation() local 107 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in testOverrideAnimation() 110 callbackCaptor.getValue().onAnimationFinished(mSpec); in testOverrideAnimation() 114 verify(mSpec2).startAnimation(any(), any(), callbackCaptor.capture()); in testOverrideAnimation() 115 callbackCaptor.getValue().onAnimationFinished(mSpec2); in testOverrideAnimation() 157 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testTransferAnimation() local 159 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in testTransferAnimation() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccConnectorTest.java | 287 ArgumentCaptor<IGetEidCallback> callbackCaptor = in testLinger() local 289 doNothing().when(mEuiccService).getEid(anyInt(), callbackCaptor.capture()); in testLinger() 301 callbackCaptor.getValue().onSuccess("ABCDE"); in testLinger() 315 ArgumentCaptor<IGetEidCallback> callbackCaptor = in testLinger_twoCommands() local 317 doNothing().when(mEuiccService).getEid(anyInt(), callbackCaptor.capture()); in testLinger_twoCommands() 333 callbackCaptor.getAllValues().get(0).onSuccess("ABCDE"); in testLinger_twoCommands() 341 callbackCaptor.getAllValues().get(1).onSuccess("ABCDE"); in testLinger_twoCommands()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 709 ArgumentCaptor<ISoftApCallback.Stub> callbackCaptor = in softApCallbackProxyCallsOnStateChanged() local 712 verify(mWifiService).registerSoftApCallback(any(IBinder.class), callbackCaptor.capture(), in softApCallbackProxyCallsOnStateChanged() 715 callbackCaptor.getValue().onStateChanged(WIFI_AP_STATE_ENABLED, 0); in softApCallbackProxyCallsOnStateChanged() 725 ArgumentCaptor<ISoftApCallback.Stub> callbackCaptor = in softApCallbackProxyCallsOnNumClientsChanged() local 728 verify(mWifiService).registerSoftApCallback(any(IBinder.class), callbackCaptor.capture(), in softApCallbackProxyCallsOnNumClientsChanged() 732 callbackCaptor.getValue().onNumClientsChanged(testNumClients); in softApCallbackProxyCallsOnNumClientsChanged() 742 ArgumentCaptor<ISoftApCallback.Stub> callbackCaptor = in softApCallbackProxyCallsOnMultipleUpdates() local 745 verify(mWifiService).registerSoftApCallback(any(IBinder.class), callbackCaptor.capture(), in softApCallbackProxyCallsOnMultipleUpdates() 749 callbackCaptor.getValue().onStateChanged(WIFI_AP_STATE_ENABLING, 0); in softApCallbackProxyCallsOnMultipleUpdates() 750 callbackCaptor.getValue().onNumClientsChanged(testNumClients); in softApCallbackProxyCallsOnMultipleUpdates() [all …]
|
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 83 ArgumentCaptor<IRttCallback> callbackCaptor = ArgumentCaptor.forClass(IRttCallback.class); in testRangeSuccess() local 88 eq(request), callbackCaptor.capture()); in testRangeSuccess() 91 callbackCaptor.getValue().onRangingResults(results); in testRangeSuccess() 107 ArgumentCaptor<IRttCallback> callbackCaptor = ArgumentCaptor.forClass(IRttCallback.class); in testRangeFail() local 112 eq(request), callbackCaptor.capture()); in testRangeFail() 115 callbackCaptor.getValue().onRangingFailure(failureCode); in testRangeFail()
|