/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | BasalMetabolicRateRecordTest.java | 86 .setEndTime(Instant.now()) in tearDown() 167 .setStartTime(Instant.now().minus(1, ChronoUnit.DAYS)) in testReadBasalMetabolicRateRecordUsingFilters_timeFilter() 168 .setEndTime(Instant.now().plusMillis(3000)) in testReadBasalMetabolicRateRecordUsingFilters_timeFilter() 239 .setStartTime(Instant.now().minus(1, ChronoUnit.DAYS)) in testDeleteBasalMetabolicRateRecord_time_filters() 240 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteBasalMetabolicRateRecord_time_filters() 312 .setStartTime(Instant.now().minus(1, ChronoUnit.DAYS)) in testDeleteBasalMetabolicRateRecord_time_range() 313 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteBasalMetabolicRateRecord_time_range() 341 Instant.now().minus(2, ChronoUnit.DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord() 342 .setEndTime(Instant.now().minus(1, ChronoUnit.DAYS)) in testAggregation_BasalCaloriesBurntTotal_noRecord() 356 List.of(LeanBodyMassRecordTest.getBaseLeanBodyMassRecord(Instant.now(), 50000)); in testAggregation_BasalCaloriesBurntTotal_lbm() [all …]
|
D | TotalCaloriesBurnedRecordTest.java | 80 .setEndTime(Instant.now()) in tearDown() 162 .setStartTime(Instant.now()) in testReadTotalCaloriesBurnedRecordUsingFilters_timeFilter() 163 .setEndTime(Instant.now().plusMillis(3000)) in testReadTotalCaloriesBurnedRecordUsingFilters_timeFilter() 263 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 269 Instant.now(), in testZoneOffsets() 270 Instant.now().plusMillis(1000), in testZoneOffsets() 474 Instant.now(), in testCreateTotalCaloriesBurnedRecord_invalidValue() 475 Instant.now().plusMillis(1000), in testCreateTotalCaloriesBurnedRecord_invalidValue() 483 Instant now = Instant.now(); in testAggregation_totalCaloriesBurnt() local 486 getBaseTotalCaloriesBurnedRecord(now.minus(1, ChronoUnit.DAYS)), in testAggregation_totalCaloriesBurnt() [all …]
|
D | HeartRateRecordTest.java | 88 .setEndTime(Instant.now()) in tearDown() 134 new HeartRateRecord.HeartRateSample(301, Instant.now().plusMillis(100)); in testCreateHeartRateRecord_invalidValue() 168 .setStartTime(Instant.now()) in testReadHeartRateRecordUsingFilters_timeFilter() 169 .setEndTime(Instant.now().plusMillis(3000)) in testReadHeartRateRecordUsingFilters_timeFilter() 224 TestUtils.getHeartRateRecord(72, Instant.now().minus(1, ChronoUnit.DAYS)), in testReadHeartRateRecordUsingFilters_withPageSize() 225 TestUtils.getHeartRateRecord(72, Instant.now().minus(2, ChronoUnit.DAYS))); in testReadHeartRateRecordUsingFilters_withPageSize() 239 TestUtils.getHeartRateRecord(72, Instant.now().minusMillis(1000)), in testReadHeartRateRecordUsingFilters_withPageToken() 240 TestUtils.getHeartRateRecord(72, Instant.now().minusMillis(2000)), in testReadHeartRateRecordUsingFilters_withPageToken() 241 TestUtils.getHeartRateRecord(72, Instant.now().minusMillis(3000)), in testReadHeartRateRecordUsingFilters_withPageToken() 242 TestUtils.getHeartRateRecord(72, Instant.now().minusMillis(4000))); in testReadHeartRateRecordUsingFilters_withPageToken() [all …]
|
D | ExerciseSessionRecordTest.java | 85 .setEndTime(Instant.now()) in tearDown() 301 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testExerciseSessionBuilds_zoneOffsets_offsetsAreDefault() 446 buildSession(Instant.now(), Instant.now().plusMillis(10000)), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() 447 buildSession(Instant.now(), Instant.now().plusMillis(10000)))); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() 455 buildSession(Instant.now(), Instant.now().plusMillis(10000)), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() 456 buildSession(Instant.now(), Instant.now().plusMillis(10000))); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() 479 buildSession(Instant.now(), Instant.now().plusMillis(10000)), in testUpdateRecords_invalidInputRecords_noChangeInDataBase() 480 buildSession(Instant.now(), Instant.now().plusMillis(10000)))); in testUpdateRecords_invalidInputRecords_noChangeInDataBase() 487 buildSession(Instant.now(), Instant.now().plusMillis(10000)), in testUpdateRecords_invalidInputRecords_noChangeInDataBase() 488 buildSession(Instant.now(), Instant.now().plusMillis(10000))); in testUpdateRecords_invalidInputRecords_noChangeInDataBase() [all …]
|
D | ElevationGainedRecordTest.java | 81 .setEndTime(Instant.now()) in tearDown() 156 .setStartTime(Instant.now()) in testReadElevationGainedRecordUsingFilters_timeFilter() 157 .setEndTime(Instant.now().plusMillis(3000)) in testReadElevationGainedRecordUsingFilters_timeFilter() 228 .setStartTime(Instant.now()) in testDeleteElevationGainedRecord_time_filters() 229 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteElevationGainedRecord_time_filters() 300 .setStartTime(Instant.now()) in testDeleteElevationGainedRecord_time_range() 301 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteElevationGainedRecord_time_range() 346 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_ElevationTotal() 358 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_ElevationTotal() 381 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() [all …]
|
D | DistanceRecordTest.java | 82 .setEndTime(Instant.now()) in tearDown() 93 .setEndTime(Instant.now()) in setup() 159 .setStartTime(Instant.now()) in testReadDistanceRecordUsingFilters_timeFilter() 160 .setEndTime(Instant.now().plusMillis(3000)) in testReadDistanceRecordUsingFilters_timeFilter() 226 .setStartTime(Instant.now()) in testDeleteDistanceRecord_time_filters() 227 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteDistanceRecord_time_filters() 295 .setStartTime(Instant.now()) in testDeleteDistanceRecord_time_range() 296 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteDistanceRecord_time_range() 350 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_DistanceTotal() 361 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_DistanceTotal() [all …]
|
D | FloorsClimbedRecordTest.java | 76 .setEndTime(Instant.now()) in tearDown() 98 Instant startTime = Instant.now(); in testCreateFloorsClimbedRecord_sameStartEndTime() 155 .setStartTime(Instant.now()) in testReadFloorsClimbedRecordUsingFilters_timeFilter() 156 .setEndTime(Instant.now().plusMillis(3000)) in testReadFloorsClimbedRecordUsingFilters_timeFilter() 223 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testTotalAggregation_oneRecord_returnsItsTotal() 241 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_FloorsClimbedTotal() 253 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_FloorsClimbedTotal() 276 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 282 Instant.now(), in testZoneOffsets() 283 Instant.now().plusMillis(1000), in testZoneOffsets() [all …]
|
D | WheelchairPushesRecordTest.java | 76 .setEndTime(Instant.now()) in tearDown() 152 .setStartTime(Instant.now()) in testReadWheelchairPushesRecordUsingFilters_timeFilter() 153 .setEndTime(Instant.now().plusMillis(3000)) in testReadWheelchairPushesRecordUsingFilters_timeFilter() 226 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_countTotal() 238 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_countTotal() 259 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 265 Instant.now(), in testZoneOffsets() 266 Instant.now().plusMillis(1000), in testZoneOffsets() 468 Instant.now(), in testCreateWheelchairPushesRecord_invalidValue() 469 Instant.now().plusMillis(1000), in testCreateWheelchairPushesRecord_invalidValue() [all …]
|
D | PowerRecordTest.java | 83 .setEndTime(Instant.now()) in tearDown() 143 .setStartTime(Instant.now()) in testReadPowerRecordUsingFilters_timeFilter() 144 .setEndTime(Instant.now().plusMillis(3000)) in testReadPowerRecordUsingFilters_timeFilter() 212 .setStartTime(Instant.now()) in testDeletePowerRecord_time_filters() 213 .setEndTime(Instant.now().plusMillis(1000)) in testDeletePowerRecord_time_filters() 281 .setStartTime(Instant.now()) in testDeletePowerRecord_time_range() 282 .setEndTime(Instant.now().plusMillis(1000)) in testDeletePowerRecord_time_range() 299 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_power() 328 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 334 Instant.now(), in testZoneOffsets() [all …]
|
D | ActiveCaloriesBurnedRecordTest.java | 81 .setEndTime(Instant.now()) in tearDown() 90 Instant.now(), in testCreateActiveCaloriesBurnedRecord_invalidValue() 91 Instant.now().plus(1, ChronoUnit.HOURS), in testCreateActiveCaloriesBurnedRecord_invalidValue() 176 .setStartTime(Instant.now()) in testReadActiveCaloriesBurnedRecordUsingFilters_timeFilter() 177 .setEndTime(Instant.now().plusMillis(3000)) in testReadActiveCaloriesBurnedRecordUsingFilters_timeFilter() 252 .setStartTime(Instant.now()) in testDeleteActiveCaloriesBurnedRecord_time_filters() 253 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteActiveCaloriesBurnedRecord_time_filters() 337 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_ActiveCaloriesBurntTotal() 350 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_ActiveCaloriesBurntTotal() 373 .setStartTime(Instant.now()) in testDeleteActiveCaloriesBurnedRecord_time_range() [all …]
|
D | HydrationRecordTest.java | 79 .setEndTime(Instant.now()) in tearDown() 147 .setStartTime(Instant.now()) in testReadHydrationRecordUsingFilters_timeFilter() 148 .setEndTime(Instant.now().plusMillis(3000)) in testReadHydrationRecordUsingFilters_timeFilter() 214 .setStartTime(Instant.now()) in testDeleteHydrationRecord_time_filters() 215 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteHydrationRecord_time_filters() 284 .setStartTime(Instant.now()) in testDeleteHydrationRecord_time_range() 285 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteHydrationRecord_time_range() 301 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_VolumeTotal() 313 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in testAggregation_VolumeTotal() 336 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() [all …]
|
D | StepsCadenceRecordTest.java | 75 .setEndTime(Instant.now()) in tearDown() 140 .setStartTime(Instant.now()) in testReadStepsCadenceRecordUsingFilters_timeFilter() 141 .setEndTime(Instant.now().plusMillis(3000)) in testReadStepsCadenceRecordUsingFilters_timeFilter() 215 .setStartTime(Instant.now()) in testDeleteStepsCadenceRecord_time_filters() 216 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteStepsCadenceRecord_time_filters() 287 .setStartTime(Instant.now()) in testDeleteStepsCadenceRecord_time_range() 288 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteStepsCadenceRecord_time_range() 298 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 304 Instant.now(), in testZoneOffsets() 305 Instant.now().plusMillis(1000), in testZoneOffsets() [all …]
|
D | SpeedRecordTest.java | 76 .setEndTime(Instant.now()) in tearDown() 136 .setStartTime(Instant.now()) in testReadSpeedRecordUsingFilters_timeFilter() 137 .setEndTime(Instant.now().plusMillis(3000)) in testReadSpeedRecordUsingFilters_timeFilter() 206 .setStartTime(Instant.now()) in testDeleteSpeedRecord_time_filters() 207 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteSpeedRecord_time_filters() 275 .setStartTime(Instant.now()) in testDeleteSpeedRecord_time_range() 276 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteSpeedRecord_time_range() 286 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 292 Instant.now(), in testZoneOffsets() 293 Instant.now().plusMillis(1000), in testZoneOffsets() [all …]
|
D | CyclingPedalingCadenceRecordTest.java | 75 .setEndTime(Instant.now()) in tearDown() 160 .setStartTime(Instant.now()) in testReadCyclingPedalingCadenceRecordUsingFilters_timeFilter() 161 .setEndTime(Instant.now().plusMillis(3000)) in testReadCyclingPedalingCadenceRecordUsingFilters_timeFilter() 249 .setStartTime(Instant.now()) in testDeleteCyclingPedalingCadenceRecord_time_filters() 250 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteCyclingPedalingCadenceRecord_time_filters() 327 .setStartTime(Instant.now()) in testDeleteCyclingPedalingCadenceRecord_time_range() 328 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteCyclingPedalingCadenceRecord_time_range() 338 ZoneOffset.systemDefault().getRules().getOffset(Instant.now()); in testZoneOffsets() 344 Instant.now(), in testZoneOffsets() 345 Instant.now().plusMillis(1000), in testZoneOffsets() [all …]
|
D | StepsRecordTest.java | 91 .setEndTime(Instant.now().plus(1, ChronoUnit.DAYS)) in tearDown() 180 .setStartTime(Instant.now()) in testReadStepsRecordUsingFilters_timeFilter() 181 .setEndTime(Instant.now().plusMillis(3000)) in testReadStepsRecordUsingFilters_timeFilter() 260 LocalDateTime recordTime = LocalDateTime.now(ZoneOffset.MIN); in testReadStepsRecordUsingFilters_timeFilterLocal() 473 .setStartTime(Instant.now()) in testDeleteStepsRecord_time_filters() 474 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteStepsRecord_time_filters() 487 LocalDateTime recordTime = LocalDateTime.now(ZoneOffset.MIN).minus(10, ChronoUnit.SECONDS); in testReadStepsRecordUsingFiltersLocal_withPageSize() 537 LocalDateTime recordTime = LocalDateTime.now(ZoneOffset.MIN); in testDeleteStepsRecord_time_filters_local() 646 .setStartTime(Instant.now()) in testDeleteStepsRecord_time_range() 647 .setEndTime(Instant.now().plusMillis(1000)) in testDeleteStepsRecord_time_range() [all …]
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/ |
D | NetdEventListenerServiceTest.java | 92 final long now = System.currentTimeMillis(); in testWakeupEventLogging() local 112 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 113 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 114 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 115 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 116 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 117 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 118 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 119 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 120 wakeupEvent("rmnet0", uids[8], v6, udp, EmptyArray.BYTE, srcIp6, dstIp6, sport, dport, now, in testWakeupEventLogging() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | LinkProbeManager.java | 155 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection() local 156 mLastLinkProbeTimestampMs = now; in resetOnNewConnection() 157 mLastTxSuccessIncreaseTimestampMs = now; in resetOnNewConnection() 184 long now = mClock.getElapsedSinceBootMillis(); in updateConnectionStats() local 188 mLastTxSuccessIncreaseTimestampMs = now; in updateConnectionStats() 193 long timeSinceLastLinkProbeMs = now - mLastLinkProbeTimestampMs; in updateConnectionStats() 199 long timeSinceLastTxSuccessIncreaseMs = now - mLastTxSuccessIncreaseTimestampMs; in updateConnectionStats() 205 long timeSinceLastScreenOnMs = now - mLastScreenOnTimestampMs; in updateConnectionStats() 312 long now = mClock.getElapsedSinceBootMillis(); in resetOnNewConnection() local 313 mLastLinkProbeTimestampMs = now; in resetOnNewConnection() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 169 final long now = System.currentTimeMillis(); in testSummaryUpdate_onePlan_basic() local 170 final DataUsageController.DataUsageInfo info = createTestDataUsageInfo(now); in testSummaryUpdate_onePlan_basic() 175 setupTestDataUsage(LIMIT1, USAGE1, now - UPDATE_BACKOFF_MS); in testSummaryUpdate_onePlan_basic() 188 now - UPDATE_BACKOFF_MS, in testSummaryUpdate_onePlan_basic() 197 final long now = System.currentTimeMillis(); in testSummaryUpdate_noPlan_basic() local 198 final DataUsageController.DataUsageInfo info = createTestDataUsageInfo(now); in testSummaryUpdate_noPlan_basic() 203 setupTestDataUsage(LIMIT1, USAGE1, now - UPDATE_BACKOFF_MS); in testSummaryUpdate_noPlan_basic() 225 final long now = System.currentTimeMillis(); in testSummaryUpdate_noCarrier_basic() local 226 final DataUsageController.DataUsageInfo info = createTestDataUsageInfo(now); in testSummaryUpdate_noCarrier_basic() 252 final long now = System.currentTimeMillis(); in testSummaryUpdate_noPlanData_basic() local [all …]
|
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModelTest.java | 93 final long now = c.getTimeInMillis(); in getMidnightDelay() local 95 assertEquals(1, PeriodicCallbackModel.getDelay(now - 3001, MIDNIGHT, -3000)); in getMidnightDelay() 96 assertEquals(86400000, PeriodicCallbackModel.getDelay(now - 3000, MIDNIGHT, -3000)); in getMidnightDelay() 97 assertEquals(86399999, PeriodicCallbackModel.getDelay(now - 2999, MIDNIGHT, -3000)); in getMidnightDelay() 99 assertEquals(1, PeriodicCallbackModel.getDelay(now - 1, MIDNIGHT, 0)); in getMidnightDelay() 100 assertEquals(86400000, PeriodicCallbackModel.getDelay(now, MIDNIGHT, 0)); in getMidnightDelay() 101 assertEquals(86399999, PeriodicCallbackModel.getDelay(now + 1, MIDNIGHT, 0)); in getMidnightDelay() 103 assertEquals(3001, PeriodicCallbackModel.getDelay(now - 1, MIDNIGHT, 3000)); in getMidnightDelay() 104 assertEquals(3000, PeriodicCallbackModel.getDelay(now, MIDNIGHT, 3000)); in getMidnightDelay() 105 assertEquals(1, PeriodicCallbackModel.getDelay(now + 2999, MIDNIGHT, 3000)); in getMidnightDelay() [all …]
|
/packages/apps/Car/Notification/tests/unit/src/com/android/car/notification/ |
D | CarHeadsUpNotificationQueueTest.java | 310 Instant now = Instant.now(); in triggerCallback_expireNotifications_whenParked() local 311 mCarHeadsUpNotificationQueue.setClock(Clock.fixed(now, ZoneId.systemDefault())); in triggerCallback_expireNotifications_whenParked() 313 "key1", "msg"), now.minusMillis(3000).toEpochMilli()); in triggerCallback_expireNotifications_whenParked() 315 "key2", "msg"), now.minusMillis(500).toEpochMilli()); in triggerCallback_expireNotifications_whenParked() 317 "key3", "msg"), now.toEpochMilli()); in triggerCallback_expireNotifications_whenParked() 345 Instant now = Instant.now(); in triggerCallback_doesNot_expireNotifications_whenParked() local 346 mCarHeadsUpNotificationQueue.setClock(Clock.fixed(now, ZoneId.systemDefault())); in triggerCallback_doesNot_expireNotifications_whenParked() 348 "key1", "msg"), now.minusMillis(3000).toEpochMilli()); in triggerCallback_doesNot_expireNotifications_whenParked() 350 "key2", "msg"), now.minusMillis(500).toEpochMilli()); in triggerCallback_doesNot_expireNotifications_whenParked() 352 "key3", "msg"), now.toEpochMilli()); in triggerCallback_doesNot_expireNotifications_whenParked() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/adselection/ |
D | EncryptionKeyDaoTest.java | 158 ENCRYPTION_KEY_TYPE_AUCTION, Instant.now())) in test_getHighestExpiryActiveKeyOfType_returnsEmptyMapWhenKeyAbsent() 162 ENCRYPTION_KEY_TYPE_JOIN, Instant.now())) in test_getHighestExpiryActiveKeyOfType_returnsEmptyMapWhenKeyAbsent() 166 ENCRYPTION_KEY_TYPE_QUERY, Instant.now())) in test_getHighestExpiryActiveKeyOfType_returnsEmptyMapWhenKeyAbsent() 180 Instant currentInstant = Instant.now().minusSeconds(3600L); in test_getHighestExpiryActiveKeyOfType_returnsFreshestKey() 205 ENCRYPTION_KEY_TYPE_AUCTION, Instant.now(), 2)) in test_getHighestExpiryNActiveKeyOfType_returnsEmptyMapWhenKeyAbsent() 209 ENCRYPTION_KEY_TYPE_JOIN, Instant.now(), 2)) in test_getHighestExpiryNActiveKeyOfType_returnsEmptyMapWhenKeyAbsent() 213 ENCRYPTION_KEY_TYPE_QUERY, Instant.now(), 2)) in test_getHighestExpiryNActiveKeyOfType_returnsEmptyMapWhenKeyAbsent() 227 Instant currentInstant = Instant.now().minusSeconds(3600L); in test_getHighestExpiryNActiveKeyOfType_returnsNFreshestKey() 267 ENCRYPTION_KEY_TYPE_AUCTION, Instant.now())) in test_getExpiredKeysForType_noExpiredKeys_returnsEmpty() 269 assertThat(mEncryptionKeyDao.getExpiredKeysForType(ENCRYPTION_KEY_TYPE_JOIN, Instant.now())) in test_getExpiredKeysForType_noExpiredKeys_returnsEmpty() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 44 long now; field in CalendarAppWidgetServiceTest 88 now = time.normalize(false); in setUp() 107 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event() 114 eventInfo.when = Utils.formatDateRange(getContext(), now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_1Event() 141 eventInfo.when = Utils.formatDateRange(context, now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_AllDayEventLater() 146 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 151 time.set(now); in testGetAppWidgetModel_AllDayEventLater()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogPerfService.cpp | 241 mBoottimeCollection.lastPollUptimeNs = mHandlerLooper->now(); in start() 331 mHandlerLooper->sendMessageAtTime(mHandlerLooper->now() + mPostSystemEventDurationNs.count(), in onBootFinished() 398 mHandlerLooper->now() + mPostSystemEventDurationNs.count(); in onUserStateChange() 417 mUserSwitchCollection.lastPollUptimeNs = mHandlerLooper->now(); in startUserSwitchCollection() 422 mHandlerLooper->sendMessageAtTime(mHandlerLooper->now() + mUserSwitchTimeoutNs.count(), thiz, in startUserSwitchCollection() 446 nsecs_t now = mHandlerLooper->now(); in onSuspendExit() local 447 mWakeUpCollection.lastPollUptimeNs = now; in onSuspendExit() 448 mHandlerLooper->sendMessageAtTime(now + mWakeUpDurationNs.count(), thiz, in onSuspendExit() 624 nsecs_t now = mHandlerLooper->now(); in startCustomCollection() local 628 .lastPollUptimeNs = now, in startCustomCollection() [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settingslib/enterprise/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 62 long now = System.currentTimeMillis(); in testGetLastBugReportRequestTime_ok() local 63 mockGetLastBugreportTime(now); in testGetLastBugReportRequestTime_ok() 68 .isEqualTo(now); in testGetLastBugReportRequestTime_ok() 81 long now = System.currentTimeMillis(); in testGetLastNetworkLogRetrievalTime_ok() local 82 mockGetLastNetworkLogRetrievalTime(now); in testGetLastNetworkLogRetrievalTime_ok() 87 .isEqualTo(now); in testGetLastNetworkLogRetrievalTime_ok() 100 long now = System.currentTimeMillis(); in testGetLastSecurityLogRetrievalTime_ok() local 101 mockGetLastSecurityLogRetrievalTime(now); in testGetLastSecurityLogRetrievalTime_ok() 106 .isEqualTo(now); in testGetLastSecurityLogRetrievalTime_ok()
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 557 private void setSelectedPage(int now) { in setSelectedPage() argument 558 if (now == currentPage || pageCount == 0) { in setSelectedPage() 563 currentPage = now; in setSelectedPage() 573 final int steps = Math.abs(now - was); in setSelectedPage() 574 moveAnimation = createMoveSelectedAnimator(dotCenterX[now], was, now, steps); in setSelectedPage() 581 joiningAnimations[i] = createJoiningAnimator(now > was ? was + i : was - 1 - i, in setSelectedPage() 592 private ValueAnimator createMoveSelectedAnimator(final float moveTo, int was, int now, in createMoveSelectedAnimator() argument 598 retreatAnimation = new PendingRetreatAnimator(was, now, steps, in createMoveSelectedAnimator() 599 now > was in createMoveSelectedAnimator() 759 public PendingRetreatAnimator(int was, int now, int steps, StartPredicate predicate) { in PendingRetreatAnimator() argument [all …]
|