OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:toMillis
(Results
1 - 25
of
246
) sorted by null
1
2
3
4
5
6
7
8
9
10
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
FavoriteChannelEvaluatorTest.java
31
System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(2);
33
System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(1);
34
private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.
toMillis
(1);
82
long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(2);
86
durationMs += TimeUnit.MINUTES.
toMillis
(30);
105
addWatchLog(channelOne, System.currentTimeMillis() - TimeUnit.HOURS.
toMillis
(1),
106
TimeUnit.MINUTES.
toMillis
(30));
107
addWatchLog(channelTwo, System.currentTimeMillis() - TimeUnit.MINUTES.
toMillis
(30),
108
TimeUnit.MINUTES.
toMillis
(30));
118
addWatchLog(channelOne, System.currentTimeMillis() - TimeUnit.HOURS.
toMillis
(3)
[
all
...]
RecentChannelEvaluatorTest.java
33
System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(2);
35
System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(1);
36
private static final long DEFAULT_MAX_WATCH_DURATION_MS = TimeUnit.HOURS.
toMillis
(1);
84
long latestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(2);
87
addWatchLog(channelId, latestWatchEndTimeMs, TimeUnit.HOURS.
toMillis
(1));
88
latestWatchEndTimeMs += TimeUnit.HOURS.
toMillis
(1);
113
long durationMs = TimeUnit.MINUTES.
toMillis
(10);
137
addWatchLog(newChannelId, latestWatchedEndTimeMs, TimeUnit.MINUTES.
toMillis
(10));
ChannelRecordTest.java
41
mLatestWatchEndTimeMs = System.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(1);
114
mLatestWatchEndTimeMs += TimeUnit.SECONDS.
toMillis
(mRandom.nextInt(60) + 1);
116
long durationMs = TimeUnit.SECONDS.
toMillis
(mRandom.nextInt(60) + 1);
RoutineWatchEvaluatorTest.java
121
createDummyProgram(todayAtHourMin(0, 0), TimeUnit.HOURS.
toMillis
(1)));
127
createDummyProgram(todayAtHourMin(23, 30), TimeUnit.HOURS.
toMillis
(1)));
133
createDummyProgram(tomorrowAtHourMin(0, 0), TimeUnit.HOURS.
toMillis
(1)));
139
createDummyProgram(tomorrowAtHourMin(23, 30), TimeUnit.HOURS.
toMillis
(1)));
145
createDummyProgram(todayAtHourMin(18, 0), TimeUnit.HOURS.
toMillis
(18)));
155
createDummyProgram(todayAtHourMin(21, 0), TimeUnit.HOURS.
toMillis
(3)));
158
createDummyProgram(todayAtHourMin(22, 0), TimeUnit.HOURS.
toMillis
(3)));
161
createDummyProgram(tomorrowAtHourMin(0, 0), TimeUnit.HOURS.
toMillis
(3)));
164
createDummyProgram(tomorrowAtHourMin(20, 0), TimeUnit.HOURS.
toMillis
(3)));
/packages/apps/TV/src/com/android/tv/guide/
GuideUtils.java
36
return (int) (millis * sWidthPerHour / TimeUnit.HOURS.
toMillis
(1));
52
return pixel * TimeUnit.HOURS.
toMillis
(1) / sWidthPerHour;
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
System_Delegate.java
58
return TimeUnit.NANOSECONDS.
toMillis
(mNanosTime.get());
66
return TimeUnit.NANOSECONDS.
toMillis
(mBootNanosTime.get());
/developers/build/prebuilts/gradle/RuntimePermissionsWear/Shared/src/main/java/com/example/android/wearable/runtimepermissions/common/
Constants.java
27
public static final long CONNECTION_TIME_OUT_MS = TimeUnit.SECONDS.
toMillis
(5);
/developers/samples/android/wearable/wear/RuntimePermissionsWear/Shared/src/main/java/com/example/android/wearable/runtimepermissions/common/
Constants.java
27
public static final long CONNECTION_TIME_OUT_MS = TimeUnit.SECONDS.
toMillis
(5);
/development/samples/browseable/RuntimePermissionsWear/Shared/src/com.example.android.wearable.runtimepermissions.common/
Constants.java
27
public static final long CONNECTION_TIME_OUT_MS = TimeUnit.SECONDS.
toMillis
(5);
/libcore/luni/src/main/java/android/system/
StructTimeval.java
45
public long
toMillis
() {
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/
Utils.java
27
return t.
toMillis
(false);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
RecordingCallback.java
29
public static final long TIMEOUT_MILLIS = TimeUnit.SECONDS.
toMillis
(10);
52
long timeoutMillis = TimeUnit.NANOSECONDS.
toMillis
(System.nanoTime()) + TIMEOUT_MILLIS;
62
long nowMillis = TimeUnit.NANOSECONDS.
toMillis
(System.nanoTime());
/libcore/luni/src/main/java/java/util/concurrent/
TimeUnit.java
55
public long
toMillis
(long d) { return d/(C2/C0); }
70
public long
toMillis
(long d) { return d/(C2/C1); }
85
public long
toMillis
(long d) { return d; }
90
public long convert(long d, TimeUnit u) { return u.
toMillis
(d); }
100
public long
toMillis
(long d) { return x(d, C3/C2, MAX/(C3/C2)); }
116
public long
toMillis
(long d) { return x(d, C4/C2, MAX/(C4/C2)); }
132
public long
toMillis
(long d) { return x(d, C5/C2, MAX/(C5/C2)); }
148
public long
toMillis
(long d) { return x(d, C6/C2, MAX/(C6/C2)); }
237
public long
toMillis
(long duration) {
326
long ms =
toMillis
(timeout)
[
all
...]
/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
TimeUnit.java
21
public long
toMillis
(long d) { return d/(C2/C0); }
32
public long
toMillis
(long d) { return d/(C2/C1); }
43
public long
toMillis
(long d) { return d; }
48
public long convert(long d, TimeUnit u) { return u.
toMillis
(d); }
54
public long
toMillis
(long d) { return x(d, C3/C2, MAX/(C3/C2)); }
65
public long
toMillis
(long d) { return x(d, C4/C2, MAX/(C4/C2)); }
76
public long
toMillis
(long d) { return x(d, C5/C2, MAX/(C5/C2)); }
87
public long
toMillis
(long d) { return x(d, C6/C2, MAX/(C6/C2)); }
127
public long
toMillis
(long duration) {
/packages/apps/TV/src/com/android/tv/recommendation/
RecentChannelEvaluator.java
22
private static final long WATCH_DURATION_MS_LOWER_BOUND = TimeUnit.MINUTES.
toMillis
(3);
23
private static final long WATCH_DURATION_MS_UPPER_BOUND = TimeUnit.MINUTES.
toMillis
(7);
/packages/apps/TV/tests/common/src/com/android/tv/testing/
ProgramInfo.java
62
TimeUnit.MINUTES.
toMillis
(15),
63
TimeUnit.MINUTES.
toMillis
(45),
64
TimeUnit.MINUTES.
toMillis
(90),
65
TimeUnit.MINUTES.
toMillis
(60),
66
TimeUnit.MINUTES.
toMillis
(30),
67
TimeUnit.MINUTES.
toMillis
(45),
68
TimeUnit.MINUTES.
toMillis
(60),
69
TimeUnit.MINUTES.
toMillis
(90),
70
TimeUnit.HOURS.
toMillis
(5)};
FakeClock.java
85
mCurrentTimeMillis += unit.
toMillis
(amount);
/packages/apps/TV/src/com/android/tv/dvr/
ScheduledProgramReaper.java
46
long cutoff = mClock.currentTimeMillis() - TimeUnit.DAYS.
toMillis
(DAYS);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DictionaryService.java
86
private static final long UPDATE_FREQUENCY_MILLIS = TimeUnit.DAYS.
toMillis
(4);
92
private static final int MAX_ALARM_DELAY_MILLIS = (int)TimeUnit.HOURS.
toMillis
(6);
98
private static final long VERY_LONG_TIME_MILLIS = TimeUnit.DAYS.
toMillis
(14);
108
public static final long NO_CANCEL_DOWNLOAD_PERIOD_MILLIS = TimeUnit.SECONDS.
toMillis
(30);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
CacheStrategy.java
199
freshMillis = Math.min(freshMillis, SECONDS.
toMillis
(requestCaching.maxAgeSeconds()));
204
minFreshMillis = SECONDS.
toMillis
(requestCaching.minFreshSeconds());
210
maxStaleMillis = SECONDS.
toMillis
(requestCaching.maxStaleSeconds());
248
return SECONDS.
toMillis
(responseCaching.maxAgeSeconds());
279
? Math.max(apparentReceivedAge, SECONDS.
toMillis
(ageSeconds))
/packages/apps/TV/src/com/android/tv/menu/
RecordCardView.java
47
private static final long MIN_PROGRAM_RECORD_DURATION = TimeUnit.MINUTES.
toMillis
(5);
123
durations.add(TimeUnit.MINUTES.
toMillis
(10));
125
durations.add(TimeUnit.MINUTES.
toMillis
(30));
127
durations.add(TimeUnit.HOURS.
toMillis
(1));
129
durations.add(TimeUnit.HOURS.
toMillis
(3));
/frameworks/base/services/core/java/com/android/server/pm/
BackgroundDexOptService.java
75
.setMinimumLatency(TimeUnit.MINUTES.
toMillis
(1))
76
.setOverrideDeadline(TimeUnit.MINUTES.
toMillis
(1))
84
.setPeriodic(TimeUnit.DAYS.
toMillis
(1))
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
SecurityLogMonitor.java
69
private static final long RATE_LIMIT_INTERVAL_MILLISECONDS = TimeUnit.HOURS.
toMillis
(2);
73
private static final long POLLING_INTERVAL_MILLISECONDS = TimeUnit.MINUTES.
toMillis
(1);
107
mMonitorThread.join(TimeUnit.SECONDS.
toMillis
(5));
/libcore/luni/src/test/java/libcore/java/lang/ref/
ReferenceQueueTest.java
59
long durationMillis = TimeUnit.NANOSECONDS.
toMillis
(durationNanos);
81
long durationMillis = TimeUnit.NANOSECONDS.
toMillis
(durationNanos);
91
long durationMillis = TimeUnit.NANOSECONDS.
toMillis
(durationNanos);
/packages/apps/TV/tests/unit/src/com/android/tv/data/
WatchedHistoryManagerTest.java
80
long duration = TimeUnit.MINUTES.
toMillis
(10);
98
long duration = TimeUnit.MINUTES.
toMillis
(10);
130
long duration = TimeUnit.MINUTES.
toMillis
(10);
Completed in 3832 milliseconds
1
2
3
4
5
6
7
8
9
10