/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregateOtherAppsDataTest.java | 31 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 73 setupAggregation( in testAppWithReadPerms_aggregateOtherAppsDistance_expectSuccess() 84 setupAggregation( in testAppWithReadPerms_aggregateOtherAppsSteps_expectSuccess() 95 setupAggregation( in testAppWithReadPerms_aggregateOtherAppsHeartRate_expectSuccess() 107 setupAggregation( in testAppWithReadPerms_aggregateOtherAppsTotalCaloriesBurned_expectSuccess() 120 setupAggregation( in testAppWithReadPerms_aggregateOtherAppsExercise_expectSuccess() 135 setupAggregation( in testAppWithReadPerms_aggregateOtherAppsSleep_expectSuccess()
|
D | ExerciseDurationAggregationTest.java | 25 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 101 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSession_returnsItsDuration() 125 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSessionStartEarlierThanWindow_returnsOverlapDuration() 147 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSessionBiggerThanWindow_returnsOverlapDuration() 170 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testSimpleAggregation_oneSessionWithRest_returnsDurationMinusRest() 212 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups() 244 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset() 276 setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
|
D | SleepDurationAggregationTest.java | 27 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 86 setupAggregation(PACKAGE_NAME, HealthDataCategory.SLEEP); in testSimpleAggregation_oneSession_returnsItsDuration() 106 setupAggregation(PACKAGE_NAME, HealthDataCategory.SLEEP); in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 152 setupAggregation(PACKAGE_NAME, HealthDataCategory.SLEEP); in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
|
D | AggregationApisTest.java | 41 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 101 setupAggregation(mPackageName, HealthDataCategory.ACTIVITY); in setUp() 102 setupAggregation(mPackageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
|
D | TotalCaloriesAggregationTest.java | 35 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 86 setupAggregation(mPackageName, HealthDataCategory.ACTIVITY); in setUp()
|
D | BasalCaloriesAggregationTest.java | 29 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 74 setupAggregation(packageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
|
D | AggregateWithFiltersTest.java | 44 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 95 setupAggregation(mPackageName, ACTIVITY); in setUp()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/ |
D | HistoricAccessLimitWithPermissionTest.java | 29 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 180 setupAggregation(mContext.getPackageName(), HealthDataCategory.ACTIVITY); in testAggregateIntervalRecords_expectCorrectResponse() 217 setupAggregation(mContext.getPackageName(), HealthDataCategory.BODY_MEASUREMENTS); in testAggregateInstantRecords_expectCorrectResponse()
|
D | HistoricAccessLimitTest.java | 200 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregateIntervalRecords_expectCorrectResponse() 236 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateInstantRecords_expectCorrectResponse()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | StepsRecordTest.java | 811 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult() 838 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testStepsCountAggregation_groupByDurationWithInstantFilter() 864 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testStepsCountAggregation_groupByDuration() 891 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_insertForEveryHour_returnsAggregateForHourAndHalfHours() 935 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_groupByDurationInstant_halfSizeGroupResultIsCorrect() 958 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_StepsCountTotal_withDuplicateEntry() 1183 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregateGroupByMonthPeriod_slicedCorrectly() 1252 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregationLocalTimeOffset() 1296 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregatePeriod_withLocalDateTime_halfSizeGroupResultIsCorrect() 1322 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregateLocalFilter_minOffsetRecord() [all …]
|
D | WeightRecordTest.java | 529 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregatePeriod_withLocalDateTime_responsesAnswerAndBoundariesCorrect() 539 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregatePeriodForZoneOffset() 583 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateDuration_differentTimeZones_correctBucketTimes() 656 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testDurationLocalTimeAggregationZoneOffset() 707 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateLocalFilter_minOffsetRecord() 754 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testOffset() 795 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.BODY_MEASUREMENTS); in testAggregateLocalFilter_daysPeriod()
|
D | HeartRateRecordTest.java | 559 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_timeRange_all() 605 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_timeRange_not_present() 631 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_withDataOrigin_correct() 670 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_withDataOrigin_incorrect() 698 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_groupBy_Duration() 747 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_groupByDuration() 813 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testHeartAggregation_measurement_count() 973 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testAggregateLocalFilter_minOffsetRecord()
|
D | SkinTemperatureRecordTest.java | 647 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testAggregation_allTimeRange_correctResults() 682 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testAggregation_nonOverlappedTimeRange_noResults() 717 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testAggregation_groupByDuration_correctResults()
|
D | FloorsClimbedRecordTest.java | 228 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testTotalAggregation_oneRecord_returnsItsTotal() 246 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_FloorsClimbedTotal()
|
D | NutritionRecordTest.java | 436 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_NutritionValuesTotal() 558 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_NutritionEnergyValuesTotal()
|
D | WheelchairPushesRecordTest.java | 235 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_countTotal()
|
D | RestingHeartRateRecordTest.java | 354 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_timeRange_all()
|
D | DistanceRecordTest.java | 566 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_DistanceTotal_AtOverlapStartAndEndTime()
|
D | HydrationRecordTest.java | 304 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_VolumeTotal()
|
D | PowerRecordTest.java | 299 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_power()
|
D | BloodPressureRecordTest.java | 437 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testAggregation_bloodPressure()
|
D | CyclingPedalingCadenceRecordTest.java | 552 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testRpmAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect()
|
D | ElevationGainedRecordTest.java | 352 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_ElevationTotal()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/ |
D | BackgroundReadTest.java | 32 import static android.healthconnect.cts.utils.TestUtils.setupAggregation; 215 setupAggregation(List.of(mContext.getPackageName(), PKG_TEST_APP), ACTIVITY); in testAggregate_inBackgroundWithPermission_canAggregateBothOwnAndOtherAppsData()
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | TestUtils.java | 932 public static void setupAggregation(String packageName, int dataCategory) { in setupAggregation() method in TestUtils 934 setupAggregation( in setupAggregation() 944 public static void setupAggregation( in setupAggregation() method in TestUtils 948 setupAggregation(List.of(packageName), dataCategory); in setupAggregation() 963 public static void setupAggregation(List<String> packageNames, int dataCategory) in setupAggregation() method in TestUtils
|