Home
last modified time | relevance | path

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

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DBasalMetabolicRateRecordTest.java38 import android.health.connect.datatypes.BasalMetabolicRateRecord;
86 BasalMetabolicRateRecord.class, in tearDown()
114 ReadRecordsRequestUsingIds<BasalMetabolicRateRecord> request = in testReadBasalMetabolicRateRecord_invalidIds()
115 new ReadRecordsRequestUsingIds.Builder<>(BasalMetabolicRateRecord.class) in testReadBasalMetabolicRateRecord_invalidIds()
118 List<BasalMetabolicRateRecord> result = TestUtils.readRecords(request); in testReadBasalMetabolicRateRecord_invalidIds()
136 ReadRecordsRequestUsingIds<BasalMetabolicRateRecord> request = in testReadBasalMetabolicRateRecord_invalidClientRecordIds()
137 new ReadRecordsRequestUsingIds.Builder<>(BasalMetabolicRateRecord.class) in testReadBasalMetabolicRateRecord_invalidClientRecordIds()
140 List<BasalMetabolicRateRecord> result = TestUtils.readRecords(request); in testReadBasalMetabolicRateRecord_invalidClientRecordIds()
146 List<BasalMetabolicRateRecord> oldBasalMetabolicRateRecords = in testReadBasalMetabolicRateRecordUsingFilters_default()
148 new ReadRecordsRequestUsingFilters.Builder<>(BasalMetabolicRateRecord.class) in testReadBasalMetabolicRateRecordUsingFilters_default()
[all …]
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DBasalMetabolicRateRecord.java36 public final class BasalMetabolicRateRecord extends InstantRecord { class
46 private BasalMetabolicRateRecord( in BasalMetabolicRateRecord() method in BasalMetabolicRateRecord
83 BasalMetabolicRateRecord that = (BasalMetabolicRateRecord) o; in equals()
139 public BasalMetabolicRateRecord buildWithoutValidation() { in buildWithoutValidation()
140 return new BasalMetabolicRateRecord( in buildWithoutValidation()
148 public BasalMetabolicRateRecord build() { in build()
149 return new BasalMetabolicRateRecord( in build()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DBasalMetabolicRateFormatter.kt19 import android.health.connect.datatypes.BasalMetabolicRateRecord
35 EntryFormatter<BasalMetabolicRateRecord>(context) {
38 record: BasalMetabolicRateRecord, in formatA11yValue()
45 record: BasalMetabolicRateRecord, in formatValue()
51 private fun format(@StringRes res: Int, record: BasalMetabolicRateRecord): String { in format()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DBasalMetabolicRateRecordInternal.java20 import android.health.connect.datatypes.BasalMetabolicRateRecord;
32 extends InstantRecordInternal<BasalMetabolicRateRecord> {
48 public BasalMetabolicRateRecord toExternalRecord() { in toExternalRecord()
49 return new BasalMetabolicRateRecord.Builder( in toExternalRecord()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DDataFactory.java24 import android.health.connect.datatypes.BasalMetabolicRateRecord;
55 static BasalMetabolicRateRecord getBasalMetabolicRateRecord(double power, Instant time) { in getBasalMetabolicRateRecord()
56 return new BasalMetabolicRateRecord.Builder( in getBasalMetabolicRateRecord()
65 static BasalMetabolicRateRecord getBasalMetabolicRateRecord( in getBasalMetabolicRateRecord()
67 return new BasalMetabolicRateRecord.Builder( in getBasalMetabolicRateRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/
DRecentAccessViewModelTest.kt20 import android.health.connect.datatypes.BasalMetabolicRateRecord in <lambda>()
144 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
150 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
231 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
240 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
246 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
311 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
319 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
422 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
474 dataTypeToCategory(BasalMetabolicRateRecord::class.java) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBasalMetabolicRateFormatterTest.kt19 import android.health.connect.datatypes.BasalMetabolicRateRecord
93 private fun getBasalMetabolicRateRecord(watts: Double): BasalMetabolicRateRecord { in getBasalMetabolicRateRecord()
94 return BasalMetabolicRateRecord.Builder(getMetaData(), NOW, Power.fromWatts(watts)).build() in getBasalMetabolicRateRecord()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DReadByIdTests.java30 import android.health.connect.datatypes.BasalMetabolicRateRecord;
91 ReadRecordsRequestUsingIds.Builder<BasalMetabolicRateRecord> requestBuilder = in readDataByEmptyId_throws()
92 new ReadRecordsRequestUsingIds.Builder<>(BasalMetabolicRateRecord.class); in readDataByEmptyId_throws()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/shared/
DFitnessPermissionToDatatypeMapperTest.kt19 import android.health.connect.datatypes.BasalMetabolicRateRecord
49 .containsExactly(BasalMetabolicRateRecord::class.java) in getDataTypes_basalMetabolicRate_returnsCorrectRecords()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DPermissionTypesFragmentTest.kt19 import android.health.connect.datatypes.BasalMetabolicRateRecord
83 BasalMetabolicRateRecord::class.java, in teardown()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectAccessLogsTest.java31 import android.health.connect.datatypes.BasalMetabolicRateRecord;
106 new ReadRecordsRequestUsingFilters.Builder<>(BasalMetabolicRateRecord.class) in testAccessLogs_read_multipleRecordTypes()
211 assertThat(accessLog.getRecordTypes()).contains(BasalMetabolicRateRecord.class); in testAccessLogs_insert_multipleRecordTypes()
DHealthConnectManagerTest.java79 import android.health.connect.datatypes.BasalMetabolicRateRecord;
550 final List<BasalMetabolicRateRecord> records = in testInsertRecords_instantWithSameClientId_overwrites()
552 new ReadRecordsRequestUsingIds.Builder<>(BasalMetabolicRateRecord.class) in testInsertRecords_instantWithSameClientId_overwrites()
574 final List<BasalMetabolicRateRecord> records = in testInsertRecords_instantNoClientIdsAndSameTime_overwrites()
576 new ReadRecordsRequestUsingIds.Builder<>(BasalMetabolicRateRecord.class) in testInsertRecords_instantNoClientIdsAndSameTime_overwrites()
601 final List<BasalMetabolicRateRecord> records = in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite()
603 new ReadRecordsRequestUsingIds.Builder<>(BasalMetabolicRateRecord.class) in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite()
1763 .get(BasalMetabolicRateRecord.class) in testGetRecordTypeInfo_InsertRecords_correctContributingPackages()
1824 .get(BasalMetabolicRateRecord.class) in testGetRecordTypeInfo_partiallyDeleteInsertedRecords_correctContributingPackages()
1894 .get(BasalMetabolicRateRecord.class) in testGetRecordTypeInfo_MultipleInsertedRecords_correctContributingPackages()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DDataType.kt20 import android.health.connect.datatypes.BasalMetabolicRateRecord
62 BASAL_METABOLIC_RATE(BasalMetabolicRateRecord::class.java),
DHealthPermissionToDatatypeMapper.kt20 import android.health.connect.datatypes.BasalMetabolicRateRecord
103 BASAL_METABOLIC_RATE to listOf(BasalMetabolicRateRecord::class.java),
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/
DDataFactory.java28 import android.health.connect.datatypes.BasalMetabolicRateRecord;
609 .addRecordType(BasalMetabolicRateRecord.class) in getChangeLogTokenRequestForTestRecordTypes()
621 public static BasalMetabolicRateRecord getBasalMetabolicRateRecord() { in getBasalMetabolicRateRecord()
622 return new BasalMetabolicRateRecord.Builder(generateMetadata(), NOW, Power.fromWatts(100.0)) in getBasalMetabolicRateRecord()
DTestUtils.java96 import android.health.connect.datatypes.BasalMetabolicRateRecord;
801 BasalMetabolicRateRecord.class, in populateAndResetExpectedResponseMap()
839 .addRecordType(BasalMetabolicRateRecord.class) in deleteTestData()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/
DHealthConnectDeviceTest.java81 import android.health.connect.datatypes.BasalMetabolicRateRecord;
604 List<BasalMetabolicRateRecord> basalMetabolicRateRecords = in testAppCanReadRecordsUsingDataOriginFilters()
606 new ReadRecordsRequestUsingFilters.Builder<>(BasalMetabolicRateRecord.class) in testAppCanReadRecordsUsingDataOriginFilters()
634 .addRecordType(BasalMetabolicRateRecord.class) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
650 .addRecordType(BasalMetabolicRateRecord.class) in testAppWithReadPerms_getChangeTokensAndLogsOfOtherApps_expectSuccess()
1209 private static BasalMetabolicRateRecord getBasalMetabolicRateRecord(Metadata metadata) { in getBasalMetabolicRateRecord()
1211 return new BasalMetabolicRateRecord.Builder(metadata, time, Power.fromWatts(10)).build(); in getBasalMetabolicRateRecord()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java26 import android.health.connect.datatypes.BasalMetabolicRateRecord;
420 if (record instanceof BasalMetabolicRateRecord basalMetabolicRateRecord) { in fromRecord()
474 if (Objects.equals(recordClassName, BasalMetabolicRateRecord.class.getName())) { in toRecord()
501 private static Bundle getBasalMetabolicRateRecordValues(BasalMetabolicRateRecord record) { in getBasalMetabolicRateRecordValues()
507 private static BasalMetabolicRateRecord createBasalMetabolicRateRecord( in createBasalMetabolicRateRecord()
511 return new BasalMetabolicRateRecord.Builder(metadata, time, Power.fromWatts(powerWatts)) in createBasalMetabolicRateRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/
DTestConstants.kt18 import android.health.connect.datatypes.BasalMetabolicRateRecord in <lambda>()
83 fun getBasalMetabolicRateRecord(calories: Long): BasalMetabolicRateRecord { in getBasalMetabolicRateRecord()
85 return BasalMetabolicRateRecord.Builder(getMetaData(), NOW, Power.fromWatts(watts)).build() in getBasalMetabolicRateRecord()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DConstants.kt20 import android.health.connect.datatypes.BasalMetabolicRateRecord
284 BASAL_METABOLIC_RATE(BasalMetabolicRateRecord::class, R.string.basal_metabolic_rate_label),
/packages/modules/HealthFitness/framework/java/android/health/connect/
DHealthPermissionCategory.java25 import android.health.connect.datatypes.BasalMetabolicRateRecord;
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/
DInsertOrUpdateRecords.kt21 import android.health.connect.datatypes.BasalMetabolicRateRecord
214 BasalMetabolicRateRecord::class -> { in createRecordObjectHelper()
216 BasalMetabolicRateRecord.Builder( in createRecordObjectHelper()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryFormatter.kt23 import android.health.connect.datatypes.BasalMetabolicRateRecord
157 is BasalMetabolicRateRecord -> basalMetabolicRateFormatter.format(record, appName) in format()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DRecordMapper.java22 import android.health.connect.datatypes.BasalMetabolicRateRecord;
253 BasalMetabolicRateRecord.class); in RecordMapper()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDeriveBasalCaloriesBurnedHelper.java32 import android.health.connect.datatypes.BasalMetabolicRateRecord;

12