Home
last modified time | relevance | path

Searched refs:fromValue (Results 1 – 25 of 28) sorted by relevance

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/
DPercentageTest.java34 assertThat(Percentage.fromValue(10.0)).isInstanceOf(Percentage.class); in testCreate()
35 assertThat(Percentage.fromValue(10.0).getValue()).isEqualTo(10.0); in testCreate()
40 Percentage Percentage1 = Percentage.fromValue(10.0); in testEquals()
41 Percentage Percentage2 = Percentage.fromValue(10.0); in testEquals()
42 Percentage Percentage3 = Percentage.fromValue(20.0); in testEquals()
50 Percentage Percentage1 = Percentage.fromValue(10.0); in testCompare()
51 Percentage Percentage2 = Percentage.fromValue(10.0); in testCompare()
52 Percentage Percentage3 = Percentage.fromValue(20.0); in testCompare()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticEvent.java674 public IgnitionMonitor fromValue(int value) { in fromValue() method in CarDiagnosticEvent.IgnitionMonitor.Decoder
716 components = COMPONENTS_DECODER.fromValue(bitmask); in CommonIgnitionMonitors()
717 fuelSystem = FUEL_SYSTEM_DECODER.fromValue(bitmask); in CommonIgnitionMonitors()
718 misfire = MISFIRE_DECODER.fromValue(bitmask); in CommonIgnitionMonitors()
828 EGR = EGR_DECODER.fromValue(bitmask); in SparkIgnitionMonitors()
829 oxygenSensorHeater = OXYGEN_SENSOR_HEATER_DECODER.fromValue(bitmask); in SparkIgnitionMonitors()
830 oxygenSensor = OXYGEN_SENSOR_DECODER.fromValue(bitmask); in SparkIgnitionMonitors()
831 ACRefrigerant = AC_REFRIGERANT_DECODER.fromValue(bitmask); in SparkIgnitionMonitors()
832 secondaryAirSystem = SECONDARY_AIR_SYSTEM_DECODER.fromValue(bitmask); in SparkIgnitionMonitors()
833 evaporativeSystem = EVAPORATIVE_SYSTEM_DECODER.fromValue(bitmask); in SparkIgnitionMonitors()
[all …]
/packages/apps/Dialer/java/com/android/dialer/contacts/displaypreference/
DContactDisplayPreferences.java41 static <T extends Enum<T> & StringResEnum> T fromValue( in fromValue() method
84 static DisplayOrder fromValue(Context context, String value) { in fromValue() method in DisplayOrder
85 return StringResEnum.fromValue(context, DisplayOrder.values(), value); in fromValue()
122 static SortOrder fromValue(Context context, String value) { in fromValue() method in SortOrder
123 return StringResEnum.fromValue(context, SortOrder.values(), value); in fromValue()
DContactDisplayPreferencesImpl.java53 return DisplayOrder.fromValue(appContext, sharedPreferences.getString(displayOrderKey, null)); in getDisplayOrder()
67 return SortOrder.fromValue(appContext, sharedPreferences.getString(sortOrderKey, null)); in getSortOrder()
/packages/apps/Launcher3/src/com/android/launcher3/
DInterruptibleInOutAnimator.java68 public InterruptibleInOutAnimator(long duration, float fromValue, float toValue) { in InterruptibleInOutAnimator() argument
69 mAnimator = ObjectAnimator.ofFloat(this, VALUE, fromValue, toValue).setDuration(duration); in InterruptibleInOutAnimator()
71 mOriginalFromValue = fromValue; in InterruptibleInOutAnimator()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterRotateRepresentation.java48 public static Rotation fromValue(int value) { in fromValue() method in FilterRotateRepresentation.Rotation
179 Rotation r = Rotation.fromValue(reader.nextInt()); in deSerializeRepresentation()
DFilterMirrorRepresentation.java52 public static Mirror fromValue(char value) { in fromValue() method in FilterMirrorRepresentation.Mirror
201 Mirror r = Mirror.fromValue((char) reader.nextInt()); in deSerializeRepresentation()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DOxygenSaturationRecordTest.java348 new Metadata.Builder().build(), Instant.now(), Percentage.fromValue(10.0)); in testZoneOffsets()
357 new Metadata.Builder().build(), Instant.now(), Percentage.fromValue(100.1)) in testCreateOxygenSaturationRecord_invalidValue()
544 metadataWithId, Instant.now(), Percentage.fromValue(20.0)) in getOxygenSaturationRecord_update()
551 new Metadata.Builder().build(), Instant.now(), Percentage.fromValue(10.0)) in getBaseOxygenSaturationRecord()
570 testMetadataBuilder.build(), Instant.now(), Percentage.fromValue(10.0)) in getCompleteOxygenSaturationRecord()
DBodyFatRecordTest.java318 new Metadata.Builder().build(), Instant.now(), Percentage.fromValue(10.0)); in testZoneOffsets()
502 return new BodyFatRecord.Builder(metadataWithId, Instant.now(), Percentage.fromValue(10.0)) in getBodyFatRecord_update()
509 new Metadata.Builder().build(), Instant.now(), Percentage.fromValue(10.0)) in getBaseBodyFatRecord()
528 testMetadataBuilder.build(), Instant.now(), Percentage.fromValue(10.0)) in getCompleteBodyFatRecord()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/
DPercentage.java37 public static Percentage fromValue(double value) { in fromValue() method in Percentage
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DBodyFatRecordInternal.java48 buildMetaData(), getTime(), Percentage.fromValue(getPercentage())) in toExternalRecord()
DOxygenSaturationRecordInternal.java49 buildMetaData(), getTime(), Percentage.fromValue(getPercentage())) in toExternalRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt358 getOxygenSaturationRecord(INSTANT_DAY, Percentage.fromValue(98.0))
360 getOxygenSaturationRecord(INSTANT_DAY2, Percentage.fromValue(95.0))
390 getOxygenSaturationRecord(instantYesterday, Percentage.fromValue(99.0))) in getMixedRecordsAcrossTwoDays()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBodyFatFormatterTest.kt93 return BodyFatRecord.Builder(getMetaData(), NOW, Percentage.fromValue(value)).build() in getBodyFat()
DOxygenSaturationFormatterTest.kt93 return OxygenSaturationRecord.Builder(getMetaData(), NOW, Percentage.fromValue(value)) in getOxygenSaturation()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimerDAO.kt69 val state: Timer.State? = Timer.State.fromValue(stateValue) in getTimers()
DTimer.kt63 fun fromValue(value: Int): State? { in <lambda>() method
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt306 Percentage.fromValue( in createRecordObjectHelper()
460 Percentage.fromValue( in createRecordObjectHelper()
/packages/services/Car/cpp/displayproxy/src/
DCarDisplayProxy.cpp114 ::android::DisplayId::fromValue<::android::PhysicalDisplayId>(id); in getDisplayInfoFromSurfaceComposerClient()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java379 holder.rotation = Rotation.fromValue(rotation); in getOriginalToScreen()
/packages/services/Car/tests/carservice_unit_test/res/raw/
Dcar_hidden_apis_release_33.2.txt202 android.car.diagnostic CarDiagnosticEvent.IgnitionMonitor.Decoder IgnitionMonitor fromValue(int val…
Dcar_hidden_apis_release_33.1.txt202 android.car.diagnostic CarDiagnosticEvent.IgnitionMonitor.Decoder IgnitionMonitor fromValue(int val…
Dcar_hidden_apis.txt295 android.car.diagnostic CarDiagnosticEvent.IgnitionMonitor.Decoder IgnitionMonitor fromValue(int val…
Dcar_hidden_apis_release_33.3.txt223 android.car.diagnostic CarDiagnosticEvent.IgnitionMonitor.Decoder IgnitionMonitor fromValue(int val…
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1740 … method @NonNull public static android.health.connect.datatypes.units.Percentage fromValue(double);

12