1adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate/*
2adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * Copyright (C) 2014 The Android Open Source Project
3adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate *
4adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * Licensed under the Apache License, Version 2.0 (the "License");
5adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * you may not use this file except in compliance with the License.
6adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * You may obtain a copy of the License at
7adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate *
8adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate *      http://www.apache.org/licenses/LICENSE-2.0
9adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate *
10adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * Unless required by applicable law or agreed to in writing, software
11adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * distributed under the License is distributed on an "AS IS" BASIS,
12adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * See the License for the specific language governing permissions and
14adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * limitations under the License.
15adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate */
16adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate
17adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tatepackage com.android.server;
18adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate
19adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tateimport java.util.List;
20adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate
21adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate/**
22adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * Shim to allow core/backup to communicate with the app widget service
23adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * about various important events without needing to be able to see the
24adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * implementation of the service.
25adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate *
26adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate * @hide
27adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate */
28adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tatepublic interface WidgetBackupProvider {
29adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate    public List<String> getWidgetParticipants(int userId);
30adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate    public byte[] getWidgetState(String packageName, int userId);
31adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate    public void restoreStarting(int userId);
32adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate    public void restoreWidgetState(String packageName, byte[] restoredState, int userId);
33adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate    public void restoreFinished(int userId);
34adfe8b86e9178a553b6db9722340fa4ff5201cf1Christopher Tate}
35