Adding API AppWidgetHost.getAppWidgetIds() to get active widgets of the host

Bug: 37435178
Test: Added CTS
Change-Id: I621247e0887b3931bfb92431d94f97507a303e5c
This commit is contained in:
Sunny Goyal
2017-04-18 12:48:06 -07:00
parent 5838563e93
commit edfdb67ee9
4 changed files with 3 additions and 2 deletions

View File

@@ -7064,6 +7064,7 @@ package android.appwidget {
method public static void deleteAllHosts();
method public void deleteAppWidgetId(int);
method public void deleteHost();
method public int[] getAppWidgetIds();
method protected android.appwidget.AppWidgetHostView onCreateView(android.content.Context, int, android.appwidget.AppWidgetProviderInfo);
method protected void onProviderChanged(int, android.appwidget.AppWidgetProviderInfo);
method protected void onProvidersChanged();

View File

@@ -7528,6 +7528,7 @@ package android.appwidget {
method public static void deleteAllHosts();
method public void deleteAppWidgetId(int);
method public void deleteHost();
method public int[] getAppWidgetIds();
method protected android.appwidget.AppWidgetHostView onCreateView(android.content.Context, int, android.appwidget.AppWidgetProviderInfo);
method protected void onProviderChanged(int, android.appwidget.AppWidgetProviderInfo);
method protected void onProvidersChanged();

View File

@@ -7095,6 +7095,7 @@ package android.appwidget {
method public static void deleteAllHosts();
method public void deleteAppWidgetId(int);
method public void deleteHost();
method public int[] getAppWidgetIds();
method protected android.appwidget.AppWidgetHostView onCreateView(android.content.Context, int, android.appwidget.AppWidgetProviderInfo);
method protected void onProviderChanged(int, android.appwidget.AppWidgetProviderInfo);
method protected void onProvidersChanged();

View File

@@ -276,8 +276,6 @@ public class AppWidgetHost {
/**
* Gets a list of all the appWidgetIds that are bound to the current host
*
* @hide
*/
public int[] getAppWidgetIds() {
try {