/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 92 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testUpdateBatteryLevel_normalSequence() 109 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testUpdateBatteryLevel_normalSequence() 110 mStringArgument.capture(), any(Bundle.class)); in testUpdateBatteryLevel_normalSequence() 176 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 190 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 191 mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate() 207 verify(mAdapterService, times(3)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevel_testResetAfterUpdate() 208 mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate() 224 verify(mAdapterService).sendBroadcast(mIntentArgument.capture(), mStringArgument.capture(), in testResetBatteryLevelOnHeadsetStateChange() 240 verify(mAdapterService, times(2)).sendBroadcast(mIntentArgument.capture(), in testResetBatteryLevelOnHeadsetStateChange() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/ |
D | TbsGenericTest.java | 88 doReturn(true).when(mTbsGatt).init(mGtbsCcidCaptor.capture(), mGtbsUciCaptor.capture(), in setUp() 89 mDefaultGtbsUriSchemesCaptor.capture(), anyBoolean(), anyBoolean(), in setUp() 90 mDefaultGtbsProviderNameCaptor.capture(), mDefaultGtbsTechnologyCaptor.capture(), in setUp() 91 mTbsGattCallback.capture()); in setUp() 131 verify(mIBluetoothLeCallControlCallback).onBearerRegistered(ccidCaptor.capture()); in prepareTestBearer() 147 verify(mTbsGatt).setBearerUriSchemesSupportedList(uriSchemesCaptor.capture()); in testAddBearer() 164 verify(mTbsGatt).setBearerUriSchemesSupportedList(uriSchemesCaptor.capture()); in testRemoveBearer() 180 verify(mTbsGatt).setIncomingCall(callIndexCaptor.capture(), eq("tel:987654321")); in testCallAdded() 184 verify(mTbsGatt).setCallState(currentCallsCaptor.capture()); in testCallAdded() 207 verify(mTbsGatt).setIncomingCall(callIndexCaptor.capture(), eq("tel:987654321")); in testCallRemoved() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | FastPairAdvertiserTest.java | 213 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertiseModelIdFromStopped_advertisingSucceeds() 214 mAdvertiseDataCaptor.capture(), any(), any(), any(), in testAdvertiseModelIdFromStopped_advertisingSucceeds() 215 mAdvertisingSetCallbackCaptor.capture()); in testAdvertiseModelIdFromStopped_advertisingSucceeds() 253 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertiseAccountKeyFilterNoKeys_advertisingSucceeds() 254 mAdvertiseDataCaptor.capture(), any(), any(), any(), in testAdvertiseAccountKeyFilterNoKeys_advertisingSucceeds() 255 mAdvertisingSetCallbackCaptor.capture()); in testAdvertiseAccountKeyFilterNoKeys_advertisingSucceeds() 294 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertiseAccountKeyFilterWithKeys_advertisingSucceeds() 295 mAdvertiseDataCaptor.capture(), any(), any(), any(), in testAdvertiseAccountKeyFilterWithKeys_advertisingSucceeds() 296 mAdvertisingSetCallbackCaptor.capture()); in testAdvertiseAccountKeyFilterWithKeys_advertisingSucceeds() 377 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertisingStartCallbackUnsuccessful_advertisingStops() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/ |
D | WifiAwareStateManagerTest.java | 229 callbackArgumentCaptor.capture()); in setUp() 231 verify(mMockContext, times(3)).registerReceiver(bcastRxCaptor.capture(), in setUp() 241 verify(mMockNative).getCapabilities(transactionId.capture()); in setUp() 339 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses() 359 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 363 inOrder.verify(mockSessionCallback1).onSessionStarted(sessionId.capture()); in testRequestMacAddresses() 367 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses() 371 inOrder.verify(mockSessionCallback2).onSessionStarted(sessionId.capture()); in testRequestMacAddresses() 379 inOrder.verify(mockSessionCallback1).onMatch(peerIdCaptor.capture(), isNull(), in testRequestMacAddresses() 381 inOrder.verify(mockSessionCallback1).onMatchWithDistance(peerIdCaptor.capture(), isNull(), in testRequestMacAddresses() [all …]
|
D | WifiAwareDataPathStateManagerTest.java | 244 inOrder.verify(mMockNative).getCapabilities(transactionId.capture()); in testCreateDeleteAllInterfaces() 252 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 253 interfaceName.capture()); in testCreateDeleteAllInterfaces() 267 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 268 interfaceName.capture()); in testCreateDeleteAllInterfaces() 289 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 290 interfaceName.capture()); in testCreateDeleteAllInterfaces() 296 inOrder.verify(mMockNative).createAwareNetworkInterface(transactionId.capture(), in testCreateDeleteAllInterfaces() 297 interfaceName.capture()); in testCreateDeleteAllInterfaces() 461 inOrder.verify(mMockNative).deleteAwareNetworkInterface(transactionId.capture(), in testDestroyNdiDuringNdpSetupResponder() [all …]
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/gatt/ |
D | BluetoothGattConnectionTest.java | 215 verify(mMockBluetoothOperationExecutor).execute(mSynchronousOperationCaptor.capture()); in test_getService_notDiscovered() 219 mOperationCaptor.capture(), in test_getService_notDiscovered() 230 verify(mMockBluetoothOperationExecutor).execute(mSynchronousOperationCaptor.capture()); in test_getService_alreadyDiscovered() 369 verify(mMockBluetoothOperationExecutor).execute(mSynchronousOperationCaptor.capture()); in test_discoverServices() 373 mOperationCaptor.capture(), in test_discoverServices() 390 verify(mMockBluetoothOperationExecutor).execute(mSynchronousOperationCaptor.capture()); in test_discoverServices_serviceChange() 394 mOperationCaptor.capture(), in test_discoverServices_serviceChange() 409 verify(mMockBluetoothOperationExecutor).execute(mSynchronousOperationCaptor.capture()); in test_discoverServices_SelfDefinedServiceDynamic() 413 mOperationCaptor.capture(), in test_discoverServices_SelfDefinedServiceDynamic() 424 verify(mMockBluetoothOperationExecutor).execute(mSynchronousOperationCaptor.capture()); in test_discoverServices_refreshWithGattErrorOnMncAbove() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/ |
D | HfpNativeInterfaceTest.java | 67 verify(mService).messageFromNative(event.capture()); in onConnectionStateChanged() 80 verify(mService).messageFromNative(event.capture()); in onAudioStateChanged() 91 verify(mService).messageFromNative(event.capture()); in onVrStateChanged() 102 verify(mService).messageFromNative(event.capture()); in onNetworkState() 113 verify(mService).messageFromNative(event.capture()); in onNetworkRoaming() 124 verify(mService).messageFromNative(event.capture()); in onNetworkSignal() 135 verify(mService).messageFromNative(event.capture()); in onBatteryLevel() 146 verify(mService).messageFromNative(event.capture()); in onCurrentOperator() 157 verify(mService).messageFromNative(event.capture()); in onCall() 168 verify(mService).messageFromNative(event.capture()); in onCallSetup() [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMonitorTest.java | 98 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited() 119 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorWepProhibhited() 137 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigAuthError() 155 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigPbcOverlapError() 173 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigError() 191 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventSuccess() 206 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventOverlap() 221 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventTimeout() 237 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastAnqpDoneEvent() 258 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastIconDoneEvent() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/ |
D | CameraPrivacyChipViewControllerTest.java | 123 verify(mExecutor).execute(mRunnableArgumentCaptor.capture()); in addPrivacyChipView_privacyChipViewPresent_sensorStatusSet() 141 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItems_animateInCalled() 147 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItems_animateInCalled() 157 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItemsTwice_animateInCalledOnce() 165 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItemsTwice_animateInCalledOnce() 175 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItems_animateOutCalled() 183 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItems_animateOutCalled() 193 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce() 202 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce() 213 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_qsTileNotifyUpdateRunnableExecuted() [all …]
|
D | MicPrivacyChipViewControllerTest.java | 123 verify(mExecutor).execute(mRunnableArgumentCaptor.capture()); in addPrivacyChipView_privacyChipViewPresent_micStatusSet() 141 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItems_animateInCalled() 147 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItems_animateInCalled() 157 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItemsTwice_animateInCalledOnce() 165 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItemsTwice_animateInCalledOnce() 175 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItems_animateOutCalled() 183 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItems_animateOutCalled() 193 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce() 202 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce() 213 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_qsTileNotifyUpdateRunnableExecuted() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallAudioManagerTest.java | 127 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); in testUnmuteOfSecondIncomingCall() 140 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); in testUnmuteOfSecondIncomingCall() 161 .sendMessageWithSessionInfo(muteCaptor.capture()); in testUnmuteOfSecondIncomingCall() 189 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); 202 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 224 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 226 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); 261 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 277 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); 286 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()
|
/packages/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPanelViewControllerTest.java | 173 verify(mWalletClient).addWalletServiceEventListener(mListenerCaptor.capture()); in onDismissed_notifiesClientAndRemotesListener() 256 any(), mRequestCaptor.capture(), mCallbackCaptor.capture()); in queryWalletCards_registersListenerAndRequestsWalletCards() 299 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_showsCards() 300 mCallbackCaptor.capture()); in onWalletCardsRetrieved_showsCards() 318 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() 319 mCallbackCaptor.capture()); in onWalletCardsRetrieved_showsOverflowButton_startWalletActivity() 351 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() 352 mCallbackCaptor.capture()); in onWalletCardsRetrieved_noShortLabel_showsOnlySettingsInOverflowMenu() 380 verify(mWalletClient).getWalletCards(any(), mRequestCaptor.capture(), in onWalletCardsRetrieved_noWalletIntent_showsOnlySettingsInOverflowMenu() 381 mCallbackCaptor.capture()); in onWalletCardsRetrieved_noWalletIntent_showsOnlySettingsInOverflowMenu() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientNativeInterfaceTest.java | 62 verify(mService).messageFromNative(event.capture()); in onConnectionStateChanged() 75 verify(mService).messageFromNative(event.capture()); in onDeviceAvailable() 88 verify(mService).messageFromNative(event.capture()); in onFeaturesUpdate() 101 verify(mService).messageFromNative(event.capture()); in onActivePresetSelected() 115 verify(mService).messageFromNative(event.capture()); in onActivePresetGroupSelected() 130 verify(mService).messageFromNative(event.capture()); in onActivePresetSelectError() 144 verify(mService).messageFromNative(event.capture()); in onActivePresetGroupSelectError() 163 verify(mService).messageFromNative(event.capture()); in onPresetInfo() 183 verify(mService).messageFromNative(event.capture()); in onGroupPresetInfo() 199 verify(mService).messageFromNative(event.capture()); in onPresetNameSetError() [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 | 395 any(), mCoexSubscriptionsListenerCaptor.capture()); in testTelephonyCallback_defaultAlgorithmEnabledXmlExists_registersWithTelephony() 432 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels() 437 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte40_returns2gNeighboringChannels() 464 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels() 469 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_neighboringLte46_returns5gNeighboringChannels() 497 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels() 502 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_channel27065Example_returnsCorrectWifiChannels() 529 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_channel3350Example_returnsCorrectWifiChannels() 534 telephonyCallbackCaptor.capture()); in testGetCoexUnsafeChannels_channel3350Example_returnsCorrectWifiChannels() 561 any(), mCoexSubscriptionsListenerCaptor.capture()); in testGetCoexUnsafeChannels_entire2gBandUnsafe_excludesDefault2gChannel() [all …]
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/aware/ |
D | WifiAwareManagerTest.java | 213 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), in testConnectFlow() 214 clientProxyCallback.capture(), isNull(), eq(false), any()); in testConnectFlow() 217 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFlow() 236 inOrder.verify(mockAwareService).connect(binder.capture(), any(), any(), any(), isNull(), in testConnectFlow() 258 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure() 266 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testConnectFailure() 270 inOrder.verify(mockCallback).onAttached(sessionCaptor.capture()); in testConnectFailure() 301 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testInvalidConnectSequence() 309 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testInvalidConnectSequence() 356 inOrder.verify(mockAwareService).connect(any(), any(), any(), clientProxyCallback.capture(), in testPublishFlow() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/ |
D | CarPropertyEventCallbackControllerUnitTest.java | 116 verify(mRegistrationUpdateCallback, times(2)).register(mPropertyIdCaptor.capture(), in add_registerCalledIfSecondRateIsBiggerWithSameCallback() 117 mUpdateRateHzCaptor.capture()); in add_registerCalledIfSecondRateIsBiggerWithSameCallback() 131 verify(mRegistrationUpdateCallback, times(2)).register(mPropertyIdCaptor.capture(), in add_registerCalledIfSecondRateIsSmallerWithSameCallback() 132 mUpdateRateHzCaptor.capture()); in add_registerCalledIfSecondRateIsSmallerWithSameCallback() 146 verify(mRegistrationUpdateCallback, times(2)).register(mPropertyIdCaptor.capture(), in add_registerCalledIfSecondRateIsBiggerWithDifferentCallback() 147 mUpdateRateHzCaptor.capture()); in add_registerCalledIfSecondRateIsBiggerWithDifferentCallback() 210 verify(mCarPropertyEventCallback).onChangeEvent(mCarPropertyValueCaptor.capture()); in add_restoresOriginalRateHzIfTheSecondCallbackReturnsFalse() 242 verify(mRegistrationUpdateCallback, times(2)).register(mPropertyIdCaptor.capture(), in remove_unregisterCalledIfRemovingSameCallbackAddedTwice() 243 mUpdateRateHzCaptor.capture()); in remove_unregisterCalledIfRemovingSameCallbackAddedTwice() 259 verify(mRegistrationUpdateCallback, times(3)).register(mPropertyIdCaptor.capture(), in remove_registerCalledIfBiggerRateRemoved() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | AudioControlWrapperAidlTest.java | 220 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_callsHalWithDuckingInfo() 240 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_convertsUsagesToXsdStrings() 261 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_passesAlongAddressesToDuck() 281 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_passesAlongAddressesToUnduck() 296 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_passesAlongZoneId() 314 verify(mAudioControl).onDevicesToDuckChange(captor.capture()); in onDevicesToDuckChange_multipleZones_passesADuckingInfoPerZone() 331 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_fetchesNewBinder() 344 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_relinksToDeath() 358 verify(mBinder).linkToDeath(captor.capture(), eq(0)); in binderDied_callsDeathRecipient() 389 verify(mAudioControl).onDevicesToMuteChange(captor.capture()); in onDevicesToMuteChange_passesAlongZoneId() [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/modules/Connectivity/tests/unit/java/android/net/nsd/ |
D | NsdManagerTest.java | 79 verify(mService).connect(cbCaptor.capture()); in setUp() 161 int key1 = getRequestKey(req -> verify(mServiceConn).resolveService(req.capture(), any())); in doTestResolveService() 168 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestResolveService() 183 int key1 = getRequestKey(req -> verify(mServiceConn).resolveService(req.capture(), any())); in doTestParallelResolveService() 187 verify(mServiceConn, times(2)).resolveService(req.capture(), any())); in doTestParallelResolveService() 208 int key1 = getRequestKey(req -> verify(mServiceConn).registerService(req.capture(), any())); in doTestRegisterService() 212 verify(mServiceConn, times(2)).registerService(req.capture(), any())); in doTestRegisterService() 225 verify(mServiceConn, times(3)).registerService(req.capture(), any())); in doTestRegisterService() 232 int key3again = getRequestKey(req -> verify(mServiceConn).unregisterService(req.capture())); in doTestRegisterService() 241 verify(mServiceConn, times(2)).unregisterService(req.capture())); in doTestRegisterService() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/ |
D | BrowserPlayerWrapperTest.java | 173 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testWrap() 188 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Successful() 202 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Suspended() 219 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testConnect_Failed() 236 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testEmptyRoot() 251 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testDisconnect() 262 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testGetRootId() 274 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testPlayItem() 292 verify(mockController).registerCallback(mControllerCb.capture(), any()); in testPlayItem() 311 verify(mMockBrowser).testInit(any(), any(), mBrowserConnCb.capture(), any()); in testPlayItem_Timeout() [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/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | WifiP2pServiceImplTest.java | 1129 intentCaptor.capture(), permissionCaptor.capture()); in checkSendThisDeviceChangedBroadcast() 1139 intentCaptor.capture(), any(), any()); in checkSendThisDeviceChangedBroadcast() 1154 intentCaptor.capture(), eq(UserHandle.ALL)); in checkSendP2pPersistentGroupsChangedBroadcast() 1303 verify(mContext, times(4)).registerReceiver(mBcastRxCaptor.capture(), in setUpWifiP2pServiceImpl() 1307 verify(mContext, times(3)).registerReceiver(mBcastRxCaptor.capture(), in setUpWifiP2pServiceImpl() 2207 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenNoChannelUpdated() 2226 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenChannelUpdateWrongPkgName() 2251 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenPermissionDenied() 2282 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersFailureWhenLocationModeDisabled() 2302 verify(mClientHandler).sendMessage(mMessageCaptor.capture()); in testRequestPeersSuccess() [all …]
|