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

123456

/packages/apps/TV/src/com/android/tv/util/
H A DToastUtils.java35 public static void show(Context context, CharSequence text, int duration) { argument
39 Toast toast = Toast.makeText(context, text, 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);
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
H A DCallEntryFormatter.java122 * Formats a string containing the call duration and the data usage (if specified).
126 * @return String containing call duration and data usage.
135 * Formats a string containing the call duration and the data usage (if specified) for TalkBack.
139 * @return String containing call duration and data usage.
148 Context context, CharSequence duration, long dataUsage) {
151 durationItems.add(duration);
155 return duration;
147 formatDurationAndDataUsageInternal( Context context, CharSequence duration, long dataUsage) argument
/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/Car/Hvac/src/com/android/car/hvac/ui/
H A DFanSpeedBarSegment.java76 public void playTurnOnAnimation(int duration, int delayMs) { argument
78 mDotWidthExpandAnimator.setDuration(duration);
83 public void playTurnOffAnimation(int duration, int delayMs) { argument
85 mDotWidthExpandAnimator.setDuration(duration);
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
H A DSnackbars.java87 int duration) {
89 activity, activity.getResources().getText(messageId), duration);
93 Activity activity, CharSequence message, int duration) {
95 return Snackbar.make(view, message, duration);
86 makeSnackbar(Activity activity, @StringRes int messageId, int duration) argument
92 makeSnackbar( Activity activity, CharSequence message, int duration) argument
/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.java133 * @param duration The number of milliseconds the button has been pressed so far.
138 void onRepeat(View v, long duration, int repeatcount); argument
/packages/apps/TV/src/com/android/tv/tuner/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/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)
/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/Contacts/src/com/android/contacts/editor/
H A DEditorAnimator.java204 float toY, int startDelay, int duration) {
210 translateAnimator.setDuration(duration);
203 translateViews(List<Animator> animators, List<View> views, float fromY, float toY, int startDelay, int duration) argument
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/
H A DCollapsedAlarmViewHolder.java150 int fromBottom, long duration) {
157 long duration) {
167 ? createCollapsingAnimator((AlarmItemViewHolder) oldHolder, duration)
168 : createExpandingAnimator((AlarmItemViewHolder) newHolder, duration);
183 private Animator createExpandingAnimator(AlarmItemViewHolder newHolder, long duration) { argument
195 alphaAnimatorSet.setDuration((long) (duration * ANIM_SHORT_DURATION_MULTIPLIER));
200 .setDuration(duration);
208 private Animator createCollapsingAnimator(AlarmItemViewHolder oldHolder, long duration) { argument
216 final long standardDelay = (long) (duration * ANIM_STANDARD_DELAY_MULTIPLIER);
218 alphaAnimatorSet.setStartDelay(duration
149 onAnimateChange(List<Object> payloads, int fromLeft, int fromTop, int fromRight, int fromBottom, long duration) argument
156 onAnimateChange(final ViewHolder oldHolder, ViewHolder newHolder, long duration) argument
[all...]
/packages/apps/Dialer/java/com/android/dialer/animation/
H A DAnimUtils.java37 public static void crossFadeViews(View fadeIn, View fadeOut, int duration) { argument
38 fadeIn(fadeIn, duration);
39 fadeOut(fadeOut, duration);
42 public static void fadeOut(View fadeOut, int duration) { argument
43 fadeOut(fadeOut, duration, null);
124 * @param durationMs The duration of the scaling in milliseconds.
155 * @param durationMs The duration of the scaling in milliseconds.
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
H A DDocumentsProviderHelper.java312 public void setLoadingDuration(long duration) throws RemoteException { argument
314 extra.putLong(DocumentsContract.EXTRA_LOADING, duration);
/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(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/Launcher3/src/com/android/launcher3/shortcuts/
H A DShortcutsItemView.java232 long duration) {
234 closeAnimation.play(super.createCloseAnimation(isContainerAboveIcon, pivotLeft, duration));
231 createCloseAnimation(boolean isContainerAboveIcon, boolean pivotLeft, long duration) argument
/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.

Completed in 7792 milliseconds

123456