/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareStateManagerTest.java | 180 verify(mMockContext, times(3)).registerReceiver(bcastRxCaptor.capture(), in setUp() 190 verify(mMockNative).getCapabilities(transactionId.capture()); in setUp() 287 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses() 305 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 309 inOrder.verify(mockSessionCallback1).onSessionStarted(sessionId.capture()); in testRequestMacAddresses() 313 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 317 inOrder.verify(mockSessionCallback2).onSessionStarted(sessionId.capture()); in testRequestMacAddresses() 324 inOrder.verify(mockSessionCallback1).onMatch(peerIdCaptor.capture(), isNull(), in testRequestMacAddresses() 326 inOrder.verify(mockSessionCallback1).onMatchWithDistance(peerIdCaptor.capture(), isNull(), in testRequestMacAddresses() 333 inOrder.verify(mockSessionCallback2).onMatch(peerIdCaptor.capture(), isNull(), isNull()); in testRequestMacAddresses() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 220 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces() 228 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 229 interfaceName.capture()); in testCreateDeleteAllInterfaces() 243 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 244 interfaceName.capture()); in testCreateDeleteAllInterfaces() 265 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 266 interfaceName.capture()); in testCreateDeleteAllInterfaces() 272 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 273 interfaceName.capture()); in testCreateDeleteAllInterfaces() 429 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testDestroyNdiDuringNdpSetupResponder() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 88 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testUpdateBatteryLevel_normalSequence() 105 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testUpdateBatteryLevel_normalSequence() 106 mStringArgument.capture(), any(Bundle.class)); in testUpdateBatteryLevel_normalSequence() 172 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 186 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 187 mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate() 203 verify(mAdapterService, times(3)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 204 mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate() 220 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testResetBatteryLevelOnHeadsetStateChange() 236 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevelOnHeadsetStateChange() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMonitorTest.java | 91 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 112 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorWepProhibhited() 130 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigAuthError() 148 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigPbcOverlapError() 166 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigError() 183 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventSuccess() 198 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventOverlap() 213 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventTimeout() 229 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastAnqpDoneEvent() 250 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastIconDoneEvent() [all …]
|
D | WifiScoreReportTest.java | 303 verify(mNetworkAgent).sendNetworkScore(networkScoreCaptor.capture()); in mbbNetworkForceKeepUp() 316 verify(mNetworkAgent, times(2)).sendNetworkScore(networkScoreCaptor.capture()); in mbbNetworkForceKeepUp() 338 verify(mNetworkAgent).sendNetworkScore(networkScoreCaptor.capture()); in calculateAndReportScoreWhileLingering_sendLingeringScore() 352 verify(mNetworkAgent, times(3)).sendNetworkScore(networkScoreCaptor.capture()); in calculateAndReportScoreWhileLingering_sendLingeringScore() 374 verify(mNetworkAgent, times(6)).sendNetworkScore(networkScoreCaptor.capture()); in calculateAndReportScoreWhileLingering_sendLingeringScore() 393 mExternalScoreUpdateObserverCbCaptor.capture()); in testExternalScorerWhileLingering_sendLingeringScore() 407 verify(mNetworkAgent).sendNetworkScore(networkScoreCaptor.capture()); in testExternalScorerWhileLingering_sendLingeringScore() 509 verify(mNetworkAgent, times(2)).sendNetworkScore(scoreCaptor.capture()); in giveUpOnBadRssiWhenDataIsNotMoving() 930 mExternalScoreUpdateObserverCbCaptor.capture()); in testFrameworkGetsUpdatesScore() 995 mExternalScoreUpdateObserverCbCaptor.capture()); in testFrameworkTriggersUpdateOfWifiUsabilityStats() [all …]
|
D | SupplicantStateTrackerTest.java | 101 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testSupplicantStateChangeIntent() 104 verify(mContext).sendStickyBroadcastAsUser(mIntentCaptor.capture(), eq(UserHandle.ALL)); in testSupplicantStateChangeIntent() 122 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testAuthPassInSupplicantStateChangeIntent() 125 verify(mContext).sendStickyBroadcastAsUser(mIntentCaptor.capture(), eq(UserHandle.ALL)); in testAuthPassInSupplicantStateChangeIntent() 144 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testAuthFailedInSupplicantStateChangeIntent() 147 verify(mContext).sendStickyBroadcastAsUser(mIntentCaptor.capture(), eq(UserHandle.ALL)); in testAuthFailedInSupplicantStateChangeIntent() 169 eq(mClientModeManager), mQueuedBroadcastCaptor.capture()); in testReasonCodeInSupplicantStateChangeIntent() 172 verify(mContext).sendStickyBroadcastAsUser(mIntentCaptor.capture(), eq(UserHandle.ALL)); in testReasonCodeInSupplicantStateChangeIntent()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallAudioManagerTest.java | 126 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); in testUnmuteOfSecondIncomingCall() 139 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); in testUnmuteOfSecondIncomingCall() 160 .sendMessageWithSessionInfo(muteCaptor.capture()); in testUnmuteOfSecondIncomingCall() 188 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); 201 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 223 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 225 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); 260 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 276 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 285 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); [all …]
|
D | CallerInfoLookupHelperTest.java | 138 queryListenerCaptor.capture(), logSessionCaptor.capture()); in testSimpleLookup() 149 eq(CONTACTS_PHOTO_URI), imageListenerCaptor.capture(), logSessionCaptor.capture()); in testSimpleLookup() 177 eq(URI1.getSchemeSpecificPart()), queryListenerCaptor.capture(), in testLookupWithTwoListeners() 178 logSessionCaptor.capture()); in testLookupWithTwoListeners() 189 eq(CONTACTS_PHOTO_URI), imageListenerCaptor.capture(), logSessionCaptor.capture()); in testLookupWithTwoListeners() 217 eq(URI1.getSchemeSpecificPart()), queryListenerCaptor.capture(), in testListenerAddedAfterCallerInfoBeforePhoto() 218 logSessionCaptor.capture()); in testListenerAddedAfterCallerInfoBeforePhoto() 228 eq(CONTACTS_PHOTO_URI), imageListenerCaptor.capture(), logSessionCaptor.capture()); in testListenerAddedAfterCallerInfoBeforePhoto()
|
D | InCallControllerTests.java | 209 verify(mMockSystemStateHelper).addListener(systemStateListenerArgumentCaptor.capture()); in setUp() 348 bindIntentCaptor.capture(), in testBindToService_NoServicesFound_IncomingCall() 383 bindIntentCaptor.capture(), in testBindToService_NoServicesFound_OutgoingCall() 423 queryIntentCaptor.capture(), in testBindToService_DefaultDialer_NoEmergency() 436 bindIntentCaptor.capture(), in testBindToService_DefaultDialer_NoEmergency() 483 queryIntentCaptor.capture(), in testBindToService_SystemDialer_Emergency() 496 bindIntentCaptor.capture(), in testBindToService_SystemDialer_Emergency() 547 when(mMockContext.bindServiceAsUser(any(Intent.class), serviceConnectionCaptor.capture(), in testBindToService_SystemDialer_Crash() 562 queryIntentCaptor.capture(), in testBindToService_SystemDialer_Crash() 575 bindIntentCaptor.capture(), in testBindToService_SystemDialer_Crash() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | PrivacyChipViewControllerTest.java | 146 verify(mExecutor).execute(mRunnableArgumentCaptor.capture()); in addPrivacyChipView_privacyChipViewPresent_micStatusSet() 171 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItems_animateInCalled() 177 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItems_animateInCalled() 187 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItemsTwice_animateInCalledOnce() 195 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItemsTwice_animateInCalledOnce() 205 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItems_animateOutCalled() 213 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItems_animateOutCalled() 223 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce() 232 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce() 242 /* userId= */ eq(0), mOnSensorPrivacyChangedListenerArgumentCaptor.capture()); in onSensorPrivacyChanged_argTrue_setMicrophoneEnabledWithFalseCalled() [all …]
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewControllerTest.java | 176 verify(mWalletClient).addWalletServiceEventListener(mListenerCaptor.capture()); in onDismissed_notifiesClientAndRemotesListener() 259 any(), mRequestCaptor.capture(), mCallbackCaptor.capture()); in queryWalletCards_registersListenerAndRequestsWalletCards() 302 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_showsCards() 303 mCallbackCaptor.capture()); in onWalletCardsRetrieved_showsCards() 321 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() 322 mCallbackCaptor.capture()); in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() 354 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() 355 mCallbackCaptor.capture()); in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() 383 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_noWalletIntent_showsOnlySettingsInOverflowMenu() 384 mCallbackCaptor.capture()); in onWalletCardsRetrieved_noWalletIntent_showsOnlySettingsInOverflowMenu() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 206 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), in testConnectFlow() 207 clientProxyCallback.capture(), isNull(), eq(false)); in testConnectFlow() 210 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFlow() 229 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), any(), isNull(), in testConnectFlow() 251 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure() 259 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure() 263 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFailure() 289 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testInvalidConnectSequence() 297 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testInvalidConnectSequence() 344 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testPublishFlow() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 758 intentCaptor.capture(), permissionCaptor.capture()); in checkSendThisDeviceChangedBroadcast() 795 intentCaptor.capture(), eq(UserHandle.ALL)); in checkSendP2pPersistentGroupsChangedBroadcast() 900 verify(mContext, times(3)).registerReceiver(mBcastRxCaptor.capture(), in setUpWifiP2pServiceImpl() 1520 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenNoChannelUpdated() 1539 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenChannelUpdateWrongPkgName() 1558 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenPermissionDenied() 1582 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenLocationModeDisabled() 1601 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersSuccess() 1619 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestGroupInfoFailureWhenNoChannelUpdated() 1637 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestGroupInfoFailureWhenChannelUpdateWrongPkgName() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachineTest.java | 175 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_Connect() 193 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_StackConnected() 211 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectedToConnecting_StackConnecting() 246 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectingToDisconnected_StackDisconnected() 264 numBroadcastsSent)).sendBroadcastAsUser(mIntentArgument.capture(), in testStateTransition_ConnectingToDisconnected_Timeout() 309 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectingToConnected_StackSlcConnected() 332 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectingToDisconnected_StackDisconnected() 351 numBroadcastsSent)).sendBroadcastAsUser(mIntentArgument.capture(), in testStateTransition_DisconnectingToDisconnected_Timeout() 375 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_DisconnectingToConnected_StackSlcCconnected() 395 mIntentArgument.capture(), eq(UserHandle.ALL), eq(BLUETOOTH_CONNECT), in testStateTransition_ConnectedToDisconnecting_Disconnect() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | SignalStrengthListenerTest.java | 97 any(Executor.class), captor1.capture()); in updateSubscriptionIds_beforeResume_startedListening() 99 any(Executor.class), captor2.capture()); in updateSubscriptionIds_beforeResume_startedListening() 134 verify(mManager1).registerTelephonyCallback(any(Executor.class), captor1.capture()); in updateSubscriptionIds_twoCalls_oneIdRemoved() 139 verify(mManager1).unregisterTelephonyCallback(captor1.capture()); in updateSubscriptionIds_twoCalls_oneIdRemoved() 155 verify(mManager1).registerTelephonyCallback(any(Executor.class), captor1.capture()); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded() 156 verify(mManager2).registerTelephonyCallback(any(Executor.class), captor2.capture()); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded() 159 verify(mManager1).unregisterTelephonyCallback(captor1.capture()); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded() 160 verify(mManager2).unregisterTelephonyCallback(captor2.capture()); in updateSubscriptionIds_twoCalls_twoIdsRemovedOneAdded() 182 any(Executor.class), captor1.capture()); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops() 183 verify(mManager1).unregisterTelephonyCallback(captor1.capture()); in updateSubscriptionIds_thenPauseResume_correctlyStartsAndStops() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/coex/ |
D | CoexManagerTest.java | 393 any(), mCoexSubscriptionsListenerCaptor.capture()); in testTelephonyCallback_defaultAlgorithmEnabledXmlExists_registersWithTelephony() 430 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels() 435 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels() 462 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels() 467 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels() 495 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels() 500 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels() 527 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_channel3350Example_returnsCorrectWifiChannels() 532 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_channel3350Example_returnsCorrectWifiChannels() 559 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_entire2gBandUnsafe_excludesDefault2gChannel() [all …]
|
/packages/services/Telephony/tests/src/com/android/phone/callcomposer/ |
D | PictureManagerTest.java | 118 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureUpload() 125 verify(mockPictureTransfer).uploadPicture(imageDataCaptor.capture(), in testPictureUpload() 126 credSupplierCaptor.capture()); in testPictureUpload() 151 callLogCallbackCaptor.capture()); in testPictureUpload() 176 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureUploadWithAuthRefresh() 191 credSupplierCaptor.capture()); in testPictureUploadWithAuthRefresh() 215 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureDownload() 220 verify(mockPictureTransfer).downloadPicture(credSupplierCaptor.capture()); in testPictureDownload() 230 callLogCallbackCaptor.capture()); in testPictureDownload() 254 verify(mockPictureTransfer).setCallback(callbackCaptor.capture()); in testPictureDownloadWithAuthRefresh() [all …]
|
/packages/apps/Camera2/src/com/android/camera/one/v2/ |
D | OneCameraImpl.java | 247 InFlightCapture capture = null; 251 capture = mCaptureQueue.removeFirst(); 254 if (capture != null) { 255 OneCameraImpl.this.onCaptureCompleted(capture); 299 InFlightCapture capture = null; 303 capture = mCaptureQueue.removeFirst(); 306 if (capture != null) { 307 onCaptureCompleted(capture); 417 mCaptureSession.capture(request, mCaptureCallback, mCameraHandler); in takePictureNow() 642 mCaptureSession.capture(builder.build(), mCaptureCallback, mCameraHandler); in sendAutoFocusTriggerCaptureRequest() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlWrapperAidlTest.java | 188 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_callsHalWithDuckingInfo() 201 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_convertsUsagesToXsdStrings() 218 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_passesAlongAddressesToDuck() 234 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_passesAlongAddressesToUnduck() 248 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_passesAlongZoneId() 264 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_multipleZones_passesADuckingInfoPerZone() 281 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_fetchesNewBinder() 294 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_relinksToDeath() 308 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_callsDeathRecipient() 339 verify(mAudioControl).onDevicesToMuteChange(captor.capture()); in onDevicesToMuteChange_passesAlongZoneId() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerWrapperTest.java | 235 verify(mUpdatedController).registerCallback(mControllerCbs.capture(), any()); in testControllerUpdate() 260 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testNoQueueMediaUpdates() 269 verify(mTestCbs, times(1)).mediaUpdatedCallback(mMediaUpdateData.capture()); in testNoQueueMediaUpdates() 287 verify(mTestCbs, times(2)).mediaUpdatedCallback(mMediaUpdateData.capture()); in testNoQueueMediaUpdates() 322 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testDataOnUpdateNoQueue() 337 verify(mTestCbs, times(1)).mediaUpdatedCallback(mMediaUpdateData.capture()); in testDataOnUpdateNoQueue() 366 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testNullMetadata() 377 verify(mTestCbs, times(1)).mediaUpdatedCallback(mMediaUpdateData.capture()); in testNullMetadata() 395 verify(mMockController).registerCallback(mControllerCbs.capture(), any()); in testNullQueue() 402 verify(mTestCbs, times(1)).mediaUpdatedCallback(mMediaUpdateData.capture()); in testNullQueue() [all …]
|
D | BrowserPlayerWrapperTest.java | 177 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testWrap() 192 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Successful() 206 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Suspended() 223 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Failed() 240 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testEmptyRoot() 255 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testDisconnect() 266 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testGetRootId() 278 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testPlayItem() 296 verify(mockController).registerCallback(mControllerCb.capture(), any()); in testPlayItem() 315 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testPlayItem_Timeout() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetNewPasswordControllerTest.java | 95 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithFingerprint() 115 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithFace() 130 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFingerprint_noFingerprintFeature() 144 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFace_no_FaceFeature() 163 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFingerprint_noFingerprintSensor() 182 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFace_noFaceSensor() 201 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFingerprint_hasFingerprintEnrolled() 220 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFace_hasFaceEnrolled() 239 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFingerprint_deviceAdminDisallowFingerprintForKeyguard() 258 verify(mUi).launchChooseLock(bundleArgumentCaptor.capture()); in launchChooseLockWithoutFace_deviceAdminDisallowFaceForKeyguard()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/inputmethod/ |
D | KeyboardManagementPreferenceControllerTest.java | 380 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_positive_noOtherPreferenceAdded() 405 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_positive_preferenceChecked() 429 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_positive_preferenceEnabled() 452 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_positive_inputMethodEnabled() 476 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_negative_noOtherPreferenceAdded() 501 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_negative_preferenceEnabled() 524 verify(mMockFragmentController).showDialog(dialogCaptor.capture(), in performClick_toggleTrue_showSecurityDialog_negative_inputMethodDisabled() 549 securityDialogCaptor.capture(), in performClick_toggleTrue_directBootWarningShown() 576 securityDialogCaptor.capture(), in performClick_toggleTrue_showDirectBootDialog_positive_noOtherPreferenceAdded() 584 verify(mMockFragmentController).showDialog(bootDialogCaptor.capture(), in performClick_toggleTrue_showDirectBootDialog_positive_noOtherPreferenceAdded() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | AdvancedPowerUsageDetailTest.java | 204 doAnswer(callable).when(mActivity).startActivityAsUser(captor.capture(), in setUp() 206 doAnswer(callable).when(mActivity).startActivity(captor.capture()); in setUp() 294 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_noUsageTimeAndGraphDisabled_hasCorrectSummary() 314 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_bgTwoMinFgZeroAndGraphDisabled_hasCorrectSummary() 335 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_bgLessThanAMinFgZeroAndGraphDisabled_hasCorrectSummary() 357 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_totalUsageLessThanAMinAndGraphDisabled_hasCorrectSummary() 377 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_TotalAMinutesBgLessThanAMinAndGraphDisabled_hasCorrectSummary() 396 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_TotalAMinBackgroundZeroAndGraphDisabled_hasCorrectSummary() 414 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_fgTwoMinBgFourMinAndGraphDisabled_hasCorrectSummary() 429 verify(mEntityHeaderController).setSummary(captor.capture()); in testInitHeader_noUsageTime_hasCorrectSummary() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/ |
D | RttServiceImplTest.java | 233 verify(mockContext, times(2)).registerReceiver(bcastRxCaptor.capture(), in setUp() 282 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(requests[i]), eq(true)); in testRangingFlow() 343 verify(mockNative).rangeRequest(mIntCaptor.capture(), mRequestCaptor.capture(), eq(true)); in testRangingFlowUsingAwarePeerHandles() 369 verify(mockCallback).onRangingResults(mListCaptor.capture()); in testRangingFlowUsingAwarePeerHandles() 416 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(requests[i]), eq(true)); in testRangingFlowNativeFailure() 467 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(request), eq(true)); in testRangingRequestWithoutRuntimePermission() 514 verify(mockIbinder, times(numIter)).linkToDeath(mDeathRecipientCaptor.capture(), anyInt()); in testBinderDeathOfRangingApp() 519 verify(mockNative).rangeRequest(mIntCaptor.capture(), eq(requests[i]), eq(true)); in testBinderDeathOfRangingApp() 529 (ArrayList) mListCaptor.capture()); in testBinderDeathOfRangingApp() 588 verify(mockIbinder).linkToDeath(mDeathRecipientCaptor.capture(), anyInt()); in testBinderDeathWithWorkSource() [all …]
|