Home
last modified time | relevance | path

Searched refs:delay (Results 1 – 25 of 237) sorted by relevance

12345678910

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DRetryManagerTest.java156 long delay = rm.getDelayForNextApn(false); in testRetryManagerEmpty() local
157 assertEquals(RetryManager.NO_RETRY, delay); in testRetryManagerEmpty()
161 delay = rm.getDelayForNextApn(false); in testRetryManagerEmpty()
162 assertEquals(RetryManager.NO_RETRY, delay); in testRetryManagerEmpty()
184 long delay = rm.getDelayForNextApn(false); in testRetryManagerOneApnNoRetry() local
185 assertEquals(RetryManager.NO_RETRY, delay); in testRetryManagerOneApnNoRetry()
206 long delay = rm.getDelayForNextApn(false); in testRetryManagerOneApnTwoRetries() local
207 assertEquals(2000, delay); in testRetryManagerOneApnTwoRetries()
211 delay = rm.getDelayForNextApn(false); in testRetryManagerOneApnTwoRetries()
212 assertEquals(3000, delay); in testRetryManagerOneApnTwoRetries()
[all …]
/frameworks/base/core/java/android/os/
DCountDownTimer.java149 long delay;
153 delay = millisLeft - lastTickDuration;
157 if (delay < 0) delay = 0;
159 delay = mCountdownInterval - lastTickDuration;
163 while (delay < 0) delay += mCountdownInterval;
166 sendMessageDelayed(obtainMessage(MSG), delay);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DExponentialBackoffTest.java74 long delay = mBackoffUnderTest.getCurrentDelay(); in testStartBackoff() local
75 waitForHandlerActionDelayed(mHandler, delay, 2 * delay); in testStartBackoff()
96 long delay = mBackoffUnderTest.getCurrentDelay(); in testDelayIncreasedExponentially() local
99 assertTrue("delay = " + delay + " minDelay = " + minDelay, delay >= minDelay); in testDelayIncreasedExponentially()
100 assertTrue("delay = " + delay + " maxDelay = " + maxDelay, delay <= maxDelay); in testDelayIncreasedExponentially()
111 long delay = mBackoffUnderTest.getCurrentDelay(); in testDelayShouldNotExceededTheMaximumLimit() local
113 "delay = " + delay + " maximumDelay = " + MAXIMUM_DELAY_MS, in testDelayShouldNotExceededTheMaximumLimit()
114 delay <= MAXIMUM_DELAY_MS); in testDelayShouldNotExceededTheMaximumLimit()
DTestExecutorService.java183 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
185 long scheduledTime = getNextExecutionTime(delay, unit); in schedule()
192 command, delay); in schedule()
196 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
208 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
210 long nextScheduledTime = getNextExecutionTime(delay, unit); in scheduleWithFixedDelay()
212 mRepeatDuration.put(command, unit.toMillis(delay)); in scheduleWithFixedDelay()
215 command, delay); in scheduleWithFixedDelay()
218 private long getNextExecutionTime(long delay, TimeUnit unit) { in getNextExecutionTime() argument
219 long delayMillis = unit.toMillis(delay); in getNextExecutionTime()
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DDelayMix_16x16.cpp25 LVM_FLOAT* delay, /* Delay buffer */ in DelayMix_Float() argument
38 temp = (LVM_FLOAT)(*dst + (LVM_FLOAT)delay[Offset]) / 2.0f; in DelayMix_Float()
42 delay[Offset] = *src; in DelayMix_Float()
52 temp = (LVM_FLOAT)(*dst + (LVM_FLOAT)delay[Offset]) / 2.0f; in DelayMix_Float()
56 delay[Offset] = *src; in DelayMix_Float()
61 temp = (LVM_FLOAT)(*dst - (LVM_FLOAT)delay[Offset]) / 2.0f; in DelayMix_Float()
65 delay[Offset] = *src; in DelayMix_Float()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
DAppearAnimationUtils.java89 long delay = columns[0]; in startAnimations() local
98 creator.createAnimation(objects[row], delay, mDuration, in startAnimations()
117 long delay = columns[col]; in startAnimations() local
122 creator.createAnimation(objects[row][col], delay, mDuration, in startAnimations()
136 long delay = calculateDelay(row, 0); in getDelays() local
137 mProperties.delays[row][0] = delay; in getDelays()
138 if (items[row] != null && delay > maxDelay) { in getDelays()
139 maxDelay = delay; in getDelays()
156 long delay = calculateDelay(row, col); in getDelays() local
157 mProperties.delays[row][col] = delay; in getDelays()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationIconDozeHelper.java47 public void setImageDark(ImageView target, boolean dark, boolean fade, long delay, in setImageDark() argument
51 fadeImageColorFilter(target, dark, delay); in setImageDark()
52 fadeImageAlpha(target, dark, delay); in setImageDark()
54 fadeGrayscale(target, dark, delay); in setImageDark()
66 private void fadeImageColorFilter(final ImageView target, boolean dark, long delay) { in fadeImageColorFilter() argument
69 }, dark, delay, null /* listener */); in fadeImageColorFilter()
72 private void fadeImageAlpha(final ImageView target, boolean dark, long delay) { in fadeImageAlpha() argument
76 }, dark, delay, null /* listener */); in fadeImageAlpha()
DNotificationDozeHelper.java37 public void fadeGrayscale(final ImageView target, final boolean dark, long delay) { in fadeGrayscale() argument
43 }, dark, delay, new AnimatorListenerAdapter() { in fadeGrayscale()
68 boolean dark, long delay, Animator.AnimatorListener listener) { in startIntensityAnimation() argument
75 animator.setStartDelay(delay); in startIntensityAnimation()
83 boolean animate, long delay, View view) { in setDozing() argument
86 delay, in setDozing()
/frameworks/base/core/java/android/view/animation/
DLayoutAnimationController.java144 public LayoutAnimationController(Animation animation, float delay) { in LayoutAnimationController() argument
145 mDelay = delay; in LayoutAnimationController()
283 public void setDelay(float delay) { in setDelay() argument
284 mDelay = delay; in setDelay()
323 final long delay = getDelayForView(view) + mAnimation.getStartOffset(); in getAnimationForView() local
324 mMaxDelay = Math.max(mMaxDelay, delay); in getAnimationForView()
328 animation.setStartOffset(delay); in getAnimationForView()
378 final float delay = mDelay * mAnimation.getDuration(); in getDelayForView() local
379 final long viewDelay = (long) (getTransformedIndex(params) * delay); in getDelayForView()
380 final float totalDelay = delay * params.count; in getDelayForView()
/frameworks/base/core/java/android/view/
DHandlerActionQueue.java85 handler.postDelayed(handlerAction.action, handlerAction.delay); in executeActions()
108 return mActions[index].delay; in getDelay()
113 final long delay; field in HandlerActionQueue.HandlerAction
115 public HandlerAction(Runnable action, long delay) { in HandlerAction() argument
117 this.delay = delay; in HandlerAction()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DMockScheduledExecutorService.java84 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { in schedule() argument
86 MockScheduledFuture<?> future = new MockScheduledFuture<>(command, delay, unit); in schedule()
92 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule() argument
104 long delay, TimeUnit unit) { in scheduleWithFixedDelay() argument
195 MockScheduledFuture(Runnable runnable, long delay, TimeUnit timeUnit) { in MockScheduledFuture() argument
196 this(runnable, null, delay); in MockScheduledFuture()
199 MockScheduledFuture(Callable<V> callable, long delay, TimeUnit timeUnit) { in MockScheduledFuture() argument
200 this(null, callable, delay); in MockScheduledFuture()
203 private MockScheduledFuture(Runnable runnable, Callable<V> callable, long delay) { in MockScheduledFuture() argument
206 mDelay = delay; in MockScheduledFuture()
/frameworks/libs/net/common/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt180 var delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0)) } in <lambda>() variable
181 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
182 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 0) { it < 10 }) } in <lambda>()
183 assertTrue(delay >= SHORT_TIMEOUT) in <lambda>()
225 var delay = measureTimeMillis { in <lambda>() variable
229 assertTrue(delay in SHORT_TIMEOUT..TEST_TIMEOUT) in <lambda>()
231 delay = measureTimeMillis { assertEquals(31, record.poll(TEST_TIMEOUT, 0)) } in <lambda>()
232 assertTrue(delay < TEST_TIMEOUT, "Delay $delay > $TEST_TIMEOUT") in <lambda>()
234 delay = measureTimeMillis { assertNull(record.poll(SHORT_TIMEOUT, 1)) } in <lambda>()
235 assertTrue(delay >= SHORT_TIMEOUT, "Delay $delay < $SHORT_TIMEOUT") in <lambda>()
[all …]
/frameworks/base/core/java/android/animation/
DAnimationHandler.java93 public void addAnimationFrameCallback(final AnimationFrameCallback callback, long delay) { in addAnimationFrameCallback() argument
101 if (delay > 0) { in addAnimationFrameCallback()
102 mDelayedCallbackStartTime.put(callback, (SystemClock.uptimeMillis() + delay)); in addAnimationFrameCallback()
197 public static void setFrameDelay(long delay) { in setFrameDelay() argument
198 getInstance().getProvider().setFrameDelay(delay); in setFrameDelay()
267 public void setFrameDelay(long delay) { in setFrameDelay() argument
268 Choreographer.setFrameDelay(delay); in setFrameDelay()
315 void setFrameDelay(long delay); in setFrameDelay() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/concurrency/
DRepeatableExecutorImpl.java38 public Runnable executeRepeatedly(Runnable r, long initDelay, long delay, TimeUnit unit) { in executeRepeatedly() argument
39 ExecutionToken token = new ExecutionToken(r, delay, unit); in executeRepeatedly()
51 ExecutionToken(Runnable r, long delay, TimeUnit unit) { in ExecutionToken() argument
53 mDelay = delay; in ExecutionToken()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DLockscreenShadeTransitionController.kt202 val animationHandler = { delay: Long -> in <lambda>() method
207 notificationPanelController.animateToFullShade(delay) in <lambda>()
209 true /* animated */, delay) in <lambda>()
324 delay: Long = 0, in <lambda>()
333 if (delay > 0) { in <lambda>()
334 dragDownAnimator.startDelay = delay in <lambda>()
350 private fun animateAppear(delay: Long = 0) { in <lambda>()
361 setDragDownAmountAnimated(fullTransitionDistance.toFloat(), delay = delay) { in <lambda>()
389 animationHandler = { delay: Long -> in <lambda>() method
390 notificationPanelController.animateToFullShade(delay) in <lambda>()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueBackupJob.java71 public static void schedule(int userId, Context ctx, long delay, in schedule() argument
89 if (delay <= 0) { in schedule()
90 delay = interval + new Random().nextInt((int) fuzz); in schedule()
93 Slog.v(TAG, "Scheduling k/v pass in " + (delay / 1000 / 60) + " minutes"); in schedule()
98 .setMinimumLatency(delay) in schedule()
111 sNextScheduledForUserId.put(userId, System.currentTimeMillis() + delay); in schedule()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAutoclickController.java209 int delay = Settings.Secure.getIntForUser( in onChange() local
212 mClickScheduler.updateDelay(delay); in onChange()
258 public ClickScheduler(Handler handler, int delay) { in ClickScheduler() argument
263 mDelay = delay; in ClickScheduler()
321 public void updateDelay(int delay) { in updateDelay() argument
322 mDelay = delay; in updateDelay()
330 private void rescheduleClick(int delay) { in rescheduleClick() argument
331 long clickTime = SystemClock.uptimeMillis() + delay; in rescheduleClick()
347 mHandler.postDelayed(this, delay); in rescheduleClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DAnimationProperties.java33 public long delay; field in AnimationProperties
117 public AnimationProperties setDelay(long delay) {
118 this.delay = delay;
/frameworks/base/core/tests/overlaytests/host/src/com/android/server/om/hosttest/
DInstallOverlayTests.java170 delay(); in changesPersistedWhenUninstallingDisabledOverlay()
192 private void delay() { in delay() method in InstallOverlayTests
201 delay(); in installPackage()
206 delay(); in installInstantPackage()
215 delay(); in setPackageEnabled()
220 delay(); in setOverlayEnabled()
/frameworks/base/media/java/android/media/
DAsyncPlayer.java70 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() local
71 if (delay > 1000) { in startSound()
72 Log.w(mTag, "Notification sound delayed by " + delay + "msecs"); in startSound()
102 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in run() local
103 if (delay > 1000) { in run()
104 Log.w(mTag, "Notification stop delayed by " + delay + "msecs"); in run()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpTimeHelper.java145 long delay; in blockingGetNtpTimeAndInject() local
177 delay = NTP_INTERVAL; in blockingGetNtpTimeAndInject()
181 delay = mNtpBackOff.nextBackoffMillis(); in blockingGetNtpTimeAndInject()
189 delay)); in blockingGetNtpTimeAndInject()
198 mHandler.postDelayed(this::retrieveAndInjectNtpTime, delay); in blockingGetNtpTimeAndInject()
/frameworks/base/data/keyboards/
DVendor_054c_Product_05c4.idc21 # The delay between sensor events corresponding to the lowest frequency in microsecond
23 # The minimum delay allowed between two events in microsecond
30 # The delay between sensor events corresponding to the lowest frequency in microsecond
32 # The minimum delay allowed between two events in microsecond
DVendor_054c_Product_09cc.idc21 # The delay between sensor events corresponding to the lowest frequency in microsecond
23 # The minimum delay allowed between two events in microsecond
30 # The delay between sensor events corresponding to the lowest frequency in microsecond
32 # The minimum delay allowed between two events in microsecond
/frameworks/native/services/vibratorservice/include/vibratorservice/
DVibratorCallbackScheduler.h35 DelayedCallback(std::function<void()> callback, std::chrono::milliseconds delay) in DelayedCallback() argument
36 : mCallback(callback), mExpiration(std::chrono::steady_clock::now() + delay) {} in DelayedCallback()
58 virtual void schedule(std::function<void()> callback, std::chrono::milliseconds delay);
/frameworks/base/services/core/java/com/android/server/am/
DPendingStartActivityUids.java56 final long delay = SystemClock.elapsedRealtime() - pendingPid.second; in delete() local
57 if (delay >= 1000 /*ms*/) { in delete()
60 + delay + "ms," + " uid:" + uid); in delete()

12345678910