Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/android/preference/
DSeekBarPreference.java123 public void setProgress(int progress) { in setProgress() argument
124 setProgress(progress, true); in setProgress()
127 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument
128 if (progress > mMax) { in setProgress()
129 progress = mMax; in setProgress()
131 if (progress < 0) { in setProgress()
132 progress = 0; in setProgress()
134 if (progress != mProgress) { in setProgress()
135 mProgress = progress; in setProgress()
136 persistInt(progress); in setProgress()
[all …]
/frameworks/rs/tests/java_api/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/rs/tests/java_api/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/tests/java_api/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/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DDefaultUiController.java94 public void onInvocationProgress(int type, float progress) { in onInvocationProgress() argument
97 if (progress == 1) { in onInvocationProgress()
99 } else if (progress == 0) { in onInvocationProgress()
107 setProgressInternal(type, progress); in onInvocationProgress()
109 mLastInvocationProgress = progress; in onInvocationProgress()
111 logInvocationProgressMetrics(type, progress, invocationWasInProgress); in onInvocationProgress()
131 int type, float progress, boolean invocationWasInProgress) { in logInvocationProgressMetrics() argument
133 if (!invocationWasInProgress && progress > 0.f) { in logInvocationProgressMetrics()
139 if (invocationWasInProgress && progress == 0f) { in logInvocationProgressMetrics()
166 private void setProgressInternal(int type, float progress) { in setProgressInternal() argument
[all …]
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp62 MOCK_METHOD1(onProgress, binder::Status(int32_t progress));
613 void SetProgress(long progress, long initial_max) { in SetProgress() argument
616 ds.progress_.reset(new Progress(initial_max, progress, 1.2)); in SetProgress()
619 std::string GetProgressMessage(const std::string& listener_name, int progress, int max, in GetProgressMessage() argument
621 EXPECT_EQ(progress, ds.progress_->Get()) << "invalid progress"; in GetProgressMessage()
634 listener_name.c_str(), progress, max, in GetProgressMessage()
635 (100 * progress / max)); in GetProgressMessage()
1124 Progress progress; in TEST_F() local
1125 EXPECT_EQ(0, progress.Get()); in TEST_F()
1126 EXPECT_EQ(Progress::kDefaultMax, progress.GetInitialMax()); in TEST_F()
[all …]
/frameworks/base/packages/SettingsLib/AppPreference/src/com/android/settingslib/widget/apppreference/
DAppPreference.java54 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder() local
56 progress.setProgress(mProgress); in onBindViewHolder()
57 progress.setVisibility(View.VISIBLE); in onBindViewHolder()
59 progress.setVisibility(View.GONE); in onBindViewHolder()
/frameworks/base/core/java/android/widget/
DProgressBar.java545 (id == R.id.progress || id == R.id.secondaryProgress)); in tileify()
960 doRefreshProgress(R.id.progress, mProgress, false, false, false); in setProgressDrawable()
991 final Drawable target = getTintTarget(R.id.progress, true); in applyPrimaryProgressTint()
1504 doRefreshProgress(rd.id, rd.progress, rd.fromUser, true, rd.animate); in run()
1519 public int progress; field in ProgressBar.RefreshData
1523 public static RefreshData obtain(int id, int progress, boolean fromUser, boolean animate) { in obtain() argument
1529 rd.progress = progress; in obtain()
1540 private synchronized void doRefreshProgress(int id, int progress, boolean fromUser, in doRefreshProgress() argument
1543 final float scale = range > 0 ? (progress - mMin) / (float) range : 0; in doRefreshProgress()
1544 final boolean isPrimary = id == R.id.progress; in doRefreshProgress()
[all …]
DSeekBar.java56 void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser); in onProgressChanged() argument
94 void onProgressRefresh(float scale, boolean fromUser, int progress) { in onProgressRefresh() argument
95 super.onProgressRefresh(scale, fromUser, progress); in onProgressRefresh()
98 mOnSeekBarChangeListener.onProgressChanged(this, progress, fromUser); in onProgressRefresh()
/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.java312 private void onDragProgress(float progress) { in onDragProgress() argument
313 if (Float.compare(mDragProgress, progress) == 0) { in onDragProgress()
317 if ((mDragProgress == 0 && progress > 0) in onDragProgress()
318 || (mDragProgress == 1.0f && progress < 1.0f)) { in onDragProgress()
324 if ((mDragProgress > 0 && progress == 0) in onDragProgress()
325 || (mDragProgress < 1.0f && progress == 1.0f)) { in onDragProgress()
332 mDragProgress = progress; in onDragProgress()
334 mSummaryContent.setAlpha(progress); in onDragProgress()
336 final float inverseAlpha = 1.0f - progress; in onDragProgress()
341 if (progress == 0) { in onDragProgress()
[all …]
/frameworks/rs/tests/java_api/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/packages/DynamicSystemInstallationService/src/com/android/dynsystem/
DInstallationAsyncTask.java123 void onProgressUpdate(Progress progress); in onProgressUpdate() argument
250 Progress progress = values[0]; in onProgressUpdate() local
251 mListener.onProgressUpdate(progress); in onProgressUpdate()
316 Progress progress = new Progress("userdata", mUserdataSize, installedSize, 0); in installUserdata() local
325 if (installedSize > progress.mInstalledSize + MIN_PROGRESS_TO_PUBLISH) { in installUserdata()
326 progress.mInstalledSize = installedSize; in installUserdata()
327 publishProgress(progress); in installUserdata()
472 Progress progress = new Progress( in installImage() local
491 if (installedSize > progress.mInstalledSize + MIN_PROGRESS_TO_PUBLISH) { in installImage()
492 progress.mInstalledSize = installedSize; in installImage()
[all …]

1234567