Home
last modified time | relevance | path

Searched refs:plus (Results 1 – 25 of 200) sorted by relevance

12345678

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DAggregationApisTest.java129 getTimeFilter(time, time.plus(2, HOURS))) in groupByDuration_noData_nullResponses()
160 getStepsRecord(1234, time.plus(1, DAYS), time.plus(25, HOURS)), in aggregateWithInstantFilter_stepsCountTotal()
161 getStepsRecord(4321, time, time.plus(1, HOURS)))); in aggregateWithInstantFilter_stepsCountTotal()
163 TimeInstantRangeFilter timeFilter = getTimeFilter(time.minus(1, DAYS), time.plus(2, DAYS)); in aggregateWithInstantFilter_stepsCountTotal()
178 getActiveCaloriesBurnedRecord(210.0, time, time.plus(3, HOURS)), in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
180 15.0, time.plus(3, HOURS), time.plus(4, HOURS)))); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
182 getTimeFilter(time.minus(2, HOURS), time.plus(4, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
200 assertThat(responses.get(1).getEndTime()).isEqualTo(time.plus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
204 assertThat(responses.get(2).getStartTime()).isEqualTo(time.plus(2, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
205 assertThat(responses.get(2).getEndTime()).isEqualTo(time.plus(4, HOURS)); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
[all …]
DAggregateWithFiltersTest.java116 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS))) in dataOriginFilter_noFilter_everythingIncluded()
139 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS))) in dataOriginFilter_validFilter_onlyDataFromFilteredApps()
166 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_invalidApp_noDataReturned()
211 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_appNotInPriorityList_noDataReturned()
252 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in dataOriginFilter_noDataFromFilteredApps_noDataReturned()
325 Instant endTime = startTime.plus(1, HOURS); in timeRangeFilter_priorityType_outOfRangePriorityDataTrimmed()
363 Instant endTime = startTime.plus(1, HOURS); in timeRangeFilter_nonPriorityType_outOfRangeNonPriorityDataExcluded()
407 filterEndTime.plus(1, HOURS)))); in timeRangeFilter_openStartTime_aggregateDataFromEpoch()
509 getTimeFilter(startTime.minus(1, HOURS), startTime.plus(1, HOURS)); in aggregationTypeFilter_noDataForFilteredType_noDataReturned()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/readdata/
DOrderingTests.java68 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder()
69 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_ascendingSetToTrue_sortedByStartTimeInAscendingOrder()
91 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder()
92 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_ascendingSetToFalse_sortedByStartTimeInDescendingOrder()
114 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder()
115 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_ascendingNotSet_sortedByStartTimeInAscendingOrder()
168 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken()
169 Instant startTime3 = startTime2.plus(1, HOURS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken()
170 Instant startTime4 = startTime3.plus(1, HOURS); in ordering_pageTokenProvided_retrieveAscOrderFromPageToken()
198 Instant startTime2 = startTime1.plus(1, HOURS); in ordering_pageTokenProvided_retrieveDecOrderFromPageToken()
[all …]
DPaginationTests.java81 startTime.plus(40, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
82 startTime.plus(50, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
84 getDistanceRecord(1.0, startTime, startTime.plus(5, MINUTES), "id1"), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
87 startTime.plus(25, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
88 startTime.plus(30, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
92 startTime.plus(5, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
93 startTime.plus(15, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
97 startTime.plus(55, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
98 startTime.plus(60, MINUTES), in readAllData_moreThanOnePage_allPagesReturnedCorrectly()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/seed/
DSeedData.kt69 val records = (1L..50).map { count -> getStepsRecord(count, start.plus(ofMinutes(count))) } in <lambda>()
82 today.plus(ofDays(days.toLong())), in <lambda>()
102 Pair(getValidHeartRate(random), start.plus(ofMinutes(timeOffset + i)))) in <lambda>()
106 start.plus(ofMinutes(timeOffset)), in <lambda>()
107 start.plus(ofMinutes(timeOffset + 100))) in <lambda>()
120 getValidTemperatureDelta(), start.plus(ofMinutes(timeOffset + i)))) in <lambda>()
124 start.plus(ofMinutes(timeOffset)), in <lambda>()
125 start.plus(ofMinutes(timeOffset + 100))) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DSleepSessionFormatterTest.kt94 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
105 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
116 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
127 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
138 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
149 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
160 val end = NOW.plus(1, ChronoUnit.HOURS) in <lambda>()
191 return SleepSessionRecord.Builder(getMetaData(), NOW, NOW.plus(8, ChronoUnit.HOURS)) in getRecord()
/packages/modules/Bluetooth/system/packet/tests/base/
Diterator_test.cc183 Iterator plus = packet->begin(); in TEST_P() local
185 ASSERT_EQ(test_l2cap_data[i + GetLowerBound()], *plus) in TEST_P()
188 plus = plus + static_cast<size_t>(1); in TEST_P()
273 Iterator plus = packet->end(); in TEST_P() local
275 plus = plus + static_cast<size_t>(i); in TEST_P()
276 ASSERT_EQ(packet->end(), plus) in TEST_P()
/packages/modules/HealthFitness/framework/java/android/health/connect/aidl/
DAggregateDataResponseParcel.java196 getInstantFromLocalTime(startTime, zoneOffset).plus(bucketStartTimeOffset); in getAggregateDataResponseForLocalTimeGroupedByDuration()
197 Instant bucketEndTime = bucketStartTime.plus(mDuration); in getAggregateDataResponseForLocalTimeGroupedByDuration()
205 bucketStartTimeOffset = bucketStartTimeOffset.plus(mDuration); in getAggregateDataResponseForLocalTimeGroupedByDuration()
217 Instant buckedStartTime = startTime.plus(offsetDuration); in getAggregateDataResponseForInstantTimeGroupedByDuration()
218 Instant buckedEndTime = buckedStartTime.plus(mDuration); in getAggregateDataResponseForInstantTimeGroupedByDuration()
227 offsetDuration = offsetDuration.plus(mDuration); in getAggregateDataResponseForInstantTimeGroupedByDuration()
249 groupBoundary.plus(mPeriod), in getAggregateDataResponseGroupedByPeriod()
251 groupBoundary = groupBoundary.plus(mPeriod); in getAggregateDataResponseGroupedByPeriod()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DLocalDateTimeFormatterTest.kt119 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>()
126 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>()
133 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>()
140 val end = time.plus(1, ChronoUnit.HOURS) in <lambda>()
147 val end = time.plus(10, ChronoUnit.DAYS) in <lambda>()
154 val end = time.plus(10, ChronoUnit.DAYS) in <lambda>()
DDatePickerFactoryTest.kt48 val maxDate = NOW.plus(ofDays(10)) in create_respectSelectedDate()
64 val maxDate = NOW.plus(ofDays(10)) in create_respectMaxDate()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMatrixTest.java64 assertEquals(m3, m1.plus(m2)); in testAddition()
112 assertEquals(i3.plus(f), m12.plus(f)); in testInverse()
113 assertEquals(i3.plus(f), m21.plus(f)); in testInverse()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DKalmanFilter.java38 mP = mF.dot(mP).dotTranspose(mF).plus(mQ); in predict()
46 Matrix tS = mH.dot(mP).dotTranspose(mH).plus(mR); in update()
48 mx = mx.plus(tK.dot(y)); in update()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DLoadMenstruationDataUseCase.kt73 val end = startDate.plus(ofHours(23)).plus(ofMinutes(59)) in <lambda>()
108 val end = start.plus(ofHours(23)).plus(ofMinutes(59)) in <lambda>()
/packages/modules/RemoteKeyProvisioning/app/tests/unit/src/com/android/rkpdapp/unittest/
DX509UtilsTest.java146 certs[0] = signPublicKey(root, leaf.getPublic(), Instant.now().plus(Duration.ofDays(2))); in testCertChainExpirationTimeWhenRootExpiresLater()
147 certs[1] = signPublicKey(root, root.getPublic(), Instant.now().plus(Duration.ofDays(1))); in testCertChainExpirationTimeWhenRootExpiresLater()
161 certs[0] = signPublicKey(root, leaf.getPublic(), Instant.now().plus(Duration.ofDays(1))); in testCertChainExpirationTimeWhenLeafExpiresLater()
162 certs[1] = signPublicKey(root, root.getPublic(), Instant.now().plus(Duration.ofDays(2))); in testCertChainExpirationTimeWhenLeafExpiresLater()
DRegistrationBinderTest.java88 CERT_CHAIN, Instant.now().plus(5, ChronoUnit.DAYS));
187 Instant minExpiry = Instant.now().plus(Settings.getExpiringBy(mContext));
192 Instant maxExpiry = Instant.now().plus(Settings.getExpiringBy(mContext));
204 Instant minExpiry = Instant.now().plus(Settings.getExpiringBy(mContext));
205 Instant minFallbackExpiry = Instant.now().plus(RegistrationBinder.MIN_KEY_LIFETIME);
210 Instant maxExpiry = Instant.now().plus(Settings.getExpiringBy(mContext));
211 Instant maxFallbackExpiry = Instant.now().plus(RegistrationBinder.MIN_KEY_LIFETIME);
324 Instant minExpiry = Instant.now().plus(RegistrationBinder.MIN_KEY_LIFETIME);
329 Instant maxExpiry = Instant.now().plus(RegistrationBinder.MIN_KEY_LIFETIME);
DProvisionerTest.java145 Instant expirationTime = NOW.plus(Duration.ofDays(1)); in generateCertificateChain()
160 Instant expiration = NOW.plus(Duration.ofDays(1)); in setUpClearAttestationKeyTests()
174 generateCertificateChain(rootCreationTime, failureStart.plus(Duration.ofHours(1))), in setUpClearAttestationKeyTests()
180 generateCertificateChain(rootCreationTime, failureEnd.plus(Duration.ofDays(1))), in setUpClearAttestationKeyTests()
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/customaudience/
DCustomAudienceFixture.java56 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plus(
59 CommonFixture.FIXED_NOW_TRUNCATED_TO_MILLI.plus(
63 VALID_ACTIVATION_TIME.plus(CUSTOM_AUDIENCE_DEFAULT_EXPIRE_IN);
73 VALID_ACTIVATION_TIME.plus(CUSTOM_AUDIENCE_MAX_EXPIRE_IN.multipliedBy(2));
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/
DBackgroundReadTest.java118 String insertedId = insertStepsRecordViaTestApp(mContext, NOW, NOW.plus(1, MINUTES), 10); in testReadRecordsByFilters_inBackgroundWithoutPermission_canReadOwnData()
136 insertStepsRecordViaTestApp(mContext, NOW, NOW.plus(1, MINUTES), 10); in testReadRecordsByFilters_inBackgroundWithPermission_canReadBothOwnAndOtherAppsData()
156 insertStepsRecordViaTestApp(mContext, NOW, NOW.plus(1, MINUTES), 10); in testReadRecordsByIds_inBackgroundWithoutPermission_canReadOnlyOwnData()
175 insertStepsRecordViaTestApp(mContext, NOW, NOW.plus(1, MINUTES), 10); in testReadRecordsByIds_inBackgroundWithPermission_canReadBothOwnAndOtherAppsData()
195 insertStepsRecordViaTestApp(mContext, NOW, NOW.plus(1, MINUTES), 10); in testAggregate_inBackgroundWithoutPermission_expectSecurityError()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DStepsRecordTest.java121 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in tearDown()
228 time.plus(1, ChronoUnit.SECONDS), in getBaseStepsRecord()
293 .setEndTime(recordTime.plus(1, ChronoUnit.SECONDS)) in testReadStepsRecordUsingFilters_timeFilterLocal()
314 recordTime.plus(1, ChronoUnit.SECONDS).toInstant(ZoneOffset.MIN)) in testReadStepsRecordUsingFilters_timeFilterLocal()
502 .setEndTime(recordTime.plus(2, ChronoUnit.SECONDS)) in testReadStepsRecordUsingFiltersLocal_withPageSize()
507 recordTime.plus(1, ChronoUnit.SECONDS).toInstant(ZoneOffset.MIN), in testReadStepsRecordUsingFiltersLocal_withPageSize()
818 start.plus(1, HOURS), in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult()
824 .setStartTime(start.plus(10, ChronoUnit.MINUTES)) in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult()
825 .setEndTime(start.plus(1, ChronoUnit.DAYS)) in testAggregation_recordStartsBeforeAggWindow_returnsRescaledStepsCountInResult()
895 Instant st = start.plus(i, HOURS); in testAggregation_insertForEveryHour_returnsAggregateForHourAndHalfHours()
[all …]
DPlannedExerciseSessionRecordTest.java117 .setStartTime(Instant.now().plus(30, DAYS)) in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions()
118 .setEndTime(Instant.now().plus(30, DAYS).plus(1, HOURS)); in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions()
230 .setStartTime(SESSION_START_TIME.plus(2, DAYS)) in insertMultipleRecords()
231 .setEndTime(SESSION_END_TIME.plus(2, DAYS)) in insertMultipleRecords()
574 SESSION_START_TIME.plus(2, DAYS), in bidirectionalReference_multipleExerciseSessionsCompletePlannedExercise_lastWriteWins()
575 SESSION_END_TIME.plus(2, DAYS), in bidirectionalReference_multipleExerciseSessionsCompletePlannedExercise_lastWriteWins()
768 builder.setStartTime(SESSION_END_TIME.plus(Duration.ofHours(1))); in updateExerciseSession_changesTrainingPlan_changelogGeneratedForPreviousAndCurrentPlan()
769 builder.setEndTime(SESSION_END_TIME.plus(Duration.ofHours(2))); in updateExerciseSession_changesTrainingPlan_changelogGeneratedForPreviousAndCurrentPlan()
972 SESSION_START_TIME.plus(3, HOURS), in trainingPlanDeleted_multipleLinkedExerciseSessions_changelogsGeneratedForEach()
973 SESSION_END_TIME.plus(3, HOURS), in trainingPlanDeleted_multipleLinkedExerciseSessions_changelogsGeneratedForEach()
[all …]
DFloorsClimbedRecordTest.java235 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testTotalAggregation_oneRecord_returnsItsTotal()
254 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_FloorsClimbedTotal()
266 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_FloorsClimbedTotal()
504 Instant.now().plus(30, ChronoUnit.MINUTES), in testCreateFloorsClimbedRecord_invalidValue()
514 Instant.now().plus(30, ChronoUnit.MINUTES), in testCreateFloorsClimbedRecord_invalidTime()
542 Instant.now().minus(days, ChronoUnit.DAYS).plus(30, ChronoUnit.MINUTES), in getBaseFloorsClimbedRecord()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/customaudience/
DCustomAudienceDaoTest.java120 CURRENT_TIME.plus(Duration.ofDays(1)).truncatedTo(ChronoUnit.MILLIS);
122 CURRENT_TIME.plus(Duration.ofDays(3)).truncatedTo(ChronoUnit.MILLIS);
129 CURRENT_TIME.plus(Duration.ofMinutes(1)).truncatedTo(ChronoUnit.MILLIS);
132 .plus(Duration.ofDays(1))
133 .plus(Duration.ofMinutes(1))
137 .plus(Duration.ofDays(3))
138 .plus(Duration.ofMinutes(1))
141 CURRENT_TIME.plus(Duration.ofMinutes(1)).truncatedTo(ChronoUnit.MILLIS);
2603 anUpdate.getScheduledTime().plus(10, ChronoUnit.MINUTES)); in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
2610 anUpdate.getScheduledTime().plus(10, ChronoUnit.MINUTES)); in testInsertAndQueryScheduledCustomAudienceUpdate_Success()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/
DConsentedDebugConfigurationDaoTest.java48 private static final Instant EXPIRY_TIMESTAMP = CREATION_TIMESTAMP.plus(EXPIRY_DURATION);
107 CREATION_TIMESTAMP.plus(Duration.ofHours(1)), in testGetAllActiveConsentedDebugConfigurations_fetchesRecentlyCreated()
189 CREATION_TIMESTAMP.plus(Duration.ofHours(1)), in testDeleteExistingConsentedDebugConfigurationsAndPersist()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/util/wallpaperconnection/
DWallpaperConnectionUtils.kt241 val keyWithoutSizeInformation = this.packageName.plus(":").plus(this.serviceName) in <lambda>()
243 keyWithoutSizeInformation.plus(":").plus("${displaySize.x}x${displaySize.y}") in <lambda>()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/
DCustomAudienceTimestampValidator.java95 Instant maxActivationTime = currentTime.plus(mCustomAudienceMaxActivateIn); in addValidation()
115 calculatedActivationTime.plus(mCustomAudienceMaxExpireIn))) { in addValidation()

12345678