Add AppWidgetManager#getInstalledProvidersForPackage()
This allows more fine-grained control than getting all installed providers for a user, when you might only want to check for a particular package. For instance, Launcher can use this API to surface widgets per app without having to ask for all the widgets. Test: Unit test on AppWidgetServiceImplTest $ runtest --path=services/tests/servicestests/src/com/android/server/appwidget/AppWidgetServiceImplTest.java Bug: 34940468 Change-Id: I182bf1c012d31182024422fc4a63f57f151c3ee5
This commit is contained in:
@ -7022,6 +7022,7 @@ package android.appwidget {
|
||||
method public android.appwidget.AppWidgetProviderInfo getAppWidgetInfo(int);
|
||||
method public android.os.Bundle getAppWidgetOptions(int);
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProviders();
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProvidersForPackage(java.lang.String, android.os.UserHandle);
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProvidersForProfile(android.os.UserHandle);
|
||||
method public static android.appwidget.AppWidgetManager getInstance(android.content.Context);
|
||||
method public boolean isRequestPinAppWidgetSupported();
|
||||
|
@ -7479,6 +7479,7 @@ package android.appwidget {
|
||||
method public android.appwidget.AppWidgetProviderInfo getAppWidgetInfo(int);
|
||||
method public android.os.Bundle getAppWidgetOptions(int);
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProviders();
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProvidersForPackage(java.lang.String, android.os.UserHandle);
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProvidersForProfile(android.os.UserHandle);
|
||||
method public static android.appwidget.AppWidgetManager getInstance(android.content.Context);
|
||||
method public boolean isRequestPinAppWidgetSupported();
|
||||
|
@ -7052,6 +7052,7 @@ package android.appwidget {
|
||||
method public android.appwidget.AppWidgetProviderInfo getAppWidgetInfo(int);
|
||||
method public android.os.Bundle getAppWidgetOptions(int);
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProviders();
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProvidersForPackage(java.lang.String, android.os.UserHandle);
|
||||
method public java.util.List<android.appwidget.AppWidgetProviderInfo> getInstalledProvidersForProfile(android.os.UserHandle);
|
||||
method public static android.appwidget.AppWidgetManager getInstance(android.content.Context);
|
||||
method public boolean isRequestPinAppWidgetSupported();
|
||||
|
Reference in New Issue
Block a user