Searched refs:mBucketIndex (Results 1 – 5 of 5) sorted by relevance
78 private int mBucketIndex = -1; field in EnableZenModeDialog319 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 …]
53 @VisibleForTesting protected int mBucketIndex = -1; field in ZenDurationDialog300 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()
170 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()
236 private int mBucketIndex = 0; in iterator()240 return mBucketIndex < mBuckets.size(); in iterator()245 Bucket bucket = getBucketByIndex(mBucketIndex); in iterator()246 mBucketIndex++; in iterator()
126 private int mBucketIndex = -1; field in ZenModePanel553 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 …]