/packages/apps/Browser/src/com/android/browser/ |
H A D | LogTag.java | 42 * @param duration the time the browser spent loading the page. 44 public static void logPageFinishedLoading(String url, long duration) { argument 46 + duration); 53 * @param duration the time spent on the webpage. 55 public static void logTimeOnPage(String url, long duration) { argument 57 + duration);
|
/packages/apps/Stk/src/com/android/stk/ |
H A D | StkApp.java | 44 * This function calculate the time in MS from a duration instance. 45 * returns zero when duration is null. 47 public static int calculateDurationInMilis(Duration duration) { argument 49 if (duration != null) { 50 switch (duration.timeUnit) { 62 timeout *= duration.timeInterval;
|
/packages/apps/Gallery2/src/com/android/gallery3d/anim/ |
H A D | FloatAnimation.java | 25 public FloatAnimation(float from, float to, int duration) { argument 29 setDuration(duration);
|
H A D | Animation.java | 25 // 1. First we need to use setDuration(int) to set the duration of the 26 // animation. The duration is in milliseconds. 43 // before calculate is passed a value which reaches the duration of the 60 public void setDuration(int duration) { argument 61 mDuration = duration;
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
H A D | DurationTest.java | 30 Duration duration = new Duration(); 31 duration.parse(str); 33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); 34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); 35 assertEquals("Duration days is not equal for " + str, days, duration.days); 36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); 37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); 38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
|
/packages/apps/Contacts/src/com/android/contacts/ |
H A D | PhoneCallDetails.java | 43 /** The duration of the call in milliseconds, or 0 for missed calls. */ 44 public final long duration; field in class:PhoneCallDetails 63 String countryIso, String geocode, int[] callTypes, long date, long duration) { 64 this(number, formattedNumber, countryIso, geocode, callTypes, date, duration, "", 0, "", 70 String countryIso, String geocode, int[] callTypes, long date, long duration, 79 this.duration = duration; 62 PhoneCallDetails(CharSequence number, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration) argument 69 PhoneCallDetails(CharSequence number, CharSequence formattedNumber, String countryIso, String geocode, int[] callTypes, long date, long duration, CharSequence name, int numberType, CharSequence numberLabel, Uri contactUri, Uri photoUri) argument
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | InterruptibleInOutAnimator.java | 47 public InterruptibleInOutAnimator(long duration, float fromValue, float toValue) { argument 48 mAnimator = ValueAnimator.ofFloat(fromValue, toValue).setDuration(duration); 49 mOriginalDuration = duration; 74 // Ensure we don't calculate a non-sensical duration 75 long duration = mOriginalDuration - currentPlayTime; 76 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); 103 * direction and animate for a correspondingly shorter duration. 113 * direction and animate for a correspondingly shorter duration.
|
H A D | SymmetricalLinearTween.java | 23 * Provides an animation between 0.0f and 1.0f over a given duration. 40 * @param duration milliseconds duration 43 public SymmetricalLinearTween(boolean initial, int duration, TweenCallback callback) { argument 46 mDuration = duration; 93 int duration = mDuration; 94 float val = diff/(float)duration; 108 if (diff < duration) { 111 if (diff >= duration) {
|
H A D | SmoothPagedView.java | 135 int duration = (screenDelta + 1) * 100; 149 duration += (duration / (velocity / mBaseLineFlingVelocity)) * mFlingVelocityInfluence; 151 duration += 100; 154 snapToPage(whichPage, delta, duration);
|
H A D | PagedViewIcon.java | 160 int duration; 163 duration = mCheckedFadeInDuration; 166 duration = mCheckedFadeOutDuration; 175 mCheckedAlphaAnimator.setDuration(duration);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactNameHighlightingAnimation.java | 31 public ContactNameHighlightingAnimation(ListView listView, int duration) { argument 32 super(duration);
|
/packages/apps/Phone/src/com/android/phone/ |
H A D | CallTime.java | 121 long duration = getCallDuration(call); 122 mListener.onTickForCallTimeElapsed(duration / 1000); 127 * Returns a "call duration" value for the specified Call, in msec, 131 long duration = 0; 138 //duration = (state == Call.State.ACTIVE 140 duration = c.getDurationMillis(); 147 if (t > duration) { 148 duration = t; 153 if (DBG) log("updateElapsedTime, count=" + count + ", duration=" + duration); [all...] |
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
H A D | CellBroadcastSettings.java | 36 // Default alert duration (in seconds). 83 ListPreference duration = (ListPreference) findPreference(KEY_ALERT_SOUND_DURATION); 84 duration.setSummary(duration.getEntry()); 85 duration.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
|
H A D | CellBroadcastAlertAudio.java | 51 /** Extra for alert audio duration (from settings). */ 63 /** Pause duration between alert sound and alert speech. */ 223 int duration = intent.getIntExtra(ALERT_AUDIO_DURATION_EXTRA, 4); 237 play(duration * 1000); // convert to milliseconds 251 * @param duration the alert sound duration in milliseconds 253 private void play(int duration) { argument 291 // stop alert after the specified duration 292 mHandler.sendMessageDelayed(mHandler.obtainMessage(ALERT_SOUND_FINISHED), duration);
|
/packages/apps/VideoEditor/src/com/android/videoeditor/ |
H A D | ProjectPickerAdapter.java | 140 String duration; 143 duration = ""; 151 duration = millisecondsToTimeString(project.getProjectDuration()); 152 thumbnail = getThumbnail(project.getPath(), iv, title, duration); 156 drawBottomOverlay(thumbnail, title, duration); 164 * Draws transparent black bottom overlay with movie title and duration on the bitmap. 166 public void drawBottomOverlay(Bitmap bitmap, String title, String duration) { argument 180 // duration text. 181 final int availableTitleWidth = bitmap.getWidth() - (int) paint.measureText(duration); 188 // Draw movie duration a 195 getThumbnail(String projectPath, ImageView imageView, String title, String duration) argument 252 LoadPreviewBitmapTask(ProjectPickerAdapter contextAdapter, String projectPath, ImageView imageView, int width, int height, String title, String duration, LruCache<String, Bitmap> previewBitmapCache) argument [all...] |
/packages/apps/Music/src/com/android/music/ |
H A D | IMediaPlaybackService.aidl | 33 long duration();
|
/packages/apps/Mms/src/com/android/mms/model/ |
H A D | SlideModel.java | 64 public SlideModel(int duration, SlideshowModel slideshow) { argument 65 mDuration = duration; 72 * @param duration The duration of the slide. 79 public SlideModel(int duration, ArrayList<MediaModel> mediaList) { argument 80 mDuration = duration; 215 * @param duration the mDuration to set 217 public void setDuration(int duration) { argument 218 mDuration = duration; 525 // If we remove all the objects that have duration, rese 534 updateDuration(int duration) argument [all...] |
H A D | MediaModel.java | 121 public void setDuration(int duration) { argument 122 if (isPlayable() && (duration < 0)) { 123 // 'indefinite' duration, we should try to find its exact value; 127 // On error, keep default duration. 132 mDuration = duration; 260 int duration = 0; 265 duration = Integer.parseInt(dur); 267 mDuration = duration; 269 Log.e(TAG, "MediaMetadataRetriever failed to get duration for " + mUri.getPath(), ex);
|
H A D | MediaModelFactory.java | 225 // Set 'duration' property. 226 int duration = (int) (sme.getDur() * 1000); 227 if (duration <= 0) { 233 duration = (int) (t.getResolvedOffset() * 1000) - begin; 235 if (duration == 0 && 237 duration = MmsConfig.getMinimumSlideElementDuration(); 239 Log.d(TAG, "[MediaModelFactory] compute new duration for " + tag + 240 ", duration=" + duration); 247 media.setDuration(duration); [all...] |
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
H A D | VideoCaptureIntentTest.java | 189 int duration = verify(getActivity(), uri); 190 // The duraion should be close to to the limit. The last video duration 191 // also has duration, so the total duration may exceeds the limit a 193 Log.v(TAG, "Video length is " + duration + " ms."); 194 assertTrue(duration < (durationLimit + 1) * 1000); 227 // Verify result code, result data, and the duration. 235 String duration = retriever.extractMetadata( 237 assertNotNull(duration); 238 int durationValue = Integer.parseInt(duration); [all...] |
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
H A D | CalendarInstancesHelper.java | 126 // window, we need to assume a maximum duration, since we only know 190 Duration duration = new Duration(); 226 duration.parse(durationStr); 230 Log.w(CalendarProvider2.TAG, "error parsing duration for event " 233 duration.sign = 1; 234 duration.weeks = 0; 235 duration.days = 0; 236 duration.hours = 0; 237 duration.minutes = 0; 238 duration [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
H A D | CallLogFragmentTest.java | 464 * @param duration In seconds of the call. Use RAND_DURATION to pick a random one. 470 private void insertWithCachedValues(String number, long date, int duration, int type, argument 472 insert(number, date, duration, type); 493 * @param duration In seconds of the call. Use RAND_DURATION to pick a random one. 496 private void insert(String number, long date, int duration, int type) { argument 497 insertValues(getValuesToInsert(number, date, duration, type)); 512 * @param duration In seconds of the call. Use RAND_DURATION to pick a random one. 515 private Object[] getValuesToInsert(String number, long date, int duration, int type) { argument 520 values[CallLogQuery.DURATION] = duration < 0 ? mRnd.nextInt(10 * 60) : duration; 537 insertVoicemail(String number, long date, int duration) argument 550 insertPrivate(long date, int duration) argument 559 insertUnknown(long date, int duration) argument 568 insertCalltoVoicemail(long date, int duration) argument [all...] |
/packages/apps/Calendar/src/com/android/calendar/ |
H A D | GoogleCalendarUriIntentFilter.java | 124 String duration = eventCursor.getString(EVENT_INDEX_DURATION); 125 if (TextUtils.isEmpty(duration)) { 131 d.parse(duration);
|
/packages/apps/Calculator/src/com/android/calculator2/ |
H A D | ColorButton.java | 85 private void drawMagicFlame(int duration, Canvas canvas) { argument 86 int alpha = 255 - 255 * duration / CLICK_FEEDBACK_DURATION;
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
H A D | LocalBluetoothAdapter.java | 137 boolean setScanMode(int mode, int duration) { argument 138 return mAdapter.setScanMode(mode, duration);
|