Home
last modified time | relevance | path

Searched refs:mCaptor (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/common/
DSingleLiveEventTest.java56 private ArgumentCaptor<String> mCaptor; field in SingleLiveEventTest
76 verify(mMockObserver1, times(1)).onChanged(mCaptor.capture()); in test_onChangeCalledAfterSetValue()
77 assertThat(mCaptor.getValue()).isEqualTo(VALUE); in test_onChangeCalledAfterSetValue()
88 verify(mMockObserver1, times(1)).onChanged(mCaptor.capture()); in test_onChangeOnlyHandledOnce()
89 assertThat(mCaptor.getValue()).isEqualTo(VALUE); in test_onChangeOnlyHandledOnce()
/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/favorite/
DFavoriteFragmentTest.java108 ArgumentCaptor<String> mCaptor = ArgumentCaptor.forClass(String.class); in testOnItemClick_contactHasPrimaryNumber_placeCall() local
109 verify(mMockUiCallManager).placeCall(mCaptor.capture()); in testOnItemClick_contactHasPrimaryNumber_placeCall()
110 assertThat(mCaptor.getValue()).isEqualTo(RAW_NUMBER); in testOnItemClick_contactHasPrimaryNumber_placeCall()
121 ArgumentCaptor<String> mCaptor = ArgumentCaptor.forClass(String.class); in testOnItemClick_contactHasOnlyOneNumber_placeCall() local
122 verify(mMockUiCallManager).placeCall(mCaptor.capture()); in testOnItemClick_contactHasOnlyOneNumber_placeCall()
123 assertThat(mCaptor.getValue()).isEqualTo(RAW_NUMBER); in testOnItemClick_contactHasOnlyOneNumber_placeCall()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsTemperaturePreferenceControllerTest.java56 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsTemperaturePreferenceControllerTest
72 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.HVAC_TEMPERATURE_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
DUnitsPressurePreferenceControllerTest.java57 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsPressurePreferenceControllerTest
73 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
91 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.TIRE_PRESSURE_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
DUnitsDistancePreferenceControllerTest.java56 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsDistancePreferenceControllerTest
72 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.DISTANCE_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
DUnitsFuelConsumptionPreferenceControllerTest.java57 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsFuelConsumptionPreferenceControllerTest
73 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
DUnitsVolumePreferenceControllerTest.java56 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsVolumePreferenceControllerTest
72 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
90 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.FUEL_VOLUME_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
DUnitsEnergyConsumptionPreferenceControllerTest.java57 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsEnergyConsumptionPreferenceControllerTest
73 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
91 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.EV_BATTERY_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
DUnitsSpeedPreferenceControllerTest.java57 private ArgumentCaptor<Integer> mCaptor = ArgumentCaptor.forClass(Integer.class); field in UnitsSpeedPreferenceControllerTest
73 when(mCarUnitsManager.getUnitsSupportedByProperty(mCaptor.capture())) in setUp()
91 assertThat(mCaptor.getValue()).isEqualTo(VehiclePropertyIds.VEHICLE_SPEED_DISPLAY_UNITS); in onCarServiceConnected_setsPreferenceEntriesAndValue()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java149 ArgumentCaptor<Notification> mCaptor; field in NetworkNotificationManagerTest
156 mCaptor = ArgumentCaptor.forClass(Notification.class); in setUp()