summaryrefslogtreecommitdiff
path: root/core/java/android/widget/Chronometer.java
Commit message (Collapse)AuthorAgeFilesLines
* Update core widgets to save attribute source info.Aurimas Liutikas2019-02-071-0/+2
| | | | | | Bug: 111439551 Test: make -j Change-Id: I72997a87122f38b32e38e42a690385acc7d0e521
* @InspectableProperty coverage for android.widgetAshley Rose2019-02-041-0/+3
| | | | | | | | | A few getters for view properties have been added where they were missing. CTS tests for the new APIs are pending in b/123894719. Test: m framework Bug: 120492712 Change-Id: I743ce693d384eaf749ced3db7f81bda7d19ed275
* Enhance Chronometer to better support Swedish countdowns.Aurimas Liutikas2017-04-171-0/+18
| | | | | | | | Adds a method isTheFinalCountDown that allows to correctly determine whether it is the final countdown. Test: None Change-Id: I786ae3455479bac25ccf25efba1c3dce18185117
* Fix casting issue in use of ICU MeasuresRoozbeh Pournader2016-12-191-1/+1
| | | | | | | | Bug: 19418509 Bug: 33670388 Bug: 33750033 Test: manual Change-Id: I286cfed0cfe34166bd1fd1982089a11eb556fc44
* Switch Chronometer to use ICU instead of duration_hours etcRoozbeh Pournader2016-12-151-27/+16
| | | | | | | | | | | | | | 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
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-9/+8
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* resolve merge conflicts of f118700 to nyc-dev-plus-aospAlan Viverette2016-05-271-1/+9
|\ | | | | | | Change-Id: I6fc2b3d279318c5c34a1f4b2921d3c1eff8ac627
| * Chronometer: Update the value only if displayed on screenSimon Dubray2015-12-021-1/+8
| | | | | | | | | | | | | | | | | | 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>
* | Fixed a bug where the chronometer wasn't updating the timeSelim Cinek2016-05-181-0/+1
| | | | | | | | | | | | | | | | 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
* | Made the Chronometer able to count downwardsSelim Cinek2016-02-221-6/+42
| | | | | | | | | | Bug: 26862188 Change-Id: I3a4a34ffccdbcbcb8001b1894ce47bb75b11821d
* | Fix a few view ctors to not call Looper.myLooperJohn Reck2015-10-201-8/+7
|/ | | | | Bug: 25116730 Change-Id: I4e394c281feef6f7987433298d66f2df11352416
* Announce chronometers with time-unit words.Dan Sandler2015-06-051-0/+58
| | | | | | | | | | | | | | | | | | | | | | 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
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-2/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* First quick implementation of auto assist data.Dianne Hackborn2015-02-061-11/+2
| | | | | | | | | | | | | | 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
* Fix accessibility delegationAlan Viverette2015-01-071-4/+6
| | | | | | | | | | | | | | | 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
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-2/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-5/+8
| | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Remove Chronometer logspew.Daniel Sandler2012-04-091-1/+0
| | | | Change-Id: Ie9ea1ac9fb0b8053b00ce162c191dfa44c1ff6ab
* Chronometer support in Notifications.Daniel Sandler2012-04-041-0/+2
| | | | | | @hidden for now while we experiment with it in Phone. Change-Id: Ib6ca3a8262f676d49d81e081a30c6d994c732a6b
* AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-0/+14
| | | | | | | | | | | | | | | 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
* AI 146012: am: CL 145860 am: CL 145568 Hide setStarted() from public API.Jeffrey Sharkey2009-04-131-0/+1
| | | | | | | | | 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
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+278
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-271/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-031-13/+6
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-021-6/+13
|
* auto import from //branches/cupcake/...@132276The Android Open Source Project2009-02-191-0/+48
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+1
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+223