/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | SystemStateHelperTest.java | 253 ArgumentCaptor<UiModeManager.OnProjectionStateChangedListener> listenerCaptor = in testOnSetReleaseAutomotiveProjection() local 256 eq(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), any(), listenerCaptor.capture()); in testOnSetReleaseAutomotiveProjection() 263 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection() 268 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection() 273 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection() 276 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection()
|
D | MissedCallNotifierImplTest.java | 574 ArgumentCaptor<CallerInfoLookupHelper.OnQueryCompleteListener> listenerCaptor = in testLoadOneCallFromDb() local 577 listenerCaptor.capture()); in testLoadOneCallFromDb() 580 listenerCaptor.getValue().onCallerInfoQueryComplete(escapedHandle, ci); in testLoadOneCallFromDb() 636 ArgumentCaptor<CallerInfoLookupHelper.OnQueryCompleteListener> listenerCaptor = in testLoadTwoCallsFromDb() local 639 listenerCaptor.capture()); in testLoadTwoCallsFromDb() 641 listenerCaptor.capture()); in testLoadTwoCallsFromDb() 644 listenerCaptor.getAllValues().get(0).onCallerInfoQueryComplete(escapedTelHandle, ci); in testLoadTwoCallsFromDb() 645 listenerCaptor.getAllValues().get(1).onCallerInfoQueryComplete(escapedSipHandle, ci); in testLoadTwoCallsFromDb()
|
D | CallTest.java | 680 ArgumentCaptor<CallerInfoLookupHelper.OnQueryCompleteListener> listenerCaptor = in testGetFromCallerInfo() local 682 verify(mMockCallerInfoLookupHelper).startLookup(any(), listenerCaptor.capture()); in testGetFromCallerInfo() 683 listenerCaptor.getValue().onCallerInfoQueryComplete(call.getHandle(), info); in testGetFromCallerInfo()
|
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/ipmemorystore/ |
D | RegularMaintenanceJobServiceTest.kt | 96 val listenerCaptor = ArgumentCaptor.forClass(IOnStatusListener::class.java) in <lambda>() constant 98 verify(mockIPMS).fullMaintenance(listenerCaptor.capture(), imCaptor.capture()) in <lambda>() 101 return Triple(params, listenerCaptor.value, imCaptor.value) in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | MultinetworkPolicyTrackerTest.kt | 185 val listenerCaptor = ArgumentCaptor.forClass( in testOnActiveDataSubscriptionIdChanged() constant 188 .registerTelephonyCallback(any(), listenerCaptor.capture()) in testOnActiveDataSubscriptionIdChanged() 189 val listener = listenerCaptor.value in testOnActiveDataSubscriptionIdChanged()
|
D | AutomaticOnOffKeepaliveTrackerTest.java | 493 final ArgumentCaptor<AlarmManager.OnAlarmListener> listenerCaptor = in testAlarm() local 499 any() /* tag */, listenerCaptor.capture(), eq(mTestHandler)); in testAlarm() 500 final AlarmManager.OnAlarmListener listener = listenerCaptor.getValue(); in testAlarm() 514 final ArgumentCaptor<AlarmManager.OnAlarmListener> listenerCaptor = in testAlarm_writeMetrics() local 519 eq(METRICS_COLLECTION_DURATION_MS), any() /* tag */, listenerCaptor.capture(), in testAlarm_writeMetrics() 522 final AlarmManager.OnAlarmListener listener = listenerCaptor.getValue(); in testAlarm_writeMetrics() 532 any() /* tag */, listenerCaptor.capture(), eq(mTestHandler)); in testAlarm_writeMetrics()
|
D | SatelliteAccessControllerTest.kt | 316 val listenerCaptor = ArgumentCaptor.forClass(OnRoleHoldersChangedListener::class.java) in startSatelliteAccessController() constant 319 listenerCaptor.capture(), in startSatelliteAccessController() 322 mRoleHolderChangedListener = listenerCaptor.value in startSatelliteAccessController()
|
D | CarrierPrivilegeAuthenticatorTest.java | 172 final ArgumentCaptor<CarrierPrivilegesListenerShim> listenerCaptor = in getCarrierPrivilegesListeners() local 176 slotCaptor.capture(), any(), listenerCaptor.capture()); in getCarrierPrivilegesListeners() 180 CollectionUtils.assoc(slotCaptor.getAllValues(), listenerCaptor.getAllValues()); in getCarrierPrivilegesListeners()
|
D | KeepaliveStatsTrackerTest.java | 148 final ArgumentCaptor<OnSubscriptionsChangedListener> listenerCaptor = in getOnSubscriptionsChangedListener() local 151 .addOnSubscriptionsChangedListener(any(), listenerCaptor.capture()); in getOnSubscriptionsChangedListener() 152 return listenerCaptor.getValue(); in getOnSubscriptionsChangedListener()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/statusicon/ui/ |
D | MediaVolumeStatusIconControllerTest.java | 211 ArgumentCaptor<CarServiceProvider.CarServiceOnConnectedListener> listenerCaptor = in attachAndSetAudioMocks() local 215 verify(mCarServiceProvider).addListener(listenerCaptor.capture()); in attachAndSetAudioMocks() 225 listenerCaptor.getValue().onConnected(mCar); in attachAndSetAudioMocks()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/ |
D | GarageModeTest.java | 263 ArgumentCaptor<UserLifecycleListener> listenerCaptor = in getEventListener() local 265 verify(mCarUserService).addUserLifecycleListener(any(), listenerCaptor.capture()); in getEventListener() 266 UserLifecycleListener listener = listenerCaptor.getValue(); in getEventListener()
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | GsmCellBroadcastHandlerTest.java | 532 ArgumentCaptor<PhoneStateListener> listenerCaptor = in testResetAreaInfoOnOutOfService() local 534 verify(mMockedTelephonyManager).listen(listenerCaptor.capture(), anyInt()); in testResetAreaInfoOnOutOfService() 536 PhoneStateListener listener = listenerCaptor.getValue(); in testResetAreaInfoOnOutOfService() 562 ArgumentCaptor<PhoneStateListener> listenerCaptor = in testResetAreaInfoWithDefaultSubChanged() local 567 verify(tm2).listen(listenerCaptor.capture(), anyInt()); in testResetAreaInfoWithDefaultSubChanged() 569 PhoneStateListener listener = listenerCaptor.getValue(); in testResetAreaInfoWithDefaultSubChanged()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/ |
D | NsdServiceTest.java | 420 final ArgumentCaptor<IMDnsEventListener> listenerCaptor = in getEventListener() local 422 verify(mMockMDnsM).registerEventListener(listenerCaptor.capture()); in getEventListener() 423 return listenerCaptor.getValue(); in getEventListener() 1009 final ArgumentCaptor<MdnsListener> listenerCaptor = in testRegisterAndUnregisterServiceInfoCallback() local 1013 listenerCaptor.capture(), argThat(options -> network.equals(options.getNetwork()))); in testRegisterAndUnregisterServiceInfoCallback() 1015 final MdnsListener listener = listenerCaptor.getValue(); in testRegisterAndUnregisterServiceInfoCallback() 1142 final ArgumentCaptor<MdnsServiceBrowserListener> listenerCaptor = in testMdnsDiscoveryManagerFeature() local 1145 listenerCaptor.capture(), any()); in testMdnsDiscoveryManagerFeature() 1154 listenerCaptor.getValue()); in testMdnsDiscoveryManagerFeature() 1166 final ArgumentCaptor<MdnsListener> listenerCaptor = in testDiscoveryWithMdnsDiscoveryManager() local [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/ |
D | TelephonyDomainSelectionServiceTest.java | 165 ArgumentCaptor<OnSubscriptionsChangedListener> listenerCaptor = in setUp() local 168 any(Executor.class), listenerCaptor.capture()); in setUp() 169 mOnSubscriptionsChangedListener = listenerCaptor.getValue(); in setUp()
|
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/ |
D | OpportunisticNetworkServiceTest.java | 417 final ArgumentCaptor<CarrierConfigManager.CarrierConfigChangeListener> listenerCaptor = in testCarrierConfigChangedUnlocked() local 421 listenerCaptor.capture()); in testCarrierConfigChangedUnlocked() 422 CarrierConfigChangeListener = listenerCaptor.getAllValues().get(0); in testCarrierConfigChangedUnlocked()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 432 ArgumentCaptor<ICarPowerStateListener> listenerCaptor = in mockPowerStateListener() local 434 verify(mCarPowerManagementService).registerListener(listenerCaptor.capture()); in mockPowerStateListener() 435 return listenerCaptor.getValue(); in mockPowerStateListener()
|
/packages/modules/Wifi/framework/tests/src/android/net/wifi/ |
D | WifiManagerTest.java | 2881 ArgumentCaptor<IOnWifiActivityEnergyInfoListener> listenerCaptor = in testGetWifiActivityInfoRunsOnCorrectExecutor() local 2883 verify(mWifiService).getWifiActivityEnergyInfoAsync(listenerCaptor.capture()); in testGetWifiActivityInfoRunsOnCorrectExecutor() 2884 IOnWifiActivityEnergyInfoListener listener = listenerCaptor.getValue(); in testGetWifiActivityInfoRunsOnCorrectExecutor() 2899 ArgumentCaptor<IOnWifiActivityEnergyInfoListener> listenerCaptor = in testGetWifiActivityInfoRunsCorrectListener() local 2901 verify(mWifiService).getWifiActivityEnergyInfoAsync(listenerCaptor.capture()); in testGetWifiActivityInfoRunsCorrectListener() 2902 IOnWifiActivityEnergyInfoListener listener = listenerCaptor.getValue(); in testGetWifiActivityInfoRunsCorrectListener() 3754 ArgumentCaptor<IOnWifiDriverCountryCodeChangedListener.Stub> listenerCaptor = in testUnregisterActiveCountryCodeChangedCallbackCallGoesToWifiServiceImpl() local 3758 verify(mWifiService).registerDriverCountryCodeChangedListener(listenerCaptor.capture(), in testUnregisterActiveCountryCodeChangedCallbackCallGoesToWifiServiceImpl() 3763 verify(mWifiService).unregisterDriverCountryCodeChangedListener(listenerCaptor.getValue()); in testUnregisterActiveCountryCodeChangedCallbackCallGoesToWifiServiceImpl() 3773 ArgumentCaptor<IOnWifiDriverCountryCodeChangedListener.Stub> listenerCaptor = in testDriverCountryCodeChangedCallbackProxyCallsOnActiveCountryCodeChanged() local [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/databroker/ |
D | DataBrokerTest.java | 172 ArgumentCaptor<AbstractPublisher.PublisherListener> listenerCaptor = in setUp() local 174 verify(mMockPublisherFactory).initialize(listenerCaptor.capture()); in setUp() 175 mPublisherListener = listenerCaptor.getValue(); in setUp()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | SimPhonebookProviderTest.java | 1230 ArgumentCaptor<SubscriptionManager.OnSubscriptionsChangedListener> listenerCaptor = in subscriptionsChange_callsNotifyChange() local 1236 any(), listenerCaptor.capture()); in subscriptionsChange_callsNotifyChange() 1240 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange() 1244 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange() 1248 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange() 1251 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | BaseCarUserServiceTestCase.java | 360 ArgumentCaptor<ICarUxRestrictionsChangeListener> listenerCaptor = in initService() local 363 listenerCaptor.capture(), eq(Display.DEFAULT_DISPLAY)); in initService() 367 ICarUxRestrictionsChangeListener listener = listenerCaptor.getValue(); in initService()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiCarrierInfoManagerTest.java | 2201 ArgumentCaptor<WifiCarrierInfoManager.UserDataEnabledChangedListener> listenerCaptor = in testSetAndGetMergedCarrierNetworkOffload() local 2206 verify(mDataTelephonyManager).registerTelephonyCallback(any(), listenerCaptor.capture()); in testSetAndGetMergedCarrierNetworkOffload() 2209 listenerCaptor.getValue().onDataEnabledChanged(false, DATA_ENABLED_REASON_THERMAL); in testSetAndGetMergedCarrierNetworkOffload() 2212 listenerCaptor.getValue().onDataEnabledChanged(true, DATA_ENABLED_REASON_USER); in testSetAndGetMergedCarrierNetworkOffload()
|
D | ClientModeImplTest.java | 1582 ArgumentCaptor<WifiPseudonymManager.PseudonymUpdatingListener> listenerCaptor = in testUpdatingOobPseudonymToSupplicant() local 1585 verify(mWifiPseudonymManager).registerPseudonymUpdatingListener(listenerCaptor.capture()); in testUpdatingOobPseudonymToSupplicant() 1591 listenerCaptor.getValue().onUpdated(CARRIER_ID_1, expectedPseudonym); in testUpdatingOobPseudonymToSupplicant() 1603 .unregisterPseudonymUpdatingListener(eq(listenerCaptor.getValue())); in testUpdatingOobPseudonymToSupplicant() 1611 ArgumentCaptor<WifiPseudonymManager.PseudonymUpdatingListener> listenerCaptor = in testNotUpdatingOobPseudonymToSupplicant() local 1614 verify(mWifiPseudonymManager).registerPseudonymUpdatingListener(listenerCaptor.capture()); in testNotUpdatingOobPseudonymToSupplicant() 1620 listenerCaptor.getValue().onUpdated(CARRIER_ID_1, expectedPseudonym); in testNotUpdatingOobPseudonymToSupplicant() 1632 .unregisterPseudonymUpdatingListener(eq(listenerCaptor.getValue())); in testNotUpdatingOobPseudonymToSupplicant()
|
/packages/services/Telephony/tests/src/com/android/services/telephony/ |
D | TelephonyConnectionServiceTest.java | 2405 ArgumentCaptor<Connection.Listener> listenerCaptor = in testDomainSelectionRejectIncoming() local 2408 verify(mInternalConnection2).addListener(listenerCaptor.capture()); in testDomainSelectionRejectIncoming() 2412 Connection.Listener listener = listenerCaptor.getValue(); in testDomainSelectionRejectIncoming() 2452 ArgumentCaptor<Connection.Listener> listenerCaptor = in testDomainSelectionRedialRejectIncoming() local 2455 verify(mInternalConnection2).addListener(listenerCaptor.capture()); in testDomainSelectionRedialRejectIncoming() 2459 Connection.Listener listener = listenerCaptor.getValue(); in testDomainSelectionRedialRejectIncoming()
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 3400 final ArgumentCaptor<ServiceListener> listenerCaptor = in verifySetBluetoothTethering() local 3402 verify(mBluetoothAdapter).getProfileProxy(eq(mServiceContext), listenerCaptor.capture(), in verifySetBluetoothTethering() 3404 listener = listenerCaptor.getValue(); in verifySetBluetoothTethering()
|