Home
last modified time | relevance | path

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

12

/developers/samples/android/ui/fonts/DownloadableFonts/kotlinApp/app/src/main/kotlin/com/example/android/downloadablefonts/
DMainActivity.kt121 width = progressToWidth(mWidthSeekBar.progress), in requestDownload()
122 weight = progressToWeight(mWeightSeekBar.progress), in requestDownload()
123 italic = progressToItalic(mItalicSeekBar.progress), in requestDownload()
159 mWidthSeekBar.progress = widthValue in initializeSeekBars()
163 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in initializeSeekBars()
164 widthTextView.text = progressToWidth(progress).toString() in initializeSeekBars()
174 mWeightSeekBar.progress = weightValue.toInt() in initializeSeekBars()
178 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in initializeSeekBars()
180 .setText(progressToWeight(progress).toString()) in initializeSeekBars()
189 mItalicSeekBar.progress = ITALIC_DEFAULT.toInt() in initializeSeekBars()
[all …]
/developers/build/prebuilts/gradle/DownloadableFonts/kotlinApp/app/src/main/kotlin/com/example/android/downloadablefonts/
DMainActivity.kt121 width = progressToWidth(mWidthSeekBar.progress), in requestDownload()
122 weight = progressToWeight(mWeightSeekBar.progress), in requestDownload()
123 italic = progressToItalic(mItalicSeekBar.progress), in requestDownload()
159 mWidthSeekBar.progress = widthValue in initializeSeekBars()
163 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in initializeSeekBars()
164 widthTextView.text = progressToWidth(progress).toString() in initializeSeekBars()
174 mWeightSeekBar.progress = weightValue.toInt() in initializeSeekBars()
178 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in initializeSeekBars()
180 .setText(progressToWeight(progress).toString()) in initializeSeekBars()
189 mItalicSeekBar.progress = ITALIC_DEFAULT.toInt() in initializeSeekBars()
[all …]
/developers/build/prebuilts/gradle/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.kt59 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in onViewCreated()
60 Log.d(TAG, "SeekBar Radius progress: $progress") in onViewCreated()
61 cardView.radius = progress.toFloat() in onViewCreated()
71 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in onViewCreated()
72 Log.d(TAG, "SeekBar Elevation progress : $progress") in onViewCreated()
73 cardView.elevation = progress.toFloat() in onViewCreated()
/developers/samples/android/ui/views/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.kt59 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in onViewCreated()
60 Log.d(TAG, "SeekBar Radius progress: $progress") in onViewCreated()
61 cardView.radius = progress.toFloat() in onViewCreated()
71 override fun onProgressChanged(seekBar: SeekBar, progress: Int, fromUser: Boolean) { in onViewCreated()
72 Log.d(TAG, "SeekBar Elevation progress : $progress") in onViewCreated()
73 cardView.elevation = progress.toFloat() in onViewCreated()
/developers/samples/android/ui/views/CardView/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.java86 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onViewCreated()
87 Log.d(TAG, String.format("SeekBar Radius progress : %d", progress)); in onViewCreated()
88 mCardView.setRadius(progress); in onViewCreated()
104 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onViewCreated()
105 Log.d(TAG, String.format("SeekBar Elevation progress : %d", progress)); in onViewCreated()
106 mCardView.setElevation(progress); in onViewCreated()
/developers/build/prebuilts/gradle/CardView/Application/src/main/java/com/example/android/cardview/
DCardViewFragment.java86 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onViewCreated()
87 Log.d(TAG, String.format("SeekBar Radius progress : %d", progress)); in onViewCreated()
88 mCardView.setRadius(progress); in onViewCreated()
104 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onViewCreated()
105 Log.d(TAG, String.format("SeekBar Elevation progress : %d", progress)); in onViewCreated()
106 mCardView.setElevation(progress); in onViewCreated()
/developers/samples/android/ui/fonts/DownloadableFonts/app/src/main/java/com/example/android/downloadablefonts/
DMainActivity.java175 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in initializeSeekBars()
177 .setText(String.valueOf(progressToWidth(progress))); in initializeSeekBars()
196 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in initializeSeekBars()
198 .setText(String.valueOf(progressToWeight(progress))); in initializeSeekBars()
216 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromuser) { in initializeSeekBars()
218 .setText(String.valueOf(progressToItalic(progress))); in initializeSeekBars()
249 private float progressToWidth(int progress) { in progressToWidth() argument
250 return progress == 0 ? 1 : progress * WIDTH_MAX / 100; in progressToWidth()
258 private int progressToWeight(int progress) { in progressToWeight() argument
259 if (progress == 0) { in progressToWeight()
[all …]
/developers/build/prebuilts/gradle/DownloadableFonts/app/src/main/java/com/example/android/downloadablefonts/
DMainActivity.java175 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in initializeSeekBars()
177 .setText(String.valueOf(progressToWidth(progress))); in initializeSeekBars()
196 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in initializeSeekBars()
198 .setText(String.valueOf(progressToWeight(progress))); in initializeSeekBars()
216 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromuser) { in initializeSeekBars()
218 .setText(String.valueOf(progressToItalic(progress))); in initializeSeekBars()
249 private float progressToWidth(int progress) { in progressToWidth() argument
250 return progress == 0 ? 1 : progress * WIDTH_MAX / 100; in progressToWidth()
258 private int progressToWeight(int progress) { in progressToWeight() argument
259 if (progress == 0) { in progressToWeight()
[all …]
/developers/build/templates/CardStream/_MODULE_/src/template/java/_PACKAGE_/cardstream/
DCard.java.ftl38 * progress indicator and zero or more actions. It is constructed through the {@link Builder}.
55 // description, zero to many action buttons, and zero or 1 progress indicators.
92 * Some cards will have a sense of "progress" which should be associated with, but separated
94 * a maximum of one progress indicator per Card.
178 * Set the type of progress indicator.
179 * The progress type can only be changed if the Card was initially build with a progress
197 * Return the progress indicator type. A value of either {@link #PROGRESS_TYPE_NORMAL},
198 * {@link #PROGRESS_TYPE_INDETERMINATE}, {@link #PROGRESS_TYPE_LABEL}. Otherwise if no progress
210 * Set the progress to the specified value. Only applicable if the card has a
211 * {@link #PROGRESS_TYPE_NORMAL} progress type.
[all …]
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/ui/
DMediaSeekBar.java42 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
117 final int progress = state != null in onPlaybackStateChanged() local
120 setProgress(progress); in onPlaybackStateChanged()
126 final int timeToEnd = (int) ((getMax() - progress) / state.getPlaybackSpeed()); in onPlaybackStateChanged()
128 mProgressAnimator = ValueAnimator.ofInt(progress, getMax()) in onPlaybackStateChanged()
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/ui/
DMediaSeekBar.java42 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {
117 final int progress = state != null in onPlaybackStateChanged() local
120 setProgress(progress); in onPlaybackStateChanged()
126 final int timeToEnd = (int) ((getMax() - progress) / state.getPlaybackSpeed()); in onPlaybackStateChanged()
128 mProgressAnimator = ValueAnimator.ofInt(progress, getMax()) in onPlaybackStateChanged()
/developers/build/prebuilts/gradle/CardView/kotlinApp/Application/tests/src/com/example/android/cardview/
DSampleTests.kt56 fragment.radiusSeekBar.progress = radius.toInt() in testRadiusSeekbarChangesRadiusOfCardView()
64 fragment.elevationSeekBar.progress = elevation.toInt() in testElevationSeekbarChangesElevationOfCardView()
/developers/samples/android/ui/views/CardView/kotlinApp/Application/tests/src/com/example/android/cardview/
DSampleTests.kt56 fragment.radiusSeekBar.progress = radius.toInt() in testRadiusSeekbarChangesRadiusOfCardView()
64 fragment.elevationSeekBar.progress = elevation.toInt() in testElevationSeekbarChangesElevationOfCardView()
/developers/build/prebuilts/gradle/BasicRenderScript/Application/src/main/java/com/example/android/basicrenderscript/
DMainActivity.java67 public void onProgressChanged(SeekBar seekBar, int progress, in onCreate()
71 float f = (float) ((max - min) * (progress / 100.0) + min); in onCreate()
/developers/samples/android/renderScript/BasicRenderScript/Application/src/main/java/com/example/android/basicrenderscript/
DMainActivity.java67 public void onProgressChanged(SeekBar seekBar, int progress, in onCreate()
71 float f = (float) ((max - min) * (progress / 100.0) + min); in onCreate()
/developers/build/prebuilts/gradle/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/
DMainActivity.java88 public void onProgressChanged(SeekBar seekBar, int progress, in onCreate()
90 updateImage(progress); in onCreate()
304 private void updateImage(int progress) { in updateImage() argument
305 float f = getFilterParameter(progress); in updateImage()
/developers/samples/android/renderScript/RenderScriptIntrinsic/Application/src/main/java/com/example/android/renderscriptintrinsic/
DMainActivity.java88 public void onProgressChanged(SeekBar seekBar, int progress, in onCreate()
90 updateImage(progress); in onCreate()
304 private void updateImage(int progress) { in updateImage() argument
305 float f = getFilterParameter(progress); in updateImage()
/developers/build/prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DProgressActivity.java54 titleView.setText(R.string.progress); in onCreate()
DMainActivity.java48 getString(R.string.progress), in onCreate()
/developers/samples/android/wearable/wear/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/
DProgressActivity.java56 titleView.setText(R.string.progress); in onCreate()
DMainActivity.java50 getString(R.string.progress), in onCreate()
/developers/build/prebuilts/gradle/BatchStepSensor/Application/src/main/java/com/example/android/batchstepsensor/cardstream/
DCard.java216 public Card setProgress(int progress) { in setProgress() argument
218 mCardProgress.setProgress(progress); in setProgress()
661 public void setProgress(int progress) { in setProgress() argument
662 currProgress = progress; in setProgress()
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DMainActivity.java338 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onCreate()
341 long pos = progress * item.getDuration() / 100; in onCreate()
530 int progress = 0; in updateProgress() local
544 progress = (int) (100.0 * (position + timeDelta) / duration); in updateProgress()
547 mSeekBar.setProgress(progress); in updateProgress()
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DMainActivity.java338 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onCreate()
341 long pos = progress * item.getDuration() / 100; in onCreate()
530 int progress = 0; in updateProgress() local
544 progress = (int) (100.0 * (position + timeDelta) / duration); in updateProgress()
547 mSeekBar.setProgress(progress); in updateProgress()
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/rich/
DRichSetupFragment.java144 protected void onProgressUpdate(String... progress) { in onProgressUpdate() argument
145 Toast.makeText(getActivity(), progress[0], Toast.LENGTH_SHORT).show(); in onProgressUpdate() local

12