Home
last modified time | relevance | path

Searched refs:period (Results 1 – 25 of 44) sorted by relevance

12

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java112 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback() argument
113 final PeriodicRunnable periodicRunnable = new PeriodicRunnable(runnable, period, offset); in addPeriodicCallback()
141 static long getDelay(long now, Period period, long offset) { in getDelay() argument
144 switch (period) { in getDelay()
171 throw new IllegalArgumentException("unexpected period: " + period); in getDelay()
192 public PeriodicRunnable(Runnable delegate, Period period, long offset) { in PeriodicRunnable() argument
194 mPeriod = period; in PeriodicRunnable()
DPeriodicCallbackModel.kt96 private fun addPeriodicCallback(runnable: Runnable, period: Period, offset: Long) { in addPeriodicCallback()
97 val periodicRunnable = PeriodicRunnable(runnable, period, offset) in addPeriodicCallback()
175 fun getDelay(now: Long, period: Period, offset: Long): Long { in getDelay()
178 return when (period) { in getDelay()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryActiveView.java55 float period = mProvider.getPeriod(); in onDraw() local
57 drawColor(canvas, array.keyAt(i), array.keyAt(i + 1), array.valueAt(i), period); in onDraw()
61 private void drawColor(Canvas canvas, int start, int end, int color, float period) { in drawColor() argument
66 canvas.drawRect(start / period * getWidth(), 0, end / period * getWidth(), getHeight(), in drawColor()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryActiveView.java55 float period = mProvider.getPeriod(); in onDraw() local
57 drawColor(canvas, array.keyAt(i), array.keyAt(i + 1), array.valueAt(i), period); in onDraw()
61 private void drawColor(Canvas canvas, int start, int end, int color, float period) { in drawColor() argument
66 canvas.drawRect(start / period * getWidth(), 0, end / period * getWidth(), getHeight(), in drawColor()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestTimer.java94 public void schedule(TimerTask task, Date firstTime, long period) { in schedule() argument
105 public void schedule(TimerTask task, long delay, long period) { in schedule() argument
110 public void scheduleAtFixedRate(TimerTask task, Date firstTime, long period) { in scheduleAtFixedRate() argument
115 public void scheduleAtFixedRate(TimerTask task, long delay, long period) { in scheduleAtFixedRate() argument
DTestScheduledExecutorService.java132 public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, in scheduleAtFixedRate() argument
/packages/apps/TV/src/com/android/tv/util/
DAsyncDbTask.java402 Executor executor, Context context, long channelId, @Nullable Range<Long> period) { in LoadProgramsForChannelTask() argument
406 period == null in LoadProgramsForChannelTask()
409 channelId, period.getLower(), period.getUpper()), in LoadProgramsForChannelTask()
414 mPeriod = period; in LoadProgramsForChannelTask()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java939 Range<Long> period = Range.create(fetchStartTimeMs, fetchEndTimeMs); in onRecordTimeRangeChanged() local
940 mProgramLoadQueue.add(period); in onRecordTimeRangeChanged()
990 private boolean addPlaceholderPrograms(Range<Long> period) { in addPlaceholderPrograms() argument
991 return addPlaceholderPrograms(period.getLower(), period.getUpper()); in addPlaceholderPrograms()
1228 LoadProgramsForCurrentChannelTask(Range<Long> period) { in LoadProgramsForCurrentChannelTask() argument
1233 period); in LoadProgramsForCurrentChannelTask() local
/packages/apps/TV/tests/common/src/com/android/tv/testing/dvr/
DDvrDataManagerInMemoryImpl.java112 Range<Long> period, @RecordingState int state) { in getScheduledRecordings() argument
116 if (r.isOverLapping(period) && r.getState() == state) { in getScheduledRecordings()
/packages/apps/Settings/src/com/android/settings/datausage/
DWifiDataUsageSummaryPreferenceController.java61 info.period, /* isSingleWifi */ true); in updateState()
DDataUsagePreference.java64 usageInfo.period)); in setTemplate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DWifiDataUsageSummaryPreferenceController.java62 info.period, /* isSingleWifi */ true); in updateState()
DDataUsagePreference.java64 usageInfo.period)); in setTemplate()
DDataUsageSummaryPreferenceController.java209 info.period, /* isSingleWifi */ false); in updateState()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataUsagePreferenceController.java80 mDataUsageInfo.period)); in updateState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java348 verify(mSummaryPreference).setWifiMode(true /* isWifiMode */, info.period /* usagePeriod */, in testSummaryUpdate_noSim_shouldSetWifiMode()
431 info.period = PERIOD; in createTestDataUsageInfo()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DDataUsagePreferenceController.java81 mDataUsageInfo.period)); in updateState()
/packages/apps/ManagedProvisioning/proto/
Ddevicepolicy.proto34 // A parameter specifying a time period in milliseconds.
/packages/apps/TV/src/com/android/tv/dvr/data/
DScheduledRecording.java1002 public boolean isOverLapping(Range<Long> period) { in isOverLapping() argument
1003 return mStartTimeMs < period.getUpper() && mEndTimeMs > period.getLower(); in isOverLapping()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManager.java95 List<ScheduledRecording> getScheduledRecordings(Range<Long> period, @RecordingState int state); in getScheduledRecordings() argument
DDvrScheduleManager.java914 for (Range<Long> period : periods) { in getConflictingSchedulesInfo()
915 if (schedule.isOverLapping(period)) { in getConflictingSchedulesInfo()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.kt532 val period = (if (stopwatch.isPaused) { in <lambda>() constant
538 val delay: Long = max(0, startTime + period - endTime).toLong() in <lambda>()
DStopwatchFragment.java559 final long period = stopwatch.isPaused() in run()
563 final long delay = Math.max(0, startTime + period - endTime); in run()
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/
DContactsExecutors.java129 long period, TimeUnit unit) { in scheduleAtFixedRate() argument
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/grpc/
Dvoicemail_transcription.proto32 // Transcription was successful, but the expiration period has passed, which

12