Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DPowerRecordTest.java19 import static android.health.connect.datatypes.PowerRecord.POWER_AVG;
20 import static android.health.connect.datatypes.PowerRecord.POWER_MAX;
21 import static android.health.connect.datatypes.PowerRecord.POWER_MIN;
42 import android.health.connect.datatypes.PowerRecord;
88 PowerRecord.class, in tearDown()
108 ReadRecordsRequestUsingIds<PowerRecord> request = in testReadPowerRecord_invalidIds()
109 new ReadRecordsRequestUsingIds.Builder<>(PowerRecord.class) in testReadPowerRecord_invalidIds()
112 List<PowerRecord> result = TestUtils.readRecords(request); in testReadPowerRecord_invalidIds()
125 ReadRecordsRequestUsingIds<PowerRecord> request = in testReadPowerRecord_invalidClientRecordIds()
126 new ReadRecordsRequestUsingIds.Builder<>(PowerRecord.class) in testReadPowerRecord_invalidClientRecordIds()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DPowerRecordInternal.java22 import android.health.connect.datatypes.PowerRecord;
40 extends SeriesRecordInternal<PowerRecord, PowerRecord.PowerRecordSample> {
69 public PowerRecord toExternalRecord() { in toExternalRecord()
70 return new PowerRecord.Builder( in toExternalRecord()
86 private List<PowerRecord.PowerRecordSample> getExternalSamples() { in getExternalSamples()
87 List<PowerRecord.PowerRecordSample> powerRecords = in getExternalSamples()
91 new PowerRecord.PowerRecordSample( in getExternalSamples()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPowerRecord.java36 public final class PowerRecord extends IntervalRecord { class
48 private PowerRecord( in PowerRecord() method in PowerRecord
70 .map(PowerRecord.PowerRecordSample::getTime) in PowerRecord()
230 public PowerRecord buildWithoutValidation() { in buildWithoutValidation()
231 return new PowerRecord( in buildWithoutValidation()
245 public PowerRecord build() { in build()
246 return new PowerRecord( in build()
292 if (super.equals(object) && object instanceof PowerRecord) { in equals()
293 PowerRecord other = (PowerRecord) object; in equals()
333 for (PowerRecord.PowerRecordSample powerRecordSample : getSamples()) { in toRecordInternal()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DPowerFormatter.kt19 import android.health.connect.datatypes.PowerRecord in <lambda>()
20 import android.health.connect.datatypes.PowerRecord.PowerRecordSample in <lambda>()
37 EntryFormatter<PowerRecord>(context), RecordDetailsFormatter<PowerRecord> { in <lambda>()
42 record: PowerRecord, in <lambda>()
57 record: PowerRecord, in <lambda>()
64 record: PowerRecord, in <lambda>()
70 override suspend fun formatRecordDetails(record: PowerRecord): List<FormattedEntry> { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DPowerFormatterTest.kt19 import android.health.connect.datatypes.PowerRecord
110 private fun getPowerRecord(samples: List<Double>): PowerRecord { in getPowerRecord()
111 return PowerRecord.Builder( in getPowerRecord()
115 samples.map { PowerRecord.PowerRecordSample(Power.fromWatts(it), NOW) }) in getPowerRecord()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryDetailsFormatter.kt25 import android.health.connect.datatypes.PowerRecord
65 is PowerRecord -> powerFormatter.formatRecordDetails(record) in formatDetails()
DHealthDataEntryFormatter.kt47 import android.health.connect.datatypes.PowerRecord
160 is PowerRecord -> powerFormatter.format(record, appName) in format()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/api/
DDeleteCategoryUseCaseTest.kt29 import android.health.connect.datatypes.PowerRecord in <lambda>()
103 PowerRecord::class.java, in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DDataType.kt45 import android.health.connect.datatypes.PowerRecord
65 POWER(PowerRecord::class.java),
DHealthPermissionToDatatypeMapper.kt45 import android.health.connect.datatypes.PowerRecord
106 POWER to listOf(PowerRecord::class.java),
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt52 import android.health.connect.datatypes.PowerRecord
53 import android.health.connect.datatypes.PowerRecord.PowerRecordSample
243 PowerRecord::class -> { in createRecordObjectHelper()
245 PowerRecord.Builder( in createRecordObjectHelper()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DAggregationTypeIdMapper.java84 import static android.health.connect.datatypes.PowerRecord.POWER_AVG;
85 import static android.health.connect.datatypes.PowerRecord.POWER_MAX;
86 import static android.health.connect.datatypes.PowerRecord.POWER_MIN;
DRecordMapper.java47 import android.health.connect.datatypes.PowerRecord;
258 RecordTypeIdentifier.RECORD_TYPE_POWER, PowerRecord.class); in RecordMapper()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt45 import android.health.connect.datatypes.PowerRecord
276 POWER(PowerRecord::class, R.string.power_label),
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissionCategory.java30 import android.health.connect.datatypes.PowerRecord;
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/migration/
DDataMigrationTest.java64 import android.health.connect.datatypes.PowerRecord;
65 import android.health.connect.datatypes.PowerRecord.PowerRecordSample;
357 new PowerRecord.Builder( in migratePower_powerSaved()
369 final PowerRecord record = getRecord(PowerRecord.class, entityId); in migratePower_powerSaved()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DListInputField.kt26 import android.health.connect.datatypes.PowerRecord.PowerRecordSample
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1453 public final class PowerRecord extends android.health.connect.datatypes.IntervalRecord {
1454 …method @NonNull public java.util.List<android.health.connect.datatypes.PowerRecord.PowerRecordSamp…
1460 public static final class PowerRecord.Builder {
1461PowerRecord.Builder(@NonNull android.health.connect.datatypes.Metadata, @NonNull java.time.Instant…
1462 method @NonNull public android.health.connect.datatypes.PowerRecord build();
1463 … method @NonNull public android.health.connect.datatypes.PowerRecord.Builder clearEndZoneOffset();
1464 …method @NonNull public android.health.connect.datatypes.PowerRecord.Builder clearStartZoneOffset();
1465 …method @NonNull public android.health.connect.datatypes.PowerRecord.Builder setEndZoneOffset(@NonN…
1466 …method @NonNull public android.health.connect.datatypes.PowerRecord.Builder setStartZoneOffset(@No…
1469 public static final class PowerRecord.PowerRecordSample {
[all …]
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DTestUtils.java125 import android.health.connect.datatypes.PowerRecord;
699 PowerRecord.class, in populateAndResetExpectedResponseMap()