/frameworks/base/tests/ProtoInputStreamTests/src/com/android/test/protoinputstream/ |
D | ProtoInputStreamBoolTest.java | 19 import android.util.proto.ProtoInputStream; 65 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 67 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 108 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 112 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 177 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 180 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 230 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 235 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 297 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamObjectTest.java | 19 import android.util.proto.ProtoInputStream; 38 void parseProto(ProtoInputStream pi) throws IOException { in parseProto() 50 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in parseProto() 102 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectOneChar() 106 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testObjectOneChar() 156 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectOneLargeChar() 160 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testObjectOneLargeChar() 213 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testObjectAndTwoChars() 219 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testObjectAndTwoChars() 283 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testComplexObject() [all …]
|
D | ProtoInputStreamStringTest.java | 19 import android.util.proto.ProtoInputStream; 69 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 71 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 122 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 126 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 195 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 198 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 253 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 258 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 289 ProtoInputStream pi = new ProtoInputStream(protobuf); in testBadReadType() [all …]
|
D | ProtoInputStreamInt32Test.java | 19 import android.util.proto.ProtoInputStream; 73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 135 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 207 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 210 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 270 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 275 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 353 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamEnumTest.java | 19 import android.util.proto.ProtoInputStream; 73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 134 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 207 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 210 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 271 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 275 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 354 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamFixed32Test.java | 19 import android.util.proto.ProtoInputStream; 71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 204 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 264 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamSInt32Test.java | 19 import android.util.proto.ProtoInputStream; 71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 204 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 264 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamSFixed32Test.java | 19 import android.util.proto.ProtoInputStream; 71 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 73 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 129 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 133 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 201 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 204 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 264 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 335 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamUInt32Test.java | 19 import android.util.proto.ProtoInputStream; 73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 131 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 135 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 206 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 209 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 269 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 274 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 352 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamBytesTest.java | 19 import android.util.proto.ProtoInputStream; 73 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 75 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 132 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 136 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 206 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 209 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 269 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 274 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 308 ProtoInputStream pi = new ProtoInputStream(protobuf); in testBadReadType() [all …]
|
D | ProtoInputStreamSInt64Test.java | 19 import android.util.proto.ProtoInputStream; 81 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 83 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 149 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 153 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 240 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 243 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 312 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 317 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 401 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamUInt64Test.java | 19 import android.util.proto.ProtoInputStream; 83 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 85 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 151 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 155 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 245 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 248 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 317 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 322 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 420 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamFixed64Test.java | 19 import android.util.proto.ProtoInputStream; 86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 88 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 154 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 158 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 255 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 258 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 327 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 332 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 426 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamSFixed64Test.java | 19 import android.util.proto.ProtoInputStream; 86 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 88 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 154 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 158 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 255 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 258 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 327 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 332 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 426 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamInt64Test.java | 19 import android.util.proto.ProtoInputStream; 84 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 86 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 152 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 156 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 247 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 250 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 319 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 324 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 424 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamDoubleTest.java | 19 import android.util.proto.ProtoInputStream; 97 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 99 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 174 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 178 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 293 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 296 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 377 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 382 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 493 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
D | ProtoInputStreamFloatTest.java | 19 import android.util.proto.ProtoInputStream; 88 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRead() 90 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRead() 165 final ProtoInputStream pi = new ProtoInputStream(proto); in testReadCompat() 169 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testReadCompat() 266 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testRepeated() 269 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeated() 350 final ProtoInputStream pi = new ProtoInputStream(proto); in testRepeatedCompat() 355 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testRepeatedCompat() 446 final ProtoInputStream pi = new ProtoInputStream(stream, chunkSize); in testPacked() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/encryption/chunk/ |
D | ChunkListingMapTest.java | 22 import android.util.proto.ProtoInputStream; 67 new ProtoInputStream(new ByteArrayInputStream(chunkListingProto))); in testHasChunk_whenChunkInListing_returnsTrue() 86 new ProtoInputStream(new ByteArrayInputStream(chunkListingProto))); in testHasChunk_whenChunkNotInListing_returnsFalse() 104 new ProtoInputStream(new ByteArrayInputStream(chunkListingProto))); in testGetChunkEntry_returnsEntryWithCorrectLength() 123 new ProtoInputStream(new ByteArrayInputStream(chunkListingProto))); in testGetChunkEntry_returnsEntryWithCorrectStart() 142 new ProtoInputStream(new ByteArrayInputStream(chunkListingProto))); in testGetChunkEntry_returnsNullForNonExistentChunk() 153 ProtoInputStream emptyProto = new ProtoInputStream(new ByteArrayInputStream(new byte[] {})); in testReadFromProto_whenEmptyProto_returnsChunkListingMapWith0Chunks() 169 new ProtoInputStream(new ByteArrayInputStream(chunkListingProto))); in testReadFromProto_returnsChunkListingWithCorrectSize()
|
D | ChunkTest.java | 22 import android.util.proto.ProtoInputStream; 57 Chunk.readFromProto(new ProtoInputStream(new ByteArrayInputStream(protoBytes))); in testReadFromProto_readsCorrectly() 74 Chunk.readFromProto(new ProtoInputStream(new ByteArrayInputStream(protoBytes))); in testReadFromProto_whenFieldsWrittenInReversedOrder_readsCorrectly() 82 ProtoInputStream emptyProto = new ProtoInputStream(new ByteArrayInputStream(new byte[] {})); in testReadFromProto_whenEmptyProto_returnsEmptyHash() 98 Chunk.readFromProto(new ProtoInputStream(new ByteArrayInputStream(protoBytes))); in testReadFromProto_whenOnlyHashSet_returnsChunkWithOnlyHash() 112 Chunk.readFromProto(new ProtoInputStream(new ByteArrayInputStream(protoBytes))); in testReadFromProto_whenOnlyLengthSet_returnsChunkWithOnlyLength()
|
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/ |
D | Chunk.java | 3 import android.util.proto.ProtoInputStream; 20 static Chunk readFromProto(ProtoInputStream inputStream) throws IOException { in readFromProto() 23 while (inputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
|
D | ChunkListingMap.java | 20 import android.util.proto.ProtoInputStream; 43 public static ChunkListingMap readFromProto(ProtoInputStream inputStream) throws IOException { in readFromProto() 48 while (inputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProto.java | 24 import android.util.proto.ProtoInputStream; 43 private static List<String> readStringPool(ProtoInputStream proto) throws IOException { in readStringPool() 52 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readStringPool() 63 private static void loadUsageStats(ProtoInputStream proto, long fieldId, in loadUsageStats() 83 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in loadUsageStats() 155 private static void loadCountAndTime(ProtoInputStream proto, long fieldId, in loadCountAndTime() 166 case ProtoInputStream.NO_MORE_FIELDS: in loadCountAndTime() 173 private static void loadChooserCounts(ProtoInputStream proto, UsageStats usageStats) in loadChooserCounts() 206 case ProtoInputStream.NO_MORE_FIELDS: in loadChooserCounts() 216 private static void loadCountsForAction(ProtoInputStream proto, in loadCountsForAction() [all …]
|
D | UsageStatsXml.java | 22 import android.util.proto.ProtoInputStream;
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 23 import android.util.proto.ProtoInputStream; 126 final ProtoInputStream protoIn = new ProtoInputStream(in); in readFromProto()
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoInputStream.java | 65 public final class ProtoInputStream extends ProtoStream { class 150 public ProtoInputStream(InputStream stream, int bufferSize) { in ProtoInputStream() method in ProtoInputStream 165 public ProtoInputStream(InputStream stream) { in ProtoInputStream() method in ProtoInputStream 174 public ProtoInputStream(byte[] buffer) { in ProtoInputStream() method in ProtoInputStream
|