Home
last modified time | relevance | path

Searched refs:listenerCaptor (Results 1 – 9 of 9) sorted by relevance

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateHelperTest.java252 ArgumentCaptor<UiModeManager.OnProjectionStateChangedListener> listenerCaptor = in testOnSetReleaseAutomotiveProjection() local
255 eq(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE), any(), listenerCaptor.capture()); in testOnSetReleaseAutomotiveProjection()
262 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection()
267 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection()
272 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection()
275 listenerCaptor.getValue().onProjectionStateChanged( in testOnSetReleaseAutomotiveProjection()
DMissedCallNotifierImplTest.java550 ArgumentCaptor<CallerInfoLookupHelper.OnQueryCompleteListener> listenerCaptor = in testLoadOneCallFromDb() local
553 listenerCaptor.capture()); in testLoadOneCallFromDb()
556 listenerCaptor.getValue().onCallerInfoQueryComplete(escapedHandle, ci); in testLoadOneCallFromDb()
612 ArgumentCaptor<CallerInfoLookupHelper.OnQueryCompleteListener> listenerCaptor = in testLoadTwoCallsFromDb() local
615 listenerCaptor.capture()); in testLoadTwoCallsFromDb()
617 listenerCaptor.capture()); in testLoadTwoCallsFromDb()
620 listenerCaptor.getAllValues().get(0).onCallerInfoQueryComplete(escapedTelHandle, ci); in testLoadTwoCallsFromDb()
621 listenerCaptor.getAllValues().get(1).onCallerInfoQueryComplete(escapedSipHandle, ci); in testLoadTwoCallsFromDb()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeTest.java152 ArgumentCaptor<UserLifecycleListener> listenerCaptor = in getEventListener() local
154 verify(mCarUserService).addUserLifecycleListener(listenerCaptor.capture()); in getEventListener()
155 UserLifecycleListener listener = listenerCaptor.getValue(); in getEventListener()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DMultinetworkPolicyTrackerTest.kt141 val listenerCaptor = ArgumentCaptor.forClass( in testOnActiveDataSubscriptionIdChanged() constant
144 .registerTelephonyCallback(any(), listenerCaptor.capture()) in testOnActiveDataSubscriptionIdChanged()
145 val listener = listenerCaptor.value in testOnActiveDataSubscriptionIdChanged()
/packages/services/Telephony/tests/src/com/android/phone/
DSimPhonebookProviderTest.java1155 ArgumentCaptor<SubscriptionManager.OnSubscriptionsChangedListener> listenerCaptor = in subscriptionsChange_callsNotifyChange() local
1161 any(), listenerCaptor.capture()); in subscriptionsChange_callsNotifyChange()
1162 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange()
1164 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange()
1165 listenerCaptor.getValue().onSubscriptionsChanged(); in subscriptionsChange_callsNotifyChange()
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiManagerTest.java2641 ArgumentCaptor<IOnWifiActivityEnergyInfoListener> listenerCaptor = in testGetWifiActivityInfoRunsOnCorrectExecutor() local
2643 verify(mWifiService).getWifiActivityEnergyInfoAsync(listenerCaptor.capture()); in testGetWifiActivityInfoRunsOnCorrectExecutor()
2644 IOnWifiActivityEnergyInfoListener listener = listenerCaptor.getValue(); in testGetWifiActivityInfoRunsOnCorrectExecutor()
2659 ArgumentCaptor<IOnWifiActivityEnergyInfoListener> listenerCaptor = in testGetWifiActivityInfoRunsCorrectListener() local
2661 verify(mWifiService).getWifiActivityEnergyInfoAsync(listenerCaptor.capture()); in testGetWifiActivityInfoRunsCorrectListener()
2662 IOnWifiActivityEnergyInfoListener listener = listenerCaptor.getValue(); in testGetWifiActivityInfoRunsCorrectListener()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java1941 ArgumentCaptor<WifiCarrierInfoManager.UserDataEnabledChangedListener> listenerCaptor = in testSetAndGetMergedCarrierNetworkOffload() local
1946 verify(mDataTelephonyManager).registerTelephonyCallback(any(), listenerCaptor.capture()); in testSetAndGetMergedCarrierNetworkOffload()
1949 listenerCaptor.getValue().onDataEnabledChanged(false, DATA_ENABLED_REASON_USER); in testSetAndGetMergedCarrierNetworkOffload()
1952 listenerCaptor.getValue().onDataEnabledChanged(true, DATA_ENABLED_REASON_USER); in testSetAndGetMergedCarrierNetworkOffload()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DTetheringTest.java2606 final ArgumentCaptor<ServiceListener> listenerCaptor = in verifySetBluetoothTethering() local
2609 verify(mBluetoothAdapter).getProfileProxy(eq(mServiceContext), listenerCaptor.capture(), in verifySetBluetoothTethering()
2611 final ServiceListener listener = listenerCaptor.getValue(); in verifySetBluetoothTethering()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java266 ArgumentCaptor<ICarUxRestrictionsChangeListener> listenerCaptor = in initService() local
269 listenerCaptor.capture(), eq(Display.DEFAULT_DISPLAY)); in initService()
273 ICarUxRestrictionsChangeListener listener = listenerCaptor.getValue(); in initService()