Home
last modified time | relevance | path

Searched refs:HOURS (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/core/java/android/widget/
DRadialTimePickerView.java64 public static final int HOURS = 0; field in RadialTimePickerView
68 @IntDef({HOURS, MINUTES})
340 mPaint[HOURS] = new Paint(); in RadialTimePickerView()
341 mPaint[HOURS].setAntiAlias(true); in RadialTimePickerView()
342 mPaint[HOURS].setTextAlign(Paint.Align.CENTER); in RadialTimePickerView()
368 mTextSize[HOURS] = res.getDimensionPixelSize(R.dimen.timepicker_text_size_normal); in RadialTimePickerView()
372 mTextInset[HOURS] = res.getDimensionPixelSize(R.dimen.timepicker_text_inset_normal); in RadialTimePickerView()
377 mHoursToMinutes = HOURS; in RadialTimePickerView()
414 mTextColor[HOURS] = numbersTextColor == null ? in applyAttributes()
418 mTextColor[MINUTES] = mTextColor[HOURS]; in applyAttributes()
[all …]
DTextInputTimePickerView.java39 public static final int HOURS = 0; field in TextInputTimePickerView
235 mListener.onValueChanged(HOURS, getHourOfDayFromLocalizedHour( in parseAndSetHourInternal()
239 mListener.onValueChanged(HOURS, getHourOfDayFromLocalizedHour(hour)); in parseAndSetHourInternal()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java281 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(2), in testInstallationOptionWithoutFreeze()
285 SystemUpdatePolicy.TYPE_INSTALL_AUTOMATIC, TimeUnit.HOURS.toMillis(1), in testInstallationOptionWithoutFreeze()
286 millis_2018_01_01 + TimeUnit.HOURS.toMillis(2), p); in testInstallationOptionWithoutFreeze()
288 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(22), in testInstallationOptionWithoutFreeze()
289 millis_2018_01_01 + TimeUnit.HOURS.toMillis(4), p); in testInstallationOptionWithoutFreeze()
293 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(1), in testInstallationOptionWithoutFreeze()
294 millis_2018_01_01 + TimeUnit.HOURS.toMillis(21), p); in testInstallationOptionWithoutFreeze()
297 SystemUpdatePolicy.TYPE_INSTALL_AUTOMATIC, TimeUnit.HOURS.toMillis(2), in testInstallationOptionWithoutFreeze()
300 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(19), in testInstallationOptionWithoutFreeze()
301 millis_2018_01_01 + TimeUnit.HOURS.toMillis(3), p); in testInstallationOptionWithoutFreeze()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DTimeZoneLookupHelperTest.java75 int lonSummerOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz()
76 int lonSummerDstOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz()
116 int mtvSummerOffsetMillis = (int) TimeUnit.HOURS.toMillis(-8); in testLookupByNitzByNitz()
117 int mtvSummerDstOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz()
120 int mtvWinterOffsetMillis = (int) TimeUnit.HOURS.toMillis(-7); in testLookupByNitzByNitz()
229 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(2); in testLookupByNitzCountry_dstKnownAndUnknown()
230 Integer expectedDstOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown()
257 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown()
284 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(2); in testLookupByNitzCountry_dstKnownAndUnknown()
301 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown()
[all …]
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationWindowedCountTest.java74 setTimeMillis(TimeUnit.HOURS.toMillis(4)); in getCount_includesResultsInLastTwentyFourHours()
76 setTimeMillis(TimeUnit.HOURS.toMillis(23)); in getCount_includesResultsInLastTwentyFourHours()
87 setTimeMillis(TimeUnit.HOURS.toMillis(24)); in getCount_ignoresResultsOlderThanTwentyFourHours()
123 setTimeMillis(TimeUnit.HOURS.toMillis(24)); in record_compactsFileToLast24Hours()
DTertiaryKeyRotationSchedulerTest.java118 setTimeMillis(TimeUnit.HOURS.toMillis(24)); in isKeyRotationDue_isTrueAfterAWholeWindowHasPassed()
137 setTimeMillis(i * TimeUnit.HOURS.toMillis(24)); in isKeyRotationDue_neverAllowsMoreThanInWindow()
163 setTimeMillis(i * TimeUnit.HOURS.toMillis(24)); in isKeyRotationDue_naturallyStaggersBackupsOverTime()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNitzDataTest.java59 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst()
66 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_withDst()
94 assertEquals(TimeUnit.HOURS.toMillis(1), nitz.getDstAdjustmentMillis().longValue()); in testParse_androidEmulatorTimeZoneExtension()
/frameworks/base/tests/vcn/java/android/net/vcn/persistablebundleutils/
DTunnelModeChildSessionParamsUtilsTest.java90 final int hardLifetime = (int) TimeUnit.HOURS.toSeconds(3L); in testSetLifetimesEncodeDecodeIsLossless()
91 final int softLifetime = (int) TimeUnit.HOURS.toSeconds(1L); in testSetLifetimesEncodeDecodeIsLossless()
DIkeSessionParamsUtilsTest.java79 final int hardLifetime = (int) TimeUnit.HOURS.toSeconds(20L); in testEncodeRecodeParamsWithLifetimes()
80 final int softLifetime = (int) TimeUnit.HOURS.toSeconds(10L); in testEncodeRecodeParamsWithLifetimes()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/
DLogBufferEulogizer.kt116 TimeUnit.HOURS.convert(millisSinceLastWrite, TimeUnit.MILLISECONDS) + in <lambda>()
149 private val MAX_AGE_TO_DUMP = TimeUnit.HOURS.toMillis(48)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java171 long in16Hours = System.currentTimeMillis() + TimeUnit.HOURS.toHours(16); in schedulesAlarm12hBefore()
175 long twelveHours = TimeUnit.HOURS.toMillis(KeyguardSliceProvider.ALARM_VISIBILITY_HOURS); in schedulesAlarm12hBefore()
183 long in16Hours = System.currentTimeMillis() + TimeUnit.HOURS.toHours(8); in updatingNextAlarmInvalidatesSlice()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreConfig.java110 TimeUnit.HOURS.toMillis(6);
122 TimeUnit.HOURS.toMillis(48);
141 TimeUnit.HOURS.toMillis(6);
/frameworks/base/services/core/java/com/android/server/net/watchlist/
DReportWatchlistJobService.java41 TimeUnit.HOURS.toMillis(12);
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessIdleJob.java50 .setPeriodic(TimeUnit.HOURS.toMillis(24)).build(); in scheduleJob()
/frameworks/base/services/people/java/com/android/server/people/data/
DDataMaintenanceService.java39 private static final long JOB_RUN_INTERVAL = TimeUnit.HOURS.toMillis(24);
DEventIndex.java404 toLocalDateTime(time).truncatedTo(ChronoUnit.HOURS).minusHours(hourOfDay % 4); in createFourHoursLongTimeSlot()
413 LocalDateTime beginTime = toLocalDateTime(time).truncatedTo(ChronoUnit.HOURS); in createOneHourLongTimeSlot()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppTrampolineActivity.java77 TimeUnit.HOURS.toMillis(24)); in onCreate()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyConstants.java107 DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC_KEY, TimeUnit.HOURS.toSeconds(1)); in DevicePolicyConstants()
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/keys/
DTertiaryKeyRotationWindowedCount.java104 return mClock.millis() - TimeUnit.HOURS.toMillis(WINDOW_IN_HOURS) + 1; in getMinimumTimestamp()
/frameworks/base/services/core/java/com/android/server/appbinding/
DAppBindingConstants.java101 SERVICE_RECONNECT_MAX_BACKOFF_SEC_KEY, TimeUnit.HOURS.toSeconds(1)); in AppBindingConstants()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DStringUtil.java146 unit = RelativeUnit.HOURS; in formatRelativeTime()
/frameworks/base/services/core/java/com/android/server/
DZramWriteback.java130 .setMinimumLatency(TimeUnit.HOURS.toMillis(nextWbDelay)) in schedNextWriteback()
/frameworks/base/services/core/java/com/android/server/pm/
DDynamicCodeLoggingService.java57 private static final long AUDIT_WATCHING_PERIOD_MILLIS = TimeUnit.HOURS.toMillis(2);
/frameworks/base/core/java/android/service/watchdog/
DExplicitHealthCheckService.java199 private static final long DEFAULT_HEALTH_CHECK_TIMEOUT_MILLIS = TimeUnit.HOURS.toMillis(1);
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java372 long limit = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(hours); in withinNHoursLocked()
435 - TimeUnit.HOURS.toMillis(ALARM_VISIBILITY_HOURS); in onNextAlarmChanged()

12