Home
last modified time | relevance | path

Searched refs:minus (Results 1 – 25 of 235) sorted by relevance

12345678910

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DBasalCaloriesAggregationTest.java90 .setStartTime(now.minus(2, DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord()
91 .setEndTime(now.minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord()
107 .setStartTime(Instant.now().minus(2, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm()
108 .setEndTime(Instant.now().minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm()
114 insertRecords(List.of(getBaseLeanBodyMassRecord(now.minus(2, DAYS), 50000))); in testAggregation_BasalCaloriesBurntTotal_lbm()
119 .setStartTime(Instant.now().minus(2, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm()
120 .setEndTime(Instant.now().minus(1, DAYS)) in testAggregation_BasalCaloriesBurntTotal_lbm()
133 getBaseLeanBodyMassRecord(now.minus(1, DAYS), 40000), in testAggregation_BasalCaloriesBurntTotal_lbm_group()
134 getBaseLeanBodyMassRecord(now.minus(2, DAYS), 30000), in testAggregation_BasalCaloriesBurntTotal_lbm_group()
135 getBaseLeanBodyMassRecord(now.minus(3, DAYS), 20000))); in testAggregation_BasalCaloriesBurntTotal_lbm_group()
[all …]
DTotalCaloriesAggregationTest.java99 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromDefaultBasalCalories()
118 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromWeightAndHeight()
134 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromLbm()
149 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_derivedFromBmr()
164 activeCalories, now.minus(3, HOURS), now.minus(2, HOURS))); in totalCaloriesBurned_hasActiveCaloriesData_sumActiveAndBasalCalories()
167 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_hasActiveCaloriesData_sumActiveAndBasalCalories()
182 totalCalories, now.minus(3, HOURS), now.minus(2, HOURS))); in totalCaloriesBurned_hasTotalCaloriesData_addBasalCaloriesAtGaps()
185 new AggregateRecordsRequest.Builder<Energy>(getTimeFilter(now.minus(1, DAYS), now)) in totalCaloriesBurned_hasTotalCaloriesData_addBasalCaloriesAtGaps()
204 totalCalories, now.minus(24, HOURS), now.minus(2, HOURS)), in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps()
206 overlappingActiveCalories, now.minus(150, MINUTES), now.minus(1, HOURS)), in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps()
[all …]
DAggregationApisTest.java126 Instant time = Instant.now().minus(2, DAYS); in groupByDuration_noData_nullResponses()
157 Instant time = Instant.now().minus(2, DAYS); in aggregateWithInstantFilter_stepsCountTotal()
163 TimeInstantRangeFilter timeFilter = getTimeFilter(time.minus(1, DAYS), time.plus(2, DAYS)); in aggregateWithInstantFilter_stepsCountTotal()
175 Instant time = Instant.now().minus(1, DAYS).truncatedTo(MILLIS); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
182 getTimeFilter(time.minus(2, HOURS), time.plus(4, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
194 assertThat(responses.get(0).getStartTime()).isEqualTo(time.minus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
211 Instant time = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in groupByDurationWithLocalFilter_distanceTotal()
240 assertThat(responses.get(1).getStartTime()).isEqualTo(time.minus(10, MINUTES)); in groupByDurationWithLocalFilter_distanceTotal()
252 Instant time = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in groupByPeriod_weightAvg()
257 getWeightRecord(50.0, time.minus(30, DAYS), dataZone), in groupByPeriod_weightAvg()
[all …]
DAggregateWithFiltersTest.java105 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_noFilter_everythingIncluded()
116 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS))) in dataOriginFilter_noFilter_everythingIncluded()
128 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_validFilter_onlyDataFromFilteredApps()
139 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS))) in dataOriginFilter_validFilter_onlyDataFromFilteredApps()
152 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_invalidApp_noDataReturned()
166 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_invalidApp_noDataReturned()
200 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_appNotInPriorityList_noDataReturned()
211 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_appNotInPriorityList_noDataReturned()
245 Instant startTime = Instant.now().minus(1, DAYS); in dataOriginFilter_noDataFromFilteredApps_noDataReturned()
252 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_noDataFromFilteredApps_noDataReturned()
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/datenavigation/
DDateNavigationViewTest.kt78 dateNavigationView.setDate(NOW.minus(Duration.ofDays(1))) in setPeriodToDay_yesterday_showsYesterday()
85 dateNavigationView.setDate(NOW.minus(Duration.ofDays(2))) in setPeriodToDay_twoDaysAgo_showsDate()
92 dateNavigationView.setDate(NOW.minus(Duration.ofDays(365))) in setPeriodToDay_thisTimeLastYear_showsYear()
99 dateNavigationView.setDate(NOW.minus(Duration.ofDays(367))) in setPeriodToDay_lastYear_showsYear()
106 dateNavigationView.setDate(NOW.minus(Duration.ofDays(3))) in setPeriodToWeek_navigateToMonday_showsThisWeek()
114 dateNavigationView.setDate(NOW.minus(Duration.ofDays(4))) in setPeriodToWeek_navigateToSunday_showsLastWeek()
122 dateNavigationView.setDate(NOW.minus(Duration.ofDays(14))) in setPeriodToWeek_twoWeeksAgo_showsTwoWeeksAgo()
130 dateNavigationView.setDate(NOW.minus(Duration.ofDays(365))) in setPeriodToWeek_thisTimeLastYear_showsYear()
138 dateNavigationView.setDate(NOW.minus(Duration.ofDays(379))) in setPeriodToWeek_lastYear_showsYear()
146 dateNavigationView.setDate(NOW.minus(Duration.ofDays(21))) in setPeriodToWeek_spansAcrossMonths_showsBothMonths()
[all …]
/packages/modules/Bluetooth/system/packet/tests/base/
Diterator_test.cc230 Iterator minus = packet->end(); in TEST_P() local
231 minus = minus - static_cast<size_t>(1); in TEST_P()
233 ASSERT_EQ(test_l2cap_data[static_cast<size_t>(i) + GetLowerBound()], *minus) in TEST_P()
236 minus = minus - static_cast<size_t>(1); in TEST_P()
314 Iterator minus = packet->begin(); in TEST_P() local
316 minus = minus - static_cast<size_t>(i); in TEST_P()
317 ASSERT_EQ(test_l2cap_data[GetLowerBound()], *minus) in TEST_P()
/packages/modules/Connectivity/Tethering/tests/unit/
DAndroid.bp33 // TODO(b/147200698) change sdk_version to module-current and remove framework-minus-apex
36 "framework-minus-apex",
57 "mockito-target-extended-minus-junit4",
62 // remove framework-minus-apex, ext, and framework-res
69 "framework-minus-apex",
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DProvisionerTest.java161 Instant rootCreationTime = failureStart.minus(Duration.ofDays(10)); in setUpClearAttestationKeyTests()
168 generateCertificateChain(rootCreationTime, failureStart.minus(Duration.ofDays(1))), in setUpClearAttestationKeyTests()
187 Instant failureTimeStart = NOW.minus(Duration.ofDays(5)); in testProvisionerClearsAttestationKeysOnResponse()
188 Instant failureTimeEnd = NOW.minus(Duration.ofDays(2)); in testProvisionerClearsAttestationKeysOnResponse()
205 Instant failureTimeStart = NOW.minus(Duration.ofDays(5)); in testProvisionerClearsAttestationKeysOnlyOnce()
206 Instant failureTimeEnd = NOW.minus(Duration.ofDays(2)); in testProvisionerClearsAttestationKeysOnlyOnce()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DOrderingTests.java67 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder()
90 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder()
113 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder()
135 Instant startTime = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_sameStartTime_sortedByRowIdAscending()
167 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken()
197 Instant startTime1 = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in ordering_pageTokenProvided_retrieveDecOrderFromPageToken()
DReadByFilterTests.java84 Instant startTime = Instant.now().minus(1, DAYS); in filterByDataType_dataOfOtherTypesExcluded()
120 Instant startTime = Instant.now().minus(1, DAYS); in filterByDataOrigin_dataOfOtherOriginsExcluded()
150 Instant startTime = Instant.now().minus(1, DAYS); in filterByDataOrigin_noFilterSet_allDataReturned()
183 Instant filterStartTime = Instant.now().minus(1, DAYS).truncatedTo(DAYS); in filterByTimeRange_physicalTime_returnsDataWithinRange()
194 filterEndTime.minus(2, HOURS), in filterByTimeRange_physicalTime_returnsDataWithinRange()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionParameters.kt116 ChosenRange.DELETE_RANGE_LAST_24_HOURS -> endTime.minus(ofDays(1)) in getStartTimeInstant()
117 ChosenRange.DELETE_RANGE_LAST_7_DAYS -> endTime.minus(ofDays(7)) in getStartTimeInstant()
118 ChosenRange.DELETE_RANGE_LAST_30_DAYS -> endTime.minus(ofDays(30)) in getStartTimeInstant()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/
DDateNavigationViewTest.kt86 dateNavigationView.setDate(NOW.minus(Duration.ofDays(1))) in setDate_changesSelectedDateView()
93 dateNavigationView.setDate(NOW.minus(Duration.ofDays(1))) in setDate_withValidFutureDates_nextButtonIsEnabled()
110 val newDate = NOW.minus(Duration.ofDays(1)) in onDateChanged_listenerIsCalled()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKalmanFilter.java45 Matrix y = z.minus(mH.dot(mx)); in update()
49 mP = mP.minus(tK.dot(mH).dot(mP)); in update()
/packages/modules/AdServices/adservices/apk/tests/settings/
DAndroid.bp42 "mockito-target-extended-minus-junit4",
92 "mockito-target-extended-minus-junit4",
140 "mockito-target-extended-minus-junit4",
189 "mockito-target-extended-minus-junit4",
/packages/modules/GeoTZ/locationtzprovider/src/test/java/com/android/timezone/location/provider/
DRealLocationListeningAccountantTest.java154 assertActiveListeningBudget(balanceBeforeCall.minus(instruction.duration)); in getNextListeningInstruction_withSmallActiveBudget_noLastLocationResult()
173 assertActiveListeningBudget(balanceBeforeCall.minus(instruction.duration)); in getNextListeningInstruction_withLargeActiveBudget_noLastLocationResult()
225 MIN_ACTIVE_LISTENING_DURATION.minus(seconds(1)));
291 assertActiveListeningBudget(balanceBeforeCall.minus(instruction.duration));
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DStepsRecordTest.java292 .setStartTime(recordTime.minus(1, ChronoUnit.SECONDS)) in testReadStepsRecordUsingFilters_timeFilterLocal()
312 recordTime.minus(1, ChronoUnit.SECONDS).toInstant(ZoneOffset.MIN)) in testReadStepsRecordUsingFilters_timeFilterLocal()
498 LocalDateTime recordTime = LocalDateTime.now(ZoneOffset.MIN).minus(10, ChronoUnit.SECONDS); in testReadStepsRecordUsingFiltersLocal_withPageSize()
501 .setStartTime(recordTime.minus(2, ChronoUnit.SECONDS)) in testReadStepsRecordUsingFiltersLocal_withPageSize()
513 recordTime.minus(1, ChronoUnit.SECONDS).toInstant(ZoneOffset.MIN), in testReadStepsRecordUsingFiltersLocal_withPageSize()
812 Instant start = Instant.now().minus(1, ChronoUnit.DAYS); in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult()
840 Instant start = end.minus(5, ChronoUnit.DAYS); in testStepsCountAggregation_groupByDurationWithInstantFilter()
866 Instant start = end.minus(3, ChronoUnit.DAYS); in testStepsCountAggregation_groupByDuration()
892 Instant start = Instant.now().minus(1, ChronoUnit.DAYS); in testAggregation_insertForEveryHour_returnsAggregateForHourAndHalfHours()
943 .setStartTime(end.minus(24, HOURS)) in testAggregation_groupByDurationInstant_halfSizeGroupResultIsCorrect()
[all …]
/packages/modules/GeoTZ/locationtzprovider/src/main/java/com/android/timezone/location/provider/
DRealLocationListeningAccountant.java184 Duration budgetRequired = mMinActiveListeningDuration.minus(activeListeningBudget); in calculateAdditionalActiveListeningBudgetRequired()
203 mLocationKnownAgeThreshold.minus(lastLocationListeningResultAge); in calculateTimeBeforeLastResultIsTooOld()
208 mLocationNotKnownAgeThreshold.minus(lastLocationListeningResultAge); in calculateTimeBeforeLastResultIsTooOld()
/packages/modules/ExtServices/java/tests/
DAndroid.bp29 "mockito-target-extended-minus-junit4",
67 "mockito-target-extended-minus-junit4",
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/signals/updateprocessors/
DPutTest.java113 createSignal(KEY_1, VALUE_1, ID_1, NOW.minus(Duration.ofDays(1))); in testOverwriteExisting()
133 createSignal(KEY_1, VALUE_1, ID_1, NOW.minus(Duration.ofDays(1))); in testOverwriteMultipleExisting()
135 createSignal(KEY_1, VALUE_2, ID_2, NOW.minus(Duration.ofDays(1))); in testOverwriteMultipleExisting()
DAppendTest.java172 createSignal(KEY_1, VALUE_1, ID_1, NOW.minus(Duration.ofDays(1))); in testOverwriteExisting()
199 createSignal(KEY_1, VALUE_1, ID_1, NOW.minus(Duration.ofDays(1))); in testOverwriteMultipleExisting()
201 createSignal(KEY_1, VALUE_1, ID_2, NOW.minus(Duration.ofDays(2))); in testOverwriteMultipleExisting()
230 createSignal(KEY_1, VALUE_1, ID_1, NOW.minus(Duration.ofDays(1))); in testAddToExisting()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/deletion/
DDeletionParametersTest.kt151 deletionParameters.getEndTimeInstant().minus(Duration.ofDays(1))) in getStartTimeInstant_24HoursRangeSelected_correctStartTimeReturned()
163 deletionParameters.getEndTimeInstant().minus(Duration.ofDays(7))) in getStartTimeInstant_7DaysRangeSelected_correctStartTimeReturned()
175 deletionParameters.getEndTimeInstant().minus(Duration.ofDays(30))) in getStartTimeInstant_30DaysRangeSelected_correctStartTimeReturned()
/packages/modules/Connectivity/remoteauth/tests/unit/
DAndroid.bp48 "mockito-target-extended-minus-junit4",
49 "mockito-target-minus-junit4",
/packages/services/Iwlan/
DAndroid.bp90 "mockito-target-inline-minus-junit4",
91 "mockito-target-extended-minus-junit4",
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/datenavigation/
DDateNavigationView.kt116 selectedDate.atZone(ZoneId.systemDefault()).minus(toPeriod(period)).toInstant() in bindPreviousDayButton()
209 .minus(Period.ofDays(dayOfWeekOffset)) in getDisplayedStartDate()
220 .minus(Period.ofDays(dayOfMonthOffset)) in getDisplayedStartDate()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DTestHelperUtils.java83 Instant startTime = endTime.minus(1, ChronoUnit.HOURS); in getStepsRecord()
89 Instant startTime = endTime.minus(1, ChronoUnit.HOURS); in getHeartRateRecord()
109 Instant start = now.minus(Duration.ofHours(24)).truncatedTo(ChronoUnit.DAYS); in getDefaultTimeRangeFilter()

12345678910