Home
last modified time | relevance | path

Searched refs:totalSteps (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DTutorialStepIndicator.java60 public void setTutorialProgress(int currentStep, int totalSteps) { in setTutorialProgress() argument
65 if (totalSteps <= 0) { in setTutorialProgress()
66 Log.w(LOG_TAG, "Total number of steps invalid: " + totalSteps + ". Assuming 1 step."); in setTutorialProgress()
67 totalSteps = 1; in setTutorialProgress()
69 if (currentStep > totalSteps) { in setTutorialProgress()
72 currentStep = totalSteps; in setTutorialProgress()
74 if (totalSteps < 2) { in setTutorialProgress()
80 mTotalSteps = totalSteps; in setTutorialProgress()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/ui/enrollment/modules/enrolling/udfps/ui/widget/
DUdfpsEnrollProgressBarDrawableV2.kt64 private var totalSteps = 0 in <lambda>() variable
146 fun onEnrollmentProgress(remaining: Int, totalSteps: Int, isRecreating: Boolean = false) { in <lambda>()
148 updateProgress(remaining, totalSteps, isRecreating) in <lambda>()
153 if (remainingSteps == totalSteps) { in <lambda>()
238 private fun updateProgress(remainingSteps: Int, totalSteps: Int, isRecreating: Boolean) { in <lambda>()
239 if (this.remainingSteps == remainingSteps && this.totalSteps == totalSteps) { in <lambda>()
252 this.totalSteps = totalSteps in <lambda>()
253 val targetProgress = (totalSteps - remainingSteps).toFloat().div(max(1, totalSteps)) in <lambda>()
DUdfpsEnrollViewV2.kt179 private fun onEnrollmentProgress(remaining: Int, totalSteps: Int) { in <lambda>()
180 fingerprintProgressDrawable.onEnrollmentProgress(remaining, totalSteps) in <lambda>()
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/widget/
DUdfpsEnrollProgressBarDrawable.java182 void onEnrollmentProgress(final int remaining, final int totalSteps) { in onEnrollmentProgress() argument
184 updateState(remaining, totalSteps, false /* showingHelp */); in onEnrollmentProgress()
187 void onEnrollmentHelp(int remaining, int totalSteps) { in onEnrollmentHelp() argument
188 updateState(remaining, totalSteps, true /* showingHelp */); in onEnrollmentHelp()
195 private void updateState(int remainingSteps, int totalSteps, boolean showingHelp) { in updateState() argument
196 updateProgress(remainingSteps, totalSteps, showingHelp); in updateState()
200 private void updateProgress(int remainingSteps, int totalSteps, boolean showingHelp) { in updateProgress() argument
201 if (mRemainingSteps == remainingSteps && mTotalSteps == totalSteps) { in updateProgress()
233 mTotalSteps = totalSteps; in updateProgress()
235 final int progressSteps = Math.max(0, totalSteps - remainingSteps); in updateProgress()
DUdfpsEnrollView.java89 public void onEnrollmentProgress(int remaining, int totalSteps) { in onEnrollmentProgress() argument
91 mTotalSteps = totalSteps; in onEnrollmentProgress()
95 mFingerprintProgressDrawable.onEnrollmentProgress(remaining, totalSteps); in onEnrollmentProgress()
96 mFingerprintDrawable.onEnrollmentProgress(remaining, totalSteps); in onEnrollmentProgress()
DUdfpsEnrollDrawable.java184 void onEnrollmentProgress(final int remaining, final int totalSteps) { in onEnrollmentProgress() argument
186 mTotalSteps = totalSteps; in onEnrollmentProgress()
348 private int getStageThresholdSteps(int totalSteps, int stageIndex) { in getStageThresholdSteps() argument
349 return Math.round(totalSteps * mFingerprintManager.getEnrollStageThreshold(stageIndex)); in getStageThresholdSteps()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DUdfpsEnrollProgressBarDrawable.java182 void onEnrollmentProgress(int remaining, int totalSteps) { in onEnrollmentProgress() argument
184 updateState(remaining, totalSteps, false /* showingHelp */); in onEnrollmentProgress()
187 void onEnrollmentHelp(int remaining, int totalSteps) { in onEnrollmentHelp() argument
188 updateState(remaining, totalSteps, true /* showingHelp */); in onEnrollmentHelp()
195 private void updateState(int remainingSteps, int totalSteps, boolean showingHelp) { in updateState() argument
196 updateProgress(remainingSteps, totalSteps, showingHelp); in updateState()
200 private void updateProgress(int remainingSteps, int totalSteps, boolean showingHelp) { in updateProgress() argument
201 if (mRemainingSteps == remainingSteps && mTotalSteps == totalSteps) { in updateProgress()
233 mTotalSteps = totalSteps; in updateProgress()
235 final int progressSteps = Math.max(0, totalSteps - remainingSteps); in updateProgress()
DUdfpsEnrollHelper.java52 void onEnrollmentProgress(int remaining, int totalSteps); in onEnrollmentProgress() argument
54 void onEnrollmentHelp(int remaining, int totalSteps); in onEnrollmentHelp() argument
151 public void onEnrollmentProgress(int totalSteps, int remaining) { in onEnrollmentProgress() argument
153 mTotalSteps = totalSteps; in onEnrollmentProgress()
270 private int getStageThresholdSteps(int totalSteps, int stageIndex) { in getStageThresholdSteps() argument
271 return Math.round(totalSteps * mFingerprintManager.getEnrollStageThreshold(stageIndex)); in getStageThresholdSteps()
DUdfpsEnrollView.java78 public void onEnrollmentProgress(int remaining, int totalSteps) { in onEnrollmentProgress() argument
80 mFingerprintProgressDrawable.onEnrollmentProgress(remaining, totalSteps); in onEnrollmentProgress()
81 mFingerprintDrawable.onEnrollmentProgress(remaining, totalSteps); in onEnrollmentProgress()
86 public void onEnrollmentHelp(int remaining, int totalSteps) { in onEnrollmentHelp() argument
87 mHandler.post(() -> mFingerprintProgressDrawable.onEnrollmentHelp(remaining, totalSteps)); in onEnrollmentHelp()
DUdfpsEnrollDrawable.java160 void onEnrollmentProgress(int remaining, int totalSteps) { in onEnrollmentProgress() argument
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint2/domain/interactor/
DFingerprintEnrollInteractor.kt75 var totalSteps: Int? = null in enroll() variable
81 if (totalSteps == null) { in enroll()
82 totalSteps = remaining + 1 in enroll()
85 trySend(FingerEnrollState.EnrollProgress(remaining, totalSteps!!)).onFailure { error -> in enroll()
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrollingTest.java690 public void onEnrollmentProgress(int remaining, int totalSteps) { in onEnrollmentProgress() argument
695 public void onEnrollmentHelp(int remaining, int totalSteps) { in onEnrollmentHelp() argument