Searched refs:progress (Results 1 - 25 of 152) sorted by relevance

1234567

/packages/apps/Launcher3/src/com/android/launcher3/compat/
H A DPackageInstallerCompat.java42 * @return a map of active installs to their progress
52 public int progress; field in class:PackageInstallerCompat.PackageInstallInfo
58 public PackageInstallInfo(String packageName, int state, int progress) { argument
61 this.progress = progress;
/packages/apps/Email/emailcommon/src/com/android/emailcommon/service/
H A DIEmailServiceCallback.aidl23 * statuscode = 1, progress = 0: "starting"
24 * statuscode = 0, progress = n/a: "finished"
27 * statuscode = err, progress = n/a: "stopping due to error"
30 * statuscode = 1, progress = 0: "starting"
31 * statuscode = 1, progress = 30: "working"
32 * statuscode = 1, progress = 60: "working"
33 * statuscode = 0, progress = n/a: "finished"
40 * statusCode = 0 for OK, 1 for progress, other codes for error
41 * progress = 0 for "start", 1..100 for optional progress report
[all...]
H A DEmailServiceStatus.java83 public static final String SYNC_STATUS_PROGRESS = "progress";
89 * Some status updates need to provide values in addition to the core id, code, and progress.
106 * @param progress The progress of this sync operation.
110 final int statusType, final long id, final int statusCode, final int progress,
124 statusExtras.putInt(SYNC_STATUS_PROGRESS, progress);
140 * @param progress The progress of this sync operation.
143 final long mailboxId, final int statusCode, final int progress, int syncResult) {
144 syncStatus(cr, syncExtras, SYNC_STATUS_TYPE_MAILBOX, mailboxId, statusCode, progress,
109 syncStatus(final ContentResolver cr, final Bundle syncExtras, final int statusType, final long id, final int statusCode, final int progress, int syncResult, final StatusWriter writer) argument
142 syncMailboxStatus(final ContentResolver cr, final Bundle syncExtras, final long mailboxId, final int statusCode, final int progress, int syncResult) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/anim/
H A DFloatAnimation.java33 protected void onCalculate(float progress) { argument
34 mCurrent = mFrom + (mTo - mFrom) * progress;
H A DAlphaAnimation.java44 protected void onCalculate(float progress) { argument
46 + (mEndAlpha - mStartAlpha) * progress, 0f, 1f);
/packages/apps/Launcher3/src/com/android/launcher3/util/
H A DCircleRevealOutlineProvider.java45 public void setProgress(float progress) { argument
46 mOutlineRadius = (1 - progress) * mRadius0 + progress * mRadius1;
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DStitchingChangeListener.java26 public void onStitchingProgress(Uri uri, int progress); argument
/packages/apps/Launcher3/src/com/android/launcher3/
H A DPinchThresholdManager.java41 * Uses the pinch progress to determine whether a threshold has been passed,
43 * @param progress From 0 to 1, where 0 is overview and 1 is workspace.
51 public float updateAndAnimatePassedThreshold(float progress, argument
54 // Invert the progress, because going from workspace to overview is 1 to 0.
55 progress = 1f - progress;
60 if (progress < THRESHOLD_ONE) {
62 } else if (progress < THRESHOLD_TWO) {
64 } else if (progress < THRESHOLD_THREE) {
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
H A DPackageInstallStateChangedTaskTest.java23 private PackageInstallStateChangedTask newTask(String pkg, int progress) { argument
25 installInfo.progress = progress;
49 private void verifyProgressUpdate(int progress, Long... idsUpdated) { argument
53 assertEquals(updates.contains(info.id) ? progress: 0,
56 assertEquals(updates.contains(info.id) ? progress: -1,
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageSummaryPreference.java47 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress);
49 progress.setVisibility(View.VISIBLE);
50 progress.setProgress(mPercent);
51 progress.setScaleY(7f);
53 progress.setVisibility(View.GONE);
H A DStorageVolumePreference.java114 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress);
116 progress.setVisibility(View.VISIBLE);
117 progress.setProgress(mUsedPercent);
118 progress.setProgressTintList(ColorStateList.valueOf(mColor));
120 progress.setVisibility(View.GONE);
/packages/apps/Settings/src/com/android/settings/
H A DSeekBarPreference.java133 public void setProgress(int progress) { argument
134 setProgress(progress, true);
138 * Sets the progress point to draw a single tick mark representing a default value.
158 private void setProgress(int progress, boolean notifyChanged) { argument
159 if (progress > mMax) {
160 progress = mMax;
162 if (progress < 0) {
163 progress = 0;
165 if (progress != mProgress) {
166 mProgress = progress;
194 onProgressChanged( SeekBar seekBar, int progress, boolean fromUser) argument
258 int progress; field in class:SeekBarPreference.SavedState
[all...]
H A DAppProgressPreference.java42 final ProgressBar progress = (ProgressBar) view.findViewById(android.R.id.progress);
43 progress.setProgress(mProgress);
H A DPointerSpeedPreference.java75 public void onProgressChanged(SeekBar seekBar, int progress, boolean fromTouch) { argument
77 mIm.tryPointerSpeed(progress + InputManager.MIN_POINTER_SPEED);
125 myState.progress = mSeekBar.getProgress();
144 mIm.tryPointerSpeed(myState.progress + InputManager.MIN_POINTER_SPEED);
148 int progress; field in class:PointerSpeedPreference.SavedState
153 progress = source.readInt();
160 dest.writeInt(progress);
/packages/experimental/NotificationShowcase/src/com/android/example/notificationshowcase/
H A DProgressService.java32 private static final String ACTION_PROGRESS = "progress";
49 UpdateRunnable(int id, long when, int progress) { argument
52 mProgress = progress;
58 Log.v(TAG, "id: " + mId + " when: " + mWhen + " progress: " + mProgress);
80 int progress = intent.getIntExtra("progress", 0);
81 handler.postDelayed(new UpdateRunnable(id, when, progress), 1000);
84 public static void startProgressUpdater(Context context, int id, long when, int progress) { argument
90 progressIntent.putExtra("progress", progress);
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/anim/
H A DPillHeightRevealOutlineProvider.java38 public void setProgress(float progress) { argument
41 mOutline.bottom = (int) (mPillRect.bottom - heightDifference * (1 - progress));
/packages/apps/Dialer/java/com/android/incallui/answer/protocol/
H A DAnswerScreenDelegate.java36 * Sets the window background color based on foreground call's theme and the given progress. This
42 * @param progress float from -1 to 1. -1 is fully rejected, 1 is fully accepted, and 0 is neutral
44 void updateWindowBackgroundColor(@FloatRange(from = -1f, to = 1.0f) float progress); argument
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DFlingScroller.java107 public void computeScrollOffset(float progress) { argument
108 progress = Math.min(progress, 1);
109 float f = 1 - progress;
113 mCurrV = getV(progress);
136 private double getV(float progress) { argument
139 Math.pow(1 - progress, DECELERATED_FACTOR - 1) / mDuration;
/packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/cards/
H A DMediaCard.java112 public void setProgress(int progress) { argument
113 if (progress == -1) {
120 if (progress > 100) {
121 progress = 100;
123 if (progress < 0) {
124 progress = 0;
126 mProgressBar.setProgress(progress);
/packages/apps/Messaging/src/com/android/messaging/ui/
H A DAudioPlaybackProgressBar.java30 * Shows a styled progress bar that is synchronized with the playback state of an audio attachment.
48 int progress = 0;
50 progress = (int) (((mCumulativeTime + SystemClock.elapsedRealtime() -
52 progress = Math.max(Math.min(progress, 100), 0);
54 setProgress(progress);
/packages/apps/Car/Settings/src/com/android/car/settings/display/
H A DBrightnessLineItem.java60 public void onSeekbarChanged(int progress) { argument
61 Settings.System.putInt(mContext.getContentResolver(), SCREEN_BRIGHTNESS, progress);
/packages/apps/Dialer/java/com/android/incallui/
H A DAnswerScreenPresenterStub.java46 public void updateWindowBackgroundColor(@FloatRange(from = -1f, to = 1.0f) float progress) {} argument
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DAllAppsCaretController.java56 * Updates the state of the caret based on the progress of the {@link AllAppsContainerView}, as
60 * @param containerProgress The progress of the container in the range [0..1]
75 // Set the last caret progress to this progress to prevent animator cancellation
90 private void animateCaretToProgress(float progress) { argument
91 // If the new progress is the same as the last progress we animated to, terminate early
92 if (Float.compare(mLastCaretProgress, progress) == 0) {
100 // Update the progress and start the animation
101 mLastCaretProgress = progress;
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DPanoProgressBar.java108 public void setMaxProgress(int progress) { argument
109 mMaxProgress = progress;
132 public void setProgress(int progress) { argument
136 if (progress > 10) {
138 } else if (progress < -10) {
144 mProgress = progress * mWidth / mMaxProgress + mProgressOffset;
148 // The right most progress is adjusted.
152 // The left most progress is adjusted.
171 // the progress area
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoProgressBar.java103 public void setMaxProgress(int progress) { argument
104 mMaxProgress = progress;
127 public void setProgress(int progress) { argument
131 if (progress > 10) {
133 } else if (progress < -10) {
139 mProgress = progress * mWidth / mMaxProgress + mProgressOffset;
143 // The right most progress is adjusted.
147 // The left most progress is adjusted.
166 // the progress area

Completed in 719 milliseconds

1234567