commit | b0a213ef066a04181510c65cb8b71eacbd7712cf | [log] [tgz] |
---|---|---|
author | Ruslan Tkhakokhov <rthakohov@google.com> | Tue Jul 14 16:50:01 2020 +0100 |
committer | Ruslan Tkhakokhov <rthakohov@google.com> | Tue Jul 14 22:29:27 2020 +0100 |
tree | 3b76ebf8a1bdf35e14f609f698ce5694629eddeb | |
parent | 77c7e4858ae60e988d5a28a4f1d904114b5a7d54 [diff] |
Refactor AppBackupUtils into BackupEligibilityRules AppBackupUtils contains static utility methods for checking backup eligibility of packages. Refactor it into an instance class called BackupEligibilityRules to better reflect the responsibilities of the class, encapsulate eligibility-related state as well as logic and simplify testing. See the bug description for full rationale. Bug: 161241479 Test: atest AppBackupUtilsTest Change-Id: I8ae47ac2a15e3c70da8feab752dd8354951224ea