Home
last modified time | relevance | path

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

12345678910

/frameworks/base/core/java/android/preference/
DSeekBarPreference.java117 public void setProgress(int progress) { in setProgress() argument
118 setProgress(progress, true); in setProgress()
121 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument
122 if (progress > mMax) { in setProgress()
123 progress = mMax; in setProgress()
125 if (progress < 0) { in setProgress()
126 progress = 0; in setProgress()
128 if (progress != mProgress) { in setProgress()
129 mProgress = progress; in setProgress()
130 persistInt(progress); in setProgress()
[all …]
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DVignette.java72 public void onBar1Changed(int progress) { in onBar1Changed() argument
73 scale = progress / 50.0f; in onBar1Changed()
76 public void onBar2Changed(int progress) { in onBar2Changed() argument
77 shade = progress / 100.0f; in onBar2Changed()
80 public void onBar3Changed(int progress) { in onBar3Changed() argument
81 slope = (float)progress; in onBar3Changed()
84 public void onBar4Changed(int progress) { in onBar4Changed() argument
85 center_x = progress / 100.0f; in onBar4Changed()
88 public void onBar5Changed(int progress) { in onBar5Changed() argument
89 center_y = progress / 100.0f; in onBar5Changed()
DMandelbrot.java39 public void onBar1Changed(int progress) { in onBar1Changed() argument
40 int iters = progress * 3 + 50; in onBar1Changed()
50 public void onBar2Changed(int progress) { in onBar2Changed() argument
53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
63 public void onBar3Changed(int progress) { in onBar3Changed() argument
66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
76 public void onBar4Changed(int progress) { in onBar4Changed() argument
77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed()
DLevelsV4.java116 public void onBar1Changed(int progress) { in onBar1Changed() argument
117 mSaturation = (float)progress / 50.0f; in onBar1Changed()
120 public void onBar2Changed(int progress) { in onBar2Changed() argument
121 mInBlack = (float)progress; in onBar2Changed()
124 public void onBar3Changed(int progress) { in onBar3Changed() argument
125 mOutBlack = (float)progress; in onBar3Changed()
128 public void onBar4Changed(int progress) { in onBar4Changed() argument
129 mInWhite = (float)progress + 127.0f; in onBar4Changed()
132 public void onBar5Changed(int progress) { in onBar5Changed() argument
133 mOutWhite = (float)progress + 127.0f; in onBar5Changed()
DFisheye.java61 public void onBar1Changed(int progress) { in onBar1Changed() argument
62 scale = progress / 50.0f; in onBar1Changed()
65 public void onBar2Changed(int progress) { in onBar2Changed() argument
66 center_x = progress / 100.0f; in onBar2Changed()
69 public void onBar3Changed(int progress) { in onBar3Changed() argument
70 center_y = progress / 100.0f; in onBar3Changed()
DTestBase.java40 public void onBar1Changed(int progress) { in onBar1Changed() argument
42 public void onBar2Changed(int progress) { in onBar2Changed() argument
44 public void onBar3Changed(int progress) { in onBar3Changed() argument
46 public void onBar4Changed(int progress) { in onBar4Changed() argument
48 public void onBar5Changed(int progress) { in onBar5Changed() argument
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DVignette.java75 public void onBar1Changed(int progress) { in onBar1Changed() argument
76 scale = progress / 50.0f; in onBar1Changed()
79 public void onBar2Changed(int progress) { in onBar2Changed() argument
80 shade = progress / 100.0f; in onBar2Changed()
83 public void onBar3Changed(int progress) { in onBar3Changed() argument
84 slope = (float)progress; in onBar3Changed()
87 public void onBar4Changed(int progress) { in onBar4Changed() argument
88 center_x = progress / 100.0f; in onBar4Changed()
91 public void onBar5Changed(int progress) { in onBar5Changed() argument
92 center_y = progress / 100.0f; in onBar5Changed()
DMandelbrot.java45 public void onBar1Changed(int progress) { in onBar1Changed() argument
46 int iters = progress * 3 + 50; in onBar1Changed()
56 public void onBar2Changed(int progress) { in onBar2Changed() argument
59 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
69 public void onBar3Changed(int progress) { in onBar3Changed() argument
72 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
82 public void onBar4Changed(int progress) { in onBar4Changed() argument
83 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed()
DLevelsV4.java122 public void onBar1Changed(int progress) { in onBar1Changed() argument
123 mSaturation = (float)progress / 50.0f; in onBar1Changed()
126 public void onBar2Changed(int progress) { in onBar2Changed() argument
127 mInBlack = (float)progress; in onBar2Changed()
130 public void onBar3Changed(int progress) { in onBar3Changed() argument
131 mOutBlack = (float)progress; in onBar3Changed()
134 public void onBar4Changed(int progress) { in onBar4Changed() argument
135 mInWhite = (float)progress + 127.0f; in onBar4Changed()
138 public void onBar5Changed(int progress) { in onBar5Changed() argument
139 mOutWhite = (float)progress + 127.0f; in onBar5Changed()
DFisheye.java61 public void onBar1Changed(int progress) { in onBar1Changed() argument
62 scale = progress / 50.0f; in onBar1Changed()
65 public void onBar2Changed(int progress) { in onBar2Changed() argument
66 center_x = progress / 100.0f; in onBar2Changed()
69 public void onBar3Changed(int progress) { in onBar3Changed() argument
70 center_y = progress / 100.0f; in onBar3Changed()
DTestBase.java61 public void onBar1Changed(int progress) { in onBar1Changed() argument
63 public void onBar2Changed(int progress) { in onBar2Changed() argument
65 public void onBar3Changed(int progress) { in onBar3Changed() argument
67 public void onBar4Changed(int progress) { in onBar4Changed() argument
69 public void onBar5Changed(int progress) { in onBar5Changed() argument
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DVignette.java72 public void onBar1Changed(int progress) { in onBar1Changed() argument
73 scale = progress / 50.0f; in onBar1Changed()
76 public void onBar2Changed(int progress) { in onBar2Changed() argument
77 shade = progress / 100.0f; in onBar2Changed()
80 public void onBar3Changed(int progress) { in onBar3Changed() argument
81 slope = (float)progress; in onBar3Changed()
84 public void onBar4Changed(int progress) { in onBar4Changed() argument
85 center_x = progress / 100.0f; in onBar4Changed()
88 public void onBar5Changed(int progress) { in onBar5Changed() argument
89 center_y = progress / 100.0f; in onBar5Changed()
DMandelbrot.java39 public void onBar1Changed(int progress) { in onBar1Changed() argument
40 int iters = progress * 3 + 50; in onBar1Changed()
50 public void onBar2Changed(int progress) { in onBar2Changed() argument
53 float lowerBoundX = -2.f + ((progress / scaleFactor) / 50.f); in onBar2Changed()
63 public void onBar3Changed(int progress) { in onBar3Changed() argument
66 float lowerBoundY = -2.f + ((progress / scaleFactor) / 50.f); in onBar3Changed()
76 public void onBar4Changed(int progress) { in onBar4Changed() argument
77 float scaleFactor = 4.f - (3.96f * (progress / 100.f)); in onBar4Changed()
DLevelsV4.java116 public void onBar1Changed(int progress) { in onBar1Changed() argument
117 mSaturation = (float)progress / 50.0f; in onBar1Changed()
120 public void onBar2Changed(int progress) { in onBar2Changed() argument
121 mInBlack = (float)progress; in onBar2Changed()
124 public void onBar3Changed(int progress) { in onBar3Changed() argument
125 mOutBlack = (float)progress; in onBar3Changed()
128 public void onBar4Changed(int progress) { in onBar4Changed() argument
129 mInWhite = (float)progress + 127.0f; in onBar4Changed()
132 public void onBar5Changed(int progress) { in onBar5Changed() argument
133 mOutWhite = (float)progress + 127.0f; in onBar5Changed()
DFisheye.java58 public void onBar1Changed(int progress) { in onBar1Changed() argument
59 scale = progress / 50.0f; in onBar1Changed()
62 public void onBar2Changed(int progress) { in onBar2Changed() argument
63 center_x = progress / 100.0f; in onBar2Changed()
66 public void onBar3Changed(int progress) { in onBar3Changed() argument
67 center_y = progress / 100.0f; in onBar3Changed()
DTestBase.java39 public void onBar1Changed(int progress) { in onBar1Changed() argument
41 public void onBar2Changed(int progress) { in onBar2Changed() argument
43 public void onBar3Changed(int progress) { in onBar3Changed() argument
45 public void onBar4Changed(int progress) { in onBar4Changed() argument
47 public void onBar5Changed(int progress) { in onBar5Changed() argument
/frameworks/base/docs/html/training/notify-user/
Ddisplay-progress.jd15 <li><a href="#FixedProgress">Display a Fixed-duration progress Indicator</a></li>
43 Notifications can include an animated progress indicator that shows users the status
46 (a progress bar). If you can't estimate the length of the operation, use the
54 To use a progress indicator, call
61 To display a determinate progress bar, add the bar to your notification by calling
63 setProgress(max, progress, false)} and then issue the notification.
65 progress bar is indeterminate (<strong>true</strong>) or determinate (<strong>false</strong>).
67 increment <code>progress</code>, and update the notification. At the end of the operation,
68 <code>progress</code> should equal <code>max</code>. A common way to call
70 is to set <code>max</code> to 100 and then increment <code>progress</code> as a
[all …]
/frameworks/data-binding/extensions/baseAdapters/src/main/java/android/databinding/adapters/
DSeekBarBindingAdapter.java31 public static void setProgress(SeekBar view, int progress) { in setProgress() argument
32 if (progress != view.getProgress()) { in setProgress()
33 view.setProgress(progress); in setProgress()
47 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in setOnSeekBarChangeListener()
49 progressChanged.onProgressChanged(seekBar, progress, fromUser); in setOnSeekBarChangeListener()
82 void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser); in onProgressChanged() argument
/frameworks/base/core/java/android/widget/
DProgressBar.java477 (id == R.id.progress || id == R.id.secondaryProgress)); in tileify()
843 doRefreshProgress(R.id.progress, mProgress, false, false, false); in setProgressDrawable()
866 final Drawable target = getTintTarget(R.id.progress, true); in applyPrimaryProgressTint()
1275 doRefreshProgress(rd.id, rd.progress, rd.fromUser, true, rd.animate); in run()
1290 public int progress; field in ProgressBar.RefreshData
1294 public static RefreshData obtain(int id, int progress, boolean fromUser, boolean animate) { in obtain() argument
1300 rd.progress = progress; in obtain()
1311 private synchronized void doRefreshProgress(int id, int progress, boolean fromUser, in doRefreshProgress() argument
1313 final float scale = mMax > 0 ? progress / (float) mMax : 0; in doRefreshProgress()
1314 final boolean isPrimary = id == R.id.progress; in doRefreshProgress()
[all …]
DSeekBar.java53 void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser); in onProgressChanged() argument
89 void onProgressRefresh(float scale, boolean fromUser, int progress) { in onProgressRefresh() argument
90 super.onProgressRefresh(scale, fromUser, progress); in onProgressRefresh()
93 mOnSeekBarChangeListener.onProgressChanged(this, progress, fromUser); in onProgressRefresh()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java124 float progress = distanceToScaleEnd / (startPadding - scaleEnd); in getClockScale() local
125 progress = Math.max(0.0f, Math.min(progress, 1.0f)); in getClockScale()
126 progress = mAccelerateInterpolator.getInterpolation(progress); in getClockScale()
127 progress *= Math.pow(1 + mEmptyDragAmount / mDensity / 300, 0.3f); in getClockScale()
128 return progress; in getClockScale()
/frameworks/base/core/java/com/android/internal/util/
DProgressReporter.java118 public void setProgress(int progress) { in setProgress() argument
119 setProgress(progress, 100, null); in setProgress()
127 public void setProgress(int progress, @Nullable CharSequence title) { in setProgress() argument
128 setProgress(progress, 100, title); in setProgress()
218 private void notifyProgress(int id, int progress, Bundle extras) { in notifyProgress() argument
221 mListeners.getBroadcastItem(i).onProgress(id, progress, extras); in notifyProgress()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintContentView.java311 private void onDragProgress(float progress) { in onDragProgress() argument
312 if (Float.compare(mDragProgress, progress) == 0) { in onDragProgress()
316 if ((mDragProgress == 0 && progress > 0) in onDragProgress()
317 || (mDragProgress == 1.0f && progress < 1.0f)) { in onDragProgress()
323 if ((mDragProgress > 0 && progress == 0) in onDragProgress()
324 || (mDragProgress < 1.0f && progress == 1.0f)) { in onDragProgress()
331 mDragProgress = progress; in onDragProgress()
333 mSummaryContent.setAlpha(progress); in onDragProgress()
335 final float inverseAlpha = 1.0f - progress; in onDragProgress()
340 if (progress == 0) { in onDragProgress()
[all …]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/
DVrActivity.java87 public void progress(int n, int total) { in onPreExecute()
104 protected void onProgressUpdate(Integer... progress) { in onProgressUpdate() argument
105 progressDialog.setMessage(message+progress[0]+"/"+progress[1]); in onProgressUpdate()
106 progressDialog.setMax(progress[1]); in onProgressUpdate()
107 progressDialog.setProgress(progress[0]); in onProgressUpdate()
108 Log.v(LOGTAG,"Loading "+ progress[0]+"/"+progress[1]); in onProgressUpdate()
/frameworks/base/core/java/android/content/pm/
DPackageInstaller.java485 public abstract void onProgressChanged(int sessionId, float progress); in onProgressChanged() argument
551 public void onSessionProgressChanged(int sessionId, float progress) { in onSessionProgressChanged() argument
552 mHandler.obtainMessage(MSG_SESSION_PROGRESS_CHANGED, sessionId, 0, progress) in onSessionProgressChanged()
650 public void setProgress(float progress) { in setProgress() argument
651 setStagingProgress(progress); in setProgress()
663 public void setStagingProgress(float progress) { in setStagingProgress() argument
665 mSession.setClientProgress(progress); in setStagingProgress()
672 public void addProgress(float progress) { in addProgress() argument
674 mSession.addClientProgress(progress); in addProgress()
1135 public float progress; field in PackageInstaller.SessionInfo
[all …]

12345678910