Home
last modified time | relevance | path

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

/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/calmmode/
DTemperatureData.java41 private MeasureUnit mUnit; field in TemperatureData
45 this.mUnit = unit; in TemperatureData()
90 return mUnit; in getUnit()
95 return "TemperatureData{" + "value=" + mValue + ", unit=" + mUnit + '}'; in toString()
103 if (mUnit == MeasureUnit.CELSIUS) { in convertToFahrenheit()
105 mUnit = MeasureUnit.FAHRENHEIT; in convertToFahrenheit()
118 if (mUnit == MeasureUnit.FAHRENHEIT) { in convertToCelsius()
120 mUnit = MeasureUnit.CELSIUS; in convertToCelsius()
131 @NonNull private MeasureUnit mUnit = MeasureUnit.CELSIUS; field in TemperatureData.Builder
133 private Builder(float mValue, @NonNull MeasureUnit mUnit) { in Builder() argument
[all …]
DTemperatureViewModel.java49 private MeasureUnit mUnit; field in TemperatureViewModel
122 if (mUnit == newMeasureUnit) { in handleUnitChange()
129 if (mUnit == MeasureUnit.FAHRENHEIT) { in handleUnitChange()
138 mUnit = newMeasureUnit; in handleUnitChange()
147 if (mUnit == null) { in handleValueChange()
148 mUnit = MeasureUnit.CELSIUS; in handleValueChange()
152 if (mUnit != MeasureUnit.CELSIUS) { in handleValueChange()
/packages/apps/Messaging/src/com/android/messaging/sms/
DSmsReleaseStorage.java47 public final int mUnit; field in SmsReleaseStorage.Duration
51 mUnit = unit; in Duration()
93 switch (duration.mUnit) { in getMessageRetainingDurationString()
105 "SmsAutoDelete: invalid duration unit " + duration.mUnit); in getMessageRetainingDurationString()
120 switch (duration.mUnit) { in durationToTimeInMillis()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DLiveDataAdapter.java55 holder.setFields(wrapper.mName, "", wrapper.mNumber + " " + wrapper.mUnit, false); in onBindViewHolder()
78 private String mUnit; field in LiveDataAdapter.SensorDataWrapper
83 this.mUnit = unit; in SensorDataWrapper()
89 this.mUnit = unit; in SensorDataWrapper()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackTimeoutException.java30 private final TimeUnit mUnit; field in SyncCallbackTimeoutException
49 mUnit = unit; in SyncCallbackTimeoutException()
64 return mUnit; in getUnit()