Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarLibUnitTest/src/android/car/hardware/property/
DCarPropertyManagerUnitTest.java178 private CarPropertyManager mCarPropertyManager; field in CarPropertyManagerUnitTest
296 mCarPropertyManager = new CarPropertyManager(mCar, mICarProperty); in setUp()
299 mCarPropertyManager.setFeatureFlags(mFeatureFlags); in setUp()
308 assertThat(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)).isEqualTo(value); in testGetProperty_returnsValue()
316 () -> mCarPropertyManager.getProperty(INVALID, 0)); in testGetProperty_unsupportedProperty_exceptionAtU()
323 assertThat(mCarPropertyManager.getProperty(INVALID, 0)).isNull(); in testGetProperty_unsupportedProperty_nullBeforeU()
333 () -> mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)); in testGetProperty_unsupportedPropertyInSvc_exceptionAtU()
342 assertThat(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)).isNull(); in testGetProperty_unsupportedPropertyInSvc_nullBeforeU()
352 assertThat(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)).isEqualTo(value); in testGetProperty_syncOpTryAgain()
365 mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, 0)); in testGetProperty_syncOpTryAgain_exceedRetryCountLimit()
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java64 private CarPropertyManager mCarPropertyManager; field in UnitsBasePreferenceControllerTest
127 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable()
136 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable_zoneWrite()
146 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable_zoneRead()
156 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_availableUnitsExist_preferenceIsAvailable_zoneHidden()
167 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_noAvailableUnits_preferenceIsConditionallyUnavailable()
178 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_preferenceIsConditionallyUnavailable_zoneWrite()
190 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_preferenceIsConditionallyUnavailable_zoneRead()
202 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_preferenceIsConditionallyUnavailable_zoneHidden()
211 mPreferenceController.mOnCarServiceListener.handleServiceConnected(mCarPropertyManager); in onCarServiceConnected_setsEntriesOfSupportedUnits()
[all …]
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()
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()
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()
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()
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()
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()
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()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarPropertyManagerTest.java65 private CarPropertyManager mCarPropertyManager; field in CarPropertyManagerTest
74 mCarPropertyManager = (CarPropertyManager) getCar().getCarManager(Car.PROPERTY_SERVICE); in setUp()
75 assertThat(mCarPropertyManager).isNotNull(); in setUp()
88 List<CarPropertyConfig> carPropertyConfigList = mCarPropertyManager.getPropertyList( in testGetProperty_withVendorPropertyId_throws()
93 mCarPropertyManager.getProperty(VENDOR_PROPERTY_FOR_ERROR_CODE_TESTING, in testGetProperty_withVendorPropertyId_throws()
102 List<CarPropertyConfig> carPropertyConfigList = mCarPropertyManager.getPropertyList( in testSetProperty_withVendorPropertyId_throws()
107 () -> mCarPropertyManager.setProperty(Integer.class, in testSetProperty_withVendorPropertyId_throws()
117 mCarPropertyManager.getPropertyList(); in testGetPropertyListWithLargeNumberOfConfigs()
134 List<CarPropertyConfig> carPropertyConfigsList = mCarPropertyManager.getPropertyList(); in testGetPropertyListWithLargeNumberOfConfigs()
173 mCarPropertyManager.generateSetPropertyRequest( in testSetPropertiesAsyncWithLargeNumberRequests()
[all …]
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/
DHvacControllerTest.java75 private CarPropertyManager mCarPropertyManager; field in HvacControllerTest
97 when(mCar.getCarManager(Car.PROPERTY_SERVICE)).thenReturn(mCarPropertyManager); in setUp()
98 when(mCarPropertyManager.getCarPropertyConfig(anyInt())).thenReturn(mCarPropertyConfig); in setUp()
130 when(mCarPropertyManager.getCarPropertyConfig(HVAC_TEMPERATURE_SET).getAreaType()) in registerHvacView_skipHvacPropertiesToGetOnInit()
145 when(mCarPropertyManager.getCarPropertyConfig(anyInt())).thenReturn(mCarPropertyConfig); in registerHvacView_retrieveHvacPropertiesToGetOnInit()
146 when(mCarPropertyManager.getCarPropertyConfig(anyInt()).getAreaType()) in registerHvacView_retrieveHvacPropertiesToGetOnInit()
149 when(mCarPropertyManager.getCarPropertyConfig(anyInt()).getAreaIds()) in registerHvacView_retrieveHvacPropertiesToGetOnInit()
151 when(mCarPropertyManager.getProperty(HVAC_TEMPERATURE_SET, AREA_1)) in registerHvacView_retrieveHvacPropertiesToGetOnInit()
153 when(mCarPropertyManager.getProperty(HVAC_AUTO_ON, AREA_1)) in registerHvacView_retrieveHvacPropertiesToGetOnInit()
155 when(mCarPropertyManager.getProperty(HVAC_POWER_ON, AREA_1)) in registerHvacView_retrieveHvacPropertiesToGetOnInit()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/units/
DCarUnitsManager.java41 private CarPropertyManager mCarPropertyManager; field in CarUnitsManager
47 mCarPropertyManager = in CarUnitsManager()
57 mCarServiceListener.handleServiceConnected(mCarPropertyManager); in registerCarServiceListener()
79 intProperty = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in isPropertyAvailable()
90 List<CarPropertyConfig> configs = mCarPropertyManager.getPropertyList(propertyIdSet); in getUnitsSupportedByProperty()
127 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty()
141 mCarPropertyManager.setIntProperty(propertyId, AREA_ID, unitId); in setUnitUsedByProperty()
154 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/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/statusicon/ui/
DStatusBarSensorInfoManager.java55 private CarPropertyManager mCarPropertyManager; field in StatusBarSensorInfoManager
80 mCarPropertyManager =
118 mCarPropertyManager.getAreaId(ENV_OUTSIDE_TEMPERATURE, SEAT_UNKNOWN); in initializeHvacProperties()
120 mCarPropertyManager.getFloatProperty(ENV_OUTSIDE_TEMPERATURE, temperatureAreaId); in initializeHvacProperties()
122 mCarPropertyManager.getAreaId(HVAC_TEMPERATURE_DISPLAY_UNITS, SEAT_UNKNOWN); in initializeHvacProperties()
124 mCarPropertyManager.getIntProperty(HVAC_TEMPERATURE_DISPLAY_UNITS, unitAreaId); in initializeHvacProperties()
130 mCarPropertyManager.registerCallback(mPropertyEventCallback, propertyId, in registerHvacPropertyEventListeners()
137 mCarPropertyManager.unregisterCallback(mPropertyEventCallback, propertyId); in unregisterHvacPropertyEventListeners()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/
DCarActuator.java40 private CarPropertyManager mCarPropertyManager; field in CarActuator
75 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in onCreate()
98 CarPropertyConfig config = mCarPropertyManager in changeAC()
113 boolean isACInAreaOn = mCarPropertyManager in changeAC()
126 mCarPropertyManager.setBooleanProperty(VehiclePropertyIds.HVAC_AC_ON, areaId, turnOn); in changeAC()
134 if (!mCarPropertyManager.isPropertyAvailable(VehiclePropertyIds.PERF_VEHICLE_SPEED, in informSpeed()
139 float speedInMetersPerSecond = mCarPropertyManager.getFloatProperty( in informSpeed()
147 CarPropertyConfig config = mCarPropertyManager in informTirePressure()
158 float pressureKPA = mCarPropertyManager.getFloatProperty( in informTirePressure()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacController.java113 private CarPropertyManager mCarPropertyManager; field in HvacController
152 mCarPropertyManager =
155 mCarPropertyManager.getCarPropertyConfig(HVAC_POWER_ON);
181 CarPropertyConfig config = mCarPropertyManager.getCarPropertyConfig(propertyId); in getSupportedAreaIds()
218 mCarPropertyManager.setIntProperty(propertyId, areaId, val); in setHvacProperty()
242 mCarPropertyManager.setFloatProperty(propertyId, areaId, val); in setHvacProperty()
266 mCarPropertyManager.setBooleanProperty(propertyId, areaId, val); in setHvacProperty()
293 mCarPropertyManager.getCarPropertyConfig(propId); in registerHvacViews()
311 if (mCarPropertyManager != null) { in registerHvacViews()
410 int valueAreaType = mCarPropertyManager.getCarPropertyConfig(value.getPropertyId()) in handleHvacPropertyChange()
[all …]
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterViewModel.java76 private CarPropertyManager mCarPropertyManager; field in ClusterViewModel
96 mCarPropertyManager = null;
114 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in registerCarPropertiesListener()
117 mCarPropertyManager.subscribePropertyEvents(propertyId, in registerCarPropertiesListener()
186 mCarPropertyManager = null; in onCleared()
227 if (mCarPropertyManager == null) { in getSensorValue()
231 CarPropertyValue<?> carPropertyValue = mCarPropertyManager.getProperty(sensor.mPropertyId, in getSensorValue()
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/calmmode/
DTemperatureViewModelTest.java63 private CarPropertyManager mCarPropertyManager; field in TemperatureViewModelTest
73 when(mCar.getCarManager(CarPropertyManager.class)).thenReturn(mCarPropertyManager); in setUp()
81 when(mCarPropertyManager.getAreaId(anyInt(), anyInt())).thenReturn(TEST_AREA_ID); in setUp()
82 when(mCarPropertyManager.getProperty( in setUp()
85 when(mCarPropertyManager.getProperty( in setUp()
149 verify(mCarPropertyManager, times(2)).unregisterCallback(any(), anyInt()); in testOnCleared_expectedMethodsInvoked()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/view/
DClusterViewModel.java80 private CarPropertyManager mCarPropertyManager; field in ClusterViewModel
94 mCarPropertyManager = null;
112 mCarPropertyManager = (CarPropertyManager) mCar.getCarManager(Car.PROPERTY_SERVICE); in registerCarPropertiesListener()
116 mCarPropertyManager.subscribePropertyEvents(propertyId, in registerCarPropertiesListener()
181 mCarPropertyManager = null; in onCleared()
224 CarPropertyValue<?> value = mCarPropertyManager in getSensorValue()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java133 private CarPropertyManager mCarPropertyManager; field in SensorsTestFragment
208 if (mCarPropertyManager != null) { in onPause()
209 mCarPropertyManager.unregisterCallback(mCarPropertyEventCallback); in onPause()
227 if (mCarPropertyManager == null) { in initCarSensor()
228 mCarPropertyManager = mKitchenSinkHelper.getPropertyManager(); in initCarSensor()
230 mCarPropertyConfigs = mCarPropertyManager.getPropertyList(SENSORS_SET); in initCarSensor()
238 mCarPropertyManager.registerCallback(mCarPropertyEventCallback, in initCarSensor()
/packages/services/Car/libs/backported-car-property-helper-lib/src/com/android/car/property/backported/
DCarPropertyHelper.java38 private final CarPropertyManager mCarPropertyManager; field in CarPropertyHelper
89 mCarPropertyManager = carPropertyManager; in CarPropertyHelper()
104 boolean isSupported = (mCarPropertyManager.getCarPropertyConfig(propertyId) != null); in isPropertySupported()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/remoteaccess/
DKitchenSinkRemoteTaskService.java66 private CarPropertyManager mCarPropertyManager; field in KitchenSinkRemoteTaskService
88 mCarPropertyManager = (CarPropertyManager) car.getCarManager( in onCreate()
93 mCarPropertyManager = null; in onCreate()
124 mCarPropertyManager.setFloatProperty( in handleTaskData()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java1628 private final WeakReference<CarPropertyManager> mCarPropertyManager; field in CarPropertyManager.CarPropertyEventListenerToService
1631 mCarPropertyManager = new WeakReference<>(carPropertyManager); in CarPropertyEventListenerToService()
1636 CarPropertyManager carPropertyManager = mCarPropertyManager.get(); in onEvent()