summaryrefslogtreecommitdiff
path: root/core/java/android/content/AbstractThreadedSyncAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Only allow the system server to connect to sync adaptersMakoto Onuki2022-04-191-0/+20
| | | | | | Bug: 203229608 Test: Manual test with changing the check logic + debug log Change-Id: If18009f61360564d02dcda9b1e5fa15685e3250f
* Revert "Only allow the system server to connect to sync adapters"Makoto Onuki2022-04-191-13/+0
| | | | | | | | | | | | | This reverts commit 4df2de83804c33ef5389c7d6d1178abe37292cee. There was a bug in the CL. Rather than fixing it forward, let's revert it and fix it in a follow-up CL, so we'll only have to back-port a single CL. Bug: 203229608 Test: N/A, a follow-up CL will redo this change with a Test: line. Change-Id: I5fddf283ace09996a2e5cfc272f8e9fd8168a114
* Only allow the system server to connect to sync adaptersMakoto Onuki2022-03-301-0/+13
| | | | | | Bug: 203229608 Test: Manual test with changing the check logic Change-Id: I27ade06541e79746f6c1318296cd11cb7fd5da21
* docs: fixing errors found with lint checkerkopriva2018-10-091-1/+1
| | | | | | | | | | | | | through /bluetooth directory amending through /content directory Test: make ds-docs Bug: 117494359 Change-Id: I751e15d60f0b9cc441998b27560050bf62994fef Exempt-From-Owner-Approval: Docs-only change
* onUnsyncableAccount: Better docs, main threadPhilip P. Moltmann2018-03-151-3/+37
| | | | | | | | | | | | Describe that AbstractThreadedSyncAdapter.onUnsyncableAccount should return immediately and call it on main thread. Test: atest android.content.cts.AccountAccessSameCertTest android.content.cts.DeferSyncTest android.content.cts.ContentResolverSyncTestCase com.android.cts.content.CtsSyncAccountAccessOtherCertTestCases Fixes: 73750859 Change-Id: Ie9e1aefafe3a4a1b3f0fe8a65803554f07a94c42
* Add AbstractThreadedSyncAdapter#onUnsyncableAccount APIPhilip P. Moltmann2018-01-251-0/+27
| | | | | | | | | | | | | | | | This allows for an SyncAdapter to defer all onPerformSync calls (and the admission check for those) until the adapter is ready to accept those calls. Test: atest android.content.cts.AccountAccessSameCertTest atest android.content.cts.ContentResolverSyncTestCase atest android.content.cts.DeferSyncTest atest com.android.cts.content.CtsSyncAccountAccessOtherCertTestCases Set up a user and work account and waited until their gmail synced. Bug: 72459220 Change-Id: I8f9ab735d64189578ccdd1c3e1d7b7c5383b8ee9
* Don't unbind from the sync adapter before cancelSync().Makoto Onuki2017-07-211-50/+116
| | | | | | | | - Also remove the unused method from ISyncAdapter.aidl Bug: 63773598 Test: Manual test Change-Id: Ifb2fc520759e83ad961032f9e217100e038e1a8c
* Merge "Fix issue #21799741: AbstractThreadedSyncAdapter crashes..." into mnc-devDianne Hackborn2015-06-231-0/+18
|\
| * Fix issue #21799741: AbstractThreadedSyncAdapter crashes...Dianne Hackborn2015-06-221-0/+18
| | | | | | | | | | | | | | | | ...when permissions aren't granted Eat the SecurityException, turn it into a new callback. Change-Id: Ibeffce061aa51beba097c90f431de07ce70b3c4e
* | Cancel Syncs that aren't making progress.Matthew Williams2015-06-221-7/+20
|/ | | | | | | | | | | | | | | | BUG: 18266674 1) If a sync has up/downloaded less than 10bytes in 60 seconds it is considered to be making no progress and is summarily cancelled. 2) Apply a 30min hard time-out to initialization syncs. Note that there is little proof that cancelling a sync has an impact. All it results in is a Thread.interrupt on the sync thread, which the adapter must itself implement. To this effect this CL also updates the javadoc to make this clearer, and adds some (unimplemented) threats about killing the hosting process. Change-Id: I83c447648152ccbf76bb1fbd7e9216e01a37952f
* am 46aae98b: am f2d643cf: Merge "Fixed a leaked partial wakelock in ↵Jean-Baptiste Queru2013-07-301-3/+6
|\ | | | | | | | | | | | | AbstractThreadedSyncAdapter." * commit '46aae98b41fe6e6b61aeddff3ad3f41bc4ceace3': Fixed a leaked partial wakelock in AbstractThreadedSyncAdapter.
| * Fixed a leaked partial wakelock in AbstractThreadedSyncAdapter.Daniel Karlberg2013-07-261-3/+6
| | | | | | | | | | | | | | This fix ensures that onFinished() is always called in a syncClient even if the application lacks the READ_SYNC_SETTINGS permission. Change-Id: I944717e71ceae06a665f8a3b1199b41d73e12da4
* | AnonymousSyncService & SyncRequest.Matthew Williams2013-07-241-0/+2
|/ | | | | | | | Changes to the way bundles are parcelled broke SM, this update writes out the bundle as xml. This circumvents the need for parcel, and makes it easier to debug whats happening. Change-Id: I6cd5d3a2eb80bfa5b3ae0c7f2d2ff91a65daaa34
* Add System Tracing capability to Sync ManagerAndy Stadler2012-05-041-0/+9
| | | | | | This tracing code is enabled via "systrace.py --set-tags sync" Change-Id: Ia8bc01adbba345a568405b0ac8ade96e56b40cc1
* add a way for the sync adapter to specify the activity that shouldFred Quintana2011-08-251-0/+45
| | | | | | | be invoked to reach a settings screen for that sync adapter Bug: 5204776 Change-Id: I4641067c1f0710c51f2633241a8c87bc4d568af2
* Move handing of a "cancel" inside try-finally blockAlon Albert2011-02-071-4/+3
| | | | | Bug: 3417906 Change-Id: I87e41c0cdad74e2ba72a7b4d1f059e72d106e105
* allow sync adapter authors to control more policiesFred Quintana2010-12-091-16/+70
| | | | | | | | | | | - let the SyncManager know that the SyncAdapter can handle parallel syncs even within sync adapter types - allow indicating that the sync adapter should be auto initialized without requiring the sync adapter to run first. When this setting is used then setIsSyncable(1) is automatically called for the sync adapter. Change-Id: Ib40eba95c2556eaee4bb0fe715f379af1b72b84a
* Fix the rest of the javadoc warnings.Joe Onorato2010-09-161-1/+2
| | | | Change-Id: Ifbf422a2eb177858813d118f03ceddcd807e73b4
* some changes due to an API reviewFred Quintana2010-03-301-10/+14
| | | | | | | | | | | | | | | - make EntityIterator extend Iterator and thus not throw a RemoteException, instead converting it into a RuntimeException. - rename ActiveSyncInfo to SyncInfo - change getActiveSync to getCurrentSync - remove the accessors in SyncInfo and instead make the final fields publicly accessible - made AbstractThreadedSyncAdapter.cancelSync not take a thread Change-Id: I99fde5585bc5f1e95f4873ffbba189074a8d6372 http://b/issue?id=2553539 http://b/issue?id=2553541 http://b/issue?id=2553550
* moved the hidden sync helpers out of the frameworkFred Quintana2009-12-141-1/+12
|
* - move the EventLog stuff out of ATSAFred Quintana2009-12-101-24/+6
| | | | - move the google calendar sync adapter settings out of Settings.java
* Migration to TrafficStats.Ken Shirriff2009-12-081-6/+6
| | | | TrafficStats is the SDK version of NetStat.
* add an IPC for sync initializationFred Quintana2009-10-141-0/+7
|
* changes from Sync Manager API Review: bug 2164262Fred Quintana2009-10-061-19/+17
|
* Add sync_details support.Ken Shirriff2009-09-031-0/+24
| | | | | This adds sync_details logging to AbstractThreadedSyncAdapter and thus the new contacts code.
* re-enable cancelation of the sync thread upon receipt of ↵Fred Quintana2009-08-311-2/+1
| | | | ISyncAdapter.cancelSync()
* disable canceling until the http connection code is understoodFred Quintana2009-08-301-1/+2
|
* add an accessor for Context for use by subclassesFred Quintana2009-08-271-0/+4
|
* fix AbstractThreadedSyncAdapter to actually cancel syncsFred Quintana2009-08-271-1/+2
|
* make sure that the sync thread is protected by a consistent lockFred Quintana2009-08-271-4/+5
|
* run the sync thread at background priorityFred Quintana2009-08-251-1/+2
|
* make syncadapter set whether the account is syncableFred Quintana2009-08-181-2/+18
|
* beef up the syncadapter APIFred Quintana2009-06-161-0/+176