Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
frameworks_base
Commits
4528186e
Commit
4528186e
authored
15 years ago
by
Christopher Tate
Browse files
Options
Download
Email Patches
Plain Diff
Refactor android.backup => android.app.backup
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
parent
931bf89d
Changes
44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
731 additions
and
728 deletions
+731
-728
Android.mk
Android.mk
+3
-3
api/current.xml
api/current.xml
+682
-682
cleanspec.mk
cleanspec.mk
+2
-0
cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
+4
-4
core/java/android/app/ActivityThread.java
core/java/android/app/ActivityThread.java
+1
-0
core/java/android/app/FullBackupAgent.java
core/java/android/app/FullBackupAgent.java
+4
-3
core/java/android/app/IBackupAgent.aidl
core/java/android/app/IBackupAgent.aidl
+3
-3
core/java/android/app/backup/AbsoluteFileBackupHelper.java
core/java/android/app/backup/AbsoluteFileBackupHelper.java
+1
-1
core/java/android/app/backup/BackupAgent.java
core/java/android/app/backup/BackupAgent.java
+4
-6
core/java/android/app/backup/BackupDataInput.java
core/java/android/app/backup/BackupDataInput.java
+2
-2
core/java/android/app/backup/BackupDataInputStream.java
core/java/android/app/backup/BackupDataInputStream.java
+1
-1
core/java/android/app/backup/BackupDataOutput.java
core/java/android/app/backup/BackupDataOutput.java
+1
-1
core/java/android/app/backup/BackupHelper.java
core/java/android/app/backup/BackupHelper.java
+2
-2
core/java/android/app/backup/BackupHelperAgent.java
core/java/android/app/backup/BackupHelperAgent.java
+1
-2
core/java/android/app/backup/BackupHelperDispatcher.java
core/java/android/app/backup/BackupHelperDispatcher.java
+1
-1
core/java/android/app/backup/BackupManager.java
core/java/android/app/backup/BackupManager.java
+9
-7
core/java/android/app/backup/FileBackupHelper.java
core/java/android/app/backup/FileBackupHelper.java
+4
-4
core/java/android/app/backup/FileBackupHelperBase.java
core/java/android/app/backup/FileBackupHelperBase.java
+2
-2
core/java/android/app/backup/IBackupManager.aidl
core/java/android/app/backup/IBackupManager.aidl
+3
-3
core/java/android/app/backup/IRestoreObserver.aidl
core/java/android/app/backup/IRestoreObserver.aidl
+1
-1
No files found.
Android.mk
View file @
4528186e
...
...
@@ -93,9 +93,9 @@ LOCAL_SRC_FILES += \
core/java/android/app/IWallpaperManager.aidl
\
core/java/android/app/IWallpaperManagerCallback.aidl
\
core/java/android/app/admin/IDevicePolicyManager.aidl
\
core/java/android/backup/IBackupManager.aidl
\
core/java/android/backup/IRestoreObserver.aidl
\
core/java/android/backup/IRestoreSession.aidl
\
core/java/android/
app/
backup/IBackupManager.aidl
\
core/java/android/
app/
backup/IRestoreObserver.aidl
\
core/java/android/
app/
backup/IRestoreSession.aidl
\
core/java/android/bluetooth/IBluetooth.aidl
\
core/java/android/bluetooth/IBluetoothA2dp.aidl
\
core/java/android/bluetooth/IBluetoothCallback.aidl
\
...
...
This diff is collapsed.
Click to expand it.
api/current.xml
View file @
4528186e
This diff is collapsed.
Click to expand it.
cleanspec.mk
View file @
4528186e
$(call
add-clean-step,
rm
-rf
$(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/com/android/internal/os/IDropBoxService.java)
$(call
add-clean-step,
rm
-rf
$(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/android/backup)
$(call
add-clean-step,
rm
-rf
$(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/framework_intermediates/src/core/java/com/android/internal/backup)
This diff is collapsed.
Click to expand it.
cmds/bmgr/src/com/android/commands/bmgr/Bmgr.java
View file @
4528186e
...
...
@@ -16,10 +16,10 @@
package
com.android.commands.bmgr
;
import
android.
backup.IBackupManager
;
import
android.backup.I
RestoreObserv
er
;
import
android.backup.IRestore
Session
;
import
android.backup.RestoreSe
t
;
import
android.
app.backup.RestoreSet
;
import
android.
app.
backup.I
BackupManag
er
;
import
android.
app.
backup.IRestore
Observer
;
import
android.
app.
backup.
I
RestoreSe
ssion
;
import
android.os.RemoteException
;
import
android.os.ServiceManager
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/app/ActivityThread.java
View file @
4528186e
...
...
@@ -16,6 +16,7 @@
package
android.app
;
import
android.app.backup.BackupAgent
;
import
android.content.BroadcastReceiver
;
import
android.content.ComponentCallbacks
;
import
android.content.ComponentName
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/app/FullBackupAgent.java
View file @
4528186e
package
android.app
;
import
android.backup.BackupDataInput
;
import
android.backup.BackupDataOutput
;
import
android.backup.FileBackupHelper
;
import
android.app.backup.BackupAgent
;
import
android.app.backup.BackupDataInput
;
import
android.app.backup.BackupDataOutput
;
import
android.app.backup.FileBackupHelper
;
import
android.os.ParcelFileDescriptor
;
import
android.util.Log
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/app/IBackupAgent.aidl
View file @
4528186e
...
...
@@ -16,13 +16,13 @@
package
android
.
app
;
import
android
.
backup
.
IBackupManager
;
import
android
.
app
.
backup
.
IBackupManager
;
import
android
.
os
.
ParcelFileDescriptor
;
/**
*
Interface
presented
by
applications
being
asked
to
participate
in
the
*
backup
&
restore
mechanism
.
End
user
code
does
not
typically
implement
*
this
interface
;
they
subclass
BackupAgent
instead
.
*
backup
&
restore
mechanism
.
End
user
code
will
not
typically
implement
*
this
interface
directly
;
they
subclass
BackupAgent
instead
.
*
*
{@
hide
}
*/
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/AbsoluteFileBackupHelper.java
→
core/java/android/
app/
backup/AbsoluteFileBackupHelper.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.content.Context
;
import
android.os.ParcelFileDescriptor
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/app/BackupAgent.java
→
core/java/android/app/
backup/
BackupAgent.java
View file @
4528186e
...
...
@@ -14,12 +14,10 @@
* limitations under the License.
*/
package
android.app
;
package
android.app
.backup
;
import
android.app.IBackupAgent
;
import
android.backup.BackupDataInput
;
import
android.backup.BackupDataOutput
;
import
android.backup.IBackupManager
;
import
android.app.backup.IBackupManager
;
import
android.content.Context
;
import
android.content.ContextWrapper
;
import
android.os.Binder
;
...
...
@@ -39,7 +37,7 @@ import java.io.IOException;
* respectively.
* <p>
* A backup agent based on convenient helper classes is available in
* {@link android.backup.BackupHelperAgent} for less complex implementation
* {@link android.
app.
backup.BackupHelperAgent} for less complex implementation
* requirements.
* <p>
* STOPSHIP write more documentation about the backup process here.
...
...
@@ -87,7 +85,7 @@ public abstract class BackupAgent extends ContextWrapper {
* The application is being restored from backup and should replace any
* existing data with the contents of the backup. The backup data is
* provided in the file descriptor pointed to by the
* {@link android.backup.BackupDataInput} instance <code>data</code>. Once
* {@link android.
app.
backup.BackupDataInput} instance <code>data</code>. Once
* the restore is finished, the application should write a representation of
* the final state to the <code>newState</code> file descriptor.
* <p>
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupDataInput.java
→
core/java/android/
app/
backup/BackupDataInput.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
java.io.FileDescriptor
;
import
java.io.IOException
;
...
...
@@ -131,7 +131,7 @@ public class BackupDataInput {
/**
* Consume the current record's data without actually reading it into a buffer
* for further processing. This allows a {@link android.app.BackupAgent} to
* for further processing. This allows a {@link android.app.
backup.
BackupAgent} to
* efficiently discard obsolete or otherwise uninteresting records during the
* restore operation.
*
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupDataInputStream.java
→
core/java/android/
app/
backup/BackupDataInputStream.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
java.io.InputStream
;
import
java.io.IOException
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupDataOutput.java
→
core/java/android/
app/
backup/BackupDataOutput.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
java.io.FileDescriptor
;
import
java.io.IOException
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupHelper.java
→
core/java/android/
app/
backup/BackupHelper.java
View file @
4528186e
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.os.ParcelFileDescriptor
;
/**
* A convenient interface to be used with the
* {@link android.backup.BackupHelperAgent} to implement backup and restore of
* {@link android.
app.
backup.BackupHelperAgent} to implement backup and restore of
* arbitrary data types.
* <p>
* STOPSHOP: document!
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupHelperAgent.java
→
core/java/android/
app/
backup/BackupHelperAgent.java
View file @
4528186e
...
...
@@ -14,9 +14,8 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.app.BackupAgent
;
import
android.os.ParcelFileDescriptor
;
import
java.io.IOException
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupHelperDispatcher.java
→
core/java/android/
app/
backup/BackupHelperDispatcher.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.os.ParcelFileDescriptor
;
import
android.util.Log
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/BackupManager.java
→
core/java/android/
app/
backup/BackupManager.java
View file @
4528186e
...
...
@@ -14,9 +14,11 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.backup.RestoreSession
;
import
android.app.backup.RestoreSession
;
import
android.app.backup.IBackupManager
;
import
android.app.backup.IRestoreSession
;
import
android.content.Context
;
import
android.os.RemoteException
;
import
android.os.ServiceManager
;
...
...
@@ -34,12 +36,12 @@ import android.util.Log;
* operation actually occurs.
* <p>
* The backup operation itself begins with the system launching the
* {@link android.app.BackupAgent} subclass declared in your manifest. See the
* documentation for {@link android.app.BackupAgent} for a detailed description
* {@link android.app.
backup.
BackupAgent} subclass declared in your manifest. See the
* documentation for {@link android.app.
backup.
BackupAgent} for a detailed description
* of how the backup then proceeds.
* <p>
* A simple implementation of a BackupAgent useful for backing up Preferences
* and files is available by using {@link android.backup.BackupHelperAgent}.
* and files is available by using {@link android.
app.
backup.BackupHelperAgent}.
* <p>
* STOPSHIP: more documentation!
* <p>
...
...
@@ -82,7 +84,7 @@ public class BackupManager {
/**
* Notifies the Android backup system that your application wishes to back up
* new changes to its data. A backup operation using your application's
* {@link android.app.BackupAgent} subclass will be scheduled when you call this method.
* {@link android.app.
backup.
BackupAgent} subclass will be scheduled when you call this method.
*/
public
void
dataChanged
()
{
checkServiceBinder
();
...
...
@@ -116,7 +118,7 @@ public class BackupManager {
/**
* Begin the process of restoring data from backup. See the
* {@link android.backup.RestoreSession} class for documentation on that process.
* {@link android.
app.
backup.RestoreSession} class for documentation on that process.
*/
public
RestoreSession
beginRestoreSession
()
{
RestoreSession
session
=
null
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/FileBackupHelper.java
→
core/java/android/
app/
backup/FileBackupHelper.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.content.Context
;
import
android.os.ParcelFileDescriptor
;
...
...
@@ -24,7 +24,7 @@ import java.io.File;
/**
* A helper class which can be used in conjunction with
* {@link android.backup.BackupHelperAgent} to manage the backup of a set of
* {@link android.
app.
backup.BackupHelperAgent} to manage the backup of a set of
* files. Whenever backup is performed, all files changed since the last backup
* will be saved in their entirety. During the first time the backup happens,
* all the files in the list will be backed up. Note that this should only be
...
...
@@ -69,9 +69,9 @@ public class FileBackupHelper extends FileBackupHelperBase implements BackupHelp
* now. When <code>oldState</code> is <code>null</code>, all the files will
* be backed up.
* <p>
* This should be called from {@link android.backup.BackupHelperAgent}
* This should be called from {@link android.
app.
backup.BackupHelperAgent}
* directly. See
* {@link android.app.BackupAgent#onBackup(ParcelFileDescriptor, BackupDataOutput, ParcelFileDescriptor)}
* {@link android.app.
backup.
BackupAgent#onBackup(ParcelFileDescriptor, BackupDataOutput, ParcelFileDescriptor)}
* for a description of parameter meanings.
*/
public
void
performBackup
(
ParcelFileDescriptor
oldState
,
BackupDataOutput
data
,
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/FileBackupHelperBase.java
→
core/java/android/
app/
backup/FileBackupHelperBase.java
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package
android.backup
;
package
android.
app.
backup
;
import
android.content.Context
;
import
android.os.ParcelFileDescriptor
;
...
...
@@ -24,7 +24,7 @@ import java.io.File;
import
java.io.FileDescriptor
;
/**
* Base class for the {@link android.backup.FileBackupHelper} implementation.
* Base class for the {@link android.
app.
backup.FileBackupHelper} implementation.
*/
class
FileBackupHelperBase
{
private
static
final
String
TAG
=
"FileBackupHelperBase"
;
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/IBackupManager.aidl
→
core/java/android/
app/
backup/IBackupManager.aidl
View file @
4528186e
...
...
@@ -14,16 +14,16 @@
*
limitations
under
the
License
.
*/
package
android
.
backup
;
package
android
.
app
.
backup
;
import
android
.
backup
.
IRestoreSession
;
import
android
.
app
.
backup
.
IRestoreSession
;
/**
*
Direct
interface
to
the
Backup
Manager
Service
that
applications
invoke
on
.
The
only
*
operation
currently
needed
is
a
simple
notification
that
the
app
has
made
changes
to
*
data
it
wishes
to
back
up
,
so
the
system
should
run
a
backup
pass
.
*
*
Apps
will
use
the
{@
link
android
.
backup
.
BackupManager
}
class
rather
than
going
through
*
Apps
will
use
the
{@
link
android
.
app
.
backup
.
BackupManager
}
class
rather
than
going
through
*
this
Binder
interface
directly
.
*
*
{@
hide
}
...
...
This diff is collapsed.
Click to expand it.
core/java/android/backup/IRestoreObserver.aidl
→
core/java/android/
app/
backup/IRestoreObserver.aidl
View file @
4528186e
...
...
@@ -14,7 +14,7 @@
*
limitations
under
the
License
.
*/
package
android
.
backup
;
package
android
.
app
.
backup
;
/**
*
Callback
class
for
receiving
progress
reports
during
a
restore
operation
.
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment