Home
last modified time | relevance | path

Searched refs:mBucketIndex (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java77 private int mBucketIndex = -1; field in EnableZenModeDialog
318 mBucketIndex = DEFAULT_BUCKET_INDEX; in bindGenericCountdown()
320 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in bindGenericCountdown()
383 if (mBucketIndex > -1) { in updateUi()
384 button1.setEnabled(mBucketIndex > 0); in updateUi()
385 button2.setEnabled(mBucketIndex < MINUTE_BUCKETS.length - 1); in updateUi()
423 if (mBucketIndex == -1) { in onClickTimeButton()
433 mBucketIndex = j; in onClickTimeButton()
441 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
443 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
[all …]
DZenDurationDialog.java52 @VisibleForTesting protected int mBucketIndex = -1; field in ZenDurationDialog
296 if (mBucketIndex == -1) { in onClickTimeButton()
303 mBucketIndex = j; in onClickTimeButton()
309 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
310 newDndTimeDuration = MINUTE_BUCKETS[mBucketIndex]; in onClickTimeButton()
314 mBucketIndex = Math.max(0, Math.min(N - 1, mBucketIndex + (up ? 1 : -1))); in onClickTimeButton()
315 newDndTimeDuration = MINUTE_BUCKETS[mBucketIndex]; in onClickTimeButton()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java195 private int mBucketIndex = 0; in iterator()
199 return mBucketIndex < mBuckets.size(); in iterator()
204 Bucket bucket = getBucketByIndex(mBucketIndex); in iterator()
205 mBucketIndex++; in iterator()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DZenDurationDialogTest.java170 mController.mBucketIndex = -1; // reset current bucket index to reset countdownZenDuration in testGetTimeFromBucket()
184 mController.mBucketIndex = -1; in testGetTimeFromBucket()
190 mController.mBucketIndex = -1; in testGetTimeFromBucket()
196 mController.mBucketIndex = -1; in testGetTimeFromBucket()
202 mController.mBucketIndex = -1; in testGetTimeFromBucket()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java122 private int mBucketIndex = -1; field in ZenModePanel
549 mBucketIndex = DEFAULT_BUCKET_INDEX;
551 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser());
721 if (mBucketIndex > -1) { in bind()
722 button1.setEnabled(mBucketIndex > 0); in bind()
723 button2.setEnabled(mBucketIndex < MINUTE_BUCKETS.length - 1); in bind()
772 if (mBucketIndex == -1) { in onClickTimeButton()
782 mBucketIndex = j; in onClickTimeButton()
790 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
792 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
[all …]