Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitPreferences.kt48 private val unitSharedPreference: SharedPreferences by lazy { in <lambda>() constant in com.android.healthconnect.controller.dataentries.units.UnitPreferences
53 if (!unitSharedPreference.contains(DISTANCE_UNIT_PREF_KEY)) { in getDistanceUnit()
58 unitSharedPreference.getString( in getDistanceUnit()
64 with(unitSharedPreference.edit()) { in setDistanceUnit()
71 if (!unitSharedPreference.contains(HEIGHT_UNIT_PREF_KEY)) { in getHeightUnit()
76 unitSharedPreference.getString(HEIGHT_UNIT_PREF_KEY, DEFAULT_HEIGHT_UNIT.toString())!! in getHeightUnit()
81 with(unitSharedPreference.edit()) { in setHeightUnit()
88 if (!unitSharedPreference.contains(WEIGHT_UNIT_PREF_KEY)) { in getWeightUnit()
93 unitSharedPreference.getString(WEIGHT_UNIT_PREF_KEY, DEFAULT_WEIGHT_UNIT.toString())!! in getWeightUnit()
98 with(unitSharedPreference.edit()) { in setWeightUnit()
[all …]