/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 | 94 ScheduleCalendar cal = new ScheduleCalendar(); in testEvaluateSubscription_noAlarmExit_InSchedule() local 95 cal.setSchedule(info); in testEvaluateSubscription_noAlarmExit_InSchedule() 96 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InSchedule() 99 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InSchedule() 118 ScheduleCalendar cal = new ScheduleCalendar(); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() local 119 cal.setSchedule(info); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 120 assertTrue(cal.isInSchedule(now.getTimeInMillis())); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 125 conditionId, cal, now.getTimeInMillis(), now.getTimeInMillis() + 1000); in testEvaluateSubscription_noAlarmExit_InScheduleSnoozed() 149 ScheduleCalendar cal = new ScheduleCalendar(); in testEvaluateSubscription_noAlarmExit_beforeSchedule() local 150 cal.setSchedule(info); in testEvaluateSubscription_noAlarmExit_beforeSchedule() [all …]
|
D | NotificationHistoryDatabaseTest.java | 118 GregorianCalendar cal = new GregorianCalendar(); in testPrune() local 119 cal.setTimeInMillis(10); in testPrune() 125 for (long i = cal.getTimeInMillis(); i >= 5; i--) { in testPrune() 133 cal.add(Calendar.DATE, -1 * retainDays); in testPrune() 137 when(file.getName()).thenReturn(String.valueOf(cal.getTimeInMillis() - i)); in testPrune() 143 cal.add(Calendar.DATE, 1 * retainDays); in testPrune() 144 mDataBase.prune(retainDays, cal.getTimeInMillis()); in testPrune() 153 GregorianCalendar cal = new GregorianCalendar(); in testPrune_badFileName_noCrash() local 154 cal.setTimeInMillis(10); in testPrune_badFileName_noCrash() 160 for (long i = cal.getTimeInMillis(); i >= 5; i--) { in testPrune_badFileName_noCrash() [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 | 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/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 | 1393 final Calendar cal = Calendar.getInstance(); 1406 assertCycleDayAsExpected(config, cal.getMaximum(Calendar.DAY_OF_MONTH), true); 1407 assertCycleDayAsExpected(config, cal.getMinimum(Calendar.DAY_OF_MONTH), true); 1412 assertCycleDayAsExpected(config, cal.getMaximum(Calendar.DAY_OF_MONTH) + 1, false); 1413 assertCycleDayAsExpected(config, cal.getMinimum(Calendar.DAY_OF_MONTH) - 5, false);
|
/frameworks/base/services/core/jni/ |
D | com_android_server_input_InputManagerService.cpp | 939 jobject cal = env->CallObjectMethod(mServiceObj, in getTouchAffineTransformation() local 943 jfloatArray matrixArr = jfloatArray(env->CallObjectMethod(cal, in getTouchAffineTransformation() 949 env->DeleteLocalRef(cal); in getTouchAffineTransformation()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1578 final Calendar cal = Calendar.getInstance(); in getCycleDayFromCarrierConfig() local 1579 if (cycleDay < cal.getMinimum(Calendar.DAY_OF_MONTH) || in getCycleDayFromCarrierConfig() 1580 cycleDay > cal.getMaximum(Calendar.DAY_OF_MONTH)) { in getCycleDayFromCarrierConfig()
|
/frameworks/base/tools/aapt2/integration-tests/CommandTests/ |
D | android-28.jar | META-INF/
META-INF/MANIFEST.MF
javax/
javax/net/
javax/ ... |
/frameworks/opt/setupwizard/tools/docs/ |
D | jsilver.jar | META-INF/
META-INF/MANIFEST.MF
org/
org/clearsilver/
org/ ... |