commit | b47e8949c9fafe1f313a565972bb7d47eff98057 | [log] [tgz] |
---|---|---|
author | Makoto Onuki <omakoto@google.com> | Mon Sep 18 14:03:03 2017 -0700 |
committer | Makoto Onuki <omakoto@google.com> | Mon Sep 18 14:08:18 2017 -0700 |
tree | 59123702202074fee76477d78429fbf52c9fde60 | |
parent | daf9b2ee156c9a3d7dcf23b1c677750d44dfc683 [diff] [blame] |
Fix STOPSHIP in SyncManager - Remove WTF about removing periodic syncs. We haven't seen any reports of this. Having a detailed log should be enough. - Check the number of endpoints in the "unexpected periodic sync removal" check. Bug: 64809410 Test: manual test Change-Id: Icd6e595281c1a302f6ceec661561d3911785562b
diff --git a/services/core/java/com/android/server/content/SyncStorageEngine.java b/services/core/java/com/android/server/content/SyncStorageEngine.java index 7b277c0..3591871 100644 --- a/services/core/java/com/android/server/content/SyncStorageEngine.java +++ b/services/core/java/com/android/server/content/SyncStorageEngine.java
@@ -911,6 +911,12 @@ } } + public int getAuthorityCount() { + synchronized (mAuthorities) { + return mAuthorities.size(); + } + } + public AuthorityInfo getAuthority(int authorityId) { synchronized (mAuthorities) { return mAuthorities.get(authorityId);