/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/ |
D | FanSpeedBar.java | 169 int delay = 0; in setMax() local 173 mFanSpeedButtons.get(i).playTurnOnAnimation(BAR_SEGMENT_ANIMATION_MS, delay); in setMax() 174 delay += BAR_SEGMENT_ANIMATION_DELAY_MS; in setMax() 209 int delay = 0; in setOff() local 212 mFanSpeedButtons.get(i).playTurnOffAnimation(BAR_SEGMENT_ANIMATION_MS, delay); in setOff() 213 delay += BAR_SEGMENT_ANIMATION_DELAY_MS; in setOff() 246 int delay = 0; 252 mFanSpeedButtons.get(i).playTurnOffAnimation(BAR_SEGMENT_ANIMATION_MS, delay); 253 delay += BAR_SEGMENT_ANIMATION_DELAY_MS; 260 mFanSpeedButtons.get(i).playTurnOnAnimation(BAR_SEGMENT_ANIMATION_MS, delay); [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | ToggleAutoclickPreferenceFragment.java | 83 static CharSequence getAutoclickPreferenceSummary(Resources resources, int delay) { in getAutoclickPreferenceSummary() argument 84 int summaryIndex = getAutoclickPreferenceSummaryIndex(delay); in getAutoclickPreferenceSummary() 86 mAutoclickPreferenceSummaries[summaryIndex], delay, delay); in getAutoclickPreferenceSummary() 92 private static int getAutoclickPreferenceSummaryIndex(int delay) { in getAutoclickPreferenceSummaryIndex() argument 93 if (delay <= MIN_AUTOCLICK_DELAY) { in getAutoclickPreferenceSummaryIndex() 96 if (delay >= MAX_AUTOCLICK_DELAY) { in getAutoclickPreferenceSummaryIndex() 101 return (delay - MIN_AUTOCLICK_DELAY) / rangeSize; in getAutoclickPreferenceSummaryIndex() 129 int delay = Settings.Secure.getInt( in onCreate() local 137 mDelay.setProgress(delayToSeekBarProgress(delay)); in onCreate() 187 private int delayToSeekBarProgress(int delay) { in delayToSeekBarProgress() argument [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/accessibility/ |
D | ToggleAutoclickPreferenceFragment.java | 83 static CharSequence getAutoclickPreferenceSummary(Resources resources, int delay) { in getAutoclickPreferenceSummary() argument 84 int summaryIndex = getAutoclickPreferenceSummaryIndex(delay); in getAutoclickPreferenceSummary() 86 mAutoclickPreferenceSummaries[summaryIndex], delay, delay); in getAutoclickPreferenceSummary() 92 private static int getAutoclickPreferenceSummaryIndex(int delay) { in getAutoclickPreferenceSummaryIndex() argument 93 if (delay <= MIN_AUTOCLICK_DELAY) { in getAutoclickPreferenceSummaryIndex() 96 if (delay >= MAX_AUTOCLICK_DELAY) { in getAutoclickPreferenceSummaryIndex() 101 return (delay - MIN_AUTOCLICK_DELAY) / rangeSize; in getAutoclickPreferenceSummaryIndex() 129 int delay = Settings.Secure.getInt( in onCreate() local 137 mDelay.setProgress(delayToSeekBarProgress(delay)); in onCreate() 187 private int delayToSeekBarProgress(int delay) { in delayToSeekBarProgress() argument [all …]
|
/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/ |
D | TrackRecordTest.kt | 179 var delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0)) } in <lambda>() variable 180 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>() 181 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>() 182 assertTrue(delay >= SHORT_TIMEOUT) in <lambda>() 197 var delay = measureTimeMillis { in <lambda>() variable 201 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>() 203 delay = measureTimeMillis { assertEquals(31, record.poll(TEST_TIMEOUT, 0)) } in <lambda>() 204 assertTrue(delay < TEST_TIMEOUT, "Delay $delay > $TEST_TIMEOUT") in <lambda>() 206 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 1)) } in <lambda>() 207 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>() [all …]
|
/packages/apps/Contacts/src/com/android/contacts/util/concurrent/ |
D | ContactsExecutors.java | 111 public ScheduledFuture<?> schedule(final Runnable command, long delay, TimeUnit unit) { in schedule() argument 113 .fromRunnable(mHandler, delay, unit, command); in schedule() 114 mHandler.postDelayed(future, unit.toMillis(delay)); in schedule() 120 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument 121 final HandlerFuture<V> future = new HandlerFuture<>(mHandler, delay, unit, callable); in schedule() 122 mHandler.postDelayed(future, unit.toMillis(delay)); in schedule() 136 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument 180 private HandlerFuture(Handler handler, long delay, TimeUnit timeUnit, Callable<T> task) { in HandlerFuture() argument 182 mDelayMillis = timeUnit.toMillis(delay); in HandlerFuture() 231 public static HandlerFuture<Void> fromRunnable(Handler handler, long delay, TimeUnit unit, in fromRunnable() argument [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | TimerHandler.java | 87 final int delay) { in startKeyRepeatTimerOf() argument 89 if (key == null || delay == 0) { in startKeyRepeatTimerOf() 93 obtainMessage(MSG_REPEAT_KEY, key.getCode(), repeatCount, tracker), delay); in startKeyRepeatTimerOf() local 110 public void startLongPressTimerOf(@Nonnull final PointerTracker tracker, final int delay) { in startLongPressTimerOf() argument 119 sendMessageDelayed(obtainMessage(messageId, tracker), delay); in startLongPressTimerOf() local 220 public void postDismissKeyPreview(@Nonnull final Key key, final long delay) { in postDismissKeyPreview() argument 221 sendMessageDelayed(obtainMessage(MSG_DISMISS_KEY_PREVIEW, key), delay); in postDismissKeyPreview() local 224 public void postDismissGestureFloatingPreviewText(final long delay) { in postDismissGestureFloatingPreviewText() argument 225 sendMessageDelayed(obtainMessage(MSG_DISMISS_GESTURE_FLOATING_PREVIEW_TEXT), delay); in postDismissGestureFloatingPreviewText() local
|
D | TimerProxy.java | 43 public void startKeyRepeatTimerOf(@Nonnull PointerTracker tracker, int repeatCount, int delay); in startKeyRepeatTimerOf() argument 52 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay); in startLongPressTimerOf() argument 111 int delay) {} in startKeyRepeatTimerOf() argument 113 public void startLongPressTimerOf(@Nonnull PointerTracker tracker, int delay) {} in startLongPressTimerOf() argument
|
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
D | TestScheduledExecutorService.java | 120 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument 121 TestFuture future = new TestFuture(command, delay, unit); in schedule() 127 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument 139 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument 185 final long delay; field in TestScheduledExecutorService.TestFuture 188 public TestFuture(Runnable runnable, long delay, TimeUnit unit) { in TestFuture() argument 190 this.delay = delay; in TestFuture()
|
D | TestTimer.java | 99 public void schedule(TimerTask task, long delay) { in schedule() argument 100 long executeTime = mNow + delay; in schedule() 105 public void schedule(TimerTask task, long delay, long period) { in schedule() argument 115 public void scheduleAtFixedRate(TimerTask task, long delay, long period) { in scheduleAtFixedRate() argument
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 144 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime; in startSound() local 145 if (delay > 1000) { in startSound() 146 LogUtil.w(mTag, "Notification sound delayed by " + delay + "msecs"); in startSound() 157 final long delay = SystemClock.elapsedRealtime() - cmd.requestTime; in stopSound() local 158 if (delay > 1000) { in stopSound() 159 LogUtil.w(mTag, "Notification stop delayed by " + delay + "msecs"); in stopSound()
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | SystemStateInterface.java | 52 void scheduleActionForBootCompleted(Runnable action, Duration delay); in scheduleActionForBootCompleted() argument 158 public void scheduleActionForBootCompleted(Runnable action, Duration delay) { in scheduleActionForBootCompleted() argument 159 if (MIN_BOOT_COMPLETE_ACTION_DELAY.compareTo(delay) < 0) { in scheduleActionForBootCompleted() 161 delay = MIN_BOOT_COMPLETE_ACTION_DELAY; in scheduleActionForBootCompleted() 169 mActionsList.add(Pair.create(action, delay)); in scheduleActionForBootCompleted()
|
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/ |
D | RelevanceUtils.java | 253 final long delay = expiry - target; in computeRelevanceForTargetDate() local 254 if (delay >= CAPPED_RELEVANCE_LIFETIME_MS) return CAPPED_RELEVANCE; in computeRelevanceForTargetDate() 255 if (delay <= 0) return 0; in computeRelevanceForTargetDate() 256 return (int) (IRRELEVANCE_FLOOR / powF((float) delay / HALF_LIFE_MS) - IRRELEVANCE_FLOOR); in computeRelevanceForTargetDate()
|
/packages/apps/DeskClock/src/com/android/deskclock/settings/ |
D | SettingsActivity.kt | 145 val delay = newValue as String in onPreferenceChange() constant 146 updateAutoSnoozeSummary(pref as ListPreference, delay) in onPreferenceChange() 225 val delay: String = it.getValue() in refresh() constant 226 updateAutoSnoozeSummary(it, delay) in refresh() 285 private fun updateAutoSnoozeSummary(listPref: ListPreference, delay: String) { in updateAutoSnoozeSummary() 286 val i = delay.toInt() in updateAutoSnoozeSummary()
|
D | SettingsActivity.java | 182 final String delay = (String) newValue; in onPreferenceChange() local 183 updateAutoSnoozeSummary((ListPreference) pref, delay); in onPreferenceChange() local 264 String delay = autoSilencePref.getValue(); in refresh() local 265 updateAutoSnoozeSummary(autoSilencePref, delay); in refresh() 318 private void updateAutoSnoozeSummary(ListPreference listPref, String delay) { in updateAutoSnoozeSummary() argument 319 int i = Integer.parseInt(delay); in updateAutoSnoozeSummary()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherStateManager.java | 195 public void goToState(LauncherState state, long delay, Runnable onCompleteRunnable) { in goToState() argument 196 goToState(state, true, delay, onCompleteRunnable); in goToState() 202 public void goToState(LauncherState state, long delay) { in goToState() argument 203 goToState(state, true, delay, null); in goToState() 226 private void goToState(LauncherState state, boolean animated, long delay, in goToState() argument 270 if (delay > 0) { in goToState() 278 }, delay); in goToState()
|
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/animation/ |
D | FadeAndShortSlide.java | 240 Long delay = (Long) endValues.values.get(PROPNAME_DELAY); in onAppear() local 241 if (delay != null) { in onAppear() 242 set.setStartDelay(delay); in onAppear() 283 Long delay = (Long) startValues.values.get(PROPNAME_DELAY); in onDisappear() local 284 if (delay != null) { in onDisappear() 285 set.setStartDelay(delay); in onDisappear()
|
/packages/apps/Launcher3/src/com/android/launcher3/folder/ |
D | FolderAnimationManager.java | 349 int delay = mIsOpening ? mDelay : mDelay * 2; in addPreviewItemAnimators() local 351 translationX.setStartDelay(delay); in addPreviewItemAnimators() 352 translationY.setStartDelay(delay); in addPreviewItemAnimators() 353 scaleAnimator.setStartDelay(delay); in addPreviewItemAnimators() 355 translationX.setDuration(translationX.getDuration() - delay); in addPreviewItemAnimators() 356 translationY.setDuration(translationY.getDuration() - delay); in addPreviewItemAnimators() 357 scaleAnimator.setDuration(scaleAnimator.getDuration() - delay); in addPreviewItemAnimators()
|
/packages/modules/DnsResolver/ |
D | res_send.cpp | 151 int* delay); 154 int* gotsomewhere, time_t* at, int* rcode, int* delay); 537 int delay = 0; in res_nsend() local 550 &query_time, rcode, &delay); in res_nsend() 562 &useTcp, &gotsomewhere, &query_time, rcode, &delay); in res_nsend() 595 res_stats_set_sample(&sample, query_time, *rcode, delay); in res_nsend() 660 int* delay) { in send_vc() argument 662 *delay = 0; in send_vc() 861 *delay = res_stats_calculate_rtt(&done, &start_time); in send_vc() 1002 int* gotsomewhere, time_t* at, int* rcode, int* delay) { in send_dg() argument [all …]
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | ContentFillItemAnimator.java | 198 int delay = 0; in runPendingAnimations() local 204 animateRemoveImpl(vh, delay); in runPendingAnimations() 207 animateChangeImpl(vh, delay); in runPendingAnimations() 212 delay += ITEM_BETWEEN_DELAY; in runPendingAnimations()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | AllAppsFragment.java | 227 int delay = (int) (mRunAt - SystemClock.uptimeMillis()); in updateAppList() local 228 delay = delay < 0 ? 0 : delay; in updateAppList() 231 mHandler.postDelayed(mUpdateRunnable, delay); in updateAppList()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawAnswerHint.java | 216 long delay, in createUniformScaleAnimator() argument 225 set.play(scaleX).with(scaleY).after(delay); in createUniformScaleAnimator() 230 View target, float begin, float end, long duration, long delay, Interpolator interpolator) { in createAlphaAnimator() argument 234 alpha.setStartDelay(delay); in createAlphaAnimator()
|
D | DotAnswerHint.java | 262 long delay, in createUniformScaleAnimator() argument 273 set.play(scaleX).with(scaleY).after(delay); in createUniformScaleAnimator() 278 View target, float begin, float end, long duration, long delay, Interpolator interpolator) { in createAlphaAnimator() argument 282 alpha.setStartDelay(delay); in createAlphaAnimator()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | ActionAdapter.java | 410 int delay, Interpolator interpolator, final boolean pressed) { in prepareAndAnimateView() argument 415 fadeCheckmarks(v, action, duration, delay, interpolator); in prepareAndAnimateView() 421 v.animate().alpha(destAlpha).setDuration(duration).setStartDelay(delay); in prepareAndAnimateView() 448 private void fadeCheckmarks(final View v, final Action action, int duration, int delay, in fadeCheckmarks() argument 464 .setDuration(duration).setStartDelay(delay); in fadeCheckmarks() 487 .setStartDelay(delay); in fadeCheckmarks()
|
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/ |
D | MainActivity.java | 108 final int delay = 1000 * getScanDelayFromPreferences(2); in handleConnection() local 109 mTimer.scheduleAtFixedRate(mCollectionTask, delay, delay); in handleConnection()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | RecurringRunner.java | 99 long delay = Math.max(next - now, 0); in postAt() local 111 delay); in postAt() 115 if (DEBUG) Log.i(TAG, "Actual delay of " + mName + " is " + (delay / 1000.0) + " seconds."); in postAt()
|