Home
last modified time | relevance | path

Searched refs:mCarPropertyManager (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/
DAdjustableTemperatureViewTest.java70 private CarPropertyManager mCarPropertyManager; field in AdjustableTemperatureViewTest
80 when(mCar.getCarManager(Car.PROPERTY_SERVICE)).thenReturn(mCarPropertyManager); in setUp()
93 when(mCarPropertyManager.isPropertyAvailable(eq(HVAC_TEMPERATURE_SET), in addTemperatureViewToController_setsTemperatureView()
95 when(mCarPropertyManager.getFloatProperty(eq(HVAC_TEMPERATURE_SET), anyInt())).thenReturn( in addTemperatureViewToController_setsTemperatureView()
106 when(mCarPropertyManager.isPropertyAvailable(eq(HVAC_TEMPERATURE_SET), in setTemp_tempNaN_setsTextToNaNText()
108 when(mCarPropertyManager.getFloatProperty(eq(HVAC_TEMPERATURE_SET), anyInt())).thenReturn( in setTemp_tempNaN_setsTextToNaNText()
120 when(mCarPropertyManager.isPropertyAvailable(eq(HVAC_TEMPERATURE_SET), in setTemp_tempBelowMin_setsTextToMinTempText()
122 when(mCarPropertyManager.getFloatProperty(eq(HVAC_TEMPERATURE_SET), anyInt())).thenReturn( in setTemp_tempBelowMin_setsTextToMinTempText()
134 when(mCarPropertyManager.isPropertyAvailable(eq(HVAC_TEMPERATURE_SET), in setTemp_tempAboveMax_setsTextToMaxTempText()
136 when(mCarPropertyManager.getFloatProperty(eq(HVAC_TEMPERATURE_SET), anyInt())).thenReturn( in setTemp_tempAboveMax_setsTextToMaxTempText()
[all …]
DTemperatureTextViewTest.java69 private CarPropertyManager mCarPropertyManager; field in TemperatureTextViewTest
77 when(mCar.getCarManager(Car.PROPERTY_SERVICE)).thenReturn(mCarPropertyManager); in setUp()
88 when(mCarPropertyManager.isPropertyAvailable(eq(HVAC_TEMPERATURE_SET), in addTemperatureViewToController_usingTemperatureView_registersView()
90 when(mCarPropertyManager.getFloatProperty(eq(HVAC_TEMPERATURE_SET), anyInt())).thenReturn( in addTemperatureViewToController_usingTemperatureView_registersView()
100 when(mCarPropertyManager.isPropertyAvailable(eq(HVAC_TEMPERATURE_SET), in setTemperatureToFahrenheit_callsViewSetDisplayInFahrenheit()
102 when(mCarPropertyManager.getFloatProperty(eq(HVAC_TEMPERATURE_SET), anyInt())).thenReturn( in setTemperatureToFahrenheit_callsViewSetDisplayInFahrenheit()
104 when(mCarPropertyManager.isPropertyAvailable(HVAC_TEMPERATURE_DISPLAY_UNITS, in setTemperatureToFahrenheit_callsViewSetDisplayInFahrenheit()
106 when(mCarPropertyManager.getIntProperty(HVAC_TEMPERATURE_DISPLAY_UNITS, in setTemperatureToFahrenheit_callsViewSetDisplayInFahrenheit()
DHvacControllerTest.java67 private CarPropertyManager mCarPropertyManager; field in HvacControllerTest
75 when(mCar.getCarManager(Car.PROPERTY_SERVICE)).thenReturn(mCarPropertyManager); in setUp()
85 verify(mCarPropertyManager).registerCallback(any(), eq(HVAC_TEMPERATURE_SET), anyFloat()); in connectToCarService_registersCallback()
86 verify(mCarPropertyManager).registerCallback(any(), eq(HVAC_TEMPERATURE_DISPLAY_UNITS), in connectToCarService_registersCallback()
124 when(mCarPropertyManager.isPropertyAvailable(HVAC_TEMPERATURE_DISPLAY_UNITS, in setTemperatureToFahrenheit_callsViewSetDisplayInFahrenheit()
126 when(mCarPropertyManager.getIntProperty(HVAC_TEMPERATURE_DISPLAY_UNITS, in setTemperatureToFahrenheit_callsViewSetDisplayInFahrenheit()
139 when(mCarPropertyManager.isPropertyAvailable(HVAC_TEMPERATURE_SET, areaId)).thenReturn( in setupMockTemperatureTextView()
141 when(mCarPropertyManager.getFloatProperty(HVAC_TEMPERATURE_SET, areaId)).thenReturn(value); in setupMockTemperatureTextView()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacController.java59 private CarPropertyManager mCarPropertyManager; field in HvacController
110 mCarPropertyManager = (CarPropertyManager) car.getCarManager(
112 mCarPropertyManager.registerCallback(mHvacTemperatureSetCallback,
114 mCarPropertyManager.registerCallback(mTemperatureUnitChangeCallback,
173 if (mCarPropertyManager != null && mCarPropertyManager.isPropertyAvailable( in initComponent()
175 if (mCarPropertyManager.getIntProperty(HVAC_TEMPERATURE_DISPLAY_UNITS, in initComponent()
180 if (mCarPropertyManager == null || !mCarPropertyManager.isPropertyAvailable( in initComponent()
186 mCarPropertyManager.getFloatProperty(HVAC_TEMPERATURE_SET, zone)); in initComponent()
222 if (mCarPropertyManager != null) { in setTemperature()
225 () -> mCarPropertyManager.setFloatProperty(HVAC_TEMPERATURE_SET, zone, tempC)); in setTemperature()
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DCarUnitsManager.java40 private CarPropertyManager mCarPropertyManager; field in CarUnitsManager
46 mCarPropertyManager = in CarUnitsManager()
56 mCarServiceListener.handleServiceConnected(mCarPropertyManager); in registerCarServiceListener()
78 intProperty = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in isPropertyAvailable()
89 List<CarPropertyConfig> configs = mCarPropertyManager.getPropertyList(propertyIdSet); in getUnitsSupportedByProperty()
118 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty()
132 mCarPropertyManager.setIntProperty(propertyId, AREA_ID, unitId); in setUnitUsedByProperty()
145 return mCarPropertyManager.getBooleanProperty( in isDistanceOverVolume()
DUnitsSettingsFragment.java52 private CarPropertyManager mCarPropertyManager;
65 mCarPropertyManager = (CarPropertyManager) car.getCarManager(
67 if (mCarPropertyManager != null) {
130 return mCarPropertyManager.getIntProperty(propertyId, /* area= */ 0)
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java64 private CarPropertyManager mCarPropertyManager; field in UnitsBasePreferenceControllerTest
103 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable()
113 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_noAvailableUnits_preferenceIsConditionallyUnavailable()
121 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsEntriesOfSupportedUnits()
129 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsSupportedUnitsIdsAsEntryValues()
137 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsUnitBeingUsedAsPreferenceValue()
145 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
155 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
166 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitAbbreviationAsSummary()
DUnitsTemperaturePreferenceControllerTest.java63 private CarPropertyManager mCarPropertyManager; field in UnitsTemperaturePreferenceControllerTest
87 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
98 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
109 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
DUnitsPressurePreferenceControllerTest.java64 private CarPropertyManager mCarPropertyManager; field in UnitsPressurePreferenceControllerTest
88 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
99 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
110 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
DUnitsDistancePreferenceControllerTest.java63 private CarPropertyManager mCarPropertyManager; field in UnitsDistancePreferenceControllerTest
87 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
98 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
108 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
DUnitsFuelConsumptionPreferenceControllerTest.java64 private CarPropertyManager mCarPropertyManager; field in UnitsFuelConsumptionPreferenceControllerTest
88 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
101 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
112 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
DUnitsVolumePreferenceControllerTest.java63 private CarPropertyManager mCarPropertyManager; field in UnitsVolumePreferenceControllerTest
87 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
98 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
108 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
DUnitsEnergyConsumptionPreferenceControllerTest.java64 private CarPropertyManager mCarPropertyManager; field in UnitsEnergyConsumptionPreferenceControllerTest
88 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
102 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
113 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
DUnitsSpeedPreferenceControllerTest.java64 private CarPropertyManager mCarPropertyManager; field in UnitsSpeedPreferenceControllerTest
88 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsPreferenceEntriesAndValue()
99 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()
110 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onPropertyChanged_propertyStatusIsAvailable_setsNewUnitIdAsValue()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterViewModel.java73 private CarPropertyManager mCarPropertyManager; field in ClusterViewModel
93 mCarPropertyManager = null;
111 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in registerCarPropertiesListener()
114 mCarPropertyManager.registerCallback(mCarPropertyEventCallback, in registerCarPropertiesListener()
183 mCarPropertyManager = null; in onCleared()
226 CarPropertyValue<?> value = mCarPropertyManager in getSensorValue()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DClusterViewModel.java76 private CarPropertyManager mCarPropertyManager; field in ClusterViewModel
90 mCarPropertyManager = null;
108 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in registerCarPropertiesListener()
111 mCarPropertyManager.registerCallback(mCarPropertyEventCallback, in registerCarPropertiesListener()
176 mCarPropertyManager = null; in onCleared()
219 CarPropertyValue<?> value = mCarPropertyManager in getSensorValue()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java135 private CarPropertyManager mCarPropertyManager; field in SensorsTestFragment
190 if (mCarPropertyManager != null) { in onPause()
191 mCarPropertyManager.unregisterCallback(mCarPropertyEventCallback); in onPause()
209 if (mCarPropertyManager == null) { in initCarSensor()
210 mCarPropertyManager = ((KitchenSinkActivity) getActivity()).getPropertyManager(); in initCarSensor()
212 mCarPropertyConfigs = mCarPropertyManager.getPropertyList(SENSORS_SET); in initCarSensor()
220 mCarPropertyManager.registerCallback(mCarPropertyEventCallback, in initCarSensor()