/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ScheduleCalendarTest.java | 66 Calendar cal = new GregorianCalendar(); in testGetNextChangeTime_startToday() local 67 cal.set(Calendar.HOUR_OF_DAY, 1); in testGetNextChangeTime_startToday() 68 cal.set(Calendar.MINUTE, 15); in testGetNextChangeTime_startToday() 69 cal.set(Calendar.SECOND, 0); in testGetNextChangeTime_startToday() 70 cal.set(Calendar.MILLISECOND, 0); in testGetNextChangeTime_startToday() 72 mScheduleInfo.startHour = cal.get(Calendar.HOUR_OF_DAY) + 1; in testGetNextChangeTime_startToday() 73 mScheduleInfo.endHour = cal.get(Calendar.HOUR_OF_DAY) + 3; in testGetNextChangeTime_startToday() 80 expected.setTimeInMillis(cal.getTimeInMillis()); in testGetNextChangeTime_startToday() 83 long actualMs = mScheduleCalendar.getNextChangeTime(cal.getTimeInMillis()); in testGetNextChangeTime_startToday() 92 Calendar cal = new GregorianCalendar(); in testGetNextChangeTime_endToday() local [all …]
|
D | ScheduleConditionProviderTest.java | 92 ScheduleCalendar cal = new ScheduleCalendar(); in testEvaluateSubscription_noAlarmExit_InSchedule() local 93 cal.setSchedule(info); in testEvaluateSubscription_noAlarmExit_InSchedule() 94 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule() 97 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule() 116 ScheduleCalendar cal = new ScheduleCalendar(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() local 117 cal.setSchedule(info); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 118 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 123 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 147 ScheduleCalendar cal = new ScheduleCalendar(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() local 148 cal.setSchedule(info); in testEvaluateSubscription_noAlarmExit_beforeSchedule() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | RelativeDateTimeFormatterTest.java | 59 Calendar cal = Calendar.getInstance(tz, en_US); in test_getRelativeTimeSpanStringCTS() local 61 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0); in test_getRelativeTimeSpanStringCTS() 62 final long baseTime = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringCTS() 115 Calendar cal = Calendar.getInstance(tz, en_US); in test_getRelativeTimeSpanString_helper() local 117 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0); in test_getRelativeTimeSpanString_helper() 118 final long base = cal.getTimeInMillis(); in test_getRelativeTimeSpanString_helper() 395 Calendar cal = Calendar.getInstance(tz, de_DE); in test_getRelativeTimeSpanStringGerman() local 397 cal.set(2015, Calendar.FEBRUARY, 5, 10, 50, 0); in test_getRelativeTimeSpanStringGerman() 398 final long now = cal.getTimeInMillis(); in test_getRelativeTimeSpanStringGerman() 424 Calendar cal = Calendar.getInstance(tz, fr_FR); in test_getRelativeTimeSpanStringFrench() local [all …]
|
/frameworks/base/core/java/android/hardware/input/ |
D | TouchCalibration.java | 104 TouchCalibration cal = (TouchCalibration)obj; in equals() local 106 return (cal.mXScale == mXScale) && in equals() 107 (cal.mXYMix == mXYMix) && in equals() 108 (cal.mXOffset == mXOffset) && in equals() 109 (cal.mYXMix == mYXMix) && in equals() 110 (cal.mYScale == mYScale) && in equals() 111 (cal.mYOffset == mYOffset); in equals()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Duration.java | 132 public void addTo(Calendar cal) in addTo() argument 134 cal.add(Calendar.DAY_OF_MONTH, sign*weeks*7); in addTo() 135 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo() 136 cal.add(Calendar.HOUR, sign*hours); in addTo() 137 cal.add(Calendar.MINUTE, sign*minutes); in addTo() 138 cal.add(Calendar.SECOND, sign*seconds); in addTo()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ScheduleConditionProvider.java | 186 Condition evaluateSubscriptionLocked(Uri conditionId, ScheduleCalendar cal, in evaluateSubscriptionLocked() argument 189 + "nextUserAlarmTime=%s", cal, ts(now), ts(nextUserAlarmTime))); in evaluateSubscriptionLocked() 191 if (cal == null) { in evaluateSubscriptionLocked() 196 if (cal.isInSchedule(now)) { in evaluateSubscriptionLocked() 199 } else if (cal.shouldExitForAlarm(now)) { in evaluateSubscriptionLocked() 209 cal.maybeSetNextAlarm(now, nextUserAlarmTime); in evaluateSubscriptionLocked() 210 final long nextChangeTime = cal.getNextChangeTime(now); in evaluateSubscriptionLocked() 243 private boolean meetsSchedule(ScheduleCalendar cal, long time) { in meetsSchedule() argument 244 return cal != null && cal.isInSchedule(time); in meetsSchedule() 337 final ScheduleCalendar cal = mSubscriptions.get(conditionId); [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | DatePicker.java | 186 Calendar cal = Calendar.getInstance(); in DatePicker() local 187 init(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), null); in DatePicker() 436 Calendar cal = Calendar.getInstance(); in updateDaySpinner() local 438 cal.set(mHasYear ? mYear : 2000, mMonth, 1); in updateDaySpinner() 439 int max = cal.getActualMaximum(Calendar.DAY_OF_MONTH); in updateDaySpinner() 458 Calendar cal = Calendar.getInstance(); in adjustMaxDay() local 460 cal.set(Calendar.YEAR, mHasYear ? mYear : 2000); in adjustMaxDay() 461 cal.set(Calendar.MONTH, mMonth); in adjustMaxDay() 462 int max = cal.getActualMaximum(Calendar.DAY_OF_MONTH); in adjustMaxDay()
|
/frameworks/multidex/library/test/src/androidx/multidex/ |
D | ZipEntryReader.java | 112 GregorianCalendar cal = new GregorianCalendar(); in getTime() local 113 cal.set(Calendar.MILLISECOND, 0); in getTime() 114 cal.set(1980 + ((modDate >> 9) & 0x7f), ((modDate >> 5) & 0xf) - 1, in getTime() 117 return cal.getTime().getTime(); in getTime()
|
/frameworks/base/core/java/android/widget/ |
D | TimePicker.java | 475 final Calendar cal = Calendar.getInstance(mLocale); in autofill() local 476 cal.setTimeInMillis(time); in autofill() 477 setDate(cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE)); in autofill() 490 final Calendar cal = Calendar.getInstance(mLocale); in getAutofillValue() local 491 cal.set(Calendar.HOUR_OF_DAY, getHour()); in getAutofillValue() 492 cal.set(Calendar.MINUTE, getMinute()); in getAutofillValue() 493 return AutofillValue.forDate(cal.getTimeInMillis()); in getAutofillValue()
|
D | DatePicker.java | 651 final Calendar cal = Calendar.getInstance(mCurrentLocale); in autofill() local 652 cal.setTimeInMillis(time); in autofill() 653 updateDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), in autofill() 654 cal.get(Calendar.DAY_OF_MONTH)); in autofill()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierKeyDownloadMgrTest.java | 99 Calendar cal = new GregorianCalendar(); in testExpirationDate1Day() local 100 cal.add(Calendar.DATE, 6); in testExpirationDate1Day() 101 Date date = cal.getTime(); in testExpirationDate1Day() 122 Calendar cal = new GregorianCalendar(); in testExpirationDate7Day() local 123 cal.add(Calendar.DATE, 30); in testExpirationDate7Day() 124 Date date = cal.getTime(); in testExpirationDate7Day()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
D | NitzStateMachineTestSupport.java | 259 Calendar cal = new GregorianCalendar(zone("Etc/UTC")); in createUtcTime() local 260 cal.clear(); in createUtcTime() 261 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUtcTime() 262 return cal.getTimeInMillis(); in createUtcTime()
|
/frameworks/base/media/java/android/media/ |
D | Metadata.java | 517 Calendar cal = Calendar.getInstance(tz); in getDate() local 519 cal.setTimeInMillis(timeSinceEpoch); in getDate() 520 return cal.getTime(); in getDate()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ResponseData.java | 221 public DTTZResponseData(Calendar cal) { in DTTZResponseData() argument 223 mCalendar = cal; in DTTZResponseData()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | TimeDetectorStrategyImplTest.java | 890 Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Etc/UTC")); in createUtcTime() local 891 cal.clear(); in createUtcTime() 892 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUtcTime() 893 return cal.getTimeInMillis(); in createUtcTime()
|
/frameworks/base/services/core/java/com/android/server/input/ |
D | PersistentDataStore.java | 96 TouchCalibration cal = state.getTouchCalibration(surfaceRotation); in getTouchCalibration() local 97 if (cal == null) { in getTouchCalibration() 100 return cal; in getTouchCalibration()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | SmartCamera.java | 116 Calendar cal = Calendar.getInstance(); in captureImages() local 132 sdf.format(cal.getTime()) + "_image" + i + ".jpg", "image " + i); in captureImages()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 1314 final Calendar cal = Calendar.getInstance(); 1327 assertCycleDayAsExpected(config, cal.getMaximum(Calendar.DAY_OF_MONTH), true); 1328 assertCycleDayAsExpected(config, cal.getMinimum(Calendar.DAY_OF_MONTH), true); 1333 assertCycleDayAsExpected(config, cal.getMaximum(Calendar.DAY_OF_MONTH) + 1, false); 1334 assertCycleDayAsExpected(config, cal.getMinimum(Calendar.DAY_OF_MONTH) - 5, false);
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 976 jobject cal = env->CallObjectMethod(mServiceObj, in getTouchAffineTransformation() local 980 jfloatArray matrixArr = jfloatArray(env->CallObjectMethod(cal, in getTouchAffineTransformation() 986 env->DeleteLocalRef(cal); in getTouchAffineTransformation()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1572 final Calendar cal = Calendar.getInstance(); in getCycleDayFromCarrierConfig() local 1573 if (cycleDay < cal.getMinimum(Calendar.DAY_OF_MONTH) || in getCycleDayFromCarrierConfig() 1574 cycleDay > cal.getMaximum(Calendar.DAY_OF_MONTH)) { in getCycleDayFromCarrierConfig()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 31185 Landroid/icu/util/Calendar$FormatConfiguration;->cal:Landroid/icu/util/Calendar;
|