Home
last modified time | relevance | path

Searched refs:mProgress (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoProgressBar.java31 private float mProgress = 0; field in PanoProgressBar
139 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
141 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress()
144 mRightMostProgress = Math.max(mRightMostProgress, mProgress); in setProgress()
148 mLeftMostProgress = Math.min(mLeftMostProgress, mProgress); in setProgress()
155 mProgress = 0; in reset()
173 l = Math.max(mProgress - mIndicatorWidth, 0f); in onDraw()
174 r = mProgress; in onDraw()
176 l = mProgress; in onDraw()
177 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
/packages/apps/Camera2/src/com/android/camera/
DPanoProgressBar.java34 private float mProgress = 0; field in PanoProgressBar
144 mProgress = progress * mWidth / mMaxProgress + mProgressOffset; in setProgress()
146 mProgress = Math.min(mWidth, Math.max(0, mProgress)); in setProgress()
149 mRightMostProgress = Math.max(mRightMostProgress, mProgress); in setProgress()
153 mLeftMostProgress = Math.min(mLeftMostProgress, mProgress); in setProgress()
160 mProgress = 0; in reset()
178 l = Math.max(mProgress - mIndicatorWidth, 0f); in onDraw()
179 r = mProgress; in onDraw()
181 l = mProgress; in onDraw()
182 r = Math.min(mProgress + mIndicatorWidth, mWidth); in onDraw()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimVideo.java56 public ProgressDialog mProgress; field in TrimVideo
136 if (mProgress != null) { in onStop()
137 mProgress.dismiss(); in onStop()
138 mProgress = null; in onStop()
259 if (mProgress != null) { in trimVideo()
260 mProgress.dismiss(); in trimVideo()
261 mProgress = null; in trimVideo()
278 mProgress = new ProgressDialog(this); in showProgressDialog()
279 mProgress.setTitle(getString(R.string.trimming)); in showProgressDialog()
280 mProgress.setMessage(getString(R.string.please_wait)); in showProgressDialog()
[all …]
DPhotoPageProgressBar.java29 private View mProgress; field in PhotoPageProgressBar
37 mProgress = mContainer.findViewById(R.id.photopage_progress_foreground); in PhotoPageProgressBar()
42 LayoutParams layoutParams = mProgress.getLayoutParams(); in setProgress()
44 mProgress.setLayoutParams(layoutParams); in setProgress()
/packages/apps/TV/src/com/android/tv/menu/
DPlaybackProgressBar.java37 private long mProgress = 0; field in PlaybackProgressBar
92 if (mProgress > max) { in setMax()
93 mProgress = max; in setMax()
103 mProgress = constrain(mProgress, start, end); in setProgressRange()
114 if (progress != mProgress) { in setProgress()
115 mProgress = progress; in setProgress()
132 boolean progressUpdated = setProgressBound(mPrimaryDrawable, mProgressStart, mProgress); in setProgressLevels()
133 progressUpdated |= setProgressBound(mSecondaryDrawable, mProgress, mProgressEnd); in setProgressLevels()
DPlayControlsRowView.java58 private PlaybackProgressBar mProgress; field in PlayControlsRowView
174 mProgress = (PlaybackProgressBar) findViewById(R.id.progress); in onFinishInflate()
398 mProgress.setMax(mProgramEndTimeMs - mProgramStartTimeMs); in initializeTimeline()
559 mProgress.setProgressRange( in updateProgress()
562 mProgress.setProgress(currentPlayingTimeMs - mProgramStartTimeMs); in updateProgress()
564 mProgress.setProgressRange(0, 0); in updateProgress()
/packages/apps/Settings/src/com/android/settings/widget/
DSeekBarPreference.java52 private int mProgress; field in SeekBarPreference
127 mSeekBar.setProgress(mProgress); in onBindViewHolder()
174 setProgress(restoreValue ? getPersistedInt(mProgress) in onSetInitialValue()
261 if (progress != mProgress) { in setProgress()
262 mProgress = progress; in setProgress()
271 return mProgress; in getProgress()
280 if (progress != mProgress) { in syncProgress()
294 seekBar.setProgress(mProgress); in syncProgress()
317 if (seekBar.getProgress() != mProgress) { in onStopTrackingTouch()
376 myState.progress = mProgress; in onSaveInstanceState()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPowerGaugePreference.java42 private CharSequence mProgress; field in PowerGaugePreference
78 mProgress = Utils.formatPercentage(percentOfTotal, true); in setPercent()
84 return mProgress.toString(); in getPercent()
89 mProgress = subtitle; in setSubtitle()
95 return mProgress; in getSubtitle()
126 subtitle.setText(mProgress); in onBindViewHolder()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DProgressBarPreference.java44 private int mProgress; field in ProgressBarPreference
73 mProgress = a.getInteger(R.styleable.ProgressBarPreference_progress, 0); in init()
114 if (mProgress != progress) { in setProgress()
115 mProgress = progress; in setProgress()
122 return mProgress; in getProgress()
132 progressBar.setProgress(mProgress); in onBindViewHolder()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DProgressDelegateInputConsumer.java83 private final AnimatedFloat mProgress; field in ProgressDelegateInputConsumer
97 mProgress = progress; in ProgressDelegateInputConsumer()
137 mProgress.updateValue(displacement / -mDisplaySize.y); in onDrag()
148 willExit = mProgress.value > SWIPE_DISTANCE_THRESHOLD; in onDragEnd()
151 long duration = calculateDuration(velocity, endValue - mProgress.value); in onDragEnd()
154 ObjectAnimator anim = mProgress.animateToValue(endValue); in onDragEnd()
DDeviceLockedInputConsumer.java102 private final AnimatedFloat mProgress = new AnimatedFloat(this::applyTransform); field in DeviceLockedInputConsumer
173 mProgress.updateValue(dy / mDisplaySize.y); in onMotionEvent()
201 dismissTask = mProgress.value >= (1 - MIN_PROGRESS_FOR_OVERVIEW); in finishTouchTracking()
205 ObjectAnimator animator = mProgress.animateToValue(mProgress.value, 0); in finishTouchTracking()
290 mTransformParams.setProgress(mProgress.value); in applyTransform()
299 mMatrix.setTranslate(0, mProgress.value * mMaxTranslationY); in onBuildTargetParams()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DSlideshowView.java126 private float mProgress; field in SlideshowView.SlideshowAnimation
144 float scale = initScale * (1 + SCALE_SPEED * mProgress); in apply()
146 float centerX = viewWidth / 2 + mMovingVector.x * mProgress; in apply()
147 float centerY = viewHeight / 2 + mMovingVector.y * mProgress; in apply()
160 mProgress = progress; in onCalculate()
DSlotView.java332 protected float mProgress = 0; field in SlotView.SlotAnimation
341 mProgress = progress; in onCalculate()
352 canvas.translate(0, 0, RISING_DISTANCE * (1 - mProgress)); in apply()
367 (mCenter.getX() - target.centerX()) * (1 - mProgress), in apply()
368 (mCenter.getY() - target.centerY()) * (1 - mProgress), in apply()
369 slotIndex * PHOTO_DISTANCE * (1 - mProgress)); in apply()
370 canvas.setAlpha(mProgress); in apply()
DPhotoFallbackEffect.java58 private float mProgress; field in PhotoFallbackEffect
102 float p = mProgress; in drawEntry()
158 mProgress = progress; in onCalculate()
/packages/apps/Settings/src/com/android/settings/
DProgressCategory.java32 private boolean mProgress = false; field in ProgressCategory
68 progressBar.setVisibility(mProgress ? View.VISIBLE : View.GONE); in onBindViewHolder()
70 if (mProgress || !noDeviceFound) { in onBindViewHolder()
91 mProgress = progressOn; in setProgress()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DTransitionAnimationHelper.java104 startCurrentAnimatedDrawable(mTransitionAnimationState.mProgress); in start()
120 mTransitionAnimationState.mProgress = mAnimationComponents.mAnimationView.getProgress(); in updateState()
324 private float mProgress;
332 mProgress = progress;
342 Float.compare(that.mProgress, mProgress) == 0 &&
348 return Objects.hash(mAnimationIndex, mProgress, mLastTransitionTimestamp);
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java94 return controller.mProgress;
181 private float mProgress; // [0, 1], mShiftRange * mProgress = shiftCurrent field in AllAppsTransitionController
196 mProgress = 1f; in AllAppsTransitionController()
234 mProgress = progress; in setProgress()
235 getAppsViewProgressTranslationY().setValue(mProgress * mShiftRange); in setProgress()
245 return mProgress; in getProgress()
373 if (Float.compare(mProgress, targetProgress) == 0) {
382 Animator anim = createSpringAnimation(mProgress, targetProgress);
523 if (Float.compare(mProgress, 1f) == 0) {
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionaryDownloadProgressBar.java152 private int mProgress; field in DictionaryDownloadProgressBar.UpdaterThread.UpdateHelper
156 setProgress(mProgress); in run()
159 if (mProgress != progress) { in setProgressFromAnotherThread()
160 mProgress = progress; in setProgressFromAnotherThread()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardFormatProgress.java83 private volatile int mProgress = 20; field in StorageWizardFormatProgress.PartitionTask
134 mProgress = progress[0]; in onProgressUpdate()
135 mActivity.setCurrentProgress(mProgress); in onProgressUpdate()
140 mActivity.setCurrentProgress(mProgress); in setActivity()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DTransformParams.java59 private float mProgress; field in TransformParams
70 mProgress = 0; in TransformParams()
81 mProgress = progress; in setProgress()
196 return mProgress; in getProgress()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsUnavailableFragment.java52 private ProgressBar mProgress; field in ContactsUnavailableFragment
84 mProgress = (ProgressBar) mView.findViewById(R.id.progress); in onCreateView()
117 mProgress.setVisibility(View.GONE); in updateViewsForEmptyStatus()
127 mProgress.setVisibility(View.VISIBLE); in updateViewsForBusyStatus()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DPackageIncrementalDownloadUpdatedTask.java39 private final int mProgress; field in PackageIncrementalDownloadUpdatedTask
47 mProgress = 1 - progress > 0.001 ? (int) (100 * progress) : 100; in PackageIncrementalDownloadUpdatedTask()
57 mProgress, in execute()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DAllSetActivity.java392 private float mProgress = 0; field in AllSetActivity.BgDrawable
406 if (mProgress <= 0) { in draw()
412 float progress = mapBoundToRange(mProgress, in draw()
427 mColorMatrix.getArray()[19] = mapBoundToRange(mProgress, 0, 1, 0, -255, LINEAR); in draw()
434 if (mProgress != progress) { in setProgress()
435 mProgress = progress; in setProgress()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/volume/
DCarVolumeItem.java40 private int mProgress; field in CarVolumeItem
53 mProgress = progress; in setProgress()
129 mSeekBar.setProgress(carVolumeItem.mProgress); in bind()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DSaveFragment.java57 private ProgressBar mProgress; field in SaveFragment
125 mProgress = (ProgressBar) view.findViewById(android.R.id.progress); in onCreateView()
211 mProgress.setVisibility(pending ? View.VISIBLE : View.GONE); in setPending()

12