Home
last modified time | relevance | path

Searched refs:mProgressBar (Results 1 – 25 of 33) sorted by relevance

12

/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
DProgressBarControllerImpl.java32 private final ProgressBar mProgressBar; field in ProgressBarControllerImpl
35 mProgressBar = progressBar; in ProgressBarControllerImpl()
40 mProgressBar.setVisibility(visible ? View.VISIBLE : View.GONE); in setVisible()
45 return mProgressBar.getVisibility() == View.VISIBLE; in isVisible()
50 mProgressBar.setIndeterminate(indeterminate); in setIndeterminate()
55 return mProgressBar.isIndeterminate(); in isIndeterminate()
60 mProgressBar.setMax(max); in setMax()
65 return mProgressBar.getMax(); in getMax()
70 mProgressBar.setMin(min); in setMin()
75 return mProgressBar.getMin(); in getMin()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/widget/
DRingProgressBarTest.java37 private RingProgressBar mProgressBar; field in RingProgressBarTest
41 mProgressBar = new RingProgressBar(mContext); in setUp()
46 mProgressBar.measure( in testMeasurePortrait()
49 assertEquals(100, mProgressBar.getMeasuredHeight()); in testMeasurePortrait()
50 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasurePortrait()
55 mProgressBar.measure( in testMeasureLandscape()
58 assertEquals(100, mProgressBar.getMeasuredHeight()); in testMeasureLandscape()
59 assertEquals(100, mProgressBar.getMeasuredWidth()); in testMeasureLandscape()
64 assertFalse(mProgressBar.isIndeterminate()); in testDefaultAttributes()
65 assertEquals(0, mProgressBar.getProgress()); in testDefaultAttributes()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DTrimTimeBar.java75 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 …]
DTimeBar.java57 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/Car/libs/car-ui-lib/referencedesign/sharedlibrary/src/main/java/com/chassis/car/ui/sharedlibrary/toolbar/
DProgressBarController.java26 private final ProgressBar mProgressBar; field in ProgressBarController
29 mProgressBar = progressBar; in ProgressBarController()
34 mProgressBar.setVisibility(visible ? View.VISIBLE : View.GONE); in setVisible()
39 mProgressBar.setIndeterminate(indeterminate); in setIndeterminate()
44 mProgressBar.setMax(max); in setMax()
49 mProgressBar.setMin(min); in setMin()
54 mProgressBar.setProgress(progress); in setProgress()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrolling.java104 @Nullable private ProgressBar mProgressBar; field in FingerprintEnrollEnrolling
158 mProgressBar = findViewById(R.id.fingerprint_progress_bar); in onCreate()
171 final LayerDrawable fingerprintDrawable = mProgressBar != null in onCreate()
172 ? (LayerDrawable) mProgressBar.getBackground() : null; in onCreate()
187 if (mProgressBar != null) { in onCreate()
188 mProgressBar.setOnTouchListener((v, event) -> { in onCreate()
194 mProgressBar.postDelayed(mShowDialogRunnable, in onCreate()
199 mProgressBar.removeCallbacks(mShowDialogRunnable); in onCreate()
283 ObjectAnimator anim = ObjectAnimator.ofInt(mProgressBar, "progress", in animateProgress()
284 mProgressBar.getProgress(), progress); in animateProgress()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/
DAudioAttachmentView.java67 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/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DUpdateLayoutFragment.java69 private ProgressBarController mProgressBar; field in UpdateLayoutFragment
131 mProgressBar = mToolbar.getProgressBar(); in onActivityCreated()
132 mProgressBar.setIndeterminate(true); in onActivityCreated()
133 mProgressBar.setVisible(true); in onActivityCreated()
196 mProgressBar.setIndeterminate(false); in showInstallationInProgress()
197 mProgressBar.setVisible(true); in showInstallationInProgress()
198 mProgressBar.setMax(PERCENT_MAX); in showInstallationInProgress()
222 mProgressBar.setVisible(false); in onPostExecute()
253 mProgressBar.setProgress((int) (percent * 100)); in onStatusUpdate()
267 mProgressBar.setVisible(false); in onPayloadApplicationComplete()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiSettingsFragment.java45 private ProgressBarController mProgressBar; field in WifiSettingsFragment
76 mProgressBar = toolbar.getProgressBar(); in setupToolbar()
90 mProgressBar.setVisible(false); in onStop()
100 mProgressBar.setVisible(true); in onWifiEntriesChanged()
101 getView().postDelayed(() -> mProgressBar.setVisible(false), SEARCHING_DELAY_MILLIS); in onWifiEntriesChanged()
116 mProgressBar.setVisible(state == WifiManager.WIFI_STATE_ENABLING); in onWifiStateChanged()
/packages/apps/TV/src/com/android/tv/menu/
DChannelCardView.java49 private ProgressBar mProgressBar; field in ChannelCardView
76 mProgressBar = (ProgressBar) findViewById(R.id.progress); in onFinishInflate()
123 mProgressBar.setVisibility(GONE); in updateProgram()
127 mProgressBar.setVisibility(View.VISIBLE); in updateProgram()
132 mProgressBar.setProgress(0); in updateProgram()
134 mProgressBar.setProgress(100); in updateProgram()
136 mProgressBar.setProgress( in updateProgram()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageItemPreference.java34 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/
DDeletionPreference.java42 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()
DCollapsibleCheckboxPreferenceGroup.java48 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/
DProgressDialogFragment.java42 private ProgressBar mProgressBar; field in ProgressDialogFragment
53 mProgressBar = view.findViewById(android.R.id.progress); in onCreateView()
110 mProgressBar.setIndeterminate(indeterminte); in setIndeterminte()
114 mProgressBar.setProgress(progress); in setProgress()
118 mProgressBar.setMax(max); in setProgressMax()
/packages/apps/Settings/src/com/android/settings/applications/intentpicker/
DProgressDialogFragment.java193 private ProgressBar mProgressBar; field in ProgressDialogFragment.ProgressAlertDialog
207 mProgressBar = view.findViewById(R.id.scan_links_progressbar); in init()
208 mProgressBar.setProgress(0); in init()
209 mProgressBar.setMax(100); in init()
214 return mProgressBar; in getProgressBar()
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DRecordingCardView.java56 private final ProgressBar mProgressBar; field in RecordingCardView
98 mProgressBar = (ProgressBar) findViewById(R.id.recording_progress); in RecordingCardView()
233 mProgressBar.setVisibility(View.GONE); in setProgressBar()
235 mProgressBar.setProgress(progress); in setProgressBar()
236 mProgressBar.setVisibility(View.VISIBLE); in setProgressBar()
242 mProgressBar.getProgressDrawable().setTint(color); in setProgressBarColor()
/packages/modules/Wifi/OsuLogin/src/com/android/hotspot2/osulogin/
DOsuLoginActivity.java63 private ProgressBar mProgressBar; field in OsuLoginActivity
169 mProgressBar = findViewById(R.id.progress_bar); in onCreate()
174 mProgressBar.setProgress(newProgress); in onCreate()
247 mProgressBar.setVisibility(View.VISIBLE); in onPageStarted()
252 mProgressBar.setVisibility(View.INVISIBLE); in onPageFinished()
/packages/apps/Gallery/src/com/android/camera/
DDeleteImage.java35 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()
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DAddManualPrinterDialog.java66 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/Camera2/src/com/android/camera/app/
DFilmstripBottomPanel.java54 private ProgressBar mProgressBar; field in FilmstripBottomPanel
152 mProgressBar.setProgress(progress); in setProgress()
245 mProgressBar = (ProgressBar) mLayout.findViewById(R.id.bottom_session_progress_bar); in setupProgressUi()
246 mProgressBar.setMax(100); in setupProgressUi()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DChooseLockPinPasswordFragment.java85 private ProgressBarController mProgressBar; field in ChooseLockPinPasswordFragment
228 mProgressBar = getToolbar().getProgressBar(); in onActivityCreated()
254 mProgressBar.setVisible(false); in onStop()
374 mProgressBar.setVisible(false); in onChosenLockSaveFinished()
403 mProgressBar.setVisible(true); in startSaveAndFinish()
/packages/services/Telecomm/src/com/android/server/telecom/settings/
DBlockedNumbersActivity.java84 private ProgressBar mProgressBar; field in BlockedNumbersActivity
132 mProgressBar = (ProgressBar) findViewById(R.id.progress_bar); in onCreate()
225 mProgressBar.setVisibility(View.GONE); in onLoadFinished()
231 mProgressBar.setVisibility(View.VISIBLE); in onLoaderReset()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DNavigationFragment.java49 private ProgressBar mProgressBar; field in NavigationFragment
168 mProgressBar = root.findViewById(R.id.progress_bar); in onCreateView()
175 mProgressBar.setVisibility(state == ClusterViewModel.NavigationActivityState.LOADING in onCreateView()
/packages/apps/Settings/src/com/android/settings/
DTrustedCredentialsSettings.java667 private ProgressBar mProgressBar; field in TrustedCredentialsSettings.AdapterData.AliasLoader
687 mProgressBar = (ProgressBar) content.findViewById(mTab.mProgress); in onPreExecute()
689 mProgressBar.setVisibility(View.VISIBLE); in onPreExecute()
765 if (max != mProgressBar.getMax()) { in onProgressUpdate()
766 mProgressBar.setMax(max); in onProgressUpdate()
768 mProgressBar.setProgress(progress); in onProgressUpdate()
777 mProgressBar.setVisibility(View.GONE); in onPostExecute()
779 mProgressBar.setProgress(0); in onPostExecute()
/packages/apps/Calendar/src/com/android/calendar/
DDayFragment.java49 protected ProgressBar mProgressBar; field in DayFragment
160 mProgressBar.setVisibility(View.VISIBLE); in startProgressSpinner()
165 mProgressBar.setVisibility(View.GONE); in stopProgressSpinner()

12