Skip to content
Commit 6e9b1e4a authored by Kweku Adams's avatar Kweku Adams
Browse files

Clean up SyncManager.

1. Remove unused variables
2. Remove random selection of new job ID and make sure we always exit
   the loop. New job IDs will be selected more deterministically.
3. Query pending system jobs only once instead of for every potential
   new job ID.
4. Switch from iterator to basic for loop.

Bug: 169959994
Test: atest ContentResolverTest (all)
Test: atest CtsSyncManagerTest
Test: atest SyncOperationTest
Test: atest SyncManagerTest
Test: atest SyncRequestTest
Change-Id: Iff0f8edba8d424075f64a95e523b8c0c986aab33
parent d215e29f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment