History log of /frameworks/base/core/java/android/widget/Chronometer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ba590a694bf110f3cc1240adbd358de61910f6a5 14-Apr-2017 Aurimas Liutikas <aurimas@google.com> Enhance Chronometer to better support Swedish countdowns.

Adds a method isTheFinalCountDown that allows to correctly
determine whether it is the final countdown.

Test: None
Change-Id: I786ae3455479bac25ccf25efba1c3dce18185117
/frameworks/base/core/java/android/widget/Chronometer.java
63a13cf7542bd884b3e3c6efc3a391359d979015 20-Dec-2016 Roozbeh Pournader <roozbeh@google.com> Fix casting issue in use of ICU Measures

Bug: 19418509
Bug: 33670388
Bug: 33750033
Test: manual
Change-Id: I286cfed0cfe34166bd1fd1982089a11eb556fc44
/frameworks/base/core/java/android/widget/Chronometer.java
241872a93beff5822f6ed5a23bba51862f63bf14 16-Dec-2016 Roozbeh Pournader <roozbeh@google.com> Switch Chronometer to use ICU instead of duration_hours etc

The data in ICU has higher quality and is more comprehensive.
(Additionally, the old code was using spaces to separate hours,
minutes, and seconds, which was not correct for some locales.)

Finally, remove duration_hours etc, since there is no longer any user
of it.

Bug: 33670388
Bug: 19418509
Test: manual and CTS (cts-tradefed run cts-dev --module CtsWidgetTestCases --test android.widget.cts.ChronometerTest)
Change-Id: I97efa62186b94ed444fff90fa26bf71ac1599261
/frameworks/base/core/java/android/widget/Chronometer.java
99441c5d7da45c10b729185852be97cbb0bdc8d5 12-Oct-2016 Aurimas Liutikas <aurimas@google.com> Fix import statements in android.widget package.

Additionally this CL removes spaces at the end of the line.

Test: code still compiles.
Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
/frameworks/base/core/java/android/widget/Chronometer.java
99de597c7187cf47907c40fba624d8688e776be2 27-May-2016 Alan Viverette <alanv@google.com> resolve merge conflicts of f118700 to nyc-dev-plus-aosp

Change-Id: I6fc2b3d279318c5c34a1f4b2921d3c1eff8ac627
a2a0171e7cfe305309ea72270204141c588d469d 19-May-2016 Selim Cinek <cinek@google.com> Fixed a bug where the chronometer wasn't updating the time

When the countdown was set to true and the chronometer was set to
count down it wasn't updating the time, which is now fixed.

Change-Id: I4887d9eb09193c5636070edee9ba1bd13b9a23b5
Fixes: 28829131
/frameworks/base/core/java/android/widget/Chronometer.java
ed1a33cc86a80017be195f1c6485ef8089b992ac 19-Feb-2016 Selim Cinek <cinek@google.com> Made the Chronometer able to count downwards

Bug: 26862188
Change-Id: I3a4a34ffccdbcbcb8001b1894ce47bb75b11821d
/frameworks/base/core/java/android/widget/Chronometer.java
814e1f51e620a4ee99a48ecee0cb4d0bc7374c83 05-Nov-2015 Simon Dubray <simonx.dubray@intel.com> Chronometer: Update the value only if displayed on screen

Chronometer is refreshed every second even if not displayed
on the screen and if the screen is off.

Change-Id: I9348c4f988b6822f2c7d9cac0e47acaf82a02e01
Signed-off-by: Simon Dubray <simonx.dubray@intel.com>
Signed-off-by: Zhiquan Liu <zhiquan.liu@intel.com>
/frameworks/base/core/java/android/widget/Chronometer.java
d0374c6b25c3ad8e638827bd8190553f80d9bf22 20-Oct-2015 John Reck <jreck@google.com> Fix a few view ctors to not call Looper.myLooper

Bug: 25116730
Change-Id: I4e394c281feef6f7987433298d66f2df11352416
/frameworks/base/core/java/android/widget/Chronometer.java
a79a747ca006d78b969f85227670f36572fde042 05-Jun-2015 Dan Sandler <dsandler@android.com> Announce chronometers with time-unit words.

Instead of just using the visible representation for
accessibility, for which "00:15" is announced as "zero
fifteen", we now say "fifteen seconds".

Similarly,

00:00 - "0 seconds"
01:00 - "1 minute"
02:05 - "2 minutes 5 seconds"
1:00:00 - "1 hour"
2:00:02 - "2 hours 2 seconds"
2:01:02 - "2 hours 1 minute 2 seconds"
-5 - "5 seconds" (what are we, Mission Control?)

Adapted from similar code in
packages/apps/InCallUI/src/com/android/incallui/InCallDateUtils.java

Bug: 19418509
Change-Id: I54188ef25a7a205bb5bab42663a3da357ac853ef
/frameworks/base/core/java/android/widget/Chronometer.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/Chronometer.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/Chronometer.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/Chronometer.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/core/java/android/widget/Chronometer.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/Chronometer.java
4879f1f183d3d2fd775fe9366934d6077601be05 09-Apr-2012 Daniel Sandler <dsandler@android.com> Remove Chronometer logspew.

Change-Id: Ie9ea1ac9fb0b8053b00ce162c191dfa44c1ff6ab
/frameworks/base/core/java/android/widget/Chronometer.java
a2985ed3099c9206a4fd9fd8eaf0e4025b82aca9 03-Apr-2012 Daniel Sandler <dsandler@android.com> Chronometer support in Notifications.

@hidden for now while we experiment with it in Phone.

Change-Id: Ib6ca3a8262f676d49d81e081a30c6d994c732a6b
/frameworks/base/core/java/android/widget/Chronometer.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/Chronometer.java
3ff7eb92ade41dd1098b9f549662af4e2e467840 14-Apr-2009 Jeffrey Sharkey <> AI 146012: am: CL 145860 am: CL 145568 Hide setStarted() from public API.
It should be renamed to something more meaninful before being exposed.
Original author: jsharkey
Merged from: //branches/cupcake/...
Original author: android-build

Automated import of CL 146012
/frameworks/base/core/java/android/widget/Chronometer.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/Chronometer.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/Chronometer.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/widget/Chronometer.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/widget/Chronometer.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/widget/Chronometer.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/Chronometer.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/widget/Chronometer.java