Searched refs:mCarUnitsManager (Results 1 – 2 of 2) sorted by relevance
49 mSupportedUnits = mCarUnitsManager.getUnitsSupportedByProperty(92 private CarUnitsManager mCarUnitsManager; field in UnitsBasePreferenceController103 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()
60 private CarUnitsManager mCarUnitsManager; field in UnitsBasePreferenceControllerTest91 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()