Loading services/core/java/com/android/server/content/SyncManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -1170,7 +1170,7 @@ public class SyncManager { } private void removeSyncsForAuthority(EndPoint info, String why) { mLogger.log("removeSyncsForAuthority: ", info); mLogger.log("removeSyncsForAuthority: ", info, why); verifyJobScheduler(); List<SyncOperation> ops = getAllPendingSyncs(); for (SyncOperation op: ops) { Loading services/core/java/com/android/server/content/SyncStorageEngine.java +6 −4 Original line number Diff line number Diff line Loading @@ -1027,7 +1027,7 @@ public class SyncStorageEngine { * Called when the set of account has changed, given the new array of * active accounts. */ public void removeStaleAccounts(@Nullable Account[] accounts, int userId) { public void removeStaleAccounts(@Nullable Account[] currentAccounts, int userId) { synchronized (mAuthorities) { if (Log.isLoggable(TAG, Log.VERBOSE)) { Slog.v(TAG, "Updating for new accounts..."); Loading @@ -1036,9 +1036,11 @@ public class SyncStorageEngine { Iterator<AccountInfo> accIt = mAccounts.values().iterator(); while (accIt.hasNext()) { AccountInfo acc = accIt.next(); if ((accounts == null) || ( (acc.accountAndUser.userId == userId) && !ArrayUtils.contains(accounts, acc.accountAndUser.account))) { if (acc.accountAndUser.userId != userId) { continue; // Irrelevant user. } if ((currentAccounts == null) || !ArrayUtils.contains(currentAccounts, acc.accountAndUser.account)) { // This account no longer exists... if (Log.isLoggable(TAG, Log.VERBOSE)) { Slog.v(TAG, "Account removed: " + acc.accountAndUser); Loading Loading
services/core/java/com/android/server/content/SyncManager.java +1 −1 Original line number Diff line number Diff line Loading @@ -1170,7 +1170,7 @@ public class SyncManager { } private void removeSyncsForAuthority(EndPoint info, String why) { mLogger.log("removeSyncsForAuthority: ", info); mLogger.log("removeSyncsForAuthority: ", info, why); verifyJobScheduler(); List<SyncOperation> ops = getAllPendingSyncs(); for (SyncOperation op: ops) { Loading
services/core/java/com/android/server/content/SyncStorageEngine.java +6 −4 Original line number Diff line number Diff line Loading @@ -1027,7 +1027,7 @@ public class SyncStorageEngine { * Called when the set of account has changed, given the new array of * active accounts. */ public void removeStaleAccounts(@Nullable Account[] accounts, int userId) { public void removeStaleAccounts(@Nullable Account[] currentAccounts, int userId) { synchronized (mAuthorities) { if (Log.isLoggable(TAG, Log.VERBOSE)) { Slog.v(TAG, "Updating for new accounts..."); Loading @@ -1036,9 +1036,11 @@ public class SyncStorageEngine { Iterator<AccountInfo> accIt = mAccounts.values().iterator(); while (accIt.hasNext()) { AccountInfo acc = accIt.next(); if ((accounts == null) || ( (acc.accountAndUser.userId == userId) && !ArrayUtils.contains(accounts, acc.accountAndUser.account))) { if (acc.accountAndUser.userId != userId) { continue; // Irrelevant user. } if ((currentAccounts == null) || !ArrayUtils.contains(currentAccounts, acc.accountAndUser.account)) { // This account no longer exists... if (Log.isLoggable(TAG, Log.VERBOSE)) { Slog.v(TAG, "Account removed: " + acc.accountAndUser); Loading