Home
last modified time | relevance | path

Searched refs:unitId (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/units/
DCarUnitsManager.java109 for (int unitId : availableUnitsId) { in getUnitsSupportedByProperty()
110 if (UnitsMap.MAP.get(unitId) != null) { in getUnitsSupportedByProperty()
111 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
116 int unitId = availableUnitsId.get(i); in getUnitsSupportedByProperty() local
117 if (UnitsMap.MAP.get(unitId) != null) { in getUnitsSupportedByProperty()
118 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
127 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty() local
128 if (UnitsMap.MAP.get(unitId) != null) { in getUnitUsedByProperty()
129 return UnitsMap.MAP.get(unitId); in getUnitUsedByProperty()
139 protected void setUnitUsedByProperty(int propertyId, int unitId) { in setUnitUsedByProperty() argument
[all …]
DUnit.java31 Unit(@VehicleUnit.Enum int unitId, @StringRes int unitAbbreviationResId, in Unit() argument
33 mId = unitId; in Unit()
DUnitsBasePreferenceController.java129 int unitId = Integer.parseInt((String) newValue); in handlePreferenceChanged() local
130 mCarUnitsManager.setUnitUsedByProperty(getPropertyId(), unitId); in handlePreferenceChanged() local
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUnitsManager.java60 protected static void setUnitUsedByProperty(int propertyId, int unitId) { in setUnitUsedByProperty() argument
61 sUnitsBeingUsed.put(propertyId, UnitsMap.MAP.get(unitId)); in setUnitUsedByProperty()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java305 int unitId = Integer.parseInt((String) newValue); in handlePreferenceChanged() local
306 Unit newUnit = UnitsMap.MAP.get(unitId); in handlePreferenceChanged()