Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/android/preference/
DSeekBarPreference.java112 public void setProgress(int progress) { in setProgress() argument
113 setProgress(progress, true); in setProgress()
116 private void setProgress(int progress, boolean notifyChanged) { in setProgress() argument
117 if (progress > mMax) { in setProgress()
118 progress = mMax; in setProgress()
120 if (progress < 0) { in setProgress()
121 progress = 0; in setProgress()
123 if (progress != mProgress) { in setProgress()
124 mProgress = progress; in setProgress()
125 persistInt(progress); in setProgress()
[all …]
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp59 MOCK_METHOD1(onProgressUpdated, binder::Status(int32_t progress));
168 void SetProgress(long progress, long initial_max, long threshold = 0) { in SetProgress() argument
172 ds.progress_.reset(new Progress(initial_max, progress, 1.2)); in SetProgress()
175 std::string GetProgressMessage(const std::string& listener_name, int progress, int max, in GetProgressMessage() argument
177 EXPECT_EQ(progress, ds.progress_->Get()) << "invalid progress"; in GetProgressMessage()
190 listener_name.c_str(), progress, max); in GetProgressMessage()
601 Progress progress; in TEST_F() local
602 EXPECT_EQ(0, progress.Get()); in TEST_F()
603 EXPECT_EQ(Progress::kDefaultMax, progress.GetInitialMax()); in TEST_F()
604 EXPECT_EQ(Progress::kDefaultMax, progress.GetMax()); in TEST_F()
[all …]
/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/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/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/support/v17/leanback/src/android/support/v17/leanback/widget/
DSeekBar.java141 public void setProgress(int progress) { in setProgress() argument
142 if (progress > mMax) { in setProgress()
143 progress = mMax; in setProgress()
144 } else if (progress < 0) { in setProgress()
145 progress = 0; in setProgress()
147 mProgress = progress; in setProgress()
154 public void setSecondaryProgress(int progress) { in setSecondaryProgress() argument
155 if (progress > mMax) { in setSecondaryProgress()
156 progress = mMax; in setSecondaryProgress()
157 } else if (progress < 0) { in setSecondaryProgress()
[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.java439 (id == R.id.progress || id == R.id.secondaryProgress)); in tileify()
806 doRefreshProgress(R.id.progress, mProgress, false, false, false); in setProgressDrawable()
836 final Drawable target = getTintTarget(R.id.progress, true); in applyPrimaryProgressTint()
1245 doRefreshProgress(rd.id, rd.progress, rd.fromUser, true, rd.animate); in run()
1260 public int progress; field in ProgressBar.RefreshData
1264 public static RefreshData obtain(int id, int progress, boolean fromUser, boolean animate) { in obtain() argument
1270 rd.progress = progress; in obtain()
1281 private synchronized void doRefreshProgress(int id, int progress, boolean fromUser, in doRefreshProgress() argument
1284 final float scale = range > 0 ? (progress - mMin) / (float) range : 0; in doRefreshProgress()
1285 final boolean isPrimary = id == R.id.progress; in doRefreshProgress()
[all …]
DSeekBar.java55 void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser); in onProgressChanged() argument
91 void onProgressRefresh(float scale, boolean fromUser, int progress) { in onProgressRefresh() argument
92 super.onProgressRefresh(scale, fromUser, progress); in onProgressRefresh()
95 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.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/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/SystemUI/src/com/android/systemui/statusbar/phone/
DKeyguardClockPositionAlgorithm.java150 float progress = distanceToScaleEnd / (startPadding - scaleEnd); in getClockScale() local
151 progress = Math.max(0.0f, Math.min(progress, 1.0f)); in getClockScale()
152 progress = mAccelerateInterpolator.getInterpolation(progress); in getClockScale()
153 progress *= Math.pow(1 + mEmptyDragAmount / mDensity / 300, 0.3f); in getClockScale()
154 return interpolate(progress, 1, mDarkAmount); in getClockScale()

1234567