/frameworks/base/media/libmedia/ |
H A D | ToneGenerator.cpp | 36 { 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 D | SystemClock.java | 110 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 D | ToneSettings.java | 27 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 D | TextMessage.java | 31 public Duration duration = null; field in class:TextMessage 44 duration = in.readParcelable(null); 59 dest.writeParcelable(duration, 0);
|
H A D | CommandParams.java | 83 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 D | CamcorderProfile.java | 61 * 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 D | TimeUtils.java | 182 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 D | VibratorService.java | 294 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 D | MidiMetadataRetriever.cpp | 73 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 D | CodecTest.java | 91 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 D | MediaPlayerApiTest.java | 55 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 D | SipConnectionBase.java | 52 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 D | AnimationSet.java | 32 * (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 D | INotificationManager.aidl | 33 void enqueueToast(String pkg, ITransientNotification callback, int duration);
|
/frameworks/base/voip/java/android/net/sip/ |
H A D | ISipSession.aidl | 89 * @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 D | SipSessionAdapter.java | 55 public void onRegistrationDone(ISipSession session, int duration) { argument
|
H A D | ISipSessionListener.aidl | 105 * @param duration duration in second before the registration expires 107 void onRegistrationDone(in ISipSession session, int duration);
|
H A D | SipSession.java | 197 * @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 D | OverScroller.java | 174 * @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 D | Toast.java | 94 * 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 D | Movie.java | 35 public native int duration(); method in class:Movie
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | AnimationDrawable.java | 46 * <item android:drawable="@drawable/wheel0" android:duration="50" /> 47 * <item android:drawable="@drawable/wheel1" android:duration="50" /> 48 * <item android:drawable="@drawable/wheel2" android:duration="50" /> 49 * <item android:drawable="@drawable/wheel3" android:duration="50" /> 50 * <item android:drawable="@drawable/wheel4" android:duration="50" /> 51 * <item android:drawable="@drawable/wheel5" android:duration="50" /> 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 D | TimeUtilsTest.java | 445 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 D | MP3Extractor.cpp | 185 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 D | RecurrenceSetTest.java | 63 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
|