Home
last modified time | relevance | path

Searched refs:newTime (Results 1 – 9 of 9) sorted by relevance

/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpLeaseRepositoryTest.java424 final long newTime = TEST_TIME + 100; in testRequestLease_InitReboot() local
425 when(mClock.elapsedRealtime()).thenReturn(newTime); in testRequestLease_InitReboot()
430 assertEquals(newTime + TEST_LEASE_TIME_MS, lease.getExpTime()); in testRequestLease_InitReboot()
465 final long newTime = TEST_TIME + 100; in testRequestLease_Renewing() local
466 when(mClock.elapsedRealtime()).thenReturn(newTime); in testRequestLease_Renewing()
471 assertEquals(newTime + TEST_LEASE_TIME_MS, lease.getExpTime()); in testRequestLease_Renewing()
479 final long newTime = TEST_TIME + 100; in testRequestLease_RenewingUnknownAddr() local
480 when(mClock.elapsedRealtime()).thenReturn(newTime); in testRequestLease_RenewingUnknownAddr()
484 assertEquals(newTime + TEST_LEASE_TIME_MS, lease.getExpTime()); in testRequestLease_RenewingUnknownAddr()
/packages/modules/StatsD/lib/libstatssocket/tests/
Dlogging_rate_limiter_test.cpp31 static void setTimeNs(int64_t newTime) { in setTimeNs() argument
32 mTime = newTime; in setTimeNs()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DEnergySaverFragment.java172 private void showConfirmChangeSettingDialog(boolean isAttentiveTimer, int newTime) { in showConfirmChangeSettingDialog() argument
179 confirmAttentiveSleepTime(newTime); in showConfirmChangeSettingDialog()
181 confirmNewSleepTime(newTime); in showConfirmChangeSettingDialog()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/connectedapps/wear/
DWearConnectedAppsViewModelTest.kt155 val newTime = NOW.minusSeconds(1) in <lambda>() constant
156 val oldTime = newTime.minusSeconds(60) in <lambda>()
162 newTime.toEpochMilli(), in <lambda>()
205 lastAccessTime = newTime, in <lambda>()
/packages/apps/Calendar/src/com/android/calendar/month/
DMonthByWeekFragment.kt437 val newTime: Long = mSelectedDay.normalize(true) in setMonthDisplayed() constant
438 if (newTime != controller?.time && mUserScrolled) { in setMonthDisplayed()
441 controller?.time = (newTime + offset) in setMonthDisplayed()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarDatabaseHelper.java2738 Time newTime = new Time(); in upgradeToVersion62() local
2758 newTime.clear(tz); in upgradeToVersion62()
2759 newTime.set(oldTime.getDay(), oldTime.getMonth(), oldTime.getYear()); in upgradeToVersion62()
2760 newTime.normalize(); in upgradeToVersion62()
2761 dtstart = newTime.toMillis(); in upgradeToVersion62()
2766 newTime.clear(tz); in upgradeToVersion62()
2767 newTime.set(oldTime.getDay(), oldTime.getMonth(), oldTime.getYear()); in upgradeToVersion62()
2768 newTime.normalize(); in upgradeToVersion62()
2769 dtend = newTime.toMillis(); in upgradeToVersion62()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/metrics/
DTetheringMetrics.java334 final long newTime = mDependencies.timeNow(); in handleMaybeUpdateUpstreamType() local
337 mUpstreamEventList.add(new RecordUpstreamEvent(mCurrentUpStreamStartTime, newTime, in handleMaybeUpdateUpstreamType()
341 mCurrentUpStreamStartTime = newTime; in handleMaybeUpdateUpstreamType()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.kt883 val newTime: CharSequence = in <lambda>() constant
887 oldTime, newTime) in <lambda>()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsProvider2Test.java9344 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp() local
9345 assertTrue(newTime > baseTime); in testContactUpdate_updatesContactUpdatedTimestamp()
9375 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp() local
9376 assertTrue(newTime > baseTime); in testRawContactUpdate_updatesContactUpdatedTimestamp()
9426 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testDataInsert_updatesContactLastUpdatedTimestamp() local
9427 assertTrue(newTime > baseTime); in testDataInsert_updatesContactLastUpdatedTimestamp()
9445 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testDataDelete_updatesContactLastUpdatedTimestamp() local
9446 assertTrue(newTime > baseTime); in testDataDelete_updatesContactLastUpdatedTimestamp()
9466 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testDataUpdate_updatesContactLastUpdatedTimestamp() local
9467 assertTrue(newTime > baseTime); in testDataUpdate_updatesContactLastUpdatedTimestamp()