/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/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 | 473 final Calendar cal = Calendar.getInstance(mLocale); in autofill() local 474 cal.setTimeInMillis(time); in autofill() 475 setDate(cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE)); in autofill() 488 final Calendar cal = Calendar.getInstance(mLocale); in getAutofillValue() local 489 cal.set(Calendar.HOUR_OF_DAY, getHour()); in getAutofillValue() 490 cal.set(Calendar.MINUTE, getMinute()); in getAutofillValue() 491 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 | 118 Calendar cal = new GregorianCalendar(); in testExpirationDate1Day() local 119 cal.add(Calendar.DATE, 6); in testExpirationDate1Day() 120 Date date = cal.getTime(); in testExpirationDate1Day() 141 Calendar cal = new GregorianCalendar(); in testExpirationDate7Day() local 142 cal.add(Calendar.DATE, 30); in testExpirationDate7Day() 143 Date date = cal.getTime(); in testExpirationDate7Day()
|
D | NewNitzStateMachineTest.java | 671 Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Etc/UTC")); in createUtcTime() local 672 cal.clear(); in createUtcTime() 673 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUtcTime() 674 return cal.getTimeInMillis(); in createUtcTime()
|
D | OldNitzStateMachineTest.java | 795 Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Etc/UTC")); in createUtcTime() local 796 cal.clear(); in createUtcTime() 797 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUtcTime() 798 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/datetimepicker/src/com/android/datetimepicker/date/ |
D | DayPickerView.java | 441 Calendar cal = Calendar.getInstance(); in getMonthAndYearString() local 442 cal.set(day.year, day.month, day.day); in getMonthAndYearString() 445 sbuf.append(cal.getDisplayName(Calendar.MONTH, Calendar.LONG, Locale.getDefault())); in getMonthAndYearString() 447 sbuf.append(YEAR_FORMAT.format(cal.getTime())); in getMonthAndYearString()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | SimpleTimeZoneDetectorStrategyTest.java | 509 Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("Etc/UTC")); in createUtcTime() local 510 cal.clear(); in createUtcTime() 511 cal.set(year, monthInYear - 1, day, hourOfDay, minute, second); in createUtcTime() 512 return cal.getTimeInMillis(); in createUtcTime()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
D | ResponseData.java | 216 public DTTZResponseData(Calendar cal) { in DTTZResponseData() argument 218 mCalendar = cal; in DTTZResponseData()
|
/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/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/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 1313 final Calendar cal = Calendar.getInstance(); 1326 assertCycleDayAsExpected(config, cal.getMaximum(Calendar.DAY_OF_MONTH), true); 1327 assertCycleDayAsExpected(config, cal.getMinimum(Calendar.DAY_OF_MONTH), true); 1332 assertCycleDayAsExpected(config, cal.getMaximum(Calendar.DAY_OF_MONTH) + 1, false); 1333 assertCycleDayAsExpected(config, cal.getMinimum(Calendar.DAY_OF_MONTH) - 5, false);
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 1002 jobject cal = env->CallObjectMethod(mServiceObj, in getTouchAffineTransformation() local 1006 jfloatArray matrixArr = jfloatArray(env->CallObjectMethod(cal, in getTouchAffineTransformation() 1012 env->DeleteLocalRef(cal); in getTouchAffineTransformation()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1560 final Calendar cal = Calendar.getInstance(); in getCycleDayFromCarrierConfig() local 1561 if (cycleDay < cal.getMinimum(Calendar.DAY_OF_MONTH) || in getCycleDayFromCarrierConfig() 1562 cycleDay > cal.getMaximum(Calendar.DAY_OF_MONTH)) { in getCycleDayFromCarrierConfig()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 33398 Landroid/icu/util/Calendar$FormatConfiguration;->cal:Landroid/icu/util/Calendar;
|