33b56523998c90d5313b3f8f7a1f2eb29099e562 |
|
08-Nov-2017 |
Maurice Lam <yukl@google.com> |
Always compose GlifPatternDrawable using alpha The color filter approach is broken in P, and the alpha approach achieves the same result despite being slightly less efficient. Test: Manual Bug: 69039551 Change-Id: I1e1ee0bc89723995da69f272995b4825316a78dc
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
30fdf76d59d2aa2d28f2b1e4af6d02d6a7c847c7 |
|
28-Mar-2017 |
Maurice Lam <yukl@google.com> |
Fix floating point precision loss 766.85714f loses precision as a floating number, so remove the last decimal place. Test: Existing tests pass Change-Id: Icf85055819d63c925dc54c04a83a513adb599ea3
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
903f83af5ba54075275b455a24c4273143fcb86a |
|
07-Dec-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Remove copied annotation classes Use support-annotation instead. Test: Existing tests pass (./gradlew connectedAndroidTest) Change-Id: I9ef63db551e713f1ee26e7563da86b379d84c811
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
07e92e75c51c9ea8c029abe679f16511522f2e25 |
|
02-Dec-2016 |
Maurice Lam <yukl@google.com> |
Merge "[SuwLib] Add support annotations"
|
4482fde98ebad2700ec1f8de5397abb90402b8b8 |
|
23-Nov-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Add support annotations Add support annotations dependency, and add the annotations in where suitable. Test: Manual. "Inspect code" in Android studio no longer shows nullability errors. Existing automated tests pass Bug: 21559567 Change-Id: I47b1072c9b2a9e032318df49db6b86b6af8d206e
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
6e0e22635d5fa943f72251e534f37527d3b3468c |
|
29-Nov-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Return PixelFormat in GlifPatternDrawable.getOpacity getOpacity should return the pixel format. This change should not have any visible effects, as PixelFormat.UNKNOWN = 0. Test: Existing tests pass Change-Id: I332d7cbe7c90f9a50b8171cd8e7ed3e09a0765a2
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
515c0b156d03f7ea348303c75e37ee4c16d90557 |
|
12-Aug-2016 |
Maurice Lam <yukl@google.com> |
Share GlifPatternDrawable bitmap cache Reduce memory usage of GlifPatternDrawable by - Setting max bitmap cache scale to 1.5x (similar to VectorDrawableCompat, which caps at 2048px) - Use ALPHA_8 mask instead of ARGB8888 - Share the cache across all pattern drawables, using a SoftReference The memory allocation of a single bitmap cache, measured on Pixel C, dropped from 17MB to 2.3MB. Memory consumption was measured in Android studio. 1. Open SetupLibrarySample app in Android Studio 2. Run app 3. Open "Android Monitor" tab, and go to Monitors tab 4. Press "Trigger GC" in Studio 5. Press "Start Allocation Tracking" 6. Start a new activity in the test app 7. press "Stop Allocation Tracking" Test: ./gradlew connectedAndroidTest Bug: 30813561 Change-Id: Ic78d6f2bdfa6a18a7dd2afc73f9647e2a7ed4cf1
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
081551e44a801f439f0e0f30008303dd765c118f |
|
03-May-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] GLIF pattern update Implement GLIF pattern according to latest UX spec, which is to overlay a grayscale pattern at 20% opacity on top of the solid accent color. Bug: 28601978 Change-Id: I89f54a434d54e1cac64363588fd06736d67c51e1
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
a2f04916533b900d3661c9e8c9d98b71276fde13 |
|
24-Mar-2016 |
Maurice Lam <yukl@google.com> |
[SuwLib] Cache GlifPatternDrawable in Bitmap Avoid rendering the path every time by caching the GlifPatternDrawable on a Bitmap. Bug: 27821812 Change-Id: I8eefcf662763ec05d11b53a0a02e3f39764075ae
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|
c3eebe9f664af4b77e5948a14bf266b25dc25cc8 |
|
14-Nov-2015 |
Maurice Lam <yukl@google.com> |
[SuwLib] Implement pattern drawable background - Implement the pattern background for GLIF using a custom drawable. The drawable draws the paths manually as specified in the SVG, for backwards compatibility. - Use a FrameLayout subclass to draw the custom status bar background in the case of phone layouts, and set draw the background directly for tablet / clamshell layouts. Bug: 25650709 Change-Id: I527bb47efa143ec43c1030b57087fd2414d7045b
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/GlifPatternDrawable.java
|