/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceAnimatorTest.java | 91 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testRunAnimation() local 95 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in testRunAnimation() 97 callbackCaptor.getValue().onAnimationFinished(mSpec); in testRunAnimation() 113 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testOverrideAnimation() local 116 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in testOverrideAnimation() 119 callbackCaptor.getValue().onAnimationFinished(mSpec); in testOverrideAnimation() 123 verify(mSpec2).startAnimation(any(), any(), callbackCaptor.capture()); in testOverrideAnimation() 124 callbackCaptor.getValue().onAnimationFinished(mSpec2); in testOverrideAnimation() 166 final ArgumentCaptor<OnAnimationFinishedCallback> callbackCaptor = ArgumentCaptor.forClass( in testTransferAnimation() local 168 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in testTransferAnimation() [all …]
|
D | AppWindowTokenAnimationTests.java | 97 final ArgumentCaptor<SurfaceAnimator.OnAnimationFinishedCallback> callbackCaptor = in clipAfterAnim_boundsLayerIsDestroyed() local 100 verify(mSpec).startAnimation(any(), any(), callbackCaptor.capture()); in clipAfterAnim_boundsLayerIsDestroyed() 102 callbackCaptor.getValue().onAnimationFinished(mSpec); in clipAfterAnim_boundsLayerIsDestroyed()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 748 ArgumentCaptor<ISoftApCallback.Stub> callbackCaptor = in softApCallbackProxyCallsOnStateChanged() local 751 verify(mWifiService).registerSoftApCallback(any(IBinder.class), callbackCaptor.capture(), in softApCallbackProxyCallsOnStateChanged() 754 callbackCaptor.getValue().onStateChanged(WIFI_AP_STATE_ENABLED, 0); in softApCallbackProxyCallsOnStateChanged() 764 ArgumentCaptor<ISoftApCallback.Stub> callbackCaptor = in softApCallbackProxyCallsOnConnectedClientsChanged() local 767 verify(mWifiService).registerSoftApCallback(any(IBinder.class), callbackCaptor.capture(), in softApCallbackProxyCallsOnConnectedClientsChanged() 771 callbackCaptor.getValue().onConnectedClientsChanged(testClients); in softApCallbackProxyCallsOnConnectedClientsChanged() 781 ArgumentCaptor<ISoftApCallback.Stub> callbackCaptor = in softApCallbackProxyCallsOnMultipleUpdates() local 784 verify(mWifiService).registerSoftApCallback(any(IBinder.class), callbackCaptor.capture(), in softApCallbackProxyCallsOnMultipleUpdates() 788 callbackCaptor.getValue().onStateChanged(WIFI_AP_STATE_ENABLING, 0); in softApCallbackProxyCallsOnMultipleUpdates() 789 callbackCaptor.getValue().onConnectedClientsChanged(testClients); in softApCallbackProxyCallsOnMultipleUpdates() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/android/telephony/ims/ |
D | ImsMmTelManagerTests.java | 87 ArgumentCaptor<IImsRegistrationCallback> callbackCaptor = in testCallbackValues() local 90 callbackCaptor.capture()); in testCallbackValues() 92 IImsRegistrationCallback cbBinder = callbackCaptor.getValue(); in testCallbackValues()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/ |
D | EuiccConnectorTest.java | 291 ArgumentCaptor<IGetEidCallback> callbackCaptor = in testLinger() local 293 doNothing().when(mEuiccService).getEid(anyInt(), callbackCaptor.capture()); in testLinger() 305 callbackCaptor.getValue().onSuccess("ABCDE"); in testLinger() 319 ArgumentCaptor<IGetEidCallback> callbackCaptor = in testLinger_twoCommands() local 321 doNothing().when(mEuiccService).getEid(anyInt(), callbackCaptor.capture()); in testLinger_twoCommands() 337 callbackCaptor.getAllValues().get(0).onSuccess("ABCDE"); in testLinger_twoCommands() 345 callbackCaptor.getAllValues().get(1).onSuccess("ABCDE"); in testLinger_twoCommands()
|
/frameworks/base/wifi/tests/src/android/net/wifi/rtt/ |
D | WifiRttManagerTest.java | 86 ArgumentCaptor<IRttCallback> callbackCaptor = ArgumentCaptor.forClass(IRttCallback.class); in testRangeSuccess() local 91 eq(request), callbackCaptor.capture()); in testRangeSuccess() 94 callbackCaptor.getValue().onRangingResults(results); in testRangeSuccess() 110 ArgumentCaptor<IRttCallback> callbackCaptor = ArgumentCaptor.forClass(IRttCallback.class); in testRangeFail() local 115 eq(request), callbackCaptor.capture()); in testRangeFail() 118 callbackCaptor.getValue().onRangingFailure(failureCode); in testRangeFail()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | LinkProbeManagerTest.java | 132 ArgumentCaptor<WifiNative.SendMgmtFrameCallback> callbackCaptor = in testLinkProbeTriggeredAndAcked() local 134 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndAcked() 144 callbackCaptor.getValue().onAck(TEST_ELAPSED_TIME_MS); in testLinkProbeTriggeredAndAcked() 175 ArgumentCaptor<WifiNative.SendMgmtFrameCallback> callbackCaptor = in testLinkProbeTriggeredAndFailed() local 177 verify(mWifiNative).probeLink(eq(TEST_IFACE_NAME), any(), callbackCaptor.capture(), in testLinkProbeTriggeredAndFailed() 180 callbackCaptor.getValue().onFailure(WifiNative.SEND_MGMT_FRAME_ERROR_NO_ACK); in testLinkProbeTriggeredAndFailed()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | AttentionDetectorTest.java | 225 ArgumentCaptor<AttentionCallbackInternal> callbackCaptor = ArgumentCaptor.forClass( in testOnWakefulnessChangeStarted_cancelsRequestWhenNotAwake() local 227 verify(mAttentionManagerInternal).cancelAttentionCheck(callbackCaptor.capture()); in testOnWakefulnessChangeStarted_cancelsRequestWhenNotAwake() 228 assertEquals(callbackCaptor.getValue(), mAttentionDetector.mCallback); in testOnWakefulnessChangeStarted_cancelsRequestWhenNotAwake()
|
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 1920 final ArgumentCaptor<TetheredInterfaceCallback> callbackCaptor = in testNoAddressAvailable() local 1924 verify(mEm).requestTetheredInterface(any(), callbackCaptor.capture()); in testNoAddressAvailable() 1925 TetheredInterfaceCallback ethCallback = callbackCaptor.getValue(); in testNoAddressAvailable() 1948 verify(mEm).requestTetheredInterface(any(), callbackCaptor.capture()); in testNoAddressAvailable() 1949 ethCallback = callbackCaptor.getValue(); in testNoAddressAvailable()
|