Home
last modified time | relevance | path

Searched refs:HOURS (Results 1 – 25 of 39) 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()
DTimePickerClockDelegate.java77 private static final int HOUR_INDEX = RadialTimePickerView.HOURS;
925 case RadialTimePickerView.HOURS:
956 case TextInputTimePickerView.HOURS:
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java276 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(2), in testInstallationOptionWithoutFreeze()
280 SystemUpdatePolicy.TYPE_INSTALL_AUTOMATIC, TimeUnit.HOURS.toMillis(1), in testInstallationOptionWithoutFreeze()
281 millis_2018_01_01 + TimeUnit.HOURS.toMillis(2), p); in testInstallationOptionWithoutFreeze()
283 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(22), in testInstallationOptionWithoutFreeze()
284 millis_2018_01_01 + TimeUnit.HOURS.toMillis(4), p); in testInstallationOptionWithoutFreeze()
288 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(1), in testInstallationOptionWithoutFreeze()
289 millis_2018_01_01 + TimeUnit.HOURS.toMillis(21), p); in testInstallationOptionWithoutFreeze()
292 SystemUpdatePolicy.TYPE_INSTALL_AUTOMATIC, TimeUnit.HOURS.toMillis(2), in testInstallationOptionWithoutFreeze()
295 assertInstallationOption(SystemUpdatePolicy.TYPE_PAUSE, TimeUnit.HOURS.toMillis(19), in testInstallationOptionWithoutFreeze()
296 millis_2018_01_01 + TimeUnit.HOURS.toMillis(3), p); in testInstallationOptionWithoutFreeze()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DTimeZoneLookupHelperTest.java72 int lonSummerOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz()
73 int lonSummerDstOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz()
113 int mtvSummerOffsetMillis = (int) TimeUnit.HOURS.toMillis(-8); in testLookupByNitzByNitz()
114 int mtvSummerDstOffsetMillis = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzByNitz()
117 int mtvWinterOffsetMillis = (int) TimeUnit.HOURS.toMillis(-7); in testLookupByNitzByNitz()
226 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(2); in testLookupByNitzCountry_dstKnownAndUnknown()
227 Integer expectedDstOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown()
254 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown()
281 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(2); in testLookupByNitzCountry_dstKnownAndUnknown()
298 int expectedUtcOffset = (int) TimeUnit.HOURS.toMillis(1); in testLookupByNitzCountry_dstKnownAndUnknown()
[all …]
DNitzStateMachineImplTest.java276 int timeStepMillis = (int) TimeUnit.HOURS.toMillis(3); in test_airplaneModeClearsState()
375 int timeStepMillis = (int) TimeUnit.HOURS.toMillis(3); in test_handleNetworkUnavailableClearsNetworkState()
/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/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardSliceProviderTest.java162 long in16Hours = System.currentTimeMillis() + TimeUnit.HOURS.toHours(16); in schedulesAlarm12hBefore()
166 long twelveHours = TimeUnit.HOURS.toMillis(KeyguardSliceProvider.ALARM_VISIBILITY_HOURS); in schedulesAlarm12hBefore()
174 long in16Hours = System.currentTimeMillis() + TimeUnit.HOURS.toHours(8); in updatingNextAlarmInvalidatesSlice()
/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/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyConstants.java95 DAS_DIED_SERVICE_RECONNECT_BACKOFF_SEC_KEY, TimeUnit.HOURS.toSeconds(1)); in DevicePolicyConstants()
DSecurityLogMonitor.java85 private static final long RATE_LIMIT_INTERVAL_MS = TimeUnit.HOURS.toMillis(2);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DInstallCarrierAppTrampolineActivity.java77 TimeUnit.HOURS.toMillis(24)); in onCreate()
/frameworks/base/tests/net/common/java/android/net/
DDependenciesTest.java49 final long inSeconds = TimeUnit.HOURS.toMillis(hours); in testTimeUnit()
/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.java136 unit = RelativeUnit.HOURS; in formatRelativeTime()
DPowerUtil.java43 private static final long ONE_HOUR_MILLIS = TimeUnit.HOURS.toMillis(1);
/frameworks/base/services/core/java/com/android/server/
DZramWriteback.java130 .setMinimumLatency(TimeUnit.HOURS.toMillis(nextWbDelay)) in schedNextWriteback()
/frameworks/base/core/java/android/service/watchdog/
DExplicitHealthCheckService.java186 private static final long DEFAULT_HEALTH_CHECK_TIMEOUT_MILLIS = TimeUnit.HOURS.toMillis(1);
/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/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java377 long limit = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(hours); in withinNHoursLocked()
440 - TimeUnit.HOURS.toMillis(ALARM_VISIBILITY_HOURS); in onNextAlarmChanged()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/location/
DRecentLocationAccessesTest.java42 private static final long TWENTY_THREE_HOURS_AGO = NOW - TimeUnit.HOURS.toMillis(23);
DRecentLocationAppsTest.java41 private static final long TWENTY_THREE_HOURS_AGO = NOW - TimeUnit.HOURS.toMillis(23);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java68 public static final long BELOW_HYBRID_THRESHOLD = TimeUnit.HOURS.toMillis(2);
70 public static final long ABOVE_HYBRID_THRESHOLD = TimeUnit.HOURS.toMillis(4);
/frameworks/base/core/java/android/text/format/
DRelativeDateTimeFormatter.java159 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.HOURS; in getRelativeTimeSpanString()

12