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

1234

/packages/apps/Browser/src/com/android/browser/
H A DLogTag.java42 * @param duration the time the browser spent loading the page.
44 public static void logPageFinishedLoading(String url, long duration) { argument
46 + duration);
53 * @param duration the time spent on the webpage.
55 public static void logTimeOnPage(String url, long duration) { argument
57 + duration);
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactNameHighlightingAnimation.java32 public ContactNameHighlightingAnimation(ListView listView, int duration) { argument
33 super(duration);
/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);
H A DTextHighlightingAnimation.java173 public TextHighlightingAnimation(int duration) { argument
174 mDuration = 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;
H A DStateTransitionAnimation.java38 public int duration = 330; field in class:StateTransitionAnimation.Spec
109 setDuration(mTransitionSpec.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/Dialer/src/com/android/dialer/
H A DPhoneCallDetails.java45 /** The duration of the call in milliseconds, or 0 for missed calls. */
46 public final long duration; field in class:PhoneCallDetails
70 int[] callTypes, long date, long duration) {
72 callTypes, date, duration, "", 0, "", null, null, 0);
78 int[] callTypes, long date, long duration, CharSequence name,
88 this.duration = duration;
68 PhoneCallDetails(CharSequence number, int numberPresentation, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration) argument
76 PhoneCallDetails(CharSequence number, int numberPresentation, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration, CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri, int sourceType) argument
/packages/apps/DeskClock/src/com/android/deskclock/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/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/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/services/Telephony/src/com/android/phone/
H A DCallLogger.java59 final long duration = c.getDurationMillis();
82 logCall(ci, logNumber, presentation, callLogType, date, duration);
110 long duration) {
128 + "," + presentation + ", " + callType + ", " + start + ", " + duration);
132 presentation, callType, start, duration);
109 logCall(CallerInfo ci, String number, int presentation, int callType, long start, long duration) argument
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DEditorAnimator.java222 float toY, int startDelay, int duration) {
228 translateAnimator.setDuration(duration);
221 translateViews(List<Animator> animators, List<View> views, float fromY, float toY, int startDelay, int duration) argument
/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.
H A DDeleteDropTarget.java310 * For this animation, the alpha runs for a fixed duration and we update the position
361 DragObject d, PointF vel, final long startTime, final int duration,
389 final int duration = FLING_DELETE_ANIMATION_DURATION;
407 startTime) / duration);
418 duration, config);
432 dragLayer.animateView(d.dragView, updateCb, duration, tInterpolator, onAnimationEndRunnable,
360 createFlingAlongVectorAnimatorListener(final DragLayer dragLayer, DragObject d, PointF vel, final long startTime, final int duration, ViewConfiguration config) argument
H A DDragView.java205 public void crossFade(int duration) { argument
207 va.setDuration(duration);
H A DLauncherViewPropertyAnimator.java159 public Animator setDuration(long duration) { argument
161 mDuration = duration;
/packages/apps/Launcher3/src/com/android/launcher3/
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.
H A DDeleteDropTarget.java407 * For this animation, the alpha runs for a fixed duration and we update the position
458 DragObject d, PointF vel, final long startTime, final int duration,
486 final int duration = FLING_DELETE_ANIMATION_DURATION;
504 startTime) / duration);
515 duration, config);
531 dragLayer.animateView(d.dragView, updateCb, duration, tInterpolator, onAnimationEndRunnable,
457 createFlingAlongVectorAnimatorListener(final DragLayer dragLayer, DragObject d, PointF vel, final long startTime, final int duration, ViewConfiguration config) argument
H A DLauncherClings.java329 final String flag, int duration, boolean restoreNavBarVisibilty) {
344 if (duration <= 0) {
347 cling.hide(duration, cleanUpClingCb);
328 dismissCling(final Cling cling, final Runnable postAnimationCb, final String flag, int duration, boolean restoreNavBarVisibilty) argument
/packages/providers/CalendarProvider/
H A Dmaketests.py80 duration = "" variable
98 duration = re_duration.group(1) variable
/packages/apps/Camera2/src/com/android/camera/
H A DMediaSaveService.java120 public void addVideo(String path, long duration, ContentValues values, argument
124 new VideoSaveTask(path, duration, values, l, resolver).execute();
197 private long duration; field in class:MediaSaveService.VideoSaveTask
202 public VideoSaveTask(String path, long duration, ContentValues values, argument
205 this.duration = duration;
214 values.put(Video.Media.DURATION, duration);
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
H A DCellBroadcastAlertAudio.java55 /** Extra for alert audio duration (from settings). */
75 /** Pause duration between alert sound and alert speech. */
247 int duration = intent.getIntExtra(ALERT_AUDIO_DURATION_EXTRA, 10500);
285 play(duration); // in milliseconds
303 * @param duration the alert sound duration in milliseconds
305 private void play(int duration) { argument
349 // stop alert after the specified duration
350 mHandler.sendMessageDelayed(mHandler.obtainMessage(ALERT_SOUND_FINISHED), duration);
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DPaper.java122 private void startAnimation(float start, float finish, long duration, argument
126 mDuration = duration;

Completed in 461 milliseconds

1234