/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | RingProgressBarTest.java | 36 private RingProgressBar mProgressBar; field in RingProgressBarTest 40 mProgressBar = new RingProgressBar(mContext); in setUp() 45 mProgressBar.measure( in testMeasurePortrait() 48 assertEquals(100, mProgressBar.getMeasuredHeight()); in testMeasurePortrait() 49 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasurePortrait() 54 mProgressBar.measure( in testMeasureLandscape() 57 assertEquals(100, mProgressBar.getMeasuredHeight()); in testMeasureLandscape() 58 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasureLandscape() 63 assertFalse(mProgressBar.isIndeterminate()); in testDefaultAttributes() 64 assertEquals(0, mProgressBar.getProgress()); in testDefaultAttributes() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | TrimTimeBar.java | 75 return mProgressBar.left + in getBarPosFromTime() 76 (int) ((mProgressBar.width() * (long) time) / mTotalTime); in getBarPosFromTime() 91 mPlayedBar.set(mProgressBar); in updatePlayedBarAndScrubberFromTime() 105 mPlayedBar.right = mProgressBar.left; in updatePlayedBarAndScrubberFromTime() 106 mScrubberLeft = mProgressBar.left - mScrubber.getWidth() / 2; in updatePlayedBarAndScrubberFromTime() 107 mTrimStartScrubberLeft = mProgressBar.left - trimStartScrubberTipOffset(); in updatePlayedBarAndScrubberFromTime() 108 mTrimEndScrubberLeft = mProgressBar.right - trimEndScrubberTipOffset(); in updatePlayedBarAndScrubberFromTime() 162 return (int) ((long) (scrubberLeft + offset - mProgressBar.left) in getScrubberTime() 163 * mTotalTime / mProgressBar.width()); in getScrubberTime() 171 mProgressBar.set(0, 0, w, h); in onLayout() [all …]
|
D | TimeBar.java | 57 protected final Rect mProgressBar; field in TimeBar 89 mProgressBar = new Rect(); in TimeBar() 114 mPlayedBar.set(mProgressBar); in update() 118 … mPlayedBar.left + (int) ((mProgressBar.width() * (long) mCurrentTime) / mTotalTime); in update() 120 mPlayedBar.right = mProgressBar.left; in update() 162 int max = mProgressBar.right - half; in clampScrubber() 163 int min = mProgressBar.left - half; in clampScrubber() 168 return (int) ((long) (mScrubberLeft + mScrubber.getWidth() / 2 - mProgressBar.left) in getScrubberTime() 169 * mTotalTime / mProgressBar.width()); in getScrubberTime() 177 mProgressBar.set(0, 0, w, h); in onLayout() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | AudioAttachmentView.java | 67 private AudioPlaybackProgressBar mProgressBar; field in AudioAttachmentView 112 mProgressBar = (AudioPlaybackProgressBar) findViewById(R.id.progress); in onFinishInflate() 121 mProgressBar.pause(); in onFinishInflate() 198 mProgressBar.restart(); in playAudio() 202 mProgressBar.resume(); in playAudio() 238 mProgressBar.reset(); in setupMediaPlayer() 250 mProgressBar.setDuration(mMediaPlayer.getDuration()); in setupMediaPlayer() 287 mProgressBar.reset(); in releaseMediaPlayer() 352 mProgressBar.setVisualStyle(mUseIncomingStyle); in updateVisualStyle() 361 mProgressBar.setVisibility(VISIBLE); in initializeViewsForMode() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/ |
D | FingerprintEnrollEnrolling.java | 88 private ProgressBar mProgressBar; field in FingerprintEnrollEnrolling 137 mProgressBar = (ProgressBar) findViewById(R.id.fingerprint_progress_bar); in onCreate() 150 final LayerDrawable fingerprintDrawable = (LayerDrawable) mProgressBar.getBackground(); in onCreate() 162 mProgressBar.setOnTouchListener(new View.OnTouchListener() { in onCreate() 170 mProgressBar.postDelayed(mShowDialogRunnable, in onCreate() 175 mProgressBar.removeCallbacks(mShowDialogRunnable); in onCreate() 229 ObjectAnimator anim = ObjectAnimator.ofInt(mProgressBar, "progress", in animateProgress() 230 mProgressBar.getProgress(), progress); in animateProgress() 299 mProgressBar.setProgress(progress); in updateProgress() 371 if (mProgressBar.getProgress() >= PROGRESS_BAR_MAX) { [all …]
|
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/ |
D | FingerprintEnrollEnrolling.java | 89 private ProgressBar mProgressBar; field in FingerprintEnrollEnrolling 138 mProgressBar = (ProgressBar) findViewById(R.id.fingerprint_progress_bar); in onCreate() 154 final LayerDrawable fingerprintDrawable = (LayerDrawable) mProgressBar.getBackground(); in onCreate() 166 mProgressBar.setOnTouchListener(new View.OnTouchListener() { in onCreate() 174 mProgressBar.postDelayed(mShowDialogRunnable, in onCreate() 179 mProgressBar.removeCallbacks(mShowDialogRunnable); in onCreate() 233 ObjectAnimator anim = ObjectAnimator.ofInt(mProgressBar, "progress", in animateProgress() 234 mProgressBar.getProgress(), progress); in animateProgress() 303 mProgressBar.setProgress(progress); in updateProgress() 375 if (mProgressBar.getProgress() >= PROGRESS_BAR_MAX) { [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/ |
D | WifiSettingsFragment.java | 39 private ProgressBar mProgressBar; field in WifiSettingsFragment 59 mProgressBar = requireActivity().findViewById(R.id.progress_bar); in onActivityCreated() 76 mProgressBar.setVisibility(View.GONE); in onStop() 87 mProgressBar.setVisibility(View.VISIBLE); in onAccessPointsChanged() 88 getView().postDelayed(() -> mProgressBar.setVisibility(View.GONE), SEARCHING_DELAY_MILLIS); in onAccessPointsChanged() 96 mProgressBar.setVisibility(View.VISIBLE); in onWifiStateChanged() 99 mProgressBar.setVisibility(View.GONE); in onWifiStateChanged()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MinimizedPlaybackControlBar.java | 40 private ProgressBar mProgressBar; field in MinimizedPlaybackControlBar 60 mProgressBar = findViewById(R.id.progress_bar); in init() 72 if (mProgressBar != null) { in setModel() 84 mProgressBar.setProgressTintList(ColorStateList.valueOf(color)); in setModel() 87 mProgressBar.setProgressTintList(ColorStateList.valueOf(defaultColor)); in setModel() 92 mProgressBar.setProgress((int) progress.getProgress()); in setModel() 93 mProgressBar.setMax((int) progress.getMaxProgress()); in setModel()
|
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/ |
D | UpdateLayoutFragment.java | 62 private ProgressBar mProgressBar; field in UpdateLayoutFragment 135 mProgressBar = (ProgressBar) activity.findViewById(R.id.progress_bar); in onActivityCreated() 138 mProgressBar.setIndeterminate(true); in onActivityCreated() 139 mProgressBar.setVisibility(View.VISIBLE); in onActivityCreated() 200 mProgressBar.setIndeterminate(false); in showInstallationInProgress() 201 mProgressBar.setVisibility(View.VISIBLE); in showInstallationInProgress() 202 mProgressBar.setMax(PERCENT_MAX); in showInstallationInProgress() 226 mProgressBar.setVisibility(View.GONE); in onPostExecute() 257 mProgressBar.setProgress((int) (percent * 100)); in onStatusUpdate() 271 mProgressBar.setVisibility(View.GONE); in onPayloadApplicationComplete()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | ChannelCardView.java | 47 private ProgressBar mProgressBar; field in ChannelCardView 74 mProgressBar = (ProgressBar) findViewById(R.id.progress); in onFinishInflate() 121 mProgressBar.setVisibility(GONE); in updateProgram() 125 mProgressBar.setVisibility(View.VISIBLE); in updateProgram() 130 mProgressBar.setProgress(0); in updateProgram() 132 mProgressBar.setProgress(100); in updateProgram() 134 mProgressBar.setProgress( in updateProgram()
|
/packages/apps/Car/Settings/src/com/android/car/settings/security/ |
D | AddTrustedDeviceProgressFragment.java | 30 private ProgressBar mProgressBar; field in AddTrustedDeviceProgressFragment 40 mProgressBar = requireActivity().findViewById(R.id.progress_bar); in onActivityCreated() 41 mProgressBar.setVisibility(View.VISIBLE); in onActivityCreated() 47 mProgressBar.setVisibility(View.VISIBLE); in onStart() 53 mProgressBar.setVisibility(View.GONE); in onStop()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/ |
D | StorageItemPreference.java | 35 private ProgressBar mProgressBar; field in StorageItemPreference 65 if (mProgressBar == null || mProgressPercent == UNINITIALIZED) in updateProgressBar() 68 mProgressBar.setMax(PROGRESS_MAX); in updateProgressBar() 69 mProgressBar.setProgress(mProgressPercent); in updateProgressBar() 74 mProgressBar = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | StorageItemPreference.java | 35 private ProgressBar mProgressBar; field in StorageItemPreference 65 if (mProgressBar == null || mProgressPercent == UNINITIALIZED) in updateProgressBar() 68 mProgressBar.setMax(PROGRESS_MAX); in updateProgressBar() 69 mProgressBar.setProgress(mProgressPercent); in updateProgressBar() 74 mProgressBar = (ProgressBar) view.findViewById(android.R.id.progress); in onBindViewHolder()
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | DeletionPreference.java | 42 private ProgressBar mProgressBar; field in DeletionPreference 102 if (mProgressBar != null) { in onFreeableChanged() 103 mProgressBar.setVisibility(View.GONE); in onFreeableChanged() 112 mProgressBar = (ProgressBar) holder.findViewById(R.id.progress_bar); in onBindViewHolder() 113 mProgressBar.setVisibility(mLoaded ? View.GONE : View.VISIBLE); in onBindViewHolder()
|
D | CollapsibleCheckboxPreferenceGroup.java | 48 private ProgressBar mProgressBar; field in CollapsibleCheckboxPreferenceGroup 78 mProgressBar = (ProgressBar) holder.findViewById(R.id.progress_bar); in onBindViewHolder() 79 mProgressBar.setVisibility(mLoaded ? View.GONE : View.VISIBLE); in onBindViewHolder() 236 if (mProgressBar != null) { in switchSpinnerToCheckboxOrDisablePreference() 237 mProgressBar.setVisibility(View.GONE); in switchSpinnerToCheckboxOrDisablePreference()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/ |
D | ProgressDialogFragment.java | 42 private ProgressBar mProgressBar; field in ProgressDialogFragment 55 mProgressBar = view.findViewById(android.R.id.progress); in onCreateView() 102 mProgressBar.setIndeterminate(indeterminte); in setIndeterminte() 106 mProgressBar.setProgress(progress); in setProgress() 110 mProgressBar.setMax(max); in setProgressMax()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePickerFragment.java | 38 private ProgressBar mProgressBar; field in BluetoothDevicePickerFragment 62 mProgressBar = requireActivity().findViewById(R.id.progress_bar); in onActivityCreated() 69 mProgressBar.setVisibility(View.VISIBLE); in onStart() 76 mProgressBar.setVisibility(View.GONE); in onStop()
|
D | BluetoothPairingSelectionFragment.java | 56 private ProgressBar mProgressBar; field in BluetoothPairingSelectionFragment 75 mProgressBar = requireActivity().findViewById(R.id.progress_bar); in onActivityCreated() 83 mProgressBar.setVisibility(View.VISIBLE); in onStart() 91 mProgressBar.setVisibility(View.GONE); in onStop()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/ |
D | RecordingCardView.java | 54 private final ProgressBar mProgressBar; field in RecordingCardView 95 mProgressBar = (ProgressBar) findViewById(R.id.recording_progress); in RecordingCardView() 221 mProgressBar.setVisibility(View.GONE); in setProgressBar() 223 mProgressBar.setProgress(progress); in setProgressBar() 224 mProgressBar.setVisibility(View.VISIBLE); in setProgressBar() 230 mProgressBar.getProgressDrawable().setTint(color); in setProgressBarColor()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/auto/ |
D | AutoSettingsFrameFragment.java | 38 private ProgressBar mProgressBar; field in AutoSettingsFrameFragment 57 mProgressBar = rootView.findViewById(R.id.progress_bar); in onCreateView() 94 if (mProgressBar != null) { in updateLoading() 95 mProgressBar.setVisibility(mIsLoading ? View.VISIBLE : View.GONE); in updateLoading()
|
/packages/apps/Settings/src/com/android/settings/wifi/dpp/ |
D | WifiDppAddDeviceFragment.java | 50 private ProgressBar mProgressBar; field in WifiDppAddDeviceFragment 88 mProgressBar.setVisibility(isGoingInitiator() ? View.VISIBLE : View.INVISIBLE); in showSuccessUi() 177 mProgressBar.setVisibility(isGoingInitiator() ? View.VISIBLE : View.INVISIBLE); in showErrorUi() 254 mProgressBar = view.findViewById(R.id.indeterminate_bar); in onViewCreated() 280 mProgressBar.setVisibility(View.VISIBLE); in onViewCreated() 291 mProgressBar.setVisibility(isGoingInitiator() ? View.VISIBLE : View.INVISIBLE); in onViewCreated()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/dpp/ |
D | WifiDppAddDeviceFragment.java | 50 private ProgressBar mProgressBar; field in WifiDppAddDeviceFragment 88 mProgressBar.setVisibility(isGoingInitiator() ? View.VISIBLE : View.INVISIBLE); in showSuccessUi() 177 mProgressBar.setVisibility(isGoingInitiator() ? View.VISIBLE : View.INVISIBLE); in showErrorUi() 254 mProgressBar = view.findViewById(R.id.indeterminate_bar); in onViewCreated() 280 mProgressBar.setVisibility(View.VISIBLE); in onViewCreated() 291 mProgressBar.setVisibility(isGoingInitiator() ? View.VISIBLE : View.INVISIBLE); in onViewCreated()
|
/packages/apps/Car/Settings/src/com/android/car/settings/users/ |
D | UsersListFragment.java | 50 private ProgressBar mProgressBar; field in UsersListFragment 92 mProgressBar = requireActivity().findViewById(R.id.progress_bar); in onActivityCreated() 140 mProgressBar.setVisibility(View.GONE); in onStop() 168 mProgressBar.setVisibility(mIsBusy ? View.VISIBLE : View.GONE); in updateUi()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ui/ |
D | AddManualPrinterDialog.java | 66 private ProgressBar mProgressBar; field in AddManualPrinterDialog 89 mProgressBar = findViewById(R.id.progress); in onCreate() 134 mProgressBar.setVisibility(View.VISIBLE); in addPrinter() 166 mProgressBar.setVisibility(View.GONE); in error()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | DeleteImage.java | 35 private ProgressBar mProgressBar; field in DeleteImage 56 mProgressBar = (ProgressBar) findViewById(R.id.delete_progress); in onCreate() 75 mProgressBar.setProgress(mIndex * 10000 / mUriList.size()); in deleteNext()
|