Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackHandlerTest.java63 Mockito.verify(mEmengencyListener).setEmergencyCallsOnly(captor.capture()); in testEmergencyListener()
83 Mockito.verify(mSignalCallback).setWifiIndicators(enableArg.capture(), in testSignalCallback_setWifiIndicators()
84 statusArg.capture(), qsArg.capture(), inArg.capture(), outArg.capture(), in testSignalCallback_setWifiIndicators()
85 descArg.capture()); in testSignalCallback_setWifiIndicators()
119 Mockito.verify(mSignalCallback).setMobileDataIndicators(statusArg.capture(), in testSignalCallback_setMobileDataIndicators()
120 qsArg.capture(), typeIconArg.capture(), qsTypeIconArg.capture(), inArg.capture(), in testSignalCallback_setMobileDataIndicators()
121 outArg.capture(), typeContentArg.capture(), descArg.capture(), wideArg.capture(), in testSignalCallback_setMobileDataIndicators()
122 subIdArg.capture()); in testSignalCallback_setMobileDataIndicators()
142 Mockito.verify(mSignalCallback).setSubs(subsArg.capture()); in testSignalCallback_setSubs()
152 Mockito.verify(mSignalCallback).setNoSims(noSimsArg.capture()); in testSignalCallback_setNoSims()
[all …]
DNetworkControllerBaseTest.java266 Mockito.verify(mCallbackHandler, Mockito.atLeastOnce()).setNoSims(hasNoSimsArg.capture()); in verifyHasNoSims()
278 ArgumentCaptor.forClass(IconState.class).capture(), in verifyLastQsMobileDataIndicators()
279 iconArg.capture(), in verifyLastQsMobileDataIndicators()
280 ArgumentCaptor.forClass(Integer.class).capture(), in verifyLastQsMobileDataIndicators()
281 typeIconArg.capture(), dataInArg.capture(), dataOutArg.capture(), in verifyLastQsMobileDataIndicators()
282 ArgumentCaptor.forClass(String.class).capture(), in verifyLastQsMobileDataIndicators()
283 ArgumentCaptor.forClass(String.class).capture(), in verifyLastQsMobileDataIndicators()
284 ArgumentCaptor.forClass(Boolean.class).capture(), in verifyLastQsMobileDataIndicators()
285 ArgumentCaptor.forClass(Integer.class).capture()); in verifyLastQsMobileDataIndicators()
302 iconArg.capture(), in verifyLastMobileDataIndicators()
[all …]
DNetworkControllerWifiTest.java142 inArg.capture(), outArg.capture(), Mockito.anyString()); in verifyLastQsDataDirection()
154 enabledArg.capture(), Mockito.any(IconState.class), in verifyLastQsWifiIcon()
155 iconArg.capture(), Mockito.anyBoolean(), in verifyLastQsWifiIcon()
157 descArg.capture()); in verifyLastQsWifiIcon()
169 Mockito.anyBoolean(), iconArg.capture(), Mockito.any(IconState.class), in verifyLastWifiIcon()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockLooperTest.java83 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 …]
DRttServiceTest.java84 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/nan/
DWifiNanStateManagerTest.java111 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 …]
DWifiNanHalTest.java157 verify(mNanHalMock).publishCancelHalMockNative(eq(transactionId), mArgs.capture()); in testPublishCancel()
213 verify(mNanHalMock).subscribeCancelHalMockNative(eq(transactionId), mArgs.capture()); in testSubscribeCancel()
231 verify(mNanHalMock).transmitFollowupHalMockNative(eq(transactionId), mArgs.capture()); in testSendMessage()
291 capabilitiesCapture.capture()); in testNotifyCapabilities()
602 verify(mNanHalMock).enableHalMockNative(eq(transactionId), mArgs.capture()); in testEnable()
663 verify(mNanHalMock).publishHalMockNative(eq(transactionId), mArgs.capture()); in testPublish()
712 verify(mNanHalMock).subscribeHalMockNative(eq(transactionId), mArgs.capture()); in testSubscribe()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneTest.java172 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallWaiting()
199 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallHold()
238 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallEct()
255 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testHandleInCallMmiCommandCallCcbs()
361 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testSuppServiceNotification()
424 verify(mTestHandler, times(1)).sendMessageAtTime(messageArgumentCaptor.capture(), in testIncomingRing()
437 verify(mImsUtInterface).queryCLIR(messageArgumentCaptor.capture()); in testOutgoingCallerIdDisplay()
441 verify(mImsUtInterface).updateCLIR(eq(1234), messageArgumentCaptor.capture()); in testOutgoingCallerIdDisplay()
453 (String) eq(null), messageArgumentCaptor.capture()); in testCallForwardingOption()
470 verify(mImsUtInterface).queryCallWaiting(messageArgumentCaptor.capture()); in testCallWaiting()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java206 sendStickyBroadcastAsUser(intentArgumentCaptor.capture(), eq(UserHandle.ALL)); in testSpnUpdateShowPlmnOnly()
229 verify(mTelephonyManager).setDataNetworkTypeForPhone(anyInt(), intArgumentCaptor.capture()); in testSpnUpdateShowPlmnOnly()
351 verify(mRuimRecords).registerForRecordsLoaded(eq(sst), integerArgumentCaptor.capture(), in testUpdatePhoneType()
397 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForVoiceRoamingOn()
444 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForVoiceRoamingOff()
483 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataRoamingOn()
530 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataRoamingOff()
576 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataConnAttach()
620 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegAndUnregForDataConnDetach()
657 verify(mTestHandler).sendMessageAtTime(messageArgumentCaptor.capture(), anyLong()); in testRegisterForDataRegStateOrRatChange()
[all …]
DDefaultPhoneNotifierTest.java112 signalStrengthArgumentCaptor.capture()); in testNotifySignalStrength()
119 signalStrengthArgumentCaptor.capture()); in testNotifySignalStrength()
133 cellInfoArgumentCaptor.capture()); in testNotifyCellInfo()
250 cellLocationCapture.capture()); in testNotifyCellLocation()
259 cellLocationCapture.capture()); in testNotifyCellLocation()
DGsmCdmaCallTrackerTest.java338 … verify(mHandler,times(1)).sendMessageAtTime(mCaptorMessage.capture(), mCaptorLong.capture()); in testVoiceCallStartListener()
350 … verify(mHandler,times(1)).sendMessageAtTime(mCaptorMessage.capture(), mCaptorLong.capture()); in testVoiceCallEndedListener()
DCallManagerTest.java147 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testBasicDial()
290 verify(mPhone, times(1)).dial(mCaptorString.capture(), mCaptorInt.capture()); in testFgCallActiveDial()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java402 eq(Phone.REASON_SIM_LOADED), apnTypeArgumentCaptor.capture(), in testDataSetup()
413 eq(Phone.REASON_DATA_ATTACHED), apnTypeArgumentCaptor.capture(), in testDataSetup()
420 eq(Phone.REASON_DATA_ENABLED), apnTypeArgumentCaptor.capture(), in testDataSetup()
465 eq(Phone.REASON_SIM_LOADED), apnTypeArgumentCaptor.capture(), in testDataRetry()
476 eq(Phone.REASON_DATA_ATTACHED), apnTypeArgumentCaptor.capture(), in testDataRetry()
483 eq(Phone.REASON_DATA_ENABLED), apnTypeArgumentCaptor.capture(), in testDataRetry()
700 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach()
706 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach()
712 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach()
732 intArgumentCaptor.capture(), eq(null)); in testDDSResetAutoAttach()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileServicesTests.java68 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()
DTileServiceManagerTests.java87 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/
DUiccCardTest.java227 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/
DAccessPointTest.java86 .onLevelChanged(accessPoint.capture()); in verifyOnLevelChangedCallback()
93 .onAccessPointChanged(accessPoint.capture()); in verifyOnAccessPointsCallback()
/frameworks/base/docs/html/guide/topics/media/
Daudio-capture.jd39 <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
Dcamera.jd14 <li><a href="#intent-image">Image capture intent</a></li>
15 <li><a href="#intent-video">Video capture intent</a></li>
25 <li><a href="#capture-picture">Capturing pictures</a></li>
26 <li><a href="#capture-video">Capturing videos</a></li>
58 devices, allowing you to capture pictures and videos in your applications. This document discusses a
59 quick, simple approach to image and video capture and outlines an advanced approach for creating
109 MediaStore.ACTION_VIDEO_CAPTURE} can be used to capture images or videos without directly
155 <li><strong>Audio Recording Permission</strong> - For recording audio with video capture, your
156 application must request the audio capture permission.
175 camera intent makes a request to capture a picture or video clip through an existing camera app and
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCamera2Focuser.java223 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/support/v4/tests/java/android/support/v4/view/
DBaseViewPagerTest.java251 verify(mockPageChangeListener, times(4)).onPageSelected(pageSelectedCaptor.capture()); in verifyPageSelections()
310 verify(mockPageChangeListener, times(4)).onPageSelected(pageSelectedCaptor.capture()); in testPageSwipes()
598 onPageScrollStateChanged(pageScrollStateCaptor.capture()); in verifyScrollStateChange()
892 verify(mockPageChangeListener, atLeastOnce()).onPageScrolled(positionCaptor.capture(), in verifyScrollCallbacksToHigherPage()
893 positionOffsetCaptor.capture(), positionOffsetPixelsCaptor.capture()); in verifyScrollCallbacksToHigherPage()
920 verify(mockPageChangeListener, atLeastOnce()).onPageScrolled(positionCaptor.capture(), in verifyScrollCallbacksToLowerPage()
921 positionOffsetCaptor.capture(), positionOffsetPixelsCaptor.capture()); in verifyScrollCallbacksToLowerPage()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DCaptureCollector.java652 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/tests/TtsTests/src/com/android/speech/tts/
DTextToSpeechTests.java108 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/
DCamera2StillCaptureTest.java305 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/base/tests/Camera2Tests/CameraToo/src/com/example/android/camera2/cameratoo/
DCameraTooActivity.java192 mCaptureSession.capture(requester.build(), /*listener*/null, /*handler*/null); in onClickOnSurfaceView()
403 public CapturedImageSaver(Image capture) { in CapturedImageSaver() argument
404 mCapture = capture; in CapturedImageSaver()

123456