diff --git a/core/java/android/util/proto/ProtoOutputStream.java b/core/java/android/util/proto/ProtoOutputStream.java index adf49387a05dc..480abc1482a33 100644 --- a/core/java/android/util/proto/ProtoOutputStream.java +++ b/core/java/android/util/proto/ProtoOutputStream.java @@ -1593,7 +1593,7 @@ public final class ProtoOutputStream { assertNotCompacted(); final int id = checkFieldId(fieldId, FIELD_COUNT_REPEATED | FIELD_TYPE_FIXED64); - writeRepeatedFixed64(id, val); + writeRepeatedFixed64Impl(id, val); } private void writeRepeatedFixed64Impl(int id, long val) { @@ -1720,7 +1720,7 @@ public final class ProtoOutputStream { assertNotCompacted(); final int id = checkFieldId(fieldId, FIELD_COUNT_REPEATED | FIELD_TYPE_SFIXED64); - writeRepeatedSFixed64(id, val); + writeRepeatedSFixed64Impl(id, val); } private void writeRepeatedSFixed64Impl(int id, long val) { @@ -1785,7 +1785,7 @@ public final class ProtoOutputStream { assertNotCompacted(); final int id = checkFieldId(fieldId, FIELD_COUNT_REPEATED | FIELD_TYPE_BOOL); - writeRepeatedBool(id, val); + writeRepeatedBoolImpl(id, val); } private void writeRepeatedBoolImpl(int id, boolean val) { diff --git a/core/tests/coretests/src/com/android/internal/app/procstats/SparseMappingTableTest.java b/core/tests/coretests/src/com/android/internal/app/procstats/SparseMappingTableTest.java index fd57baa217b0f..115af5e0ea5d5 100644 --- a/core/tests/coretests/src/com/android/internal/app/procstats/SparseMappingTableTest.java +++ b/core/tests/coretests/src/com/android/internal/app/procstats/SparseMappingTableTest.java @@ -180,7 +180,9 @@ public class SparseMappingTableTest extends TestCase { try { table.getValue(key); - throw new Exception("Exception not thrown after mismatched reset calls."); + // Turn off this assertion because the check in SparseMappingTable.assertConsistency + // is also turned off. + //throw new Exception("Exception not thrown after mismatched reset calls."); } catch (RuntimeException ex) { // Good }