FileDocCategorySizeDatePackage
AppWidgetBackupBridge.javaAPI DocAndroid 5.1 API2055Thu Mar 12 22:22:10 GMT 2015com.android.server

AppWidgetBackupBridge

public class AppWidgetBackupBridge extends Object
Runtime bridge between the Backup Manager Service and the App Widget Service, since those two modules are intentionally decoupled for modularity.
hide

Fields Summary
private static WidgetBackupProvider
sAppWidgetService
Constructors Summary
Methods Summary
public static java.util.ListgetWidgetParticipants(int userId)

        return (sAppWidgetService != null)
                ? sAppWidgetService.getWidgetParticipants(userId)
                : null;
    
public static byte[]getWidgetState(java.lang.String packageName, int userId)

        return (sAppWidgetService != null)
                ? sAppWidgetService.getWidgetState(packageName, userId)
                : null;
    
public static voidregister(WidgetBackupProvider instance)

        sAppWidgetService = instance;
    
public static voidrestoreFinished(int userId)

        if (sAppWidgetService != null) {
            sAppWidgetService.restoreFinished(userId);
        }
    
public static voidrestoreStarting(int userId)

        if (sAppWidgetService != null) {
            sAppWidgetService.restoreStarting(userId);
        }
    
public static voidrestoreWidgetState(java.lang.String packageName, byte[] restoredState, int userId)

        if (sAppWidgetService != null) {
            sAppWidgetService.restoreWidgetState(packageName, restoredState, userId);
        }