/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | TimeInterval.java | 35 if (getStartTime().compareTo(interval.getStartTime()) != 0) { in compareTo() 36 return getStartTime().compareTo(interval.getStartTime()); in compareTo() 68 public Instant getStartTime() { in getStartTime() method in TimeInterval 85 return getStartTime().toEpochMilli() == that.getStartTime().toEpochMilli() in equals() 91 return Objects.hash(getStartTime(), getEndTime()); in hashCode()
|
D | IntervalRecord.java | 78 public Instant getStartTime() { in getStartTime() method in IntervalRecord 114 return getStartTime().toEpochMilli() == other.getStartTime().toEpochMilli() in equals() 130 getStartTime(), in hashCode()
|
D | SleepSessionRecord.java | 171 public Instant getStartTime() { in getStartTime() method in SleepSessionRecord.Stage 172 return mInterval.getStartTime(); in getStartTime() 199 && getStartTime().toEpochMilli() == that.getStartTime().toEpochMilli() in equals() 205 return Objects.hash(getStartTime(), getEndTime(), mStageType); in hashCode() 211 .setStartTime(getStartTime().toEpochMilli()) in toInternalStage() 436 recordInternal.setStartTime(getStartTime().toEpochMilli()); in toRecordInternal()
|
D | ExerciseSegment.java | 76 public Instant getStartTime() { in getStartTime() method in ExerciseSegment 77 return mInterval.getStartTime(); in getStartTime() 112 .setStarTime(getStartTime().toEpochMilli()) in toSegmentInternal()
|
D | ExerciseLap.java | 69 public Instant getStartTime() { in getStartTime() method in ExerciseLap 70 return mInterval.getStartTime(); in getStartTime() 111 .setStarTime(getStartTime().toEpochMilli()) in toExerciseLapInternal()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/ |
D | OrderingTests.java | 83 assertThat(records.get(0).getStartTime()).isEqualTo(startTime1); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 84 assertThat(records.get(1).getStartTime()).isEqualTo(startTime2); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 85 assertThat(records.get(2).getStartTime()).isEqualTo(startTime3); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder() 106 assertThat(records.get(0).getStartTime()).isEqualTo(startTime3); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 107 assertThat(records.get(1).getStartTime()).isEqualTo(startTime2); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 108 assertThat(records.get(2).getStartTime()).isEqualTo(startTime1); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder() 128 assertThat(records.get(0).getStartTime()).isEqualTo(startTime1); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder() 129 assertThat(records.get(1).getStartTime()).isEqualTo(startTime2); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder() 130 assertThat(records.get(2).getStartTime()).isEqualTo(startTime3); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder() 190 assertThat(records.get(0).getStartTime()).isEqualTo(startTime2); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | MergeDataHelper.java | 61 public Instant getStartTime() { in getStartTime() method in MergeDataHelper.RecordData 127 Comparator.comparing(RecordData::getStartTime) in MergeDataHelper() 159 .getStartTime() in readCursor() 232 if (startTime.isBefore(mRecordDataList.get(0).getStartTime())) { in getEmptyIntervals() 233 emptyIntervals.add(new Pair<>(startTime, mRecordDataList.get(0).getStartTime())); in getEmptyIntervals() 238 Instant nextStart = mRecordDataList.get(i + 1).getStartTime(); in getEmptyIntervals() 272 bufferData.getStartTime()), in eliminateEarliestRecordOverlaps() 295 firstBufferData.getStartTime(), in eliminateEarliestRecordOverlaps() 297 firstBufferData.getEndTime(), bufferData.getStartTime())); in eliminateEarliestRecordOverlaps() 377 if (endTime.isBefore(data.getStartTime())) { in trimRecordData() [all …]
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/utils/ |
D | InsertOrUpdateRecords.kt | 117 private fun getStartTime( in getStartTime() method 179 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 188 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 198 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 208 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 227 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 237 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 247 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 257 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() 267 getStartTime(mFieldNameToFieldInput), in createRecordObjectHelper() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/aggregation/ |
D | AggregationRecordData.java | 51 long getStartTime() { in getStartTime() method in AggregationRecordData 97 return new AggregationTimestamp(AggregationTimestamp.INTERVAL_START, getStartTime()) in getStartTimestamp() 153 if (getStartTime() != o.getStartTime()) { in compareTo() 154 return Long.compare(getStartTime(), o.getStartTime()); in compareTo()
|
D | PriorityRecordsAggregator.java | 151 mLatestPopulatedStart = data.getStartTime(); in populateTimestampBuffer() 195 if (data.getStartTime() > data.getEndTime()) { in readNewDataAndMaybeAddToBuffer() 296 if (data.getStartTime() < earliestInterval.getStartTime()) { in getZoneOffsetOfEarliestOpenInterval()
|
D | ValueColumnAggregationData.java | 45 double intervalDuration = getEndTime() - getStartTime(); in getResultOnInterval() 48 - Math.max(getStartTime(), startPoint.getTime()); in getResultOnInterval()
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | SleepStageInternalTest.java | 42 assertThat(converted.getStartTime().toEpochMilli()) in testSleepStageInternal_convertToExternalAndBack_recordsAreEqual() 43 .isEqualTo(external.getStartTime().toEpochMilli()); in testSleepStageInternal_convertToExternalAndBack_recordsAreEqual() 63 assertThat(restored.getStartTime()).isEqualTo(initial.getStartTime()); in testSleepStageInternal_writeToParcelAndBack_recordsAreEqual()
|
D | ExerciseLapInternalTest.java | 81 assertThat(restored.getStartTime()).isEqualTo(lap.getStartTime()); in assertLapsAreEqual() 88 assertThat(converted.getStartTime().toEpochMilli()) in assertLapsAreEqual() 89 .isEqualTo(externalLap.getStartTime().toEpochMilli()); in assertLapsAreEqual()
|
D | ExerciseSegmentInternalTest.java | 95 assertThat(converted.getStartTime().toEpochMilli()) in assertSegmentsAreEqual() 96 .isEqualTo(externalSegment.getStartTime().toEpochMilli()); in assertSegmentsAreEqual() 108 assertThat(restored.getStartTime()).isEqualTo(segment.getStartTime()); in assertSegmentsAreEqual()
|
D | ExerciseSessionInternalTest.java | 88 .isEqualTo(external.getStartTime().toEpochMilli()); in assertFieldsAreEqual() 121 assertThat(internalLap.getStartTime()) in assertLapsAreEqual() 122 .isEqualTo(externalLap.getStartTime().toEpochMilli()); in assertLapsAreEqual() 140 assertThat(internalSegment.getStartTime()) in assertSegmentsAreEqual() 141 .isEqualTo(externalSegment.getStartTime().toEpochMilli()); in assertSegmentsAreEqual()
|
D | SleepSessionInternalTest.java | 74 .isEqualTo(external.getStartTime().toEpochMilli()); in assertFieldsAreEqual() 114 assertThat(internalStage.getStartTime()) in assertStagesAreEqual() 115 .isEqualTo(externalStage.getStartTime().toEpochMilli()); in assertStagesAreEqual()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | AggregationApisTest.java | 194 assertThat(responses.get(0).getStartTime()).isEqualTo(time.minus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 199 assertThat(responses.get(1).getStartTime()).isEqualTo(time); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 204 assertThat(responses.get(2).getStartTime()).isEqualTo(time.plus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal() 233 assertThat(responses.get(0).getStartTime()) in groupByDurationWithLocalFilter_distanceTotal() 240 assertThat(responses.get(1).getStartTime()).isEqualTo(time.minus(10, MINUTES)); in groupByDurationWithLocalFilter_distanceTotal() 245 assertThat(responses.get(2).getStartTime()).isEqualTo(time.plus(20, MINUTES)); in groupByDurationWithLocalFilter_distanceTotal() 273 assertThat(responses.get(0).getStartTime()).isEqualTo(startTime); in groupByPeriod_weightAvg() 279 assertThat(responses.get(1).getStartTime()).isEqualTo(startTime); in groupByPeriod_weightAvg() 285 assertThat(responses.get(2).getStartTime()).isEqualTo(startTime); in groupByPeriod_weightAvg() 328 assertThat(responses.get(0).getStartTime()).isEqualTo(time.minus(25, DAYS)); in groupByDurationWithInstantFilter_weightMin() [all …]
|
D | SleepDurationAggregationTest.java | 98 - session.getStartTime().toEpochMilli()); in testSimpleAggregation_oneSession_returnsItsDuration() 141 awakeStage.getEndTime().toEpochMilli() - awakeStage.getStartTime().toEpochMilli(); in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake() 145 - session.getStartTime().toEpochMilli() in testSimpleAggregation_oneSessionWithAwake_returnsDurationMinusAwake()
|
D | AggregateOtherAppsDataTest.java | 115 ENERGY_TOTAL, Energy.fromCalories(10), record.getStartTime(), record.getEndTime()); in testAppWithReadPerms_aggregateOtherAppsTotalCaloriesBurned_expectSuccess() 130 - exerciseSessionRecord.getStartTime().toEpochMilli()); in testAppWithReadPerms_aggregateOtherAppsExercise_expectSuccess() 145 - sleepSessionRecord.getStartTime().toEpochMilli()); in testAppWithReadPerms_aggregateOtherAppsSleep_expectSuccess()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/ |
D | IoOveruseStatsSubject.java | 63 check("getStartTime()").that(mActual.getStartTime()).isEqualTo(expected.getStartTime()); in isEqualTo() 86 return actual.getStartTime() == expected.getStartTime() in isEquals()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 106 final long startTime = data.getStartTime(); in calcPoints() 151 nodeDate = DateUtils.formatDateTime(context, data.getStartTime(), flags); in setupContentDescription() 153 nodeDate = DateUtils.formatDateRange(context, data.getStartTime(), in setupContentDescription() 181 final DataUsageSummaryNode node = new DataUsageSummaryNode(data.getStartTime(), in getDensedStatsData() 194 final long startTime = nodes.stream().mapToLong(DataUsageSummaryNode::getStartTime) in getDensedStatsData() 227 public long getStartTime() { in getStartTime() method in ChartDataUsagePreference.DataUsageSummaryNode
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | TimeRangeFilterTest.java | 52 assertThat(timeRangeFilter.getStartTime()).isEqualTo(startTime); in testLocalTimeRangeFilter() 67 assertThat(timeRangeFilter.getStartTime()).isEqualTo(startTime); in testTimeInstantRangeFilter() 77 assertThat(timeRangeFilter.getStartTime()).isEqualTo(Instant.EPOCH); in testStartTimeInstantRangeFilter_startTimeNull() 96 assertThat(timeRangeFilter.getStartTime().toInstant(ZoneOffset.MAX)) in testStartTimeLocalRangeFilter_startTimeNull()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | PlannedExerciseSessionRecordInternal.java | 159 buildMetaData(), getExerciseType(), getStartTime(), getEndTime()) in toExternalRecord() 163 getStartTime().atOffset(getStartZoneOffset()).toLocalDate(), in toExternalRecord() 164 Duration.between(getStartTime(), getEndTime())); in toExternalRecord()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/ |
D | TimeRangeFilterHelper.java | 46 return getMillisOfLocalTime(((LocalTimeRangeFilter) timeRangeFilter).getStartTime()); in getFilterStartTimeMillis() 48 return ((TimeInstantRangeFilter) timeRangeFilter).getStartTime().toEpochMilli(); in getFilterStartTimeMillis()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceTest.java | 84 mNetworkCycleChartData.getTotal().getStartTime(), in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly() 104 mNetworkCycleChartData.getTotal().getStartTime(), in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData() 176 mNetworkCycleChartData.getTotal().getStartTime(), in calcPoints_shouldNotDrawPointForFutureDate() 206 mNetworkCycleChartData.getTotal().getStartTime(), in notifyChange_nonEmptyDataUsage_shouldHaveSingleContentDescription()
|