Loading services/core/java/com/android/server/content/SyncStorageEngine.java +9 −3 Original line number Diff line number Diff line Loading @@ -347,6 +347,11 @@ public class SyncStorageEngine { return target + ", enabled=" + enabled + ", syncable=" + syncable + ", backoff=" + backoffTime + ", delay=" + delayUntil; } public String toSafeString() { return target.toSafeString() + ", enabled=" + enabled + ", syncable=" + syncable + ", backoff=" + backoffTime + ", delay=" + delayUntil; } } public static class SyncHistoryItem { Loading Loading @@ -553,7 +558,7 @@ public class SyncStorageEngine { final int size = mAuthorities.size(); mLogger.log("Loaded ", size, " items"); for (int i = 0; i < size; i++) { mLogger.log(mAuthorities.valueAt(i)); mLogger.log(mAuthorities.valueAt(i).toSafeString()); } } } Loading Loading @@ -734,7 +739,7 @@ public class SyncStorageEngine { Slog.d(TAG, "setSyncAutomatically: " + /* account + */" provider " + providerName + ", user " + userId + " -> " + sync); } mLogger.log("Set sync auto account=", account, mLogger.log("Set sync auto account=", account.toSafeString(), " user=", userId, " authority=", providerName, " value=", Boolean.toString(sync), Loading Loading @@ -812,7 +817,8 @@ public class SyncStorageEngine { private void setSyncableStateForEndPoint(EndPoint target, int syncable, int callingUid, int callingPid) { AuthorityInfo aInfo; mLogger.log("Set syncable ", target, " value=", Integer.toString(syncable), mLogger.log("Set syncable ", target.toSafeString(), " value=", Integer.toString(syncable), " cuid=", callingUid, " cpid=", callingPid); synchronized (mAuthorities) { Loading Loading
services/core/java/com/android/server/content/SyncStorageEngine.java +9 −3 Original line number Diff line number Diff line Loading @@ -347,6 +347,11 @@ public class SyncStorageEngine { return target + ", enabled=" + enabled + ", syncable=" + syncable + ", backoff=" + backoffTime + ", delay=" + delayUntil; } public String toSafeString() { return target.toSafeString() + ", enabled=" + enabled + ", syncable=" + syncable + ", backoff=" + backoffTime + ", delay=" + delayUntil; } } public static class SyncHistoryItem { Loading Loading @@ -553,7 +558,7 @@ public class SyncStorageEngine { final int size = mAuthorities.size(); mLogger.log("Loaded ", size, " items"); for (int i = 0; i < size; i++) { mLogger.log(mAuthorities.valueAt(i)); mLogger.log(mAuthorities.valueAt(i).toSafeString()); } } } Loading Loading @@ -734,7 +739,7 @@ public class SyncStorageEngine { Slog.d(TAG, "setSyncAutomatically: " + /* account + */" provider " + providerName + ", user " + userId + " -> " + sync); } mLogger.log("Set sync auto account=", account, mLogger.log("Set sync auto account=", account.toSafeString(), " user=", userId, " authority=", providerName, " value=", Boolean.toString(sync), Loading Loading @@ -812,7 +817,8 @@ public class SyncStorageEngine { private void setSyncableStateForEndPoint(EndPoint target, int syncable, int callingUid, int callingPid) { AuthorityInfo aInfo; mLogger.log("Set syncable ", target, " value=", Integer.toString(syncable), mLogger.log("Set syncable ", target.toSafeString(), " value=", Integer.toString(syncable), " cuid=", callingUid, " cpid=", callingPid); synchronized (mAuthorities) { Loading