summaryrefslogtreecommitdiff
path: root/core/java/android/content/SyncStatusInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Update language to comply with Android's inclusive language guidance" ↵Treehugger Robot2020-07-311-1/+1
|\ | | | | | | | | | | | | | | am: ea575e7bc4 am: 0166574738 Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1382385 Change-Id: I2367b78e9b80b2ffe284cc18adf07e29925656a8
| * Update language to comply with Android's inclusive language guidanceLais Andrade2020-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference #inclusivefixit BUG=162536543 Change-Id: I8059d138ed476e89c7b796f0b1ad002692987a6f
| * Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-101-1/+1
| | | | | | | | | | | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I6ab53570aca580fbee1fcc927871caa09780f58f Merged-In: I6ab53570aca580fbee1fcc927871caa09780f58f
* | Use new UnsupportedAppUsage annotation.Artur Satayev2019-12-181-1/+1
| | | | | | | | | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I6ab53570aca580fbee1fcc927871caa09780f58f
* | Update SyncStorageEngine to use protos.Varun Shah2019-11-111-4/+52
|/ | | | | | | | | | | | | | Status and Statistics info within SyncStorageEngine was being stored using Parcels, which is not recommended. Updating both of them to use protos now. Additionally, because of protos, storage space on disk consumed by these files are reduced by more than 50%. Also added unit tests for SyncStorageEngine. Bug: 38177679 Test: atest com.android.server.content.SyncStorageEngineTest Test: build and flash - no errors in logs Change-Id: I187cb6c271333f366f5c7f651f75b4161fee90d4
* All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
| | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-151-0/+19
| | | | | | | | | | | | | | | | | | | | | | For packages: android.content.res android.content.pm.split android.content.pm.permission android.content.pm.dex android.content.pm android.content.om android.content This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ia79256a3d04e16dd78331a61af0dcddc5fc1599b
* SyncManager: Dump per-source last sync time too.Makoto Onuki2018-04-161-4/+55
| | | | | | | | | | | | | | | | | | | | | | | | Example: Per Adapter History : mak...@gmail.com/com.google u0 [com.google.android.gms.people] Per source last syncs: OTHER Success: 2018-04-16 17:03:38 Failure: 2018-04-16 17:04:27 LOCAL Success: N/A Failure: N/A POLL Success: N/A Failure: N/A USER Success: N/A Failure: N/A PERIODIC Success: N/A Failure: N/A FEED Success: N/A Failure: N/A Last syncs: 2018-04-16 17:04:27 io-error Source=OTHER Elapsed=0s Reason=AutoSync Extras=[] 2018-04-16 17:03:38 success Source=OTHER Elapsed=5s Reason=AutoSync Extras=[] 2018-04-16 17:03:20 success Source=OTHER Elapsed=3s Reason=AutoSync Extras=[] Bug: 76035392 Change-Id: Id73cb10636897c4fe45caad5df13dca8b75381bd Fixes: 76035392 Test: Manual test with dumpsys content with triggering various syncs
* Add 1-day sync stats in syncmanager dumpsys.Makoto Onuki2018-04-161-33/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | The stats currently shown in sync manager dumpsys is the total *since wipe* so they're usually pretty much useless. So let's add "today" and "yesterday" stats too. - Also add "# failures" and "# cancels". - Also split up SERVER to OTHER and FEED (i.e. subscribedfeeds). Bug: 76035392 Test: Boot, run some sync, then do "cmd content reset-today-stats" - Also tested with actually setting the clock to 23:59 and wait - Check the result with "dumpsys content". Sample output: ======================================================================= Authority Syncable Enabled Stats Loc Poll Per Feed User Othr Tot Fail Can Time Last Sync Backoff ------------------------------------------------------------------------------------------------------------------------------------------------------------------ com.android.calendar 1 true Total 0 0 0 1 0 7 8 0 2 8s FEED SUCCESS Today 1 5 6 7s 2018-04-12 15:21:24 Yestr 0s com.android.chrome 0 false Total 0 0 0 0 0 0 0 0 0 0s Today 0s Change-Id: Id0ea42435a9f759e47d4b9490292759270f8e9a5
* Persist/pacel # of periodic syncs properly.Makoto Onuki2017-07-211-1/+12
| | | | | | | | | | (Note it shouldn't be persisting parceled data in the first place. There's already a bug filed for that.) Bug 63935632 Test: manaul test Change-Id: I5385caa6cd0663c7e13db0256b2c1027abe6c3a1
* Enhance recent sync log in dumpsys contentMakoto Onuki2017-06-201-5/+51
| | | | | | | | | | | | | | | | | - Add "Per Adapter History" section that has recent activities per adapter. Example: mxxxx@gmail.com/com.google u0 [com.android.calendar] 2017-06-19 14:19:07 success Source=LOCAL Elapsed=0s Reason=10014 Extras=[upload=true ] 2017-06-19 14:19:06 success Source=SERVER Elapsed=16s Reason=10014 Extras=[feed=#contacts@group.v.calendar.google.com ] mxxxx@gmail.com/com.google u0 [com.android.chrome] 2017-06-19 13:26:25 canceled Source=POLL Elapsed=0s Reason=AccountsUpdated Extras=[initialize=true ] mxxxx@gmail.com/com.google u0 [com.android.contacts] - Improve pending/periodic syncs with better formatting, and sort them in a sane order. Bug: 38498544 Bug: 62391411 Test: manual test with "dumpsys content" Change-Id: I947a9255230f27a7f438d648da324787fdf16f55
* Bugfix 9373708Georgi Nikolov2013-06-261-18/+47
| | | | | | | | | | | | JBMR2 runtime restart (system process crash in the sync manager) during setup The fix is to ensure that all access to SyncStatusInfo and related objects happens while holding the mAuthority lock or is on a per-thread copy of the objects Also, includes an unrelated fix for a bug I just noticed in the way dumpSyncState() prints the periodic sync info Change-Id: Id9e4dff41029412e133bdabc843d555434d9a12f (cherry picked from commit 182ff3acbad9850b40d37ad1c23106be6eda8476)
* COnvert sync error to intAlon Albert2013-02-071-7/+6
| | | | | Bug: 8152259 Change-Id: I99fc99f70796c70ec0566c40ba350e10c36b90b7
* Move lingering services to services.jar.Jeff Sharkey2012-12-111-2/+2
| | | | | | | | This helps reduce the pressure on framework.jar, and makes it clear that it should only be used by the system_server. Bug: 7333397 Change-Id: I0858904239535380fbf30562b793e277d8c3f054
* add sync pollingFred Quintana2010-02-051-6/+64
| | | | | | | | | - added the ability to specify that a sync (of account/authority/extras) should occur at a given frequency - the existing daily poll code was replaced with seeding each account/authority with a 24 hour periodic sync - enhanced the "adb shell dumpsys content" output to show the periodic syncs and when they will next run
* Keep track of 'initial' sync state in SyncStatusInfoCostin Manolache2009-09-221-0/+3
|
* Rewrite SyncStorageEngine to use flat files and in-memory data structures.Dianne Hackborn2009-05-051-0/+108
The previous implementation used a database for storing all of its state, which could cause a significant amount of IO activity as its tables were updated through the stages of a sync. This new implementation replaces that in-memory data structures, with hand-written code for writing them to persistent storage. There are now 4 files associated with this class, holding various pieces of its state that should be consistent. These are everything from a main XML file of account information that must always be retained, to a binary file of per-day statistics that can be thrown away at any time. Writes of these files as scheduled at various times based on their importance of the frequency at which they change. Because the database no longer exists, there needs to be a new explicit interface for interacting with the sync manager database. This is provided by new APIs on IContentService, with a hidden method on ContentResolver to retrieve the IContentService so that various system entities can use it. Other changes in other projects are required to update to the new API. The goal here is to have as little an impact on the code and functionality outside of SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.