Home
last modified time | relevance | path

Searched refs:mProgressBar (Results 1 – 25 of 41) 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.java39 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/
DMinimizedPlaybackControlBar.java40 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/
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.java47 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/
DAddTrustedDeviceProgressFragment.java30 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/
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/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerFragment.java38 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()
DBluetoothPairingSelectionFragment.java56 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/
DRecordingCardView.java54 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/
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.java50 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/
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()

12