/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | MergeDataHelper.java | 65 public Instant getEndTime() { in getEndTime() method in MergeDataHelper.RecordData 160 .isBefore(mBufferWindow.first().getEndTime())) in readCursor() 237 Instant currentEnd = mRecordDataList.get(i).getEndTime(); in getEmptyIntervals() 244 if (endTime.isAfter(mRecordDataList.get(mRecordDataList.size() - 1).getEndTime())) { in getEmptyIntervals() 247 mRecordDataList.get(mRecordDataList.size() - 1).getEndTime(), endTime)); in getEmptyIntervals() 266 if (bufferData.getEndTime().isAfter(firstBufferData.getEndTime())) { in eliminateEarliestRecordOverlaps() 271 firstBufferData.getEndTime(), in eliminateEarliestRecordOverlaps() 273 bufferData.getEndTime()); in eliminateEarliestRecordOverlaps() 282 if (firstBufferData.getEndTime().isAfter(bufferData.getEndTime())) { in eliminateEarliestRecordOverlaps() 286 bufferData.getEndTime(), in eliminateEarliestRecordOverlaps() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | TimeInterval.java | 38 return getEndTime().compareTo(interval.getEndTime()); in compareTo() 76 public Instant getEndTime() { in getEndTime() method in TimeInterval 86 && getEndTime().toEpochMilli() == that.getEndTime().toEpochMilli(); in equals() 91 return Objects.hash(getStartTime(), getEndTime()); in hashCode()
|
D | IntervalRecord.java | 92 public Instant getEndTime() { in getEndTime() method in IntervalRecord 115 && getEndTime().toEpochMilli() == other.getEndTime().toEpochMilli() in equals() 132 getEndTime(), in hashCode()
|
D | SleepSessionRecord.java | 177 public Instant getEndTime() { in getEndTime() method in SleepSessionRecord.Stage 178 return mInterval.getEndTime(); in getEndTime() 200 && getEndTime().toEpochMilli() == that.getEndTime().toEpochMilli(); in equals() 205 return Objects.hash(getStartTime(), getEndTime(), mStageType); in hashCode() 212 .setEndTime(getEndTime().toEpochMilli()) in toInternalStage() 437 recordInternal.setEndTime(getEndTime().toEpochMilli()); in toRecordInternal()
|
D | ExerciseSegment.java | 84 public Instant getEndTime() { in getEndTime() method in ExerciseSegment 85 return mInterval.getEndTime(); in getEndTime() 113 .setEndTime(getEndTime().toEpochMilli()) in toSegmentInternal()
|
D | ExerciseLap.java | 77 public Instant getEndTime() { in getEndTime() method in ExerciseLap 78 return mInterval.getEndTime(); in getEndTime() 112 .setEndTime(getEndTime().toEpochMilli()); in toExerciseLapInternal()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/ |
D | InsertOrUpdateRecords.kt | 123 private fun getEndTime( in getEndTime() method 180 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 189 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 199 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 209 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 228 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 238 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 248 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 258 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() 268 getEndTime(mFieldNameToFieldInput), in createRecordObjectHelper() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/aggregation/ |
D | AggregationRecordData.java | 55 long getEndTime() { in getEndTime() method in AggregationRecordData 102 return new AggregationTimestamp(AggregationTimestamp.INTERVAL_END, getEndTime()) in getEndTimestamp() 157 if (getEndTime() != o.getEndTime()) { in compareTo() 158 return Long.compare(getEndTime(), o.getEndTime()); in compareTo()
|
D | ValueColumnAggregationData.java | 45 double intervalDuration = getEndTime() - getStartTime(); in getResultOnInterval() 47 Math.min(getEndTime(), endPoint.getTime()) in getResultOnInterval()
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | SleepStageInternalTest.java | 44 assertThat(converted.getEndTime().toEpochMilli()) in testSleepStageInternal_convertToExternalAndBack_recordsAreEqual() 45 .isEqualTo(external.getEndTime().toEpochMilli()); in testSleepStageInternal_convertToExternalAndBack_recordsAreEqual() 64 assertThat(restored.getEndTime()).isEqualTo(initial.getEndTime()); in testSleepStageInternal_writeToParcelAndBack_recordsAreEqual()
|
D | ExerciseLapInternalTest.java | 82 assertThat(restored.getEndTime()).isEqualTo(lap.getEndTime()); in assertLapsAreEqual() 90 assertThat(converted.getEndTime().toEpochMilli()) in assertLapsAreEqual() 91 .isEqualTo(externalLap.getEndTime().toEpochMilli()); in assertLapsAreEqual()
|
D | ExerciseSegmentInternalTest.java | 97 assertThat(converted.getEndTime().toEpochMilli()) in assertSegmentsAreEqual() 98 .isEqualTo(externalSegment.getEndTime().toEpochMilli()); in assertSegmentsAreEqual() 109 assertThat(restored.getEndTime()).isEqualTo(segment.getEndTime()); in assertSegmentsAreEqual()
|
D | ExerciseSessionInternalTest.java | 89 assertThat(internal.getEndTimeInMillis()).isEqualTo(external.getEndTime().toEpochMilli()); in assertFieldsAreEqual() 123 assertThat(internalLap.getEndTime()).isEqualTo(externalLap.getEndTime().toEpochMilli()); in assertLapsAreEqual() 142 assertThat(internalSegment.getEndTime()) in assertSegmentsAreEqual() 143 .isEqualTo(externalSegment.getEndTime().toEpochMilli()); in assertSegmentsAreEqual()
|
D | SleepSessionInternalTest.java | 75 assertThat(internal.getEndTimeInMillis()).isEqualTo(external.getEndTime().toEpochMilli()); in assertFieldsAreEqual() 116 assertThat(internalStage.getEndTime()) in assertStagesAreEqual() 117 .isEqualTo(externalStage.getEndTime().toEpochMilli()); in assertStagesAreEqual()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregationApisTest.java | 195 assertThat(responses.get(0).getEndTime()).isEqualTo(time); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 200 assertThat(responses.get(1).getEndTime()).isEqualTo(time.plus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 205 assertThat(responses.get(2).getEndTime()).isEqualTo(time.plus(4, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 235 assertThat(responses.get(0).getEndTime()) in groupByDurationWithLocalFilter_distanceTotal() 241 assertThat(responses.get(1).getEndTime()).isEqualTo(time.plus(20, MINUTES)); in groupByDurationWithLocalFilter_distanceTotal() 246 assertThat(responses.get(2).getEndTime()).isEqualTo(time.plus(40, MINUTES)); in groupByDurationWithLocalFilter_distanceTotal() 274 assertThat(responses.get(0).getEndTime()).isEqualTo(startTime.plus(period)); in groupByPeriod_weightAvg() 280 assertThat(responses.get(1).getEndTime()).isEqualTo(startTime.plus(period)); in groupByPeriod_weightAvg() 286 assertThat(responses.get(2).getEndTime()).isEqualTo(localTime); in groupByPeriod_weightAvg() 329 assertThat(responses.get(0).getEndTime()).isEqualTo(time.minus(18, DAYS)); in groupByDurationWithInstantFilter_weightMin() [all …]
|
D | SleepDurationAggregationTest.java | 97 session.getEndTime().toEpochMilli() in testSimpleAggregation_oneSession_returnsItsDuration() 141 awakeStage.getEndTime().toEpochMilli() - awakeStage.getStartTime().toEpochMilli(); in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 144 session.getEndTime().toEpochMilli() in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake()
|
D | AggregateOtherAppsDataTest.java | 115 ENERGY_TOTAL, Energy.fromCalories(10), record.getStartTime(), record.getEndTime()); in testAppWithReadPerms_aggregateOtherAppsTotalCaloriesBurned_expectSuccess() 129 exerciseSessionRecord.getEndTime().toEpochMilli() in testAppWithReadPerms_aggregateOtherAppsExercise_expectSuccess() 144 sleepSessionRecord.getEndTime().toEpochMilli() in testAppWithReadPerms_aggregateOtherAppsSleep_expectSuccess()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | TimeRangeFilterTest.java | 53 assertThat(timeRangeFilter.getEndTime()).isEqualTo(endTime); in testLocalTimeRangeFilter() 68 assertThat(timeRangeFilter.getEndTime()).isEqualTo(endTime); in testTimeInstantRangeFilter() 87 - timeRangeFilter.getEndTime().toEpochMilli()) in testEndTimeInstantRangeFilter_endTimeNull() 106 timeRangeFilter.getEndTime().toInstant(ZoneOffset.MAX).toEpochMilli() in testEndTimeLocalRangeFilter_endTimeNull()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 110 final long endTime = data.getEndTime(); in calcPoints() 154 data.getEndTime(), flags); in setupContentDescription() 182 data.getEndTime(), cumulatedDataUsagePercentage); in getDensedStatsData() 196 final long endTime = nodes.stream().mapToLong(DataUsageSummaryNode::getEndTime) in getDensedStatsData() 231 public long getEndTime() { in getEndTime() method in ChartDataUsagePreference.DataUsageSummaryNode
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | TimeRangeFilterHelper.java | 63 return getMillisOfLocalTime(((LocalTimeRangeFilter) timeRangeFilter).getEndTime()); in getFilterEndTimeMillis() 65 return ((TimeInstantRangeFilter) timeRangeFilter).getEndTime().toEpochMilli(); in getFilterEndTimeMillis()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/ |
D | AggregateDataResponseParcel.java | 174 timeFilter.getStartTime(), timeFilter.getEndTime()); in getAggregateDataResponseGroupedByDuration() 179 timeFilter.getStartTime(), timeFilter.getEndTime()); in getAggregateDataResponseGroupedByDuration() 338 ((TimeInstantRangeFilter) timeRangeFilter).getEndTime(), in getPeriodEndLocalDateTime() 341 return ((LocalTimeRangeFilter) timeRangeFilter).getEndTime(); in getPeriodEndLocalDateTime()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceTest.java | 85 mNetworkCycleChartData.getTotal().getEndTime()); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() 105 mNetworkCycleChartData.getTotal().getEndTime()); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() 177 mNetworkCycleChartData.getTotal().getEndTime()); in calcPoints_shouldNotDrawPointForFutureDate() 207 mNetworkCycleChartData.getTotal().getEndTime()); in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | SleepStageInternal.java | 91 Instant.ofEpochMilli(getEndTime()), in toExternalRecord() 113 public long getEndTime() { in getEndTime() method in SleepStageInternal
|
D | ExerciseLapInternal.java | 96 Instant.ofEpochMilli(getStartTime()), Instant.ofEpochMilli(getEndTime())); in toExternalRecord() 133 public long getEndTime() { in getEndTime() method in ExerciseLapInternal
|
D | ExerciseSegmentInternal.java | 98 Instant.ofEpochMilli(getEndTime()), in toExternalRecord() 122 public long getEndTime() { in getEndTime() method in ExerciseSegmentInternal
|