/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CallbackHandlerTest.java | 65 Mockito.verify(mEmengencyListener).setEmergencyCallsOnly(captor.capture()); in testEmergencyListener() 85 Mockito.verify(mSignalCallback).setWifiIndicators(enableArg.capture(), in testSignalCallback_setWifiIndicators() 86 statusArg.capture(), qsArg.capture(), inArg.capture(), outArg.capture(), in testSignalCallback_setWifiIndicators() 87 descArg.capture()); in testSignalCallback_setWifiIndicators() 122 Mockito.verify(mSignalCallback).setMobileDataIndicators(statusArg.capture(), in testSignalCallback_setMobileDataIndicators() 123 qsArg.capture(), typeIconArg.capture(), qsTypeIconArg.capture(), inArg.capture(), in testSignalCallback_setMobileDataIndicators() 124 outArg.capture(), typeContentArg.capture(), descArg.capture(), wideArg.capture(), in testSignalCallback_setMobileDataIndicators() 125 subIdArg.capture(), eq(roaming)); in testSignalCallback_setMobileDataIndicators() 145 Mockito.verify(mSignalCallback).setSubs(subsArg.capture()); in testSignalCallback_setSubs() 155 Mockito.verify(mSignalCallback).setNoSims(noSimsArg.capture()); in testSignalCallback_setNoSims() [all …]
|
D | NetworkControllerBaseTest.java | 273 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setNoSims(hasNoSimsArg.capture()); in verifyHasNoSims() 285 ArgumentCaptor.forClass(IconState.class).capture(), in verifyLastQsMobileDataIndicators() 286 iconArg.capture(), in verifyLastQsMobileDataIndicators() 287 ArgumentCaptor.forClass(Integer.class).capture(), in verifyLastQsMobileDataIndicators() 288 typeIconArg.capture(), dataInArg.capture(), dataOutArg.capture(), in verifyLastQsMobileDataIndicators() 311 iconArg.capture(), in verifyLastMobileDataIndicators() 313 typeIconArg.capture(), in verifyLastMobileDataIndicators() 333 iconArg.capture(), in verifyLastMobileDataIndicators() 334 qsIconArg.capture(), in verifyLastMobileDataIndicators() 335 typeIconArg.capture(), in verifyLastMobileDataIndicators() [all …]
|
D | NetworkControllerWifiTest.java | 143 inArg.capture(), outArg.capture(), Mockito.anyString()); in verifyLastQsDataDirection() 155 enabledArg.capture(), Mockito.any(IconState.class), in verifyLastQsWifiIcon() 156 iconArg.capture(), Mockito.anyBoolean(), in verifyLastQsWifiIcon() 158 descArg.capture()); in verifyLastQsWifiIcon() 170 Mockito.anyBoolean(), iconArg.capture(), Mockito.any(IconState.class), in verifyLastWifiIcon()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockLooperTest.java | 83 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 85 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 87 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 89 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 115 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 117 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 144 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 146 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 148 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 178 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeTwice() [all …]
|
D | RttServiceTest.java | 84 verify(mContext).registerReceiver(mBroadcastReceiverCaptor.capture(), in startWifi() 118 verify(handler, atLeastOnce()).handleMessage(messageCaptor.capture()); in sendRangingRequest() 154 verify(handler, atLeastOnce()).handleMessage(messageCaptor.capture()); in sendEnableResponder()
|
/frameworks/base/tests/utils/testutils/java/android/os/test/ |
D | TestLooperTest.java | 83 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 85 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 87 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 89 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testNoTimeMovement() 115 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 117 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchNoTimeMove() 144 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 146 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 148 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeOnce() 178 inOrder.verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testDelayedDispatchAdvanceTimeTwice() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/ |
D | WifiNanStateManagerTest.java | 111 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest1)); in testNanEventsDelivered() 117 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest2)); in testNanEventsDelivered() 164 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest1)); in testNanEventsNotDelivered() 170 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), eq(configRequest2)); in testNanEventsNotDelivered() 225 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(0), eq(publishData), in testPublish() 238 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(0), eq(publishData), in testPublish() 254 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(0), eq(publishData), in testPublish() 262 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(publishId2), in testPublish() 307 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(0), eq(publishData), in testPublishNoCallbacks() 319 inOrder.verify(mMockNative).publish(transactionId.capture(), eq(0), eq(publishData), in testPublishNoCallbacks() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 182 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallWaiting() 209 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallHold() 248 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallEct() 265 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallCcbs() 371 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testSuppServiceNotification() 434 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testIncomingRing() 447 verify(mImsUtInterface).queryCLIR(messageArgumentCaptor.capture()); in testOutgoingCallerIdDisplay() 451 verify(mImsUtInterface).updateCLIR(eq(1234), messageArgumentCaptor.capture()); in testOutgoingCallerIdDisplay() 464 (String) eq(null), messageArgumentCaptor.capture()); in testCallForwardingOption() 481 verify(mImsUtInterface).queryCallWaiting(messageArgumentCaptor.capture()); in testCallWaiting() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTrackerTest.java | 243 sendStickyBroadcastAsUser(intentArgumentCaptor.capture(), eq(UserHandle.ALL)); in testSpnUpdateShowPlmnOnly() 266 verify(mTelephonyManager).setDataNetworkTypeForPhone(anyInt(), intArgumentCaptor.capture()); in testSpnUpdateShowPlmnOnly() 389 verify(mRuimRecords).registerForRecordsLoaded(eq(sst), integerArgumentCaptor.capture(), in testUpdatePhoneType() 435 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForVoiceRoamingOn() 482 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForVoiceRoamingOff() 521 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataRoamingOn() 568 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataRoamingOff() 614 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataConnAttach() 658 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataConnDetach() 695 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegisterForDataRegStateOrRatChange() [all …]
|
D | DefaultPhoneNotifierTest.java | 112 signalStrengthArgumentCaptor.capture()); in testNotifySignalStrength() 119 signalStrengthArgumentCaptor.capture()); in testNotifySignalStrength() 133 cellInfoArgumentCaptor.capture()); in testNotifyCellInfo() 250 cellLocationCapture.capture()); in testNotifyCellLocation() 259 cellLocationCapture.capture()); in testNotifyCellLocation()
|
D | GsmCdmaCallTrackerTest.java | 341 … verify(mHandler,times(1)).sendMessageAtTime(mCaptorMessage.capture(), mCaptorLong.capture()); in testVoiceCallStartListener() 353 … verify(mHandler,times(1)).sendMessageAtTime(mCaptorMessage.capture(), mCaptorLong.capture()); in testVoiceCallEndedListener()
|
D | CallManagerTest.java | 148 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testBasicDial() 291 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testFgCallActiveDial()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileServicesTests.java | 68 Mockito.verify(mManagers.get(i), Mockito.times(1)).setBindAllowed(captor.capture()); in testRecalculateBindAllowance() 81 Mockito.verify(mManagers.get(i), Mockito.times(2)).setBindAllowed(captor.capture()); in testSetMemoryPressure() 101 Mockito.verify(mManagers.get(i), Mockito.times(1)).setBindAllowed(captor.capture()); in testCalcFew()
|
D | TileServiceManagerTests.java | 87 Mockito.verify(mTileLifecycle, Mockito.times(1)).setBindService(captor.capture()); in testBind() 98 Mockito.verify(mTileLifecycle, Mockito.times(2)).setBindService(captor.capture()); in testBind()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCardTest.java | 227 verify(mMockedHandler, atLeast(1)).sendMessageDelayed(mCaptorMessage.capture(), in testCarrierPriviledgeLoadedListener() 228 mCaptorLong.capture()); in testCarrierPriviledgeLoadedListener() 253 verify(mMockedHandler, atLeast(1)).sendMessageDelayed(mCaptorMessage.capture(), in testCardAbsentListener() 254 mCaptorLong.capture()); in testCardAbsentListener()
|
/frameworks/base/packages/SettingsLib/tests/src/com/android/settingslib/wifi/ |
D | AccessPointTest.java | 86 .onLevelChanged(accessPoint.capture()); in verifyOnLevelChangedCallback() 93 .onAccessPointChanged(accessPoint.capture()); in verifyOnAccessPointsCallback()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DcTrackerTest.java | 428 eq(Phone.REASON_SIM_LOADED), apnTypeArgumentCaptor.capture(), in testDataSetup() 439 eq(Phone.REASON_DATA_ATTACHED), apnTypeArgumentCaptor.capture(), in testDataSetup() 446 eq(Phone.REASON_DATA_ENABLED), apnTypeArgumentCaptor.capture(), in testDataSetup() 491 eq(Phone.REASON_SIM_LOADED), apnTypeArgumentCaptor.capture(), in testDataRetry() 502 eq(Phone.REASON_DATA_ATTACHED), apnTypeArgumentCaptor.capture(), in testDataRetry() 509 eq(Phone.REASON_DATA_ENABLED), apnTypeArgumentCaptor.capture(), in testDataRetry() 727 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach() 733 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach() 739 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach() 758 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach()
|
/frameworks/base/docs/html/guide/topics/media/ |
D | audio-capture.jd | 39 <p class="note"><strong>Note:</strong> The Android Emulator does not have the ability to capture 44 <p>Audio capture from the device is a bit more complicated than audio and video playback, but still 63 <li>To start audio capture, call 65 <li>To stop audio capture, call {@link android.media.MediaRecorder#stop MediaRecorder.stop()}. 73 <p>The example class below illustrates how to set up, start and stop audio capture, and to play the
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | Camera2Focuser.java | 223 mSession.capture(requestBuilder.build(), listener, mHandler); in cancelAutoFocus() 260 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusLocked() 284 mSession.capture(requestBuilder.build(), listener, mHandler); in startAutoFocusFullActiveLocked()
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | CaptureCollector.java | 652 private void onRequestCompleted(CaptureHolder capture) { in onRequestCompleted() argument 653 RequestHolder request = capture.mRequest; in onRequestCompleted() 665 mCompletedRequests.add(capture); in onRequestCompleted() 666 mActiveRequests.remove(capture); in onRequestCompleted()
|
/frameworks/base/services/tests/servicestests/src/android/net/ |
D | ConnectivityMetricsLoggerTest.java | 108 verify(mService, times(1)).logEvents(evArrayCaptor.capture()); in testLogEventRecoverFromThrottling() 115 verify(mService, times(n)).logEvent(evCaptor.capture()); in verifyEvents()
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TextToSpeechTests.java | 108 LittleMock.verify(delegate, LittleMock.times(1)).onSynthesizeText(req.capture(), in testSetLanguage_availableLanguage() 131 LittleMock.verify(delegate, LittleMock.times(1)).onSynthesizeText(req2.capture(), in testSetLanguage_unavailableLanguage() 175 LittleMock.verify(delegate, LittleMock.times(1)).onSynthesizeText(req.capture(), in testDefaultLanguage_setsVoiceName()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | Camera2StillCaptureTest.java | 305 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 313 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 320 mSession.capture(previewRequest.build(), resultListener, mHandler); in takePictureTestByCamera() 345 mSession.capture(request, resultListener, mHandler); in takePictureTestByCamera() 434 mSession.capture(multiRequest, resultListener, mHandler); in fullRawCaptureTestByCamera()
|
/frameworks/support/core-ui/tests/java/android/support/v4/view/ |
D | BaseViewPagerTest.java | 280 verify(mockPageChangeListener, times(4)).onPageSelected(pageSelectedCaptor.capture()); in verifyPageSelections() 353 verify(mockPageChangeListener, times(4)).onPageSelected(pageSelectedCaptor.capture()); in verifyPageChangeViewActions() 653 onPageScrollStateChanged(pageScrollStateCaptor.capture()); in verifyScrollStateChange() 947 verify(mockPageChangeListener, atLeastOnce()).onPageScrolled(positionCaptor.capture(), in verifyScrollCallbacksToHigherPage() 948 positionOffsetCaptor.capture(), positionOffsetPixelsCaptor.capture()); in verifyScrollCallbacksToHigherPage() 975 verify(mockPageChangeListener, atLeastOnce()).onPageScrolled(positionCaptor.capture(), in verifyScrollCallbacksToLowerPage() 976 positionOffsetCaptor.capture(), positionOffsetPixelsCaptor.capture()); in verifyScrollCallbacksToLowerPage()
|
/frameworks/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/ |
D | CameraTooActivity.java | 192 mCaptureSession.capture(requester.build(), /*listener*/null, /*handler*/null); in onClickOnSurfaceView() 403 public CapturedImageSaver(Image capture) { in CapturedImageSaver() argument 404 mCapture = capture; in CapturedImageSaver()
|