summaryrefslogtreecommitdiff
path: root/core/java/android/widget/RatingBar.java
Commit message (Collapse)AuthorAgeFilesLines
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-061-1/+1
| | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I41e12e425284e74561c6b61663241df364ae54a1
* 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/+5
| | | | | | | | | 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
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+2
| | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Add support for automatic focusability determinationEvan Rosky2017-01-191-1/+5
| | | | | | | | | | | | | | New android:focusable attribute value "auto" and corresponding constant FOCUSABLE_AUTO specifies that the framework can determine a view's focusability. For now, the only "auto" logic is that focusable = clickable. This has the effect of making clickable views focusable by default unless the developer has explicitly set them focusable=false. Bug: 31963283 Change-Id: Icce768fa701966970ea6b3469b33a4ef97ebc3ea Test: Added CTS test, related CTS passes, made a test-app which enumerates all clickable/focusable combinations to verify
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-0/+1
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Scale bitmap shaders for target densityAlan Viverette2016-10-071-4/+2
| | | | | | | | | | | | Also fixes progress bar sample tile to reflect density and ensures that ProgressBar.tileify() clones inner drawables into the correct density. Bug: 31841123 Test: BitmapDrawableTest#testPreloadDensity() Test: ThemeHostTest Test: Visual inspection of ApiDemos Change-Id: I9dcb9817d8d91d61ff0215987247e9e7fb089c46
* Adjust touch progress offset to account for changes to AbsSeekBarAlan Viverette2016-08-011-2/+2
| | | | | | | | | Previously AbsSeekBar always rounded up, which resulted in poor handling of touches near the edge of a progress value. We fixed this but forgot to adjust RatingBar for the new behavior. Bug: 30558586 Change-Id: I634fa7a0b98568093e16279ef5a80abe08d2e2fe
* Add API for set progress on ProgressBar/SeekBarMaxim Bogatov2015-05-071-0/+16
| | | | | | b/12912083 Change-Id: I3a7807f0ac40220139da21248d539fa796d0a544
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-3/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Pass the new progress when updating a ProgressBarRoboErik2015-02-111-35/+35
| | | | | | | | | There was a race condition where the update for a progress change from the user could pass the wrong progress value causing apps to treat a non-user update as a user update. bug:18515012 Change-Id: Ia62a1d07cd15f99effbf644642307c71049748f2
* 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
* Revert "Animates AbsSeekBar progress movement from key presses."Alan Viverette2014-11-261-4/+0
| | | | | | | | | Incorrect implementation that broke the Brightness dialog slider. Reverting to the previous behavior. This reverts commit c5c9d0af764f590ae0031b5470192a0a08ca42d1. BUG: 18510040 Change-Id: I201b1da46be964fcf6f041bb92ef79c335c2d23d
* Animates AbsSeekBar progress movement from key presses.Jon Miranda2014-07-251-0/+4
| | | | Change-Id: I9ef00c61351e8fe28be7a7a7d592f09a5124caa0
* Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-5/+9
| | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* docs: fix a bunch of links from javadocs to api guidesScott Main2012-07-241-3/+0
| | | | | | and add some attributes to Spinner and Switch Change-Id: If015ad000c1a36e19904c132e98ebff1ceaf718b
* Fixes for bugs: 6104423, 6103563, 6103509, 6103807 & 6103253.Philip Milne2012-03-261-0/+4
| | | | | | | | Add properties to Java API so as to better mirror the framework's XML API. I'm not familiar with many of these areas so this CL is worth some scrutiny. Change-Id: Iff63c43521305efaad5a2189c1b5556d2353cbd4
* AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-0/+13
| | | | | | | | | | | | | | | 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
* Implement smarter sizing of WRAP_CONTENT windows.Dianne Hackborn2010-12-031-1/+2
| | | | | | | | | | | | | | This extends the view hierarchy's measure pass to allow view to propagate up to their parent additional information besides just their measured size. They can now report that their measured width and/or height should be larger than the size their parent is limiting them to (even though by definition they need to contrain their reported measurements to the limits imposed by the parent). ViewRoot uses this information to determine if it should remeasure the window with a larger size limit to try to make it fit. Change-Id: I90af3b7a8ec45d0a5c003fb009857025209d83eb
* docs: add links from widget classes to tutorialsScott Main2010-08-191-0/+3
| | | | Change-Id: I817e885524951853182b0458df4a32dea1614243
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-181-1/+7
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+317
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-317/+0
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-091-19/+25
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+311