Home
last modified time | relevance | path

Searched refs:setupAggregation (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregateOtherAppsDataTest.java31 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()
DExerciseDurationAggregationTest.java25 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()
DSleepDurationAggregationTest.java27 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()
DAggregationApisTest.java41 import static android.healthconnect.cts.utils.TestUtils.setupAggregation;
101 setupAggregation(mPackageName, HealthDataCategory.ACTIVITY); in setUp()
102 setupAggregation(mPackageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
DTotalCaloriesAggregationTest.java35 import static android.healthconnect.cts.utils.TestUtils.setupAggregation;
86 setupAggregation(mPackageName, HealthDataCategory.ACTIVITY); in setUp()
DBasalCaloriesAggregationTest.java29 import static android.healthconnect.cts.utils.TestUtils.setupAggregation;
74 setupAggregation(packageName, HealthDataCategory.BODY_MEASUREMENTS); in setUp()
DAggregateWithFiltersTest.java44 import static android.healthconnect.cts.utils.TestUtils.setupAggregation;
95 setupAggregation(mPackageName, ACTIVITY); in setUp()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/
DHistoricAccessLimitWithPermissionTest.java29 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()
DHistoricAccessLimitTest.java200 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/
DStepsRecordTest.java811 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 …]
DWeightRecordTest.java529 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()
DHeartRateRecordTest.java559 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()
DSkinTemperatureRecordTest.java647 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()
DFloorsClimbedRecordTest.java228 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testTotalAggregation_oneRecord_returnsItsTotal()
246 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_FloorsClimbedTotal()
DNutritionRecordTest.java436 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_NutritionValuesTotal()
558 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_NutritionEnergyValuesTotal()
DWheelchairPushesRecordTest.java235 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_countTotal()
DRestingHeartRateRecordTest.java354 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testBpmAggregation_timeRange_all()
DDistanceRecordTest.java566 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_DistanceTotal_AtOverlapStartAndEndTime()
DHydrationRecordTest.java304 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.NUTRITION); in testAggregation_VolumeTotal()
DPowerRecordTest.java299 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_power()
DBloodPressureRecordTest.java437 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.VITALS); in testAggregation_bloodPressure()
DCyclingPedalingCadenceRecordTest.java552 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testRpmAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect()
DElevationGainedRecordTest.java352 TestUtils.setupAggregation(PACKAGE_NAME, HealthDataCategory.ACTIVITY); in testAggregation_ElevationTotal()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/
DBackgroundReadTest.java32 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/
DTestUtils.java932 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

12