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.java100 for (int unitId : availableUnitsId) { in getUnitsSupportedByProperty()
101 if (UnitsMap.MAP.get(unitId) != null) { in getUnitsSupportedByProperty()
102 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
107 int unitId = availableUnitsId.get(i); in getUnitsSupportedByProperty() local
108 if (UnitsMap.MAP.get(unitId) != null) { in getUnitsSupportedByProperty()
109 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
118 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty() local
119 if (UnitsMap.MAP.get(unitId) != null) { in getUnitUsedByProperty()
120 return UnitsMap.MAP.get(unitId); in getUnitUsedByProperty()
130 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.java215 int unitId = Integer.parseInt((String) newValue); in handlePreferenceChanged() local
216 Unit newUnit = UnitsMap.MAP.get(unitId); in handlePreferenceChanged()