History log of /frameworks/base/core/tests/coretests/src/android/content/pm/RegisteredServicesCacheTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9d8a1048bb666c68402dce031bebfa07c92a42db 04-Dec-2015 Jeff Sharkey <jsharkey@android.com> Handle non-encryption-aware accounts and sync.

The system can now boot in a "locked" state where only encryption
aware (EA) components can be safely started. When in this state,
PackageManager already filters away non-EA components, but system
services like AccountManager and SyncManager need to carefully handle
these temporarily "missing" components.

As a guiding principle, all known Accounts are still present when
the device is locked, but communication with underlying non-EA
authenticators is blocked.

To keep things simple for now, all SyncManager requests are kept
dormant until the user enters the unlocked state.

The core of this logic is that RegisteredServicesCache now works
with all components regardless of EA status, which prevents us from
accidentally thinking a service was removed when the user is locked.

Bug: 25945136
Change-Id: I8714121f6236b00821769023c4df7de1c8a99944
/frameworks/base/core/tests/coretests/src/android/content/pm/RegisteredServicesCacheTest.java
259e76153255e4d7c6d6c14af77936fe060e7038 11-Feb-2015 Fyodor Kupolov <fkupolov@google.com> RegisteredServicesCache now saves files to a user-specific dir

Previously, its state was saved in a single xml file inside
/data/system/registered_services.

Services are now stored in separate files stored in a user-specific dir. A
one-off migration step was added, which runs, when the system discovers a
file in the old format.

Bug:19321135
Change-Id: Ie92be01047f4855d01352b6a304820b37344ae2c
/frameworks/base/core/tests/coretests/src/android/content/pm/RegisteredServicesCacheTest.java
9e0d81e8439089845b7ddee21676f3f427a34cca 10-Feb-2015 Fyodor Kupolov <fkupolov@google.com> Added unit test for RegisteredServicesCache

Minor refactoring of RegisteredServicesCache for testability. Added
RegisteredServicesCacheTest which uses a mock version of
RegisteredServicesCache.

Bug:19321135
Change-Id: If18b794b28f03b4bf4bbdfbba9e9a57e808aaebf
/frameworks/base/core/tests/coretests/src/android/content/pm/RegisteredServicesCacheTest.java