From 55c5769a1918f456388c4fd1df36d140f6db3f43 Mon Sep 17 00:00:00 2001 From: Alexander Martinz Date: Thu, 3 Apr 2025 20:28:44 +0200 Subject: [PATCH] sdk: unhide palette utilities It does not make sense to hide away such lovely code. Let it be used by others, given that it lives within the sdk. Change-Id: Iab4605e77fd3425049df68ebbeaa3bd247874795 Signed-off-by: Alexander Martinz --- sdk/src/java/lineageos/util/palette/ColorCutQuantizer.java | 2 -- sdk/src/java/lineageos/util/palette/ColorUtils.java | 2 -- sdk/src/java/lineageos/util/palette/DefaultGenerator.java | 3 --- sdk/src/java/lineageos/util/palette/Palette.java | 2 -- 4 files changed, 9 deletions(-) diff --git a/sdk/src/java/lineageos/util/palette/ColorCutQuantizer.java b/sdk/src/java/lineageos/util/palette/ColorCutQuantizer.java index bb0c5e70..35f9a725 100644 --- a/sdk/src/java/lineageos/util/palette/ColorCutQuantizer.java +++ b/sdk/src/java/lineageos/util/palette/ColorCutQuantizer.java @@ -29,8 +29,6 @@ import java.util.PriorityQueue; * have roughly the same population, where this quantizer divides boxes based on their color volume. * This means that the color space is divided into distinct colors, rather than representative * colors. - * - * @hide */ final class ColorCutQuantizer { diff --git a/sdk/src/java/lineageos/util/palette/ColorUtils.java b/sdk/src/java/lineageos/util/palette/ColorUtils.java index 76c1ee27..76a5bd8b 100644 --- a/sdk/src/java/lineageos/util/palette/ColorUtils.java +++ b/sdk/src/java/lineageos/util/palette/ColorUtils.java @@ -9,8 +9,6 @@ import android.graphics.Color; /** * A set of color-related utility methods, building upon those available in {@code Color}. - * - * @hide */ public class ColorUtils { diff --git a/sdk/src/java/lineageos/util/palette/DefaultGenerator.java b/sdk/src/java/lineageos/util/palette/DefaultGenerator.java index 945ddd1b..98811e7f 100644 --- a/sdk/src/java/lineageos/util/palette/DefaultGenerator.java +++ b/sdk/src/java/lineageos/util/palette/DefaultGenerator.java @@ -9,9 +9,6 @@ import lineageos.util.palette.Palette.Swatch; import java.util.List; -/** - * @hide - */ class DefaultGenerator extends Palette.Generator { private static final float TARGET_DARK_LUMA = 0.26f; diff --git a/sdk/src/java/lineageos/util/palette/Palette.java b/sdk/src/java/lineageos/util/palette/Palette.java index 7b0ec037..2768e23e 100644 --- a/sdk/src/java/lineageos/util/palette/Palette.java +++ b/sdk/src/java/lineageos/util/palette/Palette.java @@ -50,8 +50,6 @@ import java.util.List; * } * }); * - * - * @hide */ public final class Palette {