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

1234

/frameworks/base/media/libmedia/
H A DToneGenerator.cpp36 { segments: {{ duration: ToneGenerator::TONEGEN_INF, waveFreq: { 1336, 941, 0 }, 0, 0},
37 { duration: 0 , waveFreq: { 0 }, 0, 0}},
40 { segments: { { duration: ToneGenerator::TONEGEN_INF, waveFreq: { 1209, 697, 0 }, 0, 0 },
41 { duration: 0 , waveFreq: { 0 }, 0, 0}},
44 { segments: { { duration: ToneGenerator::TONEGEN_INF, waveFreq: { 1336, 697, 0 }, 0, 0 },
45 { duration: 0 , waveFreq: { 0 }, 0, 0}},
48 { segments: { { duration: ToneGenerator::TONEGEN_INF, waveFreq: { 1477, 697, 0 }, 0, 0 },
49 { duration: 0 , waveFreq: { 0 }, 0, 0}},
52 { segments: { { duration: ToneGenerator::TONEGEN_INF, waveFreq: { 1209, 770, 0 }, 0, 0 },
53 { duration
[all...]
/frameworks/base/core/java/android/os/
H A DSystemClock.java110 long duration = ms;
114 Thread.sleep(duration);
119 duration = start + ms - uptimeMillis();
120 } while (duration > 0);
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
H A DToneSettings.java27 public Duration duration; field in class:ToneSettings
31 public ToneSettings(Duration duration, Tone tone, boolean vibrate) { argument
32 this.duration = duration;
38 duration = in.readParcelable(null);
48 dest.writeParcelable(duration, 0);
H A DTextMessage.java31 public Duration duration = null; field in class:TextMessage
44 duration = in.readParcelable(null);
59 dest.writeParcelable(duration, 0);
H A DCommandParams.java83 Tone tone, Duration duration, boolean vibrate) {
86 this.settings = new ToneSettings(duration, tone, vibrate);
82 PlayToneParams(CommandDetails cmdDet, TextMessage textMsg, Tone tone, Duration duration, boolean vibrate) argument
/frameworks/base/media/java/android/media/
H A DCamcorderProfile.java61 * Default recording duration in seconds before the session is terminated.
64 public int duration; field in class:CamcorderProfile
162 private CamcorderProfile(int duration, argument
175 this.duration = duration;
/frameworks/base/core/java/android/util/
H A DTimeUtils.java182 private static int formatDurationLocked(long duration, int fieldLen) { argument
189 if (duration == 0) {
200 if (duration > 0) {
204 duration = -duration;
207 int millis = (int)(duration%1000);
208 int seconds = (int) Math.floor(duration / 1000);
254 public static void formatDuration(long duration, StringBuilder builder) { argument
256 int len = formatDurationLocked(duration, 0);
262 public static void formatDuration(long duration, PrintWrite argument
270 formatDuration(long duration, PrintWriter pw) argument
[all...]
/frameworks/base/services/java/com/android/server/
H A DVibratorService.java294 private void delay(long duration) { argument
295 if (duration > 0) {
299 this.wait(duration);
306 duration = duration
308 } while (duration > 0);
319 long duration = 0;
322 // add off-time duration to any accumulated on-time duration
324 duration
[all...]
/frameworks/base/media/libmediaplayerservice/
H A DMidiMetadataRetriever.cpp73 int duration = -1; local
74 if (mMidiPlayer->getDuration(&duration) != NO_ERROR) {
75 LOGE("failed to get duration");
78 snprintf(mMetadataValues[0], MAX_METADATA_STRING_LENGTH, "%d", duration);
81 LOGV("duration: %s ms", mMetadataValues[0]);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/
H A DCodecTest.java91 int duration = mp.getDuration();
92 Log.v(TAG, "Duration " + duration);
95 return duration;
120 Log.v(TAG, "mp currentPositon = " + currentPosition + " play duration = " + (t2-t1));
159 int duration = 0;
167 duration = mp.getDuration();
168 Log.v(TAG, "setLooping duration " + duration);
172 mp.seekTo(duration - 5000);
181 Log.v(TAG, "looping position " + currentPosition + "duration
[all...]
H A DMediaPlayerApiTest.java55 public boolean verifyDuration(int duration, int expectedDuration){ argument
56 if ((duration > expectedDuration * 1.1) || (duration < expectedDuration * 0.9))
65 //Wait for PV bugs for MP3 duration
68 int duration = CodecTest.getDuration(MediaNames.MP3CBR);
69 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3CBR_LENGTH);
75 int duration = CodecTest.getDuration(MediaNames.MP3VBR);
77 duratoinWithinTolerence = verifyDuration(duration, MediaNames.MP3VBR_LENGTH);
83 int duration = CodecTest.getDuration(MediaNames.MIDI);
84 duratoinWithinTolerence = verifyDuration(duration, MediaName
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/sip/
H A DSipConnectionBase.java52 private long duration = -1L; field in class:SipConnectionBase
77 duration = getDurationMillis();
105 } else if (duration < 0) {
108 return duration;
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java32 * (for example, duration or fillBefore), the values of AnimationSet
141 * <p>Sets the duration of every child animation.</p>
143 * @param durationMillis the duration of the animation, in milliseconds, for
226 * The duration of an AnimationSet is defined to be the
227 * duration of the longest child animation.
235 long duration = 0;
239 duration = mDuration;
242 duration = Math.max(duration, animations.get(i).getDuration());
246 return duration;
[all...]
/frameworks/base/core/java/android/app/
H A DINotificationManager.aidl33 void enqueueToast(String pkg, ITransientNotification callback, int duration);
/frameworks/base/voip/java/android/net/sip/
H A DISipSession.aidl89 * @param duration duration in second before the registration expires
92 void register(int duration);
97 * expiration duration. The session listener is called back upon success or
H A DSipSessionAdapter.java55 public void onRegistrationDone(ISipSession session, int duration) { argument
H A DISipSessionListener.aidl105 * @param duration duration in second before the registration expires
107 void onRegistrationDone(in ISipSession session, int duration);
H A DSipSession.java197 * @param duration duration in second before the registration expires
199 public void onRegistrationDone(SipSession session, int duration) { argument
346 * @param duration duration in second before the registration expires
349 public void register(int duration) { argument
351 mSession.register(duration);
360 * expiration duration. The session listener is called back upon success or
512 public void onRegistrationDone(ISipSession session, int duration) {
514 mListener.onRegistrationDone(SipSession.this, duration);
[all...]
/frameworks/base/core/java/android/widget/
H A DOverScroller.java174 * @return The duration of the scroll in milliseconds.
177 * @deprecated OverScrollers don't necessarily have a fixed duration.
193 * @deprecated OverScrollers don't necessarily have a fixed duration.
195 * the duration of an existing scroll, use startScroll
213 * the duration of an existing scroll, use startScroll
230 * the duration of an existing scroll, use startScroll
253 final int duration = mScrollerX.mDuration;
254 if (elapsedTime < duration) {
255 float q = (float) (elapsedTime) / duration;
295 * duration
323 startScroll(int startX, int startY, int dx, int dy, int duration) argument
567 startScroll(int start, int distance, int duration) argument
[all...]
H A DToast.java94 * Show the view for the specified duration.
117 * after the appropriate duration.
145 public void setDuration(int duration) { argument
146 mDuration = duration;
150 * Return the duration.
226 * @param duration How long to display the message. Either {@link #LENGTH_SHORT} or
230 public static Toast makeText(Context context, CharSequence text, int duration) { argument
240 result.mDuration = duration;
251 * @param duration How long to display the message. Either {@link #LENGTH_SHORT} or
256 public static Toast makeText(Context context, int resId, int duration) argument
[all...]
/frameworks/base/graphics/java/android/graphics/
H A DMovie.java35 public native int duration(); method in class:Movie
/frameworks/base/graphics/java/android/graphics/drawable/
H A DAnimationDrawable.java46 * &lt;item android:drawable=&quot;@drawable/wheel0&quot; android:duration=&quot;50&quot; /&gt;
47 * &lt;item android:drawable=&quot;@drawable/wheel1&quot; android:duration=&quot;50&quot; /&gt;
48 * &lt;item android:drawable=&quot;@drawable/wheel2&quot; android:duration=&quot;50&quot; /&gt;
49 * &lt;item android:drawable=&quot;@drawable/wheel3&quot; android:duration=&quot;50&quot; /&gt;
50 * &lt;item android:drawable=&quot;@drawable/wheel4&quot; android:duration=&quot;50&quot; /&gt;
51 * &lt;item android:drawable=&quot;@drawable/wheel5&quot; android:duration=&quot;50&quot; /&gt;
164 * @return The duration in milliseconds of the frame at the
191 * @param duration How long in milliseconds the frame should appear
193 public void addFrame(Drawable frame, int duration) { argument
194 mAnimationState.addFrame(frame, duration);
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DTimeUtilsTest.java445 private void assertFormatDuration(String expected, long duration) { argument
447 TimeUtils.formatDuration(duration, sb);
448 assertEquals("formatDuration(" + duration + ")", expected, sb.toString());
/frameworks/base/media/libstagefright/
H A DMP3Extractor.cpp185 int64_t *duration = NULL) {
199 if (duration) {
200 *duration = 0;
274 if (duration) {
275 *duration = (int64_t)frame * samplesPerFrames[id&1][3-layer] * 1000000LL
545 int64_t duration; local
548 mTableOfContents, NULL, &duration);
549 if (duration > 0) {
550 mMeta->setInt64(kKeyDuration, duration);
657 int64_t duration; local
[all...]
/frameworks/base/core/tests/coretests/src/android/pim/
H A DRecurrenceSetTest.java63 String exrule, String exdate, long dtstart, String tzid, String duration, int allDay)
78 assertEquals(duration, values.get(android.provider.Calendar.Events.DURATION));
62 verifyPopulateContentValues(String recurrence, String rrule, String rdate, String exrule, String exdate, long dtstart, String tzid, String duration, int allDay) argument

Completed in 275 milliseconds

1234