Loading services/core/java/com/android/server/broadcastradio/hal2/ProgramInfoCache.java +5 −3 Original line number Original line Diff line number Diff line Loading @@ -189,7 +189,8 @@ class ProgramInfoCache { removed.add(id); removed.add(id); } } } } if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete()) { if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete() && !chunk.isPurge()) { return null; return null; } } mComplete = chunk.isComplete(); mComplete = chunk.isComplete(); Loading Loading @@ -239,9 +240,10 @@ class ProgramInfoCache { } } // Determine number of chunks we need to send. // Determine number of chunks we need to send. int numChunks = 0; int numChunks = purge ? 1 : 0; if (modified != null) { if (modified != null) { numChunks = roundUpFraction(modified.size(), maxNumModifiedPerChunk); numChunks = Math.max(numChunks, roundUpFraction(modified.size(), maxNumModifiedPerChunk)); } } if (removed != null) { if (removed != null) { numChunks = Math.max(numChunks, roundUpFraction(removed.size(), maxNumRemovedPerChunk)); numChunks = Math.max(numChunks, roundUpFraction(removed.size(), maxNumRemovedPerChunk)); Loading Loading
services/core/java/com/android/server/broadcastradio/hal2/ProgramInfoCache.java +5 −3 Original line number Original line Diff line number Diff line Loading @@ -189,7 +189,8 @@ class ProgramInfoCache { removed.add(id); removed.add(id); } } } } if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete()) { if (modified.isEmpty() && removed.isEmpty() && mComplete == chunk.isComplete() && !chunk.isPurge()) { return null; return null; } } mComplete = chunk.isComplete(); mComplete = chunk.isComplete(); Loading Loading @@ -239,9 +240,10 @@ class ProgramInfoCache { } } // Determine number of chunks we need to send. // Determine number of chunks we need to send. int numChunks = 0; int numChunks = purge ? 1 : 0; if (modified != null) { if (modified != null) { numChunks = roundUpFraction(modified.size(), maxNumModifiedPerChunk); numChunks = Math.max(numChunks, roundUpFraction(modified.size(), maxNumModifiedPerChunk)); } } if (removed != null) { if (removed != null) { numChunks = Math.max(numChunks, roundUpFraction(removed.size(), maxNumRemovedPerChunk)); numChunks = Math.max(numChunks, roundUpFraction(removed.size(), maxNumRemovedPerChunk)); Loading