Home
last modified time | relevance | path

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

/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTimerProgressBar.java72 int progress = (int) ((currentTime - mStartTime) / mStepSize);
73 progress = Math.min(progress, TimerProgressBar.this.getMax());
74 TimerProgressBar.this.setProgress(progress);
/cts/tests/tests/os/src/android/os/cts/
DFileUtilsTest.java85 FileUtils.copy(in, out, null, executor, (progress) -> { in testCopyFileStreamListener()
86 event.complete(progress); in testCopyFileStreamListener()
106 FileUtils.copy(in.getFD(), out.getFD(), null, executor, (progress) -> { in testCopyFileDescriptorListener()
107 event.complete(progress); in testCopyFileDescriptorListener()
/cts/tests/tests/print/src/android/print/cts/
DPrintServicesTest.java212 private void setProgressAndStatus(final float progress, final CharSequence status) in setProgressAndStatus() argument
215 sPrintJob.setProgress(progress); in setProgressAndStatus()
228 private void progress(float progress, CharSequence status) throws Throwable { in progress() argument
229 setProgressAndStatus(progress, status); in progress()
232 checkNotification(progress, status); in progress()
264 public void progress() throws Throwable {
303 progress(0, "printed 0");
304 progress(0.5f, "printed 50");
305 progress(1, "printed 100");
/cts/tests/tests/widget/src/android/widget/cts/
DAbsSeekBarTest.java245 int progress = 10; in testAccessMax() local
246 myAbsSeekBar.setProgress(progress); in testAccessMax()
247 int max = progress + 1; in testAccessMax()
250 assertEquals(progress, myAbsSeekBar.getProgress()); in testAccessMax()
253 max = progress - 1; in testAccessMax()
274 int progress = -5; in testAccessMin() local
275 int min = progress - 1; in testAccessMin()
279 myAbsSeekBar.setProgress(progress); in testAccessMin()
281 assertEquals(progress, myAbsSeekBar.getProgress()); in testAccessMin()
284 min = progress + 1; in testAccessMin()
DRemoteViewsTest.java355 ProgressBar progress = (ProgressBar) mResult.findViewById(R.id.remoteView_progress); in testSetProgressBar() local
356 assertEquals(100, progress.getMax()); in testSetProgressBar()
357 assertEquals(0, progress.getProgress()); in testSetProgressBar()
359 assertFalse(progress.isIndeterminate()); in testSetProgressBar()
364 assertEquals(100, progress.getMax()); in testSetProgressBar()
365 assertEquals(0, progress.getProgress()); in testSetProgressBar()
366 assertTrue(progress.isIndeterminate()); in testSetProgressBar()
370 assertEquals(60, progress.getMax()); in testSetProgressBar()
371 assertEquals(50, progress.getProgress()); in testSetProgressBar()
372 assertFalse(progress.isIndeterminate()); in testSetProgressBar()
[all …]
DProgressBarTest.java75 mProgressBar = (ProgressBar) mActivity.findViewById(R.id.progress); in setup()
415 int progress = 10; in testAccessMax() local
416 mProgressBarHorizontal.setProgress(progress); in testAccessMax()
419 int max = progress + 1; in testAccessMax()
422 assertEquals(progress, mProgressBarHorizontal.getProgress()); in testAccessMax()
424 max = progress - 1; in testAccessMax()
DRemoteViewsActivityTest.java76 assertTrue("ProgressBar not inflated", result.findViewById(R.id.progress) != null); in testGood()
DWidgetAttributeTest.kt141 attributeMapProgressBar[android.R.attr.progress]!!.toInt()) in testGetAttributeSourceResourceMap()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DDetermineFovActivity.java109 SeekBar seekBar, int progress, boolean fromUser) { in onCreate()
110 mFovDegrees = seekBarProgressToFovDegrees(progress); in onCreate()
132 private float seekBarProgressToFovDegrees(int progress) { in seekBarProgressToFovDegrees() argument
133 float degrees = mFovMinDegrees + (float) progress / SEEKBAR_MAX_VALUE in seekBarProgressToFovDegrees()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioLoopbackActivity.java151 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { in onCreate()
155 progress, 0); in onCreate()
157 Log.i(TAG,"Changed stream volume to: " + progress); in onCreate()
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewSyncLoader.java165 public synchronized void onProgressChanged(int progress) { in onProgressChanged() argument
166 mProgress = progress; in onProgressChanged()
/cts/tests/tests/os/src/android/os/image/cts/
DDynamicSystemClientTest.java43 public void onStatusChanged(int status, int cause, long progress, Throwable detail) { in onStatusChanged() argument
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsTestActivity.java277 StringBuilder progress = new StringBuilder(); in onReceive() local
283 progress.append(String.format("Cam %s, %s: %s\n", in onReceive()
288 progressView.setText(progress.toString()); in onReceive()
/cts/tests/app/src/android/app/cts/
DProgressDialogTest.java282 ProgressBar progressBar = (ProgressBar) w.findViewById(android.R.id.progress); in testSetProgressDrawable()
297 mProgressBar = (ProgressBar) w.findViewById(android.R.id.progress); in testSetIndeterminateDrawable()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/
DCameraVideoActivity.java392 StringBuilder progress = new StringBuilder();
393 progress.append(getResources().getString(R.string.status_ready));
394 progress.append("\n---- Progress ----\n");
395 progress.append(getTestDetails());
396 mStatusLabel.setText(progress.toString());
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DGyroscopeTestActivity.java85 mProgressText = (TextView) findViewById(R.id.progress); in onCreate()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java595 @Override public void onProgressChanged(int sessionId, float progress) { } in testStagedApkSessionCallbacks()