From 037ab3063821e476dc9e63627a9c9b6e540e2262 Mon Sep 17 00:00:00 2001 From: Pierre Barbier de Reuille Date: Fri, 12 Feb 2021 10:42:57 +0000 Subject: [PATCH] Define system resources for widget's system parameters See go/widget-parameters for details. Bug: 180086181 Test: atest CtsAppWidgetSources:android.appwidget.cts.AppWidgetDimensionsTest Change-Id: Id0e754e1bdcc41a6f7ae6c79d8500d2ef543cb3f --- core/api/current.txt | 3 +++ core/res/res/values/dimens.xml | 8 ++++++++ core/res/res/values/public.xml | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/core/api/current.txt b/core/api/current.txt index ac88e5bd1dc0d..c3cde33e0427d 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -1740,6 +1740,9 @@ package android { field public static final int dialog_min_width_minor = 17104900; // 0x1050004 field public static final int notification_large_icon_height = 17104902; // 0x1050006 field public static final int notification_large_icon_width = 17104901; // 0x1050005 + field public static final int system_app_widget_background_radius = 17104904; // 0x1050008 + field public static final int system_app_widget_inner_radius = 17104905; // 0x1050009 + field public static final int system_app_widget_internal_padding = 17104906; // 0x105000a field public static final int thumbnail_height = 17104897; // 0x1050001 field public static final int thumbnail_width = 17104898; // 0x1050002 } diff --git a/core/res/res/values/dimens.xml b/core/res/res/values/dimens.xml index debdab0b37bae..706641985e208 100644 --- a/core/res/res/values/dimens.xml +++ b/core/res/res/values/dimens.xml @@ -926,4 +926,12 @@ 140dp 280dp + + + 16dp + + 8dp + + 16dp + diff --git a/core/res/res/values/public.xml b/core/res/res/values/public.xml index 068987ec8afe8..fe419929d5ffd 100644 --- a/core/res/res/values/public.xml +++ b/core/res/res/values/public.xml @@ -3105,6 +3105,11 @@ + + + + +