/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/browser/ |
H A D | MusicProvider.java | 58 private static String DURATION = "duration"; 112 int duration = music.getInt(DURATION) * 1000; // ms 115 image, trackNumber, totalTrackCount, duration));
|
/frameworks/native/libs/input/ |
H A D | VelocityTracker.cpp | 894 nsecs_t duration = movement.eventTime - oldestMovement.eventTime; local 896 // If the duration between samples is small, we may significantly overestimate 897 // the velocity. Consequently, we impose a minimum duration constraint on the 899 if (duration >= MIN_DURATION) { 901 float scale = 1000000000.0f / duration; // one over time delta in seconds 904 accumVx = (accumVx * lastDuration + vx * duration) / (duration + lastDuration); 905 accumVy = (accumVy * lastDuration + vy * duration) / (duration + lastDuration); 906 lastDuration = duration; [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | FrameTracker.cpp | 198 nsecs_t duration = newPresentTime - prevPresentTime; local 199 int numPeriods = int((duration + mDisplayPeriod/2) / 210 // The last duration bucket is a catch-all.
|
/frameworks/support/v17/leanback/kitkat/android/support/v17/leanback/transition/ |
H A D | TransitionHelperKitkat.java | 160 static void setDuration(Object transition, long duration) { argument 161 ((Transition)transition).setDuration(duration);
|
/frameworks/wilhelm/src/android/util/ |
H A D | AacAdtsExtractor.cpp | 128 // Round up and get the duration of each frame 153 // Compute total duration 154 int64_t duration = numFrames * mFrameDurationUs; local 155 mMeta->setInt64(kKeyDuration, duration);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconController.java | 353 long duration) { 367 mTintAnimator.setDuration(duration); 433 public void appTransitionStarting(long startTime, long duration) { argument 438 duration); 446 mTransitionDeferringDuration = duration; 352 animateIconTint(float targetDarkIntensity, long delay, long duration) argument
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.java | 314 long duration = end - start; 329 final long fracRxBytes = rxBytes * overlap / duration; 330 final long fracRxPackets = rxPackets * overlap / duration; 331 final long fracTxBytes = txBytes * overlap / duration; 332 final long fracTxPackets = txPackets * overlap / duration; 333 final long fracOperations = operations * overlap / duration; 342 duration -= overlap;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | ExpandableNotificationRow.java | 262 StackStateAnimator stateAnimator, boolean withDelays, long delay, long duration) { 265 duration); 731 long duration) { 749 animateShowingPublic(delay, duration); 756 private void animateShowingPublic(long delay, long duration) { argument 767 .setDuration(duration) 777 .setDuration(duration); 261 startChildAnimation(StackScrollState finalState, StackStateAnimator stateAnimator, boolean withDelays, long delay, long duration) argument 730 setHideSensitive(boolean hideSensitive, boolean animated, long delay, long duration) argument
|
/frameworks/base/core/java/android/transition/ |
H A D | TransitionSet.java | 135 * <p>If this transitionSet has a {@link #getDuration() duration} set on it, the 136 * child transition will inherit that duration. Transitions are assumed to have 179 * Setting a non-negative duration on a TransitionSet causes all of the child 180 * transitions (current and future) to inherit this duration. 182 * @param duration The length of the animation, in milliseconds. 186 public TransitionSet setDuration(long duration) { argument 187 super.setDuration(duration); 191 mTransitions.get(i).setDuration(duration);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 85 * content for the duration of the animation. 91 * content for the duration of the animation. 150 * The duration of one animation cycle in milliseconds. 219 * Creates a new animation with a duration of 0ms, the default interpolator, with 421 * How long this animation should last. The duration cannot be negative. 425 * @throws java.lang.IllegalArgumentException if the duration is < 0 431 throw new IllegalArgumentException("Animation duration cannot be negative"); 437 * Ensure that the duration that this animation will run is not longer 438 * than <var>durationMillis</var>. In addition to adjusting the duration 442 * @param durationMillis The maximum duration th [all...] |
/frameworks/av/media/libstagefright/ |
H A D | MPEG4Writer.cpp | 440 snprintf(buffer, SIZE, " duration encoded : %" PRId64 " us\n", mTrackDurationUs); 593 // Max file duration limit is set 599 // When both file size and duration limits are set, 605 // Only max file duration limit is set 615 // Any long duration recording will be probably end up with 1013 int32_t duration = (durationUs * mTimeScale + 5E5) / 1E6; local 1014 writeInt32(duration); 1505 size_t sampleCount, int32_t duration) { 1507 if (duration == 0) { 1508 ALOGW("0-duration sample 1504 addOneSttsTableEntry( size_t sampleCount, int32_t duration) argument 1514 addOneCttsTableEntry( size_t sampleCount, int32_t duration) argument 3099 uint32_t duration; local 3127 uint32_t duration; local [all...] |
/frameworks/av/include/media/ |
H A D | ToneGenerator.h | 210 static const unsigned int TONEGEN_INF = 0xFFFFFFFF; // Represents infinite time duration 222 // The data stored in segments[] is the duration of the corresponding period in ms. 223 // The first segment encountered with a 0 duration indicates that no more segment follows. 227 // When the tone generator encounters the first 0 duration segment, it will compare repeatCnt to mCurCount. 234 unsigned int duration; member in class:android::ToneGenerator::ToneSegment 253 // only if tone duration is less than about 27 Hours(@44100Hz sampling rate). If this time is exceeded, 255 unsigned int mMaxSmp; // Maximum number of audio samples played (maximun tone duration) 256 int mDurationMs; // Maximum tone duration in ms 275 struct timespec mStartTime; // tone start time: needed to guaranty actual tone duration
|
/frameworks/av/include/media/stagefright/ |
H A D | MPEG4Writer.h | 63 status_t setInterleaveDuration(uint32_t duration);
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
H A D | mp4lib_int.h | 251 int32 duration; member in struct:tagVideoDecData
|
/frameworks/base/core/java/android/animation/ |
H A D | Animator.java | 173 * Sets the duration of the animation. 175 * @param duration The length of the animation, in milliseconds. 177 public abstract Animator setDuration(long duration); argument 180 * Gets the duration of the animation. 514 * to change duration, delay, etc... may be ignored.</li>
|
H A D | ValueAnimator.java | 52 * each keyframe to determine when, in the overall duration, the animation should arrive at that 54 * distributed within the total duration:</p> 544 * Sets the length of the animation. The default duration is 300 milliseconds. 546 * @param duration The length of the animation, in milliseconds. This value cannot 550 * duration, as in <code>ValueAnimator.ofInt(0, 10).setDuration(500).start()</code>. 553 public ValueAnimator setDuration(long duration) { argument 554 if (duration < 0) { 555 throw new IllegalArgumentException("Animators cannot have negative duration: " + 556 duration); 558 mUnscaledDuration = duration; [all...] |
/frameworks/base/core/java/android/view/ |
H A D | ViewPropertyAnimator.java | 56 * The duration of the underlying Animator object. By default, we don't set the duration 57 * on the Animator and just use its default duration. If the duration is ever set on this 58 * Animator, then we use the duration that it was set to. 63 * A flag indicating whether the duration has been set on this object. If not, we don't set 64 * the duration on the underlying Animator, but instead just use its default duration. 106 * (duration, start delay, interpolator, etc.). 257 * Sets the duration fo 264 setDuration(long duration) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | RotarySelector.java | 615 private void startAnimation(int startX, int endX, int duration) { argument 618 mAnimationDuration = duration; 678 private synchronized void vibrate(long duration) { argument 687 mVibrator.vibrate(duration, VIBRATION_ATTRIBUTES);
|
H A D | ResolverDrawerLayout.java | 478 int duration = 0; 481 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); 484 duration = (int) ((pageDelta + 1) * 100); 486 duration = Math.min(duration, 300); 488 mScroller.startScroll(0, sy, 0, dy, duration);
|
/frameworks/wilhelm/tests/sandbox/ |
H A D | reverb.c | 607 // set play state to paused to enable pre-fetch so we can get a more reliable duration 622 // get the duration 623 SLmillisecond duration; local 624 result = (*playerPlay)->GetDuration(playerPlay, &duration); 626 if (SL_TIME_UNKNOWN == duration) { 627 printf("duration: unknown\n"); 629 printf("duration: %.1f seconds\n", duration / 1000.0);
|
/frameworks/base/core/java/android/app/ |
H A D | INotificationManager.aidl | 40 void enqueueToast(String pkg, ITransientNotification callback, int duration);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | SearchOrbView.java | 229 private void startShadowFocusAnimation(boolean gainFocus, int duration) { argument 239 mShadowFocusAnimator.setDuration(duration);
|
/frameworks/opt/net/voip/src/jni/rtp/ |
H A D | AudioGroup.cpp | 284 int duration = mTimestamp - mDtmfStart; local 285 // Make sure duration is reasonable. 286 if (duration >= 0 && duration < mSampleRate * DTMF_PERIOD) { 287 duration += mSampleCount; 292 static_cast<int32_t>(htonl(mDtmfEvent | duration)), 294 if (duration >= mSampleRate * DTMF_PERIOD) {
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | ViewDragHelper.java | 596 final int duration = computeSettleDuration(mCapturedView, dx, dy, xvel, yvel); 597 mScroller.startScroll(startLeft, startTop, dx, dy, duration); 635 int duration; 638 duration = 4 * Math.round(1000 * Math.abs(distance / velocity)); 641 duration = (int) ((range + 1) * BASE_SETTLE_DURATION); 643 return Math.min(duration, MAX_SETTLE_DURATION);
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | AppOpsService.java | 148 public int duration; field in class:AppOpsService.Op 374 curOp.rejectTime, curOp.duration, curOp.proxyUid, 385 curOp.rejectTime, curOp.duration, curOp.proxyUid, 958 if (op.duration == -1) { 960 + " code " + code + " time=" + op.time + " duration=" + op.duration); 962 op.duration = 0; 1032 op.duration = -1; 1070 op.duration = (int)(System.currentTimeMillis() - op.time); 1071 op.time += op.duration; [all...] |