summaryrefslogtreecommitdiffstats
path: root/graphics
Commit message (Collapse)AuthorAgeFilesLines
* Retrieve resources for apps, even if not installed for current user.Julia Reynolds2015-07-141-1/+8
| | | | | Bug: 21448052 Change-Id: Id5db428a6faca4a905684088c47e070752ac2899
* Teach ImageView to recycle internal drawablesJohn Reck2015-07-091-1/+2
| | | | | | | | | | | Bug: 22289362 It's pretty common for ImageView#setBitmap to be called repeatedly. Avoid re-creating the BitmapDrawable in this scenario as that has high object churn of semi-expensive objects like Paint. Change-Id: Ib77719cd0366d02c1a42f774850bf3b9caa9c288
* Merge "Resize the VectorDrawable according to the virtual Dpi" into mnc-devztenghui2015-06-242-12/+76
|\
| * Resize the VectorDrawable according to the virtual Dpiztenghui2015-06-242-12/+76
| | | | | | | | | | | | b/21928507 Change-Id: I9e596192a0fdf13fc91481f990a345c3b267f225
* | Update local state when creating LayerDrawable from constant stateAlan Viverette2015-06-245-20/+28
| | | | | | | | | | | | | | | | | | | | | | Also clears DrawableContainer's futures list when it's no longer needed, correctly sets deep copy of state set in StateListDrawable, makes some private methods into package-protected to avoid thunk, and propagates state to StateListDrawable's super class so that getState() has correct information. Bug: 21840003 Change-Id: I0d4232807f280d663c03b4a80e4aab8626806440
* | Merge "Allow an icon to carry a tint with it, wherever it goes." into mnc-devDan Sandler2015-06-242-4/+107
|\ \
| * | Allow an icon to carry a tint with it, wherever it goes.Dan Sandler2015-06-232-4/+107
| | | | | | | | | | | | | | | Bug: 21031774 Change-Id: I2d06c7288e0c0a06bf6ff147dfbfdea5a46fd288
* | | Merge "Use ashmem backed bitmaps for passing around notifications" into mnc-devDaniel Sandler2015-06-241-1/+15
|\ \ \
| * | | Use ashmem backed bitmaps for passing around notificationsJorim Jaggi2015-06-231-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoids many copies during IPC and duplicate Java heap consumption in system_server, SystemUI, etc. Bug: 18386420 Change-Id: Id5ac9406062d472f7848009d65f12131f5f4dac9
* | | | Remove isDither(), deprecate setDither()Alan Viverette2015-06-237-49/+4
|/ / / | | | | | | | | | | | | Bug: 22013358 Change-Id: I37b11a94edc431a88522c6c056b76b045daa61d6
* | | Merge "Clean up drawable filter/dither docs" into mnc-devChris Craik2015-06-231-7/+16
|\ \ \
| * | | Clean up drawable filter/dither docsChris Craik2015-06-191-7/+16
| |/ / | | | | | | | | | | | | | | | bug:21342040 Change-Id: I6592bfa504516852967d82a7e7929b1aef6bff02
* | | Merge "Enable Picture w/ HW Accelerated Canvas." into mnc-devDerek Sollenberger2015-06-221-4/+4
|\ \ \ | |/ / |/| |
| * | Enable Picture w/ HW Accelerated Canvas.Derek Sollenberger2015-06-221-4/+4
| | | | | | | | | | | | | | | Bug: 20688645 Change-Id: I664f37d6dbb3e61b17206c82ebcc63f988cefc65
* | | Invalidate the cached ripple drawable mask if mask layer changesAlan Viverette2015-06-191-0/+1
| | | | | | | | | | | | | | | Bug: 21955350 Change-Id: I2e610a5a0af39668b7e9447cfd7d48d35e11d299
* | | Fix a typo in Drawable's javadocDoris Liu2015-06-181-1/+1
| | | | | | | | | | | | Change-Id: Ic168b250defb30512cb35a836118fe2bdf1b2e78
* | | Merge "Patch up certain kinds of broken notifications." into mnc-devDan Sandler2015-06-181-9/+21
|\ \ \ | |_|/ |/| |
| * | Patch up certain kinds of broken notifications.Dan Sandler2015-06-181-9/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notifications in which the icon resource ID is changed after Builder.build() is called (even, and particularly, as the last step in the current implementation of setLatestEventInfo()) were not having their icons properly parceled. In these cases we now attempt to catch this at parcel time and construct the necessary Icon object. But wait! Parceling does not require a Context. So we don't actually know which package to load the resource from. Therefore we now allow an Icon to be constructed with an empty ("") package name, which allows us to complete this parceling task despite the fact that a Notification does not know its own package name. (In case you attempt to load a drawable for such an Icon, loadDrawable will spot the "" package and instead substitute the Context from its parameters to try to load the resource.) As it happens, even though the Notification does not know its own package name, BaseStatusBar does, because it was provided at NM.notify() time and is therefore included in the StatusBarNotification structure. So we can actually patch up the Icon (if it is TYPE_RESOURCE) and be sure to get the icon loaded out of the correct package. While we've got the hood open, this change fixes a couple of related problems: • Foreground service notifications synthetically constructed for naughty icon==0 notifications (which we are still allowing...FOR NOW) were losing the FLAG_FOREGROUND_SERVICE flag (because we're re-build()-ing them from scratch rather than rewriting the provided Notification object). Now we set the flag and hang onto the new notification for next time setForeground() is called. • We now allow media notifications to avoid getting bumped to the top of the notification list if they're PRIORITY_MIN. You might want to do that, I guess? Bug: 21333763 Change-Id: Ia5d1f1acb594c7677bcc75ee3d624da4ffca671f
* | | Merge "Resolve start/end insets in LayerDrawable.getIntrinsicWidth()" into ↵Alan Viverette2015-06-171-1/+16
|\ \ \ | | | | | | | | | | | | mnc-dev
| * | | Resolve start/end insets in LayerDrawable.getIntrinsicWidth()Alan Viverette2015-06-171-1/+16
| |/ / | | | | | | | | | | | | Bug: 21849185 Change-Id: If9b392d863e808d83a5d90bcc32df6cb9194cbdf
* | | Refactor Drawable.getDither() to isDither()Alan Viverette2015-06-177-9/+9
|/ / | | | | | | | | Bug: 21342040 Change-Id: I801970c2a25289d670636ad5387ddf244fb48225
* | Ensure first load for bitmap and nine-patch gets correct densityAlan Viverette2015-06-163-9/+12
| | | | | | | | | | | | | | | | Remove unnecessary lines setting target density on bitmap and nine patch, since we'll do this later in inflate(). Bug: 21774853 Change-Id: I5ea316bee81f82192ce20f2f1bee0e62c6ec8ccb
* | Merge "Add isFilterBitmap() overrides where appropriate" into mnc-devChet Haase2015-06-152-0/+13
|\ \ | |/ |/|
| * Add isFilterBitmap() overrides where appropriateChet Haase2015-06-152-0/+13
| | | | | | | | | | | | Issue #21825791 add isFilterBitmap() override to appropriate Drawable subclasses Change-Id: I5cbd72c034be79b0aa53815c7a5a8ea499e6e02d
* | Clarify Drawable.getOpacity() docsChet Haase2015-06-121-0/+8
|/ | | | | | | | | | | Docs for translucent-vs-transparent-vs-opaque were confusing, especially since the definition for those constants in PixelFormat are not the same as how they're actually used in Drawable. This fix simply adds clarifying text to the method comment for getOpacity(). Issue #21158891 Better document Drawable#getOpacity Change-Id: I94725592f85e5d7874e3a3ac1c5bab969163fbf0
* Merge "Improve boundary check for for Paint#DrawTextRun." into mnc-devKeisuke Kuroyanagi2015-06-111-8/+10
|\
| * Improve boundary check for for Paint#DrawTextRun.Keisuke Kuroyanagi2015-06-111-8/+10
| | | | | | | | Change-Id: I01027ebb9133240cc1c750824a41dd9fca484c1f
* | Merge "Workaround shader crash" into mnc-devChris Craik2015-06-111-1/+3
|\ \ | |/ |/|
| * Workaround shader crashChris Craik2015-06-101-1/+3
| | | | | | | | | | | | bug:21706035 Change-Id: Ia1cd4824c742b2d6fc0feb2861ccfde0b6ac2189
* | Account for hotspot bounds in RippleDrawable projection checkAlan Viverette2015-06-081-7/+19
|/ | | | | Bug: 21502154 Change-Id: Iedf4bd07f10ec13070a68870304ab651c1f15c68
* Merge "Implement getColorFilter() on VectorDrawable" into mnc-devAlan Viverette2015-06-061-0/+5
|\
| * Implement getColorFilter() on VectorDrawableAlan Viverette2015-06-051-0/+5
| | | | | | | | | | Bug: 21580708 Change-Id: Id64bebeb5c39906ed34775e8ccc39f666966bad9
* | Add reset to AVDztenghui2015-06-051-0/+9
|/ | | | | | b/21664621 Change-Id: Ie40c3723860e183c8e4fedd2a76b9debbdf64a2a
* Merge "Setup the animation callback for AnimatedVectorDrawable" into mnc-devztenghui2015-06-052-33/+141
|\
| * Setup the animation callback for AnimatedVectorDrawableztenghui2015-06-042-33/+141
| | | | | | | | | | | | b/21341096 Change-Id: I84e20366db21ceaa4f044be3e322f9215bb06ad2
* | Manually jump ripples when preemptively aborting RT animationAlan Viverette2015-06-041-0/+4
|/ | | | | Bug: 21079749 Change-Id: If79dcef59aba616c0446efc623863f563cb16250
* ImageFormat: Update definition of depth formats for confidence.Eino-Ville Talvala2015-06-031-9/+41
| | | | | | | | | | | DEPTH16: Use high 3 bits for confidence measurement, with 0 = 100% confidence, 1 = 0% confidence, 2 = 1/7 (14.3%) confidence, etc. DEPTH_POINT_CLOUD: Add confidence as 4th entry to each point, with a value in range 0.f - 1.f inclusive. Bug: 20123879 Change-Id: I23317b922ac727751156fa418ed239a696a898e5
* Merge "Reduce amount of unnecessary RippleDrawable mask redraw" into mnc-devAlan Viverette2015-05-302-7/+14
|\
| * Reduce amount of unnecessary RippleDrawable mask redrawAlan Viverette2015-05-292-7/+14
| | | | | | | | | | Bug: 19638504 Change-Id: Ie7b639c543150e13aec30dfeca2b303d5b601cf3
* | Merge "Replace PNG-based seekbar thumb animation with AVD" into mnc-devAlan Viverette2015-05-293-0/+45
|\ \
| * | Replace PNG-based seekbar thumb animation with AVDAlan Viverette2015-05-293-0/+45
| |/ | | | | | | | | | | | | Adds optical inset support for VectorDrawable and GradientDrawable. Bug: 19944181 Change-Id: I9df04d9fe17ad858413e7f93694bf37ee2c43c85
* | Merge "Postpone AnimatedVectorDrawable animator inflation until ↵Alan Viverette2015-05-281-65/+208
|\ \ | | | | | | | | | applyTheme()" into mnc-dev
| * | Postpone AnimatedVectorDrawable animator inflation until applyTheme()Alan Viverette2015-05-181-65/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL works around Animator's lack of support for applying a theme after inflation by postponing Animator inflation until a theme is available, either in inflate() or applyTheme(). Includes a workaround for AVDs that don't reference any theme attrs in their animators and this don't require a call to applyTheme(). Partial implementation of removing non-constant data from the AVD's constant state. Moves the mutable AnimatorSet to a local variable and treats the Animators as constant data. We'll follow up with real support for applyTheme() in Animator or AnimatorSet, at which point we can remove this workaround. Bug: 20817800 Change-Id: I555c53c955219990ee376bee568bcc038532f9ed
* | | Fix drawable CTS breakagesAlan Viverette2015-05-282-8/+22
| |/ |/| | | | | | | | | | | | | | | | | | | 1. ClipDrawable.getOpacity() now correctly respects the current level 2. DrawableWrapper checks the contained drawable's changing config even if it doesn't have a constant state 3. DrawableWrapper gives priority to the last valid child drawable rather than the drawable attribute Bug: 21406104 Change-Id: I442fe90d0a3865bfdc6b2d14a7358178310dde02
* | API Review: DrawableAlan Viverette2015-05-275-8/+10
| | | | | | | | | | | | | | Renames boolean getters to isZzz(), callback from onChange to onChanged. Bug: 21342040 Change-Id: I9700d645453354b608fd97a832359211d828b52f
* | Merge "Fix Bitmap#sameAs NPE" into mnc-devJohn Reck2015-05-201-2/+3
|\ \ | |/ |/|
| * Fix Bitmap#sameAs NPEJohn Reck2015-05-191-2/+3
| | | | | | | | | | | | Bug: 21281842 Change-Id: I4a1e33d7e642fa50e8789f1441e8587d1c15119c
* | Merge "Revert "Postpone AnimatedVectorDrawable animator inflation until ↵Alan Viverette2015-05-191-106/+13
|\ \ | | | | | | | | | applyTheme()"" into mnc-dev
| * | Revert "Postpone AnimatedVectorDrawable animator inflation until applyTheme()"Alan Viverette2015-05-191-106/+13
| | | | | | | | | | | | | | | | | | This reverts commit 9b115a9870a184e32bdbd07f792f9b8c956c75ca. Change-Id: Ief148510472e129f992cf52ef8b8a25b5e17e05f
* | | Merge "Update ripple drawable target radius on bounds change" into mnc-devAlan Viverette2015-05-182-4/+22
|\ \ \