Home
last modified time | relevance | path

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

12

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRingProgressBarTest.java36 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/
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/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/biometrics/fingerprint/
DFingerprintEnrollEnrolling.java88 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/
DFingerprintEnrollEnrolling.java89 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/
DWifiSettingsFragment.java41 private ProgressBar mProgressBar; field in WifiSettingsFragment
75 mProgressBar = getToolbar().getProgressBar(); in onActivityCreated()
91 mProgressBar.setVisibility(View.GONE); in onStop()
102 mProgressBar.setVisibility(View.VISIBLE); in onAccessPointsChanged()
103 getView().postDelayed(() -> mProgressBar.setVisibility(View.GONE), SEARCHING_DELAY_MILLIS); in onAccessPointsChanged()
111 mProgressBar.setVisibility(View.VISIBLE); in onWifiStateChanged()
114 mProgressBar.setVisibility(View.GONE); in onWifiStateChanged()
DWifiTetherFragment.java46 private ProgressBar mProgressBar; field in WifiTetherFragment
102 mProgressBar = getToolbar().getProgressBar(); in onActivityCreated()
119 mProgressBar.setVisibility(View.GONE); in onStop()
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
DUpdateLayoutFragment.java62 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/
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/Car/Settings/src/com/android/car/settings/security/
DAddTrustedDeviceProgressFragment.java30 private ProgressBar mProgressBar; field in AddTrustedDeviceProgressFragment
40 mProgressBar = getToolbar().getProgressBar(); in onActivityCreated()
41 mProgressBar.setVisibility(View.VISIBLE); in onActivityCreated()
47 mProgressBar.setVisibility(View.VISIBLE); in onStart()
53 mProgressBar.setVisibility(View.GONE); in onStop()
DChooseLockPinPasswordFragment.java84 private ProgressBar mProgressBar; field in ChooseLockPinPasswordFragment
225 mProgressBar = getToolbar().getProgressBar(); in onActivityCreated()
251 mProgressBar.setVisibility(View.GONE); in onStop()
386 mProgressBar.setVisibility(View.GONE); in onChosenLockSaveFinished()
416 mProgressBar.setVisibility(View.VISIBLE); in startSaveAndFinish()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageItemPreference.java35 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/
DStorageItemPreference.java35 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
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/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/apps/PermissionController/src/com/android/packageinstaller/auto/
DAutoSettingsFrameFragment.java38 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/
DWifiDppAddDeviceFragment.java50 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/
DWifiDppAddDeviceFragment.java50 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/
DUsersListFragment.java51 private ProgressBar mProgressBar; field in UsersListFragment
100 mProgressBar = getToolbar().getProgressBar(); in onActivityCreated()
128 mProgressBar.setVisibility(View.GONE); in onStop()
156 mProgressBar.setVisibility(mIsBusy ? View.VISIBLE : View.GONE); in updateUi()
/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/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/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()

12