Home
last modified time | relevance | path

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

/aosp12/build/blueprint/microfactory/
H A Dmicrofactory_test.go222 newTime := time.Now().Local()
223 os.Chtimes(filepath.Join(dir, "test.fact"), newTime, newTime)
224 os.Chtimes(filepath.Join(dir, "main/main.go"), newTime, newTime)
225 os.Chtimes(filepath.Join(dir, "a/a.go"), newTime, newTime)
226 os.Chtimes(filepath.Join(dir, "a/b.go"), newTime, newTime)
227 os.Chtimes(filepath.Join(dir, "b/a.go"), newTime, newTime)
/aosp12/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
H A DDhcpLeaseRepositoryTest.java412 final long newTime = TEST_TIME + 100; in testRequestLease_InitReboot() local
413 when(mClock.elapsedRealtime()).thenReturn(newTime); in testRequestLease_InitReboot()
418 assertEquals(newTime + TEST_LEASE_TIME_MS, lease.getExpTime()); in testRequestLease_InitReboot()
453 final long newTime = TEST_TIME + 100; in testRequestLease_Renewing() local
454 when(mClock.elapsedRealtime()).thenReturn(newTime); in testRequestLease_Renewing()
459 assertEquals(newTime + TEST_LEASE_TIME_MS, lease.getExpTime()); in testRequestLease_Renewing()
467 final long newTime = TEST_TIME + 100; in testRequestLease_RenewingUnknownAddr() local
468 when(mClock.elapsedRealtime()).thenReturn(newTime); in testRequestLease_RenewingUnknownAddr()
472 assertEquals(newTime + TEST_LEASE_TIME_MS, lease.getExpTime()); in testRequestLease_RenewingUnknownAddr()
/aosp12/frameworks/base/services/core/java/com/android/server/timedetector/
H A DTimeDetectorStrategyImpl.java705 @Origin int origin, @NonNull TimestampedValue<Long> newTime, @NonNull String cause) { in setSystemClockUnderWakeLock() argument
732 long newSystemClockMillis = TimeDetectorStrategy.getTimeAt(newTime, elapsedRealtimeMillis); in setSystemClockUnderWakeLock()
743 + " newTime=" + newTime in setSystemClockUnderWakeLock()
752 String logMsg = "Set system clock using time=" + newTime in setSystemClockUnderWakeLock()
765 mLastAutoSystemClockTimeSet = newTime; in setSystemClockUnderWakeLock()
/aosp12/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelCpuUidActiveTimeReaderTest.java269 long[][] newTime = new long[original.length][original[0].length]; in increaseTime() local
272 newTime[i][j] = original[i][j] + mRand.nextInt(10000) * 1000 + 1000; in increaseTime()
275 return newTime; in increaseTime()
H A DKernelCpuUidUserSysTimeReaderTest.java259 long[][] newTime = new long[original.length][original[0].length]; in increaseTime() local
262 newTime[i][j] = original[i][j] + mRand.nextInt(1000) * 1000 + 1000; in increaseTime()
265 return newTime; in increaseTime()
H A DKernelCpuUidClusterTimeReaderTest.java277 long[][] newTime = new long[original.length][original[0].length]; in increaseTime() local
280 newTime[i][j] = original[i][j] + mRand.nextInt(10000) * 1000 + 1000; in increaseTime()
283 return newTime; in increaseTime()
H A DKernelCpuUidFreqTimeReaderTest.java363 long[][] newTime = new long[original.length][original[0].length]; in increaseTime() local
366 newTime[i][j] = original[i][j] + mRand.nextInt(10000) * 10 + 10; in increaseTime()
369 return newTime; in increaseTime()
/aosp12/packages/apps/Calendar/src/com/android/calendar/month/
H A DMonthByWeekFragment.java457 long newTime = mSelectedDay.normalize(true); in setMonthDisplayed() local
458 if (newTime != controller.getTime() && mUserScrolled) { in setMonthDisplayed()
460 controller.setTime(newTime + offset); in setMonthDisplayed()
/aosp12/packages/providers/CalendarProvider/src/com/android/providers/calendar/
H A 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()
/aosp12/frameworks/av/media/mtp/
H A DMtpServer.cpp1274 struct timespec newTime[2]; in doSendObject() local
1275 newTime[0].tv_nsec = UTIME_NOW; in doSendObject()
1276 newTime[1].tv_sec = mSendObjectModifiedTime; in doSendObject()
1277 newTime[1].tv_nsec = 0; in doSendObject()
1278 if (futimens(mfr.fd, newTime) < 0) { in doSendObject()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerService.java869 LocalTime newTime = LocalTime.ofNanoOfDay(time * 1000);
870 if (newTime == null) return;
871 mCustomAutoNightModeStartMilliseconds = newTime;
897 LocalTime newTime = LocalTime.ofNanoOfDay(time * 1000);
898 if (newTime == null) return;
899 mCustomAutoNightModeEndMilliseconds = newTime;
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmStateManager.kt883 val newTime: CharSequence =
887 oldTime, newTime)
/aosp12/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsDatabase.java696 final long newTime = files.keyAt(i) + timeDiffMillis; in onTimeChanged() local
697 if (newTime < 0) { in onTimeChanged()
707 String newName = Long.toString(newTime); in onTimeChanged()
H A DUserUsageStatsService.java240 private void onTimeChanged(long oldTime, long newTime) { in onTimeChanged() argument
242 mDatabase.onTimeChanged(newTime - oldTime); in onTimeChanged()
243 loadActiveStats(newTime); in onTimeChanged()
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
H A DContactsProvider2Test.java8515 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testContactUpdate_updatesContactUpdatedTimestamp() local
8516 assertTrue(newTime > baseTime); in testContactUpdate_updatesContactUpdatedTimestamp()
8544 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testRawContactUpdate_updatesContactUpdatedTimestamp() local
8545 assertTrue(newTime > baseTime); in testRawContactUpdate_updatesContactUpdatedTimestamp()
8592 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testDataInsert_updatesContactLastUpdatedTimestamp() local
8593 assertTrue(newTime > baseTime); in testDataInsert_updatesContactLastUpdatedTimestamp()
8610 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testDataDelete_updatesContactLastUpdatedTimestamp() local
8611 assertTrue(newTime > baseTime); in testDataDelete_updatesContactLastUpdatedTimestamp()
8630 long newTime = ContactUtil.queryContactLastUpdatedTimestamp(mResolver, ids.mContactId); in testDataUpdate_updatesContactLastUpdatedTimestamp() local
8631 assertTrue(newTime > baseTime); in testDataUpdate_updatesContactLastUpdatedTimestamp()
/aosp12/packages/services/Car/tests/BugReportApp/libs/
H A Dgoogle-http-client-1.30.1.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
/aosp12/packages/apps/Car/DebuggingRestrictionController/libs/
H A Dgoogle-http-client-1.36.0.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...