Home
last modified time | relevance | path

Searched refs:getProgress (Results 1 – 25 of 85) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DVibrationIntensityPreferenceControllerTest.java88 assertThat(mPreference.getProgress()) in missingSetting_shouldReturnDefault()
99 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates()
104 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates()
109 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_mainSwitchUpdates_shouldPreserveSettingBetweenUpdates()
119 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
123 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
127 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
131 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_allLevelsSupported_shouldDisplayIntensityInSliderPosition()
140 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_twoLevelsSupported_shouldDisplayMediumAndHighAtLastPosition()
144 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_twoLevelsSupported_shouldDisplayMediumAndHighAtLastPosition()
[all …]
DHapticFeedbackIntensityPreferenceControllerTest.java94 assertThat(mPreference.getProgress()) in missingSetting_shouldReturnDefault()
104 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
109 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
114 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
124 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_hapticFeedbackDisabled_shouldDisplayAlwaysOff()
129 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_hapticFeedbackDisabled_shouldDisplayAlwaysOff()
133 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_hapticFeedbackDisabled_shouldDisplayAlwaysOff()
137 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_hapticFeedbackDisabled_shouldDisplayAlwaysOff()
144 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_shouldDisplayIntensityInSliderPosition()
149 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_shouldDisplayIntensityInSliderPosition()
[all …]
DRingVibrationIntensityPreferenceControllerTest.java95 assertThat(mPreference.getProgress()).isEqualTo( in missingSetting_shouldReturnDefault()
105 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldPreserveSettingAndDisplaySummary()
111 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_ringerModeUpdates_shouldPreserveSettingAndDisplaySummary()
120 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldPreserveSettingAndDisplaySummary()
132 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_vibrateWhenRingingAndRampingRingerOff_shouldDisplayRingIntensity()
137 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_vibrateWhenRingingAndRampingRingerOff_shouldDisplayRingIntensity()
141 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_vibrateWhenRingingAndRampingRingerOff_shouldDisplayRingIntensity()
145 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_vibrateWhenRingingAndRampingRingerOff_shouldDisplayRingIntensity()
152 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_shouldDisplayIntensityInSliderPosition()
157 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_shouldDisplayIntensityInSliderPosition()
[all …]
DNotificationVibrationIntensityPreferenceControllerTest.java92 assertThat(mPreference.getProgress()).isEqualTo( in missingSetting_shouldReturnDefault()
104 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldPreserveSettingAndDisplaySummary()
110 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_ringerModeUpdates_shouldPreserveSettingAndDisplaySummary()
119 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldPreserveSettingAndDisplaySummary()
129 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_shouldDisplayIntensityInSliderPosition()
134 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_shouldDisplayIntensityInSliderPosition()
139 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_shouldDisplayIntensityInSliderPosition()
144 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_shouldDisplayIntensityInSliderPosition()
DAlarmVibrationIntensityPreferenceControllerTest.java94 assertThat(mPreference.getProgress()).isEqualTo( in missingSetting_shouldReturnDefault()
104 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
109 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
114 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
122 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_shouldDisplayIntensityInSliderPosition()
127 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_shouldDisplayIntensityInSliderPosition()
131 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_shouldDisplayIntensityInSliderPosition()
135 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_shouldDisplayIntensityInSliderPosition()
DMediaVibrationIntensityPreferenceControllerTest.java103 assertThat(mPreference.getProgress()).isEqualTo( in missingSetting_shouldReturnDefault()
113 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
118 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
123 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_ringerModeUpdates_shouldNotAffectSettings()
131 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_HIGH); in updateState_shouldDisplayIntensityInSliderPosition()
136 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_MEDIUM); in updateState_shouldDisplayIntensityInSliderPosition()
140 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_LOW); in updateState_shouldDisplayIntensityInSliderPosition()
144 assertThat(mPreference.getProgress()).isEqualTo(Vibrator.VIBRATION_INTENSITY_OFF); in updateState_shouldDisplayIntensityInSliderPosition()
DToggleAutoclickCustomSeekbarControllerTest.java109 assertThat(mSeekBar.getProgress()).isEqualTo(5); in displayPreference_initSeekBar()
137 assertThat(mSeekBar.getProgress()).isEqualTo(5); in onSharedPreferenceChanged_delayMode_updateCustomDelayValue()
157 assertThat(mSeekBar.getProgress()).isEqualTo(8); in onSeekBarProgressChanged_updateCustomDelayValue()
174 assertThat(mSeekBar.getProgress()).isEqualTo(4); in onShorterClicked_updateCustomDelayValue()
192 assertThat(mSeekBar.getProgress()).isEqualTo(6); in onLongerClicked_updateCustomDelayValue()
DPreviewSizeSeekBarControllerTest.java172 assertThat(mSeekBarPreference.getProgress()).isEqualTo(defaultProgress); in resetToDefaultState_matchResult()
200 int newProgress = (mSeekBarPreference.getProgress() != 0) ? 0 : mSeekBarPreference.getMax(); in onProgressChanged_showTooltipView()
217 int newProgress = (mSeekBarPreference.getProgress() != 0) ? 0 : mSeekBarPreference.getMax(); in onProgressChanged_inSuw_toolTipShouldNotShown()
230 int newProgress = (mSeekBarPreference.getProgress() != 0) ? 0 : mSeekBarPreference.getMax(); in onProgressChanged_tooltipViewHasBeenShown_notShowTooltipView()
238 newProgress = (mSeekBarPreference.getProgress() != 0) ? 0 : mSeekBarPreference.getMax(); in onProgressChanged_tooltipViewHasBeenShown_notShowTooltipView()
DBalanceSeekBarTest.java132 assertThat(mSeekBar.getProgress()).isEqualTo(getBalanceSeekBarCenter(mSeekBar)); in setProgressTest_shouldSnapToCenter()
143 assertThat(mSeekBar.getProgress()).isEqualTo(progressWithoutThreshold); in setProgressTest_shouldMaintainInputValue()
/packages/apps/Settings/src/com/android/settings/widget/
DLabeledSeekBarPreference.java188 mStopListener.onPreferenceChange(this, seekBar.getProgress()); in onStopTrackingTouch()
216 final int progress = getProgress(); in updateIconStartIfNeeded()
223 setIconViewAndFrameEnabled(iconStart, seekBar.getProgress() > 0); in updateIconStartIfNeeded()
242 final int progress = getProgress(); in updateIconEndIfNeeded()
249 setIconViewAndFrameEnabled(iconEnd, seekBar.getProgress() < seekBar.getMax()); in updateIconEndIfNeeded()
DSeekBarPreference.java281 public int getProgress() { in getProgress() method in SeekBarPreference
290 int progress = seekBar.getProgress(); in syncProgress()
334 if (seekBar.getProgress() != mProgress) { in onStopTrackingTouch()
DLabeledSeekBar.java181 node.setChecked(virtualViewId == LabeledSeekBar.this.getProgress()); in onPopulateNodeForVirtualView()
188 event.setChecked(virtualViewId == LabeledSeekBar.this.getProgress()); in onPopulateEventForVirtualView()
/packages/apps/Settings/src/com/android/settings/accessibility/
DTextReadingPreviewController.java194 final int fontSizeProgress = mFontSizePreference.getProgress(); in getPagerIndex()
195 final int displaySizeProgress = mDisplaySizePreference.getProgress(); in getPagerIndex()
204 final int fontProgress = mFontSizePreference.getProgress(); in tryCommitFontSizeConfig()
222 final int displayProgress = mDisplaySizePreference.getProgress(); in tryCommitDisplaySizeConfig()
DPreviewSizeSeekBarController.java154 setSeekbarStateDescription(mSeekBarPreference.getProgress()); in displayPreference()
199 int seekBarPreferenceProgress = mSeekBarPreference.getProgress();
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeGroupControllerTest.java310 when(mPreference1.getProgress()).thenReturn(TEST_VOLUME_VALUE); in onDeviceAdded_firstDevice_updateVisibility()
321 when(mPreference1.getProgress()).thenReturn(TEST_VOLUME_VALUE); in onDeviceAdded_rankFallbackDeviceOnTop()
322 when(mPreference2.getProgress()).thenReturn(TEST_VOLUME_VALUE); in onDeviceAdded_rankFallbackDeviceOnTop()
334 when(mPreference1.getProgress()).thenReturn(TEST_INVALID_VOLUME_VALUE); in onDeviceAdded_setVolumeFromVolumeControlService()
345 when(mPreference1.getProgress()).thenReturn(TEST_INVALID_VOLUME_VALUE); in onDeviceAdded_setVolumeFromAudioManager()
431 when(mPreference1.getProgress()).thenReturn(TEST_VOLUME_VALUE); in settingsObserverOnChange_updatePreferenceOrder()
432 when(mPreference2.getProgress()).thenReturn(TEST_VOLUME_VALUE); in settingsObserverOnChange_updatePreferenceOrder()
449 when(mPreference1.getProgress()).thenReturn(TEST_MAX_VOLUME_VALUE); in onDeviceVolumeChanged_updatePreference()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitCarUiProxy/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
DProgressBarControllerImpl.java87 public int getProgress() { in getProgress() method in ProgressBarControllerImpl
88 return mProgressBar.getProgress(); in getProgress()
/packages/apps/Settings/src/com/android/settings/
DPointerSpeedPreference.java104 mIm.tryPointerSpeed(seekBar.getProgress() + InputSettings.MIN_POINTER_SPEED); in onStopTrackingTouch()
121 mSeekBar.getProgress() + InputSettings.MIN_POINTER_SPEED); in onDialogClosed()
143 myState.progress = mSeekBar.getProgress(); in onSaveInstanceState()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DAnimatorControllerWithResistance.java133 float resistProgress = progress <= 1 ? 0 : Utilities.getProgress(progress, 1, maxProgress); in setProgress()
239 float startResist = Utilities.getProgress(params.resistanceParams.scaleStartResist, in createRecentsResistanceAnim()
241 float maxResist = Utilities.getProgress(params.resistanceParams.scaleMaxResist, in createRecentsResistanceAnim()
252 float resistProgress = Utilities.getProgress(t, startResist, stopResist); in createRecentsResistanceAnim()
DTransformParams.java37 return params.getProgress();
171 public float getProgress() { in getProgress() method in TransformParams
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/
DExportDialog.java102 mSeekVal.setText(mSliderLabel + mSeekBar.getProgress()); in onCreateView()
142 mQuality = mSeekBar.getProgress(); in onProgressChanged()
164 true, mSeekBar.getProgress(), scaleFactor, false); in onClick()
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/homescreen/audio/media/
DMediaCardFragment.java109 mPlaybackCallback.seekTo(seekBar.getProgress());
322 progressBar.setProgress(seekBarViewModel.getProgress(), /* animate = */ true); in updateSeekBarAndTimes()
348 progressBar.setProgress(seekBarViewModel.getProgress(), /* animate = */ true); in updateProgressBar()
358 seekBar.setProgress(seekBarViewModel.getProgress(), /* animate = */ true); in updateSeekBar()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSeekBarDialogPreference.java123 final int value = getClippedValueFromProgress(mSeekBar.getProgress()); in onClick()
145 mValueProxy.feedbackValue(getClippedValueFromProgress(seekBar.getProgress())); in onStopTrackingTouch()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DAppDataUsagePreferenceControllerTest.java169 assertThat(preference1.getProgress()).isEqualTo(100); in onDataLoaded_statsLoaded_hasOnePreference()
170 assertThat(preference2.getProgress()).isEqualTo(50); in onDataLoaded_statsLoaded_hasOnePreference()
/packages/apps/Gallery2/src_pd/com/android/gallery3d/app/
DStitchingProgressManager.java31 public Integer getProgress(Uri uri) { in getProgress() method in StitchingProgressManager
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/
DFanSpeedSeekBar.java63 int prevProgress = getProgress();
226 int progress = getProgress(); in updateUI()

1234