summaryrefslogtreecommitdiff
path: root/core/java/android/widget/ScrollBarDrawable.java
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate Canvas.EdgeTypeLeon Scroggins III2020-01-231-1/+1
| | | | | | | | | | | | Bug: 129694386 Test: No change in behavior, no new tests EdgeType is only used as a parameter to quickReject, but it is always ignored. Deprecate it and the existing quickReject methods. Add new versions of quickReject without EdgeType parameters. Switch clients to the new versions. Change-Id: Id932f10915a8c4959fe0e85f507ce7fd2da8a576
* 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
* Add @UnsupportedAppUsage annotations for greylist.Artur Satayev2019-11-191-0/+4
| | | | | | | | | | | | | go/cleanup-greylist-txt These have already been greylisted, however due to bugs/omissions in the tooling have been kept in go/greylist-txt instead of being annotated in the code. This is partial merge of aosp/Id6c1f5e403a0e66edb1102ee45f3bf19f244fb09. Telephony greylist cleanup has been done separately. Note that annotations outside of frameworks/base/ have been merged from AOSP. Bug: 137350495 Test: m Exempt-From-Owner-Approval: merge Change-Id: I015c466e8b69cc0fed5e9d394ba865aad11d8ba6
* Added public API alternatives to reflective calls on ScrollBarDrawableNader Jawad2019-02-121-3/+43
| | | | | | | | | | | Added public setter/getter APIs on View to set/get the track/thumb Drawables for the vertical and horizontal scroll bars to support configuring scrollbars programmatically in addition to xml attributes Change-Id: Ic0b42742e8a795fe616887369dd0e592cde5c2fa Fixes: 123769505 Test: Added View.java test cases to verify new setter/getters
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+4
| | | | | | | | | | | | | | | | 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
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-2/+2
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Add consistent @NonNull annotations for drawable callbacksAlan Viverette2016-03-111-3/+4
| | | | | Bug: 27599515 Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
* Make scroll bar mouse draggable.Keisuke Kuroyanagi2016-01-211-15/+9
| | | | | | | | | | | | | This is for Views that have special mouse dragging handling. e.g. TextView invokes text selection on mouse dragging, so it cannot be scrolled by mouse dragging. This provides such Views or ViewGroups a last resort to scroll as we don't assume that all devices have touch panel, touch pad, or mouse wheel. Bug: 20016455 Change-Id: I68a13258a50b5e4ea681b2576da6000a0bb3fa65
* Improve docs for drawable tint and color filtersChris Craik2015-03-021-6/+6
| | | | | bug:19564477 Change-Id: I7e11baae2d4dd245965904c85b8855de71f6b6ac
* resolve merge conflicts of da9653a to master.Alan Viverette2015-02-051-0/+25
|\ | | | | | | Change-Id: I7458452389fb7b048fe5c6daa375fd4dbb9d9766
| * Mutate scroll bar drawablesAlan Viverette2015-02-051-0/+33
| | | | | | | | | | Bug: 19285726 Change-Id: I4bb596433c1fa1cc4e2fa53d0cdae992f9add858
* | Ensure scroll drawables are managed correctlyAlan Viverette2015-01-211-64/+151
|/ | | | | Bug: 19035677 Change-Id: Ib86666ddd1b6747f921a6e2f048405aba0c04ef7
* Ensure scroll assets are drawn with correct opacityAlan Viverette2015-01-151-0/+10
| | | | | Bug: 18903443 Change-Id: I5a7e738b1a09c22857683e2540c96a050b82866e
* Avoid null-deref crashes in ScrollBarDrawableChet Haase2014-06-301-14/+26
| | | | | | | | | | | | | | Some of the code in ScrollBarDrawable automatically derefs the horizontal and/or vertical thumb objects. The drawable can sometimes be in a state where these objects are null, causing a null deref. This fix simply avoids dereferencing null objects. Also, fixed doc bug in attrs.xml for Transition tags. Issue #13210554 Transition style documentation refers to 'move' instead of 'changeBounds' Issue #15636059 ScrollBarDrawable crashes in setAlpha() and other methods when thumbs are null Change-Id: I6664ba17dae0845de8a8658381ae6e9c9ef99214
* add getAlpha() to DrawableChet Haase2013-03-081-0/+6
| | | | | | | | | | | | | | | | | | | Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the method). This makes it more tedious to use the property. For example, animations that wish to animate this property must explicitly give it a start value since this value cannot be queried from the object. The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the method. Instead, we'll add a default method which returns an invalid value, making it easier for clients of the method to detect whether the value is valid. All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when appropriate. Issue #7485875 Drawables is missing getAlpha() Change-Id: I06b6e35f1a56d202838eca44759c85c82595020a
* Fix save()/restore() issues in the OpenGL renderer.Romain Guy2010-08-171-2/+1
| | | | | | The save stack now behaves exactly like in Skia. Change-Id: If7e642f41f2c8f693f6e8c26cba81507d466562e
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+253
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-253/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-3/+5
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-1/+4
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+248