/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregateOtherAppsDataTest.java | 74 APP_WITH_WRITE_PERMS_ONLY::insertRecord, in testAppWithReadPerms_aggregateOtherAppsDistance_expectSuccess() 77 APP_WITH_WRITE_PERMS_ONLY.insertRecord(getDistanceRecordWithEmptyMetadata()); in testAppWithReadPerms_aggregateOtherAppsDistance_expectSuccess() 85 APP_WITH_WRITE_PERMS_ONLY::insertRecord, in testAppWithReadPerms_aggregateOtherAppsSteps_expectSuccess() 88 APP_WITH_WRITE_PERMS_ONLY.insertRecord(getStepsRecordWithEmptyMetaData()); in testAppWithReadPerms_aggregateOtherAppsSteps_expectSuccess() 96 APP_WITH_WRITE_PERMS_ONLY::insertRecord, in testAppWithReadPerms_aggregateOtherAppsHeartRate_expectSuccess() 99 APP_WITH_WRITE_PERMS_ONLY.insertRecord(getHeartRateRecordWithEmptyMetadata()); in testAppWithReadPerms_aggregateOtherAppsHeartRate_expectSuccess() 108 APP_WITH_WRITE_PERMS_ONLY::insertRecord, in testAppWithReadPerms_aggregateOtherAppsTotalCaloriesBurned_expectSuccess() 112 APP_WITH_WRITE_PERMS_ONLY.insertRecord(record); in testAppWithReadPerms_aggregateOtherAppsTotalCaloriesBurned_expectSuccess() 121 APP_WITH_WRITE_PERMS_ONLY::insertRecord, in testAppWithReadPerms_aggregateOtherAppsExercise_expectSuccess() 125 APP_WITH_WRITE_PERMS_ONLY.insertRecord(exerciseSessionRecord); in testAppWithReadPerms_aggregateOtherAppsExercise_expectSuccess() [all …]
|
D | ExerciseDurationAggregationTest.java | 24 import static android.healthconnect.cts.utils.TestUtils.insertRecord; 110 insertRecord(session); in testSimpleAggregation_oneSession_returnsItsDuration() 134 insertRecord(session); in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration() 157 insertRecord(session); in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration() 195 insertRecord(session); in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() 221 insertRecord(session); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups() 259 insertRecord(session); in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset() 297 insertRecord(session); in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
|
D | SleepDurationAggregationTest.java | 25 import static android.healthconnect.cts.utils.TestUtils.insertRecord; 91 insertRecord(session); in testSimpleAggregation_oneSession_returnsItsDuration() 157 insertRecord(session); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
|
D | TotalCaloriesAggregationTest.java | 33 import static android.healthconnect.cts.utils.TestUtils.insertRecord; 131 insertRecord(getBaseLeanBodyMassRecord(EPOCH, lbmKg * 1000)); in totalCaloriesBurned_derivedFromLbm() 146 insertRecord(getBasalMetabolicRateRecord(bmrWatt, EPOCH)); in totalCaloriesBurned_derivedFromBmr() 162 insertRecord( in totalCaloriesBurned_hasActiveCaloriesData_sumActiveAndBasalCalories() 180 insertRecord( in totalCaloriesBurned_hasTotalCaloriesData_addBasalCaloriesAtGaps()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectChangeLogsDeviceTests.java | 89 String recordIdInsertedByAppA = APP_A_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insert_multipleApps_noFilter_returnsUpsertLogsForAllApps() 90 String recordIdInsertedByAppB = APP_B_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insert_multipleApps_noFilter_returnsUpsertLogsForAllApps() 128 String recordIdInsertedByAppA = APP_A_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insert_multipleApps_filterDataOrigin_returnsUpsertLogs() 129 APP_A_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insert_multipleApps_filterDataOrigin_returnsUpsertLogs() 153 String recordIdInsertedByAppA = APP_A_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insertAndDelete_multipleApps_noFilter_returnsDeletedLogsForAllApps() 154 String recordIdInsertedByAppB = APP_B_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insertAndDelete_multipleApps_noFilter_returnsDeletedLogsForAllApps() 183 String recordIdInsertedByAppA = APP_A_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insertAndDelete_multipleApps_filterDataOrigin_returnsDeletedLogs() 184 String recordIdInsertedByAppB = APP_B_WITH_READ_WRITE_PERMS.insertRecord(getStepsRecord()); in testChangeLogs_insertAndDelete_multipleApps_filterDataOrigin_returnsDeletedLogs()
|
D | HealthConnectDeviceTest.java | 310 insertRecord(APP_WITH_WRITE_PERMS_ONLY, getStepsRecordWithEmptyMetaData()), in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 311 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 313 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 315 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 317 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 320 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 322 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 324 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 326 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() 328 insertRecord( in testAppWithReadPerms_readOtherAppsDataByIds_expectSuccess() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/ |
D | TransactionManager.java | 195 insertRecord(db, insertRequestsForChangeLog); in insertAll() 199 insertRecord(db, modificationChangelog); in insertAll() 203 insertRecord(db, insertRequestsForAccessLogs); in insertAll() 335 insertRecord(db, insertRequestsForChangeLog); in deleteAll() 339 insertRecord(db, modificationChangelog); in deleteAll() 475 return insertRecord(db, request); in insert() 586 insertRecord(db, insertRequestsForChangeLog); in updateAll() 590 insertRecord(db, modificationChangelog); in updateAll() 594 insertRecord(db, insertRequestsForAccessLogs); in updateAll() 689 public long insertRecord(@NonNull SQLiteDatabase db, @NonNull UpsertTableRequest request) { in insertRecord() method in TransactionManager [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | BasalMetabolicRateRecordTest.java | 152 TestUtils.insertRecord(getCompleteBasalMetabolicRateRecord()); in testReadBasalMetabolicRateRecordUsingFilters_default() 176 TestUtils.insertRecord(getCompleteBasalMetabolicRateRecord()); in testReadBasalMetabolicRateRecordUsingFilters_timeFilter() 204 TestUtils.insertRecord(getCompleteBasalMetabolicRateRecord()); in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct() 334 String id = APP_WRITE_PERMS_ONLY.insertRecord(getBaseBasalMetabolicRateRecord()); in testDeleteBasalMetabolicRateRecord_usingIds_forAnotherApp_fails() 350 String id = APP_WRITE_PERMS_ONLY.insertRecord(getBaseBasalMetabolicRateRecord()); in testDeleteBasalMetabolicRateRecord_usingTime_forAnotherApp_notDeleted()
|
D | TotalCaloriesBurnedRecordTest.java | 140 TestUtils.insertRecord(getCompleteTotalCaloriesBurnedRecord()); in testReadTotalCaloriesBurnedRecordUsingFilters_default() 166 TestUtils.insertRecord(getCompleteTotalCaloriesBurnedRecord()); in testReadTotalCaloriesBurnedRecordUsingFilters_timeFilter() 197 TestUtils.insertRecord(getCompleteTotalCaloriesBurnedRecord()); in testReadTotalCaloriesBurnedRecordUsingFilters_dataFilter_correct()
|
D | MenstruationFlowRecordTest.java | 134 TestUtils.insertRecord(getCompleteMenstruationFlowRecord()); in testReadMenstruationFlowRecordUsingFilters_default() 159 TestUtils.insertRecord(getCompleteMenstruationFlowRecord()); in testReadMenstruationFlowRecordUsingFilters_timeFilter() 188 TestUtils.insertRecord(getCompleteMenstruationFlowRecord()); in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct()
|
D | SexualActivityRecordTest.java | 130 (SexualActivityRecord) TestUtils.insertRecord(getCompleteSexualActivityRecord()); in testReadSexualActivityRecordUsingFilters_default() 152 (SexualActivityRecord) TestUtils.insertRecord(getCompleteSexualActivityRecord()); in testReadSexualActivityRecordUsingFilters_timeFilter() 180 (SexualActivityRecord) TestUtils.insertRecord(getCompleteSexualActivityRecord()); in testReadSexualActivityRecordUsingFilters_dataFilter_correct()
|
D | WheelchairPushesRecordTest.java | 145 TestUtils.insertRecord(getCompleteWheelchairPushesRecord()); in testReadWheelchairPushesRecordUsingFilters_default() 170 TestUtils.insertRecord(getCompleteWheelchairPushesRecord()); in testReadWheelchairPushesRecordUsingFilters_timeFilter() 199 TestUtils.insertRecord(getCompleteWheelchairPushesRecord()); in testReadWheelchairPushesRecordUsingFilters_dataFilter_correct()
|
D | OxygenSaturationRecordTest.java | 135 TestUtils.insertRecord(getCompleteOxygenSaturationRecord()); in testReadOxygenSaturationRecordUsingFilters_default() 160 TestUtils.insertRecord(getCompleteOxygenSaturationRecord()); in testReadOxygenSaturationRecordUsingFilters_timeFilter() 189 TestUtils.insertRecord(getCompleteOxygenSaturationRecord()); in testReadOxygenSaturationRecordUsingFilters_dataFilter_correct()
|
D | IntermenstrualBleedingRecordTest.java | 144 TestUtils.insertRecord(getCompleteIntermenstrualBleedingRecord()); in testReadIntermenstrualBleedingRecordUsingFilters_default() 170 TestUtils.insertRecord(getCompleteIntermenstrualBleedingRecord()); in testReadIntermenstrualBleedingRecordUsingFilters_timeFilter() 201 TestUtils.insertRecord(getCompleteIntermenstrualBleedingRecord()); in testReadIntermenstrualBleedingRecordUsingFilters_dataFilter_correct()
|
D | OvulationTestRecordTest.java | 130 (OvulationTestRecord) TestUtils.insertRecord(getCompleteOvulationTestRecord()); in testReadOvulationTestRecordUsingFilters_default() 151 (OvulationTestRecord) TestUtils.insertRecord(getCompleteOvulationTestRecord()); in testReadOvulationTestRecordUsingFilters_timeFilter() 178 (OvulationTestRecord) TestUtils.insertRecord(getCompleteOvulationTestRecord()); in testReadOvulationTestRecordUsingFilters_dataFilter_correct()
|
D | BodyTemperatureRecordTest.java | 143 (BodyTemperatureRecord) TestUtils.insertRecord(getCompleteBodyTemperatureRecord()); in testReadBodyTemperatureRecordUsingFilters_default() 166 (BodyTemperatureRecord) TestUtils.insertRecord(getCompleteBodyTemperatureRecord()); in testReadBodyTemperatureRecordUsingFilters_timeFilter() 194 (BodyTemperatureRecord) TestUtils.insertRecord(getCompleteBodyTemperatureRecord()); in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct()
|
D | BoneMassRecordTest.java | 129 (BoneMassRecord) TestUtils.insertRecord(getCompleteBoneMassRecord()); in testReadBoneMassRecordUsingFilters_default() 147 (BoneMassRecord) TestUtils.insertRecord(getCompleteBoneMassRecord()); in testReadBoneMassRecordUsingFilters_timeFilter() 172 (BoneMassRecord) TestUtils.insertRecord(getCompleteBoneMassRecord()); in testReadBoneMassRecordUsingFilters_dataFilter_correct()
|
D | RespiratoryRateRecordTest.java | 132 (RespiratoryRateRecord) TestUtils.insertRecord(getCompleteRespiratoryRateRecord()); in testReadRespiratoryRateRecordUsingFilters_default() 155 (RespiratoryRateRecord) TestUtils.insertRecord(getCompleteRespiratoryRateRecord()); in testReadRespiratoryRateRecordUsingFilters_timeFilter() 183 (RespiratoryRateRecord) TestUtils.insertRecord(getCompleteRespiratoryRateRecord()); in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct()
|
D | MenstruationPeriodRecordTest.java | 141 TestUtils.insertRecord(getCompleteMenstruationPeriodRecord()); in testReadMenstruationPeriodRecordUsingFilters_default() 166 TestUtils.insertRecord(getCompleteMenstruationPeriodRecord()); in testReadMenstruationPeriodRecordUsingFilters_timeFilter() 195 TestUtils.insertRecord(getCompleteMenstruationPeriodRecord()); in testReadMenstruationPeriodRecordUsingFilters_dataFilter_correct()
|
D | CervicalMucusRecordTest.java | 130 (CervicalMucusRecord) TestUtils.insertRecord(getCompleteCervicalMucusRecord()); in testReadCervicalMucusRecordUsingFilters_default() 152 (CervicalMucusRecord) TestUtils.insertRecord(getCompleteCervicalMucusRecord()); in testReadCervicalMucusRecordUsingFilters_timeFilter() 180 (CervicalMucusRecord) TestUtils.insertRecord(getCompleteCervicalMucusRecord()); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct()
|
D | BodyFatRecordTest.java | 129 (BodyFatRecord) TestUtils.insertRecord(getCompleteBodyFatRecord()); in testReadBodyFatRecordUsingFilters_default() 145 (BodyFatRecord) TestUtils.insertRecord(getCompleteBodyFatRecord()); in testReadBodyFatRecordUsingFilters_timeFilter() 167 (BodyFatRecord) TestUtils.insertRecord(getCompleteBodyFatRecord()); in testReadBodyFatRecordUsingFilters_dataFilter_correct()
|
D | BodyWaterMassRecordTest.java | 136 (BodyWaterMassRecord) TestUtils.insertRecord(getCompleteBodyWaterMassRecord()); in testReadBodyWaterMassRecordUsingFilters_default() 158 (BodyWaterMassRecord) TestUtils.insertRecord(getCompleteBodyWaterMassRecord()); in testReadBodyWaterMassRecordUsingFilters_timeFilter() 186 (BodyWaterMassRecord) TestUtils.insertRecord(getCompleteBodyWaterMassRecord()); in testReadBodyWaterMassRecordUsingFilters_dataFilter_correct()
|
D | HeartRateVariabilityRmssdRecordTest.java | 144 TestUtils.insertRecord(getCompleteHeartRateVariabilityRmssdRecord()); in testReadHeartRateVariabilityRmssdRecordUsingFilters_default() 170 TestUtils.insertRecord(getCompleteHeartRateVariabilityRmssdRecord()); in testReadHeartRateVariabilityRmssdRecordUsingFilters_timeFilter() 201 TestUtils.insertRecord(getCompleteHeartRateVariabilityRmssdRecord()); in testReadHeartRateVariabilityRmssdRecordUsingFilters_dataFilter_correct()
|
D | LeanBodyMassRecordTest.java | 131 (LeanBodyMassRecord) TestUtils.insertRecord(getCompleteLeanBodyMassRecord()); in testReadLeanBodyMassRecordUsingFilters_default() 150 (LeanBodyMassRecord) TestUtils.insertRecord(getCompleteLeanBodyMassRecord()); in testReadLeanBodyMassRecordUsingFilters_timeFilter() 175 (LeanBodyMassRecord) TestUtils.insertRecord(getCompleteLeanBodyMassRecord()); in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct()
|
D | ActiveCaloriesBurnedRecordTest.java | 159 TestUtils.insertRecord(getCompleteActiveCaloriesBurnedRecord()); in testReadActiveCaloriesBurnedRecordUsingFilters_default() 185 TestUtils.insertRecord(getCompleteActiveCaloriesBurnedRecord()); in testReadActiveCaloriesBurnedRecordUsingFilters_timeFilter() 215 TestUtils.insertRecord(getCompleteActiveCaloriesBurnedRecord()); in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct()
|