/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 | 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 | ProtoInputStreamIncompleteValueTest.java | 19 import android.util.proto.ProtoInputStream; 46 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteVarint() 48 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteVarint() 84 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteFixed64() 86 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteFixed64() 122 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteLengthDelimited() 124 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteLengthDelimited() 159 final ProtoInputStream pi = new ProtoInputStream(stream); in testIncompleteFixed32() 161 while (pi.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in testIncompleteFixed32()
|
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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 | 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 …]
|
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 …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProtoV2.java | 25 import android.util.proto.ProtoInputStream; 46 private static UsageStats parseUsageStats(ProtoInputStream proto, final long beginTime) in parseUsageStats() 93 case ProtoInputStream.NO_MORE_FIELDS: in parseUsageStats() 99 private static void loadCountAndTime(ProtoInputStream proto, long fieldId, in loadCountAndTime() 113 case ProtoInputStream.NO_MORE_FIELDS: in loadCountAndTime() 123 private static void loadChooserCounts(ProtoInputStream proto, UsageStats usageStats) in loadChooserCounts() 152 case ProtoInputStream.NO_MORE_FIELDS: in loadChooserCounts() 158 private static void loadCountsForAction(ProtoInputStream proto, SparseIntArray counts) in loadCountsForAction() 173 case ProtoInputStream.NO_MORE_FIELDS: in loadCountsForAction() 182 private static void loadConfigStats(ProtoInputStream proto, IntervalStats stats) in loadConfigStats() [all …]
|
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() 167 case ProtoInputStream.NO_MORE_FIELDS: in loadCountAndTime() 177 private static void loadChooserCounts(ProtoInputStream proto, UsageStats usageStats) in loadChooserCounts() 210 case ProtoInputStream.NO_MORE_FIELDS: in loadChooserCounts() 220 private static void loadCountsForAction(ProtoInputStream proto, in loadCountsForAction() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryProtoHelper.java | 24 import android.util.proto.ProtoInputStream; 45 private static List<String> readStringPool(ProtoInputStream proto) throws IOException { in readStringPool() 53 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readStringPool() 75 private static void readNotification(ProtoInputStream proto, List<String> stringPool, in readNotification() 92 private static HistoricalNotification readNotification(ProtoInputStream parser, in readNotification() 155 case ProtoInputStream.NO_MORE_FIELDS: in readNotification() 161 private static void loadIcon(ProtoInputStream parser, in loadIcon() 200 case ProtoInputStream.NO_MORE_FIELDS: in loadIcon() 307 final ProtoInputStream proto = new ProtoInputStream(in); in read() 317 case ProtoInputStream.NO_MORE_FIELDS: in read()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/protolog/ |
D | ProtoLogImplTest.java | 41 import android.util.proto.ProtoInputStream; 292 private ProtoLogData readProtoLogSingle(ProtoInputStream ip) throws IOException { in readProtoLogSingle() 293 while (ip.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readProtoLogSingle() 303 while (ip.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readProtoLogSingle() 350 ProtoInputStream ip = new ProtoInputStream(is); in log_protoEnabled() 375 ProtoInputStream ip = new ProtoInputStream(is); in log_invalidParamsMask() 397 ProtoInputStream ip = new ProtoInputStream(is); in log_protoDisabled()
|
/frameworks/base/services/people/java/com/android/server/people/data/ |
D | AbstractProtoDiskReadWriter.java | 27 import android.util.proto.ProtoInputStream; 235 final ProtoInputStream protoInputStream = new ProtoInputStream(fileInputStream); in parseFile() 271 T read(@NonNull ProtoInputStream protoInputStream); in read()
|
D | Event.java | 24 import android.util.proto.ProtoInputStream; 162 static Event readFromProto(@NonNull ProtoInputStream protoInputStream) throws IOException { in readFromProto() 164 while (protoInputStream.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readFromProto()
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | ConfigurationTest.java | 35 import android.util.proto.ProtoInputStream; 179 final ProtoInputStream protoIn = new ProtoInputStream(in); in readFromProto()
|