/frameworks/av/media/libstagefright/webm/ |
WebmWriter.cpp | 195 // Max file duration limit is set 200 // When both file size and duration limits are set, 206 // Only max file duration limit is set 216 // Any long duration recording will be probably end up with 297 ALOGD("Duration from tracks range is [%" PRId64 ", %" PRId64 "] us", minDurationUs, maxDurationUs); 338 sp<WebmElement> duration = new WebmFloat( local 341 duration->serializePayload(bary);
|
/frameworks/base/core/java/android/animation/ |
Animator.java | 32 * 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); 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(); local 202 if (duration == DURATION_INFINITE) { 205 return getStartDelay() + duration; [all...] |
/frameworks/base/core/java/android/os/ |
VibrationEffect.java | 300 * Gets the estimated duration of the vibration in milliseconds. 303 * returns Long.MAX_VALUE. For effects with an unknown duration (e.g. Prebaked effects where 387 "duration must be positive (duration=" + mDuration + ")"); 470 long duration = 0; local 472 duration += d; 474 return duration;
|
/frameworks/base/core/java/android/view/animation/ |
AnimationSet.java | 33 * (for example, duration or fillBefore), the values of AnimationSet 41 * <li>duration, repeatMode, fillBefore, fillAfter: These properties, when set 50 * <code>android:duration="500"</code> in an XML resource for an AnimationSet object.</p> 200 * <p>Sets the duration of every child animation.</p> 202 * @param durationMillis the duration of the animation, in milliseconds, for 294 * The duration of an AnimationSet is defined to be the 295 * duration of the longest child animation. 303 long duration = 0; local 307 duration = mDuration; 310 duration = Math.max(duration, animations.get(i).getDuration()) 324 long duration = 0; local 443 final long duration = mDuration; local [all...] |
/frameworks/base/core/java/android/widget/ |
Chronometer.java | 354 int duration = (int) (ms / DateUtils.SECOND_IN_MILLIS); local 355 if (duration < 0) { 356 duration = -duration; 362 if (duration >= HOUR_IN_SEC) { 363 h = duration / HOUR_IN_SEC; 364 duration -= h * HOUR_IN_SEC; 366 if (duration >= MIN_IN_SEC) { 367 m = duration / MIN_IN_SEC; 368 duration -= m * MIN_IN_SEC [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
BinderCallsStats.java | 78 long duration = mDetailedTracking ? getThreadTimeMicro() - s.mStarted : 1; local 97 callStat.time += duration; 100 uidEntry.time += duration;
|
/frameworks/base/libs/hwui/ |
Animator.h | 61 ANDROID_API nsecs_t duration() { return mDuration; } function in class:android::uirenderer::RepeatMode::BaseRenderNodeAnimator
|
/frameworks/base/media/jni/ |
android_media_MediaProfiles.cpp | 187 int duration = sProfiles->getCamcorderProfileParamByName("duration", id, q); local 200 if (duration == -1 || fileFormat == -1 || videoCodec == -1 || audioCodec == -1 || 212 duration,
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/ |
MediaPlayerApiTest.java | 58 public boolean verifyDuration(int duration, int expectedDuration){ 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); local 72 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3CBR_LENGTH); 78 int duration = CodecTest.getDuration(MediaNames.MP3VBR); local 80 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3VBR_LENGTH); 86 int duration = CodecTest.getDuration(MediaNames.MIDI); local 87 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MIDI_LENGTH) 93 int duration = CodecTest.getDuration(MediaNames.AMR); local [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/touch/ |
SwipeDetector.java | 349 long duration = (long) Math.max(100, ANIMATION_DURATION / velocityDivisor * travelDistance); local 351 Log.d(TAG, String.format("calculateDuration=%d, v=%f, d=%f", duration, velocity, progressNeeded)); 353 return duration;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
TaskStackViewScroller.java | 244 // TODO: Take duration for snap back 256 int duration = mContext.getResources().getInteger( local 258 animateScroll(newScroll, duration, postRunnable); 262 void animateScroll(float newScroll, int duration, final Runnable postRunnable) { 263 animateScroll(newScroll, duration, Interpolators.LINEAR_OUT_SLOW_IN, postRunnable); 267 void animateScroll(float newScroll, int duration, TimeInterpolator interpolator, 270 an.setDuration(duration);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
SnoozeHelper.java | 131 protected void snooze(NotificationRecord record, long duration) { 133 scheduleRepost(record.sbn.getPackageName(), record.getKey(), record.getUserId(), duration); local 319 private void scheduleRepost(String pkg, String key, int userId, long duration) { 324 long time = SystemClock.elapsedRealtime() + duration;
|
/frameworks/base/services/core/java/com/android/server/policy/ |
SystemGesturesPointerEventListener.java | 263 int duration = mOverscroller.getDuration(); local 264 if (duration > MAX_FLING_TIME_MILLIS) { 265 duration = MAX_FLING_TIME_MILLIS; 268 mCallbacks.onFling(duration);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
IntervalStats.java | 52 public long duration; field in class:IntervalStats.EventTracker 57 duration += timeStamp - duration; 73 if (count != 0 || duration != 0) { 77 ev.mTotalTime = duration;
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfoAsyncQuery.java | 231 final long duration = SystemClock.elapsedRealtime() - startTimeMillis; local 232 if (duration > 500) { 234 "Spends long time to retrieve Geo description: " + duration);
|
/frameworks/native/opengl/tests/hwc/ |
hwcStress.cpp | 151 static float duration = defaultDuration; variable 273 case 't': // Duration 274 duration = strtod(optarg, &chptr); 275 if ((*chptr != '\0') || (duration < 0.0)) { 276 testPrintE("Invalid command-line specified duration of: %s", 351 testPrintE(" -t Duration"); 366 testPrintE(" %s [-s start_pass] [-e end_pass] [-t duration]", 370 testPrintI("duration: %g", duration); 391 // Stop if duration of work has already been performe [all...] |
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/time/ |
RadialTextsView.java | 292 int duration = 500; local 306 this, radiusDisappear, fadeOut).setDuration(duration); 314 int totalDuration = (int) (duration * totalDurationMultiplier); 315 float delayPoint = (delayMultiplier * duration) / totalDuration;
|
/frameworks/wilhelm/tests/sandbox/ |
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);
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
arec.c | 50 static int duration = 0; variable 65 {"duration", 1, 0, 'T'}, 405 if (duration == 0) { 409 count *= (uint32_t)duration; 456 if (duration == 0) { 460 count *= (uint32_t)duration; 563 duration = (int)strtol(optarg, NULL, 0);
|
/libcore/ojluni/src/main/java/java/time/temporal/ |
IsoFields.java | 76 import java.time.Duration; 259 * The estimated duration of a week-based-year is the same as that of a standard ISO 272 * The estimated duration of a quarter-year is one quarter of {@code 365.2425 Days}. 649 WEEK_BASED_YEARS("WeekBasedYears", Duration.ofSeconds(31556952L)), 653 QUARTER_YEARS("QuarterYears", Duration.ofSeconds(31556952L / 4)); 656 private final Duration duration; field in class:IsoFields.Unit 658 private Unit(String name, Duration estimatedDuration) { 660 this.duration = estimatedDuration; 664 public Duration getDuration() [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
BluetoothMapSettingsAdapter.java | 343 int duration = Toast.LENGTH_SHORT; local 345 Toast toast = Toast.makeText(mActivity, text, duration); 350 int duration = Toast.LENGTH_SHORT; local 352 Toast toast = Toast.makeText(mActivity, text, duration);
|
/packages/apps/Camera2/src/com/android/camera/settings/ |
SettingsUtil.java | 45 * Returns the maximum video recording duration (in milliseconds). 48 int duration = 0; // in milliseconds, 0 means unlimited. local 50 duration = context.getResources().getInteger(R.integer.max_video_recording_length); 53 return duration;
|
/packages/apps/Gallery/src/com/android/camera/ |
MovieViewControl.java | 150 Video.VideoColumns.DURATION, 159 int duration = getCursorInteger(cursor, 0); local 162 || (duration < FIVE_MINUTES) 163 || (bookmark > (duration - ONE_MINUTE))) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
StateTransitionAnimation.java | 38 public int duration = 330; field in class:StateTransitionAnimation.Spec 109 setDuration(mTransitionSpec.duration);
|
/packages/apps/Music/src/com/android/music/ |
TrackBrowserActivity.java | 247 TextView duration; field in class:TrackBrowserActivity.TrackBrowseAdapter.ViewHolder 269 vh.duration = (TextView) convertView.findViewById(R.id.duration); 279 long duration = local 281 LogHelper.d(TAG, "duration: ", duration); 282 holder.duration.setText(MusicUtils.makeTimeString(getContext(), duration / 1000)); local
|