/frameworks/av/media/libmedia/ |
D | ToneGenerator.cpp | 31 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 941, 0 }, 0, 0}, 32 { .duration = 0 , .waveFreq = { 0 }, 0, 0}}, 35 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 697, 0 }, 0, 0 }, 36 { .duration = 0 , .waveFreq = { 0 }, 0, 0}}, 39 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1336, 697, 0 }, 0, 0 }, 40 { .duration = 0 , .waveFreq = { 0 }, 0, 0}}, 43 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1477, 697, 0 }, 0, 0 }, 44 { .duration = 0 , .waveFreq = { 0 }, 0, 0}}, 47 … { .segments = { { .duration = ToneGenerator::TONEGEN_INF, .waveFreq = { 1209, 770, 0 }, 0, 0 }, 48 { .duration = 0 , .waveFreq = { 0 }, 0, 0}}, [all …]
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | LocationCluster.java | 48 public LocationCluster(Location location, long duration) { in LocationCluster() argument 50 addSample(location, duration); in LocationCluster() 53 public void addSample(Location location, long duration) { in addSample() argument 54 updateTemporalHistogram(location.getTime(), duration); in addSample() local 58 location.setTime(duration); in addSample() 73 long duration = location.getTime(); // in seconds in consolidate() local 75 if (duration == 0) { in consolidate() 79 newDuration += duration; in consolidate() 81 newCenter[i] += vector[i] * duration; in consolidate() 101 long duration = entry.getValue(); in consolidate() local [all …]
|
/frameworks/support/design/src/android/support/design/widget/ |
D | SnackbarManager.java | 70 public void show(int duration, Callback callback) { in show() argument 74 mCurrentSnackbar.duration = duration; in show() 83 mNextSnackbar.duration = duration; in show() 86 mNextSnackbar = new SnackbarRecord(duration, callback); in show() 170 private int duration; field in SnackbarManager.SnackbarRecord 172 SnackbarRecord(int duration, Callback callback) { in SnackbarRecord() argument 174 this.duration = duration; in SnackbarRecord() 217 if (r.duration == Snackbar.LENGTH_INDEFINITE) { in scheduleTimeoutLocked() 223 if (r.duration > 0) { in scheduleTimeoutLocked() 224 durationMs = r.duration; in scheduleTimeoutLocked() [all …]
|
/frameworks/support/v4/java/android/support/v4/util/ |
D | TimeUtils.java | 75 private static int formatDurationLocked(long duration, int fieldLen) { in formatDurationLocked() argument 82 if (duration == 0) { in formatDurationLocked() 93 if (duration > 0) { in formatDurationLocked() 97 duration = -duration; in formatDurationLocked() 100 int millis = (int)(duration%1000); in formatDurationLocked() 101 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() 147 public static void formatDuration(long duration, StringBuilder builder) { in formatDuration() argument 149 int len = formatDurationLocked(duration, 0); in formatDuration() 155 public static void formatDuration(long duration, PrintWriter pw, int fieldLen) { in formatDuration() argument 157 int len = formatDurationLocked(duration, fieldLen); in formatDuration() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 98 int duration = mp.getDuration(); in getDuration() local 99 Log.v(TAG, "Duration " + duration); in getDuration() 102 return duration; in getDuration() 166 int duration = 0; in setLooping() local 174 duration = mp.getDuration(); in setLooping() 175 Log.v(TAG, "setLooping duration " + duration); in setLooping() 179 mp.seekTo(duration - 5000); in setLooping() 211 int duration = mp.getDuration(); in pause() local 334 int duration = 0; in videoSeekTo() local 355 duration = mp.getDuration(); in videoSeekTo() [all …]
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | DurationTest.java | 30 Duration duration = new Duration(); in verifyDuration() local 31 duration.parse(str); in verifyDuration() 33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); in verifyDuration() 34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); in verifyDuration() 35 assertEquals("Duration days is not equal for " + str, days, duration.days); in verifyDuration() 36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); in verifyDuration() 37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); in verifyDuration() 38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds); in verifyDuration()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/ |
D | AnimationProps.java | 71 public AnimationProps(int duration, Interpolator interpolator) { in AnimationProps() argument 72 this(0, duration, interpolator, null); in AnimationProps() 79 public AnimationProps(int duration, Interpolator interpolator, in AnimationProps() argument 81 this(0, duration, interpolator, listener); in AnimationProps() 88 public AnimationProps(int startDelay, int duration, Interpolator interpolator) { in AnimationProps() argument 89 this(startDelay, duration, interpolator, null); in AnimationProps() 96 public AnimationProps(int startDelay, int duration, Interpolator interpolator, in AnimationProps() argument 99 setDuration(ALL, duration); in AnimationProps() 171 public AnimationProps setDuration(@PropType int propertyType, int duration) { in setDuration() argument 175 mPropDuration.append(propertyType, duration); in setDuration() [all …]
|
/frameworks/base/libs/hwui/ |
D | FrameInfoVisualizer.h | 69 float duration = mFrameSource[index].duration(start, end) * 0.000001f; in durationMS() local 71 duration = duration > 50.0f ? 50.0f : duration; in durationMS() 72 return duration > 0.0f ? duration : 0.0f; in durationMS()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ToneSettings.java | 27 public Duration duration; field in ToneSettings 31 public ToneSettings(Duration duration, Tone tone, boolean vibrate) { in ToneSettings() argument 32 this.duration = duration; in ToneSettings() 38 duration = in.readParcelable(null); in ToneSettings() 50 dest.writeParcelable(duration, 0); in writeToParcel()
|
/frameworks/base/core/java/com/android/internal/view/animation/ |
D | FallbackLUTInterpolator.java | 40 public FallbackLUTInterpolator(TimeInterpolator interpolator, long duration) { in FallbackLUTInterpolator() argument 42 mLut = createLUT(interpolator, duration); in FallbackLUTInterpolator() 45 private static float[] createLUT(TimeInterpolator interpolator, long duration) { in createLUT() argument 49 int numAnimFrames = Math.max(2, (int) Math.ceil(((double) duration) / animIntervalMs)); in createLUT() 67 public static long createNativeInterpolator(TimeInterpolator interpolator, long duration) { in createNativeInterpolator() argument 68 float[] lut = createLUT(interpolator, duration); in createNativeInterpolator()
|
/frameworks/wilhelm/tests/listening/ |
D | seekTorture.c | 86 SLmillisecond duration; in main() local 87 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main() 91 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main() 100 unsigned position, duration; in main() local 101 while (fscanf(fp_map, "%u %u", &position, &duration) == 2) { in main() 102 printf("%u %u\n", position, duration); in main() 106 if (duration > 0) in main() 107 usleep(duration * 1000); in main() 124 SLmillisecond newPos = duration * ((rand() & 65535) / 65536.0); in main()
|
/frameworks/base/core/java/android/widget/ |
D | Chronometer.java | 328 int duration = (int) (ms / DateUtils.SECOND_IN_MILLIS); in formatDuration() local 329 if (duration < 0) { in formatDuration() 330 duration = -duration; in formatDuration() 336 if (duration >= HOUR_IN_SEC) { in formatDuration() 337 h = duration / HOUR_IN_SEC; in formatDuration() 338 duration -= h * HOUR_IN_SEC; in formatDuration() 340 if (duration >= MIN_IN_SEC) { in formatDuration() 341 m = duration / MIN_IN_SEC; in formatDuration() 342 duration -= m * MIN_IN_SEC; in formatDuration() 344 int s = duration; in formatDuration()
|
D | DateTimeView.java | 230 long duration = Math.abs(now - mTimeMillis); 235 if (duration < MINUTE_IN_MILLIS) { 239 } else if (duration < HOUR_IN_MILLIS) { 240 count = (int)(duration / MINUTE_IN_MILLIS); 247 } else if (duration < DAY_IN_MILLIS) { 248 count = (int)(duration / HOUR_IN_MILLIS); 255 } else if (duration < YEAR_IN_MILLIS) { 272 count = (int)(duration / YEAR_IN_MILLIS); 343 long duration = Math.abs(now - mTimeMillis); in onInitializeAccessibilityNodeInfoInternal() local 347 if (duration < MINUTE_IN_MILLIS) { in onInitializeAccessibilityNodeInfoInternal() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | PerfMeasurement.java | 184 long duration = getNextGlDuration(); in stopTimer() local 185 if (duration > 0) { in stopTimer() 186 mCollectedGpuDurations.add(duration); in stopTimer() 192 if (duration == FAILED_TIMING) { in stopTimer() 228 long duration = nativeGetNextGlDuration(mNativeContext); in getNextGlDuration() local 229 if (duration > 0) { in getNextGlDuration() 232 return duration; in getNextGlDuration()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustArchive.java | 51 final long duration; field in TrustArchive.Event 58 long duration, int flags, boolean managingTrust) { in Event() argument 64 this.duration = duration; in Event() 73 long duration, int flags) { in logGrantTrust() argument 74 addEvent(new Event(TYPE_GRANT_TRUST, userId, agent, message, duration, in logGrantTrust() 134 ev.message, formatDuration(ev.duration), dumpGrantFlags(ev.flags)); in dump() 146 public static String formatDuration(long duration) { in formatDuration() argument 148 TimeUtils.formatDuration(duration, sb); in formatDuration()
|
/frameworks/base/core/java/android/util/ |
D | TimeUtils.java | 317 private static int formatDurationLocked(long duration, int fieldLen) { in formatDurationLocked() argument 324 if (duration == 0) { in formatDurationLocked() 335 if (duration > 0) { in formatDurationLocked() 339 duration = -duration; in formatDurationLocked() 342 int millis = (int)(duration%1000); in formatDurationLocked() 343 int seconds = (int) Math.floor(duration / 1000); in formatDurationLocked() 389 public static void formatDuration(long duration, StringBuilder builder) { in formatDuration() argument 391 int len = formatDurationLocked(duration, 0); in formatDuration() 397 public static void formatDuration(long duration, PrintWriter pw, int fieldLen) { in formatDuration() argument 399 int len = formatDurationLocked(duration, fieldLen); in formatDuration() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | LayoutTransition.java | 323 public void setDuration(long duration) { in setDuration() argument 324 mChangingAppearingDuration = duration; in setDuration() 325 mChangingDisappearingDuration = duration; in setDuration() 326 mChangingDuration = duration; in setDuration() 327 mAppearingDuration = duration; in setDuration() 328 mDisappearingDuration = duration; in setDuration() 483 public void setDuration(int transitionType, long duration) { in setDuration() argument 486 mChangingAppearingDuration = duration; in setDuration() 489 mChangingDisappearingDuration = duration; in setDuration() 492 mChangingDuration = duration; in setDuration() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | Snackbars.java | 26 public static final Snackbar makeSnackbar(Activity activity, int messageId, int duration) { in makeSnackbar() argument 28 activity, activity.getResources().getText(messageId), duration); in makeSnackbar() 32 Activity activity, CharSequence message, int duration) { in makeSnackbar() argument 34 return Snackbar.make(view, message, duration); in makeSnackbar()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/mediaplayback/ |
D | MediaPlayerApiTest.java | 58 public boolean verifyDuration(int duration, int expectedDuration){ in verifyDuration() argument 59 if ((duration > expectedDuration * 1.1) || (duration < expectedDuration * 0.9)) in verifyDuration() 71 int duration = CodecTest.getDuration(MediaNames.MP3CBR); in testMP3CBRGetDuration() local 72 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3CBR_LENGTH); in testMP3CBRGetDuration() 78 int duration = CodecTest.getDuration(MediaNames.MP3VBR); in testMP3VBRGetDuration() local 80 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3VBR_LENGTH); in testMP3VBRGetDuration() 86 int duration = CodecTest.getDuration(MediaNames.MIDI); in testMIDIGetDuration() local 87 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MIDI_LENGTH); in testMIDIGetDuration() 93 int duration = CodecTest.getDuration(MediaNames.AMR); in testAMRGetDuration() local 94 duratoinWithinTolerence = verifyDuration(duration, MediaNames.AMR_LENGTH); in testAMRGetDuration()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DimLayer.java | 244 private boolean durationEndsEarlier(long duration) { in durationEndsEarlier() argument 245 return SystemClock.uptimeMillis() + duration < mStartTime + mDuration; in durationEndsEarlier() 265 void show(int layer, float alpha, long duration) { in show() argument 267 + " duration=" + duration + ", mDestroyed=" + mDestroyed); in show() 286 if ((animating && (mTargetAlpha != alpha || durationEndsEarlier(duration))) in show() 288 if (duration <= 0) { in show() 295 mDuration = duration; in show() 318 void hide(long duration) { in hide() argument 319 if (mShowing && (mTargetAlpha != 0 || durationEndsEarlier(duration))) { in hide() 320 if (DEBUG_DIM_LAYER) Slog.v(TAG, "hide: duration=" + duration); in hide() [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | urimime.c | 123 SLmillisecond duration; in main() local 124 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main() 126 if (SL_TIME_UNKNOWN == duration) in main() 129 printf("Duration: %.1f\n", duration / 1000.0f); in main() 147 result = (*playerPlay)->GetDuration(playerPlay, &duration); in main() 149 if (SL_TIME_UNKNOWN == duration) in main() 152 printf("Duration: %.1f\n", duration / 1000.0f); in main()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | KeyguardAffordanceView.java | 274 private void startRtCircleFadeOut(long duration) { in startRtCircleFadeOut() argument 277 animator.setDuration(duration); in startRtCircleFadeOut() 351 long duration = 250; in setCircleRadius() local 355 duration = (long) (CIRCLE_APPEAR_DURATION * durationFactor); in setCircleRadius() 356 duration = Math.min(duration, CIRCLE_DISAPPEAR_MAX_DURATION); in setCircleRadius() 358 animator.setDuration(duration); in setCircleRadius() 366 mPreviewClipper.setDuration(duration); in setCircleRadius() 415 public void setImageScale(float imageScale, boolean animate, long duration, in setImageScale() argument 438 if (duration == -1) { in setImageScale() 442 duration = (long) (NORMAL_ANIMATION_DURATION * durationFactor); in setImageScale() [all …]
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | AnimatorSetActivityTest.java | 142 long duration = list.get(i).getDuration(); in testTotalDuration() local 144 maxDuration = maxDuration > (duration + 100) ? maxDuration : (duration + 100); in testTotalDuration() 164 long duration = a1.getDuration() + a1.getStartDelay() + a2.getDuration() + a2 in testTotalDuration() local 168 duration = Math.max(duration, a4Duration); in testTotalDuration() 169 duration = Math.max(duration, a5Duration); in testTotalDuration() 170 assertEquals(duration, s5.getTotalDuration()); in testTotalDuration() 185 long duration = 200; in testGetDuration() 186 s.setDuration(duration); in testGetDuration() 187 assertEquals(duration, s.getDuration()); in testGetDuration() 197 long duration = 300; [all …]
|
/frameworks/base/core/java/android/os/ |
D | SystemClock.java | 116 long duration = ms; in sleep() local 120 Thread.sleep(duration); in sleep() 125 duration = start + ms - uptimeMillis(); in sleep() 126 } while (duration > 0); in sleep()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/animation/ |
D | DisappearAnimationUtils.java | 34 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument 36 this(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator, in DisappearAnimationUtils() 40 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument 42 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
|