Home
last modified time | relevance | path

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

12345678910>>...46

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiPseudonymManagerTest.java153 mAlarmTypeCaptor.capture(), in retrievePseudonymOnFailureTimeout_expiredPseudonym_scheduleRefresh()
154 mWindowStartCaptor.capture(), in retrievePseudonymOnFailureTimeout_expiredPseudonym_scheduleRefresh()
155 mWindowLengthCaptor.capture(), in retrievePseudonymOnFailureTimeout_expiredPseudonym_scheduleRefresh()
157 mRetrieveListenerArgumentCaptor.capture(), in retrievePseudonymOnFailureTimeout_expiredPseudonym_scheduleRefresh()
315 mAlarmTypeCaptor.capture(), in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
316 mWindowStartCaptor.capture(), in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
317 mWindowLengthCaptor.capture(), in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
319 mRetrieveListenerArgumentCaptor.capture(), in setPseudonymAndScheduleRefresh_freshPseudonym_schedule()
334 mAlarmTypeCaptor.capture(), in retrieveOobPseudonymIfNeeded_noPseudonym_scheduleRefresh()
335 mWindowStartCaptor.capture(), in retrieveOobPseudonymIfNeeded_noPseudonym_scheduleRefresh()
[all …]
DWifiMonitorTest.java101 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorTkipOnlyProhibhited()
122 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToErrorWepProhibhited()
140 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigAuthError()
158 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigPbcOverlapError()
176 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventFailDueToConfigError()
194 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventSuccess()
209 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventOverlap()
224 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastWpsEventTimeout()
240 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastAnqpDoneEvent()
261 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastIconDoneEvent()
[all …]
DRssiMonitorTest.java107 eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), mRssiEventHandlerCaptor.capture()); in setUp()
119 mRssiEventHandlerCaptor.capture()); in verifyShortIntervalAndMonitorStatus()
125 eq((byte) TEST_CLIENT_RSSI_THRESHOLD), mRssiEventHandlerCaptor.capture()); in verifyLongIntervalAndMonitorStatus()
217 mRssiEventHandlerCaptor.capture()); in testOnAppRssiThresholdBreached()
225 mRssiEventHandlerCaptor.capture()); in testOnAppRssiThresholdBreached()
239 eq((byte) TEST_CLIENT_RSSI_THRESHOLD), mRssiEventHandlerCaptor.capture()); in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold()
244 mRssiEventHandlerCaptor.capture()); in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold()
252 mRssiEventHandlerCaptor.capture()); in testOnRssiThresholdBreachedIdenticalAppFrameworkThreshold()
277 mRssiEventHandlerCaptor.capture()); in testAdjustPollRssiIntervalDisabled()
281 eq((byte) TEST_APP_RSSI_THRESHOLDS[0]), mRssiEventHandlerCaptor.capture()); in testAdjustPollRssiIntervalDisabled()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java134 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testUpdateBatteryLevel_normalSequence()
152 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testUpdateBatteryLevel_normalSequence()
220 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate()
235 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate()
252 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testResetAfterUpdate()
270 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevelOnHeadsetStateChange()
286 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevelOnHeadsetStateChange()
299 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevelOnHeadsetStateChange()
320 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testOnHeadsetStateChangeWithBatteryService_NotResetBatteryLevel()
355 mIntentArgument.capture(), mStringArgument.capture(), any(Bundle.class)); in testResetBatteryLevel_testAclStateChangeCallback()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/tbs/
DTbsGenericTest.java84 mGtbsCcidCaptor.capture(), in setUp()
85 mGtbsUciCaptor.capture(), in setUp()
86 mDefaultGtbsUriSchemesCaptor.capture(), in setUp()
89 mDefaultGtbsProviderNameCaptor.capture(), in setUp()
90 mDefaultGtbsTechnologyCaptor.capture(), in setUp()
91 mTbsGattCallback.capture()); in setUp()
131 verify(mIBluetoothLeCallControlCallback).onBearerRegistered(ccidCaptor.capture()); in prepareTestBearer()
158 verify(mTbsGatt).setBearerUriSchemesSupportedList(uriSchemesCaptor.capture()); in testAddBearer()
175 verify(mTbsGatt).setBearerUriSchemesSupportedList(uriSchemesCaptor.capture()); in testRemoveBearer()
196 verify(mTbsGatt).setIncomingCall(callIndexCaptor.capture(), eq("tel:987654321")); in testCallAdded()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DFastPairAdvertiserTest.java232 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertiseModelIdFromStopped_advertisingSucceeds()
233 mAdvertiseDataCaptor.capture(), any(), any(), any(), in testAdvertiseModelIdFromStopped_advertisingSucceeds()
234 mAdvertisingSetCallbackCaptor.capture()); in testAdvertiseModelIdFromStopped_advertisingSucceeds()
272 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertiseAccountKeyFilterNoKeys_advertisingSucceeds()
273 mAdvertiseDataCaptor.capture(), any(), any(), any(), in testAdvertiseAccountKeyFilterNoKeys_advertisingSucceeds()
274 mAdvertisingSetCallbackCaptor.capture()); in testAdvertiseAccountKeyFilterNoKeys_advertisingSucceeds()
313 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertiseAccountKeyFilterWithKeys_advertisingSucceeds()
314 mAdvertiseDataCaptor.capture(), any(), any(), any(), in testAdvertiseAccountKeyFilterWithKeys_advertisingSucceeds()
315 mAdvertisingSetCallbackCaptor.capture()); in testAdvertiseAccountKeyFilterWithKeys_advertisingSucceeds()
396 .startAdvertisingSet(mAdvertisingSetParametersCaptor.capture(), in testAdvertisingStartCallbackUnsuccessful_advertisingStops()
[all …]
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/
DWalletRoleObserverTest.java123 verify(mRoleManager).addOnRoleHoldersChangedListenerAsUser(mExecutorCaptor.capture(),any(), in testConstructor()
124 mUserHandlerCaptor.capture()); in testConstructor()
138 verify(mRoleManager).isRoleAvailable(mRoleNameCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
139 verify(mRoleManager).getRoleHoldersAsUser(mRoleNameCaptor.capture(), in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
140 mUserHandlerCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder()
157 verify(mRoleManager).getActiveUserForRole(mRoleNameCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder_crossProfile()
158 verify(mRoleManager).getRoleHoldersAsUser(mRoleNameCaptor.capture(), in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder_crossProfile()
159 mUserHandlerCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder_crossProfile()
181 verify(mRoleManager).getActiveUserForRole(mRoleNameCaptor.capture()); in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder_differentProfile()
182 verify(mRoleManager).getRoleHoldersAsUser(mRoleNameCaptor.capture(), in testGetDefaultWalletRoleHolder_roleAvailable_returnsTheHolder_differentProfile()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/
DHfpNativeInterfaceTest.java67 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/aware/
DWifiAwareStateManagerTest.java288 callbackArgumentCaptor.capture()); in setUp()
293 bcastRxCaptor.capture(), in setUp()
298 bcastRxCaptor.capture(), in setUp()
305 mD2dAllowedSettingChangedListenerCaptor.capture(), in setUp()
312 verify(mMockNative).getCapabilities(transactionId.capture()); in setUp()
317 mPullAtomCallbackArgumentCaptor.capture()); in setUp()
422 inOrder.verify(mMockNative).enableAndConfigure(transactionId.capture(), in testRequestMacAddresses()
442 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
446 inOrder.verify(mockSessionCallback1).onSessionStarted(sessionId.capture()); in testRequestMacAddresses()
450 inOrder.verify(mMockNative).subscribe(transactionId.capture(), eq((byte) 0), in testRequestMacAddresses()
[all …]
/packages/modules/Connectivity/thread/tests/unit/src/com/android/server/thread/
DThreadNetworkCountryCodeTest.java240 anyString(), anyLong(), anyFloat(), mLocationListenerCaptor.capture()); in locationCountryCode_locationChanged_locationCountryCodeIsUsed()
244 anyDouble(), anyDouble(), anyInt(), mGeocodeListenerCaptor.capture()); in locationCountryCode_locationChanged_locationCountryCodeIsUsed()
255 anyString(), anyLong(), anyFloat(), mLocationListenerCaptor.capture()); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()
259 anyDouble(), anyDouble(), anyInt(), mGeocodeListenerCaptor.capture()); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()
268 any(), mWifiCountryCodeReceiverCaptor.capture()); in wifiCountryCode_bothWifiAndLocationAreAvailable_wifiCountryCodeIsUsed()
280 any(), mWifiCountryCodeReceiverCaptor.capture()); in wifiCountryCode_wifiCountryCodeIsActive_wifiCountryCodeIsUsed()
292 any(), mWifiCountryCodeReceiverCaptor.capture()); in wifiCountryCode_wifiDefaultCountryCodeIsActive_wifiCountryCodeIsNotUsed()
306 any(), mWifiCountryCodeReceiverCaptor.capture()); in wifiCountryCode_wifiCountryCodeIsInactive_defaultCountryCodeIsUsed()
320 anyString(), anyLong(), anyFloat(), mLocationListenerCaptor.capture()); in telephonyCountryCode_bothTelephonyAndLocationAvailable_telephonyCodeIsUsed()
324 anyDouble(), anyDouble(), anyInt(), mGeocodeListenerCaptor.capture()); in telephonyCountryCode_bothTelephonyAndLocationAvailable_telephonyCodeIsUsed()
[all …]
DNsdPublisherTest.java119 actualServiceInfoCaptor.capture(), in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()
122 actualRegistrationListenerCaptor.capture()); in registerService_nsdManagerSucceeds_serviceRegistrationSucceeds()
165 actualServiceInfoCaptor.capture(), in registerService_nsdManagerFails_serviceRegistrationFails()
168 actualRegistrationListenerCaptor.capture()); in registerService_nsdManagerFails_serviceRegistrationFails()
234 actualServiceInfoCaptor.capture(), in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()
237 actualRegistrationListenerCaptor.capture()); in unregisterService_nsdManagerSucceeds_serviceUnregistrationSucceeds()
276 actualServiceInfoCaptor.capture(), in unregisterService_nsdManagerFails_serviceUnregistrationFails()
279 actualRegistrationListenerCaptor.capture()); in unregisterService_nsdManagerFails_serviceUnregistrationFails()
315 actualServiceInfoCaptor.capture(), in registerHost_nsdManagerSucceeds_serviceRegistrationSucceeds()
318 actualRegistrationListenerCaptor.capture()); in registerHost_nsdManagerSucceeds_serviceRegistrationSucceeds()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DCameraPrivacyChipViewControllerTest.java129 verify(mExecutor).execute(mRunnableArgumentCaptor.capture()); in addPrivacyChipView_privacyChipViewPresent_sensorStatusSet()
151 verify(mUserTracker).addCallback(captor.capture(), any()); in onUserChanged_cameraStatusSet()
161 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItems_animateInCalled()
167 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItems_animateInCalled()
177 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItemsTwice_animateInCalledOnce()
185 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsPartOfPrivacyItemsTwice_animateInCalledOnce()
195 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItems_animateOutCalled()
203 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItems_animateOutCalled()
213 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce()
222 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_cameraIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce()
[all …]
DMicPrivacyChipViewControllerTest.java129 verify(mExecutor).execute(mRunnableArgumentCaptor.capture()); in addPrivacyChipView_privacyChipViewPresent_micStatusSet()
151 verify(mUserTracker).addCallback(captor.capture(), any()); in onUserChanged_micStatusSet()
161 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItems_animateInCalled()
167 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItems_animateInCalled()
177 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItemsTwice_animateInCalledOnce()
185 verify(mExecutor, times(2)).execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsPartOfPrivacyItemsTwice_animateInCalledOnce()
195 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItems_animateOutCalled()
203 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItems_animateOutCalled()
213 verify(mPrivacyItemController).addCallback(mPicCallbackArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce()
222 .execute(mRunnableArgumentCaptor.capture()); in onPrivacyItemsChanged_micIsNotPartOfPrivacyItemsTwice_animateOutCalledOnce()
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/policy/
DPackagePolicyHandlerTest.java86 mUserControlDisabledPackages.capture()); in onUnprovisioned_shouldSetUserControlDisabledPackagesForController()
100 verify(mMockDpm).setUninstallBlocked(eq(null), mKioskPackageNameCaptor.capture(), in onProvisioned_withKioskPackageSet_shouldHaveExpectedMethodCalls()
101 mUninstallBlockedCaptor.capture()); in onProvisioned_withKioskPackageSet_shouldHaveExpectedMethodCalls()
106 mUserControlDisabledPackages.capture()); in onProvisioned_withKioskPackageSet_shouldHaveExpectedMethodCalls()
117 verify(mMockDpm, never()).setUninstallBlocked(eq(null), mKioskPackageNameCaptor.capture(), in onProvisioned_withoutKioskPackageSet_shouldHaveExpectedMethodCalls()
118 mUninstallBlockedCaptor.capture()); in onProvisioned_withoutKioskPackageSet_shouldHaveExpectedMethodCalls()
121 mUserControlDisabledPackages.capture()); in onProvisioned_withoutKioskPackageSet_shouldHaveExpectedMethodCalls()
136 verify(mMockDpm, never()).setUninstallBlocked(eq(null), mKioskPackageNameCaptor.capture(), in onProvisioned_withSecurityException_shouldHaveExpectedMethodCalls()
137 mUninstallBlockedCaptor.capture()); in onProvisioned_withSecurityException_shouldHaveExpectedMethodCalls()
147 verify(mMockDpm).setUninstallBlocked(eq(null), mKioskPackageNameCaptor.capture(), in onCleared_withKioskPackageSet_shouldHaveExpectedMethodCalls()
[all …]
DUserRestrictionsPolicyHandlerTest.java119 verify(mMockDpm).addUserRestriction(eq(null), mSetUserRestrictionCaptor.capture()); in onProvisionInProgressDebug_withSetExpectedUserRestrictions()
124 mClearUserRestrictionCaptor.capture()); in onProvisionInProgressDebug_withSetExpectedUserRestrictions()
144 mSetUserRestrictionCaptor.capture()); in onProvisionInProgress_withSetExpectedUserRestrictions()
169 mSetUserRestrictionCaptor.capture()); in onProvisionInProgress_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
194 mSetUserRestrictionCaptor.capture()); in onProvisionInProgress_withDisallowUnknownSourcesShouldSetExpectedUserRestrictions()
241 mSetUserRestrictionCaptor.capture()); in onLockedDebug_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
247 mClearUserRestrictionCaptor.capture()); in onLockedDebug_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
268 mSetUserRestrictionCaptor.capture()); in onLocked_withDisableOutgoingCallShouldSetExpectedUserRestrictions()
291 mSetUserRestrictionCaptor.capture()); in onLocked_withDisableOutgoingCallAndUnknownSourcesShouldSetExpectedUserRestrictions()
336 mSetUserRestrictionCaptor.capture()); in onCleared_shouldClearExpectedUserRestrictions()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DMigrationUiStateManagerTest.java85 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_idle_noNotificationSent()
98 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_appUpdateNeeded_noNotificationSent()
112 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_moduleUpdateNeeded_migrationUiModuleUpdateNeededNotificationSent()
132 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_allowedPaused_noMigrationUiPausedNotificationSent()
150 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_allowedError_noMigrationUiCancelledNotificationSent()
167 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_inProgressPaused_migrationUiPausedNotificationSent()
183 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_inProgress_noNotificationSent()
197 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_completeFromIdle_noNotificationSent()
211 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in testStateChanged_complete_noNotificationSent()
224 verify(mMigrationStateManager).addStateChangedListener(captor.capture()); in getMigrationUiState_migrationStateIdle()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallAudioManagerTest.java144 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture()); in testUnmuteOfSecondIncomingCall()
157 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture()); in testUnmuteOfSecondIncomingCall()
178 .sendMessageWithSessionInfo(muteCaptor.capture()); in testUnmuteOfSecondIncomingCall()
206 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture());
219 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture());
241 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture());
243 eq(CallAudioModeStateMachine.NO_MORE_RINGING_CALLS), captor.capture());
278 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture());
294 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture());
308 eq(CallAudioModeStateMachine.NEW_ACTIVE_OR_DIALING_CALL), captor.capture());
[all …]
DCallerInfoLookupHelperTest.java138 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/
DHapClientNativeCallbackTest.java59 verify(mHapClientService).messageFromNative(mEvent.capture()); in onConnectionStateChanged()
70 verify(mHapClientService).messageFromNative(mEvent.capture()); in onDeviceAvailable()
81 verify(mHapClientService).messageFromNative(mEvent.capture()); in onFeaturesUpdate()
92 verify(mHapClientService).messageFromNative(mEvent.capture()); in onActivePresetSelected()
104 verify(mHapClientService).messageFromNative(mEvent.capture()); in onActivePresetGroupSelected()
116 verify(mHapClientService).messageFromNative(mEvent.capture()); in onActivePresetSelectError()
129 verify(mHapClientService).messageFromNative(mEvent.capture()); in onActivePresetGroupSelectError()
148 verify(mHapClientService).messageFromNative(mEvent.capture()); in onPresetInfo()
167 verify(mHapClientService).messageFromNative(mEvent.capture()); in onGroupPresetInfo()
181 verify(mHapClientService).messageFromNative(mEvent.capture()); in onPresetNameSetError()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DSignalStrengthListenerTest.java97 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/apps/QuickAccessWallet/tests/robolectric/src/com/android/systemui/plugin/globalactions/wallet/
DWalletPanelViewControllerTest.java173 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/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pMonitorTest.java72 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastSupplicantDisconnectionEvent()
88 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
90 verify(mSecondHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventToTwoHandlers()
104 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceIsNull()
118 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastEventWhenIfaceHandlerIsNull()
132 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastP2pFrequencyChanged()
149 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastP2pProvisionDiscoveryFailure()
168 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastP2pProvisionDiscoveryRejection()
194 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastP2pProvisionDiscoveryPairingBootstrappingOpportunisticRequest()
223 verify(mHandlerSpy).handleMessage(messageCaptor.capture()); in testBroadcastP2pProvisionDiscoveryPairingBootstrappingOpportunisticResponse()
[all …]
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQnsMetricsTest.java260 verify(mMockStatsLib, timeout(1000).times(4)).append(capturePulled.capture()); in testAtomsQnsHandoverTimeMillisInfo()
261 verify(mMockStatsLib, timeout(1000).times(4)).write(capturePushed.capture()); in testAtomsQnsHandoverTimeMillisInfo()
298 ArgumentCaptor<AtomsQualifiedRatListChangedInfo> capture = in testAtomsQualifiedRatListChangedInfo() local
350 verify(mMockStatsLib, timeout(1000).times(2)).write(capture.capture()); in testAtomsQualifiedRatListChangedInfo()
351 List<AtomsQualifiedRatListChangedInfo> list = capture.getAllValues(); in testAtomsQualifiedRatListChangedInfo()
370 ArgumentCaptor<AtomsQnsHandoverPingPongInfo> capture = in testAtomsQnsHandoverPingPongInfo() local
463 verify(mMockStatsLib, timeout(1000).times(2)).append(capture.capture()); in testAtomsQnsHandoverPingPongInfo()
464 List<AtomsQnsHandoverPingPongInfo> list = capture.getAllValues(); in testAtomsQnsHandoverPingPongInfo()
474 ArgumentCaptor<AtomsQnsRatPreferenceMismatchInfo> capture = in testAtomsQnsRatPreferenceMismatchInfo() local
591 verify(mMockStatsLib, timeout(1000).times(2)).append(capture.capture()); in testAtomsQnsRatPreferenceMismatchInfo()
[all …]
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/secure/
DControleeInitiatorSessionTest.java82 verify(mFiRaSecureChannel).init(mSecureChannelCallbackCaptor.capture()); in setup()
111 controleeInfoCaptor.capture(), externalRequestCallbackCaptor.capture()); in putControleeInfo()
155 any(), externalRequestCallbackCaptor.capture()); in onSecureChannelEstablishedPutControleeInfoFail()
175 any(), externalRequestCallbackCaptor.capture()); in getControleeSessionData()
187 .tunnelToRemoteDevice(tunnelDataCaptor.capture(), any()); in tunnelCorrectGetSessionData()
206 .tunnelToRemoteDevice(tunnelDataCaptor.capture(), any()); in putControleeInfoErrorResponse()
248 fiRaCommandCaptor.capture(), cbCaptor.capture()); in successToGetSessionDataFromLocalAppletAsRdsAvailable()
276 any(), cbCaptor.capture()); in failToGetSessionDataFromLocalAppletAsRdsAvailable()
301 fiRaCommandCaptor.capture(), cbCaptor.capture()); in getControleeSessionDataSuccessResponseWithoutRdsAvailable()
328 any(), cbCaptor.capture()); in failedPutSessionDataToLocalApplet()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DEnrollmentDataDownloadManagerTest.java146 doReturn(true).when(mMockEnrollmentDao).insert(enrollmentDataCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess()
152 .getEncryptionKeyFromEnrollmentId(enrollmentIdCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess()
162 any(), enrollmentDataCaptor.capture(), isFirstFetchCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess()
166 doReturn(true).when(mMockEncryptionKeyDao).insert(encryptionKeyCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess()
277 doReturn(true).when(mMockEnrollmentDao).insert(captor.capture()); in testReadFileAndInsertIntoDatabaseParsingFailed()
320 .getEncryptionKeyFromEnrollmentId(enrollmentIdCaptor.capture()); in testEnrollmentMddRecordDeletionCallsOverwrite()
332 any(), enrollmentDataCaptor.capture(), isFirstFetchCaptor.capture()); in testEnrollmentMddRecordDeletionCallsOverwrite()
336 doReturn(true).when(mMockEncryptionKeyDao).insert(encryptionKeyCaptor.capture()); in testEnrollmentMddRecordDeletionCallsOverwrite()
388 doReturn(true).when(mMockEnrollmentDao).insert(enrollmentDataCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess_verifyFileGroupDataInSharedPreference()
394 .getEncryptionKeyFromEnrollmentId(enrollmentIdCaptor.capture()); in testReadFileAndInsertIntoDatabaseSuccess_verifyFileGroupDataInSharedPreference()
[all …]

12345678910>>...46