History log of /frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fe4ae0c5b1bc3b31adc4cc2c5a0197e29e97b6bc 25-Jan-2018 Michal Karpinski <mkarpinski@google.com> Rename RefactoredBackupManagerService to BackupManagerService

The interface will be removed in a subsequent CL, it will be
easier to deal with merge conflicts.

Test: 1) m -j RunFrameworksServicesRoboTests
2) runtest -p com.android.server.backup frameworks-services
Bug: 65823538
Change-Id: I37c4c6758c646e1b18889ed05aa1b1d7c6129cf0
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
516ac95746bd1091732e4bc407e2941debdc38d9 04-Jan-2018 Bernardo Rufino <brufino@google.com> Remove transport dir name from TransportClient

To be able to re-use the TransportClient infra for transport
registration, I need to remove transport dir name property from
TransportClient because it's not available before registration
itself. As a result callsites that used getTransportDirName()
from TransportClient will have to go through the
TransportManager for that. Bryan suggested that the
TransportClient wasn't the best place for the property before.

Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: m -j RunFrameworksServicesTests
Change-Id: I3fa335faf97d63adfad1a929336073a70fc8bc02
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
79155590e67a30f520677d9d22e215365d595a73 21-Dec-2017 Bernardo Rufino <brufino@google.com> Binding on-demand #7: PerformInitializeTask usage

Migrate transport initialization task to binding on-demand. Added
Robolectric tests for the task as well.

Bug: 17140907
Test: m -j RunFrameworksServicesRoboTest
Test: adb shell bmgr init <transport>, observed logs & transport dir
Change-Id: I2d6c1acd31741169080edef2f938fabf43b0649a
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
7f14edea1d84bde1824529178c609fa5961051d2 08-Dec-2017 Bernardo Rufino <brufino@google.com> Binding on-demand #6: Transport attributes usage

Migrate the attribute queries from the Transport to the
TransportManager. Migrate all calls except currentDestinationString
because that's the one that changes and we should only migrate
after we have GMSCore that implements the push-from-transport
model.

Looking at method recordInitPendingLocked(), we only sent
MSG_RETRY_INIT if the transport threw while calling transportDirName
or the binder was null. With binding on-demand both of these cases
can't happen - i.e. we can't fail anymore. So, I removed the
message entirely.

Change-Id: I45a305704274c8b0c88637e3ccafc658639b2dfa
Ref: http://go/br-binding-on-demand
Bug: 17140907
Test: m -j RunFrameworksServicesRoboTests
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupTestCases
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsBackupTestCases
Test: runtest -p com.android.server.backup frameworks-services
Test: adb shell bmgr backupnow <packages>
Test: adb shell bmgr fullbackup <packages>
Test: adb shell cmd jobscheduler run -f android <job_id>
Test: adb shell bmgr enable false (being enabled before)
Test: adb shell dumpsys backup
Test: adb shell bmgr init <transport>
Test: Observed logs and used debugger to check proper code was being
Test: called in above commands
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
387267eafebaed8abe031efcb6d6379292503d48 18-Oct-2017 Michal Karpinski <mkarpinski@google.com> Don't overly call transport.transportDirName()

Test: runtest -p com.android.server.backup frameworks-services
Bug: 63401141
Change-Id: I485bd98f805fd6be689765e77a582820c53e9bc0
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
924afe2b0f721afa857a55c33da559f6efc41d32 16-Jun-2017 Christopher Tate <ctate@google.com> Add 'bmgr' command to synchronously init transports

bmgr init TRANSPORT [...]

will run an init operation on each named transport, blocking
until the operations have all completed.

Bug 62253989
Test: manual

Change-Id: I7dbd94293738d5ecf195764f5b28905253819791
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
dbe68324801cfd45d0d1116c9da983b8ebe651ae 09-May-2017 Artem Iglikov <artikz@google.com> Use static imports for constants.

This is an automated change with some manual formatting.

Bug: 36850431
Test: mmma frameworks/base
Change-Id: I126747e57ae1b666e5281b25d063d22d774b0718
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
0b54d6d92990b8b3193ff5891b4de820ed2f2130 27-Apr-2017 Artem Iglikov <artikz@google.com> Another round of code deduplication.

Moved more common classes and methods to utilities (automated).
Prepared for deduplication of restoreOneFile() method.

Bug: 37519282
Test: gts
Change-Id: Ibc3de8f7c6675f64c636aafe51a885cfbd162e3a
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
d6c00c711000aa70db51f46b48a86c2884e91b15 24-Apr-2017 Artem Iglikov <artikz@google.com> Encapsulate RefactoredBackupManagerService fields.

This encapsulates back the fields which were decapsulated when splitting
out internal classes.

Bug: 37520921
Test: adb shell settings put global backup_refactored_service_disabled 0
&& adb reboot && adb shell bmgr backupnow --all
Change-Id: I9caa75b2f688de96bd5b245f43e0ae66cd9d023c
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
21510f0b7571f0689dc48c4f8fdbafea883cbdd0 18-Apr-2017 Artem Iglikov <artikz@google.com> Apply Android code style to RefactoredBackupManagerService.

Bug: 36850431

Test: it compiles.

Change-Id: I5f996e612c9117437c3ff14929afb529ee8e9a93
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java
f251e3509838e3fbc62ccdba9d4cfd0527f67acd 07-Apr-2017 Artem Iglikov <artikz@google.com> Move inner classes of RefactoredBackupManagerService to their own files.

The move was done automatically separately for each class. For the
classes that are not static, instance of RBMS is passed in the
constructor.

To make this compilable all methods and fields of RBMS that are accessed
from the separated classes were made public. In later commits this will
be addressed.

Test: built, flashed, verified that bmgr backupnow works with RBMS
enabled.

Bug: 36850431

Change-Id: I2d9be8bb045d5c4d8106bc59630d3a278138b54f
/frameworks/base/services/backup/java/com/android/server/backup/internal/PerformInitializeTask.java