Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPowerRecordInternal.java40 extends SeriesRecordInternal<PowerRecord, PowerRecord.PowerRecordSample> {
42 private Set<PowerRecordSample> mPowerRecordSamples;
49 mPowerRecordSamples.add(new PowerRecordSample(parcel.readDouble(), parcel.readLong())); in populateIntervalRecordFrom()
55 public Set<PowerRecordSample> getSamples() { in getSamples()
63 this.mPowerRecordSamples = (Set<PowerRecordSample>) samples; in setSamples()
80 for (PowerRecordSample powerRecordSample : mPowerRecordSamples) { in populateIntervalRecordTo()
86 private List<PowerRecord.PowerRecordSample> getExternalSamples() { in getExternalSamples()
87 List<PowerRecord.PowerRecordSample> powerRecords = in getExternalSamples()
89 for (PowerRecordSample powerRecordSample : mPowerRecordSamples) { in getExternalSamples()
91 new PowerRecord.PowerRecordSample( in getExternalSamples()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPowerRecord.java37 private final List<PowerRecordSample> mPowerRecordSamples;
54 @NonNull List<PowerRecordSample> powerRecordSamples, in PowerRecord()
70 .map(PowerRecord.PowerRecordSample::getTime) in PowerRecord()
80 public List<PowerRecordSample> getSamples() { in getSamples()
88 public static final class PowerRecordSample { class in PowerRecord
98 public PowerRecordSample(@NonNull Power power, @NonNull Instant time) { in PowerRecordSample() method in PowerRecord.PowerRecordSample
110 public PowerRecordSample( in PowerRecordSample() method in PowerRecord.PowerRecordSample
146 if (!(object instanceof PowerRecordSample)) return false; in equals()
147 PowerRecordSample that = (PowerRecordSample) object; in equals()
168 private final List<PowerRecordSample> mPowerRecordSamples;
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPowerRecordHelper.java53 extends SeriesRecordHelper<PowerRecordInternal, PowerRecordInternal.PowerRecordSample> {
121 HashSet<PowerRecordInternal.PowerRecordSample> powerRecordSampleSet = new HashSet<>(); in populateSpecificValues()
125 new PowerRecordInternal.PowerRecordSample( in populateSpecificValues()
138 ContentValues contentValues, PowerRecordInternal.PowerRecordSample powerRecord) { in populateSampleTo()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DPowerRecordTest.java546 new PowerRecord.PowerRecordSample(Power.fromWatts(100001.0), Instant.now().plusMillis(100)); in testCreatePowerRecord_invalidValue()
561 PowerRecord.PowerRecordSample powerRecordSample = in getPowerRecord_update()
562 new PowerRecord.PowerRecordSample( in getPowerRecord_update()
576 PowerRecord.PowerRecordSample powerRecord = in getBasePowerRecord()
577 new PowerRecord.PowerRecordSample( in getBasePowerRecord()
579 ArrayList<PowerRecord.PowerRecordSample> powerRecords = new ArrayList<>(); in getBasePowerRecord()
592 PowerRecord.PowerRecordSample powerRecord = in getPowerRecord()
593 new PowerRecord.PowerRecordSample( in getPowerRecord()
595 ArrayList<PowerRecord.PowerRecordSample> powerRecords = new ArrayList<>(); in getPowerRecord()
622 PowerRecord.PowerRecordSample powerRecord = in getCompletePowerRecord()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DPowerFormatter.kt20 import android.health.connect.datatypes.PowerRecord.PowerRecordSample in <lambda>()
76 private fun format(@StringRes res: Int, samples: List<PowerRecordSample>): String { in <lambda>()
84 private fun formatSample(id: String, sample: PowerRecordSample): FormattedSessionDetail { in <lambda>()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DListInputField.kt26 import android.health.connect.datatypes.PowerRecord.PowerRecordSample
91 PowerRecordSample::class.java -> { in addRow()
157 PowerRecordSample::class.java -> { in getFieldValue()
159 PowerRecordSample( in getFieldValue()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java65 import android.health.connect.datatypes.PowerRecord.PowerRecordSample;
362 new PowerRecordSample(fromWatts(10D), mEndTime), in migratePower_powerSaved()
363 new PowerRecordSample(fromWatts(20D), mEndTime), in migratePower_powerSaved()
364 new PowerRecordSample(fromWatts(30D), mEndTime))) in migratePower_powerSaved()
375 new PowerRecordSample(fromWatts(10D), mEndTime), in migratePower_powerSaved()
376 new PowerRecordSample(fromWatts(20D), mEndTime), in migratePower_powerSaved()
377 new PowerRecordSample(fromWatts(30D), mEndTime)) in migratePower_powerSaved()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DPowerFormatterTest.kt115 samples.map { PowerRecord.PowerRecordSample(Power.fromWatts(it), NOW) }) in getPowerRecord()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt53 import android.health.connect.datatypes.PowerRecord.PowerRecordSample
250 as List<PowerRecordSample>) in createRecordObjectHelper()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1454 … public java.util.List<android.health.connect.datatypes.PowerRecord.PowerRecordSample> getSamples(…
1461 ….Instant, @NonNull java.util.List<android.health.connect.datatypes.PowerRecord.PowerRecordSample>);
1469 public static final class PowerRecord.PowerRecordSample {
1470 …ctor public PowerRecord.PowerRecordSample(@NonNull android.health.connect.datatypes.units.Power, @…