/developers/build/prebuilts/gradle/Timer/Wearable/src/main/java/com/example/android/wearable/timer/ |
D | SetTimerActivity.java | 82 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/ |
D | SetTimerActivity.java | 82 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/ |
D | Utils.java | 36 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/ |
D | Utils.java | 36 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/ |
D | DefaultCardStreamAnimator.java | 82 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/ |
D | WatchNextAdapter.java | 35 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()
|
D | PlaybackVideoFragment.java | 67 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/ |
D | InterpolatorFragment.java | 153 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/ |
D | InterpolatorFragment.java | 153 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/ |
D | MyJobService.kt | 53 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/ |
D | MyJobService.kt | 53 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/ |
D | PlaylistItem.java | 66 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/ |
D | PlaylistItem.java | 66 public void setDuration(long duration) { in setDuration() argument 67 mContentDuration = duration; in setDuration()
|
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/ |
D | DefaultCardStreamAnimator.java.ftl | 82 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);
|
D | CardStreamAnimator.java.ftl | 32 * 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/ |
D | MyJobService.java | 76 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/ |
D | MyJobService.java | 76 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/ |
D | MusicLibrary.java | 129 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/ |
D | MusicLibrary.java | 132 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/ |
D | VideoDatabase.java | 314 …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/ |
D | PlayerActivity.java | 368 private void updateSeekbar(int position, int duration) { in updateSeekbar() argument 370 mSeekbar.setMax(duration); in updateSeekbar()
|
/developers/build/prebuilts/gradle/JobScheduler/kotlinApp/ |
D | README.md | 14 - Set a delay of 5 seconds and a work duration of 10 seconds. Schedule job and press the
|
/developers/samples/android/background/JobScheduler/kotlinApp/ |
D | README.md | 14 - Set a delay of 5 seconds and a work duration of 10 seconds. Schedule job and press the
|
/developers/samples/android/ui/Interpolator/ |
D | README.md | 18 can also define the duration of the animation.
|
/developers/build/prebuilts/gradle/Interpolator/ |
D | README.md | 18 can also define the duration of the animation.
|