summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Fix NullPointerException in NinePatch constructorPhil Dubach2009-06-301-2/+3
| | | | | | | | | | | NinePatch.mPaint may be null and most methods in this class handle that case properly. However, the constructor which derives a new NinePatch from an existing instance assumes that mPaint is non-null. This results in an unexpected NullPointerException, for example when attempting to call NinePatchDrawable.mutate() on an instance that was created from a resource. Small unrelated fix in same file: Remove unused private mRect member.
* Replace indeterminate progress animated asset with new onesRomain Guy2009-06-303-6/+62
|
* Fix NullPointerException in DrawableContainer.mutate()Phil Dubach2009-06-291-2/+4
| | | | | | | | DrawableContainerState.mDrawables is an array which may be only partially filled, as can be seen in the constructor and the addChild() method. DrawableContainer.mutate() wrongly assumed that the array does not contain null references.
* Update spinner's drawables. Clean up resources, pave the way for new animation.Romain Guy2009-06-262-0/+317
|
* Fix NPE in GradientDrawable constructorPhil Dubach2009-06-231-1/+3
| | | | | | | | | | | The mColors member can be null, as can be seen in GradientDrawable.setSolidColor() or the plain constructor. In that case, an NPE will be thrown on attempts to derive a new GradientDrawable from the instance using the private constructor GradientDrawable(GradientDrawable). The problem also occurs when inflating a GradientDrawable from XML without defining the start, center and end colors and then calling mutate() on the instance.
* Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.Wei-Ta Chen2009-06-221-44/+62
| | | | | | | The function is used to rebuild any caches associated with the bitmap. In the case of purgeable bitmaps, this call ensures that the pixels are decoded for drawing, and therefore prefetching techniques implemented by callers can be leveraged.
* Fix Canvas.finalize() for the case where the constructor throws an exceptionPhil Dubach2009-06-171-1/+5
| | | | | | | | | | | | | before the native canvas instance was created. If the canvas constructors throw an exception (because the bitmap passed in is immutable or already recycled), the constructor terminates early without allocating the native canvas instance. For the most part, that's okay, since the Canvas instance will never be returned to the application. However, the GC will still call finalize() on the half-initialized Canvas. The native methods for Canvas all assume that the canvas pointer passed down is not null.
* Unhide inInputShareable in BitmapFactory.Options.Wei-Ta Chen2009-06-041-2/+0
| | | | | The variable works together with inPurgeable, which has been unhidden in https://android-git.corp.google.com/g/Gerrit#change,2870.
* Unhide inPurgeable in BitmapFactory.Options.Wei-Ta Chen2009-06-021-22/+20
| | | | | The correctness and effectiveness of the usage of the parameter are evaluated in: https://android-git.corp.google.com/g/Gerrit#change,2768
* Fix typos.Ken Shirriff2009-05-131-1/+1
|
* AI 148752: Fix description of breakText() param.Dirk Dougherty2009-05-121-2/+3
| | | | | | BUG=1790234 Automated import of CL 148752
* Merge change 1057 into donutAndroid (Google) Code Review2009-05-121-1/+32
|\ | | | | | | | | * changes: * Add regoin scaling for transparent support
| * * Add regoin scaling for transparent supportMitsuru Oshima2009-05-121-1/+32
| |
* | Fixes #1847219. Add a new API to load fonts from arbitrary files: ↵Romain Guy2009-05-121-5/+27
| | | | | | | | Typeface.createFromFile(String/File).
* | Fixes #1846038. DrawableContainer was wrongly returning its opacity by ↵Romain Guy2009-05-121-38/+28
|/ | | | ignoring the visibility of the currently selected layer. This change simply reports a TRANSPARENT opacity if there is no currently selected layer of if the selected layer is not visible. Otherwise it reports the opacity computed by the state class.
* Merge branch 'readonly-p4-donut' into donutMitsuru Oshima2009-04-281-0/+13
|\
| * AI 147976: Compatibility mode support. Part 2.Mitsuru Oshima2009-04-281-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea) * Changes to RootView / SurfaceView - Makes the app believe it's running in the supported density/resolution. - Makes the window manager believe it's running at the right density/resolution. * Added methods to Rect/Event for scaling up/down. Known issues: * certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account, which, in turn, is causing layout issue. * ZoomButton in MapView is rendered in wrong place * Transparent region on Surface is not correct * Specifying different densities in one process is not working. BUG=1770627 Automated import of CL 147976
* | Merge change 618 into donutAndroid (Google) Code Review2009-04-281-50/+65
|\ \ | | | | | | | | | | | | * changes: Fixes #1816088. Avoid initializing empty Rects when they are useless, especially in Zygote.
| * | Fixes #1816088. Avoid initializing empty Rects when they are useless, ↵Romain Guy2009-04-281-50/+65
| | | | | | | | | | | | especially in Zygote.
* | | Add call to (new) Canvas.freeCaches() in response to low-memoryMike Reed2009-04-271-1/+11
|/ / | | | | | | | | This is in conjunction with removing a similar call made by the browser. Now it will be centralized, and the browser's call site will be removed.
* | Merge change 546 into donutAndroid (Google) Code Review2009-04-271-0/+30
|\ \ | | | | | | | | | | | | * changes: Add (hidden for now) purgeable bitmaps
| * | Add (hidden for now) purgeable bitmapsMike Reed2009-04-241-0/+30
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BitmapFactory::Options now let you specify if the resulting bitmap can be "purgeable". If so, then its decoded pixels may be purged when not actively being drawn, freeing up that RAM. When such a bitmap is drawn, it will automatically be re-decoded on demand. This is done by having the bitmap keep a reference/copy of the encoded data. Where it is a reference or a copy is controlled by the "shareable" flag in Options. If this is true, the implementation *may* just reference the encode data (e.g. a file descriptor) rathern than making a complete copy of it. Currently, purgeable is not supported for generic inputstreams, but is enabled for byte-array, file-descriptor, and assets, though for impl reasons only file-descripts are currently enabled for "shareable", but that may change in the future.
* | More optimization of dumpsys output.Dianne Hackborn2009-04-222-7/+69
|/ | | | | | | | There are three major classes of changes here: - Avoid writing lines where their values are often empty, false, or some other typical thing. - Use partial writes to the PrintWriter to avoid creating temporary strings. - Use StringBuilder where we need to generate real String objects (and where possible cache the result).
* auto import from //branches/cupcake/...@137873The Android Open Source Project2009-03-111-4/+4
|
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-2/+13
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0384-0/+17165
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0384-17077/+0
|
* auto import from //depot/cupcake/@132589The Android Open Source Project2009-03-033-93/+5
|
* auto import from //depot/cupcake/@137055The Android Open Source Project2009-03-023-5/+93
|
* auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-133-44/+103
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-1024-392/+995
|
* auto import from //branches/cupcake/...@127436The Android Open Source Project2009-01-223-9/+36
|
* auto import from //branches/cupcake/...@125939The Android Open Source Project2009-01-0912-30/+201
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-178-88/+203
|
* Initial ContributionThe Android Open Source Project2008-10-2183-0/+16102