Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/toolbar/
H A DProgressBarControllerImpl.java36 private final ProgressBar mProgressBar; field in ProgressBarControllerImpl
39 mProgressBar = progressBar; in ProgressBarControllerImpl()
49 return mProgressBar.getVisibility() == View.VISIBLE; in isVisible()
54 mProgressBar.setIndeterminate(indeterminate); in setIndeterminate()
59 return mProgressBar.isIndeterminate(); in isIndeterminate()
64 mProgressBar.setMax(max); in setMax()
69 return mProgressBar.getMax(); in getMax()
74 mProgressBar.setMin(min); in setMin()
79 return mProgressBar.getMin(); in getMin()
84 mProgressBar.setProgress(progress); in setProgress()
[all …]
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/widget/
H A 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 …]
/aosp12/packages/apps/Car/libs/car-ui-lib/referencedesign/plugin/src/main/java/com/chassis/car/ui/plugin/toolbar/
H A 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()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DTextProgressBar.java54 ProgressBar mProgressBar = null; field in TextProgressBar
96 mProgressBar = (ProgressBar) child; in addView()
115 if (mProgressBar == null || mChronometer == null) { in setDurationBase()
125 mProgressBar.setMax(mDuration); in setDurationBase()
133 if (mProgressBar == null) { in onChronometerTick()
146 mProgressBar.setProgress(mDuration - remaining); in onChronometerTick()
153 params = (RelativeLayout.LayoutParams) mProgressBar.getLayoutParams(); in onChronometerTick()
154 int contentWidth = mProgressBar.getWidth() - (params.leftMargin + params.rightMargin); in onChronometerTick()
155 int leadingEdge = ((contentWidth * mProgressBar.getProgress()) / in onChronometerTick()
156 mProgressBar.getMax()) + params.leftMargin; in onChronometerTick()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DTimeBar.java57 protected final Rect mProgressBar; field in TimeBar
89 mProgressBar = new Rect(); in TimeBar()
114 mPlayedBar.set(mProgressBar); 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()
185 mProgressBar.set( in onLayout()
[all …]
H A 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()
163 * mTotalTime / mProgressBar.width()); in getScrubberTime()
171 mProgressBar.set(0, 0, w, h); in onLayout()
182 mProgressBar.set( in onLayout()
192 canvas.drawRect(mProgressBar, mProgressPaint); in onDraw()
275 lowerBound = mProgressBar.left; in onTouchEvent()
[all …]
/aosp12/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ui/
H A DMainActivity.java60 private ProgressBar mProgressBar; field in MainActivity
323 mProgressBar.setEnabled(false); in uiResetWidgets()
341 mProgressBar.setProgress(0); in uiStateIdle()
346 mProgressBar.setEnabled(true); in uiStateRunning()
347 mProgressBar.setVisibility(ProgressBar.VISIBLE); in uiStateRunning()
355 mProgressBar.setEnabled(true); in uiStatePaused()
356 mProgressBar.setVisibility(ProgressBar.VISIBLE); in uiStatePaused()
363 mProgressBar.setEnabled(true); in uiStateSlotSwitchRequired()
364 mProgressBar.setVisibility(ProgressBar.VISIBLE); in uiStateSlotSwitchRequired()
372 mProgressBar.setEnabled(true); in uiStateError()
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A 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()
287 mProgressBar.reset(); in releaseMediaPlayer()
352 mProgressBar.setVisualStyle(mUseIncomingStyle); in updateVisualStyle()
361 mProgressBar.setVisibility(VISIBLE); in initializeViewsForMode()
366 mProgressBar.setVisibility(GONE); in initializeViewsForMode()
[all …]
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A 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()
/aosp12/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
H A 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()
/aosp12/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
H A 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()
H A 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()
/aosp12/packages/apps/TV/src/com/android/tv/menu/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
H A DFingerprintEnrollEnrolling.java117 @Nullable private ProgressBar mProgressBar; field in FingerprintEnrollEnrolling
196 mProgressBar = findViewById(R.id.fingerprint_progress_bar); in onCreate()
209 final LayerDrawable fingerprintDrawable = mProgressBar != null in onCreate()
210 ? (LayerDrawable) mProgressBar.getBackground() : null; in onCreate()
225 if (mProgressBar != null) { in onCreate()
226 mProgressBar.setOnTouchListener((v, event) -> { in onCreate()
232 mProgressBar.postDelayed(mShowDialogRunnable, in onCreate()
322 mProgressBar.getProgress(), progress); in animateProgress()
541 if (mProgressBar != null) { in updateProgress()
542 mProgressBar.setProgress(progress); in updateProgress()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/intentpicker/
H A 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()
/aosp12/packages/apps/Gallery/src/com/android/camera/
H A 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()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/dialog/
H A DMediaOutputAdapterTest.java121 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_zeroMode_bindPairNew_verifyView()
140 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_withSessionName_verifyView()
157 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindGroup_noSessionName_verifyView()
170 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindConnectedDevice_verifyView()
200 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindNonActiveConnectedDevice_verifyView()
215 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindDisconnectedBluetoothDevice_verifyView()
234 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_bindFailedStateDevice_verifyView()
256 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.VISIBLE); in onBindViewHolder_inTransferring_bindTransferringDevice_verifyView()
269 assertThat(mViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_inTransferring_bindNonTransferringDevice_verifyView()
H A DMediaOutputGroupAdapterTest.java101 assertThat(mGroupViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_verifyGroupItem()
115 assertThat(mGroupViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_singleSelectedDevice_verifyView()
141 assertThat(mGroupViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_multipleSelectedDevice_verifyView()
166 assertThat(mGroupViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_notDeselectedDevice_verifyView()
184 assertThat(mGroupViewHolder.mProgressBar.getVisibility()).isEqualTo(View.GONE); in onBindViewHolder_selectableDevice_verifyCheckBox()
/aosp12/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
H A 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()
/aosp12/packages/modules/Wifi/OsuLogin/src/com/android/hotspot2/osulogin/
H A 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()
/aosp12/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/
H A DCarSetupWizardBaseLayout.java87 private ProgressBar mProgressBar; field in CarSetupWizardBaseLayout
245 mProgressBar = findViewById(R.id.progress_bar); in init()
252 mProgressBar.setIndeterminateTintList(ColorStateList.valueOf(tintColor)); in init()
259 ViewGroup.LayoutParams layoutParams = mProgressBar.getLayoutParams(); in init()
261 mProgressBar.setLayoutParams(layoutParams); in init()
557 return mProgressBar; in getProgressBar()
564 setViewVisible(mProgressBar, visible); in setProgressBarVisible()
571 mProgressBar.setIndeterminate(indeterminate); in setProgressBarIndeterminate()
579 mProgressBar.setProgress(progress); in setProgressBarProgress()
/aosp12/packages/services/BuiltInPrintService/src/com/android/bips/ui/
H A 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()
/aosp12/packages/apps/Camera2/src/com/android/camera/app/
H A 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()

12