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.java78 private int mBucketIndex = -1; field in EnableZenModeDialog
319 mBucketIndex = DEFAULT_BUCKET_INDEX; in bindGenericCountdown()
321 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in bindGenericCountdown()
380 if (mBucketIndex > -1) { in updateUi()
381 minusButton.setEnabled(mBucketIndex > 0); in updateUi()
382 plusButton.setEnabled(mBucketIndex < MINUTE_BUCKETS.length - 1); in updateUi()
425 if (mBucketIndex == -1) { in onClickTimeButton()
435 mBucketIndex = j; in onClickTimeButton()
443 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
445 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
[all …]
DZenDurationDialog.java53 @VisibleForTesting protected int mBucketIndex = -1; field in ZenDurationDialog
300 if (mBucketIndex == -1) { in onClickTimeButton()
307 mBucketIndex = j; in onClickTimeButton()
313 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
314 newDndTimeDuration = MINUTE_BUCKETS[mBucketIndex]; in onClickTimeButton()
318 mBucketIndex = Math.max(0, Math.min(N - 1, mBucketIndex + (up ? 1 : -1))); in onClickTimeButton()
319 newDndTimeDuration = MINUTE_BUCKETS[mBucketIndex]; in onClickTimeButton()
/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/opt/net/wifi/service/java/com/android/server/wifi/util/
DIntHistogram.java236 private int mBucketIndex = 0; in iterator()
240 return mBucketIndex < mBuckets.size(); in iterator()
245 Bucket bucket = getBucketByIndex(mBucketIndex); in iterator()
246 mBucketIndex++; in iterator()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java126 private int mBucketIndex = -1; field in ZenModePanel
553 mBucketIndex = DEFAULT_BUCKET_INDEX;
555 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser());
726 if (mBucketIndex > -1) { in bind()
727 button1.setEnabled(mBucketIndex > 0); in bind()
728 button2.setEnabled(mBucketIndex < MINUTE_BUCKETS.length - 1); in bind()
778 if (mBucketIndex == -1) { in onClickTimeButton()
788 mBucketIndex = j; in onClickTimeButton()
796 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
798 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
[all …]