Searched refs:AggregationTimestamp (Results 1 – 6 of 6) sorted by relevance
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/aggregation/ |
D | PriorityRecordsAggregator.java | 62 private final TreeSet<AggregationTimestamp> mTimestampsBuffer; 104 AggregationTimestamp scanPoint, nextPoint; in calculateAggregation() 108 if (scanPoint.getType() == AggregationTimestamp.GROUP_BORDER) { in calculateAggregation() 110 } else if (scanPoint.getType() == AggregationTimestamp.INTERVAL_START) { in calculateAggregation() 112 } else if (scanPoint.getType() == AggregationTimestamp.INTERVAL_END) { in calculateAggregation() 132 if (mTimestampsBuffer.first().getType() != AggregationTimestamp.INTERVAL_START) { in populateTimestampBuffer() 167 new AggregationTimestamp(AggregationTimestamp.GROUP_BORDER, groupSplit)); in initialiseTimestampsBuffer() 246 AggregationTimestamp startPoint, AggregationTimestamp endPoint) { in updateAggregationResult() 267 && startPoint.getType() == AggregationTimestamp.GROUP_BORDER in updateAggregationResult() 268 && endPoint.getType() == AggregationTimestamp.INTERVAL_END) { in updateAggregationResult()
|
D | AggregationRecordData.java | 96 AggregationTimestamp getStartTimestamp() { in getStartTimestamp() 97 return new AggregationTimestamp(AggregationTimestamp.INTERVAL_START, getStartTime()) in getStartTimestamp() 101 AggregationTimestamp getEndTimestamp() { in getEndTimestamp() 102 return new AggregationTimestamp(AggregationTimestamp.INTERVAL_END, getEndTime()) in getEndTimestamp() 122 AggregationTimestamp startPoint, AggregationTimestamp endPoint); in getResultOnInterval()
|
D | AggregationTimestamp.java | 28 public class AggregationTimestamp implements Comparable<AggregationTimestamp> { class 45 public AggregationTimestamp(int type, long time) { in AggregationTimestamp() method in AggregationTimestamp 62 AggregationTimestamp setParentData(AggregationRecordData parentRecord) { in setParentData() 68 public int compareTo(AggregationTimestamp o) { in compareTo()
|
D | ValueColumnAggregationData.java | 44 double getResultOnInterval(AggregationTimestamp startPoint, AggregationTimestamp endPoint) { in getResultOnInterval() 57 && startPoint.getType() == AggregationTimestamp.INTERVAL_START in getResultOnInterval() 58 && endPoint.getType() == AggregationTimestamp.INTERVAL_END) { in getResultOnInterval()
|
D | SessionDurationAggregationData.java | 55 double getResultOnInterval(AggregationTimestamp startPoint, AggregationTimestamp endPoint) { in getResultOnInterval()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/aggregation/ |
D | PriorityAggregationDataComparisonTest.java | 56 AggregationTimestamp border = in testCompareTimestamps_orderByTime() 57 new AggregationTimestamp(AggregationTimestamp.GROUP_BORDER, 13L); in testCompareTimestamps_orderByTime() 58 AggregationTimestamp border2 = in testCompareTimestamps_orderByTime() 59 new AggregationTimestamp(AggregationTimestamp.GROUP_BORDER, 15L); in testCompareTimestamps_orderByTime()
|