/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 | 48 * This function calculate the time in MS from a duration instance. 49 * returns zero when duration is null. 51 public static int calculateDurationInMilis(Duration duration) { argument 53 if (duration != null) { 54 switch (duration.timeUnit) { 66 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/apps/Dialer/src/com/android/dialer/ |
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 | 48 public InterruptibleInOutAnimator(View view, long duration, float fromValue, float toValue) { argument 49 mAnimator = LauncherAnimUtils.ofFloat(view, fromValue, toValue).setDuration(duration); 50 mOriginalDuration = duration; 75 // Ensure we don't calculate a non-sensical duration 76 long duration = mOriginalDuration - currentPlayTime; 77 mAnimator.setDuration(Math.max(0, Math.min(duration, mOriginalDuration))); 104 * direction and animate for a correspondingly shorter duration. 114 * 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);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactNameHighlightingAnimation.java | 32 public ContactNameHighlightingAnimation(ListView listView, int duration) { argument 33 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/Contacts/src/com/android/contacts/widget/ |
H A D | TransitionAnimationView.java | 72 * @param duration The duration the animation should last for. If -1, the system default(300) 75 public void startMaskTransition(boolean showMask, int duration) { argument 87 if (duration != -1) { 88 mAnimator.setDuration(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 | 65 public SlideModel(int duration, SlideshowModel slideshow) { argument 66 mDuration = duration; 73 * @param duration The duration of the slide. 80 public SlideModel(int duration, ArrayList<MediaModel> mediaList) { argument 81 mDuration = duration; 216 * @param duration the mDuration to set 218 public void setDuration(int duration) { argument 219 mDuration = duration; 532 // If we remove all the objects that have duration, rese 541 updateDuration(int duration) argument [all...] |
H A D | MediaModelFactory.java | 179 // Set 'duration' property. 180 int duration = (int) (sme.getDur() * 1000); 181 if (duration <= 0) { 187 duration = (int) (t.getResolvedOffset() * 1000) - begin; 189 if (duration == 0 && 191 duration = MmsConfig.getMinimumSlideElementDuration(); 193 Log.d(TAG, "[MediaModelFactory] compute new duration for " + tag + 194 ", duration=" + duration); 201 media.setDuration(duration); [all...] |
H A D | MediaModel.java | 106 public void setDuration(int duration) { argument 107 if (isPlayable() && (duration < 0)) { 108 // 'indefinite' duration, we should try to find its exact value; 112 // On error, keep default duration. 117 mDuration = duration; 215 int duration = 0; 220 duration = Integer.parseInt(dur); 222 mDuration = duration; 224 Log.e(TAG, "MediaMetadataRetriever failed to get duration for " + mUri.getPath(), ex);
|
/packages/apps/Gallery2/src/com/android/camera/ |
H A D | MediaSaveService.java | 103 public void addVideo(String path, long duration, ContentValues values, argument 107 new VideoSaveTask(path, duration, values, l, resolver).execute(); 171 private long duration; field in class:MediaSaveService.VideoSaveTask 176 public VideoSaveTask(String path, long duration, ContentValues values, argument 179 this.duration = duration; 193 values.put(Video.Media.DURATION, duration);
|
/packages/apps/DeskClock/src/com/android/deskclock/widget/swipeablelistview/ |
H A D | SwipeHelper.java | 131 private ObjectAnimator createDismissAnimation(View v, float newPos, int duration) { argument 134 anim.setDuration(duration); 297 int duration = determineDuration(animView, newPos, velocity); 300 ObjectAnimator anim = createDismissAnimation(animView, newPos, duration); 321 int duration = MAX_ESCAPE_ANIMATION_DURATION; 323 duration = Math 324 .min(duration, 328 duration = DEFAULT_ESCAPE_ANIMATION_DURATION; 330 return duration; 349 int duration [all...] |
/packages/apps/Camera/tests/src/com/android/camera/functional/ |
H A D | VideoCaptureIntentTest.java | 166 int duration = verify(getActivity(), uri); 167 // The duraion should be close to to the limit. The last video duration 168 // also has duration, so the total duration may exceeds the limit a 170 Log.v(TAG, "Video length is " + duration + " ms."); 171 assertTrue(duration < (durationLimit + 1) * 1000); 204 // Verify result code, result data, and the duration. 212 String duration = retriever.extractMetadata( 214 assertNotNull(duration); 215 int durationValue = Integer.parseInt(duration); [all...] |
/packages/apps/Gallery2/tests/src/com/android/gallery3d/exif/ |
H A D | ExifOutputStreamTest.java | 158 long duration = endTime - startTime; 159 totalReadDuration += duration; 160 Log.v(LOGTAG, " read time: " + duration); 171 duration = endTime - startTime; 172 totalWriteDuration += duration; 173 Log.v(LOGTAG, " write time: " + duration);
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/functional/ |
H A D | VideoCaptureIntentTest.java | 166 int duration = verify(getActivity(), uri); 167 // The duraion should be close to to the limit. The last video duration 168 // also has duration, so the total duration may exceeds the limit a 170 Log.v(TAG, "Video length is " + duration + " ms."); 171 assertTrue(duration < (durationLimit + 1) * 1000); 204 // Verify result code, result data, and the duration. 212 String duration = retriever.extractMetadata( 214 assertNotNull(duration); 215 int durationValue = Integer.parseInt(duration); [all...] |
/packages/apps/Gallery2/tests_camera/src/com/android/camera/functional/ |
H A D | VideoCaptureIntentTest.java | 166 int duration = verify(getActivity(), uri); 167 // The duraion should be close to to the limit. The last video duration 168 // also has duration, so the total duration may exceeds the limit a 170 Log.v(TAG, "Video length is " + duration + " ms."); 171 assertTrue(duration < (durationLimit + 1) * 1000); 204 // Verify result code, result data, and the duration. 212 String duration = retriever.extractMetadata( 214 assertNotNull(duration); 215 int durationValue = Integer.parseInt(duration); [all...] |
/packages/apps/LegacyCamera/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 | 127 // window, we need to assume a maximum duration, since we only know 191 Duration duration = new Duration(); 227 duration.parse(durationStr); 231 Log.w(CalendarProvider2.TAG, "error parsing duration for event " 234 duration.sign = 1; 235 duration.weeks = 0; 236 duration.days = 0; 237 duration.hours = 0; 238 duration.minutes = 0; 239 duration [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/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...] |