Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DPeriodicCallbackModel.java109 private void addPeriodicCallback(Runnable runnable, Period period, long offset) { in addPeriodicCallback() argument
110 final PeriodicRunnable periodicRunnable = new PeriodicRunnable(runnable, period, offset); in addPeriodicCallback()
138 static long getDelay(long now, Period period, long offset) { in getDelay() argument
141 switch (period) { in getDelay()
168 throw new IllegalArgumentException("unexpected period: " + period); in getDelay()
189 public PeriodicRunnable(Runnable delegate, Period period, long offset) { in PeriodicRunnable() argument
191 mPeriod = period; in PeriodicRunnable()
/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/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/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/UnifiedEmail/src/org/apache/commons/io/filefilter/
DAbstractFileFilter.java63 int period = name.lastIndexOf('.'); in toString() local
64 return (period > 0 ? name.substring(period + 1) : name); in toString()
/packages/apps/TV/src/com/android/tv/util/
DAsyncDbTask.java388 Executor executor, Context context, long channelId, @Nullable Range<Long> period) { in LoadProgramsForChannelTask() argument
392 period == null in LoadProgramsForChannelTask()
395 channelId, period.getLower(), period.getUpper()), in LoadProgramsForChannelTask()
400 mPeriod = period; in LoadProgramsForChannelTask()
/packages/apps/TV/src/com/android/tv/
DTimeShiftManager.java936 Range<Long> period = Range.create(fetchStartTimeMs, fetchEndTimeMs); in onRecordTimeRangeChanged() local
937 mProgramLoadQueue.add(period); in onRecordTimeRangeChanged()
987 private boolean addDummyPrograms(Range<Long> period) { in addDummyPrograms() argument
988 return addDummyPrograms(period.getLower(), period.getUpper()); in addDummyPrograms()
1225 LoadProgramsForCurrentChannelTask(Range<Long> period) { in LoadProgramsForCurrentChannelTask() argument
1230 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/wifi/tether/
DTetherService.java312 int period = getResourceForDefaultDataSubId().getInteger( in scheduleAlarm() local
314 long periodMs = period * MS_PER_HOUR; in scheduleAlarm()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/tether/
DTetherService.java298 int period = getResourceForDefaultDataSubId().getInteger( in scheduleAlarm() local
300 long periodMs = period * MS_PER_HOUR; in scheduleAlarm()
/packages/apps/TV/src/com/android/tv/dvr/data/
DScheduledRecording.java874 public boolean isOverLapping(Range<Long> period) { in isOverLapping() argument
875 return mStartTimeMs < period.getUpper() && mEndTimeMs > period.getLower(); in isOverLapping()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DTetherServiceTest.java193 long period = TEST_CHECK_PERIOD * MS_PER_HOUR; in testScheduleRechecks() local
195 eq(period), mPiCaptor.capture()); in testScheduleRechecks()
/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()
/packages/services/Telephony/src/com/android/phone/
DDataUsagePreference.java58 Formatter.formatFileSize(activity, usageInfo.usageLevel), usageInfo.period)); in initialize()
/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/apps/ManagedProvisioning/proto/
Ddevicepolicy.proto34 // A parameter specifying a time period in milliseconds.
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/
DDataUsagePreferenceController.java81 mDataUsageInfo.period)); in updateState()
/packages/apps/TV/src/com/android/tv/dvr/
DDvrDataManager.java95 List<ScheduledRecording> getScheduledRecordings(Range<Long> period, @RecordingState int state); in getScheduledRecordings() argument
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
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

12