Home
last modified time | relevance | path

Searched refs:aggregationType (Results 1 – 25 of 34) sorted by relevance

12

/packages/modules/HealthFitness/framework/java/android/health/connect/
DAggregateRecordsResponse.java58 @NonNull AggregationType<U> aggregationType, in getZoneOffsetInternal()
60 Objects.requireNonNull(aggregationType); in getZoneOffsetInternal()
62 AggregateResult<U> result = mAggregateResults.get(aggregationType); in getZoneOffsetInternal()
73 @NonNull AggregationType<U> aggregationType, in getDataOriginsInternal()
75 Objects.requireNonNull(aggregationType); in getDataOriginsInternal()
77 AggregateResult<U> result = mAggregateResults.get(aggregationType); in getDataOriginsInternal()
89 @NonNull AggregationType<U> aggregationType, in getInternal()
91 Objects.requireNonNull(aggregationType); in getInternal()
93 AggregateResult<U> result = mAggregateResults.get(aggregationType); in getInternal()
122 public T get(@NonNull AggregationType<T> aggregationType) { in get() argument
[all …]
DAggregateRecordsGroupedByDurationResponse.java89 public T get(@NonNull AggregationType<T> aggregationType) { in get() argument
90 return AggregateRecordsResponse.getInternal(aggregationType, mResult); in get()
98 public ZoneOffset getZoneOffset(@NonNull AggregationType<T> aggregationType) { in getZoneOffset() argument
99 return AggregateRecordsResponse.getZoneOffsetInternal(aggregationType, mResult); in getZoneOffset()
107 public Set<DataOrigin> getDataOrigins(@NonNull AggregationType<T> aggregationType) { in getDataOrigins() argument
108 return AggregateRecordsResponse.getDataOriginsInternal(aggregationType, mResult); in getDataOrigins()
DAggregateRecordsGroupedByPeriodResponse.java101 public T get(@NonNull AggregationType<T> aggregationType) { in get() argument
102 return AggregateRecordsResponse.getInternal(aggregationType, mResult); in get()
110 public ZoneOffset getZoneOffset(@NonNull AggregationType<T> aggregationType) { in getZoneOffset() argument
111 return AggregateRecordsResponse.getZoneOffsetInternal(aggregationType, mResult); in getZoneOffset()
119 public Set<DataOrigin> getDataOrigins(@NonNull AggregationType<T> aggregationType) { in getDataOrigins() argument
120 return AggregateRecordsResponse.getDataOriginsInternal(aggregationType, mResult); in getDataOrigins()
DAggregateRecordsRequest.java96 public Builder<T> addAggregationType(@NonNull AggregationType<T> aggregationType) { in addAggregationType() argument
97 mAggregationTypes.add(aggregationType); in addAggregationType()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DAggregationTypeIdMapper.java267 public int getIdFor(AggregationType<?> aggregationType) { in getIdFor() argument
268 return mDataAggregationTypeIdMap.get(aggregationType); in getIdFor()
323 for (AggregationType<?> aggregationType : aggregationTypeList) { in addLongIdsToAggregateResultMap()
325 aggregationType.getAggregationTypeIdentifier(), in addLongIdsToAggregateResultMap()
327 populateIdDataAggregationType(aggregationType); in addLongIdsToAggregateResultMap()
333 for (AggregationType<?> aggregationType : aggregationTypeList) { in addDoubleIdsToAggregateResultMap()
335 aggregationType.getAggregationTypeIdentifier(), in addDoubleIdsToAggregateResultMap()
337 populateIdDataAggregationType(aggregationType); in addDoubleIdsToAggregateResultMap()
343 for (AggregationType<?> aggregationType : aggregationTypeList) { in addEnergyIdsToAggregateResultMap()
345 aggregationType.getAggregationTypeIdentifier(), in addEnergyIdsToAggregateResultMap()
[all …]
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DAggregateTransactionRequest.java66 AggregationType<?> aggregationType = aggregationTypeIdMapper.getAggregationTypeFor(id); in AggregateTransactionRequest() local
67 List<Integer> recordTypeIds = aggregationType.getApplicableRecordTypeIds(); in AggregateTransactionRequest()
73 aggregationType, in AggregateTransactionRequest()
122 for (AggregationType<?> aggregationType : results.keySet()) { in getAggregateDataResponseParcel()
124 (AggregationTypeIdMapper.getInstance().getIdFor(aggregationType)), in getAggregateDataResponseParcel()
125 Objects.requireNonNull(results.get(aggregationType)).get(i)); in getAggregateDataResponseParcel()
DAggregateParams.java163 String columnToAggregateName, Class<?> aggregationType) { in PriorityAggregationExtraParams() argument
167 (aggregationType == Long.class ? VALUE_TYPE_LONG : VALUE_TYPE_DOUBLE); in PriorityAggregationExtraParams()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregateOtherAppsDataTest.java148 private static <T> void assertAggregation(AggregationType<T> aggregationType, T expectedValue) in assertAggregation() argument
151 aggregationType, expectedValue, NOW.minus(1000, DAYS), NOW.plus(1000, DAYS)); in assertAggregation()
155 AggregationType<T> aggregationType, T expectedValue, Instant startTime, Instant endTime) in assertAggregation() argument
164 .addAggregationType(aggregationType) in assertAggregation()
167 assertThat(response.get(aggregationType)).isEqualTo(expectedValue); in assertAggregation()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNoPermissionsGrantedTest.java283 AggregationType<?> aggregationType = recordAndAggregationType.second; in testAggregate_noPermissions_expectError() local
291 .addAggregationType((AggregationType<Object>) aggregationType) in testAggregate_noPermissions_expectError()
315 for (var aggregationType : aggregationTypes) { in testAggregateGroupByDuration_noPermissions_expectError()
324 .addAggregationType((AggregationType<Object>) aggregationType) in testAggregateGroupByDuration_noPermissions_expectError()
349 for (var aggregationType : aggregationTypes) { in testAggregateGroupByPeriod_noPermissions_expectError()
360 .addAggregationType((AggregationType<Object>) aggregationType) in testAggregateGroupByPeriod_noPermissions_expectError()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DLoadDataAggregationsUseCase.kt106 aggregationType: AggregationType<T>, in <lambda>()
111 .addAggregationType(aggregationType) in <lambda>()
119 val aggregationResult: T = requireNotNull(response.get(aggregationType)) in <lambda>()
120 val apps = response.getDataOrigins(aggregationType) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/
DLoadDataAggregationsUseCase.kt128 aggregationType: AggregationType<T>, in <lambda>()
134 AggregateRecordsRequest.Builder<T>(timeFilterRange).addAggregationType(aggregationType) in <lambda>()
144 val aggregationResult: T = requireNotNull(response.get(aggregationType)) in <lambda>()
145 val apps = response.getDataOrigins(aggregationType) in <lambda>()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DHydrationRecordHelper.java53 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
54 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DActiveCaloriesBurnedRecordHelper.java58 Cursor results, AggregationType<?> aggregationType, double aggregation) { in getAggregateResult() argument
59 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DHeightRecordHelper.java57 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
59 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DRestingHeartRateRecordHelper.java58 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
60 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DBasalMetabolicRateRecordHelper.java59 Cursor results, AggregationType<?> aggregationType, double result) { in getAggregateResult() argument
60 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DWeightRecordHelper.java56 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
58 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DCyclingPedalingCadenceRecordHelper.java119 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
120 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DPowerRecordHelper.java67 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
68 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DStepsCadenceRecordHelper.java113 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
114 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DHeartRateRecordHelper.java69 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
70 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DTotalCaloriesBurnedRecordHelper.java65 Cursor results, AggregationType<?> aggregationType, double aggregation) { in getAggregateResult() argument
66 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DSpeedRecordHelper.java105 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
106 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
DBloodPressureRecordHelper.java96 Cursor results, AggregationType<?> aggregationType) { in getAggregateResult() argument
98 switch (aggregationType.getAggregationTypeIdentifier()) { in getAggregateResult()
/packages/modules/StatsD/statsd/benchmark/
Dduration_metric_benchmark.cpp32 DurationMetric::AggregationType aggregationType, bool addExtraDimensionInCondition) { in CreateDurationMetricConfig_NoLink_AND_CombinationCondition() argument
70 metric->set_aggregation_type(aggregationType); in CreateDurationMetricConfig_NoLink_AND_CombinationCondition()
80 DurationMetric::AggregationType aggregationType, bool addExtraDimensionInCondition) { in CreateDurationMetricConfig_Link_AND_CombinationCondition() argument
118 metric->set_aggregation_type(aggregationType); in CreateDurationMetricConfig_Link_AND_CombinationCondition()

12