/packages/apps/Stk/src/com/android/stk/ |
H A D | StkApp.java | 48 * 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 D | FloatAnimation.java | 25 public FloatAnimation(float from, float to, int duration) { argument 29 setDuration(duration);
|
H A D | Animation.java | 25 // 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/TV/src/com/android/tv/analytics/ |
H A D | DurationTimer.java | 22 * Times a duration. 44 * Returns the current duration in milliseconds or {@link #TIME_NOT_SET} if the timer is not 54 * @return the current duration in milliseconds or {@link #TIME_NOT_SET} if the timer is not 58 long duration = getDuration(); 60 return duration;
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
H A D | SmsReleaseStorage.java | 36 * 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/Dialer/InCallUI/src/com/android/incallui/ |
H A D | InCallDateUtils.java | 14 * Return given duration in a human-friendly format. For example, "4 minutes 3 seconds" or 33 StringBuilder duration = new StringBuilder(); 36 duration.append(res.getQuantityString(R.plurals.duration_hours, hours, hours)); 40 duration.append(' '); 42 duration.append(res.getQuantityString(R.plurals.duration_minutes, minutes, minutes)); 46 duration.append(' '); 48 duration.append(res.getQuantityString(R.plurals.duration_seconds, seconds, seconds)); 54 return duration.toString();
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | InterruptibleInOutAnimator.java | 48 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 D | SmoothPagedView.java | 135 int duration = (screenDelta + 1) * 100; 149 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence; 151 duration += 100; 154 snapToPage(whichPage, delta, duration);
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
H A D | SimpleScrollAdapterTransform.java | 70 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/src/com/android/tv/data/ |
H A D | WatchedHistoryManager.java | 170 public void logChannelViewStop(Channel channel, long endTime, long duration) { argument 171 if (duration < MIN_DURATION_MS) { 174 WatchedRecord record = new WatchedRecord(channel.getId(), endTime - duration, duration); 220 Long duration = durationMap.get(channelId); 221 if (duration == null) { 222 duration = 0l; 224 if (duration >= RECENT_CHANNEL_THRESHOLD_MS) { 234 duration += record.duration; 272 public final long duration; field in class:WatchedHistoryManager.WatchedRecord 274 WatchedRecord(long channelId, long watchedStartTime, long duration) argument [all...] |
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
H A D | WatchedHistoryManagerTest.java | 80 long duration = TimeUnit.MINUTES.toMillis(10); 82 mWatchedHistoryManager.logChannelViewStop(channel, time, duration); 88 assertEquals(record.watchedStartTime, time - duration); 89 assertEquals(record.duration, duration); 98 long duration = TimeUnit.MINUTES.toMillis(10); 103 mWatchedHistoryManager.logChannelViewStop(channel, time + duration * i, duration); 130 long duration = TimeUnit.MINUTES.toMillis(10); 131 WatchedRecord record = new WatchedRecord(fakeId, time, duration); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | InterruptibleInOutAnimator.java | 50 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 D | PinchAnimationManager.java | 86 * {@link #setAnimationProgress(float)} throughout the duration. If duration is -1, 87 * the default overview transition duration is used. 89 public void animateToProgress(float currentProgress, float toProgress, int duration, argument 91 if (duration == -1) { 92 duration = mNormalOverviewTransitionDuration; 113 animator.setDuration(duration).start(); 175 private void setOverviewPanelsAlpha(float alpha, int duration) { argument 182 if (duration == 0) { 186 .setDuration(duration) 224 startAnimator(int index, Animator animator, long duration) argument [all...] |
H A D | PinchToOverviewListener.java | 135 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/services/Telephony/src/com/android/phone/ |
H A D | CallTime.java | 121 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 D | IntroView.java | 86 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 D | OnRepeatedKeyInterceptListener.java | 60 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 D | TransitionAnimationView.java | 72 * @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/usbtuner/src/com/android/usbtuner/tvinput/ |
H A D | UsbTunerDebug.java | 117 long duration = currentTime - sUsbTunerDebug.mLastCheckTimestampMs; 118 if (duration != 0) { 121 / duration; 124 / duration; 127 / duration;
|
/packages/apps/Music/src/com/android/music/ |
H A D | IMediaPlaybackService.aidl | 33 long duration();
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/ |
H A D | ProgramGuidePerformanceTest.java | 48 long duration = end - start; 49 assertDuration("ShowMenu", SHOW_MENU_MAX_DURATION_MS, duration); 54 Log.d(TAG, msg + " duration " + actualMilliSeconds + " milliSeconds"); 55 assertTrue(msg + " duration expected to be <= " + expectedMaxMilliSeconds
|
/packages/inputmethods/LatinIME/java-overridable/src/com/android/inputmethod/latin/utils/ |
H A D | StatsUtils.java | 105 public static void onInputConnectionLaggy(final int operation, final long duration) { argument 108 public static void onDecoderLaggy(final int operation, final long duration) { argument
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
H A D | CallDetailHistoryAdapter.java | 50 * List of items to be concatenated together for duration strings. 105 TextView durationView = (TextView) result.findViewById(R.id.duration); 120 // Set the duration 125 durationView.setText(formatDurationAndDataUsage(details.duration, details.dataUsage)); 147 * Formats a string containing the call duration and the data usage (if specified). 151 * @return String containing call duration and data usage. 154 CharSequence duration = formatDuration(elapsedSeconds); 158 mDurationItems.add(duration); 163 return duration;
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
H A D | ConversationListSwipeHelper.java | 314 * the animation duration. Whether the item is dismissed to the left or right is dependent on 341 final long duration; 344 duration = calculateTranslationDuration(deltaX, velocityX); 346 duration = mDefaultDismissAnimationDuration; 350 itemView, animateTo, duration, UiUtils.DEFAULT_INTERPOLATOR); 368 final long duration; 371 duration = calculateTranslationDuration(translationX, velocityX); 373 duration = mDefaultRestoreAnimationDuration; 376 itemView, 0f, duration, UiUtils.DEFAULT_INTERPOLATOR); 391 final float animateTo, final long duration, fina 390 getSwipeTranslationXAnimator(final ConversationListItemView itemView, final float animateTo, final long duration, final TimeInterpolator interpolator) argument [all...] |
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | CallListAdapter.java | 94 TextView duration = (TextView) convertView.findViewById(R.id.duration); 102 duration.setText((durationMs / 1000) + " secs");
|