Home
last modified time | relevance | path

Searched refs:mCarUnitsManager (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/units/
DUnitsBasePreferenceController.java49 mSupportedUnits = mCarUnitsManager.getUnitsSupportedByProperty(
92 private CarUnitsManager mCarUnitsManager; field in UnitsBasePreferenceController
103 mCarUnitsManager = new CarUnitsManager(getContext()); in onCreateInternal()
104 mCarUnitsManager.connect(); in onCreateInternal()
105 mCarUnitsManager.registerCarServiceListener(mOnCarServiceListener); in onCreateInternal()
112 mCarUnitsManager.disconnect(); in onDestroyInternal()
113 mCarUnitsManager.unregisterCarServiceListener(); in onDestroyInternal()
129 mCarUnitsManager.setUnitUsedByProperty(getPropertyId(), unitId); in handlePreferenceChanged()
169 return mCarUnitsManager; in getCarUnitsManager()
173 Unit savedUnit = mCarUnitsManager.getUnitUsedByProperty(getPropertyId()); in getUnitUsedByThisProperty()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/units/
DUnitsBasePreferenceControllerTest.java60 private CarUnitsManager mCarUnitsManager; field in UnitsBasePreferenceControllerTest
91 mCarUnitsManager = new CarUnitsManager(mContext); in setup()
92 mCarUnitsManager.setUnitUsedByProperty(TEST_PROPERTY_ID, DEFAULT_UNIT.getId()); in setup()
168 assertThat(mCarUnitsManager.getUnitUsedByProperty(TEST_PROPERTY_ID)) in onPreferenceChanged_runsSetUnitUsedByPropertyWithNewUnit()