Home
last modified time | relevance | path

Searched refs:setEndTime (Results 1 – 25 of 142) sorted by relevance

123456

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DBasalCaloriesAggregationTest.java91 .setEndTime(now.minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord()
108 .setEndTime(Instant.now().minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm()
120 .setEndTime(Instant.now().minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm()
141 .setEndTime(now) in testAggregation_BasalCaloriesBurntTotal_lbm_group()
156 .setEndTime(now) in testAggregation_BasalCaloriesBurntTotal_lbm_group()
179 .setEndTime(now) in testAggregation_BasalCaloriesBurntTotal_groupByDuration_lbmDerived()
210 .setEndTime(now) in testAggregation_BasalCaloriesBurntTotal_profile_group()
226 .setEndTime(now) in testAggregation_BasalCaloriesBurntTotal_profile_group()
245 .setEndTime(now) in testAggregation_basalCaloriesBurntTotal_onlyWeightBeforeInterval_usesProfile()
267 .setEndTime(now) in testAggregation_basalCaloriesBurntTotal_HeightAndWeightBeforeInterval_usesProfile()
[all …]
DDataFactory.java75 return new TimeInstantRangeFilter.Builder().setStartTime(start).setEndTime(end).build(); in getTimeFilter()
80 return new LocalTimeRangeFilter.Builder().setStartTime(start).setEndTime(end).build(); in getTimeFilter()
85 return new TimeInstantRangeFilter.Builder().setEndTime(end).build(); in getOpenStartTimeFilter()
90 return new LocalTimeRangeFilter.Builder().setEndTime(end).build(); in getOpenStartTimeFilter()
DExerciseDurationAggregationTest.java58 .setEndTime(Instant.now().plusSeconds(1000))
64 .setEndTime(SESSION_END_TIME)
95 .setEndTime(Instant.now()) in tearDown()
228 .setEndTime(endTime) in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
265 .setEndTime(endTimeLocal.minusHours(15)) in testAggregation_oneSessionLocalTimeFilter_findsSessionWithMinOffset()
303 .setEndTime(endTimeLocal.minusHours(15)) in testAggregation_oneSessionLocalTimeFilterExcludeSegment_substractsExcludeInterval()
DSleepDurationAggregationTest.java54 .setEndTime(Instant.now().plusSeconds(1000))
80 .setEndTime(Instant.now()) in tearDown()
164 .setEndTime(endTime) in testAggregationByDuration_oneSession_returnsSplitDurationIntoGroups()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DTimeRangeFilterTest.java49 .setEndTime(endTime) in testLocalTimeRangeFilter()
64 .setEndTime(endTime) in testTimeInstantRangeFilter()
76 new TimeInstantRangeFilter.Builder().setEndTime(endTime).build(); in testStartTimeInstantRangeFilter_startTimeNull()
95 new LocalTimeRangeFilter.Builder().setEndTime(endTime).build(); in testStartTimeLocalRangeFilter_startTimeNull()
115 new TimeInstantRangeFilter.Builder().setStartTime(time).setEndTime(time); in instantTimeRange_startTimeNotLaterThanEndTime_throws()
119 builder.setEndTime(time.minusMillis(1)); in instantTimeRange_startTimeNotLaterThanEndTime_throws()
128 new LocalTimeRangeFilter.Builder().setStartTime(time).setEndTime(time); in localTimeRange_startTimeNotLaterThanEndTime_throws()
132 builder.setEndTime(time.minusSeconds(1)); in localTimeRange_startTimeNotLaterThanEndTime_throws()
DDeleteUsingFiltersRequestTest.java46 .setEndTime(Instant.now().plusMillis(1000)) in testCreateDeleteUsingFiltersRequest()
69 .setEndTime(Instant.now().plusMillis(1000)) in testCreateDeleteUsingFiltersRequest_clearDataOriginsAndRecords()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DTestUtils.java82 .setEndTime(END_TIME) in buildExerciseSessionInternal()
102 .setEndTime(START_TIME) in buildPlannedExerciseSessionInternal()
143 .setEndTime(END_TIME) in buildSleepSessionInternal()
156 return new ExerciseLapInternal().setStarTime(START_TIME).setEndTime(END_TIME).setLength(10); in buildExerciseLap()
162 .setEndTime(END_TIME) in buildSleepStage()
169 .setEndTime(END_TIME) in buildExerciseSegment()
179 .setEndTime((long) 1e10) in buildExerciseSessionInternalNoExtraFields()
188 .setEndTime((long) 1e10) in buildSleepSessionInternalNoExtraFields()
DExerciseLapInternalTest.java57 .setEndTime(mEndTime.toEpochMilli()) in testExerciseLapInternal_writeToParcelAndBack_recordsAreEqual()
71 .setEndTime(mEndTime.toEpochMilli()); in testExerciseLapInternal_writeToParcelAndBackNoLength_recordsAreEqual()
DExerciseSegmentInternalTest.java66 .setEndTime(mEndTime.toEpochMilli()) in testExerciseSegmentInternal_writeToParcelAndBack_recordsAreEqual()
82 .setEndTime(mEndTime.toEpochMilli()) in testExerciseSegmentInternal_writeToParcelAndBackNoReps_recordsAreEqual()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DPermissionTypesFragmentTest.kt74 .setEndTime(Instant.now()) in teardown()
80 .setEndTime(Instant.now()) in teardown()
86 .setEndTime(Instant.now()) in teardown()
DCategoriesFragmentTest.kt68 .setEndTime(Instant.now()) in teardown()
74 .setEndTime(Instant.now()) in teardown()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DStepsRecordTest.java121 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in tearDown()
211 .setEndTime(NOW.plusMillis(3000)) in testReadStepsRecordUsingFilters_timeFilter()
293 .setEndTime(recordTime.plus(1, ChronoUnit.SECONDS)) in testReadStepsRecordUsingFilters_timeFilterLocal()
313 .setEndTime( in testReadStepsRecordUsingFilters_timeFilterLocal()
485 .setEndTime(NOW.plusMillis(1000)) in testDeleteStepsRecord_time_filters()
502 .setEndTime(recordTime.plus(2, ChronoUnit.SECONDS)) in testReadStepsRecordUsingFiltersLocal_withPageSize()
552 .setEndTime(recordTime.plusSeconds(2)) in testDeleteStepsRecord_time_filters_local()
688 .setEndTime(NOW.plusMillis(1000)) in testDeleteStepsRecord_time_range()
721 .setEndTime(Instant.now()) in testDeleteStepsRecord_usingTime_forAnotherApp_notDeleted()
825 .setEndTime(start.plus(1, ChronoUnit.DAYS)) in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult()
[all …]
DHeartRateRecordTest.java98 .setEndTime(Instant.now()) in tearDown()
185 .setEndTime(Instant.now().plusMillis(3000)) in testReadHeartRateRecordUsingFilters_timeFilter()
327 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteHeartRateRecord_time_filters()
362 .setEndTime(recordTime.plusSeconds(2)) in testDeleteHeartRateRecord_time_filters_local()
481 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteHeartRateRecord_time_range()
514 .setEndTime(Instant.now()) in testDeleteHeartRateRecord_usingTime_forAnotherApp_notDeleted()
570 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testBpmAggregation_timeRange_all()
614 .setEndTime(Instant.now().plusMillis(2000)) in testBpmAggregation_timeRange_not_present()
643 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testBpmAggregation_withDataOrigin_correct()
679 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testBpmAggregation_withDataOrigin_incorrect()
[all …]
DWeightRecordTest.java108 .setEndTime(Instant.now()) in tearDown()
175 .setEndTime(Instant.now().plusMillis(3000)) in testReadWeightRecordUsingFilters_timeFilter()
240 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteWeightRecord_time_filters()
263 .setEndTime(recordTime.plusSeconds(2)) in testDeleteWeightRecord_time_filters_local()
352 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteWeightRecord_time_range()
547 .setEndTime(endTimeLocal) in testAggregatePeriodForZoneOffset()
619 .setEndTime( in testAggregateDuration_differentTimeZones_correctBucketTimes()
666 .setEndTime(endTimeLocal) in testDurationLocalTimeAggregationZoneOffset()
716 .setEndTime(endTimeLocal.minusHours(15)) in testAggregateLocalFilter_minOffsetRecord()
763 .setEndTime(endTimeLocal.plusMinutes(1)) in testOffset()
[all …]
DDistanceRecordTest.java89 .setEndTime(Instant.now()) in tearDown()
103 .setEndTime(Instant.now()) in setup()
171 .setEndTime(Instant.now().plusMillis(3000)) in testReadDistanceRecordUsingFilters_timeFilter()
240 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteDistanceRecord_time_filters()
311 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteDistanceRecord_time_range()
577 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_DistanceTotal_AtOverlapStartAndEndTime()
DHydrationRecordTest.java84 .setEndTime(Instant.now()) in tearDown()
154 .setEndTime(Instant.now().plusMillis(3000)) in testReadHydrationRecordUsingFilters_timeFilter()
223 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteHydrationRecord_time_filters()
295 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteHydrationRecord_time_range()
312 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_VolumeTotal()
324 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_VolumeTotal()
DElevationGainedRecordTest.java89 .setEndTime(Instant.now()) in tearDown()
166 .setEndTime(Instant.now().plusMillis(3000)) in testReadElevationGainedRecordUsingFilters_timeFilter()
240 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteElevationGainedRecord_time_filters()
316 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteElevationGainedRecord_time_range()
362 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_ElevationTotal()
374 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_ElevationTotal()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageCyclePreferenceControllerTest.java92 .setEndTime(END_TIME_1) in createDataList()
99 .setEndTime(END_TIME_2) in createDataList()
DAppSpecificDataUsageCyclePreferenceControllerTest.java99 .setEndTime(END_TIME_1) in createDataList()
109 .setEndTime(END_TIME_2) in createDataList()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DSleepStageInternal.java45 .setEndTime(parcel.readLong()) in readFromParcel()
102 public SleepStageInternal setEndTime(long endTime) { in setEndTime() method in SleepStageInternal
DExerciseLapInternal.java47 .setEndTime(parcel.readLong()) in readFromParcel()
122 public ExerciseLapInternal setEndTime(long endTime) { in setEndTime() method in ExerciseLapInternal
DExerciseSegmentInternal.java50 .setEndTime(parcel.readLong()) in readFromParcel()
111 public ExerciseSegmentInternal setEndTime(long endTime) { in setEndTime() method in ExerciseSegmentInternal
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DTransactionManagerExerciseRoutesTest.java214 .setEndTime(Instant.ofEpochSecond(100000)) in readRecordsAndPageToken_byFilters_doesNotReturnRoutesOfOtherApps()
253 .setEndTime(Instant.ofEpochSecond(100000)) in readRecordsAndPageToken_byFilters_unknownApp_doesNotReturnRoute()
284 .setEndTime(Instant.ofEpochSecond(100000)) in readRecordsAndPageToken_byFilters_nullPackageName_doesNotReturnRoute()
315 .setEndTime(Instant.ofEpochSecond(100000)) in readRecordsAndPageToken_byFilters_withReadRoutePermission_returnsRoute()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/
DHealthConnectManagerNoPermissionsGrantedTest.java154 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteUsingFilter_noPermissions_expectError()
287 .setEndTime(NOW.plus(1000, DAYS)) in testAggregate_noPermissions_expectError()
320 .setEndTime(NOW.plusMillis(2500)) in testAggregateGroupByDuration_noPermissions_expectError()
356 .setEndTime(LocalDateTime.ofInstant(end, ZoneOffset.UTC)) in testAggregateGroupByPeriod_noPermissions_expectError()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionViewModel.kt83 fun setEndTime(endTime: Instant) { in setEndTime() method in com.android.healthconnect.controller.deletion.DeletionViewModel
118 .setEndTime(currentDeletionParameters().getEndTimeInstant()) in delete()

123456