Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DEnableZenModeDialog.java79 private int mBucketIndex = -1; field in EnableZenModeDialog
336 mBucketIndex = DEFAULT_BUCKET_INDEX; in bindGenericCountdown()
338 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in bindGenericCountdown()
397 if (mBucketIndex > -1) { in updateUi()
398 minusButton.setEnabled(mBucketIndex > 0); in updateUi()
399 plusButton.setEnabled(mBucketIndex < MINUTE_BUCKETS.length - 1); in updateUi()
442 if (mBucketIndex == -1) { in onClickTimeButton()
452 mBucketIndex = j; in onClickTimeButton()
460 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
462 MINUTE_BUCKETS[mBucketIndex], ActivityManager.getCurrentUser()); in onClickTimeButton()
[all …]
DZenDurationDialog.java53 @VisibleForTesting protected int mBucketIndex = -1; field in ZenDurationDialog
303 if (mBucketIndex == -1) { in onClickTimeButton()
310 mBucketIndex = j; in onClickTimeButton()
316 mBucketIndex = DEFAULT_BUCKET_INDEX; in onClickTimeButton()
317 newDndTimeDuration = MINUTE_BUCKETS[mBucketIndex]; in onClickTimeButton()
321 mBucketIndex = Math.max(0, Math.min(N - 1, mBucketIndex + (up ? 1 : -1))); in onClickTimeButton()
322 newDndTimeDuration = MINUTE_BUCKETS[mBucketIndex]; in onClickTimeButton()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/notification/
DZenDurationDialogTest.java172 mController.mBucketIndex = -1; // reset current bucket index to reset countdownZenDuration in testGetTimeFromBucket()
186 mController.mBucketIndex = -1; in testGetTimeFromBucket()
192 mController.mBucketIndex = -1; in testGetTimeFromBucket()
198 mController.mBucketIndex = -1; in testGetTimeFromBucket()
204 mController.mBucketIndex = -1; in testGetTimeFromBucket()