Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 29) sorted by relevance

12

/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/
DSetTimerActivity.java82 private void setupTimer(long duration) { in setupTimer() argument
90 notifyMgr.notify(Constants.NOTIFICATION_TIMER_COUNTDOWN, buildNotification(duration)); in setupTimer()
93 registerWithAlarmManager(duration); in setupTimer()
100 long duration = mTimeOptions[holder.getPosition()].duration; in onClick() local
101 setupTimer(duration); in onClick()
108 private void registerWithAlarmManager(long duration) { in registerWithAlarmManager() argument
119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager()
132 private Notification buildNotification(long duration) { in buildNotification() argument
149 .setContentText(TimerFormat.getTimeString(duration)) in buildNotification()
151 .setWhen(System.currentTimeMillis() + duration) in buildNotification()
[all …]
/developers/samples/android/deprecated/wearable/wear/Timer/Wearable/src/main/java/com/example/android/wearable/timer/
DSetTimerActivity.java82 private void setupTimer(long duration) { in setupTimer() argument
90 notifyMgr.notify(Constants.NOTIFICATION_TIMER_COUNTDOWN, buildNotification(duration)); in setupTimer()
93 registerWithAlarmManager(duration); in setupTimer()
100 long duration = mTimeOptions[holder.getPosition()].duration; in onClick() local
101 setupTimer(duration); in onClick()
108 private void registerWithAlarmManager(long duration) { in registerWithAlarmManager() argument
119 long wakeupTime = System.currentTimeMillis() + duration; in registerWithAlarmManager()
132 private Notification buildNotification(long duration) { in buildNotification() argument
149 .setContentText(TimerFormat.getTimeString(duration)) in buildNotification()
151 .setWhen(System.currentTimeMillis() + duration) in buildNotification()
[all …]
/developers/samples/android/wearable/wear/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DUtils.java36 public final static void vibrate(Context context, int duration) { in vibrate() argument
37 if (duration == 0) { in vibrate()
38 duration = DEFAULT_VIBRATION_DURATION_MS; in vibrate()
41 v.vibrate(duration); in vibrate()
/developers/build/prebuilts/gradle/JumpingJack/Wearable/src/main/java/com/example/android/wearable/jumpingjack/
DUtils.java36 public final static void vibrate(Context context, int duration) { in vibrate() argument
37 if (duration == 0) { in vibrate()
38 duration = DEFAULT_VIBRATION_DURATION_MS; in vibrate()
41 v.vibrate(duration); in vibrate()
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DDefaultCardStreamAnimator.java82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeInAnimator() local
91 animator.setDuration(duration).setInterpolator(new BounceInterpolator()); in getSwipeInAnimator()
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor)); in getSwipeOutAnimator() local
118 PropertyValuesHolder.ofFloat("rotationY", endRotationY)).setDuration(duration); in getSwipeOutAnimator()
/developers/samples/android/tv/ChannelsPrograms/Application/src/main/java/com/example/android/tv/channelsprograms/playback/
DWatchNextAdapter.java35 Context context, long channelId, Movie movie, long position, long duration) { in updateProgress() argument
49 WatchNextProgram program = createWatchNextProgram(channelId, entity, position, duration); in updateProgress()
78 long channelId, Movie movie, long position, long duration) { in createWatchNextProgram() argument
88 .setDurationMillis((int) duration) in createWatchNextProgram()
DPlaybackVideoFragment.java67 long duration = mMediaPlayerGlue.getDuration(); in onCreate()
69 getContext(), mChannelId, movie, position, duration); in onCreate()
/developers/build/prebuilts/gradle/Interpolator/Application/src/main/java/com/example/android/interpolator/
DInterpolatorFragment.java153 long duration = mDurationSeekbar.getProgress(); in initAnimateButton()
159 duration, (String) mInterpolatorSpinner.getSelectedItem(), in initAnimateButton()
163 startAnimation(interpolator, duration, path); in initAnimateButton()
213 public ObjectAnimator startAnimation(Interpolator interpolator, long duration, Path path) { in startAnimation() argument
218 animator.setDuration(duration); in startAnimation()
/developers/samples/android/ui/Interpolator/Application/src/main/java/com/example/android/interpolator/
DInterpolatorFragment.java153 long duration = mDurationSeekbar.getProgress(); in initAnimateButton()
159 duration, (String) mInterpolatorSpinner.getSelectedItem(), in initAnimateButton()
163 startAnimation(interpolator, duration, path); in initAnimateButton()
213 public ObjectAnimator startAnimation(Interpolator interpolator, long duration, Path path) { in startAnimation() argument
218 animator.setDuration(duration); in startAnimation()
/developers/build/prebuilts/gradle/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DMyJobService.kt53 val duration = params.extras.getLong(WORK_DURATION_KEY) in onStartJob() constant
57 }, duration) in onStartJob()
/developers/samples/android/background/JobScheduler/kotlinApp/app/src/main/java/com/example/android/jobscheduler/
DMyJobService.kt53 val duration = params.extras.getLong(WORK_DURATION_KEY) in onStartJob() constant
57 }, duration) in onStartJob()
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DPlaylistItem.java66 public void setDuration(long duration) { in setDuration() argument
67 mContentDuration = duration; in setDuration()
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DPlaylistItem.java66 public void setDuration(long duration) { in setDuration() argument
67 mContentDuration = duration; in setDuration()
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DDefaultCardStreamAnimator.java.ftl82 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
91 animator.setDuration(duration).setInterpolator(new BounceInterpolator());
106 long duration = Math.abs((int) ((1 - fractionCovered) * 200 * mSpeedFactor));
118 PropertyValuesHolder.ofFloat("rotationY", endRotationY)).setDuration(duration);
DCardStreamAnimator.java.ftl32 * Set speed factor of animations. Higher value means longer duration & slow animation.
/developers/build/prebuilts/gradle/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/service/
DMyJobService.java76 long duration = params.getExtras().getLong(WORK_DURATION_KEY); in onStartJob() local
86 }, duration); in onStartJob()
/developers/samples/android/background/JobScheduler/Application/src/main/java/com/example/android/jobscheduler/service/
DMyJobService.java76 long duration = params.getExtras().getLong(WORK_DURATION_KEY); in onStartJob() local
86 }, duration); in onStartJob()
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/service/contentcatalogs/
DMusicLibrary.java129 long duration, in createMediaMetadataCompat() argument
141 TimeUnit.MILLISECONDS.convert(duration, durationUnit)) in createMediaMetadataCompat()
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/service/contentcatalogs/
DMusicLibrary.java132 long duration, in createMediaMetadataCompat() argument
145 TimeUnit.MILLISECONDS.convert(duration, durationUnit)) in createMediaMetadataCompat()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/tvleanback/data/
DVideoDatabase.java314 …public long addMovieForDeepLink(String title, String description, int icon, long duration, String … in addMovieForDeepLink() argument
329 initialValues.put(KEY_COLUMN_DURATION, duration); in addMovieForDeepLink()
/developers/build/prebuilts/androidtv/leanback/app/src/main/java/com/example/android/leanback/
DPlayerActivity.java368 private void updateSeekbar(int position, int duration) { in updateSeekbar() argument
370 mSeekbar.setMax(duration); in updateSeekbar()
/developers/build/prebuilts/gradle/JobScheduler/kotlinApp/
DREADME.md14 - Set a delay of 5 seconds and a work duration of 10 seconds. Schedule job and press the
/developers/samples/android/background/JobScheduler/kotlinApp/
DREADME.md14 - Set a delay of 5 seconds and a work duration of 10 seconds. Schedule job and press the
/developers/samples/android/ui/Interpolator/
DREADME.md18 can also define the duration of the animation.
/developers/build/prebuilts/gradle/Interpolator/
DREADME.md18 can also define the duration of the animation.

12