Home
last modified time | relevance | path

Searched refs:mAggregationType (Results 1 – 6 of 6) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DBaseDurationAggregationTest.java78 private final AggregationType<ResultType> mAggregationType; field in BaseDurationAggregationTest
83 mAggregationType = aggregationType; in BaseDurationAggregationTest()
129 .addAggregationType(mAggregationType) in noData_largeWindow_returnsNull()
132 assertThat(response.get(mAggregationType)).isNull(); in noData_largeWindow_returnsNull()
133 assertThat(response.getZoneOffset(mAggregationType)).isNull(); in noData_largeWindow_returnsNull()
134 assertThat(response.getDataOrigins(mAggregationType)).isEmpty(); in noData_largeWindow_returnsNull()
152 .addAggregationType(mAggregationType) in oneRecord_largeWindow_returnsRecordDuration()
155 assertThat(response.get(mAggregationType)).isNotNull(); in oneRecord_largeWindow_returnsRecordDuration()
156 assertThat(response.get(mAggregationType)) in oneRecord_largeWindow_returnsRecordDuration()
158 assertThat(response.getZoneOffset(mAggregationType)).isEqualTo(record.getStartZoneOffset()); in oneRecord_largeWindow_returnsRecordDuration()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/aggregation/
DActivityIntensityAggregationData.java48 @AggregationType.AggregationTypeIdentifier private final int mAggregationType; field in ActivityIntensityAggregationData
53 mAggregationType = aggregationType; in ActivityIntensityAggregationData()
66 switch (mAggregationType) { in getResultOnInterval()
76 "Unsupported aggregation type: " + mAggregationType); in getResultOnInterval()
83 / (mAggregationType == ACTIVITY_INTENSITY_MINUTES_TOTAL ? MILLIS_IN_A_MINUTE : 1); in getResultOnInterval()
DPriorityRecordsAggregator.java64 @AggregationType.AggregationTypeIdentifier private final int mAggregationType; field in PriorityRecordsAggregator
80 mAggregationType = aggregationType; in PriorityRecordsAggregator()
227 return switch (mAggregationType) { in createAggregationRecordData()
247 new ActivityIntensityAggregationData(mAggregationType); in createAggregationRecordData()
250 "Priority aggregation do not support type: " + mAggregationType); in createAggregationRecordData()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/fitness/aggregation/
DAggregateRecordRequest.java69 private final AggregationType<?> mAggregationType; field in AggregateRecordRequest
109 mAggregationType = aggregationType; in AggregateRecordRequest()
132 return mAggregationType; in getAggregationType()
180 mAggregationType.getAggregateOperationType()) in getAggregationCommand()
188 aggCommand = getSqlCommandFor(mAggregationType.getAggregateOperationType()); in getAggregationCommand()
255 mAggregationType.getAggregateOperationType())) { in processResultsAndReturnContributingPackages()
278 mAggregationType.getAggregationTypeIdentifier(), in processPriorityRequest()
288 if (mAggregationType.getAggregateResultClass() == Long.class in processPriorityRequest()
289 || mAggregationType.getAggregateResultClass() == Duration.class) { in processPriorityRequest()
310 mRecordHelper.getNoPriorityAggregateResult(cursor, mAggregationType)); in processNoPrioritiesRequest()
[all …]
/packages/modules/StatsD/statsd/src/metrics/
DDurationMetricProducer.cpp86 mAggregationType(metric.aggregation_type()), in DurationMetricProducer()
289 if (mAggregationType == DurationMetric_AggregationType_SUM) { in addAnomalyTracker()
352 switch (mAggregationType) { in createDurationTracker()
DDurationMetricProducer.h146 const DurationMetric_AggregationType mAggregationType; variable