/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/app/ |
TwilightManager.java | 149 final long now = System.currentTimeMillis(); local 153 calculator.calculateTwilight(now - DateUtils.DAY_IN_MILLIS, 158 calculator.calculateTwilight(now, location.getLatitude(), location.getLongitude()); 164 calculator.calculateTwilight(now + DateUtils.DAY_IN_MILLIS, 172 nextUpdate = now + 12 * DateUtils.HOUR_IN_MILLIS; 174 if (now > todaySunset) { 176 } else if (now > todaySunrise) {
|
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/ |
Schedulers.java | 85 long now = System.currentTimeMillis(); local 93 workSpecDao.markWorkSpecScheduled(workSpec.id, now);
|
/hardware/google/av/media/codecs/base/ |
SimpleC2Component.cpp | 335 nsecs_t now = systemTime(); local 336 if (now >= deadline) { 339 status_t err = queue.waitForConditionRelative(queue->mCondition, deadline - now); 418 ALOGD("work form old generation: was %" PRIu64 " now %" PRIu64,
|
/hardware/interfaces/usb/1.0/vts/functional/ |
VtsHalUsbV1_0TargetTest.cpp | 136 auto now = std::chrono::system_clock::now(); local 139 usb_cv.wait_until(lock, now + std::chrono::seconds(TIMEOUT_PERIOD));
|
/hardware/qcom/gps/msm8084/utils/ |
loc_log.cpp | 172 struct timeval now; /* sec and usec */ local 176 gettimeofday(&now, NULL); 177 localtime_r(&now.tv_sec, &now_tm); 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8909/utils/ |
loc_log.cpp | 174 struct timeval now; /* sec and usec */ local 178 gettimeofday(&now, NULL); 179 localtime_r(&now.tv_sec, &now_tm); 182 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8909w_3100/utils/ |
loc_log.cpp | 168 struct timeval now; /* sec and usec */ local 172 gettimeofday(&now, NULL); 173 localtime_r(&now.tv_sec, &now_tm); 176 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8960/utils/ |
loc_log.cpp | 172 struct timeval now; /* sec and usec */ local 176 gettimeofday(&now, NULL); 177 localtime_r(&now.tv_sec, &now_tm); 180 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8994/utils/ |
loc_log.cpp | 173 struct timeval now; /* sec and usec */ local 177 gettimeofday(&now, NULL); 178 localtime_r(&now.tv_sec, &now_tm); 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8996/utils/ |
loc_log.cpp | 174 struct timeval now; /* sec and usec */ local 178 gettimeofday(&now, NULL); 179 localtime_r(&now.tv_sec, &now_tm); 182 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/msm8998/utils/ |
loc_log.cpp | 170 struct timeval now; /* sec and usec */ local 174 gettimeofday(&now, NULL); 175 localtime_r(&now.tv_sec, &now_tm); 178 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/hardware/qcom/gps/utils/ |
loc_log.cpp | 173 struct timeval now; /* sec and usec */ local 177 gettimeofday(&now, NULL); 178 localtime_r(&now.tv_sec, &now_tm); 181 snprintf(time_string, buf_size, "%s.%03d", hms_string, (int) (now.tv_usec / 1000));
|
/libcore/luni/src/main/java/libcore/icu/ |
DateUtilsBridge.java | 183 Calendar now = (Calendar) c.clone(); local 184 now.setTimeInMillis(System.currentTimeMillis()); 185 return c.get(Calendar.YEAR) == now.get(Calendar.YEAR);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
CodeSignerTest.java | 39 private Date now = new Date(); field in class:CodeSignerTest 41 private Timestamp ts = new Timestamp(now, cpath);
|
TimestampTest.java | 39 private Date now = new Date(); field in class:TimestampTest 53 new Timestamp(now, null); 59 Timestamp timestamp = new Timestamp(now, cpath); 60 assertEquals("not expected value", now, timestamp.getTimestamp()); 68 Timestamp one = new Timestamp(now, cpath); 69 Timestamp two = new Timestamp(now, cpath); 83 assertSame(new Timestamp(now, cpath).getSignerCertPath(), cpath); 87 Timestamp t = new Timestamp(now, cpath); 88 assertEquals(now, t.getTimestamp()); 89 assertNotSame(now, t.getTimestamp()) [all...] |
/libcore/ojluni/src/main/java/sun/security/x509/ |
CertificateValidity.java | 246 Date now = new Date(); local 247 valid(now); 252 * @param now the Date against which to compare the validity 261 public void valid(Date now) 268 if (notBefore.after(now)) { 272 if (notAfter.before(now)) {
|
PrivateKeyUsageExtension.java | 195 Date now = new Date(); local 196 valid(now); 208 public void valid(Date now) 210 Objects.requireNonNull(now); 216 if (notBefore != null && notBefore.after(now)) { 220 if (notAfter != null && notAfter.before(now)) {
|
/libcore/ojluni/src/test/java/nio/file/attribute/ |
FileTimeTest.java | 49 long now = System.currentTimeMillis(); local 50 long tomorrowInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) + 1; 51 long yesterdayInDays = TimeUnit.DAYS.convert(now, MILLISECONDS) - 1; 53 Instant nowInstant = Instant.ofEpochMilli(now); 56 eq(now, MILLISECONDS, now, MILLISECONDS); 57 eq(now, MILLISECONDS, now*1000L, MICROSECONDS); 58 neq(now, MILLISECONDS, 0, MILLISECONDS); 59 neq(now, MILLISECONDS, 0, MICROSECONDS) [all...] |
/libcore/ojluni/src/test/java/time/tck/java/time/ |
TCKInstant.java | 187 // now() 190 public void now() { method in class:TCKInstant 191 Instant expected = Instant.now(Clock.systemUTC()); 192 Instant test = Instant.now(); 198 // now(Clock) 202 Instant.now(null); 210 Instant test = Instant.now(clock); 220 Instant test = Instant.now(clock); 440 {Instant.ofEpochSecond(10, -200), Instant.now(), Instant.ofEpochSecond(10, -200), null}, [all...] |
TCKZonedDateTime.java | 227 // now() 230 public void now() { method in class:TCKZonedDateTime 231 ZonedDateTime expected = ZonedDateTime.now(Clock.systemDefaultZone()); 232 ZonedDateTime test = ZonedDateTime.now(); 236 expected = ZonedDateTime.now(Clock.systemDefaultZone()); 237 test = ZonedDateTime.now(); 244 // now(ZoneId) 248 ZonedDateTime.now((ZoneId) null); 254 ZonedDateTime expected = ZonedDateTime.now(Clock.system(zone)); 255 ZonedDateTime test = ZonedDateTime.now(zone) [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
City.java | 159 private final long now = System.currentTimeMillis(); field in class:City.UtcOffsetIndexComparator 162 final int utcOffset1 = c1.getTimeZone().getOffset(now); 163 final int utcOffset2 = c2.getTimeZone().getOffset(now);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
GestureRecognizer.java | 68 long now = SystemClock.uptimeMillis(); local 70 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0);
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
SmsReleaseStorage.java | 149 final long now = System.currentTimeMillis(); local 150 final long cutOffTimestampInMillis = now - durationInMillis;
|
/packages/apps/Settings/src/com/android/settings/ |
DateTimeSettings.java | 161 final Calendar now = Calendar.getInstance(); local 163 now.getTimeZone(), now.getTime()));
|
/packages/apps/Settings/src/com/android/settings/datetime/ |
DatePreferenceController.java | 66 final Calendar now = Calendar.getInstance(); local 67 preference.setSummary(DateFormat.getLongDateFormat(mContext).format(now.getTime()));
|