Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/src/com/android/car/settings/units/
DCarUnitsManager.java119 for (int unitId : availableUnitsId) { in getUnitsSupportedByProperty()
120 if (UnitsMap.MAP.get(unitId) != null) { in getUnitsSupportedByProperty()
121 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
126 int unitId = availableUnitsId.get(i); in getUnitsSupportedByProperty() local
127 if (UnitsMap.MAP.get(unitId) != null) { in getUnitsSupportedByProperty()
128 Unit unit = UnitsMap.MAP.get(unitId); in getUnitsSupportedByProperty()
137 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty() local
138 if (UnitsMap.MAP.get(unitId) != null) { in getUnitUsedByProperty()
139 return UnitsMap.MAP.get(unitId); in getUnitUsedByProperty()
149 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.java128 int unitId = Integer.parseInt((String) newValue); in handlePreferenceChanged() local
129 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()