diff options
| author | Svet Ganov <svetoslavganov@google.com> | 2014-08-21 02:00:11 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-21 00:22:45 +0000 |
| commit | 635bc8bc84fe5da6d667c280bea6d96c46ffa3fd (patch) | |
| tree | 5c8f7e4c59ce09f173912184413d1d9fc6d7882a /core/java | |
| parent | 49cbfcc10c311d1b9f1b316512632ec4d88f068d (diff) | |
| parent | 6bd702538d90005add1cfc33746da19404090dc1 (diff) | |
Merge "Notify app widget hosts when cross-profile providers change." into lmp-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/admin/DevicePolicyManagerInternal.java | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManagerInternal.java b/core/java/android/app/admin/DevicePolicyManagerInternal.java index edd8199384ff..a1f1d920ba7c 100644 --- a/core/java/android/app/admin/DevicePolicyManagerInternal.java +++ b/core/java/android/app/admin/DevicePolicyManagerInternal.java @@ -26,6 +26,22 @@ import java.util.List; public abstract class DevicePolicyManagerInternal { /** + * Listener for changes in the white-listed packages to show cross-profile + * widgets. + */ + public interface OnCrossProfileWidgetProvidersChangeListener { + + /** + * Called when the white-listed packages to show cross-profile widgets + * have changed for a given user. + * + * @param profileId The profile for which the white-listed packages changed. + * @param packages The white-listed packages. + */ + public void onCrossProfileWidgetProvidersChanged(int profileId, List<String> packages); + } + + /** * Gets the packages whose widget providers are white-listed to be * available in the parent user. * @@ -35,4 +51,13 @@ public abstract class DevicePolicyManagerInternal { * profile. */ public abstract List<String> getCrossProfileWidgetProviders(int profileId); + + /** + * Adds a listener for changes in the white-listed packages to show + * cross-profile app widgets. + * + * @param listener The listener to add. + */ + public abstract void addOnCrossProfileWidgetProvidersChangeListener( + OnCrossProfileWidgetProvidersChangeListener listener); } |
