Searched defs:duration (Results 51 - 75 of 204) sorted by relevance

123456789

/frameworks/base/cmds/input/src/com/android/commands/input/
H A DInput.java109 int duration = -1;
113 duration = Integer.parseInt(args[index+5]);
118 duration);
201 private void sendSwipe(int inputSource, float x1, float y1, float x2, float y2, int duration) { argument
202 if (duration < 0) {
203 duration = 300;
208 long endTime = startTime + duration;
211 float alpha = (float) elapsedTime / duration;
295 System.err.println(" swipe <x1> <y1> <x2> <y2> [duration(ms)]"
/frameworks/base/core/java/android/animation/
H A DAnimator.java32 * The value used to indicate infinite duration (e.g. when Animators repeat infinitely).
179 * Sets the duration of the animation.
181 * @param duration The length of the animation, in milliseconds.
183 public abstract Animator setDuration(long duration); argument
186 * Gets the duration of the animation.
193 * Gets the total duration of the animation, accounting for animation sequences, start delay,
194 * and repeating. Return {@link #DURATION_INFINITE} if the duration is infinite.
201 long duration = getDuration();
202 if (duration == DURATION_INFINITE) {
205 return getStartDelay() + duration;
[all...]
H A DObjectAnimator.java50 * each keyframe to determine when, in the overall duration, the animation should arrive at that
52 * distributed within the total duration. Also, a keyframe with no value will derive its value
234 * (these values will be distributed evenly across the duration of the animation).
282 * (these values will be distributed evenly across the duration of the animation).
324 * value (these values will be distributed evenly across the duration of the animation).
364 * value (these values will be distributed evenly across the duration of the animation).</p>
392 * (these values will be distributed evenly across the duration of the animation).
413 * (these values will be distributed evenly across the duration of the animation).
433 * (these values will be distributed evenly across the duration of the animation).
481 * (these values will be distributed evenly across the duration o
909 setDuration(long duration) argument
[all...]
/frameworks/base/core/java/android/app/
H A DActivityManagerInternal.java156 public abstract void setPendingIntentWhitelistDuration(IIntentSender target, long duration); argument
/frameworks/base/core/java/android/util/
H A DTimeUtils.java317 private static int formatDurationLocked(long duration, int fieldLen) { argument
324 if (duration == 0) {
335 if (duration > 0) {
339 duration = -duration;
342 int millis = (int)(duration%1000);
343 int seconds = (int) Math.floor(duration / 1000);
389 public static void formatDuration(long duration, StringBuilder builder) { argument
391 int len = formatDurationLocked(duration, 0);
397 public static void formatDuration(long duration, PrintWrite argument
405 formatDuration(long duration, PrintWriter pw) argument
[all...]
/frameworks/base/core/java/android/view/
H A DActionMode.java216 * Hide the action mode view from obstructing the content below for a short duration.
218 * If this method is called again before the hide duration expires, the later hide call will
223 * @param duration The number of milliseconds to hide for.
226 public void hide(long duration) {} argument
/frameworks/base/core/java/android/widget/
H A DToast.java111 * Show the view for the specified duration.
133 * after the appropriate duration.
166 public void setDuration(@Duration int duration) { argument
167 mDuration = duration;
168 mTN.mDuration = duration;
172 * Return the duration.
257 * @param duration How long to display the message. Either {@link #LENGTH_SHORT} or
261 public static Toast makeText(Context context, CharSequence text, @Duration int duration) { argument
271 result.mDuration = duration;
282 * @param duration Ho
287 makeText(Context context, @StringRes int resId, @Duration int duration) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DDrawableHolder.java64 * @param duration the duration, in ms.
70 public ObjectAnimator addAnimTo(long duration, long delay, argument
76 anim.setDuration(duration);
/frameworks/base/core/jni/
H A Dandroid_hardware_camera2_legacy_PerfMeasurement.cpp96 * Measures the duration of GPU processing for a set of GL commands, delivering
179 * Get the next available duration measurement.
186 * duration of the oldest completed query.
201 GLint64 duration = FAILED_MEASUREMENT; local
208 &duration);
214 return static_cast<nsecs_t>(duration);
297 nsecs_t duration = context->getNextGlDuration(); local
300 return static_cast<jlong>(duration);
H A Dandroid_view_RenderNodeAnimator.cpp147 static void setDuration(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong duration) { argument
148 LOG_ALWAYS_FATAL_IF(duration < 0, "Duration cannot be negative");
150 animator->setDuration(duration);
155 return static_cast<jlong>(animator->duration());
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimationDrawable.java52 * &lt;item android:drawable=&quot;@drawable/wheel0&quot; android:duration=&quot;50&quot; /&gt;
53 * &lt;item android:drawable=&quot;@drawable/wheel1&quot; android:duration=&quot;50&quot; /&gt;
54 * &lt;item android:drawable=&quot;@drawable/wheel2&quot; android:duration=&quot;50&quot; /&gt;
55 * &lt;item android:drawable=&quot;@drawable/wheel3&quot; android:duration=&quot;50&quot; /&gt;
56 * &lt;item android:drawable=&quot;@drawable/wheel4&quot; android:duration=&quot;50&quot; /&gt;
57 * &lt;item android:drawable=&quot;@drawable/wheel5&quot; android:duration=&quot;50&quot; /&gt;
221 * @return The duration in milliseconds of the frame at the
248 * @param duration How long in milliseconds the frame should appear
250 public void addFrame(@NonNull Drawable frame, int duration) { argument
251 mAnimationState.addFrame(frame, duration);
[all...]
/frameworks/base/libs/hwui/
H A DAnimator.cpp75 void BaseRenderNodeAnimator::setDuration(nsecs_t duration) { argument
77 mDuration = duration;
233 ALOGW("Your duration is strange and confusing: %" PRId64, mDuration);
H A DFrameInfo.h80 // duration calculations end up being 0 instead of very large
138 inline int64_t duration(FrameInfoIndex start, FrameInfoIndex end) const { function in class:android::uirenderer::FrameInfo
157 return duration(FrameInfoIndex::IntendedVsync, FrameInfoIndex::FrameCompleted);
/frameworks/base/media/java/android/media/
H A DCamcorderProfile.java210 * Default recording duration in seconds before the session is terminated.
213 public int duration; field in class:CamcorderProfile
470 private CamcorderProfile(int duration, argument
483 this.duration = duration;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/
H A DMediaPlayerApiTest.java58 public boolean verifyDuration(int duration, int expectedDuration){ argument
59 if ((duration > expectedDuration * 1.1) || (duration < expectedDuration * 0.9))
68 //Wait for PV bugs for MP3 duration
71 int duration = CodecTest.getDuration(MediaNames.MP3CBR);
72 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3CBR_LENGTH);
78 int duration = CodecTest.getDuration(MediaNames.MP3VBR);
80 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3VBR_LENGTH);
86 int duration = CodecTest.getDuration(MediaNames.MIDI);
87 duratoinWithinTolerence = verifyDuration(duration, MediaName
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/
H A DAppearAnimationUtils.java54 public AppearAnimationUtils(Context ctx, long duration, float translationScaleFactor, argument
60 mDuration = duration;
184 public void createAnimation(final View view, long delay, long duration, float translationY, argument
200 alphaAnim.setDuration(duration);
220 startTranslationYAnimation(view, delay, duration, appearing ? 0 : translationY,
225 public static void startTranslationYAnimation(View view, long delay, long duration, argument
238 translationAnim.setDuration(duration);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DLocalBluetoothAdapter.java146 public boolean setScanMode(int mode, int duration) { argument
147 return mAdapter.setScanMode(mode, duration);
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
H A DAssistOrbView.java151 public void animateCircleSize(float circleSize, long duration, argument
163 mCircleAnimator.setDuration(duration);
191 private void animateOffset(float offset, long duration, long startDelay, argument
207 mOffsetAnimator.setDuration(duration);
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DAnimationProps.java68 * Creates an animation with a default {@param duration} and {@param interpolator} for all
71 public AnimationProps(int duration, Interpolator interpolator) { argument
72 this(0, duration, interpolator, null);
76 * Creates an animation with a default {@param duration} and {@param interpolator} for all
79 public AnimationProps(int duration, Interpolator interpolator, argument
81 this(0, duration, interpolator, listener);
85 * Creates an animation with a default {@param startDelay}, {@param duration} and
88 public AnimationProps(int startDelay, int duration, Interpolator interpolator) { argument
89 this(startDelay, duration, interpolator, null);
93 * Creates an animation with a default {@param startDelay}, {@param duration} an
96 AnimationProps(int startDelay, int duration, Interpolator interpolator, Animator.AnimatorListener listener) argument
171 setDuration(@ropType int propertyType, int duration) argument
[all...]
H A DTaskStackAnimationHelper.java61 void onStartLaunchTargetEnterAnimation(TaskViewTransform transform, int duration, argument
68 void onStartLaunchTargetLaunchAnimation(int duration, boolean screenPinningRequested, argument
531 int duration;
534 duration = calculateStaggeredAnimDuration(i);
538 duration = 150 + ((newFocusTaskViewIndex - i - 1) * 50);
541 duration = Math.max(100, 150 - ((i - newFocusTaskViewIndex - 1) * 50));
544 duration = 200;
550 .setDuration(AnimationProps.BOUNDS, duration)
635 int duration = calculateStaggeredAnimDuration(i);
639 .setDuration(AnimationProps.BOUNDS, duration)
[all...]
H A DTaskStackViewScroller.java191 // TODO: Take duration for snap back
203 int duration = mContext.getResources().getInteger(
205 animateScroll(newScroll, duration, postRunnable);
209 void animateScroll(float newScroll, int duration, final Runnable postRunnable) { argument
221 mScrollAnimator.setDuration(duration);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DFlingAnimationUtils.java103 animator.setDuration(properties.duration);
122 animator.setDuration(properties.duration);
150 mAnimatorProperties.duration = (long) (durationSeconds * 1000);
170 animator.setDuration(properties.duration);
190 animator.setDuration(properties.duration);
223 mAnimatorProperties.duration = (long) (durationSeconds * 1000);
296 long duration; field in class:FlingAnimationUtils.AnimatorProperties
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DDozeScrimController.java161 private void startScrimAnimation(final boolean inFront, float target, long duration, argument
163 startScrimAnimation(inFront, target, duration, interpolator, null /* endRunnable */);
166 private void startScrimAnimation(final boolean inFront, float target, long duration, argument
185 anim.setDuration(duration);
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustArchive.java52 final long duration; field in class:TrustArchive.Event
59 long duration, int flags, boolean managingTrust) {
65 this.duration = duration;
74 long duration, int flags) {
75 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration,
141 writer.printf(", message=\"%s\", duration=%s, flags=%s",
142 ev.message, formatDuration(ev.duration), dumpGrantFlags(ev.flags));
154 public static String formatDuration(long duration) { argument
156 TimeUtils.formatDuration(duration, s
58 Event(int type, int userId, ComponentName agent, String message, long duration, int flags, boolean managingTrust) argument
73 logGrantTrust(int userId, ComponentName agent, String message, long duration, int flags) argument
[all...]
/frameworks/base/services/core/java/com/android/server/wm/
H A DDimLayer.java241 * @param duration The time to test.
242 * @return True if the duration would lead to an earlier end to the current animation.
244 private boolean durationEndsEarlier(long duration) { argument
245 return SystemClock.uptimeMillis() + duration < mStartTime + mDuration;
263 * @param duration How long to take to get there in milliseconds.
265 void show(int layer, float alpha, long duration) { argument
267 + " duration=" + duration + ", mDestroyed=" + mDestroyed);
286 if ((animating && (mTargetAlpha != alpha || durationEndsEarlier(duration)))
288 if (duration <
318 hide(long duration) argument
[all...]

Completed in 642 milliseconds

123456789