7b0b97a42ae4e72e1b2285524db8cfc0442e8b81 |
|
27-Feb-2018 |
Jason Monk <jmonk@google.com> |
Add APIs to look into whats in an Icon Test: cts Bug: 73943728 Change-Id: Iefbb4cecad5dd4abfcfc4d2085b0df6b62392305
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
76dc52ac36cfbe86ccc62e72fd9094bff2c42df0 |
|
04-Jan-2018 |
Robin Lee <rgl@google.com> |
Fix small but crashy edge case in Icon.scaleDown Plus a regression test which throws an Exception for the old version. It shouldn't be an issue in the real world because there's absolutely no reason any app should be creating 1920*3px icons. Found while porting the code somewhere else. Test: runtest -x ./core/tests/coretests/src/android/graphics/drawable/IconTest.java Change-Id: I1283d982507221914ddad1313e16f63af13e245a
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
d0426628f60d063836c0dce691d4698b12434724 |
|
11-Jul-2017 |
Selim Cinek <cinek@google.com> |
Reducing bitmap sizes in notifications Bitmap sizes could be arbitrary large when they were sent over to the system. We're now reducing them to reasonable sizes.s Also fixed that notification bitmaps were not put into ashmem anymore since it got lost in a refactor. Test: code inspection Bug: 62319200 Change-Id: I87db7656e749666b9eab1f67fd497f155c407e18
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
335a6e0f74841b0655b79e3277a401d273f2cb32 |
|
01-Jun-2017 |
Peter Qiu <zqiu@google.com> |
graphics: Icon: use Arrays#equals for byte array comparison Bug: 62258815 Test: build Change-Id: I95b7b7b663a8067aea40f36944003901afd8988c
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
e4179e2c4e674b32390a9133bb9fbb3ef5df651b |
|
01-Mar-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
Change MaskableBitmap to AdaptiveBitmap Test: $ make dist -j30 b/35399620 Change-Id: I96d6eaceaf7ce9dec7de21634a5fa2bd40b0deba
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
be8835e86bc39570994af32ead381875e3ee54d5 |
|
17-Feb-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
Change MaskableIconDrawable to AdaptiveIconDrawable Test: $ make -j31 dist Bug: 35399620 Change-Id: I5e54f75b3df21ffe546e0e54dbd7ea29499d1789
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
9ee90a42dcd5057eab0b0fdc106de617e0a55133 |
|
04-Feb-2017 |
Hyunyoung Song <hyunyoungs@google.com> |
Icon class should support Maskable bitmap type Test: Unit test on IconTest $ runtest --path=frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/IconTest.java b/34196580 Change-Id: I321c4b02f17ad9426c053216c4c88616a605aacf
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
0d1fd8d09163566d2c7eb72037f63b6404ada642 |
|
12-Oct-2016 |
Amith Yamasani <yamasani@google.com> |
Secure MATCH_UNINSTALLED_PACKAGES across users Introduce a new internal flag MATCH_ANY_USER for genuine uses of searching through all apps on the device. Some temporary accommodations for Launchers that reach across to the work profile until we have a new LauncherApps API to do that officially. Bug: 31000380 Test: CTS tests added Change-Id: I2e43dc49d6c2e11814a8f8d1eb07ef557f31af34
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
4abd7ecfa2fb5aee6449cfa7fb02971bab9918bb |
|
23-Mar-2016 |
Philip P. Moltmann <moltmann@google.com> |
Fix javadoc for Icon.loadDrawableAsync(Context, OnDrawableLoadedListener, Handler). Change-Id: I349008b293066c6c45b080f945f9fe197a3f2158
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
5504622fb01ab9774b5e73d05f86ee03a8b68ab7 |
|
08-Mar-2016 |
Makoto Onuki <omakoto@google.com> |
ShortcutManager: add remaining APIs. - Icons are now persisted. (under /data/system_ce, as PNGs) - the "load icon" APIs in LauncherApps are supported. - Implement updateShortcuts() - Addressed all the comments on the previous CL - @hide the newly added constructor for PersistableBundle - Enhance incoming shortcut validation - A lot of internal clean-up. Bug 27548047 Change-Id: I8e3c1ccd3e0a997a6d271c84d81170f0c022b60e
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
ea4bef7386ca6c6260f292bf006d16a99b93f698 |
|
03-Dec-2015 |
Selim Cinek <cinek@google.com> |
Removed duplicate content from group notification header Previously the headers all had duplicate content, which is now optimized to look visually more appealing. Change-Id: I38ed8db1985fd8a9470888e1b7e1e6b0f2e23b19
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
0394a0c399582d4401646cf2324f3148c3028531 |
|
04-Nov-2015 |
Riley Andrews <riandrews@google.com> |
Convert ashmem bitmap thresholds to constants. Bug 25256717 Change-Id: I23e2795ef8798d83bf60dcbd6ff2e7093fcaa9b0 Signed-off-by: Riley Andrews <riandrews@google.com>
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
8cee7c17119b204be88860feb812f2374d0de732 |
|
02-Nov-2015 |
Riley Andrews <riandrews@android.com> |
Limit persistent ashmem backed fds to a minimum of 128kB. Bug 25256717 Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8 Signed-off-by: Riley Andrews <riandrews@google.com>
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
c7fd3462a2699f73d5f2ba6d863d8be4ddd570a9 |
|
14-Jul-2015 |
Julia Reynolds <juliacr@google.com> |
Retrieve resources for apps, even if not installed for current user. Bug: 21448052 Change-Id: Id5db428a6faca4a905684088c47e070752ac2899
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
346872d5387fe66d13ea962abe031830abf40648 |
|
24-Jun-2015 |
Dan Sandler <dsandler@android.com> |
Merge "Allow an icon to carry a tint with it, wherever it goes." into mnc-dev
|
a0d58ae574a3a69145512e0cd92e7842f0fbf83d |
|
03-Jun-2015 |
Jorim Jaggi <jjaggi@google.com> |
Use ashmem backed bitmaps for passing around notifications Avoids many copies during IPC and duplicate Java heap consumption in system_server, SystemUI, etc. Bug: 18386420 Change-Id: Id5ac9406062d472f7848009d65f12131f5f4dac9
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
24f11b1871f9def5d802d107897658c4b2b66ab5 |
|
03-Jun-2015 |
Dan Sandler <dsandler@android.com> |
Allow an icon to carry a tint with it, wherever it goes. Bug: 21031774 Change-Id: I2d06c7288e0c0a06bf6ff147dfbfdea5a46fd288
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
4e78706f439d318ae7a78927d98f734351a89f64 |
|
17-Jun-2015 |
Dan Sandler <dsandler@android.com> |
Patch up certain kinds of broken notifications. 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
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
d63f9321e62064660d426efd5abbd885c4a24652 |
|
06-May-2015 |
Dan Sandler <dsandler@android.com> |
Icon support comes to Notification. And you may ask yourself: what is that beautiful icon? And you may ask yourself: where does that API go to? And you may ask yourself: is it a resource? is it a Bitmap? And you may say to yourself: my god, what have I done (This patch fixes a number of bugs in the initial implementation, but other than that, it's the same as it ever was.) Bug: 18568715 Bug: 21141842 Change-Id: I1d3f9427abd7f0bb57e533fcfac708851ff644b6
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
aee0c2ce39fe92716bb76d33d6f8cc8789467cf6 |
|
15-May-2015 |
Dan Sandler <dsandler@android.com> |
Merge "Use Context instead of Resources in Icon.createWithResource." into mnc-dev
|
220239e37110bf7d97aa92270be5a12ab0cf5e24 |
|
15-May-2015 |
Yorke Lee <yorkelee@google.com> |
Fix missing break in Icon class This causes RuntimeExceptions to fall through to the next case statement. Bug: 21168985 Change-Id: Ie69610b22c6caf9f6536ebd48673067880cb75a2
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
02cd9f91a6bd6d06d6d1237f8b978a0ab0b8ea32 |
|
14-May-2015 |
Dan Sandler <dsandler@android.com> |
Use Context instead of Resources in Icon.createWithResource. This works around situations where corrupted packages cause Resources.getResourcePackageName to return something that does't actually work. Bug: 21144636 Change-Id: I271518599a8eb89d493f1ceda6cb2e47fb38a4ff
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
09e51a739f3e408567f0eefafcc5fedb01bc3401 |
|
14-May-2015 |
Daniel Sandler <dsandler@android.com> |
Revert "Icon support comes to Notification." This reverts commit 08a04c15245c970856022d0779aa27d4d63cdee3. This also reverts commit 5bcbf857d129f4513e562801a4e88077b2655ade. Change-Id: Ia0b0a5339d523581c877822a3a1feec97ae4b73d
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
08a04c15245c970856022d0779aa27d4d63cdee3 |
|
06-May-2015 |
Dan Sandler <dsandler@android.com> |
Icon support comes to Notification. And you may ask yourself: what is that beautiful icon? And you may ask yourself: where does that API go to? And you may ask yourself: is it a resource? is it a Bitmap? And you may say to yourself: my god, what have I done Bug: 18568715 Change-Id: I4377b311c538bd1cf36b3fba22326bae81af40c9
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
cad84a2070b68093ab31b05389685fdbcd0d9f85 |
|
13-May-2015 |
Santos Cordon <santoscordon@google.com> |
[1/4] Use new Icon class in PhoneAccount. Bug: 21088522 Change-Id: Ia03171d4861f758701e89733f4082863587e8c11
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
877d696c382ecb8a97972450c8819536641a963c |
|
13-May-2015 |
Dan Sandler <dsandler@android.com> |
Icon API tuneups: - Reorder parameters to loadDrawableAsync() - New version of createWithResource that takes a package name instead of a Resources - Add loadDrawableAsUser() for INTERACT_ACROSS_USERS clients like SystemUI - Docs cleanups Bug: 21089268 Bug: 21031774 Change-Id: I465d2b865e35e12094b564f994e59d55e522f65a
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|
b9f7aac3488873677377b36c57338d758098f78e |
|
04-Mar-2015 |
Dan Sandler <dsandler@android.com> |
Icon: a clean, parcelable place for images. Binder APIs which wish to consume Bitmaps *and* drawable resources can now do so by using Icon, a kind of union type that accommodates each of these. Icon also accepts byte arrays holding compressed Bitmaps (PNG, JPEG, etc), which saves clients the additional memory cost of decoding and sending full uncompressed bitmaps through Binder interfaces. Receiving clients can call loadDrawable{,Async} and then getDrawable to start immediately using the image in an ImageView or other Drawable-hosting container. Bug: 19609468 Change-Id: Ic1343711c2ac0b15876b46f0b6008b0108a49470
/frameworks/base/graphics/java/android/graphics/drawable/Icon.java
|