Searched refs:duration (Results 1 - 25 of 210) sorted by relevance

123456789

/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
H A DSpeedClassifier.java34 float duration = stroke.getDurationSeconds();
35 if (duration == 0.0f) {
38 return SpeedEvaluator.evaluate(stroke.getTotalLength() / duration);
H A DAccelerationClassifier.java28 * duration of each part there is added one nanosecond so that it is always possible to calculate
82 float duration = (float) (point.timeOffsetNano - previousPoint.timeOffsetNano + 1);
83 float speed = distance / duration;
85 if (duration > 20 * MILLIS_TO_NANOS || duration < 5 * MILLIS_TO_NANOS) {
H A DProximityClassifier.java61 long duration = TimeUnit.MILLISECONDS.toNanos(event.getEventTime()) - mGestureStartTimeNano;
63 if (duration == 0) {
66 mAverageNear = (float) mNearDuration / (float) 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/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/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/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 DSmoothPagedView.java135 int duration = (screenDelta + 1) * 100;
149 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence;
151 duration += 100;
154 snapToPage(whichPage, delta, duration);
/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);
H A DDurationTimer.java25 * Times a duration.
64 * Returns the current duration in milliseconds or {@link #TIME_NOT_SET} if the timer is not
74 * @return the current duration in milliseconds or {@link #TIME_NOT_SET} if the timer is not
78 long duration = getDuration();
80 return duration;
84 * Adds information and duration time to the log.
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
H A DSimpleScrollAdapterTransform.java70 long duration = valueAnim.getDuration();
71 if (distanceFromCenter < duration) {
74 valueAnim.setCurrentPlayTime(duration);
80 long duration = animator.getDuration();
81 if (duration == 0) {
82 duration = defaultDuration;
87 initializeTransformationRecursive(children.get(i), duration);
91 // DIP to pixel, save back to duration
93 TypedValue.COMPLEX_UNIT_DIP, duration, mDisplayMetrics));
/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DWatchedHistoryManagerTest.java73 long duration = TimeUnit.MINUTES.toMillis(10);
75 mWatchedHistoryManager.logChannelViewStop(channel, time, duration);
81 assertEquals(record.watchedStartTime, time - duration);
82 assertEquals(record.duration, duration);
91 long duration = TimeUnit.MINUTES.toMillis(10);
96 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration);
123 long duration = TimeUnit.MINUTES.toMillis(10);
124 WatchedRecord record = new WatchedRecord(fakeId, time, duration);
[all...]
/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.
/packages/apps/TV/src/com/android/tv/data/
H A DWatchedHistoryManager.java179 public void logChannelViewStop(Channel channel, long endTime, long duration) { argument
180 if (duration < MIN_DURATION_MS) {
183 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration);
235 public final long duration; field in class:WatchedHistoryManager.WatchedRecord
237 WatchedRecord(long channelId, long watchedStartTime, long duration) { argument
240 this.duration = duration;
246 + ",duration=" + duration;
[all...]
/packages/services/Telephony/src/com/android/phone/
H A DCallTime.java121 long duration = getCallDuration(call);
122 mListener.onTickForCallTimeElapsed(duration / 1000);
127 * Returns a "call duration" value for the specified Call, in msec,
131 long duration = 0;
138 //duration = (state == Call.State.ACTIVE
140 duration = c.getDurationMillis();
147 if (t > duration) {
148 duration = t;
153 if (DBG) log("updateElapsedTime, count=" + count + ", duration=" + duration);
[all...]
/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 DOnRepeatedKeyInterceptListener.java60 long duration = event.getEventTime() - event.getDownTime();
61 if (duration < THRESHOLD_FAST_FOCUS_CHANGE_TIME_MS[0]
70 if (THRESHOLD_FAST_FOCUS_CHANGE_TIME_MS[i] < duration) {
77 mRepeatedKeyInterval = duration / event.getRepeatCount();
/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/TV/src/com/android/tv/tuner/tvinput/
H A DTunerDebug.java117 long duration = currentTime - sTunerDebug.mLastCheckTimestampMs;
118 if (duration != 0) {
121 / duration;
124 / duration;
127 / duration;
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
H A DCallEntryFormatter.java109 String duration = format.format(date);
115 duration = duration.replaceFirst(Integer.toString(minutes % 60), Integer.toString(minutes));
117 return duration;
142 * Formats a string containing the call duration and the data usage (if specified).
146 * @return String containing call duration and data usage.
155 * Formats a string containing the call duration and the data usage (if specified) for TalkBack.
159 * @return String containing call duration and data usage.
168 Context context, CharSequence duration, long dataUsage) {
171 durationItems.add(duration);
167 formatDurationAndDataUsageInternal( Context context, CharSequence duration, long dataUsage) argument
[all...]
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
H A DCallCard.java98 // Call duration is hidden when call is not answered, adjust panel Y pos.
127 final long duration = 500 * DebugUtil.ANIMATION_FACTOR;
137 .setDuration(duration);
144 .setDuration(duration);
151 .setDuration(duration);
155 .setDuration(duration);
160 .setDuration(duration)
165 .setDuration(duration);
184 final int duration = 500;
194 .setDuration(duration * DebugUti
[all...]
H A DWeatherCard.java60 long duration = SHOW_ANIMATION_DURATION * DebugUtil.ANIMATION_FACTOR;
65 .setDuration(duration)
72 .setDuration(duration)
H A DMediaCard.java86 long duration = 500 * DebugUtil.ANIMATION_FACTOR;
90 .setDuration(duration);
97 .setDuration(duration);
103 .setDuration(duration);
/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);

Completed in 4255 milliseconds

123456789