[go: nahoru, domu]

History log of /frameworks/base/core/java/android/widget/DatePicker.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
68763be41cffbcb4883a0a6293fc1aa9e17a3957 25-May-2016 Alan Viverette <alanv@google.com> Use ICU's Calendar class in date picker & related classes

Also organizes imports.

Bug: 28756630
Change-Id: I4e59c4b35c88edd94ff4b2945ad9feb2a4bd0022
/frameworks/base/core/java/android/widget/DatePicker.java
0e672148a7c7292efdff0f641177ab06cd9d4968 06-Apr-2016 Alan Viverette <alanv@google.com> Deprecate methods not supported by Material-style date picker

Bug: 28039932
Change-Id: Ide53b42c9197ca9076184adef2e96170dd24785a
/frameworks/base/core/java/android/widget/DatePicker.java
a9a75f506efe7e63078bed661f49992e501846f0 01-Apr-2016 Alan Viverette <alanv@google.com> Refactor DatePickerDialog constructors to avoid early callback

Bug: 27475444
Change-Id: I2536f969ca734f3977163305c1d33ee0e2e222fc
/frameworks/base/core/java/android/widget/DatePicker.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/DatePicker.java
81fd6b48a0c2e638c55da4d8ec8dcb7fde2c1892 25-Jun-2015 Philipp Hasper <vcs@hasper.info> Fixed calendar fields comparison

Month was compared with the day and vice versa.
Found by dukejeffrie.

Change-Id: Ic4efca440c408325819ff1df85db7b407cf3207e
/frameworks/base/core/java/android/widget/DatePicker.java
835d7986061bbec2cd3433058f67d2efffe1bdee 23-Mar-2015 Alan Viverette <alanv@google.com> Docs nit

Change-Id: I390997826db6997f843cafc4136633937e185e82
/frameworks/base/core/java/android/widget/DatePicker.java
452fe349841476e4c7d17ab0652bdd4d45ce4595 23-Mar-2015 Alan Viverette <alanv@google.com> Clean up date picker

Bug: 19758502
Change-Id: I11ed62245d15d155335f5652000b9dc81185e2f9
/frameworks/base/core/java/android/widget/DatePicker.java
0ef59ac0e57e9b99d174d4a53f7d9639357743ac 23-Mar-2015 Alan Viverette <alanv@google.com> Update DatePicker and CalendarView to latest Material spec

Bug: 19431364
Change-Id: If364a051a5208d170495de4182e46b32c7560e08
/frameworks/base/core/java/android/widget/DatePicker.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/DatePicker.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/DatePicker.java
a54956a0bc611b1e9b3914edc7a604b59688f6b7 08-Jan-2015 Alan Viverette <alanv@google.com> Fix accessibility delegation

Ensures that delegate code is run last. Previously, calling the super
method from an accessibility delegate set on a widget would only run
code in the widget's parent. Next, the delegate code would run. Finally,
the widget's code would run. As a result, the widget code would override
any data supplied by the delegate.

By moving all overridden code to internal methods, we ensure that the
call chain for super includes the widget's parent code followed by the
widget's code. The delegate code will always run last.

BUG: 17641433
Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
/frameworks/base/core/java/android/widget/DatePicker.java
d25eb9fbb9d659aab5e8ea25d16cb8bcb458a1a9 24-Nov-2014 Alan Viverette <alanv@google.com> Update documentation for DatePicker to reflect the new mode

BUG: 18508605
Change-Id: I23d45bf1cd7783fa6f397c15f0ba6802e4069d6b
/frameworks/base/core/java/android/widget/DatePicker.java
a67d9095b7731df3a6ae3f45738a2980151fd1af 17-Sep-2014 Craig Mautner <cmautner@google.com> Restore changes that were needed.

Reverting the changes in ag/548487 also reverted alanv's changes
in ag/547793. This restores alanv's changes.

Fixes build.

Change-Id: Ifa2aa928a3ad29fe49e52dbec4e4833538dfe7e9
/frameworks/base/core/java/android/widget/DatePicker.java
704991224d8a3c17e84330e6b69c77bb0c503827 17-Sep-2014 Craig Mautner <cmautner@google.com> Merge "Revert "Fix various bugs in DatePickerCalendarDelegate"" into lmp-dev
706b3547f88c9f5aaf6e3949e2d32dbe57cea5b4 17-Sep-2014 Craig Mautner <cmautner@google.com> Revert "Fix various bugs in DatePickerCalendarDelegate"

alanv@ fixed this yesterday.

This reverts commit 82537efa4c5f4aad12b9aa249fb27eda21647f39.

Change-Id: If2b91ee36f8b24f695200ac1a87a306246ee5e44
/frameworks/base/core/java/android/widget/DatePicker.java
f6b4254befa7e07eb74b8d3244593fdcc4a5b70b 16-Sep-2014 Craig Mautner <cmautner@google.com> Merge "Fix various bugs in DatePickerCalendarDelegate" into lmp-dev
9c26b54d3c6b958cb097a32115b9e24780c879e1 16-Sep-2014 Craig Mautner <cmautner@google.com> Fix various bugs in DatePickerCalendarDelegate

These bugs were exposed by cts DatePickerTest.

Fixes one item in 17459129.

Change-Id: Ifab52c6e6e760b75633aa4fe8ccf2d724f587e09
/frameworks/base/core/java/android/widget/DatePicker.java
d015e3454ec1271ba6e5e3e6f0e5f7459b8b09ea 16-Sep-2014 Alan Viverette <alanv@google.com> Properly handle dispatchRestoreInstanceState for new-style DatePicker

Fixes reversed day/month/year in restore instance state.

BUG: 17514055
Change-Id: Id839f2f0dbca47034dc84100dbeb1c32e8848178
/frameworks/base/core/java/android/widget/DatePicker.java
a3ca5a31a5db14e7c4597de074f01c1af6161872 08-Sep-2014 Alan Viverette <alanv@google.com> Merge "Add first day of week API to date picker" into lmp-dev
0a04bb0d4bf18318fe5473bf5615c2016bc26373 04-Sep-2014 Alan Viverette <alanv@google.com> Add first day of week API to date picker

BUG: 17377360
Change-Id: Id4c109ac68e083d488a4281655bf9411fea92163
/frameworks/base/core/java/android/widget/DatePicker.java
ba9bf41a77261471a4dc9d7964aec41726b4e4e6 04-Sep-2014 Alan Viverette <alanv@google.com> Fix AM/PM text i18n and clean up keyboard support in time picker

Also updates date picker to use drawable for the header background to
match the implementation in time picker. The time picker background
now supports showing a focused state ripple.

BUG: 17344077
BUG: 16227517
Change-Id: Ida715badb4a151fc16edd91fd4a0dae32953c99e
/frameworks/base/core/java/android/widget/DatePicker.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/DatePicker.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/DatePicker.java
60727e07c6ef72e2f494266939c02494a3df28f8 29-Jul-2014 Alan Viverette <alanv@google.com> Clean up TimePicker and DatePicker styling

Removes the time and date picker specific themes and defaults their
theme attributes to use the alert dialog theme attribute's value.

BUG: 14973897
Change-Id: Id5cc74ea0c1a379fc1ee76b354a1bb5ba329585a
/frameworks/base/core/java/android/widget/DatePicker.java
bd9152f6ee156ee473f05f6f05f238605996fca4 01-Oct-2013 Fabrice Di Meglio <fdimeglio@google.com> Update DatePicker widget and its related dialog

- the old DatePicker widget is still there for obvious layout compatibility reasons
- add a new delegate implementation for having a new UI
- use the new delegate only for the DatePickerDialog (which does not need to be
the same)
- added support for Theming and light/dark Themes
- added support for RTL
- added support for Accessibility
- verified support for Keyboard
- verified that CTS tests for DatePicker are passing (for both the legacy and the
new widgets)

Also added a new HapticFeedbackConstants.CALENDAR_DATE and its related code for
enabling day selection vibration

Change-Id: I256bd7c21edd8f3b910413ca15ce26d3a5ef7d9c
/frameworks/base/core/java/android/widget/DatePicker.java
f8abeb8457feb766fb45829f6b175a22d4814d66 31-May-2014 Elliott Hughes <enh@google.com> resolved conflicts for merge of 04c987a8 to master

Change-Id: I27912e203e4d4e39aef6ffbb58b0934a2796ddfe
570f44b4ab083069f042d63948af0c1204a1ec20 31-May-2014 Elliott Hughes <enh@google.com> Move frameworks/base off private libcore.ICU API.

Change-Id: I55355b7ea68174063f31d6bb08a71bcb9dc76d62
/frameworks/base/core/java/android/widget/DatePicker.java
039a784ea3c24625b74084be18530f81dabd4bbb 29-Aug-2013 Fabrice Di Meglio <fdimeglio@google.com> Decouple DatePicker code

- introduce a DatePickerDelegate interface to be able to have several
DatePicker implementations
- code refactoring

Change-Id: I3a9453b1c87dea9046216cc501b0b5daf3d75d78
/frameworks/base/core/java/android/widget/DatePicker.java
617feb99a06e7ffb3894e86a286bf30e085f321a 10-Sep-2013 Alan Viverette <alanv@google.com> Add View constructor that supplies a default style resource

Also updates the constructor of every class that extends View.

BUG: 10676369
Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
/frameworks/base/core/java/android/widget/DatePicker.java
c255800fb0f46ea5f68d2c145605ac7dcd3a89b6 01-May-2013 Elliott Hughes <enh@google.com> am 6d82f86f: Merge "Show CJK dates as all-numeric in the DatePicker."

* commit '6d82f86fa01800ee0523743366e0dc1113178fd9':
Show CJK dates as all-numeric in the DatePicker.
949e9df25bccb736675f950591d3a286ae4052fc 30-Apr-2013 Elliott Hughes <enh@google.com> Show CJK dates as all-numeric in the DatePicker.

Before, we'd have something like 2006 4月12. After, we have 2006 4 12.
The alternative would require using custom NumberPicker.Formatter instances
for the year and day fields in these locales, and that seems significantly
more disruptive.

Bug: 8766552
Change-Id: I568578aae2f80f2acfc53cd277ef3beae6743472
/frameworks/base/core/java/android/widget/DatePicker.java
76c643c9b600ef31c22f807c2874c879a7fa5069 30-Apr-2013 Elliott Hughes <enh@google.com> am e3f2735f: Merge "when locale is non-Enligh, sometimes month spinner needs a number IME"

* commit 'e3f2735fcfd8dafd226200d5cf219a6f82c9cc0c':
when locale is non-Enligh, sometimes month spinner needs a number IME
e3f2735fcfd8dafd226200d5cf219a6f82c9cc0c 30-Apr-2013 Elliott Hughes <enh@google.com> Merge "when locale is non-Enligh, sometimes month spinner needs a number IME"
a99595a393341b6a130e202bc9e93848ee53057b 30-Apr-2013 Elliott Hughes <enh@google.com> am afe56810: Merge "Fix DatePicker\'s spinner order in various locales."

* commit 'afe56810517a4ddfad125029ca04fd4cc5af2ef5':
Fix DatePicker's spinner order in various locales.
659f145278ffd85f934a435dbec47ead685caf59 30-Apr-2013 Elliott Hughes <enh@google.com> Fix DatePicker's spinner order in various locales.

DatePicker always effectively uses yyyy MMM dd, so we need to ask
icu4c what order those should appear in for the user's locale. The
existing DateFormat code was an approximation that worked for en_US
but not for all languages (fa being one example).

Bug: 7207103
Change-Id: I7b12568dbc02522ebad6e1db5f8426109cd6f7ce
/frameworks/base/core/java/android/widget/DatePicker.java
e9a74a1a31f82391d44840aa17293021fcab6837 20-Mar-2013 Hyejin Kim <hyejin.kim@lge.com> when locale is non-Enligh, sometimes month spinner needs a number IME

When locale is non-English like korean, chinese, etc.,
month displayed string is started with number.

So, It's better to use Number IME for month selection.

Change-Id: If0444d62679b1f31d98fdedd2f06c2d445cade2a
/frameworks/base/core/java/android/widget/DatePicker.java
e10837f444c3da40a50a269e696afac63729bce3 08-Mar-2013 Svetoslav <svetoslavganov@google.com> [DO NOT MERGE] DatePickerDialog title initially incorrect if calendar view shown.

If the calendar view of the date picker dialog is shown we
do not use a formatted date as the dialog title since the
calendar view shows it, instead we show a static "Set date"
title. However, the initial state of the date picker dialog
on a tablet has a formatted date since the date picker widget
does not do a correct check whether the calendar view is shown
which returns a false negative resulting in a title with a
formatted date being added since the dialog thinks it has no
calendar view.

Change-Id: Ibf4c433b34ab1ee1bc1dc386689664a32283fb6a
/frameworks/base/core/java/android/widget/DatePicker.java
d88e3054d08b1f821bb2e27b2647aa16a60d8742 21-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7206086 NumberPicker widget should use locale digits

- fix for having the TwoDigitFormatter being able to be recreated if the locale is changed
- accept now also the Arabic and Persian digits

Change-Id: Ifbf7e274d971008f4a5782402d4b76d9472b68fc
/frameworks/base/core/java/android/widget/DatePicker.java
4c359b76f9a030f92a302ba74a528faa170bad4e 25-Jul-2012 Scott Main <smain@google.com> docs: fix a bunch of links from javadocs to api guides
and add some attributes to Spinner and Switch

Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
/frameworks/base/core/java/android/widget/DatePicker.java
4213804541a8b05cd0587b138a2fd9a3b7fd9350 20-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Accessibility focus - framework

Usefulness: Keep track of the current user location in the screen when
traversing the it. Enabling structural and directional
navigation over all elements on the screen. This enables
blind users that know the application layout to efficiently
locate desired elements as opposed to try touch exploring the
region where the the element should be - very tedious.

Rationale: There are two ways to implement accessibility focus One is
to let accessibility services keep track of it since they
have access to the screen content, and another to let the view
hierarchy keep track of it. While the first approach would
require almost no work on our part it poses several challenges
which make it a sub-optimal choice. Having the accessibility focus
in the accessibility service would require that service to scrape
the window content every time it changes to sync the view tree
state and the accessibility focus location. Pretty much the service
will have to keep an off screen model of the screen content. This
could be quite challenging to get right and would incur performance
cost for the multiple IPCs to repeatedly fetch the screen content.
Further, keeping virtual accessibility focus (i.e. in the service)
would require sync of the input and accessibility focus. This could
be challenging to implement right as well. Also, having an unlimited
number of accessibility services we cannot guarantee that they will
have a proper implementation, if any, to allow users to perform structural
navigation of the screen content. Assuming two accessibility
services implement structural navigation via accessibility focus,
there is not guarantee that they will behave similarly by default,
i.e. provide some standard way to navigate the screen content.
Also feedback from experienced accessibility researchers, specifically
T.V Raman, provides evidence that having virtual accessibility focus
creates many issues and it is very hard to get right.
Therefore, keeping accessibility focus in the system will avoid
keeping an off-screen model in accessibility services, it will always
be in sync with the state of the view hierarchy and the input focus.
Also this will allow having a default behavior for traversing the
screen via this accessibility focus that is consistent in all
accessibility services. We provide accessibility services with APIs to
override this behavior but all of them will perform screen traversal
in a consistent way by default.

Behavior: If accessibility is enabled the accessibility focus is the leading one
and the input follows it. Putting accessibility focus on a view moves
the input focus there. Clearing the accessibility focus of a view, clears
the input focus of this view. If accessibility focus is on a view that
cannot take input focus, then no other view should have input focus.
In accessibility mode we initially give accessibility focus to the topmost
view and no view has input focus. This ensures consistent behavior accross
all apps. Note that accessibility focus can move hierarchically in the
view tree and having it at the root is better than putting it where the
input focus would be - at the first input focusable which could be at
an arbitrary depth in the view tree. By default not all views are reported
for accessibility, only the important ones. A view may be explicitly labeled
as important or not for accessibility, or the system determines which one
is such - default. Important views for accessibility are all views that are
not dumb layout managers used only to arrange their chidren. Since the same
content arrangement can be obtained via different combintation of layout
managers, such managers cannot be used to reliably determine the application
structure. For example, a user should see a list as a list view with several
list items and each list item as a text view and a button as opposed to seeing
all the layout managers used to arrange the list item's content.
By default only important for accessibility views are regared for accessibility
purposes. View not regarded for accessibility neither fire accessibility events,
nor are reported being on the screen. An accessibility service may request the
system to regard all views. If the target SDK of an accessibility services is
less than JellyBean, then all views are regarded for accessibility.
Note that an accessibility service that requires all view to be ragarded for
accessibility may put accessibility focus on any view. Hence, it may implement
any navigational paradigm if desired. Especially considering the fact that
the system is detecting some standard gestures and delegates their processing
to an accessibility service. The default implementation of an accessibility
services performs the defualt navigation.

bug:5932640
bug:5605641

Change-Id: Ieac461d480579d706a847b9325720cb254736ebe
/frameworks/base/core/java/android/widget/DatePicker.java
d11e6151fe88314505fa7adca6278de2e772b11c 20-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Revamp of the NumberPicker widget.

1. The number picker no longer shows up and down arrows, it
has only three touch targets which are the currently selected number
in the middle with a lesser one above and greater below, now what
you touch is what you get, flingability and long press are still
supported.

2. Removed the restriction for a View with an AccessibilityNodeProvider
to not have any concrete children. If the View has a provider, then
this provider is responsible for creating the AccessibilityNodeInfos
for all its descendants, concrete and virtual. The number picker is
a good example for such a case - it has a concrete input view and
two virtual buttons as its children. This is a safe change since
this behavior has not been released.

3. This patch also fixes bug where the number picker is stretched too
much in the Theme theme.

bug:6177794
bug:5728294

Change-Id: I5fb370fe0b864a156f5f2aaf2de5f55f6b6d4e84
/frameworks/base/core/java/android/widget/DatePicker.java
c49a8be0d2aee5a3d1ff50015a0c0758b0988cfb 02-Mar-2012 Svetoslav Ganov <svetoslavganov@google.com> Sync of the DatePicker attributes with the public Java APIs.

1. Deprecated two old attributes.

2. Renamed an attribute which is not mean to be public so
its name is not the same as that of an already public one.

bug:6094713

Change-Id: I577a9e191cbd05cd18cb34105dcdbe53c0a5dd1e
/frameworks/base/core/java/android/widget/DatePicker.java
8a78fd4d9572dff95432fcc4ba0e87563415b728 17-Jan-2012 Svetoslav Ganov <svetoslavganov@google.com> AccessibilityEvent/AccessibilityNodeInfo class name property should be set to only framework classes.

AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source
Java class. This is problematic since leads to leaking private classes which would allow an
accessibility service to load classes from other packages. This is strongly undesirable since
not trusted code can be loaded, and hence executed, in the accessibility service. To address
that the class name is set to the most concrete framework class extended by the info/event
source.

bug:5878943

Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
/frameworks/base/core/java/android/widget/DatePicker.java
6304b0d58e74509a9f21b67b5227b2fee2f1b60f 20-Oct-2011 Svetoslav Ganov <svetoslavganov@google.com> DatePicker crashes when going from 2036 to 2035 via ▼

1. Some obsolte logic was placing invalid index in the array of
scroll wheel items which was resulting in failure to look its
string representation from the cache causing a NPE.

2. While editing the current value via the IME the middle item
of the scroll wheel was partially visible i.e. the user was
able to see a dimmed version of the old value intermixed with
the new one.

3. The logic for hiding the IME while poking a button i.e. starting
to use another way of changing the current value, was incorrect.

bug:5480205

Change-Id: I1c2c96402bd38bac1dec64ccc6b550410332b9d7
/frameworks/base/core/java/android/widget/DatePicker.java
a53efe9923bedab4fe5d578f32eaff308e5b9e76 09-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> The time and data pickers did not support IME editor action correctly.

1. Updated TextView to traverse all focusable items. It was searching focus
down and up and was missing right and left focusabled. Updated the focus
seach to use FOCUS_FORWARD and FOCUS_BACKWARD - now all focusable views
are visited.

2. TimePicker and DatePicker were not specifying the IME options for
the next and done editor actions.

bug:5264046

Change-Id: Ief80863fc312582f2f76928bf6e915f620c427e5
/frameworks/base/core/java/android/widget/DatePicker.java
3fec3fe0e3a83c5e0d1264f34bcc55b158537bc6 01-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Polish of the accessibility feedback of Date and Time pickers

bug:5228006
bug:5228004

Change-Id: I927e3a6dcbf4f81eab6f506fc38842d8e7a37aa1
/frameworks/base/core/java/android/widget/DatePicker.java
f5926962cc665d4a2e6464f9ba9e3e9788496a6f 12-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Date/time pickers and calendar view not handling locale change.

1. The data/time pickers and calendar view do not handle locale
change properly since they use cached Calendar instances to
limit the GC but fail to update them when the local changes.

Change-Id: I2a92d7f4e0f2798422843123e5aa483f8044bbed
/frameworks/base/core/java/android/widget/DatePicker.java
736c2756bf3c14ae9fef7255c119057f7a2be1ed 23-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration feature, event bubling, refactor

1. Added an Input Filter that interprets the touch screen motion
events to perfrom accessibility exploration. One finger explores.
Tapping within a given time and distance slop on the last exlopred
location does click and long press, respectively. Two fingers close
and in the same diretion drag. Multiple finglers or two fingers in
different directions or two fingers too far away are delegated to
the view hierarchy. Non moving fingers "accidentally grabbed the
device for the scrren" are ignored.

2. Added accessibility events for hover enter, hover exit, touch
exoloration gesture start, and end. Accessibility hover events
are fired by the hover pipeline. An accessibility event is
dispatched up the view tree and the topmost view fires it.
Thus predecessors can augment the fired event. An accessibility
event has several records and a predecessor can optionally
modify, delete, and add such to the event.

3. Added onPopulateAccessibilityEvent and refactored the existing
accessibility code to use it.

4. Added API for querying the currently enabled accessibility services
by feedback type.

Change-Id: Iea2258c07ffae9491071825d966dc453b07e5134
/frameworks/base/core/java/android/widget/DatePicker.java
3fb3d7c4e756bd32d5abde0abca9ab52d559bc84 23-Apr-2011 Adam Powell <adamp@google.com> Revert "Touch exploration feature, event bubling, refactor"

This reverts commit ac84d3ba81f08036308b17e1ab919e43987a3df5.

There seems to be a problem with this API change. Reverting for now to
fix the build.

Change-Id: Ifa7426b080651b59afbcec2d3ede09a3ec49644c
/frameworks/base/core/java/android/widget/DatePicker.java
ac84d3ba81f08036308b17e1ab919e43987a3df5 05-Apr-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration feature, event bubling, refactor

1. Added an Input Filter that interprets the touch screen motion
events to perfrom accessibility exploration. One finger explores.
Tapping within a given time and distance slop on the last exlopred
location does click and long press, respectively. Two fingers close
and in the same diretion drag. Multiple finglers or two fingers in
different directions or two fingers too far away are delegated to
the view hierarchy. Non moving fingers "accidentally grabbed the
device for the scrren" are ignored.

2. Added accessibility events for hover enter, hover exit, touch
exoloration gesture start, and end. Accessibility hover events
are fired by the hover pipeline. An accessibility event is
dispatched up the view tree and the topmost view fires it.
Thus predecessors can augment the fired event. An accessibility
event has several records and a predecessor can optionally
modify, delete, and add such to the event.

3. Added onPopulateAccessibilityEvent and refactored the existing
accessibility code to use it.

4. Added API for querying the currently enabled accessibility services
by feedback type.

Change-Id: Iec03c6c3fe298de3f14cb6efdbb9b198cd531a0c
/frameworks/base/core/java/android/widget/DatePicker.java
f583dd37643f495642cd64e9b8e6a0a9e0836ff1 18-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> DatePicker does not respect the user preference of date format

bug:4124142

The DatePicker was not properly interpreting the current date
format and was ingoring user preferences for the date format
rather it was using the locale default all the time.

Change-Id: I195c2ad975dc4e9adc5b6eb70c33c909a1553113
/frameworks/base/core/java/android/widget/DatePicker.java
bc006dc0aa1c149508a3196a40bac62cf1b33b84 25-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> am dc365a36: Merge "resolved conflicts for merge of 66edf2bb to honeycomb-plus-aosp" into honeycomb-plus-aosp

* commit 'dc365a36dac50bccc1411c37839513daec56d335':
Use different version of CLDR data in DatePicker
f114809031c5e5017bf69ab7a6d01024f1745fc8 25-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> resolved conflicts for merge of 66edf2bb to honeycomb-plus-aosp

Change-Id: I687ca9b7873890e3b30da16d5dde6b57ce92f0d6
ef7ec7a029425bfb42be1476261c463c424f70be 25-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Use different version of CLDR data in DatePicker

The ICU CLDR data doesn't use the month abbreviations that are
appropriate for the DatePicker, so use the framework copy of the CLDR
data.

Bug: 2641810
Note: cherry-picked from Honeycomb

Change-Id: I3c045dbfb751b8b7ce6361b5a67407206fc64db1
/frameworks/base/core/java/android/widget/DatePicker.java
5f3f6ce154ca1a0075f8ca13872d74f935acbe3d 25-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Exposing the CalendarView of the DatePicker.

bug:3272194

1. Added a getter to DatePicker.

Change-Id: If0c7fee4ab5f6abf6b12a02dbd5d519c00683115
/frameworks/base/core/java/android/widget/DatePicker.java
13427a04de835677f9e5f727298f168b88faa562 01-Feb-2011 Svetoslav Ganov <svetoslavganov@google.com> Clean up of the DatePicker

1. Removed a duplicate DatePicker stylable.

2. Fixed a bug that if the user wrongly desires to have the
calendar view and spinners hidden despite that DataPicker
ovrrides such incorrect choice to show at least the spinners
the min adn max date attributes are igonored.

Change-Id: I6307db71aca837ad790aea59fa70ead393feb066
/frameworks/base/core/java/android/widget/DatePicker.java
8a2a89588c3889b999a8fffa2d7c7a5c3ce25eb8 28-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support to NumberPicker, DatePicker, and TimePicker

bug:3400707

Change-Id: I0d4b10e9c744e7221a9a7a74081bcee351abbaf2
/frameworks/base/core/java/android/widget/DatePicker.java
58f51255eb20f9c4d16c11554f372ff92d45fcc7 27-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> The calendar view widget was jumping incorrectly to the next week
while selectiong the last day of the week.

The NumberPicker widget was getting into an inconsitent state when
reaching the end of the range (non wrapping selector wheel) and
the user touches the location of the hidden increment/decrement
button.

Change-Id: Id54103295dd2574030e2c29996061faa659a5bb7
/frameworks/base/core/java/android/widget/DatePicker.java
156f20919b3d5f298f8851215adbf65f8b4dc61b 24-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> DatePicker is picking the wrong date

bug:3375074

1. The logic for updating the higher rank fields on wrapping of
lower rank ones was incorrect. Updated that logic.

2. On reaching the min/max date the spinners did not stop
when reaching that date. Now spinners stop at min/max.

3. Fixed a couple of edge case bugs while setting the
the min and max dates of the DatePicker on the fly.

4. Restricted the scrolling/flinging to end at the min
and max dates.

Change-Id: Ibb588ea2cf951cf8d50328bbfbe7ebdad7ee8067
/frameworks/base/core/java/android/widget/DatePicker.java
cedc446684e94c9971c38c3206f1f224314bda2a 20-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> API REVIEW: android.widget.NumberPicker.OnValueChangedListener

Change-Id: I1e739553ab6b99b2768e42cf379a0b155dced81a
/frameworks/base/core/java/android/widget/DatePicker.java
4243dc394d89a93cb207efa36e9755c2424d688b 19-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Updated the Time/Date pickers to be backwards compatible

bug:3349400

Change-Id: I2a3dda82caf7de0ed203306c89ee774b94b7d82e
/frameworks/base/core/java/android/widget/DatePicker.java
9a143e6641fa4a5942e7341007d916601402e8df 18-Jan-2011 Dirk Dougherty <ddougherty@google.com> Doc change: fix busted link to DatePicker tutorial.

Change-Id: I957aa3bb4c0c91f195de99405cc8e1b5a5bc82f7
/frameworks/base/core/java/android/widget/DatePicker.java
3d20c846e45141acfbe9a56f0518ddb7a0bb4cf9 17-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Ensure that no callback is invoked while initializing DatePicker

bug:3360821

1. While my previous change:I3baff68c has partially fixed this bug
it was still possible for a callback to be invoked on init. If a
callback was already regitsered and the init is called the
callback is incorrectly notified.

Change-Id: I05c6cb78f4c7b7d2a00c52aef42c1698d9479be5
/frameworks/base/core/java/android/widget/DatePicker.java
2f136a874d240cc7e85e8de9c7644a7daa9532da 13-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> DatePicker is calling back its listener on init.

bug:3341515

1.Changed the callbeack registration to follow the spinners
initialization.

Change-Id: I3baff68c295993f975beec2b376af88e32b24e20
/frameworks/base/core/java/android/widget/DatePicker.java
d7419986ca79e5408f247fbfcad2c5dc2966a9e0 12-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> Down arrow on the month can end up at the start of the month

bug:3338078

1. The bug was that I was claculating delta month and day from
the current date but was changing the latter in the middle
thus causing inconsistent state.

Change-Id: Id3082b01778fc2b3116aa412aff3f12e9ebf0c97
/frameworks/base/core/java/android/widget/DatePicker.java
25f84f323c607bbd9133432fd789ba29b2dcd4d4 30-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> 3316147 TimePicker and DatePicker is editable even after the first setEnabled(false).

Change-Id: If800b048973200d249b1f5c62af064392ed98d91
/frameworks/base/core/java/android/widget/DatePicker.java
51c52edad7d40697d7fb2a091f850506fa897643 28-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> 3313982 DatePicker/TimePicker allow users to scroll date/time even when disabled.

Change-Id: I8c28615bfc813dfdddf21c40d84cc7c36f1fd391
/frameworks/base/core/java/android/widget/DatePicker.java
e9730bf3d2dcbea1879f24c18aaf9810ac57084c 21-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Adding APIs for setting whether to show week number and setting the start day of week. Cleaned up the code a bit.

Change-Id: Iaa7154c6912a68cd91df3ac881c324096394ea24
/frameworks/base/core/java/android/widget/DatePicker.java
28104e1de5595a22a6987181b13ddeb192739afd 20-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> 3298147 DatePicker dialog does not provide mechanism for specifying range from which to select

Change-Id: Ib5dd7db90ccc5b4d984914c481118049ac3648fe
/frameworks/base/core/java/android/widget/DatePicker.java
a911d4a2b1be7e9ea909a579167826e4a5bac1a3 09-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> bug_3259956 and bug_2166704

Change-Id: I71b4cc3c1111e7a4e78fb276d54a291c22fb2752
/frameworks/base/core/java/android/widget/DatePicker.java
4bfd794475e6fb34c9dfa83d4302e9db365a3709 08-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Updated the NumberPicker for exposing it into the SDK

Change-Id: I3bd48d0210da8a202b6ff60deecb5d7776f1b73b
/frameworks/base/core/java/android/widget/DatePicker.java
3119fd426d0e975541b1b8207ff13e2cce443c73 08-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Fixing the build breakage

Change-Id: I8589e5fcdeec127c84d2b419f6ef44d7011a5a6b
/frameworks/base/core/java/android/widget/DatePicker.java
50f34d14f6dd3411fdbdb6a7b8b285c2b8fdbf5c 04-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Adding DatePciker widget based on the Calednar team code. Updated DatePciker and DatePickerDialog as the second part of the Time/Date pciker refresh feature.

Change-Id: Id32c614bcd799463ca33bf08fb7d5cf44f8326a6
/frameworks/base/core/java/android/widget/DatePicker.java
dddda8d188408ff18935b1b0e15a00fe012a03da 15-Nov-2010 Kenny Root <kroot@google.com> Use different version of CLDR data in DatePicker

The ICU CLDR data doesn't use the month abbreviations that are
appropriate for the DatePicker, so use the framework copy of the CLDR
data.

Bug: 2641810
Change-Id: Ic0f7b461b43c76dfa3f8b73a9479b79df230d7bd
/frameworks/base/core/java/android/widget/DatePicker.java
8bcbebd4178b2e9aca9ee3bd9e1e12c42e74c8db 02-Oct-2010 Adam Powell <adamp@google.com> Fix bug 3024080 - Date picker month field uses numeric text field

NumberPicker now uses text entry when displayed value strings are
provided.

Change-Id: I555a7d6b64ad6a5af131b3e1d8c638dcdb00d02c
/frameworks/base/core/java/android/widget/DatePicker.java
70c9ffbc838271f0ea27a4780eb146287de53ef6 20-Aug-2010 Scott Main <smain@google.com> am 11a72482: Merge "docs: add links from widget classes to tutorials" into froyo

Merge commit '11a72482a0cdc45ceaf4ca83957e682381455aee' into gingerbread

* commit '11a72482a0cdc45ceaf4ca83957e682381455aee':
docs: add links from widget classes to tutorials
41ec65355bd6ded652769725b276d47c54a0d913 20-Aug-2010 Scott Main <smain@google.com> docs: add links from widget classes to tutorials

Change-Id: I817e885524951853182b0458df4a32dea1614243
/frameworks/base/core/java/android/widget/DatePicker.java
f78964490d8098387d51444c87bf520ad3f674e2 06-May-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ia9e1f4e049f5870386ea29ddb6e3ef028ea918da
0ba2d4782c62df6538399f80a91abe3867c449df 03-May-2010 Nicholas Killewald <captainspam@gmail.com> Fixed deserialization problem in DatePicker.

During onRestoreInstanceState for DatePicker, the internal
state of the widget is restored properly (thus setting the
internal year, month, and day), but the spinners aren't
visually updated to that state immediately. That is to say,
the internal state of the widget doesn't match the spinners
in that case, which can cause confusion.

Change-Id: I96d1a299d0ee159d41450470acb30a3bf6006d44
/frameworks/base/core/java/android/widget/DatePicker.java
9161e202d18ff31946fcd320641bc53abdc61afe 09-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I66d3db4c9ed3f54ce17a8d64ca0c6cce6941cdaa
e3491b6b5f1d3fb871074766597b275d9f682faa 05-Mar-2010 Kenneth Andersson <kenneth.andersson@sonyericsson.com> Title in DatePickerDialog used in Settings application not updated correctly

The DatePickerDialog in the Settings application is not updated correctly if you follow
the following step-by-step:
1. Enter Date option in settings application
2. Modify the values of the date, then cancel the changes
3. Once again enter the date option

and you can see that the title in the dialog has not been updated correctly. This is
due to a missing call to onDateChanged callback in the DatePicker class. Solution was
to add the notify call when updateTime has been called.
/frameworks/base/core/java/android/widget/DatePicker.java
5fe1e6221ea3bab3120f5b9c0ceacaf59d116c05 10-Feb-2010 Eric Fischer <enf@google.com> Make the Date Picker fields more consistent in locales with numeric months.

In locales that use month numbers instead of names, use *just* the number
instead of also the word for month to be consistent with the other fields,
which also show just a number instead of a number plus the word for day
or year.

Bug 2289276
/frameworks/base/core/java/android/widget/DatePicker.java
68f2f547f56f239b60d13b2b62a08a65874f6662 13-Jan-2010 Paul Westbrook <pwestbro@google.com> Bug 2330111

Make NumberPicker public

Made setCurrent() more robust, as the value needs to be within the range
specified earlier. setCurrent() will now throw an exception
if the specified doesn't fall in the range
/frameworks/base/core/java/android/widget/DatePicker.java
7762d93621f508f4410fd37b5bbdfec0071b0420 11-Dec-2009 Paul Westbrook <pwestbro@google.com> Unbundling work

Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator
NumberPicker, NumberPickerButton to android-common
---
/frameworks/base/core/java/android/widget/DatePicker.java
03a8017d0fe3b55b69c4328aa0d27bd96a2f1360 24-Jul-2009 Eric Fischer <enf@google.com> Make the DatePicker respect the date format setting if the date is numeric.

In some locales, there are no abbreviated month names; the abbreviated
date formats are essentially numeric. If the user is in such a locale,
have the DatePicker respect the date format setting so that the order
of the fields will match other numeric-only dates.

In locales that have abbreviated month names, continue to use the order
that is normal in spelled-out dates.

And update the order in updateDate() so that the new order is reflected
if you change the order setting and immediately go to change the date
without leaving and returning to the Date & Time settings in between.

At the same time, change DateFormat.getDateFormatOrder() back to working
the way it did in cupcake (prioritizing the date order preference over
the locale), even though the DatePicker no longer calls the method.

Bug 1805085
/frameworks/base/core/java/android/widget/DatePicker.java
2bf761c20253222a763bce9a63d14c48ab08a556 14-Jul-2009 Suchi Amalapurapu <asuchitra@google.com> Fix couple of issues in DatePicker
The NumberPicker's listener needs to be invoked only if
the current value changes when validating input.
This removes the some unwanted duplicate calls to onChanged.
Adjust day for month and leap years. note that updateDaySpinner
directly sets the value on day picker and doesn't invoke the
listener twice
/frameworks/base/core/java/android/widget/DatePicker.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/DatePicker.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/DatePicker.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/frameworks/base/core/java/android/widget/DatePicker.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/widget/DatePicker.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/widget/DatePicker.java