Searched defs:duration (Results 1 - 25 of 112) sorted by relevance

12345

/packages/apps/Contacts/src/com/android/contacts/widget/
H A DTransitionAnimationView.java72 * @param duration The duration the animation should last for. If -1, the system default(300)
75 public void startMaskTransition(boolean showMask, int duration) { argument
87 if (duration != -1) {
88 mAnimator.setDuration(duration);
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
H A DFloatAnimation.java25 public FloatAnimation(float from, float to, int duration) { argument
29 setDuration(duration);
H A DAnimation.java25 // 1. First we need to use setDuration(int) to set the duration of the
26 // animation. The duration is in milliseconds.
43 // before calculate is passed a value which reaches the duration of the
60 public void setDuration(int duration) { argument
61 mDuration = duration;
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
H A DAudioRecordViewTest.java77 private void sleepNoThrow(final long duration) { argument
79 Thread.sleep(duration);
/packages/apps/Stk/src/com/android/stk/
H A DStkApp.java48 * This function calculate the time in MS from a duration instance.
49 * returns zero when duration is null.
51 public static int calculateDurationInMilis(Duration duration) { argument
53 if (duration != null) {
54 switch (duration.timeUnit) {
66 timeout *= duration.timeInterval;
/packages/apps/Messaging/src/com/android/messaging/ui/animation/
H A DViewGroupItemVerticalExplodeAnimation.java67 * for the duration of the animation so that the animation won't get cancelled.
71 final View animationStagingView, final boolean snapshotView, final int duration) {
73 new ViewExplodeAnimationJellyBeanMR2(viewToAnimate, container, snapshotView, duration)
94 final boolean snapshotView, final int duration) {
97 mDuration = duration;
70 startAnimationForView(final ViewGroup container, final View viewToAnimate, final View animationStagingView, final boolean snapshotView, final int duration) argument
93 ViewExplodeAnimationJellyBeanMR2(final View viewToAnimate, final ViewGroup container, final boolean snapshotView, final int duration) argument
/packages/apps/Dialer/InCallUI/src/com/android/incallui/widget/multiwaveview/
H A DTweener.java57 public static Tweener to(Object object, long duration, Object... vars) { argument
119 anim.setDuration(duration);
133 Tweener from(Object object, long duration, Object... vars) { argument
137 return Tweener.to(object, duration, vars);
/packages/apps/Messaging/src/com/android/messaging/sms/
H A DSmsReleaseStorage.java36 * Class representing a time duration specified by Gservices
39 // Time duration unit types
61 * Parse message retaining time duration specified by Gservices
63 * @return The parsed time duration from Gservices
80 LogUtil.e(TAG, "SmsAutoDelete: invalid duration " +
86 * Get string representation of the time duration
88 * @param duration
91 public static String getMessageRetainingDurationString(final Duration duration) { argument
93 switch (duration.mUnit) {
96 R.plurals.week_count, duration
119 durationToTimeInMillis(final Duration duration) argument
[all...]
/packages/apps/Music/src/com/android/music/
H A DRepeatingImageButton.java134 * @param duration The number of milliseconds the button has been pressed so far.
139 void onRepeat(View v, long duration, int repeatcount); argument
/packages/apps/TV/src/com/android/tv/ui/
H A DIntroView.java86 protected void onStartEnterAnimation(TimeInterpolator interpolator, long duration) { argument
92 .setDuration(duration)
98 protected void onStartExitAnimation(TimeInterpolator interpolator, long duration, argument
104 .setDuration(duration)
H A DFullscreenDialogView.java134 protected void onStartEnterAnimation(TimeInterpolator interpolator, long duration) { argument
140 protected void onStartExitAnimation(TimeInterpolator interpolator, long duration, argument
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/
H A DAudioTrackMonitor.java56 * @param duration the frequency of monitoring in milliseconds
58 public void reset(long duration) { argument
60 mDuration = duration;
/packages/providers/CallLogProvider/tests/src/com/android/calllogbackup/
H A DCallLogBackupAgentTest.java219 private static Call makeCall(int id, long date, long duration, String number) { argument
223 c.duration = duration;
/packages/services/Telephony/src/com/android/phone/
H A DCallLogger.java60 final long duration = c.getDurationMillis();
83 logCall(ci, logNumber, presentation, callLogType, date, duration);
111 long duration) {
110 logCall(CallerInfo ci, String number, int presentation, int callType, long start, long duration) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
H A DAppScanStats.java42 long duration; field in class:AppScanStats.LastScan
49 public LastScan(long timestamp, long duration, argument
51 this.duration = duration;
130 curr.duration = scanDuration;
236 sb.append(scan.duration + "ms ");
253 sb.append(" Current scan duration in ms : " +
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DEditorAnimator.java203 float toY, int startDelay, int duration) {
209 translateAnimator.setDuration(duration);
202 translateViews(List<Animator> animators, List<View> views, float fromY, float toY, int startDelay, int duration) argument
/packages/apps/Dialer/src/com/android/dialer/
H A DPhoneCallDetails.java60 // The duration of the call in milliseconds, or 0 for missed calls.
61 public long duration; field in class:PhoneCallDetails
/packages/apps/Launcher2/src/com/android/launcher2/
H A DInterruptibleInOutAnimator.java48 public InterruptibleInOutAnimator(View view, long duration, float fromValue, float toValue) { argument
49 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration);
50 mOriginalDuration = duration;
75 // Ensure we don't calculate a non-sensical duration
76 long duration = mOriginalDuration - currentPlayTime;
77 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration)));
104 * direction and animate for a correspondingly shorter duration.
114 * direction and animate for a correspondingly shorter duration.
/packages/apps/Launcher3/src/com/android/launcher3/
H A DInterruptibleInOutAnimator.java50 public InterruptibleInOutAnimator(View view, long duration, float fromValue, float toValue) { argument
51 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration);
52 mOriginalDuration = duration;
77 // Ensure we don't calculate a non-sensical duration
78 long duration = mOriginalDuration - currentPlayTime;
79 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration)));
106 * direction and animate for a correspondingly shorter duration.
116 * direction and animate for a correspondingly shorter duration.
H A DPinchToOverviewListener.java135 int duration = computeDuration(remainingProgress, progressVelocity);
137 cancelPinch(mPreviousProgress, duration);
141 mAnimationManager.animateToProgress(mPreviousProgress, toProgress, duration,
153 * speed. If this time is too long, instead return the normal duration, ignoring the speed.
163 * overview). If duration is -1, the default overview transition duration is used.
165 private void cancelPinch(float currentProgress, int duration) { argument
169 mAnimationManager.animateToProgress(currentProgress, toProgress, duration,
/packages/apps/PhoneCommon/src/com/android/phone/common/animation/
H A DAnimUtils.java46 public static void crossFadeViews(View fadeIn, View fadeOut, int duration) { argument
47 fadeIn(fadeIn, duration);
48 fadeOut(fadeOut, duration);
51 public static void fadeOut(View fadeOut, int duration) { argument
52 fadeOut(fadeOut, duration, null);
125 * @param durationMs The duration of the scaling in milliseconds.
149 * @param durationMs The duration of the scaling in milliseconds.
/packages/providers/CalendarProvider/
H A Dmaketests.py80 duration = "" variable
98 duration = re_duration.group(1) variable
/packages/services/Car/car-support-lib/src/android/support/car/ui/
H A DFabDrawable.java68 * @param duration The animation duration for the growth of the fab and stroke.
70 public FabDrawable(int fabGrowth, int strokeWidth, int duration) { argument
80 mStrokeAnimator = ValueAnimator.ofFloat(0f, 1f).setDuration(duration);
/packages/apps/Camera2/src/com/android/camera/filmstrip/
H A DFilmstripController.java108 * @param duration The duration of this scrolling.
111 public void scrollToPosition(int position, int duration, boolean interruptible); argument
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAsyncRingtonePlayer.java195 * @param duration length of time over which the crescendo occurs
198 private static float computeVolume(long currentTime, long stopTime, long duration) { argument
201 final float fractionComplete = 1 - (elapsedCrescendoTime / duration);
216 * @return {@code true} iff the crescendo duration is more than 0 seconds
223 * @return the duration of the crescendo in milliseconds
280 /** The duration over which to increase the volume. */
454 /** The duration over which to increase the volume. */

Completed in 3043 milliseconds

12345