History log of /frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
628bb61c30a8912452ea533926a74466c0674a8f 29-Jan-2018 David Ogutu <ogutu@google.com> Fix TimePicker separator l10n issue.

This was surfacing in the android clock with certain locales e.g. fr_CA.
Fixed for all unqiue locale patterns.

Bug: 71572309
Test: manual - changed locale to Fr_CA and made sure clock seperator WAI
Test: atest CtsWidgetTestCases:TextViewTest CtsWidgetTestCases:EditTextTest CtsWidgetTestCases:TextViewFadingEdgeTest FrameworksCoreTests:TextViewFallbackLineSpacingTest FrameworksCoreTests:TextViewTest

Change-Id: Ie43bf9428e8c5ef2fe2e9545cb5a6dada25d6e52
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
f480e8cad5e6cf4fed85a944adc01d96f51e966b 11-Aug-2017 Felipe Leme <felipeal@google.com> Improved autofill support on DatePicker and TimePicker:

- Save autofilled value so UI is properly highlighted.
- Notify TimePicker listener just once.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases -t android.widget.cts.DatePickerTest
Test: cts-tradefed run commandAndExit cts-dev -m CtsWidgetTestCases -t android.widget.cts.TimePickerTest

Fixes: 37098837

Change-Id: I38d64c107f6059b94c92676ea37681006474f519
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
6791c7bf670e2f9de78186dc71dfbbbca3f6e38e 06-Jul-2017 Roozbeh Pournader <roozbeh@google.com> Respect the locale in vertical location of AM/PM

If the locale puts the AM/PM before the hour and minute in time
formatting, make sure TimePicker respects that by putting the AM/PM
above the hour and minute in landscape mode, where the AM/PM used to
always appear below the hour and minute.

Two sets of locales are affected. All of them put the AM/PM before
the hour and minute, but the first set also defaults to 12-hour, so
the change is most visible in these: Ewe, Chinese (both Simplified
and Traditional, including Cantonese), Korean, and Tamil. The second
set, Hungarian, Japanese, Myanmar, Sinhala, and Turkish, would only
see the difference if the time picker is forced into 12-hour mode.

Test: manual (tested en-US, ar-EG, ta-IN, zh-Hans-CN, ko-KR)
Change-Id: Ic5840d46d81a004294bda4644df02c721152686b
Fixes: 63352170
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
01bcf1ef5cefab6c6e4fc953e489cc65c6e14bab 29-Jun-2017 Roozbeh Pournader <roozbeh@google.com> Respect locale direction in TimePicker AM/PM location

Previously, the code that decided where the AM/PM indicator should
end up relative to the hours and minutes assumed that the locale was
LTR. Now it works correctly for RTL locales too.

Bug: 62846484
Test: manual (tested adding an alarm under ar-EG, en-US, and ta-IN, all of which are 12-hour)
Change-Id: I748baff01e2b3398747a2f8c074edbd16322bdf9
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
7334441d69917473ab52f4666459bbcc5a9813e4 17-Jun-2017 Aurimas Liutikas <aurimas@google.com> Hide IME when switching to Radial Time Picker

When switching back to the Radial Time Picker with an
IME visible, make sure to hide it.

Test: Set time from Settings. Switch to TextInputTimePicker.
Enter text so IME appears. Switch back to RadialTimePicker
IME should be hidden again.

Change-Id: Ia0ed149d74333b2f643d50a324172b64aa5e223b
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
43da25c6707b7ddd118bf507865d21cebc4ae70b 24-May-2017 Adam Powell <adamp@google.com> Disable state save/restore for inflated date/time picker views

Fix a bug where the internal date/time picker views reused view IDs
causing state save/restore bugs when placed within AlertDialogs and
other places. Since the pickers already save/restore their state at a
higher level leaving this enabled was redundant.

Bug 32654446
Test: manual

Change-Id: I3df2fc932ac5296ab6eb0a5013dddef8d1117635
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
c0aa90d9ee66837ae3d36e4f97c8645b3f0053be 16-May-2017 Aurimas Liutikas <aurimas@google.com> Update TimePicker mode switch icon.

Previously the icon was an event icon, but a clock icon is
more appropriate so we are switching to that instead.

Bug: 37351390
Test: Open time picker
Change-Id: I47e6caf3c341c10264168004628288fd00e4601a
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
de06d67d165e70c547b7b663a90349607dac5d9a 02-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added auto-fill support for DatePicker and TimePicker."
305b72c92568a2dd2ece08caebd610ec8bd473f4 27-Feb-2017 Felipe Leme <felipeal@google.com> Added auto-fill support for DatePicker and TimePicker.

Also fixed some getAutoFillType() implementations to return null
when the view is disabled.

Bug: 33550221
Bug: 35840787
Test: CtsAutoFillServiceTestCases (with new tests) pass
Test: m update-api

Change-Id: I46acc1fb106cf2153515cc1c9567b34cfabd1c62
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
2f16bc8a3a833c89863a39feb6a05dac78f2f8ea 28-Feb-2017 Aurimas Liutikas <aurimas@google.com> Do not send onTimeChanged updates if nothing actually changed.

Bug: 29314380
Test: android.widget.cts.TimePickerTest#testSetOnTimeChangedListener now passes.
Change-Id: I4df96cd306967027ea76e2c256b50ca687eae9ba
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
ab14d825c3eb2a337de02af93333e8302c08c732 25-Jan-2017 Aurimas Liutikas <aurimas@google.com> Adding text input mode to TimePicker.

Test: Tests will have a follow up CL.
Bug:30044800

Change-Id: I71a0fba97026da76251768016edf1b159617abb9
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
d596b26f127ea1d10838bb27db72910c9e28151c 11-Aug-2016 Alan Viverette <alanv@google.com> Use localized hour when announcing selection for accessibility am: 66a8562c58 am: fde654fb97
am: 4922fdc35f

Change-Id: I769d1cc8b25af34b4a08fba27e62db09a22412bc
66a8562c58507c52d0b9924aa0c7c246b1c723e8 04-Aug-2016 Alan Viverette <alanv@google.com> Use localized hour when announcing selection for accessibility

Bug: 30451273
Change-Id: I04276dc12d479ff5336799ebb32ff4cf5d66068a
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
f87b0e12152ddd6aa2032ac5fc53b161f4076b3f 04-Jul-2016 Andrei Stingaceanu <stg@google.com> TimePicker - introduce hidden methods for CTS testing

For assisting the TimePickerTest keyboard traversal and
keyboard entries CTS tests.

Bug: 26187903
Change-Id: Ie30a006d07b7e5f75b11645e84c5df8b470cb52b
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
68640b68099765461d5427fddbb925beaa9d2a6a 02-Jun-2016 Clara Bayarri <clarabayarri@google.com> Add setOnDateChangedListener to DatePicker

Also refactor slightly the hierarchy in TimePicker to use the
common parent AbstractTimePickerDelegate in the same way as
DatePicker.

Bug: 28310875
Change-Id: Iecaf206ba1691e26d4496014dc1d13f070c4722a
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
2a993b4f6dad3524fb52038cb160d6e34c725076 28-Apr-2016 Alan Viverette <alanv@google.com> Maintain internal consistency for TimePickerClockDelegate hour

Hour was not updated correctly when a new hour was selected using the
radial picker or when AM/PM was changed, which prevented programmatic
calls from working.

Bug: 28398738
Change-Id: I0c1ffd9f9e569d980e72e74dc62568a56930afc4
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
30b57b6bd222c11f2fcc347a6c794f78c6fa84bd 19-Apr-2016 Alan Viverette <alanv@google.com> Call OnTimeChangedListener on AM/PM change in clock-style TimePicker

Bug: 28257554
Change-Id: I25aabac783ea2b6e68be4b6c60f0d55a4c37af26
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
b0f5461eeca28d6c4be6ba1f826a43a8961f587e 12-Apr-2016 Alan Viverette <alanv@google.com> Include current selection mode in TimePicker event text

Bug: 23118708
Change-Id: I709f28674c7a959cdfb279f8643a07aa562d8fef
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
6b3f85f87ed95cce748aeb57c70df0d2ed72707f 01-Mar-2016 Alan Viverette <alanv@google.com> Use Holo date/time picker layouts on very small screens

If the screen is smaller than "small" then use the Holo picker layouts.
Unifies the SavedState between delegates so that we can seamlessly
transition between them during configuration changes. Pushes the
DatePickerSpinnerDelegate up to the same level as the calendar delegate.

Bug: 27239893
Change-Id: Ida4dc2748d38bd766ae93d12aef15e963921939c
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
491523d52cd8368ef9a92e95fb3e9332bf86a996 07-Oct-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib fixes for N

Moves LayoutLib to Java 8 - YAY!
Fix delegates

Change-Id: I098996e43e330e995d33f12df1c16355bbc02f0f
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
7add7e04969a23d90fc41331912c3114770bde82 20-Nov-2015 Alan Viverette <alanv@google.com> Only look for nearest child View in ViewGroup

NearestTouchDelegate may still be assigned to non-ViewGroup views, but
we won't attempt to find a target child View until the touch moves into
a ViewGroup.

Bug: 25813455
Change-Id: I570f88fee63623110e3463e8d4579cca8113fd5e
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
68016a66f6d981676b193e8f52a06bee785c8da9 19-Nov-2015 Alan Viverette <alanv@google.com> Set mTempCalendar in TimePickerSpinnerDelegate

A previous CL removed setLocale(), which had been initializing the temp
calendar. This CL also makes the calendar final, since the locale is only
set once during construction.

Bug: 25776094
Change-Id: If0af34df3120a7c4b1667129a553b9f8b7ec1999
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
3b7e2b910253f8621cd4c498c9a6b5eeb2c398cd 16-Nov-2015 Alan Viverette <alanv@google.com> Update the TimePicker hour format when toggling 24-hour mode

Bug: 25615007
Change-Id: I47a9f6b07e0cf7c86ca6d25c835a06878878d483
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
4420ae875de711a91dc10f7f4dd5a9cc62221ac8 16-Nov-2015 Alan Viverette <alanv@google.com> Clean up TimePicker

No functional changes, only refactoring:
- shorten method and variable names
- remove unused validation callback
- avoid using return in setters

Change-Id: Ie7c19cfe3c5cb515695f943c534899d37ad032bb
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
b3f24639902e71d4da3b2aa4eff25e75e9ce7711 22-Oct-2015 Alan Viverette <alanv@google.com> Implement new keyboard interaction model in TimePicker

Also enlarges the touch targets for the AM/PM buttons by redirecting
unhandled touches within the containing view group.

Bug: 20257430
Change-Id: I28e8d8894a4702116bb68cc6a6d4115e5aa87a69
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
2b4dc1156695ae0a7498bf8fe7cd6b82941026d3 02-Oct-2015 Alan Viverette <alanv@google.com> Animate radial time picker selector during hour/minute transition

Also propagates XML attrs from time picker to radial view during
construction, which allows the hour colors & etc. to be changed
inline without needing to set the timePickerStyle theme attribute.

Bug: 20333885
Change-Id: Ib42b9f5b93b5d6ce1dcbaa05f99cef40c9f9a9d3
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
f86bbd04b9a83f6d0b53408c828ccf02942ee586 16-Sep-2015 Alan Viverette <alanv@google.com> Ensure AM/PM buttons are at least 48x48dp

Also cleans up imports.

Bug: 24057304
Change-Id: I95e8e7c49247bcf51aabcb656d76c0bfa0f0865c
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
f63757b7a6d06138860640f8e95326dc1ff47646 02-Apr-2015 Alan Viverette <alanv@google.com> Scale month view for small screens, use verbatim span for AM/PM label

Also fixes initial day selection in DatePickerDialog.

Bug: 19933912
Bug: 19937345
Change-Id: I88264a192c087361dbf21b055e74e1facf2506bc
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
6199bffef2eca134c44f0f56f8ddf9f0b8f41319 30-Mar-2015 Alan Viverette <alanv@google.com> Merge "Deprecate AnalogClock widget, Integer methods on TimePickerView"
f2525f6802219ad5e983128dc2f7b5a89a507d9c 25-Mar-2015 Alan Viverette <alanv@google.com> Clean up time picker attributes and drawing code

Change-Id: I16283d666f49885855a5f9bb3781cea07af058fd
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
646a0f8e0d0a9f94a5969d09a498f5de5fe40a88 18-Mar-2015 Alan Viverette <alanv@google.com> Deprecate AnalogClock widget, Integer methods on TimePickerView

Bug: 19754178
Change-Id: Ic51c40995ce841040d745070243e483d4d97ce5c
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
62c79e9a64c3b2cafd5500ed3064977dff7b7da3 26-Feb-2015 Alan Viverette <alanv@google.com> Implement landscape layout for time picker dialog

Adds support overriding default alert dialog panel elements by including
them in the dialog's custom content view, but no public API (yet!) since
the panel IDs have never been public. Some minor cleanup and refactoring
in TimePickerDialog. Removes Holo styles for "clock" and "calendar" style
pickers since they are new in Material. If the new styles are used against
Holo they will match Material but with Holo primary/accent colors.

Also implements themed color state lists to resolve TODOs in both time
and date pickers.

Bug: 19431361
Change-Id: I095fd8d653e02d9e5d20d66611432a08a7a5685e
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
adbc95f015aed3c6d67bc05507cafa2148cc5d94 20-Feb-2015 Alan Viverette <alanv@google.com> Update time picker to match latest Material spec

Also removes saveLayerAlpha() call from radial time picker's disabled
drawing path.

Bug: 19431361
Change-Id: I18641bb9544107bb8704fc43d0dd6c5b18ff99ce
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
a7bb6fbeab933326d58aa806d8194b7b13239d34 04-Feb-2015 Dianne Hackborn <hackbod@google.com> First quick implementation of auto assist data.

Introduce new AssistData class that contains all data
the framework automatically generates for assist. Currently
populated with a very simple tree structure representing
the app's view hierarchy.

Reworked how we populate the class name for accessibility
info, so this is provided through a new method call on View
that subclasses can override. This method is also used
to populate the class name in AssistData.

Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
4a5baeaec9294dbb43fe3b36a44b3176101756b6 06-Jan-2015 Deepanshu Gupta <deepanshu@google.com> Merge "resolved conflicts for a0bc2e7e to lmp-mr1-dev" into lmp-mr1-dev
dd508581216ef3ef47bd474316232f269db43f03 05-Jan-2015 Alan Viverette <alanv@google.com> Use min when comparing AM and PM text lengths

Also cleans up code a little to prevent unnecessary re-computation
of lower-cased strings and use final where possible.

BUG: 18874813
Change-Id: I852eb7a281aed64ac36e95f32f5fa410f50abfa4
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
f5b02eb7c43a96d3f70a3ecc81738b0dff86df13 18-Nov-2014 Deepanshu Gupta <deepanshu@google.com> resolved conflicts for a0bc2e7e to lmp-mr1-dev

The original change wasn't properly merged into lmp-mr1-dev because of
merge conflicts. This change manually resolves the conflicts. The main
reason for the conflict was that TimePickerSpinnerDelegate was swapped
with TimePickerClockDelegate.

This change also fixes the typo in the original change which was fixed
in a subsequent change.

Original commit: 12b6d29b7b5592dcfb6e6fd6f0c21a40f37d014a
fix for typo: cb09bc45c58740af953874f9915306d351fc3d9d

Change-Id: I50bf8c2d86318f632465a38adfad16d1382a9319
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
3fc00e3139706c2c90f8e7261eef48086887dc11 10-Dec-2014 Alan Viverette <alanv@google.com> Improve time picker accessibility

Overrides click action description for TimePicker hour/minute selectors
and manually specifies traversal order for radial time picker nodes.

BUG: 17468036
Change-Id: I4472b42a95d762085d7a4d382feb2b9216c0d41c
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
4fc2ea8402b62001b225bf4e1a335c4cbf3b65ea 12-Nov-2014 Alan Viverette <alanv@google.com> Merge "Ensure time picker dialog fits on small screens" into lmp-mr1-dev
d9f3fdf45bd3e3b5b02f2d21b6df6598cbaf1c70 12-Nov-2014 Alan Viverette <alanv@google.com> Ensure time picker dialog fits on small screens

Also fixes dialog padding in landscape mode and a bug in the
ColorStateList method used to apply a selected color.

BUG: 18251582
Change-Id: Id5b8c7893ec42fd4d5f4a7520e6ac170839d3143
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
73c3068b0ef9c14bfbe7b056905621cc147b9c38 08-Nov-2014 Alan Viverette <alanv@google.com> Call OnTimeChangedListener when new TimePicker values are selected

BUG: 18295303
Change-Id: Ib5922db3a16c1975554072e2af241bbd6cf807c4
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
ffb46bf2956d89e3190007ccf2ef3ce3eed005fe 24-Oct-2014 Alan Viverette <alanv@google.com> Add support for Explore by Touch to RadialTimePickerView

Also adds IntArray, which is like LongArray for integers, and prevents
the AM/PM label text in the time picker header from wrapping.

BUG: 17468036
Change-Id: I7120089885709f23e20368927e4b3ed9db2e5393
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
daf33ed85353ab7d7a7668dd0e3f9a66f0d5583f 23-Oct-2014 Alan Viverette <alanv@google.com> Swap names for clock delegates so they are correct

Change-Id: Ic11affae802f0afe4746f65f0b96979a7c5a9c0a
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
67945c11a5e9547f71be91ceb99e7b9ff15a6292 15-Oct-2014 Alan Viverette <alanv@google.com> Update AM/PM selectors for clock face TimePicker

The selectors are now CheckedTextViews, which makes more sense when
using a screen reader.

BUG: 17468036
Change-Id: I09c62a08172a710faa8fb7ed2bf99a66331e5701
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
7119d0d66bd8649508c5bbb973a34b3b858bf8cf 26-Aug-2014 Alan Viverette <alanv@google.com> Update date and time picker styling

Change text sizes, fix year picker selected color, remove pulse
animations, fix landscape layout centering.

BUG: 17185948
BUG: 17187072
BUG: 14973897
BUG: 16938600
Change-Id: I11ad0abb217a950f4a96d1f781e08f09796c67bb
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
ed402566707e1910145a289929185a19b4dc38a5 23-Aug-2014 Elliott Hughes <enh@google.com> Merge "Use CLDR narrow am/pm markers." into lmp-dev
1cc51a6c6c656c6ef0a0e57f2acd6f6d82f17bd9 22-Aug-2014 Elliott Hughes <enh@google.com> Use CLDR narrow am/pm markers.

Bug: 16938600
Bug: 16842390
Change-Id: Ia1c6470e233966c0d8c399d7c1a22c640fbc40e9
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
9468c6a28e696f4ddca2c5b9ba312ffb590c3161 21-Aug-2014 Alan Viverette <alanv@google.com> Clean up nullable listeners in date and time picker delegates

Removes the NO_OP listener from TimePicker since we actually do null
checks everywhere already.

BUG: 17179502
Change-Id: I39a7d68253845c004027e31c59afc43be42195b7
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
518ff0de95e64116ecb07706fc564d4c19197ca7 15-Aug-2014 Alan Viverette <alanv@google.com> Fix date and time picker styling

Removes done buttons from widgets, fixes date picker day selection, fixes
dialog layouts in landscape, updates colors. Adds API on AlertDialog for
setting the view by resource ID, which is necessary to correctly inflate
the view against the dialog's parent view.

BUG: 16941550
BUG: 16852521
BUG: 16878697
BUG: 16838659
BUG: 17047435
Change-Id: I138858ce06cd4abf68a2c3361ec170370236b33b
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
271ed9ae870f3a9cbe339161748aa553a87fe2e9 07-Aug-2014 Alan Viverette <alanv@google.com> Use translatable strings for time picker AM/PM labels

BUG: 16842390
Change-Id: Ibdbe9cffb39373f200a09eb0d28b956a1eeb5d13
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java
3053b2fdcf7486f2e2f572f9b05ce65dacdd2b4c 06-Aug-2014 Chet Haase <chet@google.com> Allow TimePicker/DatePicker to use legacy layout style

In L, the TimePicker was rewritten to use a clock face and the
DatePicker was rewritten to use a calendar. This
change allows developers to opt into the old style instead
(android:timePickerMode="spinner|clock" and
android:datePickerMode="spinner|calendar").)

Issue #16717952 Pre-L style android.widget.TimePicker on L
Issue #16846963 Allow developer to use legacy DatePicker appearance

Change-Id: I4ee071fcbc5bf25eab83d6a5cb6ff352a603f90a
/frameworks/base/core/java/android/widget/TimePickerClockDelegate.java