/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | FormatterTest.java | 131 private static final long MINUTE = 60 * SECOND; field in FormatterTest 132 private static final long HOUR = 60 * MINUTE; 142 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 23 * HOUR + 59 * MINUTE)); in testFormatShortElapsedTime() 144 Formatter.formatShortElapsedTime(mContext, 1 * DAY + 59 * MINUTE)); in testFormatShortElapsedTime() 146 assertEquals("24 hr", Formatter.formatShortElapsedTime(mContext, 23 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime() 147 assertEquals("3 hr", Formatter.formatShortElapsedTime(mContext, 2 * HOUR + 30 * MINUTE)); in testFormatShortElapsedTime() 151 Formatter.formatShortElapsedTime(mContext, 59 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTime() 153 Formatter.formatShortElapsedTime(mContext, 59 * MINUTE)); in testFormatShortElapsedTime() 154 assertEquals("3 min", Formatter.formatShortElapsedTime(mContext, 2 * MINUTE + 30 * SECOND)); in testFormatShortElapsedTime() 155 assertEquals("2 min", Formatter.formatShortElapsedTime(mContext, 2 * MINUTE)); in testFormatShortElapsedTime() [all …]
|
D | DateFormatTest.java | 52 assertTrue(DateFormat.hasDesignator("hh:mm:ss", DateFormat.MINUTE)); in testHasDesignator() 53 assertTrue(DateFormat.hasDesignator("myyyy", DateFormat.MINUTE)); in testHasDesignator() 54 assertTrue(DateFormat.hasDesignator("mmm", DateFormat.MINUTE)); in testHasDesignator() 56 assertFalse(DateFormat.hasDesignator("hh:MM:ss", DateFormat.MINUTE)); in testHasDesignator() 61 assertTrue(DateFormat.hasDesignator("hh:mm 'LOL'", DateFormat.MINUTE)); in testHasDesignatorEscaped()
|
D | DateIntervalFormatTest.java | 56 private static final long MINUTE = 60 * 1000; field in DateIntervalFormatTest 57 private static final long HOUR = 60 * MINUTE; 71 c.set(Calendar.MINUTE, 30); in test_formatDateInterval() 79 c.set(Calendar.MINUTE, 0); in test_formatDateInterval() 385 assertEquals("00:00 – 16:01", formatDateRange(l, utc, midnight, teaTime + MINUTE, abbr24)); in test10318326() 387 formatDateRange(l, utc, midnight, teaTime + MINUTE, abbr12)); in test10318326() 430 formatDateRange(l, utc, 22 * HOUR, 24 * HOUR + 30 * MINUTE, flags)); in test10560853_for_single_day_events() 450 jan_1_1980 + 24 * HOUR + 30 * MINUTE, flags)); in test_single_day_events_later_than_epoch()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleCalendarTest.java | 68 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_startToday() 94 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_endToday() 108 expected.set(Calendar.MINUTE, mScheduleInfo.endMinute); in testGetNextChangeTime_endToday() 121 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_startTomorrow() 136 expected.set(Calendar.MINUTE, mScheduleInfo.startMinute); in testGetNextChangeTime_startTomorrow() 149 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_endTomorrow() 164 expected.set(Calendar.MINUTE, mScheduleInfo.endMinute); in testGetNextChangeTime_endTomorrow() 214 now.set(Calendar.MINUTE, 15); in testShouldExitForAlarm_oldAlarm() 239 calNow.set(Calendar.MINUTE, 0); in testShouldExitForAlarm_oldAlarmInSchedule() 247 calAlarm.set(Calendar.MINUTE, 0); in testShouldExitForAlarm_oldAlarmInSchedule() [all …]
|
D | ScheduleConditionProviderTest.java | 88 info.startMinute = now.get(Calendar.MINUTE); in testEvaluateSubscription_noAlarmExit_InSchedule() 112 info.startMinute = now.get(Calendar.MINUTE); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 134 now.set(Calendar.MINUTE, 15); in testEvaluateSubscription_noAlarmExit_beforeSchedule() 143 info.startMinute = now.get(Calendar.MINUTE) + 1; in testEvaluateSubscription_noAlarmExit_beforeSchedule() 166 info.startMinute = now.get(Calendar.MINUTE); in testEvaluateSubscription_noAlarmExit_endSchedule() 170 info.endMinute = now.get(Calendar.MINUTE); in testEvaluateSubscription_noAlarmExit_endSchedule() 332 now.set(Calendar.MINUTE, 16); in getNow() 343 info.startMinute = now.get(Calendar.MINUTE); in getScheduleEndsInHour() 346 info.endMinute = now.get(Calendar.MINUTE); in getScheduleEndsInHour()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 45 public static final int MINUTE = 2; field in Time 120 minute = mCalendar.get(Calendar.MINUTE); in readFieldsFromCalendar() 138 && (field == MONTH_DAY || field == HOUR || field == MINUTE)) { in add() 193 case MINUTE: return Calendar.MINUTE; in getCalendarField() 226 } else if (!apply && (mDstChangedByField == HOUR || mDstChangedByField == MINUTE)) { in getDstAdjustedMillis() 334 return mCalendar.get(Calendar.MINUTE); in getMinute() 339 mCalendar.set(Calendar.MINUTE, minute); in setMinute()
|
D | Duration.java | 137 cal.add(Calendar.MINUTE, sign*minutes); in addTo()
|
/frameworks/base/core/java/android/app/ |
D | TimePickerDialog.java | 44 private static final String MINUTE = "minute"; field in TimePickerDialog 199 state.putInt(MINUTE, mTimePicker.getCurrentMinute()); in onSaveInstanceState() 208 final int minute = savedInstanceState.getInt(MINUTE); in onRestoreInstanceState()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/ |
D | StringUtil.java | 87 measureList.add(new Measure(minutes, MeasureUnit.MINUTE)); in formatElapsedTime() 94 measureList.add(new Measure(0, withSeconds ? MeasureUnit.SECOND : MeasureUnit.MINUTE)); in formatElapsedTime() 109 if (measureArray.length == 1 && MeasureUnit.MINUTE.equals(measureArray[0].getUnit())) { in formatElapsedTime()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ImageClock.java | 62 final float hourAngle = mTime.get(Calendar.HOUR) * 30f + mTime.get(Calendar.MINUTE) * 0.5f; in onTimeChanged() 64 final float minuteAngle = mTime.get(Calendar.MINUTE) * 6f; in onTimeChanged()
|
/frameworks/base/core/java/android/text/format/ |
D | Formatter.java | 262 new Measure(minutes, MeasureUnit.MINUTE)); in formatShortElapsedTime() 265 return measureFormat.format(new Measure(minutes, MeasureUnit.MINUTE)); in formatShortElapsedTime() 268 new Measure(minutes, MeasureUnit.MINUTE), in formatShortElapsedTime() 291 return measureFormat.format(new Measure(minutesRoundedUp, MeasureUnit.MINUTE)); in formatShortElapsedTimeRoundingUpToMinutes()
|
D | DateUtilsBridge.java | 168 return c.get(Calendar.HOUR_OF_DAY) == 0 && c.get(Calendar.MINUTE) == 0; in isDisplayMidnightUsingSkeleton() 172 return c.get(Calendar.MINUTE) == 0 && c.get(Calendar.SECOND) == 0; in onTheHour()
|
D | DateIntervalFormat.java | 122 && c.get(Calendar.MINUTE) == 0 in isExactlyMidnight()
|
D | DateFormat.java | 124 public static final char MINUTE = 'm'; field in DateFormat 557 replacement = zeroPad(inDate.get(Calendar.MINUTE), count); in format()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | Duration.java | 37 MINUTE(0x00), enumConstant
|
D | ResponseData.java | 257 data[5] = byteToBCD(mCalendar.get(java.util.Calendar.MINUTE)); in format()
|
/frameworks/base/core/java/android/util/ |
D | MonthDisplayHelper.java | 58 mCalendar.set(Calendar.MINUTE, 0); in MonthDisplayHelper()
|
/frameworks/base/core/java/android/webkit/ |
D | DateSorter.java | 127 c.set(Calendar.MINUTE, 0); in beginningOfDay()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MountServiceIdler.java | 125 calendar.set(Calendar.MINUTE, 0); in offsetFromTodayMidnight()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | TimeTest.java | 60 assertEquals(59, t.getActualMaximum(Time.MINUTE)); in testGetActualMaximum() 76 t.add(Time.MINUTE, 1); in testAdd() 540 local.add(Time.MINUTE, test.offset); 551 local.add(Time.MINUTE, test.offset);
|
/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 117 calendar.set(Calendar.MINUTE, timeOfDay.minute); in parse()
|
/frameworks/base/core/java/android/widget/ |
D | TimePicker.java | 477 setDate(cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE)); in autofill() 492 cal.set(Calendar.MINUTE, getMinute()); in getAutofillValue()
|
D | TimePickerSpinnerDelegate.java | 206 setMinute(mTempCalendar.get(Calendar.MINUTE)); in TimePickerSpinnerDelegate() 432 mTempCalendar.set(Calendar.MINUTE, getMinute()); in onPopulateAccessibilityEvent()
|
/frameworks/base/core/java/android/service/notification/ |
D | ScheduleCalendar.java | 110 mCalendar.set(Calendar.MINUTE, min); in getTime()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | ClockDrawableWrapper.java | 247 int convertedMinute = (time.get(Calendar.MINUTE) + (60 - defaultMinute)) % 60; in applyTime() 253 if (hour.setLevel(convertedHour * 60 + time.get(Calendar.MINUTE))) { in applyTime()
|